/* l-shared.css: layout of the area "shared". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line).
   Hand-edited by K1 from 2026-11-11 (do NOT re-run the split over it). K1 edits are marked "K1:". */
/* S:10 */
*:where(:not(.tz-world, .tz-world *)) {
  box-sizing: border-box;
}
/* S:10 */
body:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* S:10 */
button:where(:not(.tz-world, .tz-world *)) {
  cursor: pointer;
}
/* S:13 */
.brand-logo {
  display: grid;
  place-items: center;
}
/* S:14 moved from profile: must stay before S:18 .form-grid label */
.profile-card label:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 16px;
}
/* S:14 */
.wide-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 16px;
}
/* S:14 */
input:where(:not(.tz-world, .tz-world *)),
select:where(:not(.tz-world, .tz-world *)),
textarea:where(:not(.tz-world, .tz-world *)) {
  padding: 11px 12px;
}
/* S:15 */
.btn {
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* S:16 */
.brand-logo {
  width: 34px;
  height: 34px;
}
/* S:16 */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
/* S:16 */
.page-head h1:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 6px;
}
/* S:16 */
.page-head p:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* S:17 */
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
}
/* S:17 moved from profile: must stay before S:30 .assignee-option .avatar */
.avatar.big {
  width: 86px;
  height: 86px;
}
/* S:18 moved from newtask: must stay before S:36 .head-actions .btn */
.compose-actions .btn {
  flex: 1;
}
/* S:18 */
.pill,
.chip {
  padding: 6px 10px;
}
/* S:18 moved from newtask: must stay before S:21 .drawer h3 */
.empty-preview h3:where(:not(.tz-world, .tz-world *)) {
  margin: 10px 0 0;
}
/* S:18 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
/* unslop V2:K16 */
.form-grid select {
  min-width: 0;
  width: 100%;
}
/* S:18 */
.form-grid label:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* S:18 */
.wide-label {
  padding: 0;
  margin: 12px 0;
}
/* S:18 */
.wide-label textarea:where(:not(.tz-world, .tz-world *)) {
  min-height: 110px;
  resize: vertical;
}
/* S:18 */
.section-label {
  margin: 16px 0 8px;
}
/* S:18 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* S:18 */
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* S:18 */
.clean-list li:where(:not(.tz-world, .tz-world *)) {
  padding: 8px 0;
}
/* S:18 moved from newtask: must stay before S:21 .warn-box p */
.ai-card p:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}
/* S:19 */
.filters {
  display: flex;
  gap: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
/* S:19 */
.filters select:where(:not(.tz-world, .tz-world *)) {
  min-width: 170px;
}
/* S:19 */
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
/* S:19 */
.search input:where(:not(.tz-world, .tz-world *)) {
  padding: 10px 0;
  min-width: 190px;
}
/* S:19 */
.board {
  display: grid;
  grid-template-columns: repeat(7,minmax(180px,1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
}
/* S:19 moved from board: must stay before S:21 .drawer h3 */
.task-card h3:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0;
}
/* S:20 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}
/* K1: .modal-x (S:21, S:27) is placed by the glass head of the frame (world/components-2.css .tz-dialog__close) */
/* S:21 moved from drawer: must stay before S:27 .modal h2 */
.drawer h2:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 10px; /* K1: was 0 42px 10px 0, room for the close button that now sits in the frame head */
}
/* S:21 moved from drawer: must stay before S:29 .panel-title-row h3 */
.drawer h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 10px;
}
/* S:22 */
.badge {
  padding: 3px 9px;
  white-space: nowrap;
}
/* S:22 */
.btn.small {
  padding: 6px 11px;
}
/* S:23 */
.badge {
  display: inline-block;
  padding: 3px 8px;
  white-space: nowrap;
}
/* S:23 */
.btn.small {
  padding: 6px 10px;
}
/* S:26 moved from profile: must stay before S:27 .modal h2 */
.profile-card h2:where(:not(.tz-world, .tz-world *)) {
  margin: 10px 0 4px;
}
/* S:26 */
.empty-big {
  padding: 42px;
  text-align: center;
}
/* S:27 */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 6); /* K1: was 80. Above the shell and the task card, below toasts (50) and tooltips (60) */
  display: grid;
  grid-template-columns: minmax(0,1fr); /* K1: the frame no longer scrolls, so the column must not grow to its content */
  place-items: center;
  padding: 20px;
}
/* S:27 K1: the frame. Scrolling and padding moved to .tz-dialog__body (world/components-2.css) */
.modal {
  position: relative;
  width: min(580px,100%);
}
/* K1: the edit form is the widest content */
.modal:has(.task-form) {
  width: min(720px,100%);
}
/* S:27 */
.modal h2:where(:not(.tz-world, .tz-world *)) {
  margin-top: 0;
}
/* S:27 */
.spin {
  width: 17px;
  height: 17px;
  animation: rot .7s linear infinite;
}
/* S:27 */
@keyframes rot { to{transform:rotate(360deg)} }
/* S:27 */
@keyframes pulse { 50%{opacity:.35} }
/* S:27 */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 99;
  padding: 12px 18px;
  max-width: 90vw;
  text-align: center;
}
/* S:29 */
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* S:29 */
.panel-title-row h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* S:29 */
.icon-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
/* S:30 */
.micro-copy {
  margin: 7px 0 8px;
}
/* S:30 */
.assignee-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 8px;
  margin: 8px 0 14px;
}
/* S:34 */
.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* S:34 */
.spin.dark {
  display: inline-block;
}
@media (max-width:1100px) {
  /* S:35 */
  .board {
    grid-template-columns: repeat(7,230px);
  }
}
@media (max-width:760px) {
  /* S:36 */
  .page-head {
    align-items: center;
  }
  /* S:36 */
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* S:36 */
  .filters {
    overflow-x: auto;
  }
  /* S:36 */
  .search {
    margin-left: 0;
  }
  /* S:36 */
  .board {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  /* S:36 */
  .head-actions {
    width: 100%;
  }
  /* S:36 */
  .head-actions .btn {
    flex: 1 1 auto;
    white-space: nowrap;
  }
  /* S:36 */
  .assignee-picker {
    grid-template-columns: 1fr;
  }
}
/* C:41 */
.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* C:41 */
.project-chip i:where(:not(.tz-world, .tz-world *)) {
  width: 7px;
  height: 7px;
}
/* C:50 */
.ops-main .page-head {
  margin-bottom: 20px;
}
@media (max-width:760px) {
  /* C:54 */
  body:not(.auth-body):where(:not(.tz-world, .tz-world *)) {
    padding-bottom: 82px;
  }
  /* K1: C:54 .modal padding 19px dropped (the body has the sheet padding) */
  .modal-back {
    padding: 12px;
  }
}
/* C:76 */
.project-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}
/* C:79 */
.project-chip i:where(:not(.tz-world, .tz-world *)) {
  width: 9px;
  height: 9px;
  flex: none;
}
/* C:80 */
.project-chip span:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:81 */
.project-chip em:where(:not(.tz-world, .tz-world *)) {
  padding: 1px 7px;
}
/* C:83 */
.project-chips {
  display: none;
}
@media (max-width:760px) {
  /* C:85 */
  .project-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: -4px -16px 14px;
    padding: 2px 16px 4px;
    scrollbar-width: none;
  }
  /* C:86 */
  .project-chips::-webkit-scrollbar {
    display: none;
  }
  /* C:87 */
  .project-chip {
    flex: none;
    padding: 7px 12px;
  }
  /* C:88 */
  .project-chip span:where(:not(.tz-world, .tz-world *)) {
    flex: none;
  }
}
/* C:151 */
.tg-ok {
  margin: 0;
}
/* C:158 */
.tg-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  vertical-align: middle;
}
/* C:192 moved from ai: must stay before C:543 .ops-main>* */
.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: min(760px,88%);
}
/* C:211 moved from ai: must stay before C:543 .ops-main>* */
.ai-empty {
  margin: auto;
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0;
}
/* C:231 */
.plan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width:760px) {
  /* C:242 moved from ai: must stay before C:543 .ops-main>* */
  .ai-msg {
    max-width: 94%;
  }
}
/* C:250 */
.switch-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
/* C:251 */
.switch-row input:where(:not(.tz-world, .tz-world *)) {
  width: auto;
  margin: 0;
}
/* C:304 */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}
/* C:305 */
.lang-switch button:where(:not(.tz-world, .tz-world *)) {
  padding: 5px 10px;
  cursor: pointer;
}
/* C:345 moved from chats: must stay before C:543 .ops-main>* */
.msgr-placeholder {
  margin: auto;
  text-align: center;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}
/* C:369 */
.avatar img:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* C:370 moved from chats: must stay before C:543 .ops-main>* */
.msg-bubble {
  position: relative;
  display: block;
  max-width: 100%;
  min-width: 58px;
  padding: 5px 9px 6px 10px;
  overflow-wrap: anywhere;
}
/* C:391 moved from chats: must stay before C:543 .ops-main>* */
.msg-reply {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 1px 0 4px;
  padding: 2px 7px 3px;
}
/* C:496 moved from guide: must stay before C:543 .ops-main>* */
.guide {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 18px;
  align-items: start;
  max-width: 1200px;
}
/* C:538 */
html:has(.ops-shell):where(:not(.tz-world, .tz-world *)),
body:has(.ops-shell):where(:not(.tz-world, .tz-world *)) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
/* K1: C:555 .modal max-height is the frame's own (.tz-dialog) */
@media (max-width:760px) {
  /* C:559 */
  body:not(.auth-body):where(:not(.tz-world, .tz-world *)) {
    padding-bottom: 0;
  }
  /* K1: C:569 .modal-back z-index 100 dropped (one value at every width, see S:27) */
  /* C:572 */
  /* QA-M1 fix (request S1-to-B8): the fallback toast stands above the phone tab bar by the shell's own measure */
  #toast {
    bottom: calc(var(--shell-bottom) + 14px);
    z-index: 120;
  }
  /* C:623 */
  .project-chips {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  /* K1: C:648 #toast bottom 116px dropped (the shell variable above) */
  /* C:652 */
  .page-head {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  /* C:652 */
  .page-head>div:first-child:where(:not(.tz-world, .tz-world *)) {
    flex: 1 1 200px;
    min-width: 0;
  }
}
/* C:721 */
.link-btn {
  cursor: pointer;
  padding: 4px;
}
/* C:788 */
@keyframes stickerPop { from{transform:scale(.6);opacity:0}to{transform:none;opacity:1} }
/* C:944 */
.pill-dep {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
/* C:945 */
.pill-dep i:where(:not(.tz-world, .tz-world *)),
.chip-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: none;
}
/* C:947 */
.chip-dot {
  margin-right: 6px;
  vertical-align: 1px;
}
/* C:955 */
.form-grid .span-2 {
  grid-column: 1/-1;
}

/* ---------- K1: the drawer frame around the task card (world/components-2.css .tz-drawer; printed by renderTaskDrawer(), app-tasks.js) ---------- */
.drawer-back.tz-scrim {
  z-index: calc(var(--z-popover) + 4); /* was 60 (95 on a phone): under the modal, under toasts */
}
.tz-drawer > .drawer {
  width: auto;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  animation: none; /* the frame moves, not the body */
  overscroll-behavior: contain;
}
.tz-drawer__head > .crumb {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* K1: modal content that used the drawer's action row keeps a plain row in the glass foot */
.tz-dialog__foot > .drawer-tools,
.tz-dialog__foot > .plan-actions {
  margin: 0;
}
/* K1: small buttons keep their size and get the 44px touch target around them */
@media (pointer: coarse) {
  .btn.small {
    position: relative;
  }
  .btn.small::after {
    content: "";
    position: absolute;
    inset: -9px -4px;
  }
}
@media (max-width:760px) {
  /* C:574 (was in the legacy paint file): iOS zooms the page when a focused field is under 16px. Not paint: a guard.
     It must beat every section rule that sets a smaller size, hence the one !important of this file. */
  input:where(:not(.tz-world, .tz-world *)),
  select:where(:not(.tz-world, .tz-world *)),
  textarea:where(:not(.tz-world, .tz-world *)) {
    font-size: 16px !important;
  }
}
/* s-shared.css (K1): the paint of everything shared, in world tokens, for both themes and the three glass levels.
   Replaces legacy-paint/p-shared.css and p-shared-late.css. Layout stays in layout/l-shared.css.
   Rules of this file: tokens only; no blur or backdrop of its own; no font under 12px; every control keeps a focus ring.
   Specificity is kept where the old sheet had it (0,1,0 to 0,2,0; bare elements are guarded and stay at 0,0,1),
   so a section file that comes later in app.css still wins inside its own section.
   Contents: 1 token bridge · 2 page and text face · 3 focus · 4 form controls · 5 buttons · 6 chips and pills ·
   7 avatars and role colours · 8 panels, page head, tables · 9 small shared pieces · 10 modal · 11 drawer frame ·
   12 recipient picker · 13 moved rules kept for their sections · 14 motion and contrast preferences */

/* ---------- 1. The token bridge: the 21 legacy names follow the theme through world tokens ---------- */
:root {
  --bg: var(--well);                 /* was the darker page behind panels; every use is an inset area on a sheet */
  --panel: var(--sheet);
  --soft: var(--well);
  --line: var(--divider);
  --text: var(--text-1);
  --muted: var(--text-2);
  --muted2: var(--text-3);
  --acc: var(--text-accent);         /* safe as text on a sheet in both themes; fills use --accent (section 5) */
  --acc2: var(--accent-hover);
  --acc-bg: color-mix(in srgb, var(--accent) 8%, var(--sheet));
  --blue: var(--text-accent);
  --red: var(--late);
  --red-bg: var(--late-bg);
  --red-tx: var(--late-text);
  --orange: var(--warn);
  --orange-bg: var(--warn-bg);
  --green: var(--ok);
  --green-bg: var(--ok-bg);
  --violet: var(--review);           /* berry, not violet (PLAN-B 9, risk 13) */
  --radius: var(--r-lg);
  --shadow: var(--glass-shadow-lift);
  --font: var(--font-text);          /* the old sheet read var(--font) and never defined it */
}
html[data-theme="dark"] { --acc-bg: color-mix(in srgb, var(--accent) 22%, var(--sheet)); }

/* ---------- 2. The page and the text face ---------- */
/* The body is clear over the world ground (html + body::before) in both themes, with no class needed:
   render() wipes body.className and there is none before /api/me answers. */
body:where(:not(.tz-world, .tz-world *)) {
  background: transparent;
  color: var(--text-1);
  /* THE text face of skinned pages, one rule: Inter 14 / 1.4 for text; titles of 23px and more take Inter Tight below. */
  font: var(--w-regular) var(--t-ui)/1.4 var(--font-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body:has(.ops-shell):where(:not(.tz-world, .tz-world *)) { -webkit-tap-highlight-color: transparent; }
button:where(:not(.tz-world, .tz-world *)),
input:where(:not(.tz-world, .tz-world *)),
select:where(:not(.tz-world, .tz-world *)),
textarea:where(:not(.tz-world, .tz-world *)) { font: inherit; }
button:where(:not(.tz-world, .tz-world *)) { color: inherit; }
a:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); text-decoration: none; }
::selection { background: var(--selection); color: var(--text-1); }

/* ---------- 3. Focus: one ring for every control outside the world, both themes ---------- */
:focus-visible:where(:not(.tz-world, .tz-world *)) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 4. Form controls (wells on sheets) ---------- */
input:where(:not(.tz-world, .tz-world *)),
select:where(:not(.tz-world, .tz-world *)),
textarea:where(:not(.tz-world, .tz-world *)) {
  border: 1px solid var(--control-hairline);
  border-radius: var(--r-sm);
  background: var(--well);
  color: var(--text-1);
  caret-color: var(--text-accent);
  accent-color: var(--accent);
  transition: border-color var(--dur-1) var(--ease-std), box-shadow var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std);
}
input:where(:not(.tz-world, .tz-world *))::placeholder,
textarea:where(:not(.tz-world, .tz-world *))::placeholder { color: var(--text-2); opacity: 1; }   /* R2 (LEAD-FIX shared 7): no --text-3 text on glass */
input:hover:where(:not(.tz-world, .tz-world *)),
select:hover:where(:not(.tz-world, .tz-world *)),
textarea:hover:where(:not(.tz-world, .tz-world *)) { border-color: var(--text-3); }
input:focus-visible:where(:not(.tz-world, .tz-world *)),
select:focus-visible:where(:not(.tz-world, .tz-world *)),
textarea:focus-visible:where(:not(.tz-world, .tz-world *)) {
  outline: 2px solid var(--focus); outline-offset: -1px;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px var(--focus-halo);
}
input:disabled:where(:not(.tz-world, .tz-world *)),
select:disabled:where(:not(.tz-world, .tz-world *)),
textarea:disabled:where(:not(.tz-world, .tz-world *)) { color: var(--text-disabled); background: transparent; cursor: not-allowed; }
/* ticks, radios, sliders, colour and file pickers keep the browser's own box; only the accent is ours */
input:is([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]):where(:not(.tz-world, .tz-world *)) { background: transparent; }
input:is([type="checkbox"], [type="radio"]):focus-visible:where(:not(.tz-world, .tz-world *)) { outline-offset: 2px; box-shadow: none; }
select:where(:not(.tz-world, .tz-world *)) { cursor: pointer; }
/* labels: plain words, no capitals */
.profile-card label:where(:not(.tz-world, .tz-world *)),
.wide-label,
.form-grid label:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-sm); font-weight: var(--w-medium); line-height: 1.3;
  text-transform: none; letter-spacing: 0;
}
.wide-label textarea:where(:not(.tz-world, .tz-world *)),
.wide-label input:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-ui); font-weight: var(--w-regular); line-height: 1.45;
  text-transform: none; letter-spacing: 0;
}
/* R2 (align): a value is Regular; only its label is Medium (the label's weight no longer leaks into the field it wraps) */
.form-grid label :is(input, select, textarea):where(:not(.tz-world, .tz-world *)),
.profile-card label :is(input, select, textarea):where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-regular); }
.section-label { color: var(--text-2); font-size: var(--t-sm); font-weight: var(--w-medium); text-transform: none; letter-spacing: 0; }
.switch-row { border: 0; color: var(--text-1); font-size: var(--t-sm); font-weight: var(--w-medium); text-transform: none; letter-spacing: 0; }
.search {
  border: 1px solid var(--control-hairline); border-radius: var(--r-sm);
  background: var(--well); color: var(--text-2);
}
.search input:where(:not(.tz-world, .tz-world *)) { border: 0; background: transparent; }

/* ---------- 5. Buttons: primary (the solid accent), secondary (.light and the bare .btn), quiet, danger ---------- */
.btn {
  border: 0;
  border-radius: var(--r-control);   /* R2: buttons radius 10 (capsules only on the glass control layers) */
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 2px rgb(var(--shadow-rgb) / .06);
  color: var(--text-1);
  font-size: var(--t-ui); font-weight: var(--w-medium); line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-std), box-shadow var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.btn:hover { background: var(--control-fill-hover); }
.btn:active { background: var(--sheet-press); }
.btn.primary {
  background: var(--accent);
  box-shadow: var(--tint-ring, 0 0 #0000), inset 0 1px 0 rgb(var(--rim-hi) / .22), 0 1px 2px rgb(var(--shadow-rgb) / .16);   /* R3 rim: Evening ring (world tokens) */
  color: var(--text-on-accent);
}
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:active { background: var(--accent-press); }
.btn.light {
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 2px rgb(var(--shadow-rgb) / .06);
  color: var(--text-1);
}
.btn.light:hover { background: var(--control-fill-hover); }
.btn.quiet { background: transparent; box-shadow: none; color: var(--text-1); }
.btn.quiet:hover { background: var(--hover-on-sheet); }
.btn.danger, .btn.light.danger, .btn.small.danger {
  background: var(--late-bg);
  box-shadow: inset 0 0 0 1px var(--late-bg);
  color: var(--late-text);
}
.btn.danger:hover, .btn.light.danger:hover { box-shadow: inset 0 0 0 1px var(--late-text); }
/* on the glass head and foot of a window or the task card the 12% tone lets the page show through (3.37:1 in Daylight,
   request B10-to-K1): the same tone laid on the sheet, solid */
:is(.tz-dialog__foot, .tz-dialog__head, .tz-drawer__head) .btn.danger { background: color-mix(in srgb, var(--late) 12%, var(--sheet)); }
/* R3.1 (CHECK-look F1): in Evening the red word #FB5F6A on the see-through control fill fell to 3.8-4.6:1 on the plain red
   buttons «Выйти», «Удалить задачу», «Удалить отдел», «Удалить должность»: the same buttons on the solid sheet read 5.36:1 */
html[data-theme="dark"] :is(.profile-me > #logout, .drawer #delete-task:not([data-ok="1"]), #dep-del.btn.danger, #pos-del.btn.danger) { background: var(--sheet); }
.btn.small { border-radius: var(--r-control); font-size: var(--t-xs); }
.btn:is(:disabled, [aria-disabled="true"]),
.btn:is(.primary, .light, .quiet, .danger, .small):is(:disabled, [aria-disabled="true"]) {
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-disabled);
  cursor: not-allowed;
}
.btn:focus-visible { box-shadow: 0 0 0 6px var(--focus-halo); }
.link-btn { border: 0; background: transparent; color: var(--text-accent); font: inherit; font-size: var(--t-sm); font-weight: var(--w-medium); border-radius: var(--r-xs); }
.link-btn:hover { text-decoration: underline; }
.icon-action {
  border: 0; border-radius: var(--r-sm);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
  transition: background-color var(--dur-1) var(--ease-std);
}
.icon-action:hover, .ops-shell .icon-action:hover { background: var(--control-fill-hover); color: var(--text-1); }
.spin { border: 2px solid rgb(var(--rim-hi) / .4); border-top-color: var(--text-on-accent); border-radius: 50%; }
.spin.dark { border-color: var(--divider); border-top-color: var(--text-accent); }

/* ---------- 6. Chips and pills ---------- */
.pill, .chip {
  border-radius: var(--r-tag);   /* R2: tags and status marks 6 */
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: var(--t-xs); font-weight: var(--w-medium); line-height: 1.2;
}
/* a chip is a switch (filters, the recipient picker): the world's filter chip */
.chip {
  border: 0;
  border-radius: var(--r-control);   /* a chip is a control: 10 */
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-1);
  font-size: var(--t-sm);
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
button.chip:hover { background: var(--control-fill-hover); }
.chip.on, button.chip.on:hover { background: var(--text-1); box-shadow: none; color: var(--sheet); }
.chip-add { background: transparent; box-shadow: none; border: 1px dashed var(--text-3); color: var(--text-2); }
.chip-dot, .pill-dep i:where(:not(.tz-world, .tz-world *)) { border-radius: 50%; }
/* priority and status: the world's five tones; the word always stands next to the colour */
.pr-high { background: var(--late-bg); color: var(--late-text); }
.pr-med { background: var(--neutral-bg); color: var(--neutral-text); }
.pr-low { background: transparent; box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-2); }
.st-new, .st-draft, .st-archived { background: var(--neutral-bg); color: var(--neutral-text); }
.st-work { background: var(--neutral-bg); color: var(--neutral-text); }   /* R2 (LEAD-C 6): quiet on every page; the accent is the one primary, the selection, the chart's lead */
.st-clarify, .st-waiting, .st-revision { background: var(--warn-bg); color: var(--warn-text); }
.st-submitted { background: var(--review-bg); color: var(--review-text); }
.st-approved, .st-published { background: var(--ok-bg); color: var(--ok-text); }
.pill-person { background: var(--well); box-shadow: inset 0 0 0 1px var(--well-hairline); color: var(--text-1); }
.pill-dep { background: var(--neutral-bg); color: var(--neutral-text); }
.badge { border-radius: var(--r-xs); background: var(--neutral-bg); color: var(--neutral-text); font-size: var(--t-xs); font-weight: var(--w-medium); }
.tg-badge { border-radius: var(--r-xs); background: var(--acc-bg); color: var(--text-accent); font-size: var(--t-xs); font-weight: var(--w-medium); }
.tg-ok { color: var(--ok-text); font-weight: var(--w-medium); }
/* project chips: the scope row above the board and the calendar */
.project-chip {
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font-size: var(--t-sm);
  text-decoration: none;
}
a.project-chip { text-decoration: none; }
.project-chip:hover { color: var(--text-1); }
.project-chip.on { background: var(--sheet); box-shadow: var(--onfield-shadow), inset 0 0 0 1px var(--onfield-hairline); color: var(--text-1); }
.project-chip i:where(:not(.tz-world, .tz-world *)) { border-radius: 50%; }
.project-chip em:where(:not(.tz-world, .tz-world *)) {
  border-radius: 0; background: none; color: var(--text-2);   /* R2: the count is quiet text */
  font-style: normal; font-size: var(--t-xs); font-weight: var(--w-regular); font-variant-numeric: tabular-nums;
}
@media (max-width:760px) {
  /* on a phone the chips sit straight on the field: solid, with the on-field edge */
  .project-chip { border: 1px solid transparent; border-radius: var(--r-control); background: var(--sheet); box-shadow: var(--onfield-shadow), inset 0 0 0 1px var(--onfield-hairline); }
  .project-chip.on { background: var(--text-1); box-shadow: none; color: var(--sheet); }
  .project-chip.on em:where(:not(.tz-world, .tz-world *)) { background: transparent; color: inherit; }
}
.lang-switch { border: 1px solid var(--well-hairline); border-radius: var(--r-sm); background: var(--well); }
.lang-switch button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: var(--r-xs); background: transparent;
  color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-medium);
}
.lang-switch button.on { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 2px rgb(var(--shadow-rgb) / .10); color: var(--text-1); }

/* ---------- 7. Avatars; the role colours come from the category set, never as text ---------- */
.role-smm { --dept: var(--cat-1); }
.role-admin { --dept: var(--cat-7); }
.role-video { --dept: var(--cat-2); }
.role-edit { --dept: var(--cat-5); }
.role-design { --dept: var(--cat-3); }
.role-marketing { --dept: var(--cat-4); }
.role-other { --dept: var(--neutral); }
.avatar {
  border-radius: 50%;
  background: color-mix(in srgb, var(--dept, var(--neutral)) 18%, var(--sheet));
  color: var(--text-1);
  font-size: var(--t-xs); font-weight: var(--w-medium); letter-spacing: .01em;
}
/* one class more than legacy-paint/p-shared-late.css (.role-marketing, .role-other), which is linked until order.txt drops it */
.avatar:is(.role-smm, .role-admin, .role-video, .role-edit, .role-design, .role-marketing, .role-other) {
  background: color-mix(in srgb, var(--dept, var(--neutral)) 18%, var(--sheet));
  color: var(--text-1);
}
.avatar.big { font-size: var(--t-h2); }
.avatar img:where(:not(.tz-world, .tz-world *)) { border-radius: 50%; }
/* R2 (LEAD-FIX shared 3): a role tag is quiet, exactly like .pill-person; the avatars keep their soft role wash */
.pill:is(.role-smm, .role-admin, .role-video, .role-edit, .role-design, .role-marketing, .role-other) {
  background: var(--well); box-shadow: inset 0 0 0 1px var(--well-hairline);
  color: var(--text-1);
}
.brand-logo { border-radius: var(--r-sm); background: var(--tint-fill); color: var(--text-on-accent); font-weight: var(--w-medium); }

/* ---------- 8. Panels (T1 sheets), the page head, tables ---------- */
.panel, .ops-panel {
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
}
.page-head h1:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-page)/var(--lh-page) var(--font-text); letter-spacing: 0;   /* R2: one page-title style (tokens.css --t-page) */
  text-wrap: balance;
}
.page-head p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
th:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); font-weight: var(--w-medium); text-align: start; }
th:where(:not(.tz-world, .tz-world *)), td:where(:not(.tz-world, .tz-world *)) { border-bottom: 1px solid var(--divider); }
tr:last-child > td:where(:not(.tz-world, .tz-world *)) { border-bottom-color: transparent; }

/* ---------- 9. Small shared pieces ---------- */
.muted.muted.muted { color: var(--text-2); }            /* the five text helpers always won (they were !important): */
.danger-txt.danger-txt.danger-txt { color: var(--late-text); }   /* a tripled class keeps that without !important */
.warn-txt.warn-txt.warn-txt { color: var(--warn-text); }
.ok-txt.ok-txt.ok-txt { color: var(--ok-text); }
.review-txt.review-txt.review-txt { color: var(--review-text); }
.micro-copy { font-size: var(--t-xs); line-height: 1.4; }
.empty-big { color: var(--text-2); }
.clean-list li:where(:not(.tz-world, .tz-world *)) { border-bottom: 1px solid var(--divider); line-height: 1.4; }
.clean-list.warn li:where(:not(.tz-world, .tz-world *)) { color: var(--warn-text); }
/* the old toast, used only while world.js is not there: an inverse solid slab */
#toast { border-radius: var(--r-md); background: var(--text-1); box-shadow: var(--glass-shadow-lift); color: var(--sheet); font-weight: var(--w-medium); }

/* ---------- 10. The modal: a fixed glass frame (components-2.css .tz-dialog), a solid body that scrolls ---------- */
.modal-back { background: var(--scrim); }
.modal h2:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-h4); font-weight: var(--w-medium); line-height: 1.3; }
.modal-body { font-size: var(--t-ui); }
.modal-body > p.muted { max-width: 68ch; }

/* ---------- 11. The drawer frame around the task card (components-2.css .tz-drawer) ---------- */
.drawer-back.tz-scrim { background: var(--scrim); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tz-drawer > .drawer {
  border-radius: calc(var(--lg-r) - var(--frame-pad));
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
  scrollbar-color: var(--scroll-thumb) transparent; scrollbar-width: thin;
}
/* --text-1: on the glass head over a bright top bar --text-2 measured 4.3:1 in Evening */
.tz-drawer__head > .crumb { color: var(--text-1); font-size: var(--t-sm); font-weight: var(--w-medium); line-height: 1.3; }
.drawer h2:where(:not(.tz-world, .tz-world *)) { font: var(--w-medium) var(--t-h3)/1.25 var(--font-text); letter-spacing: 0; }
.drawer .role-hint { background: var(--acc-bg); color: var(--text-1); }

/* ---------- 12. The recipient picker (new task and the edit form). Its generator and its paint are K1's; the
   selectors start at .recip and carry one class more than the old new-task paint, so they win until that file goes.
   Chips are section 6; layout is layout/l-newtask.css. ---------- */
.recip .recip-row > small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-medium); text-transform: none; letter-spacing: 0; }
.recip .recip-people { border: 1px solid var(--well-hairline); border-radius: var(--r-md); background: var(--well); }
.recip .recip-people summary:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-xs); color: var(--text-1); font-size: var(--t-sm); font-weight: var(--w-medium); }
/* R2: the folded row «Конкретные люди» gets the drawn chevron of /new's «Идеи и призыв» (s-newtask .nt-more), not the browser's marker */
.recip .recip-people summary:where(:not(.tz-world, .tz-world *)) { display: flex; align-items: center; list-style: none; }
.recip .recip-people summary::-webkit-details-marker { display: none; }
.recip .recip-people summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 var(--sp-2) 0 var(--sp-1);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--text-2);
  transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease-std);
}
.recip .recip-people[open] > summary::before { transform: rotate(45deg); }
.recip .recip-n { border-radius: var(--r-tag); background: transparent; color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-regular);   /* V2 K21 */
  font-variant-numeric: tabular-nums; }
.recip .factory-search.recip-search { border: 1px solid var(--control-hairline); border-radius: var(--r-sm); background: var(--sheet); color: var(--text-2); }
.recip .recip-search input:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-ui); }
.recip .assignee-picker .assignee-option { border: 1px solid var(--control-hairline); border-radius: var(--r-md); background: var(--sheet); color: var(--text-1); }
.recip .assignee-picker .assignee-option:hover { background: var(--sheet-hover); }
.recip .assignee-picker .assignee-option:has(input:checked) { border-color: var(--accent); background: var(--acc-bg); }
.recip .assignee-picker .assignee-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.recip .assignee-option .avatar { font-size: var(--t-xs); }
.recip .assignee-option b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-sm); font-weight: var(--w-medium); }
.recip .assignee-option small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.recip .micro-copy { color: var(--text-2); }

/* ---------- 13. Rules the split moved here from their sections (F2 5): kept so nothing loses its paint
   (the task-card ones went back to B4's skins: .ref-list / .files small, .warn-box p, .activity p; CORE, request B4-to-K1) ---------- */
.factory-search input:where(:not(.tz-world, .tz-world *)) { border: 0; background: transparent; box-shadow: none; font-size: var(--t-xs); }
.ai-card b:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); }
.msg>div:last-child:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-md); background: var(--well); }
.month-cell.today b:where(:not(.tz-world, .tz-world *)) { border-radius: 50%; background: var(--accent); color: var(--text-on-accent); }
.dash-kpi.ok b:where(:not(.tz-world, .tz-world *)) { color: var(--ok-text); }

/* ---------- 14. Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  /* the old motion (rot, pulse, slideIn, menuIn, sheetIn, recBlink, ringPulse, stickerPop) and every transition */
  :where(:not(.tz-world, .tz-world *)), :where(:not(.tz-world, .tz-world *))::before, :where(:not(.tz-world, .tz-world *))::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  input:where(:not(.tz-world, .tz-world *)), select:where(:not(.tz-world, .tz-world *)), textarea:where(:not(.tz-world, .tz-world *)) { border-color: var(--text-2); }
  .btn, .chip, .icon-action { box-shadow: inset 0 0 0 1px var(--text-2); }
}
@media (forced-colors: active) {
  .btn, .chip, .pill, .panel, .ops-panel, .icon-action { border: 1px solid CanvasText; }
  .chip.on, .project-chip.on, .lang-switch button.on { outline: 2px solid Highlight; }
}
/* l-shell.css: layout of the frame of every signed-in screen (package S1).
   First cut by tools/split-css.js from styles.css / creative-os.css; rewritten for the V3 shell: the sidebar, the old
   phone dock and their rules are gone. What stays from the old sheets: .ops-shell / .ops-workarea / .ops-main as the
   one scroller, the full-height pages (chats, assistant), the legacy page head (.ops-page-head).
   The bars themselves, the avatar menu and the variables --shell-top / --shell-bottom are in shell.css.
   Breakpoints: 900px switches the shell (top bar above, phone head + tab bar below), as in the world and in lg.js;
   1050px and 760px are the legacy content breakpoints and only change the side padding here. */

.ops-shell {
  display: block;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.ops-workarea {
  min-width: 0;
}
.ops-main {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: var(--shell-top) max(32px, calc((100% - 1688px) / 2)) 56px;   /* R2: the content starts on the top bar's edge (32, as on 10:22) */
}
.ops-main > *:where(:not(.tz-world, .tz-world *)) {
  max-width: 100%;
}
/* chats and the assistant fill the height between the bars: the page itself does not scroll */
body[data-page="chats"] .ops-main,
body[data-page="ai"] .ops-main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}
@media (max-width: 1050px) {
  .ops-main {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 900px) {
  .ops-main {
    padding-top: calc(var(--shell-top) + 16px);   /* R2: 16 around the phone page, as on 18:47 */
    padding-bottom: calc(var(--shell-bottom) + 24px);
  }
  body[data-page="chats"] .ops-main,
  body[data-page="ai"] .ops-main {
    padding-bottom: calc(var(--shell-bottom) + 6px);
  }
}
@media (max-width: 760px) {
  .ops-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* an open chat takes the whole screen: no phone head, no tab bar (shell.css hides them), safe areas only */
  body.chat-open .ops-main {
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  }
}

/* the legacy page head (the board and the old dashboard) */
.ops-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.ops-page-head h1:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
.ops-page-head > div > p:last-child:where(:not(.tz-world, .tz-world *)) {
  margin: 7px 0 0;
}
.ops-head-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .ops-head-actions {
    width: 100%;
  }
  .ops-head-actions .btn {
    flex: 1;
  }
  .ops-page-head:has(.dash-avatar) {
    grid-template-columns: 1fr auto;
    display: grid;
  }
}
/* shell.css: the V3 shell (package S1). World tokens only; the glass comes from the world classes (lg-glass, lg-slab, the lens).
   Markup: src/js/app-shell.js. Frame layout (.ops-shell, .ops-main): layout/l-shell.css. Contract: PLAN.md 4.2, notes/S1.md. */

/* ---------- the two variables every full-height page, the toast and the call pill are laid out against ----------
   Set on the root so that body-level layers (toast, call pill, sheets) read them too; .ops-shell inherits them.
   --shell-top     desktop: the space taken by the floating top bar (24 + 56 + 24, as drawn on 10:22); phone: the top safe area only
   --shell-bottom  phone: the tab bar with its offset and the bottom safe area (10 + 64 + 2); desktop: 0 */
:root {
  --shell-top: 104px;
  --shell-bottom: 0px;
}
@media (max-width: 900px) {
  :root {
    --shell-top: env(safe-area-inset-top, 0px);
    --shell-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 760px) {
  body.chat-open { --shell-bottom: env(safe-area-inset-bottom, 0px); }
}

/* the old shell painted its own dark sheet over the page: the frame is clear now, the ground shows through */
.shell.ops-shell { background: none; }

/* ---------- desktop: the floating top bar (R2: as drawn on 10:22: 24 from the top, 32 from the sides like the content, 56 high) ---------- */
.tz-shell-top { top: 24px; left: 32px; right: 32px; max-width: 1688px; margin-inline: auto; }
.tz-shell-top > .tz-brand { padding: 0; gap: 10px; font: var(--w-medium) var(--t-ui)/1 var(--font-text); letter-spacing: 0; }
.tz-shell-top .tz-tabs { margin-left: 8px; min-width: 0; }
.tz-shell-top .tz-topbar__end { flex: none; }
/* a count is quiet text beside its icon or label (R2), never a red pill */
.tz-shell-n { font: var(--w-regular) var(--t-xs)/1 var(--font-text); color: var(--text-2); font-variant-numeric: tabular-nums; }
.tz-tab[aria-current="page"] .tz-shell-n { color: var(--lens-label); }
.tz-shell-new { flex: none; padding: 0 16px; }
.tz-shell-new > .ic { width: 18px; height: 18px; }

/* the bell and the avatar: fills on the glass bar (no glass inside glass), capsules like the bar itself */
.tz-shell-bell, .tz-shell-me {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; border-radius: var(--r-capsule);
  background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.tz-shell-bell { gap: 6px; min-width: 40px; padding: 0 12px; color: var(--text-2); }
.tz-shell-bell:has(> [data-badge][hidden]) { padding: 0; width: 40px; }   /* nothing unread: a round button */
.tz-shell-bell > .ic { width: 18px; height: 18px; }
.tz-shell-bell:hover { background: var(--control-fill-hover); color: var(--text-1); }
.tz-shell-bell:hover > .tz-shell-n { color: var(--text-1); }
.tz-shell-bell[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--text-accent); color: var(--text-accent); }
.tz-shell-me { gap: 8px; padding: 0 12px 0 4px; color: var(--text-1); font: var(--w-medium) var(--t-ui)/1 var(--font-text); }
.tz-shell-me:hover { background: var(--control-fill-hover); }
.tz-shell-me > .tz-avatar { --ring: transparent; }
.tz-shell-me > .ic { width: 16px; height: 16px; color: var(--text-2); }
.tz-shell-me__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (pointer: coarse) { .tz-shell-bell::after, .tz-shell-me::after { content: ""; position: absolute; inset: -2px; } }   /* 44px to touch */
/* the shell's own avatar is quiet: initials in the second text colour on the inset fill (10:22, 18:47) */
.tz-shell-av { overflow: hidden; background: var(--well); color: var(--text-2); font-weight: var(--w-medium); box-shadow: inset 0 0 0 1px var(--control-hairline); }
.tz-shell-av > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (max-width: 1360px) {
  .tz-shell-top .tz-tab > .ic { display: none; }
  .tz-shell-top .tz-tab { padding: 0 12px; }
  .tz-shell-me__name { display: none; }
}
@media (max-width: 1050px) {
  .tz-shell-top { left: 24px; right: 24px; }
}
@media (max-width: 1120px) {
  .tz-shell-brand__name { display: none; }
  .tz-shell-top .tz-tabs { margin-left: 0; }
  .tz-shell-new { padding: 0 14px; }
}
@media (max-width: 1000px) {
  .tz-shell-new > span { display: none; }
  .tz-shell-new { padding: 0; width: var(--ctl-h); justify-content: center; }
}
/* «Продажи» (lib/revenue) is an eighth tab: with it in the bar the bar turns compact earlier (at 1366 px «Помощник» was
   cut and the Harry tab slid under «Новая задача»). Without the module there is no such tab and nothing here applies. */
@media (max-width: 1500px) {
  .tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-tab > .ic { display: none; }
  .tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-tab { padding: 0 12px; }
  .tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-shell-me__name { display: none; }
}
@media (max-width: 1240px) {
  .tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-shell-new > span { display: none; }
  .tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-shell-new { padding: 0; width: var(--ctl-h); justify-content: center; }
}
@media (max-width: 1100px) {
  .tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-tab { padding: 0 10px; }
}
/* the safety net: the tabs scroll sideways (no bar shown) instead of sliding under the buttons on the right */
.tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tz-shell-top:has(.tz-tab[data-k="sh-t-revenue"]) .tz-tabs::-webkit-scrollbar { display: none; }

/* ---------- phone: the head row of every page and the tab bar ---------- */
.tz-shell-phonehead { display: none; }
@media (min-width: 901px) {
  .tz-shell-tabbar { display: none; }
  .tz-shell-phone { display: none; }
}
@media (max-width: 900px) {
  .tz-shell-top { display: none; }
  /* R2: as drawn on 18:47: the brand on the left, the bell and the avatar on the right, 16 above the page title */
  .tz-shell-phonehead {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
    min-height: 44px; margin: 0 0 16px;
  }
  .tz-shell-phonehead > .tz-brand { padding: 0; gap: 10px; font: var(--w-medium) var(--t-ui)/1 var(--font-text); letter-spacing: 0; }
  .tz-shell-phonehead__end { display: flex; align-items: center; gap: 8px; flex: none; }
}
@media (max-width: 760px) {
  body.chat-open .tz-shell-tabbar,
  body.chat-open .tz-shell-phonehead { display: none; }
  body.chat-open .ops-main.tz-has-tabbar::after { display: none; }
}
.tz-shell-mebtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.tz-shell-mebtn > .tz-avatar { --ring: transparent; }
.tz-shell-tabbar .tz-tabbar__act { text-decoration: none; }
/* unslop V2:K10: on /new the «+» reads as the current tab, not as a second tinted button */
.tz-tabbar__act[aria-current="page"] { background: var(--control-fill); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--control-hairline); }
/* the unread count of «Чаты» on the phone: quiet text at the right of the icon (R2), not a red pill */
/* R2 repair (LEAD-FIX shared 1): with «Чаты» on .8fr in Russian, a count hung at 50% + 13px left its item by 2.8px at
   360 («12»). The icon and its count are one centred group on the first row (no count: the icon alone, centred as
   before); the label spans the item on the second row. */
.tz-shell-tabbar .tz-tabbar__item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
  grid-template-rows: auto auto; align-content: center; justify-items: center; row-gap: 2px; column-gap: 0;
}
.tz-shell-tabbar .tz-tabbar__item > :first-child { grid-area: 1 / 2; }
.tz-shell-tabbar .tz-tabbar__item > [data-nav-label] { grid-area: 2 / 1 / 3 / -1; min-width: 0; }
.tz-shell-tbadge {
  grid-area: 1 / 3; align-self: center; justify-self: start; margin-left: 3px;   /* centred on the icon: clear of the lens curve */
  font: var(--w-regular) var(--t-xs)/1 var(--font-text); color: var(--text-2); font-variant-numeric: tabular-nums;
}
.tz-tabbar__item[aria-current="page"] > .tz-shell-tbadge { color: var(--lens-label); }
.tz-shell-tbadge[hidden], .tz-shell-top [data-badge][hidden], .tz-shell-phonehead [data-badge][hidden], .tz-shell-pop [data-badge][hidden] { display: none; }

/* ---------- the avatar menu (desktop) = «Ещё» (phone) ---------- */
.tz-shell-pop { width: 328px; padding: 10px; }
.tz-shell-pop__in { max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tz-shell-who { display: flex; align-items: center; gap: 12px; padding: 6px 6px 10px; min-width: 0; }
.tz-shell-who__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: var(--w-regular) var(--t-sm)/1.35 var(--font-text); color: var(--text-2); }
.tz-shell-who b { font: var(--w-medium) var(--t-ui)/1.3 var(--font-text); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-shell-pop .tz-menu__item > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.tz-shell-pop .tz-menu__item { border-radius: var(--r-sm); }   /* V2 K20: 20 - 10 of padding = 10 */
.tz-shell-hint { flex: none; }
@media (max-width: 900px) {
  .tz-shell-pop { width: min(360px, calc(100vw - 24px)); }
  /* QA-M1 Q5: «Ещё» opens under the avatar (its lower edge is 54px below --shell-top, the popover 8px lower) and must
     end above the tab bar: the list scrolls inside. 20px = the popover's own padding, 8px = the gap over the tab bar. */
  .tz-shell-pop__in { max-height: calc(100dvh - var(--shell-top) - var(--shell-bottom) - 62px - 20px - 8px); }
}
@media (max-width: 767px) {
  /* QA-M1 Q5: a phone allows three backdrop layers and the shell already has them (capsule, tab bar, a lens):
     «Ещё» is opaque glass here, lit rim kept (the same decision as K1's frames in components-2.css). */
  #tz-pop-me {
    --glass-backdrop: none;
    --glass-fill: var(--sheet); --glass-fill-lift: var(--sheet);
    --glass-core: transparent; --glass-core-lift: transparent;
  }
}

/* ---------- the look controls (tzLookControls): also used on the profile page ---------- */
.tz-look { display: grid; gap: 2px; min-width: 0; }
.tz-look__seg { display: flex; width: 100%; margin: 0 0 6px; }
.tz-look__seg > .lg-lens-item { flex: 1 1 auto; padding: 0 8px; }
/* these lenses lie on an inset fill inside a popover or on a sheet: no backdrop layer of their own (the phone budget is 3) */
.tz-look__seg > .lg-lens { --lens-backdrop: none; }
.tz-look__ground:empty { display: none; }

/* ---------- the legacy page head, on tokens (was in legacy-paint/p-shell.css) ---------- */
.ops-page-head h1:where(:not(.tz-world, .tz-world *)) { font: var(--w-medium) var(--t-page)/var(--lh-page) var(--font-text); letter-spacing: 0; color: var(--text-1); }   /* R2: the page-title style (tokens.css --t-page) */
.ops-page-head > div > p:last-child:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); line-height: 1.45; }

@media print {
  .tz-shell-phonehead { display: none; }
}

/* «Выйти»: the word in the main text colour, the icon keeps the warning tone (measured: the red word on the lifted
   Evening glass over a bright tile drops to 4.37:1) */
.tz-shell-pop .tz-menu__item--danger { color: var(--text-1); }
/* l-dashboard.css: empty on purpose. The dashboard's sheet is ../dashboard.css (listed in order.txt right after this file). */
/* dashboard.css: «Обзор», the page layer of the dashboard on top of the world. R1: V3 «Пульт» (package S2, proto/v3/v3.css).
   R2 (2026-11-13): rebuilt to the approved frames docs/figma-obzor-*.png (notes/r2/dashboard.md): glass only on the capsule,
   the scope switch and the lens; content on solid sheets with hairlines; one accent (send, the lens, one leading thing per
   chart); red only for overdue. World tokens only; the shell (top bar, tab bar, gutters) belongs to shell.css.
   Root: .v3-main.tz-world#tz-dash. Shapes by role (tokens.css): sheets --r-sheet, cards --r-card, rows --r-control. */

/* ---------- frame ---------- */
.v3-main {
  position: relative;
  max-width: 1640px; margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; gap: var(--gutter);
}
.v3-main :where(h1, h2, h3, p) { margin: 0; }
.v3-sep { color: var(--text-3); }
.v3-cmd .v3-sep { color: var(--text-2); }   /* on the field text-3 measures 2.7-4.4:1 over the ground; text-2 holds AA */
.v3-main .nowrap { white-space: nowrap; }
.v3-main .num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- the head: date | scope ; capsule ; «Ваше на сегодня» ; cards ---------- */
.v3-cmd {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); row-gap: 16px; align-items: center;
  grid-template-areas: "hello scope" "quick quick" "today today" "cards cards";
}
.v3-cmd--one { grid-template-areas: "hello hello" "quick quick" "today today" "cards cards"; }
.v3-hello { grid-area: hello; min-width: 0; }
/* the page title: the shared token of every page title (LEAD-C 5: Inter Medium 32/38, 24/30 at 900px and less, no negative tracking) */
.v3-h1 { font: var(--w-medium) var(--t-page)/var(--lh-page) var(--font-text); letter-spacing: 0; color: var(--text-1); }
.v3-subline { margin-top: 4px; font: var(--w-regular) var(--t-sm)/1.4 var(--font-text); color: var(--text-2); }
.v3-subline b { font-weight: var(--w-regular); color: inherit; }

/* the capsule: glass, the microphone quiet, send the one tinted action of the page */
.v3-quick { grid-area: quick; min-width: 0; }
.v3-quick.tz-quick--hero { height: 64px; padding: 8px 8px 8px 24px; gap: 8px; }
.v3-quick .tz-quick__input { height: 48px; font: var(--w-regular) max(16px, var(--t-body))/1.4 var(--font-text); }
.v3-quick .tz-quick__mic { --ib: 44px; }
.v3-quick .tz-quick__send { --ib: 48px; }
.v3-quick .tz-iconbtn > .ic { width: 20px; height: 20px; }
/* tinted before the first letter too (the frame); the button stays disabled until there is text, as before */
.v3-main .v3-quick.tz-quick:has(.tz-quick__input:placeholder-shown) .tz-quick__send,
.v3-main .v3-quick.tz-quick .tz-quick__send:disabled { background: var(--tint-fill); color: var(--text-on-accent); box-shadow: var(--tint-ring, none); }   /* R3 rim: Evening ring (world tokens) */

/* the scope switch: glass segmented control with the lens */
.v3-scope { grid-area: scope; --ctl-h: 48px; flex: none; padding: 4px; }
.v3-scope > .lg-lens-item { padding: 0 18px; font-size: var(--t-ui); line-height: 40px; }

.v3-today { grid-area: today; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v3-today__line { min-width: 0; font: var(--w-medium) var(--t-sm)/1.4 var(--font-text); color: var(--text-1); }
.v3-today__line b { font-weight: var(--w-medium); }
.v3-today__b { color: var(--text-2); }
/* text-1, not accent: these two sit on the field, where accent text fails over the blue light of the ground */
.v3-today__all { position: relative; flex: none; font: var(--w-medium) var(--t-sm)/1.4 var(--font-text); color: var(--text-1); text-decoration: none; }
.v3-today__all::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.v3-today__all:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.v3-example { grid-area: today; font: var(--w-regular) var(--t-sm)/1.4 var(--font-text); color: var(--text-2); }
.v3-example__q { color: var(--text-1); }

/* one, two or three cards share the width (no empty third of a row when there are two) */
.v3-cards { grid-area: cards; list-style: none; margin: -8px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.v3-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  min-height: 72px; padding: 12px 12px 12px 16px; border-radius: var(--r-card);
  transition: background-color var(--dur-1) var(--ease-std);
}
.v3-card__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v3-card__when { font: var(--w-regular) var(--t-xs)/1.35 var(--font-text); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-card.is-late .v3-card__when { color: var(--late-text); }
.v3-card__title { font: var(--w-medium) var(--t-ui)/1.4 var(--font-text); color: var(--text-1); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-card__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v3-card__title:focus-visible { outline-offset: 1px; box-shadow: none; }
.v3-card__end { position: relative; z-index: 1; flex: none; }

/* ---------- four numbers: label, figure, one comparison line; equal heights ---------- */
.v3-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gutter); }
.v3-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: var(--r-card); }
.v3-stat__label { font: var(--w-medium) var(--t-sm)/1.35 var(--font-text); color: var(--text-2); }
.v3-stat__link { color: inherit; text-decoration: none; }
.v3-stat__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v3-stat:has(.v3-stat__link:hover) .v3-stat__label { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
/* the kit's «Цифра»: Inter 32/36 Medium, no tracking (LEAD-FIX dashboard 2 / shared 2: one family) */
.v3-stat__n { font: var(--w-medium) var(--t-num)/var(--lh-num) var(--font-text); letter-spacing: 0; color: var(--text-1); }
.v3-stat__n.is-late { color: var(--late-text); }
.v3-stat__note { font: var(--w-regular) var(--t-xs)/1.4 var(--font-text); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3-stat__note b { font-weight: var(--w-regular); color: inherit; }
/* a link inside a note: accent text, as the sheets' links (an underline at rest measured 1.6:1 in the contrast audit) */
.v3-inl { position: relative; z-index: 1; color: var(--text-accent); text-decoration: none; }
.v3-inl:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- rows of sheets ---------- */
.v3-row { display: grid; gap: var(--gutter); align-items: stretch; }
.v3-row--2 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.v3-row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.v3-row--new { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* «Моё»: two columns; the last sheet of a column grows to the common bottom only when it holds a list: a sheet whose content
   is one quiet line keeps its own height (LEAD-FIX dashboard 4: never a tall empty sheet). Without «Мои задачи» the columns
   are week | «Горит» and my requests follow as one sheet of the full width (app-dashboard.js body(), LEAD-FIX dashboard 7) */
.v3-me { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gutter); align-items: stretch; }
.v3-col { display: flex; flex-direction: column; gap: var(--gutter); min-width: 0; }
.v3-col > :last-child:has(.v3-list > li) { flex: 1 1 auto; }
/* the same in the rows of two sheets: a sheet that only says «nothing here» keeps its own height beside a full one */
.v3-row > .tz-sheet:has(> .v3-empty), .v3-row > .v3-hot:has(> .v3-hot__body > .v3-empty) { align-self: start; }
.v3-chart { min-width: 0; }

/* sheet heads: the block title in the medium weight, counts and keys as quiet text, links in accent text */
.v3-main .tz-sheet__head { flex-wrap: wrap; row-gap: 4px; margin-bottom: 16px; }
.v3-main .tz-sheet__title { font-weight: var(--w-medium); }
.v3-main .tz-count { font: var(--w-regular) var(--t-ui)/1 var(--font-text); color: var(--text-2); }
.v3-main .tz-sheet__sub { font-weight: var(--w-regular); }
.v3-main .tz-sheet__sub b { font-weight: var(--w-medium); }   /* Q-dashboard-2: a bare <b> rendered 700 */
.v3-main .tz-sheet__actions { gap: 16px; }
.v3-link, .v3-all { position: relative; font: var(--w-medium) var(--t-sm)/1.35 var(--font-text); color: var(--text-accent); text-decoration: none; }
.v3-link::after, .v3-all::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.v3-link:hover, .v3-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.v3-all { display: inline-block; align-self: flex-start; margin-top: 12px; }
.v3-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font: var(--w-regular) var(--t-xs)/1.35 var(--font-text); color: var(--text-2); }
.v3-key > li { display: inline-flex; align-items: center; gap: 6px; }
.v3-key__d { display: block; flex: none; border-radius: 50%; background: var(--viz-dot); }
.v3-key__d.is-1 { width: 7px; height: 7px; }
.v3-key__d.is-2 { width: 12px; height: 12px; }
.v3-key__l { display: block; flex: none; width: 14px; height: 2px; border-radius: 1px; background: var(--viz-dot); }
.v3-key__l.is-lead { background: var(--viz-emph); }
.v3-key--foot { margin-top: 12px; }

/* lists inside sheets: title and one meta line; one hairline between rows, none after the last */
.v3-list { margin-inline: -12px; }
.v3-main .v3-r { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; border-radius: var(--r-control); }
.v3-main .v3-r.tz-row--compact { min-height: 52px; }
.v3-list > li + li > .tz-row::before { left: 12px; right: 12px; }
.v3-main .v3-r .tz-row__title { font-size: var(--t-ui); line-height: 1.4; -webkit-line-clamp: 1; }
.v3-main .v3-r .tz-row__meta { margin-top: 2px; font: var(--w-regular) var(--t-xs)/1.35 var(--font-text); }
.v3-main .v3-r .tz-row__meta .is-late { color: var(--late-text); }
.v3-state { font: var(--w-regular) var(--t-xs)/1.35 var(--font-text); color: var(--text-2); white-space: nowrap; }
.v3-state.is-late { color: var(--late-text); }
.v3-empty, .v3-quiet { padding: 4px 0; font: var(--w-regular) var(--t-ui)/1.5 var(--font-text); color: var(--text-2); }
.v3-more { padding-top: 8px; font: var(--w-regular) var(--t-xs)/1.4 var(--font-text); color: var(--text-2); }
.v3-more b { font-weight: var(--w-medium); color: var(--text-1); }

/* ---------- the charts of this page (TZCharts quiet looks, src/world/charts.js) ---------- */
.v3-main .tz-chart--quiet .ax { font: var(--w-regular) var(--t-xs)/1 var(--font-text); fill: var(--text-2); }
.v3-main .tz-chart--quiet .ax--today { font-weight: var(--w-medium); fill: var(--text-1); }
.v3-main .tz-chart--quiet .lbl { font: var(--w-regular) var(--t-ui)/1 var(--font-text); fill: var(--text-1); }
.v3-main .tz-chart--quiet .val { font: var(--w-medium) var(--t-ui)/1 var(--font-text); fill: var(--text-1); font-variant-numeric: tabular-nums; }
.v3-main .tz-chart--quiet .today-band { fill: var(--well); }
.v3-main .tz-chart--quiet .rowline { stroke: var(--divider); stroke-width: 1; shape-rendering: crispEdges; }
.v3-main .tz-chart--quiet .dot { fill: var(--viz-dot); }
.v3-main .tz-chart--quiet .dot--today { fill: var(--viz-emph); }
.v3-main .tz-chart--quiet .muted { fill: var(--viz-muted); }
.v3-main .tz-chart--quiet .odn { font: var(--w-medium) var(--t-ui)/1 var(--font-text); fill: var(--late-text); font-variant-numeric: tabular-nums; }
.v3-main .tz-chart--quiet .odz { font: var(--w-regular) var(--t-ui)/1 var(--font-text); fill: var(--text-3); }
.v3-main .tz-chart--quiet .track { fill: var(--well); }
.v3-main .tz-chart--quiet .bar { fill: var(--viz-dot); }
.v3-main .tz-chart--quiet .bar-lead { fill: var(--viz-emph); }
.v3-main .tz-chart--quiet .l-lead { fill: none; stroke: var(--viz-emph); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v3-main .tz-chart--quiet .l-quiet { fill: none; stroke: var(--viz-dot); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.v3-main .tz-chart--quiet .tz-chart__sum { margin-top: 12px; font: var(--w-regular) var(--t-sm)/1.45 var(--font-text); }
.v3-main .tz-chart--quiet .tz-chart__sum b { font-weight: var(--w-medium); }
/* the shared tooltip shows the key of a quiet series in the same colours (components.js reads --series-<key>) */
.tz-tip { --series-lead: var(--viz-emph); --series-quiet: var(--viz-dot); }

/* «Горит»: groups as quiet labels with counts */
.v3-hot { display: flex; flex-direction: column; }
.v3-hot__body { display: flex; flex-direction: column; }
.v3-hg + .v3-hg { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--divider); }
.v3-hg__t { display: flex; align-items: baseline; gap: 6px; padding: 2px 0 4px; font: var(--w-regular) var(--t-sm)/1.35 var(--font-text); color: var(--text-2); }
.v3-hg__n { color: var(--text-2); }
.v3-hg--rest .v3-hg__t { display: block; padding: 4px 0 0; line-height: 1.6; }
.v3-my .v3-hg__t + .v3-list, .v3-my .v3-list + .v3-hg__t { margin-top: 4px; }
.v3-my .v3-list + .v3-hg__t { padding-top: 12px; border-top: 1px solid var(--divider); }

/* «Моя неделя»: seven days, one dot each (small: one, large: two and more), today in the accent, the lens on the chosen day */
.v3-strip.tz-week { --lens-r: 12px; gap: 4px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
/* Evening: the weekday of the chosen day sits in the lens's top crescent; a fainter crescent keeps the white label above
   4.5:1 (measured 4.48 at «больше стекла» on a phone, ALIGN audit) */
html[data-theme="dark"] .v3-strip.tz-week { --lens-crescent: .10; }
.v3-day.tz-day { min-height: 80px; padding: 8px 0; gap: 4px; border-radius: 12px; }
.v3-day .tz-day__wd { font: var(--w-regular) var(--t-xs)/1.35 var(--font-text); }
.v3-day .tz-day__n { font: var(--w-medium) var(--t-h4)/1.2 var(--font-text); }
.v3-day.is-today .tz-day__wd::after { display: none; }
.v3-day.is-today:not([aria-selected="true"]) .tz-day__n { color: var(--text-accent); }
.v3-day__dot { display: grid; place-items: center; width: 12px; height: 12px; margin-top: 2px; }
.v3-day__dot::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--viz-muted); }
.v3-day__dot.is-1::before { width: 7px; height: 7px; background: var(--viz-dot); }
.v3-day__dot.is-2::before { width: 12px; height: 12px; background: var(--viz-dot); }
.v3-day.is-today .v3-day__dot:is(.is-1, .is-2)::before { background: var(--viz-emph); }
.v3-day__dot.is-late::before { background: var(--late); }
.v3-read { margin-top: 12px; font: var(--w-regular) var(--t-sm)/1.45 var(--font-text); color: var(--text-2); }
.v3-read b { font-weight: var(--w-regular); color: inherit; }
.v3-dayhead { margin: 16px 0 4px; font: var(--w-medium) var(--t-sm)/1.35 var(--font-text); color: var(--text-1); }
.v3-dayhead .v3-sep + span { font-weight: var(--w-regular); color: var(--text-2); }

/* newcomer */
.v3-main .v3-r--step { grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 12px; }
.v3-step { display: grid; place-items: center; width: 24px; height: 24px; color: var(--text-2); }
.v3-step .ic { width: 18px; height: 18px; }
.v3-step.is-done + .tz-row__main .tz-row__title { color: var(--text-2); }
.v3-dept { font: var(--w-regular) var(--t-ui)/1.4 var(--font-text); color: var(--text-2); }
.v3-dept b { color: var(--text-1); font-weight: var(--w-medium); }
.v3-people { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; }
.v3-people > li { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.v3-people__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: var(--w-medium) var(--t-ui)/1.3 var(--font-text); color: var(--text-1); }
.v3-people__who > span + span { font: var(--w-regular) var(--t-sm)/1.3 var(--font-text); color: var(--text-2); }
.v3-dept__chat { display: inline-block; }   /* V2:K3: starts on the same left line as the avatars */

/* phone: people x 7 days as dot rows (drawn instead of the chart at 900px and less) */
.v3-dotrows { --dw: 24px; }
.v3-dr__grid { position: relative; isolation: isolate; }
.v3-dr__grid::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(var(--dw) * 6); width: var(--dw); border-radius: 8px; background: var(--well); }
.v3-dr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 48px; }
.v3-dr__list { list-style: none; margin: 0; padding: 0; }
.v3-dr__list > li + li { border-top: 1px solid var(--divider); }
.v3-dr__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v3-dr__name { font: var(--w-medium) var(--t-sm)/1.3 var(--font-text); color: var(--text-1); overflow-wrap: anywhere; }
.v3-dr__late { font: var(--w-regular) var(--t-xs)/1.3 var(--font-text); color: var(--late-text); }
.v3-dr__late b { font-weight: var(--w-medium); }
.v3-dr__dots { display: grid; grid-template-columns: repeat(7, var(--dw)); justify-items: center; align-items: center; }
.v3-dr__dots > i { width: 3px; height: 3px; border-radius: 50%; background: var(--viz-muted); }
.v3-dr__dots > i.is-1 { width: 7px; height: 7px; background: var(--viz-dot); }
.v3-dr__dots > i.is-2 { width: 12px; height: 12px; background: var(--viz-dot); }
.v3-dr__dots > i.is-today:is(.is-1, .is-2) { background: var(--viz-emph); }
.v3-dr--head { min-height: 32px; }
.v3-dr--head .v3-dr__dots > span { font: var(--w-regular) var(--t-xs)/1 var(--font-text); color: var(--text-2); }
.v3-dr--head .v3-dr__dots > span.is-today { font-weight: var(--w-medium); color: var(--text-1); }

@media (forced-colors: active) {
  .v3-key__d, .v3-key__l, .v3-dr__dots > i, .v3-day__dot::before { forced-color-adjust: none; }
  .v3-card, .v3-stat { border: 1px solid CanvasText; }
}

/* ---------- narrower desktops ---------- */
@media (max-width: 1240px) and (min-width: 901px) {
  .v3-row--2, .v3-row--3, .v3-row--new { grid-template-columns: minmax(0, 1fr); }
  .v3-me { display: flex; flex-direction: column; }
  .v3-col { display: contents; }
  .v3-week { order: 1; } .v3-hot--me { order: 2; } .v3-my { order: 3; } .v3-req { order: 4; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .v3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .v3-main { gap: 12px; }
  .v3-cmd, .v3-cmd--one { grid-template-columns: minmax(0, 1fr); row-gap: 12px; grid-template-areas: "hello" "quick" "scope" "today" "cards"; }
  .v3-quick.tz-quick--hero { height: 56px; padding: 4px 4px 4px 20px; }
  .v3-quick .tz-quick__input { height: 48px; }
  .v3-quick .tz-quick__mic, .v3-quick .tz-quick__send { --ib: 48px; }
  .v3-quick:has(.tz-quick__input:placeholder-shown) .tz-quick__send { display: none; }   /* send appears with the first letter */
  /* the scope control is a filled track here (drawn without the glass classes; see command() in app-dashboard.js) */
  .v3-scope { --ctl-h: 52px; --lens-backdrop: none; display: grid; grid-auto-columns: minmax(0, 1fr); width: 100%; padding: 4px; border-radius: var(--r-capsule); }
  .v3-scope > .lg-lens-item { min-height: 44px; line-height: 44px; padding: 0 8px; }   /* 44px targets (R2-F4) */
  .v3-today { margin-top: 4px; }
  .v3-cards { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: -4px; }
  .v3-card { min-height: 80px; }
  .v3-card__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  .v3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .v3-stat { padding: 16px; }
  .v3-stat__note { -webkit-line-clamp: 3; }
  .v3-row--2, .v3-row--3, .v3-row--new { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .v3-me { display: flex; flex-direction: column; gap: 12px; }
  .v3-col { display: contents; }
  .v3-week { order: 1; } .v3-hot--me { order: 2; } .v3-my { order: 3; } .v3-req { order: 4; }
  .v3-load .tz-sheet__sub { order: 3; flex-basis: 100%; }
  .v3-main .v3-r .tz-row__title { -webkit-line-clamp: 2; }
  .v3-day.tz-day { min-height: 72px; }
  .v3-day .tz-day__n { font-size: var(--t-body); }
}
/* tablets: the cards share one row as on a desktop (titles on two lines) */
@media (max-width: 900px) and (min-width: 601px) {
  .v3-cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  .v3-card { align-items: flex-start; flex-direction: column; gap: 12px; }
  .v3-card__text { align-self: stretch; flex: none; }
  .v3-card__end { margin-top: auto; }
}
/* small phones: a row's end (button or state) moves under the title when both do not fit */
@media (max-width: 480px) {
  .v3-main .v3-r { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 8px; }
  .v3-main .v3-r > .tz-row__main { flex: 1 1 0; min-width: 58%; }
  .v3-main .v3-r > .tz-row__end { flex: none; margin-left: auto; }
  .v3-main .v3-r > .v3-step { flex: none; }
  /* the start steps stay a grid: the label wraps, the button stays on the first line, rows are even */
  .v3-main .v3-r--step { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; }
  .v3-main .v3-r--step .tz-row__main { min-width: 0; }
  .v3-main .v3-r--step .tz-row__end { margin-left: 0; }
  .v3-main .v3-r--step .tz-row__title { -webkit-line-clamp: 3; }
}
@media (max-width: 420px) { .v3-dotrows { --dw: 22px; } }
@media (max-width: 370px) { .v3-dotrows { --dw: 20px; } .v3-card { padding-left: 12px; } }
/* l-board.css: layout of the area "board". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line). */
/* S:19 */
.task-card {
  padding: 13px;
  margin-bottom: 10px;
}
/* S:19 */
.task-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* S:19 */
.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
/* S:19 */
.task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
/* S:19 */
.task-meta span:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* S:22 */
.image-preview img:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}
/* S:22 */
.video-preview {
  min-height: 130px;
}
/* C:38 */
.factory-head {
  margin-bottom: 18px;
}
/* C:38 */
.factory-summary-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr)) 1.65fr;
  margin-bottom: 14px;
  overflow: hidden;
}
/* C:38 */
.factory-summary-strip article:where(:not(.tz-world, .tz-world *)),
.factory-summary-strip>button:where(:not(.tz-world, .tz-world *)) {
  padding: 14px 17px;
  text-align: left;
}
/* C:38 */
.factory-summary-strip article:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
/* C:38 */
.factory-summary-strip>button:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* C:38 */
.factory-summary-strip>button svg:last-child:where(:not(.tz-world, .tz-world *)) {
  margin-left: auto;
}
/* C:38 */
.factory-controls {
  display: flex;
  gap: 9px;
  padding: 10px;
  margin-bottom: 14px;
}
/* C:38 */
.factory-controls select:where(:not(.tz-world, .tz-world *)) {
  min-width: 150px;
  padding: 9px;
}
/* C:38 */
.factory-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
}
/* C:38 */
.factory-search input:where(:not(.tz-world, .tz-world *)) {
  padding: 9px 0;
  min-width: 210px;
}
/* C:38 */
.factory-board {
  display: grid;
  grid-template-columns: repeat(4,minmax(255px,1fr));
  gap: 12px;
  align-items: start;
  overflow: auto;
  padding-bottom: 8px;
}
/* C:38 */
.factory-column {
  min-height: 560px;
  padding: 11px;
}
/* C:38 */
.factory-column>header:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
/* C:38 */
.factory-column>header>div:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* C:38 */
.factory-column h2:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* C:38 */
.factory-column>header>b:where(:not(.tz-world, .tz-world *)) {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
/* C:38 */
.factory-card-stack {
  display: grid;
  gap: 9px;
}
/* C:38 */
.factory-card-stack .task-card {
  padding: 12px;
  margin: 0;
  text-align: left;
}
/* C:38 */
.factory-card-stack .task-card h3:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0;
}
/* C:38 */
.factory-empty {
  min-height: 160px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
}
/* C:38 */
.factory-empty p:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0 0;
}
@media (max-width:1050px) {
  /* C:53 */
  .factory-board {
    grid-template-columns: repeat(2,minmax(255px,1fr));
  }
  /* C:53 */
  .factory-summary-strip {
    grid-template-columns: repeat(4,1fr);
  }
  /* C:53 */
  .factory-summary-strip>button:where(:not(.tz-world, .tz-world *)) {
    grid-column: span 4;
  }
}
@media (max-width:760px) {
  /* C:54 */
  .factory-summary-strip {
    grid-template-columns: 1fr 1fr;
  }
  /* C:54 */
  .factory-summary-strip article:where(:not(.tz-world, .tz-world *)) {
    padding: 11px;
  }
  /* C:54 */
  .factory-summary-strip>button:where(:not(.tz-world, .tz-world *)) {
    grid-column: span 2;
  }
  /* C:54 */
  .factory-controls {
    overflow: auto;
    padding: 9px;
  }
  /* C:54 */
  .factory-controls select:where(:not(.tz-world, .tz-world *)) {
    min-width: 145px;
  }
  /* C:54 */
  .factory-search {
    margin-left: 0;
  }
  /* C:54 */
  .factory-search input:where(:not(.tz-world, .tz-world *)) {
    min-width: 165px;
  }
  /* C:54 */
  .factory-board {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  /* C:54 */
  .factory-column {
    min-height: auto;
  }
}
/* C:82 */
.head-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -3px;
}
/* C:92 */
.factory-summary-strip {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
@media (max-width:760px) {
  /* C:313 */
  .factory-controls {
    flex-wrap: wrap;
  }
  /* C:313 */
  .factory-controls select:where(:not(.tz-world, .tz-world *)) {
    flex: 1 1 140px;
    min-width: 0;
  }
  /* C:313 */
  .factory-controls .factory-search {
    flex: 1 1 170px;
    min-width: 0;
  }
}
/* C:544 */
.task-card b:where(:not(.tz-world, .tz-world *)) {
  overflow-wrap: break-word;
  min-width: 0;
}
/* C:954 */
.task-form[data-kind="task"] .content-only {
  display: none !important;
}
/* C:997 */
.factory-controls {
  flex-wrap: wrap;
}
/* C:998 */
.factory-controls .factory-search {
  flex: 1 1 200px;
  max-width: 340px;
}
/* C:999 */
.factory-controls .factory-search input:where(:not(.tz-world, .tz-world *)) {
  min-width: 0;
  width: 100%;
}
/* ---------- B4 additions (stage-2 skin; paint is skin/s-board.css) ---------- */
/* the four figures: the label wraps under its number instead of touching it (QA-M1 Q8, «Просрочено45» at 390) */
.factory-summary-strip article {
  flex-wrap: wrap;
  column-gap: var(--sp-2);
  row-gap: 2px;
  min-width: 0;
}
/* the filter bar is glass (lg-glass in the generator): it never scrolls itself, its controls wrap */
.factory-controls {
  align-items: center;
  padding: var(--sp-2);
  gap: var(--sp-2);
}
.factory-controls select:where(:not(.tz-world, .tz-world *)) {
  min-height: var(--ctl-h);
  padding: 0 var(--sp-8) 0 var(--sp-4);
}
@media (max-width:760px) {
  /* unslop V2:T1: the strip is 2x2 on phones (the unconditional repeat(4) above overrides the old 760px rule) */
  .factory-summary-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  /* unslop L1: a cut select label ends in an ellipsis */
  .factory-controls select {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}
.factory-search {
  min-height: var(--ctl-h);
  padding: 0 var(--sp-4);
}
/* the columns are a heading and a count on the ground with the cards beneath: no box around the boxes */
.factory-board {
  gap: var(--sp-4);
}
.factory-column {
  min-height: 0;
  padding: 0;
}
.factory-column>header:where(:not(.tz-world, .tz-world *)) {
  padding: var(--sp-1) var(--sp-1) 0;
  margin-bottom: var(--sp-3);
}
.factory-column>header>b:where(:not(.tz-world, .tz-world *)) {
  min-width: 26px;
  height: 24px;
  padding: 0 var(--sp-2);
}
.factory-card-stack {
  gap: var(--sp-2);
}
.factory-card-stack .task-card {
  padding: var(--sp-3) var(--sp-4);
}
.task-line {
  flex-wrap: wrap;
  row-gap: 2px;
}
.task-meta {
  flex-wrap: wrap;
  row-gap: 2px;
}
.factory-empty {
  min-height: 120px;
}
@media (max-width:760px) {
  .factory-summary-strip article {
    flex-direction: column;
    align-items: flex-start;
  }
  .factory-controls {
    overflow: visible;
  }
}
/* ---------- R2 (G1, 2026-11-13): the board as drawn (notes/r2/tasks.md) ---------- */
/* the four figures: figure and label on one baseline */
.factory-summary-strip { margin-bottom: var(--sp-4); }
.factory-summary-strip article:where(:not(.tz-world, .tz-world *)) {
  padding: var(--sp-3) var(--sp-4);
  align-items: baseline;
}
/* the filter row: a plain row of fields, 40 high, search on the right */
.factory-controls {
  padding: 0;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.factory-controls select:where(:not(.tz-world, .tz-world *)) {
  height: var(--ctl-h);
  min-height: var(--ctl-h);
  min-width: 0;
  padding: 0 var(--sp-8) 0 var(--sp-3);
}
.factory-search {
  height: var(--ctl-h);
  min-height: var(--ctl-h);
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
}
.factory-controls .factory-search {
  flex: 0 1 280px;
  margin-left: auto;
}
.factory-controls .factory-search input:where(:not(.tz-world, .tz-world *)) { padding: 0; height: 100%; }
/* columns: name and count side by side, cards 16 inside, 12 apart (unslop V2:T3, T20) */
.factory-board { gap: var(--sp-4); }
.factory-column>header:where(:not(.tz-world, .tz-world *)) {
  justify-content: flex-start;
  gap: var(--sp-2);
  padding: 0 var(--sp-1);
  margin-bottom: var(--sp-3);
}
.factory-column>header>b:where(:not(.tz-world, .tz-world *)) {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
}
.factory-card-stack { gap: var(--sp-3); }
.factory-card-stack .task-card {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
}
.factory-card-stack .task-card h3:where(:not(.tz-world, .tz-world *)) { margin: 0; }
.task-line {
  gap: var(--sp-2);
  min-height: 20px;
}
.task-card .task-line .pill { padding: 1px var(--sp-2); line-height: 18px; }
.card-pills { gap: var(--sp-1); }
.task-card .pill { padding: 2px var(--sp-2); line-height: 16px; }
.task-meta {
  gap: var(--sp-3);
  margin-top: 0;
}
.task-meta span:where(:not(.tz-world, .tz-world *)) { gap: var(--sp-1); }
.task-meta .task-due { margin-right: auto; }
.factory-empty {
  min-height: 0;
  padding: var(--sp-6) var(--sp-4);
}
.factory-empty p:where(:not(.tz-world, .tz-world *)) { margin: 0; }
/* the calm empty board */
.board-empty {
  display: grid;
  justify-items: start;
  gap: var(--sp-2);
  max-width: 560px;
  padding: var(--sp-6);
}
.board-empty h2:where(:not(.tz-world, .tz-world *)),
.board-empty p:where(:not(.tz-world, .tz-world *)) { margin: 0; }
.board-empty__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
/* phone-only parts are hidden on wider screens */
.board-tools, .board-switch, .factory-late { display: none; }
/* tablet (unslop V2:T4): the search takes its own full row */
@media (max-width:1050px) {
  .factory-controls .factory-search { flex: 1 1 100%; max-width: none; margin-left: 0; }
}
/* phone: one column at a time, the four column counts are the switch */
@media (max-width:760px) {
  .factory-summary-strip { display: none; }
  .factory-late { display: inline-block; padding: 0 var(--sp-2); line-height: 22px; vertical-align: 1px; }
  .board-tools {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
  }
  .board-tools select:where(:not(.tz-world, .tz-world *)) {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--ctl-h);
    padding: 0 var(--sp-8) 0 var(--sp-3);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .board-tool {
    flex: none;
    width: var(--ctl-h);
    height: var(--ctl-h);
    display: grid;
    place-items: center;
    padding: 0;
  }
  .factory-controls { margin-bottom: var(--sp-3); }
  .factory-controls:not(.show-filters):not(.show-search) { display: none; }
  .factory-controls:not(.show-filters) select { display: none; }
  .factory-controls:not(.show-search) .factory-search { display: none; }
  .factory-controls select:where(:not(.tz-world, .tz-world *)) { flex: 1 1 140px; }
  .factory-controls .factory-search { flex: 1 1 100%; }
  .board-switch {
    display: grid;
    grid-auto-columns: minmax(0, auto);   /* R2 repair (Q-tasks-1): tracks follow their labels and share the rest, so «На проверке» keeps room at 360 */
    width: 100%;
    height: auto;
    margin-bottom: var(--sp-4);
  }
  .board-switch > .lg-lens-item {
    display: grid;
    justify-items: center;
    gap: 0;
    padding: var(--sp-2) var(--sp-1);
    line-height: normal;
  }
  .board-switch > .lg-lens-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .factory-board { display: block; }
  .factory-column:not(.is-picked) { display: none; }
  .factory-column>header:where(:not(.tz-world, .tz-world *)) { display: none; }
}
/* s-board.css: the paint of the tasks board (B4, stage 2; R2 composition G1, 2026-11-13). Layout: layout/l-board.css.
   World tokens only, both themes (Evening dark, Daylight light).
   R2: content sits on solid sheets with hairlines; the only glass of the page besides the shell is the phone's column
   switch (a segmented control with the lens). The filter row is a plain row of fields, no glass bar. The columns are a
   heading and a quiet count on the ground with the cards beneath. One accent: the lens; red only for overdue. */

/* ---------- 1. The page head and the project mark ---------- */
.head-dot { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sheet-hairline); }
/* the phone caption carries the overdue count as red words (the strip is hidden there) */
/* a quiet tag on a sheet: red words straight on the ground fell to 4.0:1 in Daylight */
.factory-late {
  border-radius: var(--r-tag);
  background: var(--sheet-fill);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
  color: var(--late-text);
  white-space: nowrap;
}
.factory-late b { font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }

/* ---------- 2. The four figures: one quiet sheet, cells on hairlines ---------- */
.factory-summary-strip {
  border: 1px solid transparent;
  border-radius: var(--r-card);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
}
.factory-summary-strip article:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-right: 1px solid var(--divider);
  background: transparent;
}
.factory-summary-strip article:last-child:where(:not(.tz-world, .tz-world *)) { border-right: 0; }
.factory-summary-strip article span:where(:not(.tz-world, .tz-world *)) {
  font: var(--w-medium) var(--t-h4)/1.2 var(--font-text);
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}
.factory-summary-strip article small:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-sm);
  font-weight: var(--w-regular);
  color: var(--text-2);
}
.factory-summary-strip article.alert span:where(:not(.tz-world, .tz-world *)) { color: var(--late-text); }

/* ---------- 3. The filter row: plain fields on the ground (no glass bar) ---------- */
.factory-controls { color: var(--text-1); }
.factory-controls select:where(:not(.tz-world, .tz-world *)),
.board-tools select:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-control);
  background-color: var(--sheet-fill);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-regular);
  cursor: pointer;
}
.factory-controls select:hover:where(:not(.tz-world, .tz-world *)),
.board-tools select:hover:where(:not(.tz-world, .tz-world *)) { background-color: var(--sheet-hover); }
.factory-search {
  border: 0;
  border-radius: var(--r-control);
  background: var(--sheet-fill);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-2);
}
.factory-search:hover { background: var(--sheet-hover); }
.factory-search:focus-within { box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 4px var(--focus-halo); }
.factory-controls .factory-search input:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-ui);
}
.factory-controls .factory-search input:where(:not(.tz-world, .tz-world *))::placeholder { color: var(--text-2); }
/* the phone's two square buttons (filters and sort, search) */
.board-tool {
  border: 0;
  border-radius: var(--r-control);
  background: var(--sheet-fill);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.board-tool:hover { background: var(--sheet-hover); }
.board-tool[aria-expanded="true"] { background: var(--sheet-press); box-shadow: inset 0 0 0 1px var(--control-hairline); }
.board-tool:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 4. The phone's column switch: glass track, the lens on the chosen column ---------- */
.board-switch > .lg-lens-item {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
/* the drop is twice as tall as a one-line segment and its figure sits in the upper half: a dense body (as the tab bar's lens)
   and a faint top crescent keep the label at 4.5:1 (measured: 3.08 on Evening without them) */
.board-switch > .lg-lens { --lens-fill: var(--lens-fill-strong); }
html[data-theme="dark"] .board-switch > .lg-lens { --lens-crescent: .1; }
.board-switch > .lg-lens-item b {
  font: var(--w-medium) var(--t-h4)/1.2 var(--font-text);
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.board-switch > .lg-lens-item span {
  font-size: var(--t-xs);
  font-weight: var(--w-regular);
  color: var(--text-2);
}
.board-switch > .lg-lens-item[aria-pressed="true"] { font-weight: var(--w-medium); }
.board-switch > .lg-lens-item[aria-pressed="true"] span { color: inherit; }

/* ---------- 5. Columns: a heading and a quiet count on the ground ---------- */
.factory-column {
  border: 0;
  background: transparent;
}
.factory-column h2:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  color: var(--text-1);
}
/* unslop V2:T20: the count is quiet text beside the name, no pill; the coloured stage dots are gone */
.factory-column>header>b:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
  font-size: var(--t-ui);
  font-weight: var(--w-regular);
  font-variant-numeric: tabular-nums;
}
/* unslop V2:T9: a column does not repeat its own status on every card (the generator drops it too); sub-statuses stay */
.factory-column.intake .st-new, .factory-column.production .st-work, .factory-column.review .st-submitted { display: none; }

/* ---------- 6. The task card: a solid sheet ---------- */
.task-card {
  border: 1px solid transparent;
  border-radius: var(--r-card);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.task-card:hover,
.factory-card-stack .task-card:hover { background: var(--sheet-hover); }
.task-card:active { background: var(--sheet-press); }
.task-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the project line: 12px and --text-2 (QA-M1 Q15) */
.task-line,
.factory-card-stack .task-line {
  color: var(--text-2);
  font-size: var(--t-xs);
}
.task-card h3:where(:not(.tz-world, .tz-world *)),
.factory-card-stack .task-card h3:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  line-height: 1.43;
}
/* tags on a card: radius 6; people are quiet; «Срочно» is a quiet amber tag, not red (red is for overdue only) */
.task-card .pill { border-radius: var(--r-tag); font-weight: var(--w-regular); }
.task-card .pill-person { background: var(--well); box-shadow: none; color: var(--text-2); }
.task-card .pr-high { background: var(--warn-bg); color: var(--warn-text); }
/* R2 align: Daylight tone words on their tint measured 4.76-4.9:1 (phone «Срочно», «Одобрено» at «больше стекла»);
   one fifth of the text colour in the word keeps the hue and gives 5.5:1 and more (Evening is 6.2:1 and more as is) */
html:not([data-theme="dark"]) :is(.task-card, .ops-main) :is(.pr-high, .st-clarify, .st-waiting, .st-revision) { color: color-mix(in srgb, var(--warn-text) 80%, var(--text-1)); }
html:not([data-theme="dark"]) :is(.task-card, .ops-main) :is(.st-approved, .st-published) { color: color-mix(in srgb, var(--ok-text) 80%, var(--text-1)); }
html:not([data-theme="dark"]) :is(.task-card, .ops-main) .st-submitted { color: color-mix(in srgb, var(--review-text) 80%, var(--text-1)); }
html:not([data-theme="dark"]) .factory-late { color: color-mix(in srgb, var(--late-text) 80%, var(--text-1)); }
.task-meta,
.factory-card-stack .task-meta {
  color: var(--text-2);
  font-size: var(--t-xs);
}
.task-meta svg { flex: none; }
/* the deadline: red only when overdue; «сегодня», «завтра» stay grey */
.task-meta .warn-txt.warn-txt.warn-txt { color: var(--text-2); }

/* ---------- 7. An empty column, and the calm empty board ---------- */
.factory-empty {
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  color: var(--text-2);
}
.factory-empty p:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-sm);
  line-height: 1.5;
}
.board-empty {
  border-radius: var(--r-sheet);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-2);
}
.board-empty h2:where(:not(.tz-world, .tz-world *)) {
  font: var(--w-medium) var(--t-h4)/1.3 var(--font-text);
  color: var(--text-1);
}
.board-empty p:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-ui); line-height: 1.5; color: var(--text-2); }
.board-empty__link {
  border-radius: var(--r-control);
  color: var(--text-accent);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  text-decoration: none;
}
.board-empty__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.board-empty__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 8. Print (QA-R1 F-4): the board prints as paper in both themes ----------
   The world prints its own sections black on white (base.css); the board is not a world section, so here the tokens it
   reads are pointed at the light system colours: with color-scheme light, Canvas is the white sheet and CanvasText the
   black ink in either theme. The phone controls (tools, switch) are not printed. */
@media print {
  .factory-head, .factory-summary-strip, .factory-controls, .factory-board, .board-empty {
    color-scheme: light;
    --sheet: Canvas; --sheet-fill: Canvas; --sheet-hover: Canvas; --sheet-press: Canvas; --well: Canvas; --ground: Canvas;
    --control-fill: Canvas; --control-fill-hover: Canvas; --acc-bg: Canvas;
    --sheet-hairline: GrayText; --well-hairline: GrayText; --control-hairline: GrayText; --divider: GrayText;
    --text-1: CanvasText; --text-2: CanvasText; --text-3: CanvasText; --text-accent: CanvasText;
    --ok-bg: Canvas; --warn-bg: Canvas; --late-bg: Canvas; --review-bg: Canvas; --neutral-bg: Canvas;
    --ok-text: CanvasText; --warn-text: CanvasText; --late-text: CanvasText; --review-text: CanvasText; --neutral-text: CanvasText;
    color: CanvasText;
  }
  .factory-summary-strip, .task-card, .task-card .pill, .board-empty { box-shadow: inset 0 0 0 1px GrayText; }
  .task-card { break-inside: avoid; }
  .board-tools, .board-switch { display: none; }
}
/* l-drawer.css: layout of the area "drawer". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line). */
/* S:21 */
.drawer-back {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}
/* B4: the task card body. Width, height, position and the slide belong to the frame (.tz-drawer, components-2.css and
   l-shared.css); the close button and the crumb sit in the frame's glass head (app-tasks.js renderTaskDrawer prints it).
   .drawer is the only scroller. */
.drawer {
  overflow: auto;
  padding: var(--sp-6);
}
/* S:21 */
.drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
/* S:21 */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--sp-6);
  margin: var(--sp-4) 0;
}
/* B4: facts as a definition grid on hairlines, no box per fact */
.meta-grid div:where(:not(.tz-world, .tz-world *)) {
  padding: var(--sp-2) 0;
  min-width: 0;
}
.status-row {
  padding: var(--sp-2) 0;
}
/* S:21 */
.meta-grid span:where(:not(.tz-world, .tz-world *)) {
  display: block;
  margin-bottom: 2px;
}
/* S:21 */
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
/* S:21 */
.status-row select:where(:not(.tz-world, .tz-world *)) {
  margin-left: auto;
}
/* B4: a section of the card is a block between hairlines, not a box in the box */
.drawer section:where(:not(.tz-world, .tz-world *)) {
  padding: var(--sp-5) 0 0;
  margin-top: var(--sp-5);
}
/* the insets (brand rules, questions to settle, ideas) keep a padding of their own */
.drawer .brand-context,
.drawer .warn-box,
.drawer .ai-card {
  padding: var(--sp-3) var(--sp-4);
}
/* S:21 */
.bullets {
  margin: 0;
  padding-left: 18px;
}
/* S:21 */
.bullets li:where(:not(.tz-world, .tz-world *)) {
  margin: 6px 0;
}
/* S:21 */
.warn-box p:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0;
}
/* S:21 */
.check-list label:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 0;
}
/* S:21 */
.ref-list,
.files {
  display: grid;
  gap: 8px;
}
/* S:21 */
.ref-list a:where(:not(.tz-world, .tz-world *)),
.files a:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}
/* S:21 */
.ref-list small:where(:not(.tz-world, .tz-world *)),
.files small:where(:not(.tz-world, .tz-world *)) {
  margin-left: auto;
}
/* S:22 */
.file-item {
  padding: 11px;
}
/* S:22 */
.file-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* S:22 */
.file-header a:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  padding: 0;
}
/* S:22 */
.file-header small:where(:not(.tz-world, .tz-world *)) {
  margin-left: 6px;
}
/* S:22 */
.file-meta {
  margin: 6px 0 0;
}
/* S:22 */
.file-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
/* S:22 */
.media-preview {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  margin-bottom: 10px;
  overflow: hidden;
}
/* S:23 */
.quick-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}
/* S:23 */
.qa-btn {
  flex: 1;
  min-width: 150px;
  padding: 14px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
/* S:23 */
.role-hint {
  padding: 12px 14px;
  margin-bottom: 14px;
}
/* S:23 */
.role-hint b:where(:not(.tz-world, .tz-world *)) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* S:23 */
.hint-box {
  padding: 10px 12px;
  margin: 6px 0;
}
/* S:23 */
.file-item {
  padding: 12px;
}
/* S:23 */
.file-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
/* S:23 */
.file-header a:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
/* S:23 */
.file-meta {
  margin-bottom: 8px;
}
/* S:23 */
.file-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
/* S:23 */
.upload-inline {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
/* S:23 */
.upload-inline input:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
}
/* S:23 */
.chat-box .messages {
  display: grid;
  gap: 10px;
}
/* S:23 */
.msg {
  display: flex;
  gap: 10px;
}
/* S:23 */
.msg>div:last-child:where(:not(.tz-world, .tz-world *)) {
  padding: 9px 12px;
  max-width: 82%;
}
/* S:23 */
.msg.mine {
  flex-direction: row-reverse;
}
/* S:23 */
.msg p:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* S:23 */
.chat-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
/* S:23 */
.chat-input input:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
}
/* S:23 */
.chat-input button:where(:not(.tz-world, .tz-world *)) {
  width: 42px;
}
/* S:23 */
.activity p:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
  padding: 9px 0;
}
/* S:27 */
@keyframes slideIn { from{transform:translateX(40px);opacity:.6} }
/* S:31 */
.brand-context {
  padding: 12px 14px;
  margin: 12px 0;
}
/* S:31 */
.brand-context h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 6px;
}
/* S:31 */
.brand-context p:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0 0;
}
@media (max-width:760px) {
  /* S:36; unslop V2:T18: two facts per row on phones */
  .meta-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: var(--sp-4);
  }
  /* B4 */
  .drawer {
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
  }
  /* S:36 */
  .upload-inline {
    display: block;
  }
  /* S:36 */
  .upload-inline .btn {
    margin-top: 8px;
    width: 100%;
  }
}
@media (max-width:760px) {
  /* C:54 */
  .drawer .quick-actions {
    display: grid;
  }
  /* C:54 */
  .drawer .qa-btn {
    min-width: 0;
  }
}
/* C:248 */
.drawer-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
/* C:249 */
.drawer-tools {
  margin: 4px 0 12px;
}
/* C:316 */
.files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
/* C:317 */
.files-head h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* C:318 */
.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* C:319 */
.file-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
}
/* C:364 */
.msgr-messages .msg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  max-width: min(480px,78%);
  margin-top: 2px;
}
/* C:365 */
.msgr-messages .msg.first {
  margin-top: 8px;
}
/* C:366 */
.msgr-messages .msg.me {
  align-self: flex-end;
  align-items: flex-end;
}
/* C:367 */
.msgr-messages .msg.with-ava {
  padding-left: 40px;
  max-width: min(520px,84%);
}
@media (max-width:760px) {
  /* C:449 */
  .msgr-messages .msg {
    max-width: 86%;
  }
  /* C:450 */
  .msgr-messages .msg.with-ava {
    max-width: 92%;
  }
  /* B4: the old phone z-index (95) and the safe-area paddings of .drawer went: the frame sits on the world scale
     (l-shared.css) and keeps the status bar and the home indicator clear itself (components-2.css). */
}
/* C:927 */
.drawer.still {
  animation: none;
}
/* ---------- B4 additions ---------- */
/* the quick actions take the world's control height */
.qa-btn {
  min-height: var(--ctl-h);
  padding: var(--sp-2) var(--sp-4);
}
/* the revision note window (bindTaskDrawer): its inline style moved here; paint is the shared field (s-shared.css) */
.rev-note {
  display: block;
  width: 100%;
  min-height: 110px;
  resize: vertical;
}
/* a history line: the sentence, then who and when on a quiet second line */
.activity p small:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-2);
  margin-top: 2px;
}
.activity .act-data {
  overflow-wrap: anywhere;
}
/* the comment field and its send button share one height */
.chat-input button:where(:not(.tz-world, .tz-world *)) {
  width: var(--ctl-h);
  height: var(--ctl-h);
  flex: none;
  display: grid;
  place-items: center;
}
.file-item .media-preview {
  margin-bottom: var(--sp-3);
}
/* the file picker never runs past the body on a phone */
.upload-inline input[type="file"]:where(:not(.tz-world, .tz-world *)) {
  min-width: 0;
  max-width: 100%;
}
@media (max-width:760px) {
  .upload-inline input[type="file"]:where(:not(.tz-world, .tz-world *)) {
    width: 100%;
  }
}
/* a quick action keeps its label on one line on wide screens; the row wraps instead */
@media (min-width:761px) {
  .qa-btn {
    white-space: nowrap;
  }
}
/* ---------- R2 (G1, 2026-11-13): the card sheet, the edit form and the revision window in the same shapes ---------- */
.drawer-pills { gap: var(--sp-1); margin-bottom: var(--sp-4); }
.drawer-pills .pill { padding: 2px var(--sp-2); line-height: 16px; }
.quick-actions { gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-4); }
.file-dl { padding: var(--sp-1) var(--sp-2); }
/* the edit form: «Заголовок», «Срок», «Приоритет», «Проект» and the content fields are one height */
.task-edit .form-grid :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) {
  height: var(--ctl-h);
  padding-block: 0;
}
/* s-drawer.css: the paint of the task card (B4, stage 2; R2 composition G1, 2026-11-13). Replaces legacy-paint/p-drawer.css.
   R2: weights 400/500 only, tags radius 6, controls radius 10, one leading action tinted, every label in text colours.
   World tokens only, both themes. Layout: layout/l-drawer.css. The frame (glass head, solid body, scrim) is K1's
   (components-2.css, s-shared.css section 11); renderTaskDrawer prints it. Inside the body there are no boxes in the box:
   sections sit between hairlines, facts are a definition grid on hairlines, the few insets (brand rules, questions to
   settle, ideas, hints, files) are quiet wells. Nothing is glass over an image or a video preview. */

/* ---------- 1. Head of the body: pills, quick actions, role hint ---------- */
.drawer { color: var(--text-1); }
.drawer h3:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-body);
  font-weight: var(--w-medium);
}
.drawer h2:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); letter-spacing: 0; }
/* tags under the title: radius 6, people quiet, «Срочно» a quiet amber tag (red is for overdue only) */
.drawer-pills .pill { border-radius: var(--r-tag); font-weight: var(--w-regular); }
.drawer-pills .pill-person { background: var(--well); box-shadow: none; color: var(--text-2); }
.drawer-pills .pr-high { background: var(--warn-bg); color: var(--warn-text); }
/* R2 align: Daylight tone words on their tint measured 4.9-5.2:1; one fifth of the text colour keeps the hue, 5.5:1 and more */
html:not([data-theme="dark"]) .drawer :is(.drawer-pills, .status-row, .file-header, .file-item) :is(.pr-high, .st-clarify, .st-waiting, .st-revision, .badge-orange) { color: color-mix(in srgb, var(--warn-text) 80%, var(--text-1)); }
html:not([data-theme="dark"]) .drawer :is(.drawer-pills, .status-row, .file-header, .file-item) :is(.st-approved, .st-published, .badge-green) { color: color-mix(in srgb, var(--ok-text) 80%, var(--text-1)); }
html:not([data-theme="dark"]) .drawer :is(.drawer-pills, .status-row, .file-header, .file-item) :is(.st-submitted, .badge-blue) { color: color-mix(in srgb, var(--review-text) 80%, var(--text-1)); }
/* the status «В работе» is quiet: s-shared.css makes .st-work neutral on every page (LEAD-C 6), so no local override */
.drawer h3 svg { vertical-align: -3px; color: var(--text-2); }

/* the next step (R2): one leading action for the reader's role, tinted (the first of the row unless it is a question);
   every other action is a quiet button. The window's one tinted button; no tone fills, no gradient, no glow. */
.qa-btn {
  border: 0;
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.qa-btn:hover { background: var(--control-fill-hover); }
.qa-btn:active { background: var(--sheet-press); }
.quick-actions > .qa-btn:first-child:not(.ask) { background: var(--accent); box-shadow: none; color: var(--text-on-accent); }
.quick-actions > .qa-btn:first-child:not(.ask):hover { background: var(--accent-hover); }
.quick-actions > .qa-btn:first-child:not(.ask):active { background: var(--accent-press); }
.qa-btn svg { color: inherit; }
.qa-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.role-hint { border-radius: var(--r-card); line-height: 1.5; font-size: var(--t-sm); }
.drawer .role-hint.role-hint { background: var(--well); }   /* R2: a quiet well, not an accent wash (over s-shared) */
.drawer .role-hint b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-weight: var(--w-medium); }

/* ---------- 2. Facts and status: hairlines, no boxes ---------- */
.drawer .meta-grid div:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-top: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
}
.meta-grid span:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-xs);
  font-weight: var(--w-regular);
}
.meta-grid b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
/* the deadline: red only when overdue; «сегодня», «завтра» in the text colour */
.meta-grid .warn-txt.warn-txt.warn-txt { color: var(--text-1); }
.drawer .status-row {
  border: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  font-size: var(--t-sm);
  font-weight: var(--w-regular);
}
.drawer .status-row select { border-radius: var(--r-control); }
.drawer .status-row .pill { border-radius: var(--r-tag); font-weight: var(--w-regular); }
.status-row small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-regular); }

/* ---------- 3. Sections: blocks between hairlines ---------- */
.drawer section:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-top: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.desc { line-height: 1.55; color: var(--text-1); }
.bullets { color: var(--text-1); }

/* the insets: quiet wells, one tone each, no frame */
.drawer .brand-context {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
  line-height: 1.45;
}
.drawer .brand-context h3:where(:not(.tz-world, .tz-world *)),
.drawer .brand-context b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-ui); }
.brand-context p:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); }
.drawer .warn-box {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
}
.drawer .warn-box b:where(:not(.tz-world, .tz-world *)) { color: var(--warn-text); font-weight: var(--w-medium); }
.drawer .ai-card {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
}
.drawer .ai-card b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-weight: var(--w-medium); }
.drawer .ai-card p:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); line-height: 1.45; }
.drawer .ai-card em:where(:not(.tz-world, .tz-world *)) {
  background: transparent;
  color: var(--text-2);
  font-size: var(--t-xs);
  font-style: normal;
  font-weight: var(--w-regular);
  font-variant-numeric: tabular-nums;
}
.hint-box,
.drawer .hint-box {
  border: 0;
  border-radius: var(--r-control);
  background: var(--well);
  color: var(--text-1);
  line-height: 1.5;
}
.hint-box b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-weight: var(--w-medium); }

/* ---------- 4. Checklist and references ---------- */
.check-list label:where(:not(.tz-world, .tz-world *)) {
  border-bottom: 1px solid var(--divider);
  color: var(--text-1);
  cursor: pointer;
}
.check-list label:last-child:where(:not(.tz-world, .tz-world *)) { border-bottom: 0; }
.check-list input:checked + span { color: var(--text-2); text-decoration: line-through; }
.ref-list a:where(:not(.tz-world, .tz-world *)),
.ref-list span:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-control);
  background: var(--well);
  color: var(--text-1);
  overflow-wrap: anywhere;
}
.ref-list a:hover:where(:not(.tz-world, .tz-world *)) { background: var(--sheet-hover); color: var(--text-1); }
.ref-list small:where(:not(.tz-world, .tz-world *)),
.files small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.drawer .warn-box p:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); }

/* ---------- 5. Files: rows in a well; previews framed, nothing over them ---------- */
.file-item,
.drawer .file-item {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
}
.file-header a:where(:not(.tz-world, .tz-world *)),
.drawer .files .file-header a:where(:not(.tz-world, .tz-world *)) {
  background: transparent;
  color: var(--text-1);
  font-weight: var(--w-medium);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.file-header a:hover:where(:not(.tz-world, .tz-world *)) { text-decoration: underline; text-underline-offset: 3px; }
.file-header a svg { flex: none; color: var(--text-2); }
/* R2 repair (LEAD-FIX tasks 2): the version mark never wraps; a long file name ends in an ellipsis (full name in its title) */
.file-header small:where(:not(.tz-world, .tz-world *)) { flex: none; white-space: nowrap; color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-regular); }
.file-header a > span:where(:not(.tz-world, .tz-world *)) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files > .file-item { min-width: 0; }   /* a grid item: without it the one-line name would widen the column */
.file-header .badge, .file-item .badge { border-radius: var(--r-tag); font-weight: var(--w-regular); }
.file-meta { font-size: var(--t-xs); color: var(--text-2); }
.file-meta small:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-xs); }
.file-dl {
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-1);
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  text-decoration: none;
}
.file-dl:hover { background: var(--control-fill-hover); }
.media-preview {
  border: 0;
  border-radius: var(--r-control);
  background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
}
/* file state badges: the world tones (the old badge colours lived in the unlinked quarantine sheet) */
.file-header .badge-green { background: var(--ok-bg); color: var(--ok-text); }
.file-header .badge-orange { background: var(--warn-bg); color: var(--warn-text); }
.file-header .badge-blue { background: var(--review-bg); color: var(--review-text); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-text); }
.upload-inline input[type="file"]:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
/* QA-R1 F-1: the browser's own button of the file field wears the secondary button (the fill and hairline of .btn.light),
   no DOM change. Its words still come from the browser: the page-printed label and status line wait for the deep rebuild D1b. */
.upload-inline input[type="file"]:where(:not(.tz-world, .tz-world *))::file-selector-button {
  min-height: var(--ctl-h-sm);
  margin-inline-end: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 2px rgb(var(--shadow-rgb) / .06);
  color: var(--text-1);
  font-family: inherit;
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.upload-inline input[type="file"]:where(:not(.tz-world, .tz-world *)):hover::file-selector-button { background: var(--control-fill-hover); }
.upload-inline input[type="file"]:where(:not(.tz-world, .tz-world *)):active::file-selector-button { background: var(--sheet-press); }

/* ---------- 6. Questions and comments: bubbles as in the chats ---------- */
.drawer .msg>div:last-child:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
}
/* one's own comment: a step of the neutral surface with a hairline, not an accent wash */
.drawer .msg.mine>div:last-child:where(:not(.tz-world, .tz-world *)) { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-1); }
.msg p:where(:not(.tz-world, .tz-world *)) { line-height: 1.4; overflow-wrap: anywhere; }
.drawer .msg small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
/* the send button is quiet until there is text to send (then it is the accent) */
.chat-input button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.chat-input button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--control-fill-hover); color: var(--text-1); }
.chat-input:has(input:not(:placeholder-shown)) button:where(:not(.tz-world, .tz-world *)) { background: var(--accent); box-shadow: none; color: var(--text-on-accent); }
.chat-input:has(input:not(:placeholder-shown)) button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--accent-hover); }
.drawer .chat-input input { border-radius: var(--r-control); }
/* unslop V2:T10: «Удалить задачу» is a quiet button with red text; after the first press («Точно удалить?») it is red */
.drawer #delete-task:not([data-ok="1"]) { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--late-text); }
.drawer .drawer-tools .btn, .drawer #delete-task, .files-head .btn, .file-actions .btn, .upload-inline .btn { border-radius: var(--r-control); }

/* ---------- 7. History: sentences on hairlines ---------- */
.activity p:where(:not(.tz-world, .tz-world *)) { border-bottom: 1px solid var(--divider); color: var(--text-1); font-size: var(--t-sm); line-height: 1.35; }
.activity p:last-child:where(:not(.tz-world, .tz-world *)) { border-bottom: 0; }
.activity .act-data { font-weight: var(--w-medium); }
.activity small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-regular); }
.activity span:where(:not(.tz-world, .tz-world *)) { color: inherit; }

/* ---------- 8. The revision note window and the edit form (fields radius 10) ---------- */
.rev-note { font-size: var(--t-body); line-height: 1.45; border-radius: var(--r-control); }
.task-edit :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { border-radius: var(--r-control); }
.task-edit .preview-head h2 { font-weight: var(--w-medium); }

/* ---------- 9. Carried for the chats (B7): the rule sat in the old drawer paint by the split's classifier ---------- */
.msg.me .link-btn { color: var(--text-on-accent); }

/* ---------- 10. Print (QA-R1 F-4): the card prints as paper in both themes ----------
   The world prints its own sections black on white (base.css); the card's body is not a world section, so here the tokens
   it reads are pointed at the light system colours: with color-scheme light, Canvas is the white sheet and CanvasText the
   black ink in either theme. The glass layers of the frame are not printed (the head is a world section: black on clear). */
@media print {
  .drawer-back, .tz-drawer, .drawer {
    color-scheme: light;
    --sheet: Canvas; --sheet-fill: Canvas; --sheet-hover: Canvas; --sheet-press: Canvas; --well: Canvas; --ground: Canvas;
    --control-fill: Canvas; --control-fill-hover: Canvas; --acc-bg: Canvas;
    --scrim: transparent;   /* the veil over the board (s-shared paints .drawer-back.tz-scrim, above the frame's own print rule) */
    --sheet-hairline: GrayText; --well-hairline: GrayText; --control-hairline: GrayText; --divider: GrayText;
    --text-1: CanvasText; --text-2: CanvasText; --text-3: CanvasText; --text-accent: CanvasText;
    --accent: Canvas; --accent-hover: Canvas; --text-on-accent: CanvasText;
    --ok-bg: Canvas; --warn-bg: Canvas; --late-bg: Canvas; --review-bg: Canvas; --neutral-bg: Canvas;
    --ok-text: CanvasText; --warn-text: CanvasText; --late-text: CanvasText; --review-text: CanvasText; --neutral-text: CanvasText;
    color: CanvasText;
  }
  .tz-drawer { background: Canvas; box-shadow: none; }
  .tz-drawer::before, .tz-drawer::after { display: none; }
  .drawer { background: Canvas; }
  /* the insets and the buttons keep an edge once their fills are paper */
  .drawer :is(.brand-context, .warn-box, .ai-card, .hint-box, .role-hint, .file-item, .qa-btn, .drawer-pills .pill) { box-shadow: inset 0 0 0 1px GrayText; }
}
/* l-newtask.css: geometry of «Новая задача» (/new). R2 (group newtask): the capsule is the one rich thing.
   Before parsing: one centred column (max 880) with the title, the capsule, a quiet hint, two examples, two quiet links.
   After parsing: the capsule column (sticky on wide screens) on the left, the form sheet on the right.
   Paint: skin/s-newtask.css. The recipient picker, the kind switch, .preview-head, .two-blocks and .ai-card also serve the
   edit window of the task card (app-tasks.js), so their base rules stay generic; what is only this page's is under .nt-page. */

/* ---------- 1. The page and its two states ---------- */
.nt-page {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}
.nt-page.is-parsed { max-width: none; }
.nt-head { margin-bottom: var(--sp-6); }
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.is-parsed .compose-grid { grid-template-columns: minmax(380px, 44fr) minmax(0, 56fr); }
.compose-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  min-width: 0;
}
/* the capsule stays in view while the form is read (V2 U4-26) */
.is-parsed .compose-panel {
  position: sticky;
  top: 0;
}

/* ---------- 2. The capsule: one glass slab (radius --r-xl from glass.css), the field and its foot ---------- */
.nt-capsule {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* a field sized by its content never widens the slab */
  gap: var(--sp-3);
  padding: var(--sp-4);
  min-width: 0;
}
.nt-field {
  position: relative;
  min-width: 0;
}
/* the field and the marks under it share one box, one font and one wrap, so a mark sits under its words */
#brief-text,
.nt-marks {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
  font: var(--w-regular) var(--t-h4)/1.5 var(--font-text);
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  tab-size: 4;
}
#brief-text {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 136px;
  resize: none;
  field-sizing: content;
}
.nt-marks {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.rec-line {
  margin: 0 var(--sp-2);
}
.rec-line i:where(:not(.tz-world, .tz-world *)) {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--sp-2);
  vertical-align: 1px;
  animation: pulse 1s infinite;
}
.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 var(--sp-2);
}
.file-preview span:where(:not(.tz-world, .tz-world *)) {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 100%;
  min-height: var(--ctl-h-sm);
  padding: 0 var(--sp-1) 0 var(--sp-3);
}
.file-preview b:where(:not(.tz-world, .tz-world *)) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.file-preview button:where(:not(.tz-world, .tz-world *)) {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
}
.nt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.nt-foot .attach-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 320px;
  min-width: 0;
  max-width: 440px;
}
.nt-foot #ref-url {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--ctl-h);
  padding: 0 var(--sp-3);
}
.nt-foot .btn {
  height: var(--ctl-h);
  padding: 0 var(--sp-4);
}
.nt-foot .compose-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  margin-left: auto;
}
.nt-foot .compose-actions .btn { flex: none; }
.mic-round {
  width: var(--ctl-h);
  height: var(--ctl-h);
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}

/* ---------- 3. Around the capsule: the hint, the examples, the quiet links, the legend ---------- */
.nt-hint,
.nt-examples {
  margin: 0 var(--sp-6);
}
.nt-hint span:first-child:where(:not(.tz-world, .tz-world *)) { margin-right: var(--sp-1); }
.nt-hint span + span:where(:not(.tz-world, .tz-world *)) { text-transform: lowercase; }   /* the five words are the form's own labels (keys); in a line they read in lower case */
.nt-examples {
  display: grid;
  gap: var(--sp-1);
}
.nt-examples p:where(:not(.tz-world, .tz-world *)) { margin: 0; }
.nt-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  margin: 0 var(--sp-3);
}
.nt-links .btn {
  height: var(--ctl-h);
  padding: 0 var(--sp-3);
}
.nt-understood {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin: 0 var(--sp-6);
}
.nt-understood .nt-u {
  display: grid;
  gap: var(--sp-1);
  min-width: 0;
}
.nt-understood dt,
.nt-understood dd { margin: 0; }

/* ---------- 4. The parsed form (its base classes are shared with the edit window) ---------- */
.ai-preview {
  padding: var(--sp-6);
  min-width: 0;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.preview-head h2:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* the four fields of one row share one height (V2 T5) */
.task-form .form-grid :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) {
  height: var(--ctl-h);
  padding-block: 0;
}
.ai-preview .task-form {
  display: grid;
  gap: var(--sp-5);
}
.ai-preview .task-form > * { margin: 0; }
.ai-preview .task-form > .muted { margin-top: calc(var(--sp-3) * -1); }
.ai-preview .nt-group {
  display: grid;
  gap: var(--sp-2);
}
.ai-preview .nt-group .section-label { margin: 0; }
/* folded: the chips kept from the parse (on or switched off) and every chip switched on since; nobody receives unseen */
.nt-recip:not(.is-open) .chip:not(.nt-keep):not(.on) { display: none; }
.nt-recip:not(.is-open) .recip-row:not(:has(.nt-keep, .chip.on)) { display: none; }
.nt-recip:not(.is-open) .micro-copy { display: none; }
.nt-recip-all {
  justify-self: start;
  min-height: var(--ctl-h-sm);
  padding: 0;
}
.ai-preview #p-desc { min-height: 96px; }
.two-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.ai-preview .two-blocks .section-label { margin: 0 0 var(--sp-2); }
.ai-preview .clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-preview .clean-list li:where(:not(.tz-world, .tz-world *)) { padding: var(--sp-2) 0; }
.ai-preview .clean-list li:last-child:where(:not(.tz-world, .tz-world *)) { padding-bottom: 0; }
.ai-preview .nt-ask .clean-list {
  padding: var(--sp-1) var(--sp-4);
}
.ai-preview .nt-ask .clean-list li:last-child:where(:not(.tz-world, .tz-world *)) { padding-bottom: var(--sp-2); }
.ai-preview .brand-context { padding: var(--sp-3) var(--sp-4); }
.ai-preview .brand-context b:where(:not(.tz-world, .tz-world *)) { display: block; margin-bottom: var(--sp-1); }
.ai-preview .brand-context p:where(:not(.tz-world, .tz-world *)) { margin: 0; }
.nt-more summary:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--ctl-h);
  margin-top: var(--sp-2);
  padding: 0 var(--sp-2);
  cursor: pointer;
  list-style: none;
}
.nt-more summary::-webkit-details-marker { display: none; }
.nt-more summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: var(--sp-1);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--dur-2) var(--ease-std);
}
.nt-more[open] summary::before { transform: rotate(45deg); }
.nt-more > :not(summary) { margin: var(--sp-3) 0 0; }
.nt-send {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--sp-1);
}
.nt-send .btn {
  height: var(--ctl-h);
  padding: 0 var(--sp-5);
}
.ai-card {
  padding: var(--sp-4);
}
.ai-card.small {
  margin-top: var(--sp-3);
}
.ai-card b:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-2);
}
.ai-card p:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 0;
}
.ai-card em:where(:not(.tz-world, .tz-world *)) {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: none;
}
.ai-card .ai-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.ai-card .ai-state .spin {
  width: 12px;
  height: 12px;
}

/* ---------- 5. The kind switch and the recipient picker (also the edit window's) ---------- */
.kind-switch {
  display: inline-flex;
  padding: 3px;
}
.kind-switch button:where(:not(.tz-world, .tz-world *)) {
  min-height: 32px;
  padding: 0 var(--sp-4);
  cursor: pointer;
}
.recip {
  display: grid;
  gap: 10px;
}
.recip-row {
  display: grid;
  gap: 6px;
}
.recip .chip {
  cursor: pointer;
}
.recip-people {
  padding: 9px 11px;
}
.recip-people summary:where(:not(.tz-world, .tz-world *)) {
  cursor: pointer;
}
.recip-n {
  margin-left: 6px;
  padding: 0 7px;
}
.recip-n:empty {
  display: none;
}
.recip-search {
  margin: 10px 0 2px;
  width: 100%;
}
.recip-search input:where(:not(.tz-world, .tz-world *)) {
  min-width: 0 !important;
  width: 100%;
}
.recip .assignee-picker {
  max-height: 260px;
  overflow: auto;
  margin-bottom: 4px;
}
.recip .assignee-option[hidden] {
  display: none;
}
.recip .micro-copy {
  margin: 0;
}
.assignee-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
}
.assignee-option .avatar {
  width: 30px;
  height: 30px;
}
.assignee-option span:last-child:where(:not(.tz-world, .tz-world *)) {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.assignee-option b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 6. Narrower screens ---------- */
@media (max-width: 1100px) {
  .is-parsed .compose-grid { grid-template-columns: minmax(0, 1fr); }
  .is-parsed .compose-panel { position: static; }
}
@media (max-width: 760px) {
  .nt-head { margin-bottom: var(--sp-4); }
  .compose-grid { gap: var(--sp-4); }
  .nt-capsule { padding: var(--sp-3); }
  #brief-text,
  .nt-marks {
    padding: var(--sp-2) var(--sp-2) 0;
    font-size: max(16px, var(--t-body));
  }
  #brief-text { min-height: 120px; }
  .nt-foot .attach-row { flex-basis: 100%; max-width: none; }
  .nt-foot .compose-actions { flex: 1 1 100%; margin-left: 0; }
  .nt-foot .compose-actions .btn { flex: 1 1 auto; }
  .nt-hint,
  .nt-examples,
  .nt-understood { margin: 0 var(--sp-2); }
  .nt-understood { gap: var(--sp-3) var(--sp-5); }
  .nt-links { margin: 0; }
  .ai-preview { padding: var(--sp-4); }
  .two-blocks { grid-template-columns: 1fr; gap: var(--sp-5); }
  .nt-send .btn { flex: 1 1 auto; }
  .kind-switch button:where(:not(.tz-world, .tz-world *)) { padding: 0 var(--sp-3); }
}
/* s-newtask.css: the paint of «Новая задача» (/new). R2 (group newtask), both themes, world tokens only.
   The capsule is the page's one rich thing: a glass slab (.lg-glass, refracting) whose content is the field, filled
   controls and the one tinted action. Everything around it is quiet text on the ground; after parsing the form is a
   solid sheet (.panel, shared skin) with wells inside it, never a box in a box and never glass in glass.
   One accent per screen: «Разобрать задачу» before parsing, «Отправить задачу» after it; inside the sentence only the
   deadline's underline carries the accent. Radii (shared shape tokens): capsule 28 (--r-xl, glass.css default), sheet 20, wells --r-card, controls --r-control, tags --r-tag.
   The recipient picker (.recip, .assignee-option) is painted by skin/s-shared.css section 12 and is not repainted here. */

/* ---------- 1. The capsule and the field ---------- */
.nt-capsule:focus-within { box-shadow: var(--glass-shadow-lift), 0 0 0 2px var(--focus), 0 0 0 6px var(--focus-halo); }
#brief-text {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  box-shadow: none;
  color: var(--text-1);
  caret-color: var(--text-accent);
}
#brief-text:hover { border-color: transparent; }
/* the ring is drawn by the capsule (:focus-within); a transparent outline still shows in forced colours */
#brief-text:focus-visible { outline: 2px solid transparent; border-color: transparent; box-shadow: none; }
#brief-text::placeholder { color: var(--text-2); }   /* never text-3 on glass */
/* Evening: over the capsule's bright top band text-2 falls under 4.5:1; halfway to text-1 (Daylight passes as it is) */
html[data-theme="dark"] #brief-text::placeholder { color: color-mix(in srgb, var(--text-2) 50%, var(--text-1)); }

/* the marks: the same text, invisible, under the field; only the underline of a recognised part shows */
.nt-marks { color: transparent; }
.nt-mark {
  background: transparent;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--text-3);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}
.nt-mark.is-due { text-decoration-color: var(--accent); }

/* controls on the glass: filled, never glass */
.nt-capsule .btn,
.nt-links .btn,
.nt-send .btn { border-radius: var(--r-control); }
.nt-foot #ref-url {
  border: 1px solid var(--control-hairline);
  border-radius: var(--r-control);
  background: var(--control-fill);
  color: var(--text-1);
  font-size: var(--t-ui);
}
.nt-foot #ref-url::placeholder { color: var(--text-2); }
.nt-capsule .btn.quiet { color: var(--text-1); }
.nt-capsule .btn.quiet:hover { background: var(--hover-on-glass); }

/* while the brief is parsed or the task is sent the button is busy, not off: it keeps a readable accent label */
#parse-btn:disabled,
#create-task:disabled {
  background: var(--acc-bg);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-accent);
  cursor: progress;
}
#parse-btn:disabled .spin,
#create-task:disabled .spin { border-color: var(--divider); border-top-color: var(--text-accent); }

/* ---------- 2. The microphone: idle, hover, recording (state = colour + the recording line with its word) ---------- */
.mic-round {
  border: 0;
  border-radius: 50%;
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-std);
}
.mic-round:hover { background: var(--control-fill-hover); }
.mic-round:active { background: var(--sheet-press); }
.mic-round.recording,
.mic-round.recording:hover {
  background: var(--late-solid);
  box-shadow: 0 0 0 0 var(--late-bg);
  color: var(--text-on-accent);
  animation: tz-nt-listen 1.4s var(--ease-out) infinite;
}
@keyframes tz-nt-listen {
  0% { box-shadow: 0 0 0 0 var(--late-bg), 0 0 0 0 var(--late-bg); }
  70% { box-shadow: 0 0 0 8px var(--late-bg), 0 0 0 16px transparent; }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}
.rec-line {
  color: var(--late-text);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
}
.rec-line i:where(:not(.tz-world, .tz-world *)) {
  border-radius: 50%;
  background: var(--late);
}

/* ---------- 3. Files: tags on the glass ---------- */
.file-preview span:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-tag);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-1);
  font-size: var(--t-sm);
}
.file-preview span > svg:where(:not(.tz-world, .tz-world *)) { flex: none; color: var(--text-2); }
.file-preview b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-regular); }
.file-preview button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-tag);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.file-preview button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--late-bg); color: var(--late-text); }

/* ---------- 4. Around the capsule: quiet text on the ground ---------- */
.nt-hint,
.nt-examples {
  color: var(--text-2);
  font-size: var(--t-ui);
  line-height: 1.45;
}
.nt-examples p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.nt-links .btn.quiet { color: var(--text-2); font-weight: var(--w-medium); }
.nt-links .btn.quiet:hover { color: var(--text-1); }
.nt-links .btn svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }

/* the legend of what was understood: the label underlined like its part in the sentence, the value in ink */
.nt-understood dt {
  justify-self: start;
  color: var(--text-2);
  font-size: var(--t-sm);
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: var(--text-3);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nt-understood .is-due dt { text-decoration-color: var(--accent); }
.nt-understood dd {
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. The parsed form (the same form is the edit window's body: B4) ---------- */
.ai-preview .preview-head h2:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-h4);
  font-weight: var(--w-medium);
  line-height: 1.3;
}
.ai-preview .brand-context {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
  line-height: 1.45;
}
.ai-preview .brand-context b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); font-weight: var(--w-medium); }
.ai-preview .clean-list li:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-ui); }
.ai-preview .clean-list li:last-child:where(:not(.tz-world, .tz-world *)) { border-bottom-color: transparent; }
/* «Что уточнить»: a quiet inset, plain ink (no warning colour: nothing here is late) */
.ai-preview .nt-ask .clean-list {
  border-radius: var(--r-card);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
}
/* «Идеи и призыв»: one folded row under a hairline */
.nt-more { border-top: 1px solid var(--divider); }
.nt-more summary:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-control);
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
}
.nt-more summary::before { color: var(--text-2); }
.nt-more summary:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); }

/* the kind switch «Задача · Контент»: an inset track (well) with the chosen kind in ink, as the shared filter chips */
.kind-switch {
  border: 0;
  border-radius: var(--r-capsule);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
}
.kind-switch button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-capsule);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  transition: background-color var(--dur-2) var(--ease-std);
}
.kind-switch button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); color: var(--text-1); }
.kind-switch button.on,
.kind-switch button.on:hover {
  background: var(--text-1);
  color: var(--sheet);
}

/* ideas for a content brief: one well; the numbers quiet */
.ai-card {
  border: 0;
  border-radius: var(--r-card);
  background: var(--well);
  color: var(--text-1);
}
.ai-card b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); font-weight: var(--w-medium); }
.ai-card p:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-ui); line-height: 1.45; }
.ai-card em:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-xs);
  font-style: normal;
  font-weight: var(--w-medium);
  font-variant-numeric: tabular-nums;
}
.ai-card .ai-state {
  color: var(--text-2);
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
}
/* l-calendar.css: geometry of «Календарь» (R2, G4: the «Обзор» look; paint in skin/s-calendar.css).
   Desktop: head (title left; month switcher, mode switch, «Контент-план» right), the month on one sheet with hairline
   cells 120 high, the side sheet 336 wide that ends with its content. Phone: a compact month with small bars under the
   dates, the list under it, the projects as one select. All steps on the 4px grid. */

/* ---------- 1. The head ---------- */
.cal-head {
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: 16px;
}
.cal-head > div:first-child:where(:not(.tz-world, .tz-world *)) {
  flex: 1 1 280px;
  min-width: 0;
}
.cal-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cal-monthnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-monthnav .cal-step {
  flex: none;
  width: var(--ctl-h);
  height: var(--ctl-h);
  padding: 0;
}
/* the month name keeps its width so the arrows do not jump from month to month */
.cal-month {
  min-width: 8.5em;
  text-align: center;
  white-space: nowrap;
}
.cal-mode { flex: none; }
.cal-export {
  height: var(--ctl-h);
  padding: 0 16px;
  white-space: nowrap;
}
/* the projects select is a phone control (desktop has no project switch on this page, as in R1) */
.cal-project { display: none; }

/* ---------- 2. The month and the side sheet ---------- */
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 16px;
  align-items: start;
}
.month { padding: 16px; }
.week-head,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}
/* the weekday names start on the line of the day numbers */
.week-head span:where(:not(.tz-world, .tz-world *)) {
  padding: 0 8px 8px;
  text-align: left;
}
.month-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 124px;
  padding: 8px;
  cursor: pointer;
}
/* every day number sits in the same 28px box as today's disc, in the same corner of every cell */
.month-cell b:where(:not(.tz-world, .tz-world *)) {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0 0 0 -6px;
}
.month-cell.today b:where(:not(.tz-world, .tz-world *)) {
  width: 28px;
  height: 28px;
}
/* a chip: one height, one line */
.cal-task {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the side sheet ends with its content (V2:P6); rows of one height, the time in one column at the right */
.nearest {
  align-self: start;
  padding: 16px 8px 8px;
}
.nearest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 4px;
}
.nearest h3:where(:not(.tz-world, .tz-world *)) { margin: 0; }
.nearest-head button:where(:not(.tz-world, .tz-world *)) {
  flex: none;
  width: auto;
  margin: 0 -8px 0 0;
  padding: 4px 8px;
  cursor: pointer;
}
.cal-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 12px 4px;
}
.cal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 12px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
}
.cal-row__t,
.cal-row__m {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-row__m { grid-column: 1 / -1; }
.cal-row__time {
  white-space: nowrap;
  text-align: right;
}
.cal-empty { margin: 4px 12px 8px; }

/* ---------- 3. Tablet: the month first, the list under it ---------- */
@media (max-width: 1180px) {
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 4. Phone ---------- */
@media (max-width: 760px) {
  /* under the title and subtitle, the full row, as the board's select (LEAD-FIX calendar 1) */
  .cal-project {
    display: block;
    margin: 16px 0 0;
  }
  .cal-project select:where(:not(.tz-world, .tz-world *)) {
    width: 100%;
    min-width: 0;
    height: var(--ctl-h);
    padding: 0 var(--sp-8) 0 var(--sp-3);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .cal-head { display: block; }
  /* row 1: the month switcher and «Контент-план»; row 2: the mode switch across the width */
  .cal-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nav exp" "seg seg";
    gap: 12px 8px;
    margin-top: 16px;
  }
  .cal-monthnav {
    grid-area: nav;
    justify-content: space-between;
    min-width: 0;
  }
  .cal-month {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cal-export {
    grid-area: exp;
    padding: 0 12px;
  }
  .cal-export svg { display: none; }
  .cal-mode {
    grid-area: seg;
    border-radius: var(--r-capsule);
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    width: 100%;
  }

  /* a compact month: the number in the middle, small bars under it */
  .month { padding: 12px 4px 8px; }
  .week-head span:where(:not(.tz-world, .tz-world *)) {
    padding: 0 0 8px;
    text-align: center;
  }
  .month-cell {
    align-items: center;
    gap: 2px;
    min-height: 56px;
    padding: 4px 2px 6px;
  }
  .month-cell b:where(:not(.tz-world, .tz-world *)) {
    width: 28px;
    height: 28px;
    margin: 0 0 2px;
  }
  .month-cell.today b:where(:not(.tz-world, .tz-world *)) {
    width: 28px;
    height: 28px;
  }
  /* the chips become bars without text; a tap on them picks the day */
  .cal-task {
    width: 20px;
    height: 4px;
    padding: 0;
    line-height: 4px;
    pointer-events: none;
  }
  .nearest { margin-top: 12px; }
}
/* s-calendar.css: paint of «Календарь» (R2, G4: the «Обзор» look). World tokens only, both themes.
   Glass only where it runs the page: the mode switch (a world segmented control with the lens, lg-glass on wide
   screens, a filled track on phones). The month and the list are solid sheets (.panel, shared skin) on hairlines.
   One accent: today's number. Red only for overdue, amber only for urgent, and only as a thin edge. */

/* ---------- 1. The head: month switcher ---------- */
.cal-month {
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  font-variant-numeric: tabular-nums;
}
.cal-monthnav .cal-step { color: var(--text-2); }
.cal-monthnav .cal-step:hover { color: var(--text-1); }
.cal-export svg { color: var(--text-2); }

/* ---------- 2. The month: hairlines between the cells, no outer frame ---------- */
.week-head span:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-xs);
  font-weight: var(--w-regular);
}
.month-cell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--divider), inset 1px 0 0 var(--divider);
  transition: background-color var(--dur-1) var(--ease-std);
}
.month-cell:nth-child(7n + 1) { box-shadow: inset 0 1px 0 var(--divider); }
.month-cell:hover { background: var(--sheet-hover); }
.month-cell b:where(:not(.tz-world, .tz-world *)) {
  border-radius: 50%;
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  font-variant-numeric: tabular-nums;
}
/* days of the next and the previous month: a quieter number */
.month-cell.other b:where(:not(.tz-world, .tz-world *)) { color: var(--text-3); }
/* today: the accent disc of the shared skin (s-shared.css) is the one accent of the month */
/* the picked day: a surface step with a hairline ring (as the chosen day of «Моя неделя»), no accent */
.month-cell.picked,
.month-cell.picked:nth-child(7n + 1) {
  background: var(--sheet-hover);
  box-shadow: inset 0 0 0 1px var(--text-3);
}

/* task chips: neutral fill, a straight 2px edge at the start (grey; red = overdue; amber = urgent) */
.cal-task {
  border: 0;
  border-radius: var(--r-tag);
  background: var(--well);
  box-shadow: none;
  color: var(--text-1);
  font-size: var(--t-xs);
  font-weight: var(--w-regular);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.cal-task:hover { background: var(--sheet-press); }
.cal-task::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--text-3);
}
.cal-task.hot::before { background: var(--warn); }
.cal-task.late::before { background: var(--late); }
@media (forced-colors: active) { .cal-task::before { background: CanvasText; } }

/* ---------- 3. The side sheet: a list grouped by day ---------- */
.nearest h3:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-h4);
  font-weight: var(--w-medium);
}
/* «Ближайшие» (back from a picked day): a quiet text button */
.nearest-head button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-accent);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
}
.nearest-head button:where(:not(.tz-world, .tz-world *)):hover { background: var(--hover-on-sheet); }
.cal-group { font-size: var(--t-sm); }
.cal-group__d { color: var(--text-2); }
.cal-group__n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.cal-row {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.cal-row:hover { background: var(--sheet-hover); }
.cal-row:active { background: var(--sheet-press); }
.cal-row__t {
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  line-height: 20px;
}
.cal-row__m {
  color: var(--text-2);
  font-size: var(--t-xs);
  line-height: 16px;
}
.cal-row__time {
  font-size: var(--t-sm);
  font-weight: var(--w-regular);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Phone: the chips are small bars, no text; no hairlines in the compact month ---------- */
@media (max-width: 760px) {
  .month-cell,
  .month-cell:nth-child(7n + 1) { box-shadow: none; border-radius: var(--r-control); }
  .month-cell.picked,
  .month-cell.picked:nth-child(7n + 1) { box-shadow: inset 0 0 0 1px var(--text-3); }
  .month-cell b:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-ui); }
  .cal-task,
  .cal-task:hover {
    border-radius: 2px;
    background: var(--text-3);
    box-shadow: none;
    color: transparent;
  }
  .cal-task::before { content: none; }
  /* urgent stays grey here: a bar carries one meaning, red = overdue */
  .cal-task.hot { background: var(--text-3); }
  .cal-task.late { background: var(--late-solid); }
}
/* l-notif.css: geometry of «Уведомления» (R2, G4). One sheet, rows of one height: a dot column (unread), the title
   with the date at the right, one line of text; on phones the date goes under the text and the text may take two
   lines. Hairlines between rows are straight and inset; the last row has none. */
.notif-list { padding: 8px; }
.notif {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  grid-template-areas:
    "dot title date"
    ".   text  text";
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px 12px 12px;
  text-align: left;
}
/* the dot sits on the line of the title */
.notif-dot {
  grid-area: dot;
  align-self: center;
  width: 8px;
  height: 8px;
}
.notif > b:where(:not(.tz-world, .tz-world *)) { grid-area: title; min-width: 0; overflow-wrap: anywhere; }
.notif > span:where(:not(.tz-world, .tz-world *)) {
  grid-area: text;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif > small:where(:not(.tz-world, .tz-world *)) {
  grid-area: date;
  white-space: nowrap;
  text-align: right;
}
/* a straight hairline between rows, inset to the text (it does not follow the row's rounded hover) */
.notif + .notif::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 16px;
  height: 1px;
}

/* narrower screens: the text may take two lines, then it stops */
@media (max-width: 1100px) {
  .notif > span:where(:not(.tz-world, .tz-world *)) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 760px) {
  .notif-list { padding: 4px; }
  .notif {
    grid-template-columns: 8px minmax(0, 1fr);
    grid-template-areas:
      "dot title"
      ".   text"
      ".   date";
    padding: 12px 12px 12px 8px;
  }
  .notif > small:where(:not(.tz-world, .tz-world *)) { text-align: left; }
  .notif + .notif::before { left: 28px; right: 12px; }
}
/* s-notif.css: paint of «Уведомления» (R2, G4). World tokens only, both themes. The list is one solid sheet
   (.panel.notif-list, shared skin); rows on straight hairlines; an unread row has the accent dot in its own column
   (state by shape, the title keeps one weight). Dates are one quiet grey (V2:P17). */
.notif {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.notif + .notif::before { background: var(--divider); }
.notif:hover { background: var(--sheet-hover); }
.notif:active { background: var(--sheet-press); }
/* the hover of a row hides the hairlines on both of its sides */
.notif:hover::before,
.notif:hover + .notif::before { opacity: 0; }

.notif > b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  line-height: 20px;
}
.notif > span:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-ui);
  line-height: 20px;
}
.notif > small:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2); /* Q-calendar-1: --text-3 was under 4.5:1 on the Daylight phone sheet (R1 had --text-2) */
  font-size: var(--t-xs);
  line-height: 16px;
}
.notif-dot {
  border-radius: 50%;
  background: transparent;
}
.notif.unread .notif-dot { background: var(--text-accent); }
@media (forced-colors: active) {
  .notif.unread .notif-dot { background: CanvasText; }
}
/* l-chats.css: layout of the area "chats". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line). */
/* C:323 */
.msgr {
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  gap: 14px;
  height: calc(100dvh - 56px);
  min-height: 480px;
}
/* C:324 */
.msgr-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  /* B7: the list is a T1 sheet now (s-chats.css); its own inner space */
  padding: 14px 10px 10px;
}
/* B7: the head and the search line up with the rows' text, not with the sheet edge */
.msgr-side > .msgr-side-head, .msgr-side > .msgr-search, .msgr-side > .notify-banner {
  margin-left: 4px;
  margin-right: 4px;
}
/* C:325 */
.msgr-side-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* C:326 */
.msgr-side-head h1:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  margin: 0;
}
/* C:327 */
.msgr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}
/* C:328 */
.msgr-search input:where(:not(.tz-world, .tz-world *)) {
  padding: 10px 0;
  flex: 1;
  min-width: 0;
}
/* C:329 */
.msgr-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  min-height: 0;
  padding-right: 2px;
}
/* C:330 */
.msgr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}
/* C:333 */
.msgr-ava {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
}
/* C:335 */
.msgr-online {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
}
/* C:336 */
.msgr-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* C:337 */
.msgr-item-body b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:338 */
.msgr-item-body small:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:340 */
.msgr-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}
/* C:342 */
.msgr-item-meta em:where(:not(.tz-world, .tz-world *)) {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
}
/* C:343 */
.msgr-empty-list {
  padding: 12px 8px;
}
/* C:344 */
.msgr-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 0 !important;
  /* B7: no clip here: the glass pickers inside must not sit under an overflow:hidden + radius ancestor (WORLD.md 1);
     the thread scrolls in .msgr-messages and nothing else paints into the corners */
  overflow: visible;
}
/* C:347 */
.msgr-placeholder h3:where(:not(.tz-world, .tz-world *)) {
  margin: 6px 0 0;
}
/* C:348 */
.msgr-placeholder p:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* C:349 */
.msgr-placeholder-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
/* C:350 */
.msgr-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
}
/* C:351 */
.msgr-head .msgr-ava {
  width: 38px;
  height: 38px;
}
/* C:352 */
.msgr-head-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* C:353 */
.msgr-head-title b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:355 */
.msgr-back {
  display: none;
  transform: rotate(180deg);
  padding: 6px;
}
/* C:357 */
.msgr-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 14px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* C:358 */
.msgr-more {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}
/* C:359 */
.msgr-empty-conv {
  margin: auto;
}
/* C:360 */
.msgr-day {
  display: flex;
  justify-content: center;
  margin: 10px 0 4px;
  pointer-events: none;
}
/* C:361 */
.msgr-day span:where(:not(.tz-world, .tz-world *)) {
  padding: 3px 10px;
}
/* C:362 */
.msgr-sys {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}
/* C:363 */
.msgr-sys span:where(:not(.tz-world, .tz-world *)) {
  padding: 4px 10px;
  text-align: center;
  max-width: 85%;
}
/* C:368 */
.msgr-messages .msg-ava {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33px;
  height: 33px;
}
/* C:378 */
.msg-bubble.media {
  padding: 3px;
}
/* C:379 */
.msg-name {
  display: block;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:383 */
.msg-spacer {
  display: inline-block;
  width: 44px;
  height: 1px;
}
/* C:384 */
.msg.me .msg-spacer {
  width: 62px;
}
/* C:385 */
.msg-meta {
  position: absolute;
  right: 9px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  pointer-events: none;
}
/* C:387 */
.msg-meta.over {
  bottom: 9px;
  padding: 3px 6px;
}
/* C:388 */
.msg-meta.block {
  position: static;
  justify-content: flex-end;
  margin: 3px 4px 1px 0;
}
/* C:389 */
.msg-tick {
  padding-right: 3px;
}
/* C:393 */
.msg-reply b:where(:not(.tz-world, .tz-world *)) {
  display: block;
}
/* C:395 */
.msg-reply span:where(:not(.tz-world, .tz-world *)) {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:396 */
.msg-media {
  position: relative;
  margin: 1px 0 4px;
}
/* C:397 */
.msg-bubble.media .msg-media {
  margin: 0;
}
/* C:398 */
.msg-bubble.media .msg-media+.msg-media {
  margin-top: 3px;
}
/* C:399 */
.msg-img img:where(:not(.tz-world, .tz-world *)) {
  display: block;
  max-width: 100%;
  max-height: 340px;
  object-fit: cover;
}
/* C:400 */
.msg-video {
  display: block;
  width: min(360px,100%);
  max-height: 360px;
}
/* C:401 */
.msg-save {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
/* C:403 */
.msg-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(220px,100%);
  padding: 2px 0 1px;
}
/* C:404 */
.msg-file+.msg-file {
  margin-top: 6px;
}
/* C:405 */
.msg-file-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
}
/* C:407 */
.msg-file-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* C:408 */
.msg-file-name b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:411 */
.msgr-messages .msg-actions {
  position: absolute;
  top: -9px;
  right: 4px;
  display: none;
  gap: 3px;
  z-index: 3;
}
/* C:412 */
.msgr-messages .msg.me .msg-actions {
  right: auto;
  left: 4px;
}
@media (hover:hover) {
  /* C:413 */
  .msgr-messages .msg:hover .msg-actions {
    display: flex;
  }
}
/* C:415 */
.msgr-messages .msg.act .msg-actions {
  display: flex;
}
/* C:416 */
.msg-actions button:where(:not(.tz-world, .tz-world *)) {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
/* C:421 */
.msgr-replybar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}
/* C:422 */
.msgr-replybar div:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 0;
  padding-left: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}
/* C:424 */
.msgr-replybar div span:where(:not(.tz-world, .tz-world *)) {
  flex-basis: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:425 */
.msgr-replybar button:where(:not(.tz-world, .tz-world *)) {
  cursor: pointer;
}
/* C:426 */
.msgr-uploads {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
}
/* C:427 */
.msgr-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
/* C:428 */
.msgr-upload span:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:429 */
.msgr-upload i:where(:not(.tz-world, .tz-world *)) {
  width: 120px;
  height: 5px;
  overflow: hidden;
}
/* C:430 */
.msgr-upload b:where(:not(.tz-world, .tz-world *)) {
  display: block;
  height: 100%;
}
/* C:431 */
.msgr-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
}
/* C:432 */
.msgr-compose textarea:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  padding: 11px 12px;
}
/* C:433 */
.msgr-attach {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
/* C:435 */
.msgr-send {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  justify-content: center;
  flex: none;
}
/* C:436 */
.msgr-people {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 46vh;
  overflow: auto;
  margin: 10px 0;
}
/* C:437 */
.msgr-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
/* C:439 */
.msgr-person input:where(:not(.tz-world, .tz-world *)) {
  width: auto;
  margin: 0;
}
/* C:440 */
.msgr-person[hidden] {
  display: none;
}
/* C:441 */
.msgr-person-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* C:443 */
.msgr-modal-sub {
  margin: 14px 0 4px;
}
@media (max-width:760px) {
  /* C:445 */
  .msgr {
    /* B7 (GATE-0 item 7, QA-M1 Q2): minmax(0, 1fr), so a long last message can not widen the page past the screen */
    grid-template-columns: minmax(0,1fr);
    height: calc(100dvh - 105px);
    min-height: 0;
  }
  /* C:446 */
  .msgr.has-open .msgr-side {
    display: none;
  }
  /* C:447 */
  .msgr:not(.has-open) .msgr-main {
    display: none;
  }
  /* C:448 */
  .msgr-back {
    display: grid;
  }
  /* C:451 */
  .msgr-messages .msg-actions {
    position: static;
    margin-top: 3px;
  }
  /* C:452 */
  .msg-actions button:where(:not(.tz-world, .tz-world *)) {
    width: 24px;
    height: 24px;
  }
  /* C:453 */
  .msgr-messages {
    padding: 6px 8px 8px;
  }
}
/* C:457 */
.msgr-compose {
  position: relative;
}
/* C:458 */
.msgr-emoji-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
/* C:460 */
.emoji-panel {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 6px);
  z-index: var(--z-popover);
  width: min(360px,calc(100% - 24px));
  overflow: hidden;
}
/* C:461 */
.emoji-panel[hidden] {
  display: none;
}
/* C:462 */
.emoji-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 6px 5px;
}
/* C:463 */
.emoji-tabs button:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  height: 32px;
  cursor: pointer;
}
/* C:465 */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(38px,1fr));
  gap: 2px;
  padding: 6px;
  max-height: 252px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* C:466 */
.emoji-grid button:where(:not(.tz-world, .tz-world *)) {
  height: 40px;
  min-width: 0;
  padding: 0;
  cursor: pointer;
}
/* C:468 */
.msg-bubble.emoji {
  padding: 0 2px 18px;
  min-width: 0;
}
/* C:470 */
.msg-bubble.emoji .msg-spacer {
  display: none;
}
/* C:471 */
.msg-bubble.emoji .msg-meta {
  bottom: 0;
  right: 0;
  padding: 2px 6px;
}
@media (max-width:760px) {
  /* C:473 */
  .emoji-panel {
    left: 8px;
    right: 8px;
    width: auto;
  }
  /* C:474 */
  .msgr-compose {
    gap: 6px;
    padding: 8px;
  }
  /* C:475 */
  .msgr-attach,
  .msgr-emoji-btn,
  .msgr-send {
    width: 40px;
    height: 40px;
  }
  /* C:476 */
  .msgr-compose textarea:where(:not(.tz-world, .tz-world *)) {
    min-height: 40px;
    padding: 9px 11px;
  }
}
/* C:482 */
.msg-mention.me {
  padding: 0 3px;
}
/* C:484 */
.msgr-badges {
  display: flex;
  gap: 4px;
  align-items: center;
}
/* C:485 */
.msgr-item-meta em.msgr-at {
  padding: 0;
  width: 20px;
}
/* C:486 */
.mention-pop {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 6px);
  z-index: var(--z-popover);
  width: min(330px,calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px;
}
/* C:487 */
.mention-pop[hidden] {
  display: none;
}
/* C:488 */
.mention-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
/* C:489 */
.mention-item .avatar {
  width: 30px;
  height: 30px;
}
/* C:490 */
.mention-item b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:491 */
.mention-item small:where(:not(.tz-world, .tz-world *)) {
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
}
@media (max-width:760px) {
  /* C:493 */
  .mention-pop {
    left: 8px;
    right: 8px;
    width: auto;
  }
}
/* C:547 */
body[data-page="chats"] .msgr {
  flex: 1;
  min-height: 0 !important;
  height: auto !important;
}
@media (min-width:761px) and (max-width:1100px) {
  /* C:592 */
  .msgr {
    grid-template-columns: minmax(0,1fr);
  }
  /* C:593 */
  .msgr.has-open .msgr-side {
    display: none;
  }
  /* C:594 */
  .msgr:not(.has-open) .msgr-main {
    display: none;
  }
  /* C:595 */
  .msgr-back {
    display: grid;
  }
}
/* C:603 */
.msgr-messages .msg-file.expired {
  cursor: default;
}
/* C:656 */
.msg-col {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  max-width: 100%;
  min-width: 0;
}
/* C:657 */
.msg-actions button:where(:not(.tz-world, .tz-world *)) {
  display: grid;
  place-items: center;
  padding: 0;
}
@media (hover:none) {
  /* C:658 */
  .msgr-messages .msg-actions {
    display: none !important;
  }
}
/* C:659 */
.msg-spacer.wide {
  width: 104px;
}
/* C:660 */
.msg.me .msg-spacer.wide {
  width: 122px;
}
/* C:661 */
.msg-edited {
  margin-right: 2px;
}
/* C:662 */
.msgr-messages .msg.flash .msg-bubble {
  animation: msgFlash 1.6s ease;
}
/* C:663 */
@keyframes msgFlash { 0%,35%{box-shadow:0 0 0 3px var(--focus)}100%{box-shadow:0 0 0 0 transparent} }
/* C:665 */
button.msg-reply {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
/* C:666 */
.msg-fwd {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0 3px;
  white-space: nowrap;
  overflow: hidden;
}
/* C:668 */
.msg-fwd b:where(:not(.tz-world, .tz-world *)) {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:670 */
.msg-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
/* C:671 */
.react {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px 0 6px;
  cursor: pointer;
}
/* C:674 */
.react .avatar.mini {
  width: 20px;
  height: 20px;
}
/* C:675 (B7: 24px, the initials are 12px now, the old 8px was under the floor) */
.avatar.mini {
  width: 24px;
  height: 24px;
  flex: none;
}
/* C:677 */
.msg-menu {
  position: fixed;
  z-index: var(--z-popover); /* B7: the world scale (DECISIONS 2026-11-12 item 5) */
  width: 250px;
  overflow: hidden;
  animation: menuIn .12s ease;
}
/* C:678 */
@keyframes menuIn { from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none} }
/* C:679 */
.msg-menu-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 7px;
}
/* C:680 */
.msg-menu-reacts button:where(:not(.tz-world, .tz-world *)) {
  width: calc(20% - 2px);
  height: 36px;
  cursor: pointer;
}
/* C:681 removed in R2 (V1:H9): the hover changes the fill only (s-chats.css), nothing grows */
/* C:682 */
.msg-menu-items {
  display: flex;
  flex-direction: column;
  padding: 5px;
}
/* C:683 */
.msg-menu-items button:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}
/* C:687 */
.msg-menu.sheet {
  left: 8px !important;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  top: auto !important;
  width: auto;
  animation: sheetIn .18s ease;
}
/* C:688 */
@keyframes sheetIn { from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1} }
/* C:689 */
.msg-menu.sheet .msg-menu-reacts button:where(:not(.tz-world, .tz-world *)) {
  height: 42px;
}
/* C:690 */
.msg-menu.sheet .msg-menu-items button:where(:not(.tz-world, .tz-world *)) {
  padding: 12px;
}
/* C:695 */
.msgr-pinned {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 14px;
}
/* C:696 */
.pin-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: stretch;
  justify-content: center;
}
/* C:697 */
.pin-lines i:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 2px;
  flex: 1;
  max-height: 14px;
}
/* C:699 */
.pin-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  padding: 2px 0;
}
/* C:701 */
.pin-body span:where(:not(.tz-world, .tz-world *)) {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:702 */
.msgr-searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
/* C:703 */
.msgr-searchbar .msgr-search {
  flex: 1;
  margin: 0;
}
/* C:704 */
.msgr-sresults {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 100%;
  z-index: var(--z-popover);
  max-height: min(420px,60vh);
  overflow: auto;
  padding: 5px;
}
/* C:705 */
.msgr-sresults[hidden] {
  display: none;
}
/* C:706 */
.msgr-sresults button:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}
/* C:708 */
.msgr-sresults button>span:nth-child(2):where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* C:709 */
.msgr-sresults small:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* C:712 */
.msgr-sresults p:where(:not(.tz-world, .tz-world *)) {
  padding: 10px;
  margin: 0;
}
/* C:716 */
.msgr-main {
  position: relative;
}
/* C:717 */
.msgr-drop {
  position: absolute;
  inset: 8px;
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
/* C:718 */
.msgr-drop[hidden] {
  display: none;
}
/* C:719 */
.notify-banner {
  /* B7: icon | sentence | close on the first row, the action under the sentence (the sentence no longer squeezes into
     five lines beside «Включить» in the 320px list) */
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-areas: "ico txt x" ". act .";
  align-items: center;
  gap: 2px 10px;
  margin: 0 0 8px;
  padding: 10px 8px 8px 12px;
}
.notify-banner > svg:where(:not(.tz-world, .tz-world *)) { grid-area: ico; }
.notify-banner > span:where(:not(.tz-world, .tz-world *)) { grid-area: txt; }
.notify-banner > .link-btn { grid-area: act; justify-self: start; margin-left: -4px; }
.notify-banner > .icon-action { grid-area: x; width: 32px; height: 32px; }
/* C:725 */
.msgr-ava.saved {
  display: grid;
  place-items: center;
}
/* C:726 */
.msgr-item[data-open-saved] {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
/* C:727 */
.msgr-item-meta em.msgr-callon {
  padding: 0;
  width: 20px;
}
/* C:729 */
.attach-menu {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 6px);
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  padding: 5px;
  min-width: 220px;
}
/* C:730 */
.attach-menu button:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
}
/* C:734 */
.msgr-compose.recording>*:not(.rec-bar):not(.emoji-panel):where(:not(.tz-world, .tz-world *)) {
  visibility: hidden;
}
/* C:735 */
.rec-bar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
/* C:736 */
.rec-cancel {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
/* C:737 */
.rec-dot {
  width: 10px;
  height: 10px;
  animation: recBlink 1s infinite;
  flex: none;
}
/* C:738 */
@keyframes recBlink { 50%{opacity:.25} }
/* C:739 */
.rec-time {
  min-width: 38px;
}
/* C:740 */
.rec-live {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  height: 32px;
  overflow: hidden;
}
/* C:741 */
.rec-live i:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 3px;
  flex: none;
}
/* C:743 */
.voice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(250px,64vw);
  padding: 3px 2px 2px 0;
}
/* C:744 */
.voice-play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
/* C:746 */
.voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  cursor: pointer;
  min-width: 0;
}
/* C:747 */
.voice-wave i:where(:not(.tz-world, .tz-world *)) {
  display: block;
  flex: 1;
  min-width: 2px;
  max-width: 4px;
}
/* C:751 */
.voice-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
  padding-bottom: 12px;
}
/* C:754 */
.voice-speed {
  padding: 2px 5px;
  cursor: pointer;
}
/* C:757 */
.msg.bare .msg-bubble,
.msg-bubble.bare {
  padding: 0 !important;
  min-width: 0;
}
/* C:759 */
.round video:where(:not(.tz-world, .tz-world *)) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* C:760 */
.round-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
/* C:762 */
.round-time {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 2px 7px;
}
/* C:763 */
.round-sound {
  position: absolute;
  right: 14%;
  bottom: 12%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
/* C:764 */
.round.live .round-sound {
  display: none;
}
/* C:765 */
.msg.bare .msg-meta.over {
  bottom: 4px;
  right: 4px;
}
/* C:766 */
.round-rec {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 7); /* B7: the world scale (DECISIONS 2026-11-12 item 5) */
  display: grid;
  place-items: center;
  padding: 16px;
}
/* C:767 */
.round-rec-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* C:768 */
.round-rec-view {
  position: relative;
  width: min(300px,78vw);
  aspect-ratio: 1;
  overflow: hidden;
}
/* C:769 */
.round-rec-view video:where(:not(.tz-world, .tz-world *)) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* C:770 */
.round-rec-ring {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}
/* C:773 */
.round-rec-hint {
  margin: 0;
  text-align: center;
}
/* C:774 */
.round-rec-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
/* C:775 */
.round-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
/* C:776 */
.round-btn.rec {
  width: 72px;
  height: 72px;
}
/* C:777 */
.round-btn.rec i:where(:not(.tz-world, .tz-world *)) {
  width: 52px;
  height: 52px;
}
/* C:778 */
.round-rec.recording .round-btn.rec i:where(:not(.tz-world, .tz-world *)) {
  width: 26px;
  height: 26px;
}
/* C:780 */
.msg-gif {
  position: relative;
  width: min(260px,64vw);
  max-height: 320px;
  overflow: hidden;
}
/* C:781 */
.msg-gif video:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* C:782 */
.gif-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 1px 6px;
}
/* C:783 */
.msg-bubble.gif-msg {
  padding: 3px;
}
/* C:785 */
.msg-sticker {
  padding-bottom: 18px;
}
/* C:786 */
.msg-sticker .tsticker {
  width: min(150px,40vw);
  height: auto;
  /* R2: no bounce, and nothing replays when the thread is drawn again */
}
/* C:790 */
.sticker-gone {
  display: inline-block;
  padding: 10px 12px;
}
/* C:791 */
.msg-bubble.bare .msg-meta {
  bottom: 2px;
  right: 2px;
}
/* C:793 */
.picker-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 6px 0;
}
/* C:794 */
.picker-tabs button:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  height: 30px;
  cursor: pointer;
}
/* C:796 */
.sticker-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 6px 8px;
}
/* C:797 */
.sticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 4px;
}
/* C:799 */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
}
/* C:800 */
.sticker-grid button:where(:not(.tz-world, .tz-world *)) {
  aspect-ratio: 1;
  padding: 3px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
/* C:802 */
.sticker-grid button svg:where(:not(.tz-world, .tz-world *)),
.sticker-grid button img:where(:not(.tz-world, .tz-world *)) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* C:803 */
.sticker-grid p:where(:not(.tz-world, .tz-world *)) {
  grid-column: 1/-1;
  margin: 4px;
}
/* C:804 */
.gif-box {
  padding: 6px 6px 4px;
}
/* C:805 */
.gif-box .msgr-search {
  margin: 0 0 6px;
}
/* C:806 */
.gif-grid {
  columns: 2;
  column-gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}
/* C:807 */
.gif-grid button:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
}
/* C:808 */
.gif-grid img:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* C:809 */
.gif-off {
  padding: 14px 8px;
  text-align: center;
  margin: 0;
}
/* C:810 */
.gif-by {
  display: block;
  text-align: right;
  padding: 2px 4px 0;
}
/* C:812 */
.msg-bubble.poll-msg {
  min-width: min(280px,70vw);
}
/* C:813 */
.poll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 3px 1px 16px;
}
/* C:815 */
.poll-kind {
  margin-top: -3px;
}
/* C:817 */
.poll-opts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
/* C:818 */
.poll-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 4px;
  text-align: left;
  cursor: pointer;
}
/* C:820 */
.poll-mark {
  width: 18px;
  height: 18px;
  flex: none;
}
/* C:824 */
.poll-opt.res {
  cursor: default;
  padding: 4px 0;
}
/* C:825 */
.poll-pct {
  width: 38px;
  flex: none;
  text-align: right;
}
/* C:826 */
.poll-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
/* C:827 */
.poll-text {
  flex: 1;
  min-width: 0;
}
/* C:828 removed in R2: no check glyph; your own answer is the darker bar (s-chats.css) */
/* C:830 */
.poll-voters {
  display: flex;
}
/* C:831 */
.poll-voters .avatar {
  margin-left: -4px;
}
/* C:832 */
.poll-bar {
  flex-basis: 100%;
  height: 4px;
  overflow: hidden;
}
/* C:833 */
.poll-bar b:where(:not(.tz-world, .tz-world *)) {
  display: block;
  height: 100%;
}
/* C:836 */
.poll-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
}
/* C:837 */
.poll-foot small:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
}
/* C:840 */
.poll-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
/* C:841 */
.poll-edit-row {
  display: flex;
  gap: 6px;
}
/* C:842 */
.poll-edit-row input:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
}
/* C:843 */
.poll-edit-row button:where(:not(.tz-world, .tz-world *)) {
  width: 38px;
  cursor: pointer;
}
/* C:845 */
.msg-bubble.map-msg {
  padding: 3px;
}
/* C:846 */
.msg-map {
  display: block;
  width: min(266px,66vw);
}
/* C:847 */
.map-tiles {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
}
/* C:848 */
.map-tiles img:where(:not(.tz-world, .tz-world *)) {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
}
/* C:849 */
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-92%);
}
/* C:851 */
.map-copy {
  position: absolute;
  right: 3px;
  bottom: 2px;
  padding: 0 4px;
}
/* C:852 */
.map-foot {
  display: flex;
  flex-direction: column;
  padding: 6px 8px 18px;
}
/* C:856 */
.loc-preview {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
  padding: 4px;
}
/* C:857 */
.loc-preview .msg-map {
  width: 100%;
}
/* C:858 */
.loc-preview .map-tiles {
  height: 180px;
}
/* C:860 */
.msg-bubble.call-msg {
  padding: 6px 8px 6px 6px;
}
/* C:861 */
.msg-call {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(230px,62vw);
  padding-bottom: 12px;
}
/* C:869 */
.msg-audio {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(260px,64vw);
}
/* C:870 */
.msg-audio audio:where(:not(.tz-world, .tz-world *)) {
  width: 100%;
  height: 36px;
}
@media (max-width:760px) {
  /* C:919 */
  .msgr-head {
    gap: 6px;
    padding: 9px 8px;
  }
  /* C:920 */
  .msgr-head .icon-action {
    width: 34px;
    height: 34px;
  }
}
/* C:932 */
.gif-src {
  position: absolute;
  left: 9px;
  bottom: 8px;
  height: 12px;
  width: auto;
  pointer-events: none;
}
/* C:933 */
.gif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}
/* C:934 */
.gif-head .msgr-search {
  flex: 1;
  min-width: 0;
  margin: 0;
}
/* C:935 */
.klipy-badge {
  flex: none;
  /* B7: the 15px badge sits in a 3px dark chip (s-chats.css) so the white mark reads on Daylight glass too */
  box-sizing: border-box;
  height: 21px;
  padding: 3px 7px;
  width: auto;
  display: block;
}

/* ---------- R2 (unslop, G3 «Чаты»): geometry as drawn ----------
   The list is a 352px sheet (padding 12); rows of one height (60) on a 4px rhythm; the thread breathes (24 at the
   sides); one person's messages 4 apart, people 16 apart; the composer is one field with three quiet 40px icons.
   Radii follow the method: controls 10, bubbles 16 (6 on joined corners), menus nest inside their glass. */
.msgr { grid-template-columns: 352px minmax(0,1fr); gap: 16px; }
.msgr-side { gap: 12px; padding: 16px 12px 12px; }
.msgr-side > .msgr-side-head, .msgr-side > .msgr-search, .msgr-side > .notify-banner { margin-left: 0; margin-right: 0; }
.msgr-side-head { gap: 4px; min-height: 32px; padding-left: 4px; }
.msgr-side-head .icon-action, .msgr-head .icon-action { width: 32px; height: 32px; }
.msgr-search { height: 40px; padding: 0 12px; gap: 8px; box-sizing: border-box; }
.msgr-search input:where(:not(.tz-world, .tz-world *)) { padding: 0; height: 100%; min-height: 0; }
/* the notifications notice: a quiet line between hairlines (icon | sentence | close, the one link under the sentence) */
.notify-banner { grid-template-columns: 16px minmax(0,1fr) 32px; gap: 4px 12px; margin: 0; padding: 8px 0 8px 4px; }
.notify-banner > .link-btn { margin-left: -4px; padding: 2px 4px; }
.msgr-items { gap: 2px; padding-right: 0; }
.msgr-item { min-height: 60px; box-sizing: border-box; gap: 12px; padding: 8px 12px 8px 8px; }
.msgr-ava { width: 40px; height: 40px; }
.msgr-online { width: 10px; height: 10px; right: 0; bottom: 0; }
.msgr-item-body { gap: 2px; }
.msgr-item-meta { gap: 4px; align-self: stretch; justify-content: center; }
.msgr-item-meta em:where(:not(.tz-world, .tz-world *)) { min-width: 0; height: auto; padding: 0; display: inline-flex; }
.msgr-item-meta em.msgr-at, .msgr-item-meta em.msgr-callon { width: auto; padding: 0; }
.msgr-badges { gap: 8px; min-height: 16px; }
/* the head of the open chat */
.msgr-head { gap: 12px; padding: 12px 16px; min-height: 64px; box-sizing: border-box; }
.msgr-head .msgr-ava { width: 40px; height: 40px; }
.msgr-head-title { gap: 2px; }
.msgr-head > .icon-action + .icon-action { margin-left: -8px; }
/* the thread */
.msgr-messages { padding: 8px 24px 16px; }
.msgr-day { margin: 16px 0 4px; }
.msgr-day span:where(:not(.tz-world, .tz-world *)) { padding: 0; }
.msgr-sys { margin: 8px 0; }
.msgr-sys span:where(:not(.tz-world, .tz-world *)) { padding: 0; max-width: 80%; }
.msgr-messages .msg { margin-top: 4px; }
.msgr-messages .msg.first { margin-top: 16px; }
.msgr-messages .msg.with-ava { padding-left: 44px; }
.msgr-messages .msg-ava { width: 32px; height: 32px; }
.msgr-messages .msg-bubble:not(.media, .emoji, .bare, .gif-msg, .map-msg, .call-msg) { padding: 8px 12px; min-width: 64px; }
.msg-name { margin-bottom: 2px; }
.msg-meta { right: 12px; bottom: 8px; gap: 4px; }
.msg-tick { display: inline-flex; padding-right: 0; }
.msg-reply { margin: 0 0 4px; padding: 4px 8px; }
.msg-fwd { gap: 4px; margin: 0 0 4px; }
.msg-reacts { gap: 4px; margin-top: 4px; }
.react { height: 28px; padding: 0 8px; }
.msg-file { gap: 12px; padding: 0 0 4px; }
.msg-file-ico { width: 40px; height: 40px; }
.msg-bubble.call-msg { padding: 8px 8px 8px 8px; }
.msg-call { gap: 12px; padding-bottom: 12px; }
.voice { gap: 8px; }
.voice-play { width: 40px; height: 40px; }
.poll { gap: 8px; padding: 0 0 16px; }
.poll-kind { margin-top: -4px; }
.poll-opts { gap: 4px; }
.poll-opt { gap: 8px; padding: 8px 4px; }
.poll-opt.res { padding: 4px 0; }
.poll-pct { width: 40px; }
.poll-bar { height: 4px; }
/* the composer: one field, three quiet icons; the send arrow is tinted only with text in the field */
.msgr-compose { gap: 8px; padding: 12px 16px; }
.msgr-attach, .msgr-emoji-btn, .msgr-send { width: 40px; height: 40px; }
.msgr-compose textarea:where(:not(.tz-world, .tz-world *)) { min-height: 40px; padding: 8px 12px; }
.msgr-replybar { gap: 12px; padding: 8px 16px; }
.msgr-replybar div:where(:not(.tz-world, .tz-world *)) { padding-left: 12px; gap: 0 4px; }
.msgr-replybar button:where(:not(.tz-world, .tz-world *)) { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; }
.msgr-uploads { padding: 0 16px; }
.msgr-pinned { gap: 12px; padding: 8px 12px 8px 16px; }
.msgr-searchbar { gap: 8px; padding: 8px 16px; }
.call-banner { padding: 8px 16px; }
/* menus and pickers: rows of 40, the inner radius nests in the glass (menu 20 - 6 = 14, attach / mention 14 - 4 = 10) */
.msg-menu-reacts { gap: 0; padding: 8px 6px; }
.msg-menu-reacts button:where(:not(.tz-world, .tz-world *)) { width: 20%; height: 40px; }
.msg-menu-items { padding: 6px; }
.msg-menu-items button:where(:not(.tz-world, .tz-world *)) { gap: 12px; min-height: 40px; padding: 8px 12px; }
.msg-menu.sheet .msg-menu-items button:where(:not(.tz-world, .tz-world *)) { min-height: 48px; padding: 12px; }
.attach-menu { padding: 4px; min-width: 224px; }
.attach-menu button:where(:not(.tz-world, .tz-world *)) { gap: 12px; min-height: 40px; padding: 8px 12px; }
.mention-pop { padding: 4px; gap: 0; }
.mention-item { gap: 8px; min-height: 40px; padding: 4px 8px; }
.mention-item .avatar { width: 28px; height: 28px; }
.emoji-tabs { gap: 4px; padding: 8px 8px 4px; }
.emoji-grid { gap: 4px; padding: 8px; }
.picker-tabs { gap: 4px; padding: 8px 8px 0; }
.msgr-sresults { padding: 4px; }
.msgr-sresults button:where(:not(.tz-world, .tz-world *)) { gap: 8px; padding: 8px; }
/* windows: people rows of one height, the photo 34 like every avatar (V2:H2) */
.msgr-people { gap: 2px; margin: 8px 0; }
.msgr-person { gap: 12px; min-height: 52px; padding: 8px 12px; }
.msgr-person .msgr-ava { width: 34px; height: 34px; }
.msgr-modal-sub { margin: 16px 0 4px; }
@media (max-width:1100px) {
  .msgr { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:760px) {
  .msgr { gap: 0; }
  .msgr-side { padding: 16px 12px 12px; }
  .msgr-head { gap: 8px; padding: 8px 8px 8px 4px; min-height: 56px; }
  /* R2 repair Q-chats-1: touch targets of the heads (chat head 36x40, list head 40x40, 8 apart) */
  .msgr-head .icon-action { width: 36px; height: 40px; }
  .msgr-head > .icon-action + .icon-action { margin-left: 0; }
  .msgr-side-head { gap: 8px; }
  .msgr-side-head .icon-action { width: 40px; height: 40px; }
  .msgr-back { padding: 0; width: 40px; height: 40px; place-items: center; }
  .msgr-messages { padding: 8px 12px 12px; }
  .msgr-messages .msg.with-ava { padding-left: 40px; }
  .msgr-compose { gap: 4px; padding: 8px 8px 8px; }
  .msgr-replybar { padding: 8px 12px; }
}
@media (max-width:400px) {
  /* 360: the name of the chat needs the room more than its picture (the head keeps search, calls and people) */
  .msgr-head .msgr-ava { display: none; }
  .msgr-head { gap: 4px; }
}
/* s-chats.css (B7): the paint of the chats area in world tokens, both themes, three glass levels.
   Replaces legacy-paint/p-chats.css. Layout stays in layout/l-chats.css.
   Materials: the conversation list and the open chat are T1 sheets; the thread lies flat on its sheet (no box in a box);
   others' bubbles are wells, mine a soft accent fill; menus and pickers are T3 glass (classes added in the generators:
   #msg-menu, .emoji-panel, .mention-pop, #attach-menu, .msgr-sresults); badges over photos and video are dark chips;
   the round-video recorder is a dark media stage in both themes with clear-glass buttons.
   Rules: tokens only, no blur or backdrop of its own, no font under 12px, every control keeps the shared focus ring.
   Contents: 1 local tones · 2 list · 3 conversation head, bars · 4 thread and bubbles · 5 attachments · 6 voice, round, gif,
   sticker, poll, map · 7 composer · 8 glass menus and pickers · 9 windows (people, poll editor) · 10 recorder stage */

/* ---------- 1. Local tones (derived from world tokens per theme) ---------- */
/* R2: my bubble is the control step of the ramp (Daylight: the sheet itself, Evening: white 8% over the sheet) with a
   hairline, not an accent fill; the voice wave is ink, not accent */
.msgr, .msg-menu, .round-rec, #modal-root {
  --chat-mine: var(--sheet);
  --chat-media-chip: rgb(var(--shadow-rgb) / .66);
  --chat-wave: color-mix(in srgb, var(--text-2) 36%, transparent);
}
html[data-theme="dark"] :is(.msgr, .msg-menu, .round-rec, #modal-root) { --chat-mine: color-mix(in srgb, var(--text-on-accent) 8%, var(--sheet)); }

/* Name colours of people in group chats: eight category hues pulled toward the ink of the theme,
   so they read on the bubble well in Daylight (deeper) and in Evening (paler). Measured >= 5:1 on --well. */
.msg-name.nc-0 { color: color-mix(in srgb, var(--cat-1) 60%, var(--text-1)); }
.msg-name.nc-1 { color: color-mix(in srgb, var(--cat-2) 60%, var(--text-1)); }
.msg-name.nc-2 { color: color-mix(in srgb, var(--cat-3) 60%, var(--text-1)); }
.msg-name.nc-3 { color: color-mix(in srgb, var(--cat-4) 50%, var(--text-1)); }   /* the yellow needs more ink: 4.38 at 60% */
.msg-name.nc-4 { color: color-mix(in srgb, var(--cat-5) 60%, var(--text-1)); }
.msg-name.nc-5 { color: color-mix(in srgb, var(--cat-6) 60%, var(--text-1)); }
.msg-name.nc-6 { color: color-mix(in srgb, var(--cat-7) 60%, var(--text-1)); }
.msg-name.nc-7 { color: color-mix(in srgb, var(--cat-8) 60%, var(--text-1)); }

/* ---------- 2. The conversation list (a T1 sheet of rows) ---------- */
.msgr-side {
  border-radius: var(--r-lg);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
}
.msgr-side-head h1:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-page)/var(--lh-page) var(--font-text); letter-spacing: 0;
}
.msgr-search {
  border-radius: var(--r-sm);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-3);
}
.msgr-search input:where(:not(.tz-world, .tz-world *)) { border: 0; background: transparent; box-shadow: none; color: var(--text-1); }
.msgr-search:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.notify-banner {
  border-radius: var(--r-md);
  background: var(--acc-bg);
  color: var(--text-1);
  font-size: var(--t-sm); line-height: 1.35;
}
.notify-banner > svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); }
.notify-banner .icon-action { background: transparent; box-shadow: none; color: var(--text-2); }
.notify-banner .icon-action:hover { background: var(--hover-on-sheet); color: var(--text-1); }
.msgr-item {
  border-radius: var(--r-md);
  color: var(--text-1);
  transition: background-color var(--dur-1) var(--ease-std);
}
.msgr-item:hover { background: var(--sheet-hover); }
.msgr-item.on, .msgr-item.on:hover { background: var(--acc-bg); }
.msgr-item[data-open-saved] { border: 0; background: transparent; color: inherit; font: inherit; }
.msgr-item[data-open-saved]:hover { background: var(--sheet-hover); }
.msgr-ava { border-radius: 50%; font-size: var(--t-ui); font-weight: var(--w-medium); }
.msgr-ava.group { background: var(--well); color: var(--text-2); }
.msgr-ava.saved { background: var(--well); color: var(--text-2); }
.msgr-online { border-radius: 50%; background: var(--ok); border: 2px solid var(--sheet); }
.msgr-item-body b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-ui); font-weight: var(--w-medium); }
.msgr-item-body small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
.msgr-item-body i:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.msgr-you { color: var(--text-1); font-weight: var(--w-medium); }
.msgr-kind { color: var(--text-2); }
.msgr .typing-txt, .msgr-head-title .typing-txt { color: var(--text-accent); font-style: normal; }
.msgr-item-meta time:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.msgr-item-meta em:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  font-style: normal; font-size: var(--t-xs); font-weight: var(--w-medium); line-height: 1;
}
.msgr-item-meta em.msgr-callon { background: var(--ok); }
.msgr-empty-list { color: var(--text-2); font-size: var(--t-sm); }

/* ---------- 3. The open chat: placeholder, head, pinned bar, search bar, reply bar ---------- */
.msgr-placeholder { color: var(--text-2); }
.msgr-placeholder svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); }
.msgr-placeholder h3:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-h4); font-weight: var(--w-medium); }
.msgr-placeholder p:where(:not(.tz-world, .tz-world *)) { line-height: 1.5; }
.msgr-head { border-bottom: 1px solid var(--divider); }
.msgr-head-title b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-body); font-weight: var(--w-medium); }
.msgr-head-title small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.msgr-back { border-radius: var(--r-pill); color: var(--text-2); }
.msgr-back:hover { background: var(--hover-on-sheet); color: var(--text-1); }
.msgr-pinned { border-bottom: 1px solid var(--divider); background: transparent; }
.pin-lines i:where(:not(.tz-world, .tz-world *)) { border-radius: 2px; background: var(--divider); }
.pin-lines i.on { background: var(--text-accent); }
.pin-body { border: 0; border-radius: var(--r-xs); background: transparent; color: inherit; font: inherit; }
.pin-body b:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); font-size: var(--t-xs); font-weight: var(--w-medium); }
.pin-body span:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
.msgr-pinned .icon-action, .msgr-searchbar .icon-action { background: transparent; box-shadow: none; color: var(--text-2); font-size: var(--t-body); }
.msgr-pinned .icon-action:hover, .msgr-searchbar .icon-action:hover { background: var(--hover-on-sheet); color: var(--text-1); }
.msgr-searchbar { border-bottom: 1px solid var(--divider); background: transparent; }
.msgr-replybar { border-top: 1px solid var(--divider); background: transparent; }
.msgr-replybar div:where(:not(.tz-world, .tz-world *)) { border-left: 3px solid var(--text-accent); font-size: var(--t-sm); }
.msgr-replybar div b:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); font-size: var(--t-xs); font-weight: var(--w-medium); }
.msgr-replybar div span:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.msgr-replybar.edit div:where(:not(.tz-world, .tz-world *)) { border-left-color: var(--warn); }
.msgr-replybar.edit div b:where(:not(.tz-world, .tz-world *)) { color: var(--warn-text); }
.msgr-replybar button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text-2);
  font-size: 20px; line-height: 1;
}
.msgr-replybar button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); color: var(--text-1); }
.msgr-upload { color: var(--text-2); font-size: var(--t-xs); }
.msgr-upload i:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-pill); background: var(--well); }
.msgr-upload b:where(:not(.tz-world, .tz-world *)) { background: var(--accent); transition: width var(--dur-2) var(--ease-std); }
/* phone: the open chat fills the screen, so its sheet has no rounded corners or edge */
@media (max-width: 760px) {
  body.chat-open .msgr-main { border-radius: 0; box-shadow: none; }
}
.msgr-drop {
  border: 2px dashed var(--text-accent);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--sheet) 94%, transparent);
  color: var(--text-accent);
}

/* ---------- 4. The thread: flat on its sheet; day and system lines; bubbles ---------- */
.msgr-messages { background: transparent; }
.msgr-empty-conv { color: var(--text-2); font-size: var(--t-sm); }
.msgr-more .btn { font-size: var(--t-xs); }
.msgr-day span:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-pill);
  background: var(--well);
  color: var(--text-2);
  font-size: var(--t-xs); font-weight: var(--w-medium);
}
.msgr-sys span:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-sm);
  background: var(--well);
  color: var(--text-2);
  font-size: var(--t-xs); line-height: 1.35;
}
.msgr-messages .msg-ava { font-size: var(--t-xs); }
/* the hover actions are not a well (the shared .msg > div:last-child rule is for task comments) */
.msgr-messages .msg > .msg-actions { border-radius: 0; background: transparent; }
.msgr-messages .msg-bubble {
  border-radius: var(--r-md);
  background: var(--well);
  color: var(--text-1);
  font-size: var(--t-ui); line-height: 1.4;
}
.msgr-messages .msg.me .msg-bubble { background: var(--chat-mine); color: var(--text-1); }
.msgr-messages .msg:not(.me):not(.first) .msg-bubble { border-top-left-radius: var(--r-xs); }
.msgr-messages .msg:not(.me):not(.last) .msg-bubble { border-bottom-left-radius: var(--r-xs); }
.msgr-messages .msg:not(.me).last .msg-bubble { border-bottom-left-radius: 4px; }
.msgr-messages .msg.me:not(.first) .msg-bubble { border-top-right-radius: var(--r-xs); }
.msgr-messages .msg.me:not(.last) .msg-bubble { border-bottom-right-radius: var(--r-xs); }
.msgr-messages .msg.me.last .msg-bubble { border-bottom-right-radius: 4px; }
.msgr-messages .msg.mention .msg-bubble {
  background: color-mix(in srgb, var(--warn) 12%, var(--well));
  box-shadow: inset 3px 0 0 var(--warn);
}
.msgr-messages .msg.menu-on .msg-bubble { box-shadow: 0 0 0 2px var(--focus-halo), inset 0 0 0 1px var(--focus); }
.msgr-messages .msg.flash .msg-bubble { animation: msgFlash 1.6s var(--ease-std); }
/* bubbles that are only a picture, a sticker, a round video or big emoji have no fill */
.msgr-messages .msg .msg-bubble:is(.emoji, .bare),
.msgr-messages .msg.bare .msg-bubble { background: transparent; box-shadow: none; }
.msg-bubble.emoji .msg-text { font-size: 38px; line-height: 1.1; }
.msg-bubble.emoji .msg-meta { border-radius: var(--r-xs); background: var(--well); }
.msg-name { font-size: var(--t-sm); font-weight: var(--w-medium); line-height: 1.3; }
.msg-text a:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.msg.me .msg-text a:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); }
.msg.deleted .msg-text { color: var(--text-2); font-style: italic; }
.msg-mention { color: var(--text-accent); font-weight: var(--w-medium); }
.msg.me .msg-mention { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 2px; }
.msg-mention.me { border-radius: 4px; background: var(--warn-bg); color: var(--text-1); }
.msg-meta { color: var(--text-2); font-size: var(--t-xs); line-height: 1; font-variant-numeric: tabular-nums; }
.msg.me .msg-meta { color: var(--text-2); }
.msg-meta.over, .msg.me .msg-meta.over { border-radius: var(--r-pill); background: var(--chat-media-chip); color: var(--text-on-accent); }
.msg-tick { font-size: var(--t-xs); letter-spacing: -3px; }
.msg-tick.read { color: var(--ok-text); }
.msg-meta.over .msg-tick.read { color: inherit; }
.msg-edited { font-style: italic; }
.msg-reply, button.msg-reply {
  border: 0;
  border-left: 2px solid var(--text-accent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: inherit; font: inherit;
  font-size: var(--t-sm); line-height: 1.3;
}
.msg-reply b:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); font-size: var(--t-xs); font-weight: var(--w-medium); }
.msg.me .msg-reply b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); }
.msg-reply span:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.msg-fwd { color: var(--text-accent); font-size: var(--t-xs); }
.msg.me .msg-fwd { color: var(--text-2); }
.msg-fwd b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.msg-actions button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: 50%;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 3px rgb(var(--shadow-rgb) / .12);
  color: var(--text-2);
  font-size: var(--t-xs); line-height: 1;
}
.msg-actions button:hover:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--text-3); }
/* reactions under a bubble */
.react {
  border: 0; border-radius: var(--r-pill);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-1);
  font-size: var(--t-xs); font-weight: var(--w-medium); line-height: 1;
}
.react:hover { background: var(--control-fill-hover); }
.react span:first-child:where(:not(.tz-world, .tz-world *)) { font-size: 15px; }
.react.mine { background: var(--acc-bg); box-shadow: inset 0 0 0 1px var(--text-accent); color: var(--text-1); }
.react .avatar.mini, .avatar.mini { font-size: var(--t-xs); letter-spacing: -.02em; }
/* links inside bubbles (poll actions): readable on mine in both themes */
.msgr-messages .msg.me .link-btn { color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 5. Attachments in bubbles ---------- */
.msg-img img:where(:not(.tz-world, .tz-world *)) { border-radius: 11px; }
.msg-video { border-radius: 11px; background: rgb(var(--shadow-rgb)); }
.msg-save {
  border-radius: 50%;
  background: var(--chat-media-chip);
  color: var(--text-on-accent);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-std);
}
.msg-media:hover .msg-save, .msg-save:focus-visible { opacity: 1; }
@media (hover: none) { .msg-save { opacity: 1; } }
.msg-file { color: inherit; }
.msg-file-ico { border-radius: 50%; background: var(--accent); color: var(--text-on-accent); }
.msg-file-name b:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); font-weight: var(--w-medium); }
.msg-file-name small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.msgr-messages .msg-file.expired .msg-file-name b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.msgr-messages .msg-file.expired .msg-file-ico { background: var(--neutral-bg); color: var(--neutral-text); }

/* ---------- 6. Voice, round video, GIF, stickers, polls, places ---------- */
.voice-play { border: 0; border-radius: 50%; background: var(--accent); color: var(--text-on-accent); }
.voice-play:hover { background: var(--accent-hover); }
.voice-wave i:where(:not(.tz-world, .tz-world *)) { border-radius: 2px; background: var(--chat-wave); }
.voice-wave i.on { background: var(--text-accent); }
.voice-time { color: var(--text-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.voice-speed {
  border: 0; border-radius: var(--r-xs);
  background: var(--acc-bg);
  color: var(--text-1);
  font-size: var(--t-xs); font-weight: var(--w-medium); font-variant-numeric: tabular-nums;
}
.msg.me .voice-speed { background: var(--sheet); }
.round { border-radius: 50%; background: rgb(var(--shadow-rgb)); box-shadow: 0 6px 18px rgb(var(--shadow-rgb) / .28); }
.round-ring circle:where(:not(.tz-world, .tz-world *)) {
  fill: none; stroke: var(--text-on-accent); stroke-width: 2.6;
  stroke-dasharray: 301.6; stroke-dashoffset: 301.6; opacity: .9;
}
.round-time, .round-sound { background: var(--chat-media-chip); color: var(--text-on-accent); }
.round-time { border-radius: var(--r-pill); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.round-sound { border-radius: 50%; }
.msg-gif { border-radius: 12px; background: var(--well); }
.gif-tag {
  border-radius: var(--r-xs);
  background: var(--chat-media-chip);
  color: var(--text-on-accent);
  font-size: var(--t-xs); font-weight: var(--w-medium); letter-spacing: .04em;
}
.gif-src { opacity: .85; }
.msg-sticker { line-height: 0; }
.emoji-sticker { font-size: 84px; line-height: 1; }
.sticker-gone { border-radius: var(--r-sm); background: var(--well); color: var(--text-2); font-size: var(--t-xs); line-height: 1.3; }
.poll-q { font-size: var(--t-ui); font-weight: var(--w-medium); line-height: 1.3; }
.poll-kind { color: var(--text-2); font-size: var(--t-xs); }
.poll-opt { border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; font: inherit; font-size: var(--t-ui); }
button.poll-opt:hover { background: var(--hover-on-sheet); }
.poll-mark { border-radius: 50%; border: 2px solid var(--check-border); }
.poll-mark.sq { border-radius: 5px; }
.poll-opt.picked .poll-mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--well); }
.msg.me .poll-opt.picked .poll-mark { box-shadow: inset 0 0 0 3px var(--chat-mine); }
.poll-pct { font-size: var(--t-sm); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.poll-opt.mine .poll-text::after { color: var(--text-accent); font-weight: var(--w-medium); }
.msg.me .poll-opt.mine .poll-text::after { color: var(--text-1); }
.poll-voters .avatar { box-shadow: 0 0 0 1.5px var(--well); }
.msg.me .poll-voters .avatar { box-shadow: 0 0 0 1.5px var(--chat-mine); }
.poll-bar { border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.poll-bar b:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-pill); background: var(--accent); transition: width var(--dur-4) var(--ease-std); }
.poll-foot small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.msg-map { color: inherit; text-decoration: none; }
.map-tiles { border-radius: 11px 11px 4px 4px; background: var(--well); }
.map-pin { filter: drop-shadow(0 2px 3px rgb(var(--shadow-rgb) / .4)); }
.map-pin svg:where(:not(.tz-world, .tz-world *)) { fill: var(--late-solid); stroke: var(--text-on-accent); stroke-width: 1.5; }
.map-copy { border-radius: 4px; background: color-mix(in srgb, var(--sheet) 88%, transparent); color: var(--text-1); font-size: var(--t-xs); }
.map-foot b:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); font-weight: var(--w-medium); }
.map-foot small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.loc-preview { border-radius: var(--r-md); background: var(--well); }

/* ---------- 7. The composer (part of the chat sheet; its pickers are glass, section 8) ---------- */
.msgr-compose { border-top: 1px solid var(--divider); }
.msgr-compose textarea:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-lg); line-height: 1.45; }
.msgr-attach, .msgr-emoji-btn {
  border: 0; border-radius: var(--r-pill);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.msgr-attach:hover, .msgr-emoji-btn:hover { background: var(--control-fill-hover); color: var(--text-1); }
.msgr-emoji-btn.on { background: var(--acc-bg); box-shadow: inset 0 0 0 1px var(--text-accent); color: var(--text-accent); }
/* the round button is a microphone while the box is empty: a quiet fill, not the accent */
.msgr-compose .btn.msgr-send.mic, .msgr-compose .btn.msgr-send.mic:hover {
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
}
.msgr-compose .btn.msgr-send.mic:hover { background: var(--control-fill-hover); color: var(--text-1); }
.rec-bar { background: var(--sheet); }
.rec-cancel { border: 0; border-radius: var(--r-pill); background: var(--late-bg); color: var(--late-text); }
.rec-cancel:hover { box-shadow: inset 0 0 0 1px var(--late-text); }
.rec-dot { border-radius: 50%; background: var(--late-solid); }
.rec-time { color: var(--text-1); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.rec-live i:where(:not(.tz-world, .tz-world *)) { border-radius: 2px; background: var(--text-accent); }

/* ---------- 8. Glass menus and pickers (T3; text on glass is --text-1 / --text-2 only; controls on glass are fills) ---------- */
.msg-menu, .emoji-panel, .mention-pop, .attach-menu, .msgr-sresults { color: var(--text-1); }
.msg-menu-reacts, .emoji-tabs { border-bottom: 1px solid var(--divider); }
.msg-menu-reacts button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  font-size: 21px;
  transition: transform var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std);
}
.msg-menu-reacts button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); }
.msg-menu-items button:where(:not(.tz-world, .tz-world *)),
.attach-menu button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-1);
  font: inherit; font-size: var(--t-ui); font-weight: var(--w-medium);
}
.msg-menu-items button:hover:where(:not(.tz-world, .tz-world *)),
.attach-menu button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); }
.msg-menu-items button svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.attach-menu button svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.msg-menu-items button.danger,
.msg-menu-items button.danger svg:where(:not(.tz-world, .tz-world *)) { color: var(--late-text); }
.msg-menu.sheet .msg-menu-reacts button:where(:not(.tz-world, .tz-world *)) { font-size: 24px; }
.msg-menu.sheet .msg-menu-items button:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-body); }
/* the picker: emoji, stickers, GIF */
.picker-tabs button:where(:not(.tz-world, .tz-world *)),
.emoji-tabs button:where(:not(.tz-world, .tz-world *)) { border: 0; border-radius: var(--r-pill); background: transparent; }
.picker-tabs button:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font: inherit; font-size: var(--t-sm); font-weight: var(--w-medium); }
.picker-tabs button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); color: var(--text-1); }
.picker-tabs button.on, .picker-tabs button.on:hover { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-1); }
.emoji-tabs button:where(:not(.tz-world, .tz-world *)) { font-size: 18px; line-height: 1; filter: grayscale(.7); opacity: .75; }
.emoji-tabs button.on, .emoji-tabs button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--control-fill); filter: none; opacity: 1; }
.emoji-grid button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: var(--r-sm); background: transparent;
  font-size: 25px; line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.emoji-grid button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); }
.sticker-head { color: var(--text-2); font-size: var(--t-xs); font-weight: var(--w-medium); }
.sticker-add { font-size: var(--t-xs); }
.sticker-grid button:where(:not(.tz-world, .tz-world *)) { border: 0; border-radius: var(--r-sm); background: transparent; }
.sticker-grid button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); }
.sticker-grid p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.gif-grid button:where(:not(.tz-world, .tz-world *)) { border: 0; border-radius: var(--r-xs); background: var(--control-fill); }
.gif-off { color: var(--text-2); font-size: var(--t-sm); }
.gif-by { color: var(--text-2); font-size: var(--t-xs); }
/* the KLIPY attribution is a white mark: it always stands on its own dark chip, so it stays visible in both themes */
.klipy-badge { border-radius: var(--r-pill); background: rgb(var(--shadow-rgb) / .82); }
.gif-by.klipy b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); letter-spacing: .04em; }
/* the mention list */
.mention-item { border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-1); }
.mention-item .avatar { font-size: var(--t-xs); }
.mention-item b:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-ui); font-weight: var(--w-medium); }
.mention-item small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.mention-item:hover { background: var(--hover-on-glass); }
.mention-item.on { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); }
/* search results inside a chat */
.msgr-sresults button:where(:not(.tz-world, .tz-world *)) { border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-1); }
.msgr-sresults button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); }
.msgr-sresults b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.msgr-sresults small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.msgr-sresults mark:where(:not(.tz-world, .tz-world *)) { border-radius: 3px; background: var(--warn-bg); color: var(--text-1); }
.msgr-sresults time:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.msgr-sresults p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
/* the GIF search box sits on the glass as a fill */
.gif-head .msgr-search { background: var(--control-fill); }

/* ---------- 9. Windows: people, forward, group, poll editor ---------- */
.msgr-person {
  border: 0; border-radius: var(--r-md);
  background: transparent;
  color: inherit;
  transition: background-color var(--dur-1) var(--ease-std);
}
.msgr-person:hover { background: var(--sheet-hover); }
label.msgr-person:has(input:checked) { background: var(--acc-bg); box-shadow: inset 0 0 0 1px var(--text-accent); }
.msgr-person-text b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.msgr-person-text small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.msgr-modal-sub { color: var(--text-1); font-size: var(--t-ui); font-weight: var(--w-medium); }
.poll-edit-row button:where(:not(.tz-world, .tz-world *)) {
  border: 0; border-radius: var(--r-sm);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
  font-size: 18px;
}
.poll-edit-row button:hover:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); background: var(--control-fill-hover); }

/* ---------- 10. The round-video recorder: a dark media stage in both themes ---------- */
.round-rec { background: rgb(var(--shadow-rgb) / .93); color: var(--text-on-accent); }
.round-rec-view { border-radius: 50%; background: rgb(var(--shadow-rgb)); box-shadow: 0 20px 60px rgb(var(--shadow-rgb) / .5); }
.round-rec-ring circle:where(:not(.tz-world, .tz-world *)) {
  fill: none; stroke: var(--late-solid); stroke-width: 3;
  stroke-dasharray: 301.6; stroke-dashoffset: 301.6;
}
.round-rec-time { color: var(--text-on-accent); font-size: 20px; font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.round-rec-hint { color: color-mix(in srgb, var(--text-on-accent) 82%, transparent); font-size: var(--t-sm); }
.round-btn { border: 0; border-radius: 50%; color: var(--text-on-accent); }
.round-btn.rec { border: 4px solid var(--text-on-accent); background: transparent; box-shadow: none; }
.round-btn.rec i:where(:not(.tz-world, .tz-world *)) { border-radius: 50%; background: var(--late-solid); transition: width var(--dur-3) var(--ease-std), height var(--dur-3) var(--ease-std), border-radius var(--dur-3) var(--ease-std); }
.round-rec.recording .round-btn.rec i:where(:not(.tz-world, .tz-world *)) { border-radius: 7px; }

/* ---------- 11. R2 (unslop, G3 «Чаты»): the approved direction ----------
   Quiet chrome: the list, the head, the composer and the menus use the ramp; the only accent left in the section is the
   send arrow when there is text, a picked poll answer, links in messages and the focus ring. The open chat is a surface
   step, counts are quiet text, names in groups carry no hue, bubbles are the well (others) and the control step (mine).
   Hierarchy by size and colour: weights 400 and 500. */
.msgr-side-head h1:where(:not(.tz-world, .tz-world *)) {
  font: var(--w-medium) var(--t-page)/var(--lh-page) var(--font-text); letter-spacing: 0;   /* R2 repair Q-chats-3: the page title of LEAD-C 5 */
}
:is(.msgr-side-head, .msgr-head, .msgr-pinned, .msgr-searchbar) .icon-action,
.notify-banner .icon-action {
  border-radius: var(--r-sm);
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}
:is(.msgr-side-head, .msgr-head, .msgr-pinned, .msgr-searchbar) .icon-action:hover,
.notify-banner .icon-action:hover { background: var(--hover-on-sheet); color: var(--text-1); }
.msgr-back { border-radius: var(--r-sm); }
/* a field looks like a field; one ring around the whole field on focus (V2:H19) */
.msgr-search { border-radius: var(--r-sm); background: var(--well); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-2); }
.msgr-search:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.msgr-search input:where(:not(.tz-world, .tz-world *)):focus-visible { box-shadow: none; outline-color: transparent; }
.msgr-search:focus-within { box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px var(--focus-halo); }
.msgr-search input:where(:not(.tz-world, .tz-world *))::placeholder { color: var(--text-2); opacity: 1; }
/* the notifications notice: a quiet line, «Включить» is the one link */
.notify-banner {
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--divider), inset 0 -1px 0 var(--divider);
  color: var(--text-2);
  font-size: var(--t-sm); line-height: 1.4;
}
.notify-banner > svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
/* rows: hover and the open chat are surface steps; unread shows as ink, the count as quiet text */
.msgr-item { border-radius: var(--r-sm); }
.msgr-item.on, .msgr-item.on:hover { background: var(--sheet-press); box-shadow: inset 0 0 0 1px var(--sheet-hairline); }
.msgr-item-body b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.msgr-item-body small:where(:not(.tz-world, .tz-world *)) { line-height: 1.4; }
.msgr-you { color: var(--text-2); font-weight: var(--w-regular); }
.msgr-item.unread .msgr-item-body small:where(:not(.tz-world, .tz-world *)),
.msgr-item.unread .msgr-you { color: var(--text-1); }
.msgr-item-meta em:where(:not(.tz-world, .tz-world *)) {
  border-radius: 0;
  background: transparent;
  color: var(--text-1);
  font-size: var(--t-sm); font-weight: var(--w-medium); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.msgr-item-meta em.msgr-callon { background: transparent; color: var(--ok-text); }
.msgr-item-meta em.msgr-at { color: var(--text-1); }
.msgr .typing-txt, .msgr-head-title .typing-txt { color: var(--text-2); }
/* the open chat */
.msgr-placeholder svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-3); }
.msgr-placeholder h3:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-h4); font-weight: var(--w-medium); }
.msgr-head-title b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); line-height: 1.3; }
.msgr-head-title small:where(:not(.tz-world, .tz-world *)) { line-height: 1.35; }
.pin-lines i.on { background: var(--text-1); }
.pin-body b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.msgr-replybar div:where(:not(.tz-world, .tz-world *)),
.msgr-replybar.edit div:where(:not(.tz-world, .tz-world *)) { border-left: 2px solid var(--text-3); }
.msgr-replybar div b:where(:not(.tz-world, .tz-world *)),
.msgr-replybar.edit div b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.msgr-replybar button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-sm); }
.msgr-upload b:where(:not(.tz-world, .tz-world *)) { background: var(--text-2); }
.msgr-drop { border-color: var(--text-3); border-radius: var(--r-lg); color: var(--text-2); }
/* day and system lines: quiet text, no pills */
.msgr-day span:where(:not(.tz-world, .tz-world *)) {
  border-radius: 0; background: transparent; color: var(--text-2);
  font-size: var(--t-xs); font-weight: var(--w-medium);
}
.msgr-sys span:where(:not(.tz-world, .tz-world *)) { border-radius: 0; background: transparent; color: var(--text-2); }
/* bubbles: radius 16, 6 on the corners that join one person's run */
.msgr-messages .msg-bubble { border-radius: 16px; }
.msgr-messages .msg.me .msg-bubble { background: var(--chat-mine); box-shadow: inset 0 0 0 1px var(--control-hairline); }
.msgr-messages .msg:not(.me).last .msg-bubble { border-bottom-left-radius: 16px; }
.msgr-messages .msg.me.last .msg-bubble { border-bottom-right-radius: 16px; }
.msgr-messages .msg:not(.me):not(.first) .msg-bubble { border-top-left-radius: var(--r-xs); }
.msgr-messages .msg:not(.me):not(.last) .msg-bubble { border-bottom-left-radius: var(--r-xs); }
.msgr-messages .msg.me:not(.first) .msg-bubble { border-top-right-radius: var(--r-xs); }
.msgr-messages .msg.me:not(.last) .msg-bubble { border-bottom-right-radius: var(--r-xs); }
.msgr-messages .msg.mention .msg-bubble { background: var(--well); box-shadow: inset 2px 0 0 var(--text-accent); }
.msgr-messages .msg.menu-on .msg-bubble { box-shadow: 0 0 0 2px var(--focus-halo), inset 0 0 0 1px var(--focus); }
.msgr-messages .msg-name[class*="nc-"] { color: var(--text-2); font-weight: var(--w-medium); }
.msg-mention { color: var(--text-1); font-weight: var(--w-medium); }
.msg-mention.me { border-radius: var(--r-xs); background: var(--hover-on-sheet); box-shadow: inset 0 -1px 0 var(--text-3); }
.msg.deleted .msg-text, .msg.deleted .msg-text i { color: var(--text-2); font-style: normal; }
.msg-edited { font-style: normal; }
.msg-tick, .msg-tick.read { color: var(--text-2); letter-spacing: 0; }
.msg-meta.over .msg-tick, .msg-meta.over .msg-tick.read { color: inherit; }
.msg-reply, button.msg-reply {
  border-left: 2px solid var(--text-3);
  border-radius: var(--r-xs);
  background: var(--hover-on-sheet);
}
.msg-reply b:where(:not(.tz-world, .tz-world *)), .msg.me .msg-reply b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.msg-fwd, .msg.me .msg-fwd { color: var(--text-2); }
.msg-fwd b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.msg-actions button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--control-hairline); }
.react { border-radius: var(--r-sm); font-weight: var(--w-medium); }
.react.mine { background: var(--control-fill-hover); box-shadow: inset 0 0 0 1px var(--text-3); }
/* files and voice: line icons in a quiet 40px box (the call note's box: s-calls.css section 6) */
.msg-file-ico {
  border-radius: var(--r-sm);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
}
.msg-file-name b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.voice-play { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-1); }
.voice-play:hover { background: var(--control-fill-hover); }
.voice-wave i.on { background: var(--text-1); }
.voice-speed { background: var(--control-fill); }
/* polls: grey bars; your own answer the darker bar; the picked mark is the selection */
.poll-q { font-weight: var(--w-medium); }
.poll-bar { border-radius: var(--r-pill); background: var(--hover-on-sheet); box-shadow: inset 0 0 0 1px var(--control-hairline); }
.poll-bar b:where(:not(.tz-world, .tz-world *)) { background: var(--text-3); }
.poll-opt.mine .poll-bar b:where(:not(.tz-world, .tz-world *)) { background: var(--text-1); }
.poll-opt.mine .poll-text { color: var(--text-1); font-weight: var(--w-medium); }
.poll-pct { font-weight: var(--w-medium); }
/* the composer */
.msgr-compose textarea:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-sm); }
.msgr-attach, .msgr-emoji-btn,
.msgr-compose .btn.msgr-send.mic, .msgr-compose .btn.msgr-send.mic:hover {
  border-radius: var(--r-sm);
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}
.msgr-attach:hover, .msgr-emoji-btn:hover,
.msgr-compose .btn.msgr-send.mic:hover { background: var(--hover-on-sheet); color: var(--text-1); }
.msgr-emoji-btn.on { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-1); }
.msgr-compose .btn.msgr-send { border-radius: var(--r-sm); }
.rec-cancel { border-radius: var(--r-sm); background: transparent; }
.rec-cancel:hover { background: var(--late-bg); box-shadow: none; }
.rec-live i:where(:not(.tz-world, .tz-world *)) { background: var(--text-2); }
/* menus and pickers on glass: rows nest inside their glass */
.msg-menu-items button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-md); font-weight: var(--w-regular); }
.attach-menu button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-sm); font-weight: var(--w-regular); }
.msg-menu-reacts button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-sm); transition: background-color var(--dur-1) var(--ease-std); }
.emoji-tabs button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-sm); }
.picker-tabs button:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.mention-item, .msgr-sresults button:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-sm); }
.mention-item b:where(:not(.tz-world, .tz-world *)), .msgr-sresults b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
/* windows: people rows; the chosen person is a surface step with a hairline, not the accent */
.msgr-person { border-radius: var(--r-sm); }
label.msgr-person:has(input:checked) { background: var(--sheet-press); box-shadow: inset 0 0 0 1px var(--text-3); }
.msgr-person-text b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.msgr-modal-sub { font-weight: var(--w-medium); }
.poll-edit-row button:where(:not(.tz-world, .tz-world *)) { display: grid; place-items: center; }
/* R2 repair (LEAD-FIX chats 1, design D10): the group name in the «Группа» window is Medium, not the browser bold */
.msgr-group-name b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
/* l-calls.css: layout of the area "calls". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line).
   B8 2026-11-12: layers on the world scale (DECISIONS 2026-11-12 item 5), the control capsule, the incoming card, the pill's
   place against the shell (--shell-top / --shell-bottom). The ring keyframes (paint) moved to skin/s-calls.css. */
/* C:713 */
.call-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}
/* C:714 */
.call-banner span:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 0;
}
/* C:862 */
.call-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
}
/* C:864 */
.call-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* C:867 */
.call-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
/* C:872 */
.call-incoming {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-toast) + 5);
  display: grid;
  place-items: center;
  padding: 16px;
}
/* C:873 */
.ci-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: min(380px, 100%);
  padding: 48px 28px 28px;
}
/* C:876 */
.avatar.huge {
  width: 112px;
  height: 112px;
  animation: ringPulse 1.6s infinite;
}
/* C:878 */
.ci-actions {
  display: flex;
  gap: 26px;
  margin-top: 22px;
}
/* C:879 */
.call-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
/* C:880 removed in R2 (V1:H9): the hover changes the fill only (s-calls.css) */
/* C:883 */
.call-btn.hang svg:where(:not(.tz-world, .tz-world *)) {
  transform: rotate(135deg);
}
/* C:886 */
.call-btn[hidden] {
  display: none;
}
/* C:887 */
.call-ui {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 8);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
/* C:888 */
.call-ui[hidden] {
  display: none;
}
/* C:889 */
.call-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
/* C:890 */
.call-head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 40px;
}
/* C:891 */
.call-head b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* C:893 */
.call-mini {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
/* C:894 */
.call-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 6px 14px;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}
/* C:895 */
.call-grid[data-n="2"],
.call-grid[data-n="3"],
.call-grid[data-n="4"] {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
/* C:896 */
.call-grid[data-n="5"],
.call-grid[data-n="6"] {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
/* C:897 */
.call-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
/* C:898 */
.call-tile video:where(:not(.tz-world, .tz-world *)) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* C:900 */
.call-tile.screen video:where(:not(.tz-world, .tz-world *)) {
  object-fit: contain;
}
/* C:901 */
.call-tile-ava {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* C:902 */
.call-tile.has-video .call-tile-ava {
  visibility: hidden;
}
/* C:903 */
.call-tile .avatar.huge {
  animation: none;
}
/* C:904 */
.call-tile.waiting .avatar.huge {
  animation: ringPulse 1.6s infinite;
}
/* C:905 */
.call-tile-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
}
/* C:906 */
.call-tile-mic {
  display: none;
}
/* C:907 */
.call-tile.muted .call-tile-mic {
  display: inline-flex;
}
/* C:908 */
.call-tile-wait {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  display: none;
}
/* C:909 */
.call-tile.waiting .call-tile-wait {
  display: block;
}
/* C:910 */
.call-self {
  position: absolute;
  right: 16px;
  bottom: 110px;
  width: min(28vw,180px);
  aspect-ratio: 3/4;
  object-fit: cover;
  z-index: 2;
}
/* C:911 */
.call-self.mirror {
  transform: scaleX(-1);
}
/* C:912 */
.call-self[hidden] {
  display: none;
}
/* C:913 */
.call-controls {
  display: flex;
  justify-content: center;
  align-self: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  margin: 10px 12px 18px;
  padding: 10px;
}
/* C:914 */
/* The pill floats over scrolling content, never over a bar or a composer (QA-M1 Q3, requests S1-to-B8, S3-to-B8):
   desktop: bottom left (the top bar, the chat head and the composer stay free); tablet and phone: above the tab bar;
   tablet and phone inside an open chat (the composer at the bottom): under the chat head, over the thread.
   `body .call-pill` also outweighs the temporary rule of l-shared.css (QA-M1 Q3) until K1 deletes it. */
body .call-pill {
  position: fixed;
  left: 24px;
  right: auto;
  top: auto;
  bottom: calc(var(--shell-bottom) + 24px);
  transform: none;
  z-index: calc(var(--z-popover) + 8);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 8px 16px 8px 14px;
  cursor: pointer;
}
.call-pill > svg {
  flex: none;
}
/* C:915 */
.call-pill span:where(:not(.tz-world, .tz-world *)) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-pill b:where(:not(.tz-world, .tz-world *)) {
  flex: none;
  white-space: nowrap;
}
@media (max-width:900px) {
  body .call-pill {
    left: 50%;
    bottom: calc(var(--shell-bottom) + 12px);
    transform: translateX(-50%);
  }
  /* an open chat on the tablet: the composer stands on the tab bar, so the pill goes under the chat head (head ends at 129) */
  body:has(#msgr-compose) .call-pill {
    top: calc(var(--shell-top) + 140px);
    bottom: auto;
  }
}
@media (max-width:760px) {
  /* an open chat on the phone: no tab bar, the composer at the bottom; the chat head ends at 76 */
  body.chat-open .call-pill,
  body:has(#msgr-compose) .call-pill {
    top: calc(var(--shell-top) + 86px);
    bottom: auto;
  }
}
@media (min-width:761px) {
  /* C:917 */
  .call-ui:not(.group) .call-grid {
    padding: 6px 10vw;
  }
}
@media (max-width:760px) {
  /* C:921 */
  .call-controls {
    gap: 12px;
  }
  /* C:922 */
  .call-btn {
    width: 54px;
    height: 54px;
  }
  /* C:923 */
  .call-self {
    bottom: 104px;
    right: 12px;
  }
}
/* R2: the incoming card as drawn: avatar 64, name, what is happening, the actions on one row */
.ci-card { gap: 4px; width: min(360px, 100%); padding: 32px 24px 24px; box-sizing: border-box; }
.ci-ava { width: 64px; height: 64px; margin-bottom: 16px; }
.ci-card small:where(:not(.tz-world, .tz-world *)) { max-width: 100%; }
.ci-actions { align-self: stretch; justify-content: center; gap: 8px; margin-top: 24px; }
.ci-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; }
.ci-actions .btn.ci-video { width: 40px; padding: 0; }
.ci-actions .btn.ci-accept { flex: 1; max-width: 168px; }
@media (max-width:400px) {
  /* R2 repair Q-chats-2: at 360 «Javob berish» keeps one line; the three controls stay on one row inside the card */
  .ci-card { padding-inline: 16px; }
  .ci-actions .btn { padding: 0 12px; white-space: nowrap; }
  .ci-actions .btn.ci-accept { flex: 1 1 auto; max-width: none; }
}
.call-banner { gap: 8px; }
.call-ico { width: 40px; height: 40px; }
.call-back { width: 32px; height: 32px; }
/* s-calls.css: the calls skin (package B8). World tokens only, both themes. Replaces legacy-paint/p-calls.css.
   Markup: site/calls.js (call screen, incoming card, pill, banner); the call note in a bubble: site/chat-plus.js callMsgHtml (B7).
   Glass comes only from world classes added in calls.js: the control capsule over the video is clear glass
   (.lg-glass.lg-clear.lg-pill), the incoming card and the pill are regular glass (.lg-glass.lg-lift). No blur of our own.
   Layers and places: layout/l-calls.css. */

/* ---------- 0. The stage: dark in both themes (it is media) ----------
   Daylight has no dark surface token: its darkest token is the ink (--text-1, #0F1B2D), which is the Evening ground's
   own navy family. Evening uses its ground. Everything on the stage is light ink (--text-on-accent = white in both themes). */
.call-ui {
  --call-stage: var(--text-1);
  --call-ink: var(--text-on-accent);
  --call-ink-2: color-mix(in srgb, var(--text-on-accent) 74%, transparent);
  --call-fill: color-mix(in srgb, var(--text-on-accent) 14%, transparent);
  --call-fill-hover: color-mix(in srgb, var(--text-on-accent) 22%, transparent);
  --call-plate: rgb(var(--shadow-rgb) / .62);
}
html[data-theme="dark"] .call-ui { --call-stage: var(--ground); }

.call-ui {
  background: var(--call-stage);
  color: var(--call-ink);
  font-family: var(--font-text);
}

/* head: minimise, title, status / timer */
.call-head b:where(:not(.tz-world, .tz-world *)) {
  color: var(--call-ink);
  font-size: var(--t-h4);
  font-weight: var(--w-medium);
}
.call-head small:where(:not(.tz-world, .tz-world *)) {
  color: var(--call-ink-2);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.call-mini {
  border: 0;
  border-radius: var(--r-sm);
  background: var(--call-fill);
  color: var(--call-ink);
  transition: background var(--dur-2) var(--ease-std);
}
.call-mini:hover { background: var(--call-fill-hover); }

/* tiles: a quiet lift of the stage; the video covers it when the camera is on */
.call-tile {
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--text-on-accent) 7%, var(--call-stage));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-on-accent) 8%, transparent);
}
.call-tile video:where(:not(.tz-world, .tz-world *)) { opacity: 0; }
.call-tile.has-video video:where(:not(.tz-world, .tz-world *)) { opacity: 1; }
.call-tile.screen video:where(:not(.tz-world, .tz-world *)) { background: var(--call-stage); }

/* the name plate sits on the video: a dimmed plate (not glass: a group of six would be six backdrop layers) */
.call-tile-name {
  border-radius: var(--r-sm);
  background: var(--call-plate);
  color: var(--call-ink);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
}
.call-tile-mic { color: var(--late); }
.call-tile-wait {
  color: var(--call-ink-2);
  font-size: var(--t-sm);
}

/* own picture */
.call-self {
  border-radius: var(--r-md);
  background: var(--call-stage);
  box-shadow: var(--glass-shadow-lift), 0 0 0 1px color-mix(in srgb, var(--text-on-accent) 14%, transparent);
}

/* ---------- 1. Round call buttons ----------
   On the clear-glass capsule: light fills (no glass in glass). Answer = solid ok, end = solid late (white icon). */
.call-btn {
  border: 0;
  border-radius: var(--r-pill);
  background: var(--call-fill, color-mix(in srgb, var(--text-on-accent) 14%, transparent));
  color: var(--text-on-accent);
  transition: background var(--dur-2) var(--ease-std);
}
.call-btn:hover { background: var(--call-fill-hover, color-mix(in srgb, var(--text-on-accent) 22%, transparent)); }
.call-btn.off,
.call-btn.off:hover { background: var(--text-on-accent); color: rgb(var(--shadow-rgb)); }
.call-btn.on,
.call-btn.on:hover { background: var(--accent); color: var(--text-on-accent); }
.call-btn.ok { background: var(--ok); color: var(--text-on-accent); }
.call-btn.ok:hover { background: color-mix(in srgb, var(--ok) 88%, rgb(var(--shadow-rgb))); }
.call-btn.hang { background: var(--late-solid); color: var(--text-on-accent); }
.call-btn.hang:hover { background: color-mix(in srgb, var(--late-solid) 88%, rgb(var(--shadow-rgb))); }

/* the control capsule (clear glass from the world: its optics dim what is behind, the icons stay white) */
.call-controls.lg-glass { --lg-r: var(--r-pill); }

/* ---------- 2. The ring of a waiting avatar (R2: neutral light on the dark stage, no brand glow) ---------- */
.avatar.huge {
  font-size: 38px;
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--text-on-accent) 8%, transparent),
    0 0 0 22px color-mix(in srgb, var(--text-on-accent) 4%, transparent);
}
@keyframes ringPulse {
  50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--text-on-accent) 11%, transparent), 0 0 0 30px color-mix(in srgb, var(--text-on-accent) 4%, transparent); }
}

/* ---------- 3. Incoming call: a floating glass card over the scrim (R2, G3 frame 4) ----------
   name, what is happening, «Отклонить» as quiet red text, «Ответить» the one tinted button of the card */
.call-incoming { background: var(--scrim); }
.ci-card { color: var(--text-1); }
.ci-card.lg-glass { --lg-r: var(--r-lg); }
.ci-card b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-family: var(--font-text);
  font-size: var(--t-h4);
  font-weight: var(--w-medium);
  letter-spacing: 0;
}
.ci-card small:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-ui);
}
.ci-ava { font-size: var(--t-h4); font-weight: var(--w-medium); box-shadow: 0 0 0 6px var(--control-fill); }
.ci-actions .btn { border-radius: var(--r-sm); font-weight: var(--w-medium); }
/* the red is pulled 20% toward the ink: on Daylight glass the plain --late-text measured 3.9:1 */
.ci-actions .btn.ci-decline { color: color-mix(in srgb, var(--late-text) 80%, var(--text-1)); }
.ci-actions .btn.ci-decline:hover { background: var(--late-bg); }

/* ---------- 4. The minimised call: a glass capsule with a live green mark ---------- */
.call-pill {
  border: 0;
  color: var(--text-1);
  font: var(--w-medium) var(--t-sm) / 1.3 var(--font-text);
}
.call-pill > svg {
  border-radius: 0;
  background: transparent;
  color: var(--ok-text);
  box-shadow: none;
}
.call-pill span:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.call-pill b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);   /* --text-2 measured 4.41 worst on the Evening pill: the timer keeps the ink, a lighter weight */
  font-weight: var(--w-regular);
  font-variant-numeric: tabular-nums;
}
.call-pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 5. «Идёт звонок» strip in a chat (a row of the thread's sheet, not a card) ---------- */
.call-banner {
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: var(--text-1);
  font-size: var(--t-sm);
}
.call-banner > svg { color: var(--ok-text); flex: none; }
.call-banner b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.call-banner i:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-style: normal; white-space: nowrap; }
.btn.call-join { border-radius: var(--r-sm); color: var(--text-1); font-weight: var(--w-medium); }

/* ---------- 6. The call note inside a chat bubble (markup: chat-plus.js callMsgHtml, B7) ---------- */
/* R2: a line icon in the same quiet 40px box as a file; the words say what happened (no green or red wash) */
.call-ico,
.msg-call.bad .call-ico {
  border-radius: var(--r-sm);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
}
.call-text b:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-ui); font-weight: var(--w-medium); }
.call-text small:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-xs);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.call-back,
.msg.me .call-back {
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
  transition: background var(--dur-2) var(--ease-std);
}
.call-back:hover,
.msg.me .call-back:hover { background: var(--hover-on-sheet); color: var(--text-1); }

/* ---------- 7. Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .avatar.huge, .call-tile.waiting .avatar.huge { animation: none; }
}
@media (forced-colors: active) {
  .call-btn, .call-mini, .call-back, .call-pill { border: 1px solid ButtonText; }
}
/* l-ai.css: layout of the area "ai". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css
   (C:line); B9 (stage 2); R2 entry group (frames 40:488 / 42:124): the page head, quiet history rows grouped by day, the mode
   switch, the short list above the input, the next step under the answer, a plain composer. Spacing on the 4 px grid. */
/* the page head: title and one line; the history toggle shows on phones only */
.ai-pagehead {
  align-items: center;
}
.ai-list-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: none;
  cursor: pointer;
}
.ai-page {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 16px;
  height: calc(100dvh - 56px);
  min-height: 460px;
}
.ai-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px;
}
.ai-new {
  justify-content: center;
}
.ai-hist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  min-height: 0;
}
.ai-hist-day {
  margin: 12px 10px 4px;
}
.ai-hist-day:first-child {
  margin-top: 4px;
}
.ai-hist {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 6px 8px 10px;
  cursor: pointer;
  position: relative;
}
.ai-hist > span:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ai-hist b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-hist small:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-hist-del {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
.ai-hist-empty {
  padding: 8px 10px;
}
.ai-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0; /* B9: the composer's textarea (cols 20) pushed the column 2px past a 360px screen */
  padding: 0 !important;
}
.ai-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.ai-modeseg {
  flex: none;
}
.ai-head__chat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ai-head__chat b:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-head select:where(:not(.tz-world, .tz-world *)) {
  width: auto;
  max-width: 240px;
  margin-left: auto;
}
.ai-messages {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.ai-msg.me {
  align-self: flex-end;
  align-items: flex-end;
  max-width: min(640px, 85%);
}
.ai-msg.ai {
  align-self: flex-start;
  /* B9: an answer is prose on the sheet at a fixed measure, so the streaming text never changes the width of its box */
  width: 100%;
  max-width: 720px;
}
.ai-bubble {
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
.ai-msg.ai .ai-bubble {
  padding: 0;
  min-width: 0;
}
/* B9: prose blocks the markdown can hold (fenced code, tables) */
.ai-bubble pre:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0 12px;
  padding: 12px;
  overflow-x: auto;
  white-space: pre;
  overflow-wrap: normal;
}
.ai-bubble pre code:where(:not(.tz-world, .tz-world *)) {
  padding: 0;
}
.ai-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 12px;
}
.ai-table table:where(:not(.tz-world, .tz-world *)) {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 60%;
  overflow-wrap: normal;
}
.ai-table th:where(:not(.tz-world, .tz-world *)),
.ai-table td:where(:not(.tz-world, .tz-world *)) {
  padding: 8px 16px 8px 0;
  text-align: left;
  vertical-align: top;
}
.ai-table td:where(:not(.tz-world, .tz-world *)) {
  min-width: 72px;
}
.ai-bubble p:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 8px;
}
.ai-bubble p:last-child:where(:not(.tz-world, .tz-world *)) {
  margin-bottom: 0;
}
.ai-bubble ul:where(:not(.tz-world, .tz-world *)),
.ai-bubble ol:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0 8px;
  padding-left: 20px;
}
.ai-bubble li:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0;
}
.ai-bubble h4:where(:not(.tz-world, .tz-world *)) {
  margin: 16px 0 4px;
}
.ai-bubble h4:first-child:where(:not(.tz-world, .tz-world *)) {
  margin-top: 0;
}
.ai-bubble code:where(:not(.tz-world, .tz-world *)) {
  padding: 1px 4px;
}
.ai-bubble hr:where(:not(.tz-world, .tz-world *)) {
  margin: 12px 0;
}
/* the row under an answer: the next step (a second button) and «Копировать» */
.ai-msg__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.ai-copy {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  cursor: pointer;
}
.ai-msg__foot > .ai-copy:first-child {
  margin-left: -8px;
}
.ai-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.ai-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.ai-typing i:where(:not(.tz-world, .tz-world *)) {
  width: 8px;
  height: 8px;
  animation: pulse 1s infinite;
}
.ai-typing i:nth-child(2):where(:not(.tz-world, .tz-world *)) {
  animation-delay: .2s;
}
.ai-typing i:nth-child(3):where(:not(.tz-world, .tz-world *)) {
  animation-delay: .4s;
}
@media (prefers-reduced-motion: reduce) {
  .ai-typing i:where(:not(.tz-world, .tz-world *)) { animation: none; }
}
.ai-retry {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
/* the empty page: the short list sits at the bottom of the conversation, just above the input */
.ai-start {
  margin-top: auto;
  width: 100%;
  max-width: 720px;
}
.ai-start h2:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
.ai-start p:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0 0;
}
.ai-start p.ai-start__label:where(:not(.tz-world, .tz-world *)) {
  margin: 20px 0 4px;
}
.ai-examples {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-examples button:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 2px 0;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.ai-examples button svg:where(:not(.tz-world, .tz-world *)) {
  flex: none;
}
.ai-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  flex: none;
}
.ai-input textarea:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 0;
  resize: none;
  min-height: 44px;
  max-height: 180px;
  padding: 11px 12px;
}
/* B9 (QA-M1 Q13): a long placeholder stays on one line with an ellipsis instead of wrapping into a clipped second line */
.ai-input textarea:where(:not(.tz-world, .tz-world *))::placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-mic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
.ai-mic.recording {
  animation: pulse 1.2s infinite;
}
.ai-send {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  justify-content: center;
  flex: none;
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px;
}
.plan-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow: auto;
  margin: 12px 0;
}
.plan-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 12px;
  cursor: pointer;
}
.plan-item input:where(:not(.tz-world, .tz-world *)) {
  margin-top: 3px;
  width: auto;
}
.plan-item span:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 1100px) {
  .ai-page { grid-template-columns: 240px minmax(0,1fr); }
}
@media (max-width:760px) {
  .ai-pagehead {
    margin-bottom: 12px;
  }
  .ai-pagehead p:where(:not(.tz-world, .tz-world *)) {
    display: none;
  }
  .ai-pagehead h1:where(:not(.tz-world, .tz-world *)) {
    margin: 0;
  }
  .ai-list-toggle {
    display: grid;
  }
  .ai-page {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 105px);
    position: relative;
  }
  .ai-history {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
  }
  .ai-page.list-open .ai-history {
    display: flex;
  }
  .ai-head {
    min-height: 0;
    padding: 12px;
    gap: 8px;
  }
  /* the mode switch takes the width of the sheet; the project select gets its own row under it */
  .ai-modeseg {
    flex: 1 1 100%;
    display: grid;
  }
  .ai-modeseg > .lg-lens-item {
    padding: 0 6px;
    font-size: var(--t-sm);
  }
  .ai-head select:where(:not(.tz-world, .tz-world *)) {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  /* with a chat open: the name gives way (ellipsis), the project select keeps its whole word */
  .ai-head:has(.ai-head__chat) select:where(:not(.tz-world, .tz-world *)) {
    flex: 0 0 auto;
    max-width: none;
  }
  /* the row under an answer wraps on a phone: «Копировать» lines up with the text either way */
  .ai-msg__foot > .ai-copy {
    margin-left: -8px;
  }
  .ai-head:has(.ai-head__chat) {
    flex-wrap: nowrap;
  }
  .ai-messages {
    padding: 16px 12px;
  }
  .ai-input {
    padding: 8px;
  }
}
/* B9: the unavailable state is a sheet with one centred line */
.ai-off {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
}
body[data-page="ai"] .ai-page {
  flex: 1;
  min-height: 0 !important;
  height: auto !important;
}
/* s-ai.css: the skin of the assistant «Помощник» (B9, stage 2; R2 entry group, frames 40:488 / 42:124). World tokens only,
   both themes. Material: two solid sheets side by side (the history and the conversation, .ai-main is a .panel painted by
   s-shared); the person's messages are neutral bubbles, the answers are prose straight on the sheet (no box in a box).
   Glass only on the mode switch (a segmented control with the lens, wide screens). The composer is a plain field row.
   Shapes: controls and fields r-control (10), bubbles r-card (16), sheets r-sheet (20). */

/* ---------- 1. Local tones ---------- */
.ai-page, #modal-root {
  --ai-mine: var(--sheet-press);
  --ai-code: var(--well);
  --ai-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* ---------- 2. Page head: the history toggle (phones only) ---------- */
.ai-list-toggle {
  border: 0;
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
}
.ai-list-toggle:hover { background: var(--control-fill-hover); color: var(--text-1); }

/* ---------- 3. History (a sheet of its own): quiet rows grouped by day ---------- */
.ai-history {
  border: 1px solid transparent;
  border-radius: var(--r-sheet);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
}
.ai-hist-day {
  color: var(--text-2);
  font-size: var(--t-xs); font-weight: var(--w-medium);
}
.ai-hist {
  border-radius: var(--r-control);
  color: var(--text-1);
  transition: background-color var(--dur-1) var(--ease-std);
}
.ai-hist:hover { background: var(--hover-on-sheet); }
.ai-hist.on, .ai-hist.on:hover { background: var(--sheet-press); box-shadow: inset 0 0 0 1px var(--sheet-hairline); }
.ai-hist b:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-ui);
  font-weight: var(--w-medium);
  color: var(--text-1);
}
.ai-hist small:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-xs);
  color: var(--text-2);
}
.ai-hist-del {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-2);
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.ai-hist:hover .ai-hist-del,
.ai-hist.on .ai-hist-del,
.ai-hist-del:focus-visible { opacity: 1; }
.ai-hist-del:hover { background: var(--hover-on-sheet); color: var(--late-text); }
@media (hover: none) { .ai-hist-del { opacity: 1; } }
.ai-hist-empty { font-size: var(--t-sm); }

/* ---------- 4. Head of the conversation: the mode switch, or the open chat's name ---------- */
.ai-head { border-bottom: 1px solid var(--divider); }
.ai-modeseg > .lg-lens-item[aria-pressed="true"] { font-weight: var(--w-medium); }
.ai-head__chat b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-body); font-weight: var(--w-medium);
}
.ai-head__chat small:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-xs);
}

/* ---------- 5. Messages ---------- */
.ai-bubble { font-size: var(--t-ui); line-height: 1.55; }
.ai-msg.me .ai-bubble {
  border-radius: var(--r-card);
  background: var(--ai-mine);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
}
/* an answer is prose on the sheet: no fill, no border */
.ai-msg.ai .ai-bubble { background: none; border: 0; color: var(--text-1); }

/* prose of an answer (markdown: headings, lists, bold, code, tables, rules): hierarchy by size, weights 400 and 500 */
.ai-bubble h4:where(:not(.tz-world, .tz-world *)) {
  font-size: var(--t-body);
  font-weight: var(--w-medium);
  line-height: 1.4;
  color: var(--text-1);
}
.ai-bubble b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); color: var(--text-1); }
.ai-bubble li::marker { color: var(--text-2); }
.ai-bubble ol > li::marker { font-variant-numeric: tabular-nums; }
.ai-bubble code:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-tag);
  background: var(--ai-code);
  box-shadow: inset 0 0 0 1px var(--divider);
  color: var(--text-1);
  font-family: var(--ai-mono);
  font-size: 13px;
}
.ai-msg.me .ai-bubble code:where(:not(.tz-world, .tz-world *)) { background: var(--sheet); }
.ai-bubble pre:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-control);
  background: var(--ai-code);
  box-shadow: inset 0 0 0 1px var(--divider);
  color: var(--text-1);
  font-family: var(--ai-mono);
  font-size: 13px;
  line-height: 1.5;
}
.ai-bubble pre code:where(:not(.tz-world, .tz-world *)) { background: none; box-shadow: none; }
.ai-bubble hr:where(:not(.tz-world, .tz-world *)) { border: 0; border-top: 1px solid var(--divider); }
/* a small table: a quiet head row over hairlines, no filled band */
.ai-table table:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); line-height: 1.45; font-variant-numeric: tabular-nums; }
.ai-table th:where(:not(.tz-world, .tz-world *)) {
  background: none;
  color: var(--text-2);
  font-weight: var(--w-medium);
  font-size: var(--t-xs);
  border-bottom: 1px solid var(--divider);
}
.ai-table td:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); border-bottom: 1px solid var(--divider); }
.ai-table tr:last-child td:where(:not(.tz-world, .tz-world *)) { border-bottom: 0; }

.ai-copy {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-2);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.ai-copy:hover { background: var(--hover-on-sheet); color: var(--text-1); }
/* the dots while the answer has not started: neutral, the only motion of the page */
.ai-typing i:where(:not(.tz-world, .tz-world *)) { border-radius: 50%; background: var(--text-3); }
.ai-retry { font-size: var(--t-sm); color: var(--text-2); }

/* ---------- 6. The empty page: a short list just above the input ---------- */
.ai-start h2:where(:not(.tz-world, .tz-world *)) {
  font: var(--w-medium) var(--t-h4)/1.3 var(--font-text);
  letter-spacing: 0;
  color: var(--text-1);
}
.ai-start p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.ai-start p.ai-start__label:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-xs); font-weight: var(--w-medium); }
.ai-examples li:where(:not(.tz-world, .tz-world *)) { border-top: 1px solid var(--divider); }
.ai-examples li:last-child:where(:not(.tz-world, .tz-world *)) { border-bottom: 1px solid var(--divider); }
.ai-examples button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-1);
  font-size: var(--t-ui);
  font-weight: var(--w-regular);
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.ai-examples button svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-3); transition: color var(--dur-1) var(--ease-std); }
.ai-examples button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); }
.ai-examples button:hover svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); }
.ai-off {
  border: 1px solid transparent;
  border-radius: var(--r-sheet);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-2);
  font-size: var(--t-body);
}
.ai-loading { color: var(--text-2); }

/* ---------- 7. The next step under an answer, the composer ---------- */
.ai-busy { color: var(--text-2); font-size: var(--t-sm); }
.ai-input { border-top: 1px solid var(--divider); }
/* the field: the shared control look with the control radius (not the capsule) */
.ai-input textarea:where(:not(.tz-world, .tz-world *)) { border-radius: var(--r-control); line-height: 1.45; }
.ai-mic {
  border: 0;
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
  transition: background-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.ai-mic:hover { background: var(--control-fill-hover); color: var(--text-1); }
.ai-mic.recording, .ai-mic.recording:hover {
  background: var(--late-bg);
  box-shadow: inset 0 0 0 1px var(--late-text);
  color: var(--late-text);
}
/* send is quiet while the field is empty; it takes the accent once there is text */
.ai-input .btn.ai-send {
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
}
.ai-input .btn.ai-send:hover { background: var(--control-fill-hover); color: var(--text-1); }
.ai-input:has(textarea:not(:placeholder-shown)) .btn.ai-send {
  background: var(--accent);
  box-shadow: none;
  color: var(--text-on-accent);
}

/* ---------- 8. «Задачи из контент-плана» (a window) ---------- */
.plan-item {
  border: 1px solid var(--divider);
  border-radius: var(--r-control);
  transition: background-color var(--dur-1) var(--ease-std);
}
.plan-item:hover { background: var(--sheet-hover); }
.plan-item b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); color: var(--text-1); }
.plan-item small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }

/* ---------- 9. Phone: the history is a solid sheet over the conversation ---------- */
@media (max-width: 760px) {
  .ai-history { box-shadow: var(--glass-shadow-lift), inset 0 0 0 1px var(--sheet-hairline); }
}
/* l-team.css: layout of the area "team". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line). */
/* S:18 */
.alias-line span:where(:not(.tz-world, .tz-world *)) {
  padding: 6px 10px;
}
/* S:24 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
}
/* S:24 */
.project-card {
  padding: 18px;
}
/* S:24 */
.project-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* S:24 */
.project-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
/* S:24 */
.project-card h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* S:24 */
.project-card p:where(:not(.tz-world, .tz-world *)) {
  margin: 3px 0 0;
}
/* S:24 */
.brand-note {
  padding: 12px;
  margin: 14px 0;
}
/* S:24 */
.alias-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* S:26 */
.team-list {
  display: grid;
  gap: 8px;
}
/* S:26 */
.team-list div:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
/* S:26 */
.team-list b:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
}
/* S:32 */
.project-card {
  cursor: pointer;
}
/* S:32 */
.project-edit {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
/* S:32 */
.project-facts {
  display: grid;
  gap: 6px;
  margin: -5px 0 12px;
}
/* S:32 */
.project-facts span:where(:not(.tz-world, .tz-world *)) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* S:34 */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 400px;
  gap: 16px;
  align-items: start;
}
/* S:34 */
.admin-panel {
  padding: 24px;
}
/* S:34 */
.admin-panel h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 16px;
}
/* S:34 */
.admin-team-list {
  display: grid;
  gap: 0;
}
/* S:34 */
.admin-team-row {
  display: grid;
  grid-template-columns: auto minmax(130px,1fr) 145px auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
}
/* S:34 */
.team-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}
/* S:34, B10: a full name wraps instead of being cut (full names readable at 1440 in Uzbek) */
.team-person b:where(:not(.tz-world, .tz-world *)) {
  white-space: normal;
  overflow-wrap: anywhere;
}
/* S:34 */
.admin-team-row select:where(:not(.tz-world, .tz-world *)) {
  height: 36px;
  min-width: 0;
  width: 100%;
  padding: 0 28px 0 12px;
}
/* S:34 */
.late-list {
  display: grid;
  gap: 0;
}
/* S:34 */
.late-list button:where(:not(.tz-world, .tz-world *)) {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  text-align: left;
  display: grid;
  align-content: center;
  gap: 2px;
}
@media (max-width:760px) {
  /* S:36 */
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
/* C:50 */
.ops-main .admin-panel {
  padding: 24px;
}
/* C:149 */
.tg-admin {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
/* C:150 */
.tg-admin h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
/* C:153 */
.tg-steps {
  margin: 0;
  padding-left: 20px;
}
/* C:154 */
.tg-steps code:where(:not(.tz-world, .tz-world *)) {
  padding: 1px 6px;
}
/* C:156 */
.tg-token-row {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}
/* C:157 */
.tg-token-row input:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 220px;
}
/* C:161 */
.ops-main .admin-grid {
  grid-template-columns: minmax(0,1fr) 400px;
}
@media (max-width:1180px) {
  /* C:163 */
  .ops-main .admin-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
/* C:248 */
.team-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
/* C:254 */
.report-panel {
  grid-column: 1 / -1;
}
/* C:255 */
.report-periods {
  margin: 16px 0 20px;
}
/* R2 (G5): the period switch is a segmented control hugging its options (tz-seg sizes; the lens is the world's) */
.report-panel .report-periods.tz-seg {
  width: fit-content;
  max-width: 100%;
}
/* C:256 */
.report-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin-bottom: 20px;
}
/* C:257 */
.report-kpis div:where(:not(.tz-world, .tz-world *)) {
  padding: 4px 16px;
  display: grid;
  align-content: start;
  gap: 4px;
}
.report-kpis div:first-child:where(:not(.tz-world, .tz-world *)) { padding-left: 0; }
/* C:260 */
.report-scroll {
  overflow-x: auto;
}
/* C:261 */
.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
/* C:262 */
.report-table th:where(:not(.tz-world, .tz-world *)) {
  text-align: left;
  padding: 8px 12px;
  white-space: nowrap;
}
/* C:263 */
.report-table td:where(:not(.tz-world, .tz-world *)) {
  padding: 8px 12px;
}
/* unslop V2:P35: figures right-aligned under right-aligned headers (desktop only: CHECK.md, on the phone
   the right edge of the scrolled table sits over the warm background and the red figures lose contrast) */
@media (min-width: 761px) {
  .report-table :is(th, td):not(:first-child) { text-align: right; }
}
/* C:264 */
.report-table td small:where(:not(.tz-world, .tz-world *)) {
  display: block;
}
/* C:268 */
.recurring-list {
  display: grid;
  gap: 0;
}
/* C:269 */
.recurring-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 0;
}
/* C:270 */
.recurring-row span:where(:not(.tz-world, .tz-world *)) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
@media (max-width:700px) {
  /* C:273 */
  .report-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
    row-gap: 12px;
  }
  /* C:273 */
  .recurring-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* C:590 */
:has(> .report-table):where(:not(.tz-world, .tz-world *)) {
  overflow-x: auto;
  max-width: 100%;
}
/* C:606 */
.storage-panel h4:where(:not(.tz-world, .tz-world *)) {
  margin: 16px 0 8px;
}
/* C:607 */
.storage-disk p:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0 0;
}
/* C:609 */
.storage-bar {
  height: 10px;
  overflow: hidden;
}
/* C:610 */
.storage-bar i:where(:not(.tz-world, .tz-world *)) {
  display: block;
  height: 100%;
}
/* C:612 */
.storage-rows,
.storage-people {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
/* C:613 */
.storage-rows div:where(:not(.tz-world, .tz-world *)),
.storage-people div:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
/* C:614 */
.storage-rows span:where(:not(.tz-world, .tz-world *)),
.storage-people span:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* C:615 */
.storage-rows small:where(:not(.tz-world, .tz-world *)) {
  min-width: 44px;
  text-align: right;
}
/* C:616 */
.storage-panel .micro-copy {
  margin-top: 14px;
}
/* C:786 */
.msg-sticker .team-sticker {
  width: min(150px,40vw);
  height: auto;
  animation: stickerPop .35s cubic-bezier(.2,1.6,.4,1);
}
/* C:787 */
.msg-sticker .team-sticker {
  max-height: 170px;
  object-fit: contain;
}
/* C:936 */
.gif-alt {
  margin-top: 12px;
}
/* C:937 */
.gif-alt summary:where(:not(.tz-world, .tz-world *)) {
  cursor: pointer;
}
/* C:938 */
.gif-alt .tg-steps {
  margin-top: 8px;
}
/* C:945 */
.team-dep-head i:where(:not(.tz-world, .tz-world *)),
.org-dep header i:where(:not(.tz-world, .tz-world *)) {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: none;
}
/* C:972 */
.org-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}
/* C:973 */
.org-dep {
  padding: 12px 0;
}
.org-dep:last-child { padding-bottom: 0; }
.org-dep .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.org-dep .chip { min-height: 28px; padding: 4px 8px; display: inline-flex; align-items: center; }
/* C:974 */
.org-dep header:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
/* C:977 */
.org-dep header .icon-action {
  margin-left: auto;
  width: 32px;
  height: 32px;
}
/* C:978 */
.org-dep .chip {
  cursor: pointer;
}
/* C:979 */
.org-dep .chip em:where(:not(.tz-world, .tz-world *)) {
  margin-left: 4px;
}
/* C:981 */
.team-dep-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 12px 4px;
}
/* C:982 */
.team-dep-head:first-child {
  margin-top: 0;
}
/* R2 (G5): every row on one grid so the columns line up: avatar | person | position (one width) | access (one width) | actions
   (one width, measured on the Uzbek capture for the longest pair «Tasdiqlash» + «Parol»: see notes/r2/team.md) */
.ops-main .admin-team-row {
  grid-template-columns: 34px minmax(0,1fr) minmax(150px, 232px) minmax(152px, 168px) var(--team-act-w, 184px); /* R2 repair (LEAD-FIX team 3): the access column holds «Администратор» with the arrow clear */
  min-height: 60px;
}
/* R2 repair (LEAD-FIX team 3): from 1520px the position column has room for the longest position of the company in one line */
@media (min-width:1520px) {
  .ops-main .admin-team-row { grid-template-columns: 34px minmax(0,1fr) minmax(150px, 304px) minmax(152px, 168px) var(--team-act-w, 184px); }
}
/* C:984 */
.ops-main .admin-team-row .team-actions {
  justify-content: flex-end;
}
/* B10: the two row buttons stay on one line (Inter is wider than the old face; «Отключить» + «Пароль» wrapped in 150px) */
@media (min-width:761px) {
  .ops-main .admin-team-row .team-actions {
    flex-wrap: nowrap;
  }
}
/* C:986 */
.team-pos {
  text-align: right;
  grid-column: 3/-1;
}
/* C:987 */
.report-panel .panel-title-row select:where(:not(.tz-world, .tz-world *)) {
  margin-left: auto;
  padding: 6px 8px;
}
/* C:988 */
.report-panel .panel-title-row select+.btn {
  margin-left: 8px;
}
@media (max-width:760px) {
  /* R2 (G5): on the phone every person is a card of one build: the person on top (avatar beside the name), the position and
     the access select one under the other at full width, the actions at the right edge; the people sheet itself opens up (s-team.css) */
  .ops-main .admin-team-row {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 8px;
    padding: 16px;
    min-height: 0;
  }
  .ops-main .admin-team-row > .avatar { grid-column: 1; grid-row: 1; align-self: start; }
  .ops-main .admin-team-row > .team-person { grid-column: 1 / -1; grid-row: 1; padding-left: 46px; min-height: 34px; align-content: center; }
  /* R2 repair (LEAD-FIX team 3, QA matrix / read P2): each select takes the full row, position then access (as R1), so the labels read whole */
  .ops-main .admin-team-row > select[data-user-role],
  .ops-main .admin-team-row > select[data-user-access] { grid-column: 1 / -1; }
  .ops-main .admin-team-row .team-actions,
  .team-pos {
    grid-column: 1/-1;
    text-align: left;
    justify-content: flex-end;
  }
  .ops-main .team-panel { padding: 0; }
  .ops-main .team-panel > .panel-title-row { padding: 0 4px; }
  .ops-main .admin-team-list { gap: 8px; }
  .ops-main .team-panel > .micro-copy { padding: 0 4px; }
  .team-dep-head { margin: 12px 4px 0; }
  .admin-side { gap: 12px; }
  .ops-main .admin-panel, .tg-admin { padding: 16px; }
  .report-kpis div:where(:not(.tz-world, .tz-world *)) { padding: 4px 12px; }
  .report-kpis div:nth-child(odd):where(:not(.tz-world, .tz-world *)) { padding-left: 0; }
  /* the two head buttons share one row */
  .ops-main .page-head .head-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ops-main .page-head .head-actions .btn { min-width: 0; padding-inline: 8px; }
}
/* B10: the colour fields of the department and project windows show their swatch (the shared field padding left a 5px line) */
#dep-color,
#pr-color {
  width: 100%;
  height: var(--ctl-h);
  padding: 4px;
  cursor: pointer;
}
/* Lead, 2026-11-12 (CHECK-2 R2): on a phone the department select and «Excel» squeezed the report heading into one syllable
   per line («От / чё / т», «Hi / so / bo / t»). The heading keeps its words; with a select beside it, it takes its own line. */
@media (max-width:760px) {
  .report-panel .panel-title-row {
    flex-wrap: wrap;
  }
  .report-panel .panel-title-row h3:where(:not(.tz-world, .tz-world *)) {
    white-space: nowrap;
  }
  .report-panel .panel-title-row:has(select) h3:where(:not(.tz-world, .tz-world *)) {
    flex: 1 0 100%;
  }
  .report-panel .panel-title-row select:where(:not(.tz-world, .tz-world *)) {
    flex: 1 1 140px;
    min-width: 0;
    margin-left: 0;
  }
}

/* ---------- R2 (G5): the right column (overdue list, departments), the overdue count, the person's tags ---------- */
.admin-side {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}
.admin-side > .admin-panel { min-width: 0; }
.late-panel h3:where(:not(.tz-world, .tz-world *)) { display: flex; align-items: baseline; gap: 8px; }
/* the overdue list keeps to about eight rows on a wide screen and scrolls inside (data-k keeps its place on a re-render) */
@media (min-width:1181px) {
  .late-list { max-height: 488px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px; }
}
.team-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}
.team-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  white-space: nowrap;
}
.team-actions { justify-content: flex-end; }
.team-actions .team-toggle { min-width: var(--team-toggle-w, 104px); }
.team-actions .btn.small { min-height: 36px; }
.rec-del { width: 36px; min-height: 36px; padding: 0; display: inline-grid; place-items: center; }
.member-grid { margin-top: 0; }
/* R2 (G5): the foot of «Добавить человека» and «Временный пароль»: «Отмена» quiet, the window's one tinted action on the right */
.tz-dialog__foot > .modal-actions:has(#save-member, #reset-save) { display: flex; align-items: center; gap: 8px; }
@media (max-width:760px) {
  .ops-main .admin-team-row select:where(:not(.tz-world, .tz-world *)) { height: var(--ctl-h); }
  .ops-main .team-panel.admin-panel { padding: 0; }
}
.team-panel .panel-title-row h3:where(:not(.tz-world, .tz-world *)) { display: flex; align-items: baseline; gap: 8px; }
/* R2 (G5): between the phone and the wide desk (761-1439px since the repair round: a laptop at 1280 or 1366 left the name 100-190px) a row takes two lines so the name keeps its room: avatar,
   person and actions on the first, the two selects under the name on the second (the columns still line up) */
@media (min-width:761px) and (max-width:1439px) {
  .ops-main .admin-team-row:has(select) {
    grid-template-columns: 34px minmax(0,1fr) minmax(0,1fr) var(--team-act-w, 184px);
    /* R2 repair (LEAD-FIX team 3): the position takes the two middle tracks, the access select the action column under the
       buttons, so the longest position («Менеджер по корпоративным клиентам») and «Администратор» read whole at 761-1439 */
    grid-template-areas: "av person person act" ". role role access";
    row-gap: 8px;
    padding-block: 12px;
  }
  .ops-main .admin-team-row:has(select) > .avatar { grid-area: av; }
  .ops-main .admin-team-row:has(select) > .team-person { grid-area: person; }
  .ops-main .admin-team-row:has(select) > select[data-user-role] { grid-area: role; }
  .ops-main .admin-team-row:has(select) > select[data-user-access] { grid-area: access; }
  .ops-main .admin-team-row:has(select) > .team-actions { grid-area: act; }
}
/* R2 (G5): on the phone the period switch takes the sheet's width and its options sit closer, so «Прошлый месяц» is whole at 390 */
@media (max-width:760px) {
  .report-panel .report-periods.tz-seg { width: 100%; }
  .report-panel .report-periods.tz-seg > .lg-lens-item { padding: 0 6px; }
}
/* s-team.css: the paint of the team area (B10, stage 2). Replaces legacy-paint/p-team.css.
   Team (people, structure, pending sign-ups, overdue list, report, recurring rules, integrations, storage), projects and
   brands, and the windows of the area (their frame is K1's modal). World tokens only, both themes (Evening, Daylight).
   Layout: layout/l-team.css.
   Tiers: every panel and every project card is a T1 sheet (.panel, s-shared.css); what sat inside as a box of its own
   (people rows, departments, overdue rows, recurring rules, report figures) is now flat: rows on hairlines, no second
   box. The brand note is a T2 well. The only glass of the area is the report's period switch (.report-periods: a tz-seg
   with the lens, lg-glass from 761px, an inset track on phones; R2). Data colours (department dots, project logos, the storage fill
   width) stay what the database holds; they are marks, never text. */

/* ---------- 1. Panels: the sheets come from s-shared.css (.panel); titles here ---------- */
.admin-panel { color: var(--text-1); }
.admin-panel h3:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-h4); font-weight: var(--w-medium); line-height: 1.3;
}
.admin-panel .micro-copy { color: var(--text-2); }
.admin-panel .micro-copy b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); color: var(--text-1); }

/* ---------- 2. People: flat rows on hairlines, grouped under the department line ---------- */
.admin-team-row {
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
  transition: background-color var(--dur-1) var(--ease-std);
}
.admin-team-row:last-child { border-bottom-color: transparent; }
.admin-team-row:hover { background: var(--hover-on-sheet); }
/* R2 (G5): a sign-up waiting for a decision is marked by its quiet tag («ждёт подтверждения»), not by a coloured row */
/* a switched-off person: quieter ink, no transparency (the button says «Включить») */
.admin-team-row.inactive:not(.pending) .team-person b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.admin-team-row.inactive:not(.pending) .avatar { background: var(--well); color: var(--text-2); }
.team-person b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-ui); font-weight: var(--w-medium); line-height: 1.4;
}
.team-tag {
  border-radius: var(--r-tag);
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: var(--t-xs); font-weight: var(--w-medium); line-height: 1.35;
}
.team-tag--wait { background: var(--warn-bg); color: var(--warn-text); }
.team-person small:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-xs); line-height: 1.35;
}
.team-pos { color: var(--text-2); font-size: var(--t-sm); }
.admin-team-row select:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); }
.team-dep-head {
  color: var(--text-2);
  font-size: var(--t-sm); font-weight: var(--w-medium);
  text-transform: none; letter-spacing: 0;
}
.team-dep-head i:where(:not(.tz-world, .tz-world *)),
.org-dep header i:where(:not(.tz-world, .tz-world *)) {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
}

/* ---------- 3. Departments and positions: flat groups on hairlines ---------- */
.org-dep {
  border: 0;
  border-top: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
}
.org-dep:first-child { border-top-color: transparent; }
.org-dep header b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-ui); font-weight: var(--w-medium); }
.org-dep header small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.org-dep .chip { border: 0; font-size: var(--t-xs); }
/* «+ Должность»: a quiet text action, no dashed box */
.org-dep .chip.chip-add { border: 0; background: transparent; box-shadow: none; color: var(--text-2); }
.org-dep .chip.chip-add:hover { background: var(--hover-on-sheet); color: var(--text-1); }
.org-dep .chip em:where(:not(.tz-world, .tz-world *)) {
  font-style: normal;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Overdue tasks: rows on hairlines ---------- */
.late-list button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.late-list button:last-child:where(:not(.tz-world, .tz-world *)) { border-bottom-color: transparent; }
.late-list button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); }
.late-list b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1); font-size: var(--t-ui); font-weight: var(--w-medium); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.late-count { color: var(--text-2); font-size: var(--t-ui); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.late-list { scrollbar-width: thin; }
.late-list span:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }

/* ---------- 5. Report: the period switch (glass), the four figures (cells on hairlines), the table ---------- */
.report-periods > .lg-lens-item {
  -webkit-appearance: none; appearance: none;
  border: 0; background: transparent; cursor: pointer;
  font-size: var(--t-sm);
}
.report-kpis div:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-right: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
}
.report-kpis div:last-child:where(:not(.tz-world, .tz-world *)) { border-right: 0; }
.report-kpis b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-num)/var(--lh-num) var(--font-text); /* R2 repair (LEAD-FIX shared 2): the kit's «Цифра», Inter only */
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.report-kpis span:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
.report-table { font-size: var(--t-sm); color: var(--text-1); }
/* R2: the head is quiet text over a hairline, no well */
.report-table th:where(:not(.tz-world, .tz-world *)) {
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: var(--text-2);
  font-size: var(--t-xs); font-weight: var(--w-medium);
}
.report-table td:where(:not(.tz-world, .tz-world *)) {
  border-bottom: 1px solid var(--divider);
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.report-table td b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.report-table td small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); }
.report-table em:where(:not(.tz-world, .tz-world *)) { font-style: normal; }
.report-table tbody tr:hover td:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); }
.report-panel .panel-title-row select:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); }

/* ---------- 6. Recurring rules: rows on hairlines ---------- */
.recurring-row {
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
}
.recurring-row:last-child { border-bottom-color: transparent; }
.recurring-row b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-ui); font-weight: var(--w-medium); }
/* unslop V2:P15: the delete of a rule is a quiet control that turns red on hover (it asks «Удалить?» before it deletes) */
.recurring-row .btn.small.danger { background: var(--control-fill); box-shadow: inset 0 0 0 1px var(--control-hairline); color: var(--text-2); }
.recurring-row .btn.small.danger:hover { color: var(--late-text); }
.recurring-row small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); line-height: 1.35; }
.recurring-row.inactive b:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }

/* ---------- 7. Integrations (Telegram, Claude, GIF): steps, codes, links ---------- */
.tg-steps { color: var(--text-2); font-size: var(--t-sm); line-height: 1.6; }
.tg-steps b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
/* R2: a connected integration says so in a quiet line (no check mark, no green word) */
.tg-admin .tg-ok { color: var(--text-1); font-weight: var(--w-medium); }
.tg-steps code:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-xs);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
  color: var(--text-1);
  font-size: var(--t-xs);
}
.tg-steps a:where(:not(.tz-world, .tz-world *)) { color: var(--text-accent); font-weight: var(--w-medium); }
.tg-steps a:hover:where(:not(.tz-world, .tz-world *)) { text-decoration: underline; }
.gif-alt { color: var(--text-2); font-size: var(--t-sm); }
.gif-alt summary:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-xs);
  color: var(--text-accent);
  font-weight: var(--w-medium);
}

/* ---------- 8. Storage: a meter on a well, figures in ink ---------- */
.storage-panel h4:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-sm); font-weight: var(--w-medium); }
.storage-disk p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
.storage-disk p b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; } /* R2 repair (LEAD-FIX team 4): «128 ГБ» Medium, not the browser's 700 */
.storage-bar {
  border-radius: var(--r-pill);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
}
.storage-bar i:where(:not(.tz-world, .tz-world *)) { border-radius: inherit; background: var(--accent); }
.storage-bar.low i:where(:not(.tz-world, .tz-world *)) { background: var(--late); }
.storage-rows div:where(:not(.tz-world, .tz-world *)),
.storage-people div:where(:not(.tz-world, .tz-world *)) { font-size: var(--t-sm); }
.storage-rows span:where(:not(.tz-world, .tz-world *)),
.storage-people span:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); }
.storage-rows b:where(:not(.tz-world, .tz-world *)),
.storage-people b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.storage-rows small:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }

/* ---------- 9. Projects and brands ---------- */
.project-card {
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.project-card:hover { background: var(--sheet-hover); }
.project-card h3:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-size: var(--t-h4); font-weight: var(--w-medium); line-height: 1.3; }
.project-card p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
/* the logo is a data colour (the project's own): a mark with its first letter, ringed so a pale colour still has an edge */
/* The inline background is the project's own colour (data, any hue): it shows as a 26% tint under the sheet (the way an
   avatar shows its department), so the letter is ink in both themes; white on a pale data colour measured 2.5:1. */
.project-logo {
  border-radius: var(--r-control);
  box-shadow: inset 0 0 0 1px var(--sheet-hairline), inset 0 0 0 64px color-mix(in srgb, var(--sheet) 74%, transparent);
  color: var(--text-1);
  font: var(--w-medium) var(--t-h4)/1 var(--font-text);
}
.project-edit {
  border: 0;
  border-radius: var(--r-control);
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-std);
}
.project-edit:hover { background: var(--control-fill-hover); color: var(--text-1); }
.brand-note {
  border-radius: var(--r-control);
  background: var(--well);
  color: var(--text-1);
  font-size: var(--t-sm);
  line-height: 1.45;
}
.project-facts span:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); font-size: var(--t-sm); }
.alias-line span:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-tag);
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: var(--t-xs); font-weight: var(--w-medium);
}


/* ---------- 10. Phone: the four report figures stand two by two ---------- */
@media (max-width:700px) {
  .report-kpis div:nth-child(2n):where(:not(.tz-world, .tz-world *)) { border-right: 0; }
}

/* ---------- 11. The colour fields of the department and project windows (size in l-team.css) ---------- */
:is(#dep-color, #pr-color)::-webkit-color-swatch-wrapper { padding: 0; }
:is(#dep-color, #pr-color)::-webkit-color-swatch { border: 0; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--sheet-hairline); }

/* ---------- 12. A delete action in the glass foot of the area's windows: a solid tone underlay ---------- */
/* .btn.danger is a 12% tone; on the glass foot over a light page it measured 3.37:1 in Daylight (K1 asked to do it for all) */
#rec-remove.btn.danger { background: color-mix(in srgb, var(--late) 12%, var(--sheet)); }
/* unslop V2:P16: the delete of a department or a position sits at the far left of the foot as a plain button with red
   text; «Сохранить» stays the one tinted action of the window, on the right */
:is(#dep-del, #pos-del).btn.danger {
  order: -1; margin-right: auto;
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--late-text);
}

/* ---------- 13. R2 (G5): the phone shows people as cards of one build; the people sheet opens up around them ---------- */
@media (max-width:760px) {
  .ops-main .team-panel.panel { background: transparent; box-shadow: none; border-color: transparent; }
  .ops-main .team-panel .admin-team-row,
  .ops-main .team-panel .admin-team-row:last-child {
    border: 0;
    border-radius: var(--r-card);
    background: var(--sheet-fill);
    box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  }
  .ops-main .team-panel .admin-team-row:hover { background: var(--sheet-fill); }
}
/* l-profile.css: layout of the area "profile". Generated by tools/split-css.js from site/styles.css (S:line) and
   site/creative-os.css (C:line); B11 (stage 2) rearranged it into named groups (DECISIONS 2026-11-12 14:10, item 2).
   Desktop (above 1100px): the account sheet (.profile-me: photo, name, «Выйти») stands on the left and stays in view;
   every other group is one sheet in a single column on the right (Оформление, Руководство, Пароль, the install card,
   the own department, Уведомления, the admin's parser card). A new row joins its sheet, a new group is one more sheet:
   nothing here depends on how many there are. 1100px and below: one column, the account sheet first. */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
  max-width: 1120px;
}
.profile-grid > * {
  grid-column: 2;
  min-width: 0;
  margin: 0 0 16px;
}
/* the account sheet spans every row of the right column and stays under the top bar while the groups scroll */
.profile-grid > .profile-me {
  grid-column: 1;
  grid-row: 1 / span 12;
  position: sticky;
  top: 0;   /* measured from the content edge of .ops-main, whose top padding already clears the top bar */
}
.profile-card {
  padding: 24px;
}
.profile-card p:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 12px;
}

/* ---------- the account sheet: photo, name, role line, the name field with its button, «Выйти» ---------- */
.profile-me {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 12px;
  align-items: end;
  padding: 24px;
  text-align: start;   /* R2 (G5): left-aligned like every other sheet */
}
.profile-me > .profile-photo,
.profile-me > h2,
.profile-me > p,
.profile-me > #logout {
  grid-column: 1 / -1;
}
.profile-me > h2:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0 0;
}
.profile-me > p:where(:not(.tz-world, .tz-world *)) {
  margin: -6px 0 6px;
}
.profile-me > label:where(:not(.tz-world, .tz-world *)) {
  padding: 0;
  gap: 6px;
  text-align: start;
}
.profile-me > #save-profile {
  min-height: var(--ctl-h);
  padding-block: 0;
}
.profile-me > #logout {
  margin-top: 8px;
  justify-self: start;
}
/* R2 (G5): the photo and its button side by side */
.profile-photo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.profile-photo > .avatar.big {
  width: 64px;
  height: 64px;
}
.profile-photo>.avatar {
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.profile-photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ---------- the group sheets: title on top, content left-aligned ---------- */
.profile-grid > .panel:not(.profile-me) {
  text-align: start;
}
/* one inner measure for every group sheet (the password sheet is also .admin-panel, padded by l-team.css) */
.profile-grid > .panel {
  padding: 24px;
}
.profile-grid > .panel:not(.profile-me):not(.tg-card) > h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 12px;
}
.profile-look {
  padding: 24px;
}
/* Оформление: the shell's look controls as label + control rows; the background picker takes the full width */
.profile-look__ctl .tz-look {
  grid-template-columns: minmax(120px, 180px) minmax(0, 560px);
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
}
.profile-look__ctl .tz-look__label {
  padding: 0;
  margin: 0;
}
.profile-look__ctl .tz-look__seg {
  margin: 0;
}
.profile-look__ctl .tz-look__ground {
  grid-column: 1 / -1;
  margin-top: 6px;
}
.profile-look__ctl .tz-ground__title {
  padding-inline: 0;
}
/* unslop V2:P5: the swatches stand on an even grid and their names are not cut */
.profile-look__ctl .tz-ground__grid { gap: 12px; }
.profile-look__ctl .tz-ground__cap { min-height: 0; }
.profile-guide p:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 12px;
}
.ai-control-card {
  padding: 24px;
}
.ai-setup-copy {
  padding: 16px;
  margin-top: 12px;
}
.ai-setup-copy p:where(:not(.tz-world, .tz-world *)) {
  margin: 6px 0 12px;
}
.ai-setup-copy code:where(:not(.tz-world, .tz-world *)) {
  padding: 2px 6px;
}
.tg-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.tg-card h3:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
.tg-card p:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
.tg-hint {
  margin: 0;
}
/* the own department (members only): flat rows on hairlines */
.profile-team {
  padding: 24px;
}
.profile-team .team-list {
  gap: 0;
}
.profile-team .team-list > div:where(:not(.tz-world, .tz-world *)) {
  min-height: 56px;
  padding: 8px 0;
}
.profile-team .team-list em:where(:not(.tz-world, .tz-world *)) {
  text-align: end;
}

@media (max-width:1100px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }
  .profile-grid > *,
  .profile-grid > .profile-me {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  /* the account sheet heads the column */
  .profile-grid > .profile-me {
    order: -1;
  }
}
@media (max-width:760px) {
  .profile-grid > * {
    margin-bottom: 12px;
  }
  .profile-card,
  .profile-look,
  .profile-me,
  .tg-card,
  .profile-team,
  .ai-control-card,
  .profile-grid > .panel {
    padding: 20px 16px;
  }
  .profile-look__ctl .tz-look {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
  .profile-look__ctl .tz-look__label {
    margin-top: 8px;
  }
  .profile-look__ctl .tz-look__label:first-child {
    margin-top: 0;
  }
}
/* s-profile.css: the paint of the profile (B11, stage 2). Replaces legacy-paint/p-profile.css.
   World tokens only, both themes (Evening, Daylight). Layout: layout/l-profile.css.
   Tiers: every group is a T1 sheet (.panel, s-shared.css); what sat inside as a box of its own is flat (department rows on
   hairlines) or a T2 well (the parser's setup note). No glass of its own: the look controls (Оформление) are the shell's
   segmented controls on an inset fill (shell.css), they carry no backdrop on the sheet. The strong action of the screen
   is the top bar's «Новая задача» (DECISIONS 14:00 item 9): the page's own buttons are secondary. */

/* ---------- 1. Group titles and their text ---------- */
.profile-grid > .panel > h3:where(:not(.tz-world, .tz-world *)),
.profile-grid > .panel > .panel-title-row > h3:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-h4); font-weight: var(--w-medium); line-height: 1.3;
}
.profile-card p:where(:not(.tz-world, .tz-world *)),
.profile-grid > .panel > p:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  line-height: 1.5;
}

/* ---------- 2. The account sheet ---------- */
.profile-me > h2:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-h3)/1.25 var(--font-text); letter-spacing: 0; /* R2 repair (LEAD-FIX team 1): Inter 500, no tracking */
  overflow-wrap: anywhere;
}
.profile-me > .profile-role:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-sm); line-height: 1.45;
}
.profile-photo > .avatar {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--sheet-hairline);
}
.profile-photo > .avatar:hover { box-shadow: inset 0 0 0 2px var(--text-accent); }
/* «Выйти»: a plain button with red text (unslop V2:P11) */
.profile-me > #logout {
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline);
  color: var(--late-text);
}

/* ---------- 3. Оформление: the shell's look controls on the sheet ---------- */
/* unslop V2:P31: «Фон» has the weight of «Язык», «Тема», «Стекло» */
.profile-look__ctl :is(.tz-look__label, .tz-ground__title) { color: var(--text-2); font-size: var(--t-sm); font-weight: var(--w-medium); }

/* ---------- 4. The own department (members): flat rows ---------- */
.profile-team .team-list > div:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
}
.profile-team .team-list > div:last-child:where(:not(.tz-world, .tz-world *)) { border-bottom-color: transparent; }
.profile-team .team-list b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-ui); font-weight: var(--w-medium);
}
.profile-team .team-list em:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-sm); font-style: normal;
}

/* ---------- 5. Telegram (the «Уведомления» group) and the install card ---------- */
.tg-hint { font-size: var(--t-xs); }
/* R2 (G5): the Telegram state is a quiet line (no check mark, no green word) */
.profile-tg .tg-ok { color: var(--text-1); font-weight: var(--w-medium); }
/* the install card is printed by app-boot.js (lead): its «Установить» follows the page rule, a secondary button */
.profile-grid #install-app {
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 2px rgb(var(--shadow-rgb) / .06);
  color: var(--text-1);
}
.profile-grid #install-app:hover { background: var(--control-fill-hover); }

/* ---------- 6. The parser card (admin) ---------- */
.clean-list .ok-li { color: var(--ok-text); font-weight: var(--w-medium); }
.clean-list .warn-li { color: var(--warn-text); font-weight: var(--w-medium); }
.ai-setup-copy {
  border-radius: var(--r-control);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
  color: var(--text-1);
  line-height: 1.5;
}
.ai-setup-copy b:where(:not(.tz-world, .tz-world *)) { color: var(--text-1); font-weight: var(--w-medium); }
.ai-setup-copy p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }
.ai-setup-copy code:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-xs);
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--divider);
  color: var(--text-1);
  font-size: var(--t-sm); font-weight: var(--w-medium);
}
/* l-guide.css: layout of the area "guide" (guide page and the 404 page). Generated by tools/split-css.js from
   site/styles.css (S:line) and site/creative-os.css (C:line); B11 (stage 2): the contents and the section anchors keep clear
   of the floating top bar (--shell-top), the split's layout !important are gone, the tip lost its emoji.
   The two-column grid itself (.guide) is in layout/l-shared.css (K1's file, moved there by the split for order). */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
}
.notfound h1:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
}
.notfound p:where(:not(.tz-world, .tz-world *)) {
  margin: 0 0 10px;
  max-width: 420px;
}
.guide-toc {
  position: sticky;
  top: 0;   /* measured from the content edge of .ops-main (its top padding clears the top bar) */
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}
.guide-toc b:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0 8px 10px;
}
.guide-toc button:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  text-align: start;
  cursor: pointer;
}
.guide-toc svg:where(:not(.tz-world, .tz-world *)) {
  flex: none;
}
.guide-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.guide-video {
  padding: 12px;
}
.guide-video video:where(:not(.tz-world, .tz-world *)) {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}
.guide-video p:where(:not(.tz-world, .tz-world *)) {
  margin: 12px 4px 4px;
}
.guide-sec {
  padding: 24px;
  scroll-margin-top: calc(var(--shell-top) + 8px);
}
.guide-sec header:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.guide-sec h2:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.guide-role {
  padding: 2px 8px;
}
.guide-sec ol:where(:not(.tz-world, .tz-world *)) {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-sec li b:where(:not(.tz-world, .tz-world *)),
.guide-faq b:where(:not(.tz-world, .tz-world *)),
.guide-tip b:where(:not(.tz-world, .tz-world *)) {
  padding: 1px 4px;
}
.guide-tip {
  margin: 16px 0 0;
  padding: 12px 16px;
}
.guide-faq {
  padding: 12px 2px;
}
.guide-faq:first-of-type {
  padding-top: 2px;
}
.guide-faq summary:where(:not(.tz-world, .tz-world *)) {
  cursor: pointer;
  min-height: 32px;
  padding: 4px 0;
}
.guide-faq p:where(:not(.tz-world, .tz-world *)) {
  margin: 8px 0 0;
}
@media (max-width:900px) {
  .guide {
    grid-template-columns: 1fr;
  }
  /* the contents become one scrolling row of chips; the sheet never scrolls sideways itself */
  .guide-toc {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
    scrollbar-width: none;
  }
  .guide-toc::-webkit-scrollbar {
    display: none;
  }
  .guide-toc b:where(:not(.tz-world, .tz-world *)) {
    display: none;
  }
  .guide-toc button:where(:not(.tz-world, .tz-world *)) {
    flex: none;
    white-space: nowrap;
    padding: 6px 12px;
  }
  .guide-sec {
    padding: 20px 16px;
  }
  .guide-sec ol:where(:not(.tz-world, .tz-world *)) {
    padding-left: 20px;
  }
}
/* s-guide.css: the paint of the guide and of the 404 page (B11, stage 2). Replaces legacy-paint/p-guide.css.
   World tokens only, both themes. Layout: layout/l-guide.css.
   Tiers: the contents, the video and every section are T1 sheets (.panel, s-shared.css). Inside a section nothing is a
   box of its own except the tip, a T2 well. Button names in the text are small key-like wells. Role chips take the world
   tones (all = neutral, executor = fine, manager = review, admin = attention). No glass: the guide is reading, not
   controls; nothing lies over the video (its own controls are the browser's). */

/* ---------- 1. The contents ---------- */
.guide-toc b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-sm); font-weight: var(--w-medium);
  letter-spacing: 0; text-transform: none;
}
.guide-toc button:where(:not(.tz-world, .tz-world *)) {
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-1);
  font: inherit; font-size: var(--t-ui); line-height: 1.35;
  transition: background-color var(--dur-1) var(--ease-std);
}
.guide-toc button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-sheet); }
.guide-toc button:active:where(:not(.tz-world, .tz-world *)) { background: var(--sheet-press); }
.guide-toc svg:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); }

/* ---------- 2. The video ---------- */
.guide-video video:where(:not(.tz-world, .tz-world *)) {
  border-radius: calc(var(--r-sheet) - 12px);   /* nested: the sheet's 20 minus its 12 padding */
  background: var(--well);
}
.guide-video p:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-ui); line-height: 1.45;
}

/* ---------- 3. Sections ---------- */
.guide-sec h2:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-h4)/1.3 var(--font-text);
}
/* R2: the role is a quiet tag (radius 6, neutral): who a section is for is information, not a colour */
.guide-role {
  border: 0;
  border-radius: var(--r-tag);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
  color: var(--text-2);
  font-size: var(--t-xs); font-weight: var(--w-medium); line-height: 1.5;
}
.guide-sec ol:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-body); line-height: 1.6;
}
.guide-sec li:where(:not(.tz-world, .tz-world *))::marker {
  color: var(--text-2);
  font-weight: var(--w-medium);
}
.guide-sec li b:where(:not(.tz-world, .tz-world *)),
.guide-faq b:where(:not(.tz-world, .tz-world *)),
.guide-tip b:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-xs);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
  color: var(--text-1);
  font-weight: var(--w-medium);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* the tip: a T2 well (R2: no accent edge; the old green box and its emoji are gone) */
.guide-tip {
  border-radius: var(--r-control);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-hairline);
  color: var(--text-1);
  font-size: var(--t-ui); line-height: 1.55;
}
.guide-tip b:where(:not(.tz-world, .tz-world *)) { background: var(--sheet); }

/* ---------- 4. Questions ---------- */
.guide-faq { border-top: 1px solid var(--divider); }
.guide-faq:first-of-type { border-top: 0; }
.guide-faq summary:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font-size: var(--t-body); font-weight: var(--w-medium);
}
.guide-faq summary:where(:not(.tz-world, .tz-world *))::marker { color: var(--text-2); }
.guide-faq p:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-ui); line-height: 1.55;
}
@media (max-width:900px) {
  .guide-toc button:where(:not(.tz-world, .tz-world *)) {
    border-radius: var(--r-control);
    background: var(--control-fill);
    box-shadow: inset 0 0 0 1px var(--control-hairline);
    font-size: var(--t-sm);
  }
  .guide-sec ol:where(:not(.tz-world, .tz-world *)) { font-size: .9375rem; }
}

/* ---------- 5. The 404 page ---------- */
.notfound b:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font: var(--w-medium) 4.5rem/1 var(--font-text); letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.notfound h1:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-h3)/1.25 var(--font-text); letter-spacing: 0;
}
.notfound p:where(:not(.tz-world, .tz-world *)) { color: var(--text-2); line-height: 1.5; }
/* l-auth.css: layout of the area "auth" (sign-in, registration). Generated by tools/split-css.js from site/styles.css
   (S:line) and site/creative-os.css (C:line); B11 (stage 2): safe areas, the glass pills, room at the bottom for one quiet
   footer line of links later (DECISIONS 2026-11-12 14:10, item 3: nothing is printed there yet). */
body.auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 80px) 16px calc(env(safe-area-inset-bottom) + 72px);
  position: relative;
}
.auth-home {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 16px);
  left: calc(env(safe-area-inset-left) + 16px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px 0 12px;
}
.lang-switch.auth-lang {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 16px);
  right: calc(env(safe-area-inset-right) + 16px);
  padding: 4px;
  gap: 2px;
}
.lang-switch.auth-lang button:where(:not(.tz-world, .tz-world *)) {
  min-width: 44px;
  min-height: 32px;
  padding: 0 12px;
}
.auth-box {
  width: min(420px, 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;   /* R3: the 42x28 mark replaced the 32 tile; the row keeps its height so the title does not move */
}
.auth-box h1:where(:not(.tz-world, .tz-world *)) {
  margin: 4px 0 0;
}
.auth-sub {
  margin: -8px 0 4px;
}
/* the switch: two equal halves across the sheet (the world's .tz-seg sizes the track and the items) */
.auth-seg {
  display: grid;
  width: 100%;
  grid-auto-columns: minmax(0, 1fr);
}
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-fields label:where(:not(.tz-world, .tz-world *)) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-fields input:where(:not(.tz-world, .tz-world *)),
.auth-fields select:where(:not(.tz-world, .tz-world *)) {
  height: 44px;
}
.auth-go {
  min-height: 48px;
  justify-content: center;
  margin-top: 4px;
}
@media (max-width:480px) {
  .auth-box {
    padding: 24px 20px;
  }
}
/* s-auth.css: the paint of sign-in and registration (B11, stage 2). Replaces legacy-paint/p-auth.css, whose dark page
   and navy box made the sign-in dark in both themes by accident (PLAN C12). World tokens only, both themes.
   The page is the world's ground (the body stays transparent, base.css paints the field). The form is ONE solid sheet
   (T1, radius 20). The two controls floating on the ground are the control layer: the home link and the language switch
   carry .lg-glass .lg-pill (added in renderAuth). R2: the mode switch «Вход · Регистрация» is the world's segmented
   control with the lens (.tz-seg .lg-glass on the solid sheet: glass on a solid sheet, never on glass). The main action
   is the solid accent (.btn.primary, s-shared.css), the one tinted button of the page.
   Wrong password and «заявка отправлена» are world toasts (app-core.js toast()); nothing of them is painted here. */

body.auth-screen { color: var(--text-1); }

/* ---------- 1. Floating on the ground: glass pills ---------- */
.auth-home {
  color: var(--text-1);
  font-size: var(--t-ui); font-weight: var(--w-medium);
  text-decoration: none;
}
.auth-home:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-switch.auth-lang {
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
}
.lang-switch.auth-lang button:where(:not(.tz-world, .tz-world *)) {
  border-radius: var(--r-pill);
  color: var(--text-1);
  font-size: var(--t-sm);
}
.lang-switch.auth-lang button:hover:where(:not(.tz-world, .tz-world *)) { background: var(--hover-on-glass); }
.lang-switch.auth-lang button.on {
  background: var(--control-fill-hover);
  box-shadow: inset 0 0 0 1px var(--control-hairline), 0 1px 2px rgb(var(--shadow-rgb) / .12);
  color: var(--text-1);
}

/* ---------- 2. The form sheet ---------- */
.auth-box {
  border: 0;
  border-radius: var(--r-sheet);
  background: var(--sheet-fill);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-hairline);
  color: var(--text-1);
}
.auth-brand {
  color: var(--text-1);
  font-size: var(--t-body);
}
.auth-brand b:where(:not(.tz-world, .tz-world *)) { font-weight: var(--w-medium); }
.auth-box h1:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-1);
  font: var(--w-medium) var(--t-h2)/1.2 var(--font-text); letter-spacing: 0;
}
.auth-sub {
  color: var(--text-2);
  font-size: var(--t-ui); line-height: 1.5;
}

/* ---------- 3. «Вход · Регистрация»: a segmented control with the lens (R2, G6) ---------- */
/* the lens selects by aria-current (the items are links); the world styles the pressed state, the current one is ours */
.auth-seg > .lg-lens-item { color: var(--text-2); text-decoration: none; }
.auth-seg > .lg-lens-item:hover { color: var(--text-1); }
.auth-seg > .lg-lens-item[aria-current="page"] { color: var(--lens-label); font-weight: var(--w-medium); }

/* ---------- 4. Fields (the controls themselves are s-shared.css) ---------- */
.auth-fields label:where(:not(.tz-world, .tz-world *)) {
  color: var(--text-2);
  font-size: var(--t-sm); font-weight: var(--w-medium);
}
.auth-go { font-size: var(--t-body); }

/* unslop V2:P34: field text at regular weight; the empty select reads as a placeholder */
.auth-fields :is(input, select) { font-weight: var(--w-regular); }
.auth-fields select:has(option[value=""]:checked) { color: var(--text-3); }
.auth-fields select option { color: var(--text-1); }
/* l-shared-late.css: layout of the area "shared-late". Generated by tools/split-css.js from site/styles.css (S:line) and site/creative-os.css (C:line). */
@media (max-width:760px) {
  /* C:54 moved from shell: must stay after C:38 .factory-head */
  .ops-page-head {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }
}
/* C:544 moved from shared: must stay after C:508 .guide-sec h2 */
.ops-main h1:where(:not(.tz-world, .tz-world *)),
.ops-main h2:where(:not(.tz-world, .tz-world *)),
.ops-main h3:where(:not(.tz-world, .tz-world *)) {
  overflow-wrap: break-word;
  min-width: 0;
}
/* C:720 moved from chats: must stay after C:714 .call-banner span */
.notify-banner span:where(:not(.tz-world, .tz-world *)) {
  flex: 1;
}
/* C:758 moved from chats: must stay after C:590 :has(> .report-table) */
.round {
  position: relative;
  width: min(240px,62vw);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}
/* platform.css (platform-build): the subscription notice, the invitation page and the invitations panel of «Команда».
   Only drawn when the server says the environment is a part of the GEMPLOYER platform. */
.ge-sub {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  margin: 0 0 var(--sp-4); padding: var(--sp-4);
  border-radius: var(--r-card); background: var(--sheet); border: 1px solid var(--sheet-hairline); box-shadow: var(--sheet-shadow);
}
.ge-sub__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--well); color: var(--accent); }
.ge-sub--warn .ge-sub__icon { background: var(--warn-bg); color: var(--warn-text); }
.ge-sub--late .ge-sub__icon { background: var(--late-bg); color: var(--late-text); }
.ge-sub--late { border-color: rgb(235 35 67 / .28); }
.ge-sub__body { min-width: 0; }
.ge-sub__title { display: block; font-size: var(--t-body); font-weight: var(--w-semibold); margin-bottom: 2px; }
.ge-sub__body p { margin: 0; font-size: var(--t-ui); line-height: 1.45; }
.ge-sub__how { display: block; margin-top: var(--sp-2); }
.ge-sub .nowrap { white-space: nowrap; }

.auth-company { margin: 0 0 var(--sp-3); font-weight: var(--w-semibold); }
.auth-invite-note { margin: var(--sp-3) 0 0; text-align: center; }
.ge-invite .micro-copy { margin-top: var(--sp-3); text-align: center; }
.ge-closed .auth-go { margin-top: var(--sp-4); }

.ge-inv__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0; }
.ge-inv__form label { display: grid; gap: var(--sp-1); font-size: var(--t-sm); }
.ge-inv__link { margin: var(--sp-3) 0; padding: var(--sp-3); border-radius: var(--r-card); background: var(--ok-bg); }
.ge-inv__link p { margin: 0 0 var(--sp-2); font-size: var(--t-sm); }
.ge-inv__list { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.ge-inv__row { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; padding: var(--sp-2) 0; border-top: 1px solid var(--divider); font-size: var(--t-ui); }
.ge-inv__row small { display: block; color: var(--neutral-text); font-size: var(--t-sm); }
.ge-inv__row--used, .ge-inv__row--expired, .ge-inv__row--revoked { opacity: .62; }
@media (max-width: 600px) { .ge-inv__form { grid-template-columns: 1fr; } }
