/* 2027: smooth cross-document navigation — a subtle crossfade between pages
   instead of a hard white-flash reload. Same-origin only; browsers without
   support fall back to normal navigation. Applies app-wide. */
@view-transition { navigation: auto; }

body {
  margin: var(--s-10);
}

.time {
  display: block;
  padding: 7px var(--s-10);
  background-color: var(--light-background);
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 400;
  line-height: 18.2px;
  text-align: start;
  border-radius: 24px;
}

.input,
.box {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  color: var(--gray);
}

.input.wide {
  grid-column: 1 / -1;
}

.select2-container {
  width: auto !important;
  flex: 1;
  pointer-events: auto;
}

.select2-dropdown {
  z-index: 10000;
}

.input input,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.select2-container--default .select2-search--dropdown .select2-search__field {
  width: 100%;
  padding-block: var(--s-4);
  padding-inline: var(--s-6) 46px;
  background-color: var(--white);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--black);
  border: 1px solid transparent;
  outline: none;
  min-height: 36px;
  border-radius: var(--r-3);
  pointer-events: auto;
}

.select2-container .select2-selection--multiple  {
  padding-block: var(--s-2);
  padding-inline: var(--s-6) 46px;
}
.select2-container .select2-selection--multiple .select2-selection__choice {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--black);
  background-color: var(--white);
  margin: 0;
}
.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove span {
  font-size: var(--t-4);
  line-height: 20.11px;
  color: var(--black);
}
.input input {
  padding: var(--s-4) var(--s-6) var(--s-4) var(--s-6);
}

.input input[type="date"] {
  padding: var(--s-4) var(--s-6);
  cursor: pointer;
  border-radius: var(--r-3);
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.8px;
  color: var(--black);

}

textarea {
  width: 100%;
  flex: 1;
  /* Was 24px — a text box shaped unlike every other text box. */
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-6);
  resize: none;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  outline: none;
  border: none;
  margin: 0;
}

.input input::placeholder,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder,
textarea::placeholder {
  color: var(--gray);
  line-height: 20.11px;
}

.input input:focus {
  border-color: var(--primary-color);
}

.input .error {
  font-family: var(--font-b);
  font-size: var(--t-1);
  font-weight: 400;
  line-height: 15.08px;
  color: var(--red);
  display: inline-block;
  margin-inline-start: var(--s-6);
}

input.invalid {
  border-color: var(--red);
}

.select2-container--default .select2-selection--single.invalid,
.select2-container--default .select2-selection--multiple.invalid {
  border-color: var(--red);
}

.input.domain {
  position: relative
}

.input.domain input {
  padding-inline-end: 128px;
}

.input.domain .domain-name {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--black);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  color: var(--black);
  margin-top: var(--s-3);
  display: block;
  background: url('../images/icons/arrow-down.svg') no-repeat;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
  width: 20px;
  height: 20px;
  background-image: url('../images/icons/arrow-down.svg');
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  inset-inline-end: 12px;
  transition: all .1s linear;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow,
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
  transform: translateY(-50%) rotate(-180deg);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container--default .select2-selection--multiple .select2-selection__arrow b {
  display: none;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,
.select2-dropdown--below {
  border-radius: var(--r-3);
  border-start-start-radius: 0;
  border-start-end-radius: 0;
  border-color: var(--primary-color);
  border-top: none;
  overflow: hidden;

}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,
.select2-dropdown--above {
  border-radius: var(--r-3);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  border-color: var(--primary-color);
  border-bottom: none;
  overflow: hidden;
}

.select2-container--default.select2-container--multiple .select2-selection--multiple {
  min-height: 36px !important;
  height: auto !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--s-2) var(--s-6);
}

.select2-container--default.select2-container--multiple .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.select2-container--default.select2-container--multiple .select2-selection--multiple .select2-selection__choice {
  margin: var(--s-2);
}

.select2-search--dropdown {
  padding: 0;
  position: relative;
}

.select2-container--default .select2-search--dropdown::before {
  content: url('../images/icons/search.svg');
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
}

.select2-dropdown--above {
  padding: var(--s-8) var(--s-6) var(--s-4);
}

.select2-dropdown--below {
  padding: var(--s-4) var(--s-6) var(--s-8);
}

.select2-dropdown--above,
.select2-dropdown--below {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.select2-dropdown--above::before,
.select2-dropdown--below::before {
  content: '';
  width: calc(100% - 24px);
  inset-inline-start: 12px;
  border-top: 1px solid var(--primary-color);
  position: absolute;
}

.select2-dropdown--above::before {
  bottom: 0;
}

.select2-dropdown--below::before {
  top: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--gray-light2);
  padding-inline-start: var(--s-12);
}

.select2-results__option {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--gray);
  border-radius: var(--r-pill);
  padding: var(--s-4) var(--s-6);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--selected {
  background-color: var(--opacity-primary-color);
  color: var(--gray);
}

.select2-container--default .select2-results>.select2-results__options {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  justify-content: flex-end;
  margin-top: var(--s-4);
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 600;
  line-height: 17.6px;
  color: var(--gray);
}

.pagination .select2-container {
  flex: 0;
}

.pagination ul {
  display: flex;
  gap: var(--s-4);
}

.pagination .active {
    background-color: var(--primary-color);
    color: var(--white);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.radio-row>span {
  display: inline-block;
  width: 100%;
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  color: var(--gray);
  display: inline-block;
  margin-bottom: -8px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  height: 20px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding-inline-start: 28px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 20px;
  width: 20px;
  border: 1px solid var(--primary-color);
  border-radius: var(--r-2);
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--primary-color);
}

.checkbox-container input[type="radio"]:checked~.checkmark {
  background-color: var(--white);
}

.checkbox-container input[type="radio"]~.checkmark {
  border-radius: 50%;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  content: url('../images/icons/checkbox.svg');
  position: absolute;
  inset-inline-start: 2px;
  top: 1px;
}

.checkbox-container input[type="radio"]:checked~.checkmark:after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 3px;
  inset-inline-start: 3px;
}

.checkbox-title {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--gray);
}

.success-message,
.pending-access,
.notifications {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: var(--sh-4);
  position: absolute;
  inset-inline-end: 24px;
  top: 24px;
  width: 408px;
  padding: var(--s-9);
  border-radius: 20px;
  display: none;
  align-items: center;
  gap: var(--s-8);
  z-index: 1000;
}

.success-message {
  position: static;
}

.success-messages-container {
  position: absolute;
  inset-inline-end: 24px;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.pending-access {
  width: 278px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-8);
  inset-inline-end: 12px;
  top: 12px;
}

.pending-access__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-8);
  width: 100%;
}

.pending-access__buttons button {
  flex: 1;
}

.pending-access__title {
  font-family: var(--font-h);
  font-size: var(--t-5);
  font-weight: 500;
  line-height: 23.4px;
  color: var(--black);
}

.pending-access__info .email {
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 400;
  line-height: 18.2px;
  color: var(--gray);
  margin-bottom: var(--s-2);
}

.pending-access__info p {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.8px;
  color: var(--black);
}

.success-message.show,
.pending-access.show {
  display: flex;
}

.success-message__icon {
  border-radius: 50%;
  min-width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-message p {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.8px;
  color: var(--black);
}

.content .success-message {
  inset-inline-end: 8px;
  top: 8px;
}

.content .success-message .close-btn {
  align-self: flex-start;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 300px;
  /* padding-top: 150px;
  margin-top: -150px; */
}

.horizontal-scroll::-webkit-scrollbar,
.popup-content::-webkit-scrollbar {
  height: 20px;
}

/* Track */
.horizontal-scroll::-webkit-scrollbar-track,
.popup-content::-webkit-scrollbar-track {
  background-color: var(--scroll-track);
  border-radius: var(--r-4);
}

/* Handle */
.horizontal-scroll::-webkit-scrollbar-thumb,
.popup-content::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: var(--r-4);
  height: 8px;
  border: 6px solid var(--scroll-track);
  cursor: pointer;
}

.off-scroll {
  scrollbar-width: none;
  border-radius: 24px;
}

.off-scroll::-webkit-scrollbar {
  display: none;
}

.grey-block {
  padding: var(--s-8);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--s-10);
  background-color: var(--light-background);
}

/* On ticket-list pages the .grey-block holds a collapsible .filter-bar
   as one of its children. The 24px gap inherited above shows up as
   ~40px of empty grey between the title row and the table when the bar
   is collapsed (the collapsed bar still occupies a flex slot, so the
   gap above it persists). Tighten the gap on these pages only. */
.grey-block:has(.filter-bar) { gap: var(--s-4); }

/* When the chips row follows the filter bar, it should sit flush
   against the bar (one capsule with just a divider in between),
   matching the approved chips-white preview. Negative margin cancels
   the 8px parent gap so the two rows touch. */
.filter-bar + .applied-chips { margin-top: -8px; }

.grey-block .select2-container {
  flex: 0;
}

.col-2 {
  display: flex;
  gap: var(--s-6)}

.col-2 .grey-block {
  width: calc(50% - 6px);
}

.page-title {
  font-family: var(--font-h);
  font-size: var(--t-6);
  font-weight: 500;
  line-height: 26px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.gray-title {
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  color: var(--gray);
  margin-bottom: var(--s-4);
}

.filter,
.filter form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-8);
}

.filter .nav__search {
  flex-wrap: nowrap;
}

.filter .select2-container--default .select2-selection--single {
  min-width: 206px !important;
}

.left {
  margin-inline-start: auto;
}

.container {
  display: flex;
  gap: var(--s-6);
  min-height: calc(100vh - 48px);
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  position: relative;
}

nav {
  background-color: var(--light-background);
  border-radius: var(--r-pill);
  display: flex;
  padding: var(--s-6);
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-6);
}

.nav__buttons {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

main {
  max-width: calc(100% - 300px);
  width: 100%;
}

.big-sidebar main {
  max-width: calc(100% - 422px);
}

/* Manage console: full-width (no left rail) + breadcrumb back to Manage. */
.manage-fullwidth .sidebar { display: none; }
.manage-fullwidth main { max-width: 100%; }
.mcrumb {
  /* It's a <nav>, so override the global header-nav rule (pill bg, fixed height,
     space-between) — a breadcrumb is a compact, left-aligned text row. */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-4);
  background: transparent;
  height: auto;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-b);
  font-size: var(--t-2);
  color: var(--gray);
  margin: 0 0 var(--s-7);
}
.mcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
.mcrumb a:hover { text-decoration: underline; }
.mcrumb-sep { color: var(--gray); }
.mcrumb-cur { font-family: var(--font-h); font-weight: 600; color: var(--black); }

/* Universal destructive-confirm modal */
.uc-scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .42); display: none; z-index: 1300; }
.uc-scrim.open { display: block; }
.uc-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 430px; max-width: 92vw; background: #fff; border-radius: 16px; box-shadow: var(--sh-4); z-index: 1301; padding: 22px var(--s-10); }
.uc-modal[hidden] { display: none; }
.uc-ico { width: 44px; height: 44px; border-radius: var(--r-5); background: #FDEEF0; display: grid; place-items: center; margin-bottom: var(--s-6); }
.uc-modal h3 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-4); margin: 0 0 var(--s-3); color: var(--black); }
.uc-modal p { font-size: var(--t-3); color: #5b6670; line-height: 1.55; margin: 0 0 var(--s-4); }
.uc-name { display: inline-block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); background: #F1F4F5; border-radius: var(--r-2); padding: var(--s-2) var(--s-5); color: #26313c; margin: var(--s-2) 0 var(--s-6); }
.uc-foot { display: flex; gap: var(--s-5); justify-content: flex-end; margin-top: var(--s-4); }
.uc-cancel, .uc-go { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); border-radius: var(--r-pill); padding: 9px 18px; border: none; cursor: pointer; }
.uc-cancel { background: #F4F6F7; color: #3f4650; }
.uc-go { background: var(--red, #C31D3E); color: #fff; }
.uc-go:focus-visible, .uc-cancel:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.muted-empty,
/* Inside a modal, `.popup-content p` (0-1-1) outranks a lone class, so these
   empty states rendered 16px Poppins centred instead of small italic. */
.popup-content p.muted-empty { font-size: var(--t-2); color: var(--gray); margin: var(--s-4) 0 0;
  font-style: italic; font-family: var(--font-b); font-weight: 400;
  line-height: var(--lh-3); text-align: start; }

/* Console table — brand-styled, with a search bar + client-side sortable headers. */
.ctbl-bar { display: flex; align-items: center; gap: var(--s-5); margin: var(--s-2) 0 var(--s-6); flex-wrap: wrap; }
.ctbl-search { position: relative; flex: 1; min-width: 220px; }
.ctbl-search input { width: 100%; font-family: var(--font-b); font-size: var(--t-3); padding-block: 9px; padding-inline: 36px var(--s-7); border: 1px solid #E3E8EA; border-radius: var(--r-pill); outline: none; }
.ctbl-search input:focus { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.ctbl-search > svg { position: absolute; inset-inline-start: 13px; top: 10px; }
.ctbl-count { font-size: var(--t-2); color: var(--gray); white-space: nowrap; }
.ctbl { width: 100%; border-collapse: collapse; }
.ctbl thead th { text-align: start; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--gray); padding: var(--s-5) var(--s-7); border-bottom: 1px solid #EEF1F3; white-space: nowrap; }
.ctbl th[data-sort] { cursor: pointer; user-select: none; }
.ctbl th[data-sort]:hover { color: var(--primary-color); }
.ctbl th[data-sort]:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.ctbl th .sar { color: var(--gray); font-size: var(--t-1); margin-inline-start: var(--s-2); }
.ctbl th.sorted-asc .sar::after { content: '▲'; }
.ctbl th.sorted-desc .sar::after { content: '▼'; }
.ctbl th[data-sort]:not(.sorted-asc):not(.sorted-desc) .sar::after { content: '↕'; }
.ctbl th.sorted-asc .sar, .ctbl th.sorted-desc .sar { color: var(--primary-color); }
.ctbl tbody td { padding: var(--s-6) var(--s-7); border-bottom: 1px solid #F4F6F7; font-size: var(--t-3); vertical-align: middle; }
.ctbl tbody tr:hover { background: #FAFBFB; }
.ctbl-noresult td { text-align: center; color: var(--gray); padding: 26px; font-style: italic; }

/* Illustrated, actionable empty state (console-wide). */
.cempty { text-align: center; padding: var(--s-12) var(--s-9); }
.cempty .ic { width: 56px; height: 56px; border-radius: 16px; background: #E6F1F1; display: grid; place-items: center; margin: 0 auto var(--s-7); }
.cempty h4 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-4); margin: 0 0 5px; color: var(--black); }
.cempty p { font-size: var(--t-2); color: var(--gray); margin: 0 auto 15px; max-width: 360px; line-height: var(--lh-3); }
.cempty .cempty-cta { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #fff; background: var(--primary-color); border: none; border-radius: var(--r-pill); padding: 9px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
.cempty .cempty-cta:hover { background: #05575c; }
/* When the empty state lives in a table row, drop the row's hover tint + border
   so the illustration reads as a panel, not a data row. */
.ctbl tbody tr[data-empty]:hover { background: transparent; }
.ctbl tbody tr[data-empty] td { border-bottom: none; }
/* When the empty state spans a card grid (Groups / Locations), let it fill the
   full width above the always-present "add" card. */
.cempty.full-span { grid-column: 1 / -1; background: #fff; border: 1px dashed #DBE3E4; border-radius: 16px; }

/* A11y (batch 3): visible keyboard focus on custom (non-native) interactive
   controls — the toggle switch, dropzone, kebab trigger, event checkbox,
   group option, and integrations icon buttons. Only shows for keyboard users
   (:focus-visible), so mouse clicks don't paint a ring. */
.settings-tg:focus-visible,
.actions-button:focus-visible,
.intm-evck:focus-visible,
.int-gopt:focus-visible,
.int-chip .rm:focus-visible,
.ibtn:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: var(--r-3); }
.dropzone:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }

.sidebar {
  width: 288px;
  background-color: var(--light-background);
  padding: var(--s-6);
  max-width: 100%;
  border-radius: var(--r-5);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
}

.big-sidebar .sidebar {
  width: 410px;
}

.sidebar>svg {
  min-height: 40px;
}

.sidebar__title {
  margin-top: 36px;
  font-family: var(--font-h);
  font-size: var(--t-7);
  font-weight: 500;
  line-height: 31.2px;
  color: var(--black);
  margin-bottom: var(--s-10);
}

.sidebar__back-button {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-6);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 600;
  line-height: 20.8px;
  color: var(--green);
  margin-bottom: var(--s-6);
}

.sidebar__content {
  height: 100%;
  overflow-y: auto;
  border-radius: 0px;
  position: relative;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.summary__title {
  font-family: var(--font-h);
  font-size: var(--t-6);
  font-weight: 500;
  line-height: 26px;
  text-align: start;
  color: var(--black);
  margin-bottom: var(--s-4);
}

.status__info,
.status__info li {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.status__info li {
  gap: var(--s-2);
}

.status__info li {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 600;
  line-height: 20.11px;
  text-align: start;
  color: var(--black);
}

.status__info li span:last-child {
  font-weight: 400;
}

.menu {
  margin-bottom: -151px;
}

.shadow-top,
.shadow-bottom {
  position: sticky;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 151px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shadow-top {
  top: 0;
  margin-top: -151px;
  background: linear-gradient(180deg, #F6F6F6 0%, rgba(246, 246, 246, 0) 100%);
}

.shadow-bottom {
  bottom: 0;
  background: linear-gradient(0deg, #F6F6F6 0%, rgba(246, 246, 246, 0) 100%);
}

.sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.sidebar__footer a, .sidebar__footer button {
  font-family: var(--font-b);
  font-size: var(--t-6);
  font-weight: 400;
  line-height: 26px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  cursor: pointer;
}

.profile__title {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  position: relative;
}

/* Account menu (Help / Log Out relocated from the sidebar) */
.profile-caret {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-inline-start: -4px;
}
.profile-caret:hover { background: #EEF1F3; }
.profile-menu {
  position: absolute;
  top: 52px;
  inset-inline-end: 0;
  width: 224px;
  background: #fff;
  border: 1px solid #E9EDEF;
  border-radius: var(--r-5);
  box-shadow: var(--sh-3);
  padding: var(--s-3);
  z-index: 60;
}
.profile-menu .pm-head {
  user-select: text; cursor: text;          /* OF-61: the name and address can be copied */
  padding: 9px 11px var(--s-5);
  border-bottom: 1px solid #F1F4F5;
  margin-bottom: 5px;
}
.profile-menu .pm-head b { font-family: var(--font-h); font-size: var(--t-3); display: block; color: #1f2933; }
.profile-menu .pm-head span { font-size: var(--t-1); color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.profile-menu .pm-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  padding: 9px 11px;
  border: none;
  background: transparent;
  border-radius: var(--r-3);
  text-decoration: none;
  color: #26313c;
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}
.profile-menu .pm-item:hover { background: #F6F8F9; }
.profile-menu .pm-danger { color: #C31D3E; }

.profile__title .name {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--black);
}

.profile__title img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.nav__search {
  height: 36px;
  border-radius: var(--r-pill);
  background-color: var(--white);
  padding: var(--s-4) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__search input {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--black);
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  width: 100%;
}

.nav__search input::placeholder {
  color: var(--gray);
}

/* ============================================================================
   NAV COMMAND-BAR SEARCH — instant results dropdown + ⌘K + keyboard-only ring.
   Scoped to .nav__search[data-suggest-url] so the audit-log search (a plain
   .nav__search with no suggest URL) keeps its old look, untouched.
   ============================================================================ */
.nav__search[data-suggest-url] {
  /* Was `flex: 0 1 470px` with no floor, so search — the control that navigates
     the whole system — surrendered its width to three buttons that kept their
     full labels. At 1251px it had collapsed to 117px, showing "Se". */
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 470px;
  height: 40px;
  gap: var(--s-5);
  padding-block: 0;
  padding-inline: var(--s-7) var(--s-4);
  border: 1px solid #E7EAEC;
  box-shadow: var(--sh-1);
  transition: box-shadow .16s, border-color .16s;
}
.nav__search[data-suggest-url] > button[type="submit"] {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.nav__search[data-suggest-url]:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--sh-focus);
}
.nav__search__kbd {
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  color: var(--gray); background: #F1F3F4; border: 1px solid #E3E6E9;
  border-radius: var(--r-2); padding: 3px 7px; line-height: var(--lh-1); white-space: nowrap; flex-shrink: 0;
}
.nav__search__clear {
  display: none; border: 0; background: none; cursor: pointer;
  color: var(--gray); font-size: var(--t-4); line-height: var(--lh-1); padding: var(--s-1) var(--s-2); flex-shrink: 0;
}
.nav__search__clear:hover { color: #5f6670; }
.nav__search.has-text .nav__search__kbd { display: none; }
.nav__search.has-text .nav__search__clear { display: inline-flex; }
/* Hide the browser's built-in search-input clear button — we render our own ×,
   otherwise both show (the double-× seen on production). */
.nav__search[data-suggest-url] input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none;
}
.nav__search[data-suggest-url] input[type="search"]::-ms-clear { display: none; }

/* Whole-pill focus ring — KEYBOARD ONLY. html.kbd-nav is set on the first Tab
   keydown and cleared on any pointer/mouse down (see nav-search.js), so a
   trackpad tap shows nothing while Tab shows the ring. It hugs the rounded pill
   (never the inner-input square) and overrides the View-Ticket page's app-wide
   :focus-visible ring on the search box. */
html.kbd-nav .nav__search[data-suggest-url]:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.nav__search[data-suggest-url] input:focus,
.nav__search[data-suggest-url] input:focus-visible { outline: none; }
.view-ticket-v3 .nav__search[data-suggest-url] input:focus-visible { outline: none !important; }

/* ---- instant-results dropdown (body-level, position:fixed, JS-positioned) ---- */
.nav-ac {
  position: fixed; top: 0; inset-inline-start: 0; width: 470px; z-index: 950;
  background: #fff; border: 1px solid #EAECEF; border-radius: var(--r-5);
  box-shadow: var(--sh-4); padding: var(--s-3); display: none;
}
.nav-ac.open { display: block; }
.nav-ac__hd {
  font-family: var(--font-h); font-size: var(--t-1); letter-spacing: .06em;
  text-transform: uppercase; color: var(--gray); padding: var(--s-4) var(--s-5) var(--s-3);
}
.nav-ac__row {
  display: flex; align-items: center; gap: 11px; padding: 9px var(--s-5);
  border-radius: var(--r-3); cursor: pointer; text-decoration: none; color: inherit;
}
.nav-ac__row:hover, .nav-ac__row.hl { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.nav-ac__av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.nav-ac__mid { flex: 1; min-width: 0; }
.nav-ac__ttl {
  font-size: var(--t-3); font-weight: 600; color: #1c2430;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-ac__no { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--primary-color); }
.nav-ac__matched {
  font-size: var(--t-1); color: var(--gray); margin-top: var(--s-1); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-ac__matched mark, .nav-ac__ttl mark { background: #FFF2B8; padding: 0 1px; border-radius: var(--r-1); color: #5c4d00; }
.nav-ac__right { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
/* The dropdown reuses the global .severity/.status pills, which are sized for
   table rows and dwarf the compact suggest rows — shrink them here to match
   preview_search_final. */
.nav-ac .severity { font-size: var(--t-1); padding: var(--s-1) var(--s-4); gap: 5px; letter-spacing: .3px; }
.nav-ac .severity::before { width: 6px; height: 6px; }
.nav-ac .status { font-size: var(--t-1); font-weight: 600; padding: var(--s-1) var(--s-5); line-height: 1.4; }
.nav-ac__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 11px; margin-top: var(--s-2); border-top: 1px solid #F0F1F3;
  cursor: pointer; text-decoration: none;
}
.nav-ac__foot:hover { background: #F7F9F9; border-radius: 0 0 10px 10px; }
.nav-ac__foot .lbl { font-size: var(--t-2); color: var(--primary-color); font-weight: 600; font-family: var(--font-h); }
.nav-ac__kbd b {
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-1);
  background: #F0F2F4; border: 1px solid #E3E6E9; border-radius: var(--r-1); padding: 1px 5px; color: #5f6670;
}
.nav-ac__empty { padding: 22px var(--s-7); text-align: center; }
.nav-ac__empty .t { font-family: var(--font-h); font-size: var(--t-2); color: #42505f; font-weight: 600; }
.nav-ac__empty .s { font-size: var(--t-1); color: var(--gray); margin-top: 3px; }
.nav-ac__sk { display: flex; align-items: center; gap: 11px; padding: 9px var(--s-5); }
.nav-ac__sk-c { width: 26px; height: 26px; border-radius: 50%; }
.nav-ac__sk-l { height: 9px; border-radius: var(--r-1); }
.nav-ac__shim {
  background: linear-gradient(90deg, #EEF0F2 25%, #E3E7EA 37%, #EEF0F2 63%);
  background-size: 400% 100%; animation: navAcShim 1.3s ease infinite;
}
@keyframes navAcShim { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

table {
  width: 100%;
  min-width: 1456px;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 24px 24px 0 0;
  padding-bottom: var(--s-9);
  margin-bottom: var(--s-9);
}

.full table {
  min-width: 500px;
  margin-bottom: 0;
  border-radius: 24px;
}

thead {
  background-color: var(--light-background);
}

.grey-block thead {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: var(--s-8) var(--s-11);
}

th:first-child,
td:first-child {
  padding-inline-start: var(--s-10);
}

th:last-child,
td:last-child {
  padding-inline-end: var(--s-10);
}

th {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.8px;
  text-align: start;
  color: var(--gray);
  white-space: nowrap;
}

td {
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 400;
  line-height: 18.2px;
  color: var(--black);
  vertical-align: baseline;
}

td a {
  color: var(--blue);
  text-decoration: underline;
}

td a:hover {
  text-decoration: none;
}

td ul {
  padding-inline-start: 26px;
  list-style: inherit;
}

td ul li {
  list-style: inherit;
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 400;
  line-height: 18.2px;
  color: var(--black);

}

tbody tr {
  border-bottom: 1px solid var(--border);
}

/* Severity pill — tonal pill with leading dot. Color comes from the
   inline --sev-color CSS var, which the template sets from the
   `severity_color` Jinja filter (auto-rank palette: red → green).
   .severity-critical adds a gentle pulse, matching the privacy +
   LIVE badge family. Same pill on list, detail, dashboard, admin. */
.severity {
  --sev-color: #16A34A;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-6);
  border-radius: var(--r-pill);
  font-family: var(--font-b);
  font-size: var(--t-1);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: var(--lh-1);
  white-space: nowrap;
  vertical-align: middle;
  background: color-mix(in srgb, var(--sev-color) 12%, #fff);
  /* a11y (audit #6): the level colour at full strength on its own 12% tint
     is < 4.5:1 for all 5 levels. Darken the TEXT (mix toward black) so it
     clears AA; the dot (::before) + border keep the full hue for the
     colour-coding. */
  color: color-mix(in srgb, var(--sev-color) 62%, #000);
  border: 1px solid color-mix(in srgb, var(--sev-color) 24%, transparent);
}
.severity::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sev-color);
  display: inline-block;
  flex-shrink: 0;
}
.severity-critical::before {
  box-shadow: var(--sh-1);
  animation: severity-pulse 1.8s ease infinite;
}
@keyframes severity-pulse {
  0%   { box-shadow: var(--sh-1); }
  70%  { box-shadow: var(--sh-focus); }
  100% { box-shadow: var(--sh-1); }
}
@media (prefers-reduced-motion: reduce) {
  .severity-critical::before { animation: none; }
}

/* Inline severity description, used next to the title in view_ticket.html.
   Soft gray to keep the title dominant. */
.severity-desc {
  font-family: var(--font-b);
  font-size: var(--t-2);
  color: var(--gray);
  margin-top: var(--s-2);
  display: block;
}

.status {
  padding: 3px var(--s-6);
  border-radius: var(--r-pill);
  text-align: center;
}

.status-work-in-progress {
  background-color: var(--gray-light2);
  color: var(--gray);
}

.status-open {
  background-color: var(--blue-light);
  color: var(--blue);
}

.status-pending {
  background-color: var(--orange-light);
  color: var(--orange);
}

.status-resolved {
  background-color: var(--green-light);
  color: var(--green);
}

.status-researching {
  background-color: var(--soft-cream);
  color: var(--olive-gold);
}

.assignee {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.assignee img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.menu li+li {
  margin-top: var(--s-6);
}

.menu li a,
.dropdown-toggle,
.submenu li a {
  padding: var(--s-6);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: background 0.3s;
  display: inline-block;
  width: 100%;
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 600;
  line-height: 20.8px;
  color: var(--black);
}

.menu li:not(.dropdown) a:hover,
.submenu li a:hover,
.dropdown-toggle:hover,
.submenu li.active a,
.menu li.active a {
  background-color: var(--white);
}

.dropdown-toggle {
  position: relative;
  padding-inline-end: 44px;
}

.dropdown-toggle::after {
  content: '';
  width: 20px;
  height: 20px;
  position: absolute;
  background-image: url('../images/icons/arrow-down.svg');
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  inset-inline-end: 12px;
  transition: all .1s linear;
}

.dropdown.open .dropdown-toggle::after {
  transform: translateY(-50%) rotate(-180deg);
}

.dropdown .submenu {
  margin-top: var(--s-2);
  display: none;
}

.submenu li a {
  color: var(--black);
  opacity: .8;
  font-weight: 400;
}

.submenu li+li {
  margin-top: var(--s-2);
}

.dashboard {
  display: flex;
  gap: var(--s-8);
}

.dashboard.two {
  flex-wrap: wrap;
}

.card {
  display: flex;
  align-items: center;
  padding: var(--s-9);
  background-color: var(--white);
  gap: var(--s-8);
  border-radius: 26px;
  width: 25%;
}

.dashboard.two .card {
  width: calc(50% - 8px);
}

.card h3 {
  margin: 3px 0 0 0;
  font-family: var(--font-b);
  font-size: var(--t-7);
  font-weight: 600;
  line-height: 30.17px;
  color: var(--black);
}

.card p {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--gray-light);
}

.tabs {
  display: flex;
  gap: var(--s-5);
}

.tab.button, .tab.btn-primary{
  background: var(--white);
  color: var(--green);
}

.tab.button.active, .tab.btn-primary.active{
  background: var(--green);
  color: var(--white);
}

.tab-content {
  margin-top: var(--s-9);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.grey-block.tab-pane.active {
  display: flex;
}

.description-box {
  min-height: 118px;
}
textarea.description-box {
  resize: vertical;
}

.overview {
  display: flex;
  gap: var(--s-10);
}

.comment-input {
  display: flex;
  align-items: flex-start;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-textarea {
  height: 76px;
}

.comment-item {
  display: flex;
  gap: var(--s-8);
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  margin-bottom: var(--s-6);
}

.comment-author,
.comment-date {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 600;
  line-height: 20.11px;
  color: var(--black);
}

.comment-date {
  color: var(--gray);
  font-weight: 400;
}

.comment-text {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--black);
}

.grid-container {
  display: grid;
  gap: var(--s-8);
}

.two {
  grid-template-columns: repeat(2, 1fr);
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-item {
  background-color: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-8);
  font-family: var(--font-b);
  font-size: var(--t-5);
  font-weight: 400;
  line-height: 22.63px;
  color: var(--black);
}

.card-item.column {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}

.card-item.column b {
  font-weight: 600;
}

.popup .card-item {
  height: auto;
  padding: var(--s-1) var(--s-6);
  margin-inline-end: 44px;
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 100%;
}

.popup .card-item .ellipse-button-small, .popup .card-item .btn-icon{
  position: relative;
  inset-inline-end: -56px;
}

.tags-section,
.attachments-section {
  margin-bottom: var(--s-10);
}

.tag {
  display: flex;
  gap: var(--s-4);
  align-items: center;
}

.tag span {
  display: inline-block;
  flex: 1;
  background-color: var(--white);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-pill);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  text-align: start;
  color: var(--primary-color);
}

.tags-input form {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.tags-input form .input {
  flex: 1;
}

.dz-message {
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px dashed var(--primary-color);
  border-radius: 24px;
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  margin-bottom: var(--s-4);
}

.backdrop {
  position: fixed;
  z-index: 200;
  background-color: #242424;
  opacity: .2;
  width: 100%;
  height: 100%;
  inset-inline-start: 0;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  display: none;
}

.backdrop.show {
  display: block;
}

.popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--light-background);
  padding: 28px;
  /* Approved 2026-09-06: 16px. A 24px shell was the odd one out once fields
     went to 8px and buttons to 10px. */
  border-radius: 16px;
  max-width: 528px;
  width: 100%;
  z-index: 211;
}

.popup.show {
  display: block;
}

/* ============================================================================
   SETTINGS v2 — two-pane modal (Profile / Appearance / Security). Wide variant
   of .popup, toggled by new.js (like .vt-modal-v2). The save-lock
   (.popup.is-locked) blurs .popup-content/.popup-header; the primary action
   lives in .popup-footer so it stays crisp while saving.
   ============================================================================ */
/* Wide variant + row layout. Selectors use the element's OWN co-classes
   (.popup-content.settings-v2__body etc.) so they beat the later, equal-
   specificity base .popup-content/.popup-header/.popup-footer rules, and
   :has() applies the width straight from the injected content (no reliance
   on the JS-added .settings-v2 class — cache-proof). */
.popup.settings-v2, .popup:has(.settings-v2__body) { width: 94vw; max-width: 1040px; padding: 0; background: #fff; overflow: hidden; }
.popup-header.settings-v2__head { display: flex; align-items: center; justify-content: space-between; padding: 17px var(--s-10); border-bottom: 1px solid var(--border, #EAECEF); margin: 0; }
.popup-header.settings-v2__head h3 { font-family: var(--font-h); font-size: var(--t-5); margin: 0; text-align: start; width: auto; color: var(--black); }
.settings-v2__head .close-btn { border: none; background: none; cursor: pointer; padding: var(--s-2); line-height: 0; }
/* Fixed height so switching nav sections never grows/shrinks the modal; the
   pane scrolls internally if a section is taller. */
.popup-content.settings-v2__body { display: flex; flex-direction: row; gap: 0; padding: 0; height: min(580px, 78vh); overflow: hidden; }
/* Neutralise the generic .popup form (flex-column + 28px gap) and .popup-content p
   (Poppins 16) rules inside Settings — our cards are <form>s and the section lead
   is a <p>; those base rules have higher specificity than our component classes. */
.popup-content.settings-v2__body form { display: block; gap: 0; }
.popup-content.settings-v2__body .settings-sec__desc { font-family: var(--font-b); font-size: var(--t-2); font-weight: 400; color: #5f6b78; margin: 0 0 var(--s-9); text-align: start; }
/* Override the global `nav { display:flex; border-radius:var(--r-pill); height:64px }`
   rule (top nav bar) that would otherwise turn this <nav> into a horizontal pill. */
.settings-nav { width: 214px; flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-1); height: auto; min-height: 0; border-radius: 0; margin: 0; background: var(--light-background); border-inline-end: 1px solid var(--border, #EAECEF); padding: var(--s-7) var(--s-5); overflow-y: auto; }
.settings-nav__item { display: flex; align-items: center; gap: 11px; width: 100%; border: none; background: none; text-align: start; font-family: var(--font-b); font-size: var(--t-3); color: #37424e; padding: var(--s-5) 11px; border-radius: var(--r-3); cursor: pointer; font-weight: 600; }
.settings-nav__item svg { flex-shrink: 0; opacity: .75; }
.settings-nav__item:hover { background: #EDEFF1; }
.settings-nav__item.is-active { background: color-mix(in srgb, var(--primary-color) 12%, #fff); color: var(--primary-color); }
.settings-nav__item.is-active svg { opacity: 1; }
.settings-pane { flex: 1; min-width: 0; padding: var(--s-10) 28px; overflow-y: auto; }
.settings-sec { display: none; }
.settings-sec.is-active { display: block; }
.settings-sec__title { font-family: var(--font-h); font-size: var(--t-5); margin: 0 0 3px; }
.settings-sec__desc { color: #5f6b78; font-size: var(--t-2); margin: 0 0 var(--s-9); }
.settings-card { border: 1px solid var(--border, #EAECEF); border-radius: var(--r-5); padding: var(--s-9) 22px; margin-bottom: var(--s-7); }
.settings-card__h { font-family: var(--font-h); font-size: var(--t-3); margin: 0 0 3px; }
.settings-card__sub { color: var(--gray); font-size: var(--t-1); margin: 0 0 var(--s-8); }
.settings-field { margin-bottom: 15px; }
.settings-field:last-child { margin-bottom: 0; }
.settings-field > label { display: block; font-family: var(--font-h); font-size: var(--t-1); color: #4a5560; font-weight: 600; margin-bottom: var(--s-3); }
.settings-inp { position: relative; }
.settings-inp input { width: 100%; height: 42px; border: 1px solid #DCE1E5; border-radius: var(--r-4); padding: 0 13px; font-family: var(--font-b); font-size: var(--t-3); color: #1c2430; background: #fff; outline: none; transition: border-color .14s, box-shadow .14s; }
.settings-inp.has-eye input { padding-inline-end: 42px; }
.settings-inp input:focus { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.settings-inp input::placeholder { color: var(--gray); }
.settings-eye { position: absolute; inset-inline-end: 6px; top: 6px; width: 30px; height: 30px; border: none; background: none; cursor: pointer; color: var(--gray); display: grid; place-items: center; border-radius: var(--r-2); }
.settings-eye:hover { color: #5f6b78; background: #F1F3F5; }
.settings-row2 { display: flex; gap: var(--s-7); }
/* F29: the sign-in email in Profile — the address with Change beside it, the step that asks, and the
   "waiting for the link" line (settings.html #ecField). */
.ec-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); min-height: 42px; border: 1px solid #DCE1E5; border-radius: var(--r-4); padding: var(--s-2) var(--s-2) var(--s-2) 13px; background: #F8FAFB; }
.ec-row__v { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; font-size: var(--t-3); color: #1c2430; }
.ec-row .btn { flex: none; }
.ec-pending { display: flex; gap: var(--s-5); align-items: flex-start; margin-top: var(--s-5); padding: var(--s-6); border-radius: var(--r-4); background: var(--opacity-primary-color); font-size: var(--t-2); color: #1c2430; overflow-wrap: anywhere; }
.ec-pending svg { flex: none; margin-top: 2px; color: var(--primary-color); }
.ec-links { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8); margin-top: var(--s-3); }
.ec-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--primary-color); cursor: pointer; }
.ec-link:hover { text-decoration: underline; }
.ec-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: 2px; }
.ec-link:disabled { color: var(--gray); cursor: default; }
.ec-panel { margin-top: var(--s-6); padding: var(--s-8); border: 1px solid #DCE1E5; border-radius: var(--r-5); background: #fff; }
.ec-lead { margin: 0 0 var(--s-7); }
.ec-foot { display: flex; justify-content: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.settings-row2 .settings-field { flex: 1; }
.settings-hint { font-size: var(--t-1); color: var(--gray); margin-top: var(--s-3); }
/* The phone field (D137, preview_people_finish v5 §5; static/js/tel.js): one component for the person
   panel, Settings and the invitation window. A number reads left to right in every language. */
.tel{display:flex;align-items:stretch;border:1px solid var(--ax-line,#DCE1E5);border-radius:var(--ax-r-3,10px);background:#fff;min-height:44px;
  transition:border-color .12s cubic-bezier(.4,0,.2,1),box-shadow .12s cubic-bezier(.4,0,.2,1)}
.tel:focus-within{border-color:var(--primary-color);box-shadow:var(--sh-focus)}
.tel.is-bad{border-color:var(--red,#E90909)}
.tel.is-warn{border-color:#DDA54A}
.tel .tel-cc{display:inline-flex;align-items:center;gap:var(--s-2);border:0;border-inline-end:1px solid #E6E9EC;background:transparent;margin:0;min-height:0;
  padding-block:0;
  padding-inline:var(--s-6) var(--s-4);font-family:var(--font-h);font-weight:600;font-size:var(--t-3);color:#1A2326;cursor:pointer;border-start-start-radius:9px; border-start-end-radius:0; border-end-end-radius:0; border-end-start-radius:9px;
  font-variant-numeric:tabular-nums;white-space:nowrap;transition:background-color .12s cubic-bezier(.4,0,.2,1)}
.tel .tel-cc:hover{background:#F3F6F7}
.tel .tel-cc:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}
.tel .tel-cc .chev{width:14px;height:14px;color:#6b7076;transition:transform .12s cubic-bezier(.4,0,.2,1)}
.tel .tel-cc[aria-expanded="true"] .chev{transform:rotate(180deg)}
.tel input,.ax-fld .tel input,.settings-inp .tel input{flex:1;min-width:0;border:0;box-shadow:none;background:transparent;border-start-start-radius:0; border-start-end-radius:9px; border-end-end-radius:9px; border-end-start-radius:0;
  padding:0 var(--s-6);height:auto;min-height:0;font-variant-numeric:tabular-nums;outline:none}
.ax-fld .tel input:focus,.settings-inp .tel input:focus{box-shadow:none;border:0}
.settings-inp .tel{min-height:42px;border-color:#DCE1E5;border-radius:var(--r-4)}
.tel-hint{display:flex;align-items:flex-start;gap:var(--s-3);font-family:var(--font-b);font-size:var(--t-2);color:#6F6F6F;line-height:1.45;margin-top:6px}
.tel-hint svg{flex:0 0 auto;margin-top:2px}
.tel-hint.ok{color:#1F7A45}
.tel-hint.warn{color:#8A5A00}
.tel-hint.bad{color:var(--red,#E90909)}
.tel-fix{border:0;background:none;padding:0;margin:0;font:inherit;font-weight:600;color:var(--primary-color);text-decoration:underline;cursor:pointer;min-height:0}
.tel-fix:focus-visible{outline:2px solid var(--primary-color);outline-offset:2px;border-radius:var(--r-1)}
.tel-pop{max-width:320px}
.tel-pop .vt-pick-hint{font-variant-numeric:tabular-nums}
.vt-pick-group{font-family:var(--font-h);font-weight:600;font-size:var(--t-1);letter-spacing:.06em;text-transform:uppercase;color:#6F6F6F;padding:var(--s-4,8px) var(--s-5,10px) var(--s-2,4px)}
.ax-drawer .pd-tel2{display:grid;grid-template-columns:1fr 96px;gap:var(--s-6);align-items:start}
.inv-cc{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s-4);font-family:var(--font-b);font-size:var(--t-2);color:#3F4A4C;margin:10px 0 0;padding:var(--s-2) var(--s-3)}
.inv-cc .tel-cc{display:inline-flex;align-items:center;gap:var(--s-3);border:1px solid #DCE1E5;border-radius:var(--r-pill);background:#fff;padding-block:5px; padding-inline:var(--s-6) var(--s-5);
  font-family:var(--font-h);font-weight:600;font-size:var(--t-2);color:#1A2326;cursor:pointer;min-height:32px}
.inv-cc .tel-cc:hover{border-color:var(--primary-color)}
.inv-cc .tel-cc .chev{width:14px;height:14px;color:#6b7076}
/* Settings: the switch stays level with its number when a hint appears under the number */
.ph-row:has(.tel){align-items:flex-start}
.ph-row:has(.tel) .ph-show{margin-top:30px}
/* Timezone selector (searchable, all IANA zones). The dropdown is position:fixed
   + JS-positioned because the settings pane clips overflow. */
.settings-tz { position: relative; }
.settings-tz__btn { width: 100%; height: 42px; border: 1px solid #DCE1E5; border-radius: var(--r-4); padding: 0 13px; background: #fff; font-family: var(--font-b); font-size: var(--t-3); color: #1c2430; text-align: start; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.settings-tz__btn:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.settings-tz__btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-tz__btn svg { color: var(--gray); flex-shrink: 0; }
.settings-tz__pop { position: fixed; top: 0; inset-inline-start: 0; width: 320px; background: #fff; border: 1px solid #EAECEF; border-radius: var(--r-5); box-shadow: var(--sh-4); z-index: 240; display: none; overflow: hidden; }
.settings-tz__pop.open { display: block; }
.settings-tz__search { border: none; border-bottom: 1px solid #EEF0F2; width: 100%; height: 40px; padding: 0 13px; font-family: var(--font-b); font-size: var(--t-3); outline: none; }
.settings-tz__list { max-height: 240px; overflow-y: auto; padding: 5px; }
.settings-tz__opt { display: flex; align-items: center; gap: 11px; padding: var(--s-4) 11px; border-radius: var(--r-3); cursor: pointer; font-size: var(--t-3); }
.settings-tz__opt:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.settings-tz__opt.is-sel { font-weight: 600; }

/* ---- Settings › Availability: time off (D126, approved preview v2). A list per person and the
   one form that adds or changes it; settings-* vocabulary throughout. ---- */
.tof-card .tof-add { display: inline-flex; align-items: center; gap: var(--s-3); flex: none; }
/* .tof-card in front: .settings-togrow (later in this file) centres its children */
.tof-card .tof-form:not([hidden]) { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-7); }
.tof-form .settings-field { margin: 0; }
.tof-dates .settings-field { display: flex; flex-direction: column; gap: var(--s-4); }
.tof-seg { align-self: flex-start; }
.tof-seg button { padding: var(--s-2) var(--s-6); font-size: var(--t-1); }
.tof-seg[aria-disabled="true"] { opacity: .5; }
.tof-seg[aria-disabled="true"] button { cursor: not-allowed; }
.tof-count { font-family: var(--font-b); font-size: var(--t-2); color: #1a2326; background: #F4F8F8; border-radius: var(--r-3); padding: var(--s-4) var(--s-6); line-height: 1.45; }
.tof-count b { font-family: var(--font-h); }
.tof-count.is-wrong { background: #FEF3F2; color: #B42318; }
.tof-hours { display: block; color: #5f6b78; font-size: var(--t-1); margin-top: var(--s-1); }
.tof-form .settings-inp textarea { display: block; width: 100%; box-sizing: border-box; border: 1px solid #DCE1E5; border-radius: var(--r-4); padding: var(--s-5) 13px; font-family: var(--font-b); font-size: var(--t-3); color: #1c2430; background: #fff; outline: none; min-height: 64px; resize: vertical; transition: border-color var(--dur-state, .12s), box-shadow var(--dur-state, .12s); }
.tof-form .settings-inp textarea:focus { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.tof-form .settings-inp textarea::placeholder { color: var(--gray); }
.tof-form .settings-inp input:disabled { background: #F6F7F8; color: #5f6b78; cursor: not-allowed; }
.tof-private { display: flex; gap: var(--s-3); align-items: flex-start; }
.tof-private svg { margin-top: var(--s-1); flex: none; color: #5f6b78; }
.tof-who { display: flex; gap: var(--s-5); align-items: flex-start; border: 1px solid #E6E9EC; border-radius: var(--r-4); padding: var(--s-5) var(--s-6); font-family: var(--font-b); font-size: var(--t-2); line-height: 1.45; color: #3F4A4C; }
.tof-who b { font-family: var(--font-h); color: #1a2326; }
.tof-who small { display: block; color: #5f6b78; font-size: var(--t-1); margin-top: var(--s-1); }
.tof-ok-i { width: 28px; height: 28px; border-radius: 50%; background: #ECFDF3; color: #067647; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tof-problems { background: #FEF3F2; color: #B42318; border-radius: var(--r-3); padding: var(--s-4) var(--s-6); font-family: var(--font-b); font-size: var(--t-2); }
.tof-problems ul { margin: 0; padding-inline-start: var(--s-9); }
.tof-form__foot { display: flex; justify-content: flex-end; gap: var(--s-5); }
.tof-card .tof-list { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-3); }
.tof-gh { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5f6b78; margin-top: var(--s-3); }
.tof-gh:first-child { margin-top: 0; }
.tof-rows { display: flex; flex-direction: column; }
.tof-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 32px; align-items: center; gap: var(--s-6); padding: var(--s-4) 0; border-bottom: 1px solid #F0F2F4; transition: opacity var(--dur-fade, .18s); }
.tof-row:last-child { border-bottom: none; }
.tof-row.is-past { opacity: .72; }
.tof-row.is-going { opacity: .45; pointer-events: none; }
.tof-row.is-new { animation: tofIn .6s var(--ease, ease); }
@keyframes tofIn { from { background: #E9F4F4; } to { background: transparent; } }
.tof-dt { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-4); background: #F2F6F6; color: var(--primary-color); }
.tof-dt b { font-family: var(--font-h); font-size: var(--t-4); line-height: 1; }
.tof-dt small { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: var(--s-1); }
.tof-row.is-now .tof-dt { background: var(--primary-color); color: #fff; }
.tof-main { display: flex; flex-direction: column; min-width: 0; }
.tof-main b { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #1a2326; }
.tof-main small { font-family: var(--font-b); font-size: var(--t-1); color: #5f6b78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tof-row .apx-chip { height: 22px; white-space: nowrap; }
.tof-more { width: 32px; height: 32px; border: none; background: none; border-radius: var(--r-3); color: #5f6b78; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tof-more:hover, .tof-more[aria-expanded="true"] { background: #F0F5F5; color: var(--primary-color); }
.tof-more:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
/* the row's menu: the account menu's look (as home.css .h2-menu); fixed, so placed against the
   transformed #backend-popup like the settings-tz pickers */
.tof-menu { position: fixed; z-index: 260; background: #fff; border: 1px solid #E9EDEF; border-radius: var(--r-5); box-shadow: var(--sh-3); padding: var(--s-3); min-width: 220px; display: grid; gap: var(--s-1); }
.tof-menu .pm-item { display: flex; align-items: flex-start; gap: var(--s-4); width: 100%; padding: var(--s-4) var(--s-5); border: 0; background: transparent; border-radius: var(--r-3); color: #26313c; font-family: var(--font-b); font-size: var(--t-2); text-align: start; cursor: pointer; }
.tof-menu .pm-item:hover, .tof-menu .pm-item:focus-visible { background: #F3F9F9; outline: none; }
.tof-menu .pm-item:focus-visible { box-shadow: inset 0 0 0 2px var(--primary-color); }
.tof-menu .pm-danger { color: #B42318; }
.tof-empty { display: flex; gap: var(--s-6); align-items: flex-start; padding: var(--s-2) 0; font-family: var(--font-b); font-size: var(--t-2); color: #5f6b78; line-height: 1.5; }
.tof-empty b { display: block; font-family: var(--font-h); color: #1a2326; }
.tof-empty__ill { width: 36px; height: 36px; border-radius: var(--r-4); background: #E9F4F4; color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; }
.tof-empty__ill svg { width: 20px; height: 20px; }
.tof-empty__ill::after { content: ''; position: absolute; top: 6px; inset-inline-end: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--logo-orange, #E26E00); }
@media (max-width: 600px) {
  .tof-card > .settings-togrow:first-child { flex-direction: column; align-items: stretch; gap: var(--s-6); }
  .tof-card .tof-add { justify-content: center; }
  .tof-dates { flex-direction: column; }
  .tof-main small { white-space: normal; }
  .tof-row { grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .tof-row .apx-chip { grid-column: 2; justify-self: start; grid-row: 2; }
}
.settings-tz__opt .gmt { color: var(--gray); font-size: var(--t-2); font-variant-numeric: tabular-nums; min-width: 82px; flex-shrink: 0; }
.settings-tz__opt .city { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-tz__opt .ck { color: var(--primary-color); opacity: 0; flex-shrink: 0; }
.settings-tz__opt.is-sel .ck { opacity: 1; }
.settings-tz__empty { padding: var(--s-8); text-align: center; color: var(--gray); font-size: var(--t-2); }
/* Focus is teal everywhere now, so this no longer overrides a colour — it is
   kept for the second rule: inputs here show the teal glow instead of an
   outline, because the tz search ring was clipped by the dropdown's
   overflow:hidden. */
#backend-popup.settings-v2 :focus-visible { outline: 2px solid var(--primary-color) !important; outline-offset: 2px !important; }
#backend-popup.settings-v2 input:focus-visible { outline: none !important; }
/* The tz search sits flush against the dropdown's overflow:hidden edge, so any
   outline gets clipped. Use an inset teal underline instead — fully visible,
   never clipped. */
#backend-popup.settings-v2 .settings-tz__search:focus,
#backend-popup.settings-v2 .settings-tz__search:focus-visible {
  outline: none !important; border-bottom-color: var(--primary-color);
  box-shadow: inset 0 -2px 0 var(--primary-color);
}
.settings-softnote { font-size: var(--t-1); color: var(--gray); background: #F7F9FA; border: 1px dashed #DDE2E6; border-radius: var(--r-4); padding: var(--s-5) 13px; margin-top: var(--s-7); }
/* Two-factor sign-in, each person's own card (D153 part 7a; preview v5 frame 8). Divs, not <p>: the
   Settings window is a .popup fragment, where `.popup-content p` centres and enlarges paragraphs. */
.mfa-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; }
.mfa-card__txt { flex: 1 1 280px; min-width: 0; }
.mfa-card__acts { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.mfa-pill { display: inline-flex; align-items: center; font: 600 var(--t-1)/1 var(--font-h); letter-spacing: .03em; padding: var(--s-2) var(--s-5); border-radius: var(--r-pill); background: #EEF1F3; color: #5b6570; margin-inline-start: var(--s-4); vertical-align: 2px; }
.mfa-pill.on { background: #E7F5EE; color: #0E7C5A; }
.mfa-card__steps { margin-top: var(--s-8); border-top: 1px solid #EEF1F3; padding-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-6); }
.mfa-card__steps .mfa-step { margin-bottom: 0; }
.mfa-card__steps .mfa-enrol { margin-bottom: 0; }
.mfa-card__foot { display: flex; justify-content: flex-end; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-2); }
.mfa-line { font-size: var(--t-2); color: #5b6570; line-height: 1.55; text-align: start; }
.mfa-line--b { font-family: var(--font-h); font-weight: 600; color: #12202b; }
.mfa-pw { width: 100%; padding: var(--s-5) var(--s-6); border: 1px solid #DDE3E5; border-radius: var(--r-4); font-family: var(--font-b); font-size: var(--t-3); }
.mfa-pw:focus-visible { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.mfa-danger { color: var(--red); }
.mfa-card .mfa-code { justify-content: flex-start; }
/* Action row lives INSIDE the card (matching the approved preview) — Cancel + Save. */
.settings-card__foot { display: flex; justify-content: flex-end; gap: var(--s-5); margin-top: var(--s-9); }
.settings-card__foot .button, .settings-card__foot .secondary-button, .settings-card__foot .btn-primary, .settings-card__foot .btn-secondary{ min-width: 92px; }
/* Save-lock adapted for in-card buttons: undo the universal whole-content blur,
   then blur just the nav + the card's fields (.settings-card__lock) so the active
   card's action row (Save button) stays crisp — the two-pane analogue of the
   footer-button pattern. :has() keeps it working without the JS-added class. */
.popup.is-locked:has(.settings-v2__body) .popup-content { filter: none; opacity: 1; }
.popup.is-locked .settings-nav,
.popup.is-locked .settings-sec__title,
.popup.is-locked .settings-sec__desc,
.popup.is-locked .settings-card__lock,
.popup.is-locked .settings-softnote { filter: blur(1.5px) saturate(.85); opacity: .75; pointer-events: none; user-select: none; }
.popup.is-locked .settings-card__foot .secondary-button, .popup.is-locked .settings-card__foot .btn-secondary{ opacity: .5; pointer-events: none; }
.settings-av-row { display: flex; align-items: center; gap: 18px; margin-bottom: var(--s-9); }
.settings-av { position: relative; width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; cursor: pointer; overflow: hidden; box-shadow: 0 0 0 1px var(--border, #EAECEF); }
.settings-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.settings-av__ov { position: absolute; inset: 0; background: rgba(12,20,24,.52); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); opacity: 0; transition: opacity .15s; }
.settings-av__ov span { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; }
.settings-av:hover .settings-av__ov, .settings-av:focus-visible .settings-av__ov { opacity: 1; }
.settings-av__name { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; }
.settings-av__links { margin-top: var(--s-3); display: flex; gap: var(--s-7); align-items: center; }
.settings-av__links a { font-size: var(--t-2); color: var(--primary-color); font-family: var(--font-h); font-weight: 600; text-decoration: none; cursor: pointer; }
.settings-av__links a.settings-av__rm { color: var(--gray); }
.settings-av__links a:hover { text-decoration: underline; }
.settings-av__fmt { font-size: var(--t-1); color: var(--gray); margin-top: 7px; }
.settings-meter { display: flex; gap: 5px; margin-top: 9px; }
.settings-meter i { height: 5px; flex: 1; border-radius: var(--r-1); background: #E6E9EC; transition: background .15s; }
.settings-mlabel { font-size: var(--t-1); margin-top: var(--s-3); color: var(--gray); }
.settings-match { font-size: var(--t-1); margin-top: var(--s-3); display: none; align-items: center; gap: 5px; font-family: var(--font-h); font-weight: 600; }
.settings-match.ok { display: flex; color: #0a7d43; }
.settings-match.no { display: flex; color: #B42318; }
.settings-togrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
.settings-togrow__title { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; }
/* Self-demonstrating dot: pulses while animations are on; the html.reduce-motion
   reset kills the animation, so enabling Reduced motion visibly stops the pulse. */
.settings-rm-pulse { width: 11px; height: 11px; border-radius: 50%; background: #E4572E; display: inline-block; vertical-align: -1px; margin-inline-end: 7px; animation: settingsRmPulse 1.1s ease infinite; }
@keyframes settingsRmPulse { 0% { box-shadow: var(--sh-1); } 70% { box-shadow: var(--sh-focus); } 100% { box-shadow: var(--sh-1); } }
/* Second+ row in a card gets a divider (Appearance: Reduced motion / Time format). */
.settings-togrow--sep { border-top: 1px solid #F1F3F5; margin-top: var(--s-2); padding-top: var(--s-8); }
/* Settings › Notifications: what each "Email me" choice sends (request emails, design preview v3, 26 Oct 2026) */
.settings-email-head { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: #4a5560; margin: var(--s-9) 0 0; }
.settings-email-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.settings-email-list li { display: flex; align-items: center; gap: 9px; font-size: var(--t-2); padding: var(--s-3) 0; border-bottom: 1px solid #F1F3F4; color: var(--black); }
.settings-email-list li svg { width: 15px; height: 15px; flex: 0 0 auto; }
.settings-email-list li .y { color: var(--primary-color); }
.settings-email-list li .n { color: var(--gray); display: none; }
.settings-email-list li.is-off { color: var(--gray); }
.settings-email-list li.is-off .y { display: none; }
.settings-email-list li.is-off .n { display: inline; }
.settings-email-lock { display: flex; gap: var(--s-5); align-items: flex-start; background: #F7F9F9; border-radius: var(--r-3, 8px); padding: var(--s-5) var(--s-6); margin-top: var(--s-6); font-size: var(--t-2); color: #3F4A4C; }
.settings-email-lock svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--primary-color); margin-top: 2px; }
@media (max-width: 720px) { .settings-email-list { grid-template-columns: 1fr; } }
/* Segmented control (Time format 12/24). */
.settings-seg { display: inline-flex; background: #EEF0F2; border-radius: var(--r-4); padding: 3px; gap: var(--s-1); flex-shrink: 0; }
.settings-seg button { border: none; background: none; font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #5f6b78; padding: 7px 15px; border-radius: var(--r-3); cursor: pointer; }
.settings-seg button.on { background: #fff; color: var(--primary-color); box-shadow: var(--sh-1); }
.settings-tg { position: relative; width: 40px; height: 23px; border-radius: var(--r-pill); background: #D3D8DD; cursor: pointer; flex-shrink: 0; border: none; padding: 0; transition: background .15s; }
.settings-tg::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: var(--sh-1); }
.settings-tg.is-on { background: var(--primary-color); }
.settings-tg.is-on::after { inset-inline-start: 19px; }
.popup-footer.settings-v2__foot { display: flex; justify-content: flex-end; gap: var(--s-5); padding: var(--s-7) var(--s-10); border-top: 1px solid var(--border, #EAECEF); margin: 0; }
.settings-v2__foot .button[hidden], .settings-v2__foot .btn-primary[hidden]{ display: none; }
@media (max-width: 720px) {
  .popup-content.settings-v2__body { flex-direction: column; max-height: 74vh; overflow-y: auto; }
  .settings-nav { width: auto; display: flex; flex-direction: row; flex-wrap: wrap; height: auto; border-radius: 0; margin: 0; gap: var(--s-3); border-inline-end: none; border-bottom: 1px solid var(--border, #EAECEF); }
  .settings-nav__item { width: auto; flex: 0 0 auto; white-space: nowrap; }
}

/* Manual reduced-motion override (Appearance toggle). The app already honors the
   OS @media (prefers-reduced-motion); this lets a user force it on regardless.
   Applied to <html> from localStorage before paint (see _base.html). */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* ======================================================================
   SAVE-LOCK universal — apply to ANY .popup in this app while a
   save/submit is in flight. Two classes work together:

     .popup.is-locked          → blur + dim + pointer-lock on the
                                  content/header, dim on Cancel.
     .btn-primary.is-saving    → inline white spinner + "Saving…"
                                  text; button stays crisp above the
                                  locked modal.

   Use it from JS on every modal that writes to the server. Example:

     const popup = document.getElementById("someModal");
     const saveBtn = popup.querySelector(".btn-primary");
     const originalLabel = saveBtn.textContent;
     const begin = () => {
       popup.classList.add("is-locked");
       saveBtn.classList.add("is-saving");
       saveBtn.disabled = true;
       saveBtn.textContent = "Saving…";
     };
     const end = () => {
       popup.classList.remove("is-locked");
       saveBtn.classList.remove("is-saving");
       saveBtn.disabled = false;
       saveBtn.textContent = originalLabel;
     };
     begin();
     fetch(...).then(...).catch(...).finally(end);

   NEVER override .popup's `position: fixed` in the locked state —
   the base rule centers the modal via top/left 50% + translate;
   dropping to `position: relative` sends the modal off-screen. The
   ::before overlay works fine inside a fixed-position ancestor.
   ====================================================================== */

.popup.is-locked .popup-content,
.popup.is-locked .popup-header {
  pointer-events: none;
  filter: blur(1.5px) saturate(0.85);
  opacity: 0.75;
  transition: filter .18s ease, opacity .18s ease;
  user-select: none;
}
.popup.is-locked::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,105,111,0.02), rgba(4,105,111,0.05));
  z-index: 2; pointer-events: auto;
}
/* The integrations page's own modals (.intm-head / .intm-body / .intm-foot)
   lock the same way. */
.popup.is-locked .intm-body,
.popup.is-locked .intm-head {
  pointer-events: none;
  filter: blur(1.5px) saturate(0.85);
  opacity: 0.75;
  transition: filter .18s ease, opacity .18s ease;
  user-select: none;
}
.popup.is-locked .intm-foot .secondary-button, .popup.is-locked .intm-foot .btn-secondary{
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
/* Any Cancel-style button in the footer dims and locks too. */
.popup.is-locked .popup-footer .secondary-button.cancel, .popup.is-locked .popup-footer .cancel, .popup.is-locked .popup-footer button[data-action="cancel"],
.popup.is-locked .popup-footer .btn-secondary.cancel{
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
/* Primary/save button in-flight state — spinner + "Saving…" text.
   Scoped under .popup so it doesn't leak into other buttons that
   might happen to use the .is-saving class. */
.popup .button.is-saving, .popup button.is-saving,
.popup .btn-primary.is-saving{
  position: relative;
  padding-inline-start: 38px;
  cursor: progress;
}
.popup .button.is-saving::before, .popup button.is-saving::before, .popup .btn-primary.is-saving::before{
  content: '';
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: popup-save-spin 0.7s linear infinite;
}
@keyframes popup-save-spin {
  to { transform: rotate(360deg); }
}

/* Destructive-action variant for modal primary buttons. Only for
   confirms that cannot be undone (delete attachment, delete comment,
   etc.). Everywhere else stays teal. The base red lives in global.css
   (.btn-danger); this file adds only the hover. A garbled selector here
   had made the browser drop this file's base rule long ago, so removing
   it changed nothing on screen (checked 2026-10-31, parsed CSS identical). */
.popup-footer .button.destructive:hover, .button.destructive:hover, .popup-footer .btn-danger:hover, .btn-danger:hover{
  background-color: #A83124;
  border-color: #A83124;
}

/* Attachments delete-confirm modal — scoped block. Reuses the
   universal .popup shell + save-lock; this block adds:
     - in-content pieces (warning icon, filename chip, internal-scope
       marker, undoable-warning line)
     - geometry overrides so the modal matches the approved preview
       (smaller, tighter, right-aligned buttons) instead of the app's
       default large-centered popup shape.
   */
#attDeleteModal { max-width: 480px; padding: var(--s-9) 22px; }
/* Override the default 24px centered h3 + full-width stretch so the
   title sits tight next to the warning icon and doesn't push the X to
   an odd spot. */
#attDeleteModal .popup-header { gap: var(--s-4); }
#attDeleteModal .popup-header h3 {
  font-size: var(--t-4); line-height: 1.3; text-align: start; width: auto;
}
.att-del__title-block {
  display: flex; align-items: center; flex: 1; min-width: 0;
}
.att-del__warn-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: color-mix(in srgb, #C0392B 12%, #fff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #C0392B; margin-inline-end: var(--s-6);
}
#attDeleteModal .popup-content {
  font-size: var(--t-3); line-height: 1.6; color: var(--black, #181818);
  gap: var(--s-4); /* tighter than the default 16px on .popup-content */
  padding: var(--s-2) 0 0;
}
#attDeleteModal .popup-content > div { margin: 0; }
.att-del__filename {
  display: block; padding: var(--s-5) var(--s-6); background: var(--gray-light1, #F5F5F5);
  border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-3);
  font-family: var(--font-h); font-size: var(--t-2); word-break: break-all;
  color: var(--black, #181818); font-weight: 500; margin: var(--s-2) 0 0;
}
.att-del__internal-warn {
  display: inline-flex; align-items: center; gap: var(--s-4);
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  color: var(--primary-color, #04696F);
  padding: var(--s-4) var(--s-6); border-radius: var(--r-2);
  font-size: var(--t-1); font-weight: 600; margin-top: var(--s-3); align-self: flex-start;
}
.att-del__internal-warn[hidden] { display: none; }
.att-del__undo-warn {
  color: #C0392B; font-size: var(--t-2); margin-top: var(--s-4);
  display: flex; align-items: center; gap: var(--s-3);
}
/* Right-aligned, tight, natural-width buttons — the app's default
   .popup-footer forces 180px + centered, which doesn't match the
   approved preview. */
#attDeleteModal .popup-footer {
  justify-content: flex-end; gap: var(--s-5); margin-top: 18px;
}
#attDeleteModal .popup-footer .secondary-button, #attDeleteModal .popup-footer .button, #attDeleteModal .popup-footer .btn-secondary, #attDeleteModal .popup-footer .btn-primary{
  width: auto; max-width: none;
  padding: var(--s-5) 22px; font-size: var(--t-2); min-width: 110px;
}

.popup form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-6);
}
/* A title may be wrapped with a subtitle; the wrapper takes the width so the
   close button still sits hard right. */
.popup-header > div:first-child { flex: 1; min-width: 0; }
.popup-header > div:first-child h3 { width: auto; }

/* The gain from shrinking the title: a line that says what the panel is for.
   Optional — a modal without one just has a tighter header. */
.popup-sub {
  font-family: var(--font-b);
  font-size: var(--t-2);
  font-weight: 400;
  line-height: var(--lh-3);
  color: var(--gray);
  margin: 3px 0 0;
  text-align: start;
}

.popup-header h3 {
  font-family: var(--font-h);
  /* Approved 2026-09-06: 17px, left. A centred 24px title spent the strongest
     line on the panel repeating the button that opened it. width:100% stays so
     the close button is still pushed to the right edge. */
  font-size: var(--t-5);
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  color: var(--black);
  width: 100%;
  text-align: start;
}

.popup-content textarea {
  min-height: 112px;
}

textarea.select2-search__field {
  min-height: 0;
}

.popup-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-8);
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  max-height: 70vh;
  overflow-y: auto;
  /* padding-right: var(--s-10); */
}

/* ======================================================================
   PENDING / RESOLVED modals — 2027 redesign (approved
   preview_pending_resolved_2027). Scoped to .vt-modal-v2 so other .popup
   modals are untouched. Keeps the .popup base (position:fixed + save-lock)
   and the structural .popup-header/.popup-content/.popup-footer class
   names — only restyles the surface + children. The open dropdown is the
   app's shared .vt-picker-pop (openPicker), searchable like Assignee.
   ====================================================================== */
.popup.vt-modal-v2 { background: #fff; padding: 0; border-radius: 18px; max-width: 480px; box-shadow: var(--sh-4); overflow: hidden; }
.popup.vt-modal-v2 form { gap: 0; }
.vt-modal-v2 .vm-head { display: flex; align-items: flex-start; gap: var(--s-6); padding: var(--s-9) 22px var(--s-8); }
.vt-modal-v2 .vm-ic { width: 38px; height: 38px; border-radius: var(--r-4); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--vm-accent, var(--primary-color)) 12%, #fff); color: var(--vm-accent, var(--primary-color)); }
.vt-modal-v2 .vm-ic svg { width: 20px; height: 20px; }
.vt-modal-v2--pending { --vm-accent: #D97706; }
.vt-modal-v2--resolved { --vm-accent: var(--primary-color); }
/* D74 "I'm on it" (approved preview_on_it) — the same centred window, teal */
.vt-modal-v2--onit { --vm-accent: var(--primary-color); }
.vt-modal-v2--onit .vm-area { min-height: 96px; resize: vertical; }
.vt-modal-v2 .vm-htxt { flex: 1; min-width: 0; }
.vt-modal-v2 .vm-htxt h3 { font-family: var(--font-h); font-size: var(--t-5); font-weight: 700; line-height: var(--lh-2); color: var(--black); margin: 0; width: auto; text-align: start; text-wrap: balance; }
.vt-modal-v2 .vm-htxt p { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); margin-top: var(--s-1); line-height: 1.4; }
.vt-modal-v2 .vm-ctx { display: inline-flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); font-family: var(--font-b); font-size: var(--t-1); color: #3f4650; background: var(--light-background); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px var(--s-5); max-width: 100%; }
.vt-modal-v2 .vm-ctx b { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); flex-shrink: 0; }
.vt-modal-v2 .vm-ctx .vm-ctx-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-modal-v2 .vm-x { position: static; width: 32px; height: 32px; border-radius: var(--r-3); border: none; background: none; color: var(--gray); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; transition: .12s; }
.vt-modal-v2 .vm-x:hover { background: var(--light-background); color: var(--black); }
.vt-modal-v2 .vm-x svg { width: 19px; height: 19px; }
.vt-modal-v2 .vm-body { display: flex; flex-direction: column; gap: 15px; padding: var(--s-2) 22px var(--s-9); max-height: 62vh; overflow-y: auto; }
.vt-modal-v2 .vm-fields { display: flex; flex-direction: column; gap: 15px; }
.vt-modal-v2 .vm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 520px) { .vt-modal-v2 .vm-row2 { grid-template-columns: 1fr; } }
.vt-modal-v2 .vm-fld { display: flex; flex-direction: column; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; line-height: 1.4; color: #3f4650; }
/* Label + required/optional marker on ONE line (they must share a flex
   item, else the column layout stacks the marker onto its own line). */
.vt-modal-v2 .vm-fld-h { display: block; }
.vt-modal-v2 .vm-req { color: var(--red); }
.vt-modal-v2 .vm-opt { color: var(--gray); font-weight: 400; font-family: var(--font-b); }
.vt-modal-v2 .vm-hidden-select { display: none !important; }
.vt-modal-v2 .vm-picker-trigger { width: 100%; display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-b); font-size: var(--t-3); font-weight: 400; color: var(--black); background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-5) var(--s-6); cursor: pointer; text-align: start; transition: border-color .12s, box-shadow .12s; }
.vt-modal-v2 .vm-picker-trigger:hover { border-color: #cdd3da; }
/* a picker shows where the cursor is, as the text boxes beside it do (it had no focus style at all) */
.vt-modal-v2 .vm-picker-trigger:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.vt-modal-v2 .vm-picker-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-modal-v2 .vm-picker-val.ph { color: var(--gray); }
.vt-modal-v2 .vm-picker-trigger .chev { width: 16px; height: 16px; color: var(--gray); flex-shrink: 0; }
.vt-modal-v2 .vm-area { width: 100%; font-family: var(--font-b); font-size: var(--t-3); font-weight: 400; color: var(--black); background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-5) var(--s-6); min-height: 84px; resize: vertical; line-height: var(--lh-3); transition: border-color .12s, box-shadow .12s; }
.vt-modal-v2 .vm-area:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.vt-modal-v2 .vm-offline { background: color-mix(in srgb, var(--primary-color) 5%, #fff); border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #fff); border-radius: var(--r-5); padding: var(--s-6) 13px; }
.vt-modal-v2 .vm-offline .vm-ol { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--primary-color); margin-bottom: var(--s-4); }
.vt-modal-v2 .vm-offline .vm-ol svg { width: 13px; height: 13px; }
.vt-modal-v2 .vm-offline .vm-orow { display: flex; gap: var(--s-4); }
.vt-modal-v2 .vm-offline .vm-orow input { font-family: var(--font-b); font-size: var(--t-3); border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: 9px 11px; background: #fff; color: var(--black); }
.vt-modal-v2 .vm-offline .vm-orow input:focus { outline: none; border-color: var(--primary-color); }
.vt-modal-v2 .vm-offline .vm-mn { width: 82px; flex-shrink: 0; }
.vt-modal-v2 .vm-offline .vm-nt { flex: 1; min-width: 0; }
.vt-modal-v2 .vm-offline .vm-oh { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin-top: var(--s-4); line-height: 1.45; text-align: start; }
.vt-modal-v2 .vm-offline .vm-oh b { color: var(--black); font-weight: 600; }
.vt-modal-v2 .vm-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-6); padding: var(--s-7) 22px; border-top: 1px solid #f1f2f4; background: #fcfcfd; }
.vt-modal-v2 .vm-foot .secondary-button.cancel, .vt-modal-v2 .vm-foot .btn-secondary.cancel{ border-radius: var(--r-4); padding: 0 18px; height: 36px; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); background: #fff; border: 1px solid var(--gray-light2); color: #3f4650; }
.vt-modal-v2 .vm-foot .secondary-button.cancel:hover, .vt-modal-v2 .vm-foot .btn-secondary.cancel:hover{ background: var(--light-background); }
.vt-modal-v2 .vm-foot .button, .vt-modal-v2 .vm-foot .btn-primary{ border-radius: var(--r-4); padding: 0 18px; height: 36px; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.vt-modal-v2 .vm-foot .button svg, .vt-modal-v2 .vm-foot .btn-primary svg{ width: 15px; height: 15px; }
.vt-modal-v2 .vm-skeleton { display: none; flex-direction: column; gap: 15px; }
.popup.vt-modal-v2.is-vm-loading .vm-skeleton { display: flex; }
.popup.vt-modal-v2.is-vm-loading .vm-fields { display: none; }
.vt-modal-v2 .vm-picker-trigger[disabled] { opacity: .55; pointer-events: none; }

/* Part B, B5 — the two ways out and "Raise a related ticket" (approved
   preview_privacy_model_b v2, section 6). Same .vt-modal-v2 shell; amber
   accent on the exits. A disabled primary must LOOK disabled: global.css
   styles only a .disabled class, so "Cancel ticket" read as clickable before
   its reason was long enough. */
.vt-modal-v2--exit { --vm-accent: #B45309; }
.vt-modal-v2 .vm-foot .button:disabled, .vt-modal-v2 .vm-foot .btn-primary:disabled{ opacity: .45; cursor: not-allowed; }
.vt-modal-v2 .vx-count { align-self: flex-start; font-family: var(--font-b); font-size: var(--t-1); color: #6F6F6F; }
.vt-modal-v2 .vx-count.ok { color: #0E7C5A; }
.vt-modal-v2 .cti-row.vx-route { font-size: var(--t-2); color: #5f6b78; margin: -4px 0 var(--s-2); }
.vt-modal-v2 .cti-row.vx-route b { color: #12202b; }
/* "Raise a related ticket" v2 (2026-10-06): the priority in its selector carries the workspace's icon
   (D123); a two-line skeleton stands where the questions will be while "where it goes" loads */
.vt-modal-v2 .vm-picker-val .pri-ic { margin-inline-end: 6px; vertical-align: -3px; }
.vt-modal-v2 .sv-qsk { display: flex; flex-direction: column; gap: var(--s-5); }
.vt-modal-v2 .vx-input { width: 100%; box-sizing: border-box; height: 40px; border: 1px solid #DCE1E5; border-radius: var(--r-3); padding: 0 var(--s-6); font-family: var(--font-b); font-size: var(--t-3); font-weight: 400; color: var(--black); background: #fff; }
.vt-modal-v2 .vx-input:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.vt-modal-v2 .dp-effect.vx-note { margin-top: var(--s-2); }

/* --- CTI modal (2027) diff + group cards. Styles the SAME classes/ids
   the cascade JS renders (cti-cti-line .diff, cti-row .lbl/.val, the
   pill states, .unchanged-state) — no JS change. Scoped to .vt-modal-v2
   so the old .vt-modal-cti rules don't apply. --- */
.vt-modal-v2 .cti-diff-sxs { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: stretch; gap: 0; }
.vt-modal-v2 .cti-pane { border: 1px solid var(--gray-light2); border-radius: var(--r-5); padding: var(--s-6) var(--s-7); background: #fff; }
.vt-modal-v2 .cti-pane-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-3); }
.vt-modal-v2 .cti-group-pane .cti-pane-head { margin-bottom: 9px; }
.vt-modal-v2 .cti-pane-label { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.vt-modal-v2 .cti-cti-line { font-family: var(--font-b); font-size: var(--t-3); font-weight: 600; color: var(--black); line-height: 1.55; }
.vt-modal-v2 .cti-cti-line .sep { color: var(--gray); margin: 0 var(--s-3); font-weight: 400; }
.vt-modal-v2 .cti-cti-line .diff { color: var(--primary-color); }
.vt-modal-v2 .cti-diff-arrow { display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: var(--t-4); transition: color .15s; }
.vt-modal-v2 .cti-diff-sxs.changed .cti-diff-arrow { color: var(--primary-color); }
.vt-modal-v2 .cti-pane.new:not(.unchanged-state) { background: color-mix(in srgb, var(--primary-color) 6%, #fff); border-color: color-mix(in srgb, var(--primary-color) 32%, #fff); }
.vt-modal-v2 .cti-pane.new:not(.unchanged-state) .cti-pane-label { color: var(--primary-color); }
.vt-modal-v2 .cti-group-pane { background: var(--light-background); }
.vt-modal-v2 .cti-pane-pill { margin-inline-start: auto; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: var(--r-pill); padding: 3px var(--s-5); }
.vt-modal-v2 .cti-pane-pill.unchanged { color: var(--gray); background: var(--gray-light2); }
.vt-modal-v2 .cti-pane-pill.will-change { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; }
/* Part B (approved preview_privacy_model_b v2, sections 3 and 6): the Policy
   panel's "Tightens" and the refused move's "Not allowed". */
.vt-modal-v2 .cti-pane-pill.tighten { color: #9F1239; background: #FBEFF3; }
.vt-modal-v2 .cti-pane-pill.refused { color: #B4233E; background: #FDECEF; }
.vt-modal-v2 .cti-pane-pill.handover { color: #3050b5; background: #EEF4FF; }
.vt-modal-v2 .cti-row { display: flex; align-items: center; gap: var(--s-6); font-family: var(--font-b); font-size: var(--t-2); padding: 3px 0; }
.vt-modal-v2 .cti-row .lbl { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); width: 44px; flex-shrink: 0; }
.vt-modal-v2 .cti-row { display: flex; align-items: center; gap: var(--s-6); font-family: var(--font-b); font-size: var(--t-2); padding: 3px 0; }
.vt-modal-v2 .cti-row .lbl { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); width: 44px; flex-shrink: 0; }
.vt-modal-v2 .cti-row .val { font-weight: 600; color: var(--black); }
.vt-modal-v2 .cti-row .val .unchanged-note { color: var(--gray); font-weight: 400; font-style: italic; }
.vt-modal-v2 .cti-row .val .to-name { color: var(--primary-color); }
/* Edit CTI's Policy panel (Part B, catalog edits): the note under Now / After. */
.vt-modal-v2 .cti-policy { margin-top: var(--s-6); }
.vt-modal-v2 .cti-policy__note { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin-top: var(--s-3); line-height: 1.45; }
/* CTI picker triggers reflect their open dropdown — teal ring + chevron flip.
   openPicker toggles .is-open on the .vm-picker-trigger anchor; visual scoped
   to #ctiModal so the shipped Pending/Resolved pickers are unchanged. */
#ctiModal .vm-picker-trigger .chev { transition: transform .15s; }
#ctiModal .vm-picker-trigger.is-open { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
#ctiModal .vm-picker-trigger.is-open .chev { transform: rotate(180deg); }

/* --- Create Ticket redesign (approved preview_create_ticket_v2). The
   cascade pickers reuse .vm-picker-trigger + the body-appended
   .vt-picker-pop; attachment chips reuse .ucomp-att-chip. Only these
   layout extras are new. Scoped to .vt-modal-v2. --- */
/* Q195 (owner, 11 Nov 2026, preview round 4): who the request is from, and for. "Requested by <name> @alias";
   with "Raise requests for others", the card is a button that opens a people list, and a second line
   "on behalf of <name> @alias" joins it. No chips, no job title on the card (the list and a tooltip carry it). */
.vt-modal-v2 .ct-ob { position: relative; }
.vt-modal-v2 .ob-card { display: block; width: 100%; text-align: start; font-family: var(--font-b); color: var(--black); background: var(--light-background); border: 1px solid var(--border); border-radius: var(--r-5); padding: var(--s-5) var(--s-6); }
.vt-modal-v2 button.ob-card { cursor: pointer; transition: border-color var(--dur-state) var(--ease), background var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease); }
.vt-modal-v2 button.ob-card:hover { border-color: var(--opacity-primary-color); background: #fff; }
.vt-modal-v2 button.ob-card:focus-visible, .vt-modal-v2 button.ob-card.is-open { outline: none; border-color: var(--primary-color); background: #fff; box-shadow: var(--sh-focus); }
.vt-modal-v2 .ob-line { display: grid; grid-template-columns: 30px 80px minmax(0, 1fr); align-items: center; column-gap: var(--s-5); position: relative; }
.vt-modal-v2 .ob-line[hidden] { display: none; }
.vt-modal-v2 .ob-line + .ob-line { margin-top: var(--s-5); }
.vt-modal-v2 .ob-line + .ob-line::before { content: ""; position: absolute; inset-inline-start: 14.5px; top: -11px; height: 12px; border-inline-start: 1.5px dashed var(--opacity-primary-color); }
.vt-modal-v2 .ob-line .av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--logo-orange); }
.vt-modal-v2 .ob-k { font-size: var(--t-1); color: var(--gray); white-space: nowrap; }
.vt-modal-v2 .ob-v { min-width: 0; font-size: var(--t-3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-modal-v2 .ob-v b { font-weight: 600; }
.vt-modal-v2 .ob-al { color: var(--primary-color); font-weight: 500; font-size: var(--t-2); margin-inline-start: var(--s-2); }
.vt-modal-v2 button.ob-card .ob-line.mine .ob-v b { text-decoration: underline dotted var(--primary-color); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.vt-modal-v2 .ob-line.behalf .ob-v { padding-inline-end: 26px; }
.vt-modal-v2 .ob-clear { position: absolute; inset-inline-end: var(--s-4); bottom: 9px; width: 24px; height: 24px; border-radius: var(--r-2); border: 0; background: none; color: var(--gray); cursor: pointer; display: grid; place-items: center; }
.vt-modal-v2 .ob-clear[hidden] { display: none; }
.vt-modal-v2 .ob-clear:hover { background: var(--gray-light2); color: var(--black); }
.vt-modal-v2 .ob-clear svg { width: 12px; height: 12px; }
.vt-modal-v2 .ob-pk { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; width: 100%; background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-5); box-shadow: var(--sh-3); z-index: 30; }
.vt-modal-v2 .ob-pk[hidden] { display: none; }
.vt-modal-v2 .ob-search { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--gray-light2); }
.vt-modal-v2 .ob-search svg { width: 14px; height: 14px; color: var(--gray); flex-shrink: 0; }
.vt-modal-v2 .ob-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-family: var(--font-b); font-size: var(--t-3); background: transparent; padding: 0; box-shadow: none; }
.vt-modal-v2 .ob-list { max-height: 260px; overflow: auto; padding: var(--s-2); transition: opacity var(--dur-fade) var(--ease); }
.vt-modal-v2 .ob-list.is-stale { opacity: .5; }
.vt-modal-v2 .ob-h { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; padding: var(--s-4) var(--s-5) var(--s-2); }
.vt-modal-v2 .ob-item { display: flex; align-items: center; gap: var(--s-5); padding: 7px var(--s-5); border-radius: var(--r-3); cursor: pointer; }
.vt-modal-v2 .ob-item:hover, .vt-modal-v2 .ob-item.is-active { background: var(--teal-wash); }
.vt-modal-v2 .ob-item .av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--logo-orange); flex-shrink: 0; }
.vt-modal-v2 .ob-item .t { min-width: 0; flex: 1; }
.vt-modal-v2 .ob-item .n { font-size: var(--t-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-modal-v2 .ob-item .m { font-size: var(--t-1); color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-modal-v2 .ob-item .chk { color: var(--primary-color); font-weight: 700; }
.vt-modal-v2 .ob-empty { padding: var(--s-8) var(--s-6); color: var(--gray); font-size: var(--t-2); }
.vt-modal-v2 .ob-sk { height: 44px; margin: var(--s-2); border-radius: var(--r-3); background: linear-gradient(90deg, var(--light-background), var(--gray-light2), var(--light-background)); background-size: 200% 100%; animation: ob-sk 1.2s linear infinite; }
@keyframes ob-sk { to { background-position: -200% 0; } }
.vt-modal-v2 .ob-foot { border-top: 1px solid var(--gray-light2); padding: 7px var(--s-6); font-size: var(--t-1); color: var(--gray); }
@media (max-width: 480px) {
  .vt-modal-v2 .ob-line { grid-template-columns: 30px minmax(0, 1fr); }
  .vt-modal-v2 .ob-k, .vt-modal-v2 .ob-v { grid-column: 2; }
  .vt-modal-v2 .ob-v { white-space: normal; }
  .vt-modal-v2 .ob-line .av { grid-row: 1 / span 2; align-self: start; }
  .vt-modal-v2 .ob-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vt-modal-v2 .ob-sk { animation: none; } }
.vt-modal-v2 .ct-sec { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray); margin: var(--s-2) 0 -4px; display: flex; align-items: center; gap: var(--s-4); }
.vt-modal-v2 .ct-sec::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* Same face and size as .ct-desc directly below it — a Poppins 600 title next
   to a Source Sans description read as an accident, not a hierarchy. */
.vt-modal-v2 .ct-title-input { width: 100%; font-family: var(--font-b); font-size: var(--t-3); font-weight: 400; color: var(--black); background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-5) var(--s-6); line-height: var(--lh-3); transition: border-color .12s, box-shadow .12s; }
.vt-modal-v2 .ct-title-input::placeholder { color: var(--gray); font-weight: 400; }
.vt-modal-v2 .ct-title-input:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.vt-modal-v2 .ct-desc { width: 100%; font-family: var(--font-b); font-size: var(--t-3); color: var(--black); background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-5) var(--s-6); min-height: 84px; resize: vertical; line-height: var(--lh-3); transition: border-color .12s, box-shadow .12s; }
.vt-modal-v2 .ct-desc::placeholder { color: var(--gray); }
.vt-modal-v2 .ct-desc:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
/* One per row. Five labels of very different lengths in a wrapping flex row
   land 2-2-1 and look broken; a column is even at any width and matches the
   stacked option rows used for department visibility. */
.vt-modal-v2 .ct-sev { display: flex; flex-direction: column; gap: var(--s-3); }
.vt-modal-v2 .ct-sev button { display: flex; align-items: center; gap: var(--s-4); width: 100%; text-align: start; font-family: var(--font-b); font-size: var(--t-2); font-weight: 500; color: #3f4650; background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-3); padding: var(--s-4) var(--s-6); cursor: pointer; transition: border-color .12s, background .12s; }
.vt-modal-v2 .ct-sev button .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--sc); }
.vt-modal-v2 .ct-sev button:hover { border-color: #cdd3da; }
.vt-modal-v2 .ct-sev button.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 8%, #fff); color: var(--sc); }
.vt-modal-v2 .ct-sev button .lv { font-family: var(--font-h); font-weight: 700; }
/* No card border. It was the only one of the three sections drawn as a card,
   which made it read as highlighted or errored rather than first. The
   section heading already groups it, same as "Describe it" and "Details". */
.vt-modal-v2 .ct-class { display: flex; flex-direction: column; gap: 11px; }
.vt-modal-v2 .ct-route { display: flex; align-items: center; gap: 9px; font-family: var(--font-b); font-size: var(--t-2); border-top: 1px dashed var(--gray-light2); padding-top: 11px; color: var(--gray); }
.vt-modal-v2 .ct-route .ico { width: 15px; height: 15px; color: var(--gray); flex-shrink: 0; }
.vt-modal-v2 .ct-route.on { color: var(--black); }
.vt-modal-v2 .ct-route.on .ico { color: var(--primary-color); }
.vt-modal-v2 .ct-route .team { font-family: var(--font-h); font-weight: 600; color: var(--primary-color); }
.vt-modal-v2 .ct-route .pill { margin-inline-start: auto; font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; border-radius: var(--r-pill); padding: var(--s-1) var(--s-4); background: var(--gray-light2); color: var(--gray); }
.vt-modal-v2 .ct-route.on .pill { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.vt-modal-v2 .ct-drop { border: 1.5px dashed var(--gray-light2); border-radius: var(--r-5); padding: var(--s-8); text-align: center; font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); cursor: pointer; transition: border-color .12s, background .12s; }
.vt-modal-v2 .ct-drop:hover, .vt-modal-v2 .ct-drop.drag { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 4%, #fff); color: #3f4650; }
.vt-modal-v2 .ct-drop svg { width: 18px; height: 18px; color: var(--gray); vertical-align: -3px; margin-inline-end: 5px; }
/* Service forms (D112; preview_services v2): the lines about the service above the route, and its
   questions after the title and the description. The fields are the window's own (title input,
   description box, drop zone, picker); only what they lack is here, under .sv-about / .sv-field,
   so nothing else in the window changes. */
.vt-modal-v2 .sv-about { display: flex; gap: var(--s-5); align-items: flex-start; background: #F4F9F9; border: 1px solid #CFDDDE; border-radius: var(--r-5); padding: var(--s-6); font-family: var(--font-b); font-size: var(--t-2); color: #3f4650; line-height: 1.5; }
.vt-modal-v2 .sv-about[hidden], .vt-modal-v2 .sv-qblock[hidden], .vt-modal-v2 .sv-field .sv-err[hidden] { display: none; }
.vt-modal-v2 .sv-about svg { color: var(--primary-color); flex: 0 0 auto; margin-top: 2px; }
.vt-modal-v2 .sv-about b { display: block; font-family: var(--font-h); font-weight: 600; color: var(--black); font-size: var(--t-2); margin-bottom: 2px; }
.vt-modal-v2 .sv-about span { white-space: pre-line; overflow-wrap: anywhere; }
.vt-modal-v2 .sv-qblock { display: flex; flex-direction: column; gap: var(--s-7); }
.vt-modal-v2 .sv-field .vm-fld-hint { font-size: var(--t-2); }
.vt-modal-v2 .sv-field .ct-desc { min-height: 72px; }
.vt-modal-v2 .sv-field .ct-drop { padding: var(--s-7); }
.vt-modal-v2 .sv-field .sv-choices { display: flex; flex-direction: column; gap: var(--s-3); font-family: var(--font-b); font-weight: 400; font-size: var(--t-3); color: var(--black); }
.vt-modal-v2 .sv-field .sv-ch { display: flex; align-items: center; gap: var(--s-4); border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: 9px var(--s-6); background: #fff; cursor: pointer; }
.vt-modal-v2 .sv-field .sv-ch:focus-within { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.vt-modal-v2 .sv-field .sv-ch input { accent-color: var(--primary-color); width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
.vt-modal-v2 .sv-field .sv-ch span { overflow-wrap: anywhere; }
/* yes or no: the Manage pages' segmented choice (.ax-seg lives in access.css, not loaded here) */
.vt-modal-v2 .sv-field .ax-seg { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.vt-modal-v2 .sv-field .ax-seg button { font-family: var(--font-h); font-size: var(--t-2); font-weight: 500; color: #3F4A4C; background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-pill); padding: 0 var(--s-6); min-height: 36px; cursor: pointer; }
.vt-modal-v2 .sv-field .ax-seg button[aria-pressed="true"] { background: #E1EDEE; color: var(--primary-color); border-color: #CFDDDE; }
.vt-modal-v2 .sv-field .ax-seg button:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.vt-modal-v2 .sv-field .ct-att-list:empty { display: none; }
/* a refused answer: said under its question, in words, and the box goes red */
.vt-modal-v2 .sv-field .sv-err { font-family: var(--font-b); font-weight: 500; font-size: var(--t-2); color: var(--red); }
.vt-modal-v2 .sv-field.is-err .ct-title-input, .vt-modal-v2 .sv-field.is-err .ct-desc,
.vt-modal-v2 .sv-field.is-err .vm-picker-trigger, .vt-modal-v2 .sv-field.is-err .ct-drop,
.vt-modal-v2 .sv-field.is-err .sv-ch, .vt-modal-v2 .sv-field.is-err .ax-seg button { border-color: var(--red); }
/* Multi-department Phase 0-3: the create modal STATES who can read the ticket
   instead of asking. The only control is a one-way narrowing escape hatch, so
   this is a statement block, not a pair of toggle buttons. */
/* Option B (approved 2026-09-06): a filled icon badge and the whole block
   coloured by tier. Both states used to be the same grey box, so someone filing
   a payroll complaint got no signal that the whole company could read it. The
   three colours are the ones already on the ticket-list pills — teal for
   everyone, blue for a department, orange for private — so a tier reads the
   same wherever it appears. */
.vt-modal-v2 .ct-vis { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-6);
  align-items: start; background: var(--light-background); border: 1px solid var(--gray-light2);
  border-radius: var(--r-5); padding: 13px 15px; transition: background .14s, border-color .14s; }
.vt-modal-v2 .ct-vis-ico { grid-row: 1 / span 2; display: flex; align-items: center;
  justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray-light2); color: var(--gray); transition: background .14s, color .14s; }
.vt-modal-v2 .ct-vis-ico svg { width: 18px; height: 18px; }
/* with no "make this private" link under the sentence, the icon takes the sentence's row only, so the
   two sit on one centre line (owner, 2026-09-28: the text sat 7px above the globe) */
.vt-modal-v2 .ct-vis:not(:has(.ct-vis-narrow:not([hidden]))) .ct-vis-ico { grid-row: 1; }
/* text-align and font-family are declared deliberately. Specificity is decided
   PER PROPERTY: this rule outranks `.popup-content p` overall, but properties it
   never declares still come from there — so the sentence shipped centred and in
   Poppins despite this rule "winning". */
.vt-modal-v2 .ct-vis-txt { grid-column: 2; align-self: center; margin: 0; font-size: var(--t-2); line-height: var(--lh-3);
  color: var(--black); text-align: start; font-family: var(--font-b);
  font-weight: 400; text-wrap: pretty; }
.vt-modal-v2 .ct-vis-narrow { grid-column: 2; justify-self: start; margin-top: 7px;
  padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-b);
  font-size: var(--t-1); font-weight: 600; color: var(--primary-color);
  border-bottom: 1px solid transparent; transition: border-color .12s; }
.vt-modal-v2 .ct-vis-narrow:hover { border-bottom-color: var(--primary-color); }
.vt-modal-v2 .ct-vis-narrow:focus-visible { outline: 2px solid var(--primary-color);
  outline-offset: 2px; border-radius: var(--r-1); }
/* One accent per tier, driving badge + border + tint + the narrow button. */
.vt-modal-v2 .ct-vis[data-tier="public"]     { --vis: var(--primary-color); }
.vt-modal-v2 .ct-vis[data-tier="department"] { --vis: var(--blue); }
.vt-modal-v2 .ct-vis[data-tier="private"]    { --vis: var(--logo-orange, #E26E00); }
.vt-modal-v2 .ct-vis[data-tier="public"],
.vt-modal-v2 .ct-vis[data-tier="department"],
.vt-modal-v2 .ct-vis[data-tier="private"] {
  background: color-mix(in srgb, var(--vis) 5%, #fff);
  border-color: color-mix(in srgb, var(--vis) 26%, #fff); }
.vt-modal-v2 .ct-vis[data-tier="public"] .ct-vis-ico,
.vt-modal-v2 .ct-vis[data-tier="department"] .ct-vis-ico,
.vt-modal-v2 .ct-vis[data-tier="private"] .ct-vis-ico {
  background: color-mix(in srgb, var(--vis) 14%, #fff); color: var(--vis); }
.vt-modal-v2 .ct-vis[data-tier="public"] .ct-vis-narrow,
.vt-modal-v2 .ct-vis[data-tier="department"] .ct-vis-narrow,
.vt-modal-v2 .ct-vis[data-tier="private"] .ct-vis-narrow { color: var(--vis); }
.vt-modal-v2 .ct-vis[data-tier="public"] .ct-vis-narrow:hover,
.vt-modal-v2 .ct-vis[data-tier="department"] .ct-vis-narrow:hover,
.vt-modal-v2 .ct-vis[data-tier="private"] .ct-vis-narrow:hover { border-bottom-color: var(--vis); }
.vt-modal-v2 .ct-vis[data-tier="none"] .ct-vis-txt { color: var(--gray); }

/* Approval notice — told BEFORE submitting. Deliberately NOT a second boxed
   card: it hangs off the visibility card above it as a consequence of the same
   answer ("who will read this"), and two equal-weight boxes would make the
   requester choose which one to read. Teal, matching the approval card on the
   ticket itself, so the notice and the thing it predicts look related.
   text-align/font-family/font-size are all restated because `.popup-content p`
   supplies any property this rule leaves undeclared — see the note above. */
.vt-modal-v2 .ct-appr { display: grid; grid-template-columns: auto 1fr; gap: 9px;
  align-items: start; margin: 3px 3px 0; padding-inline-start: 11px;
  border-inline-start: 2px solid color-mix(in srgb, var(--primary-color) 30%, #fff); }
.vt-modal-v2 .ct-appr-ico { display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-top: 1px; color: var(--primary-color); }
.vt-modal-v2 .ct-appr-ico svg { width: 16px; height: 16px; }
.vt-modal-v2 .ct-appr-txt { margin: 0; font-family: var(--font-b);
  font-weight: 400; font-size: var(--t-2); line-height: 1.55; color: var(--black);
  text-align: start; text-wrap: pretty; }
.vt-modal-v2 .ct-appr-txt b { font-weight: 600; }
/* The one sentence that has to survive skim-reading: the escape hatch directly
   above does not shut the approvers out. */
.vt-modal-v2 .ct-appr-warn { display: block; margin-top: 3px; font-weight: 600;
  color: var(--logo-orange, #E26E00); }
.vt-modal-v2 .ct-tags { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: 7px 9px; min-height: 42px; }
.vt-modal-v2 .ct-tags .chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; background: color-mix(in srgb, var(--primary-color) 9%, #fff); color: var(--primary-color); border-radius: var(--r-pill); padding-block: 3px; padding-inline: var(--s-5) var(--s-3); }
.vt-modal-v2 .ct-tags .chip button { background: none; border: 0; color: var(--primary-color); cursor: pointer; display: flex; opacity: .7; padding: 0; }
.vt-modal-v2 .ct-tags input { flex: 1; min-width: 90px; border: 0; outline: none; font-family: var(--font-b); font-size: var(--t-2); padding: 3px; background: transparent; }
.vt-modal-v2 .ct-att-list { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.vt-modal-v2 .ucomp-att-chip.err { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, #fff); }
.vt-modal-v2 .ucomp-att-chip .prev { cursor: zoom-in; }
.vt-modal-v2 .vm-fld-hint { font-family: var(--font-b); font-size: var(--t-1); font-weight: 400; color: var(--gray); margin-top: -2px; }
.vt-modal-v2 .vm-req { color: var(--red); font-weight: 700; margin-inline-start: var(--s-1); }
/* Create Ticket load skeleton: a touch stronger shimmer than the default
   #eee so the structured placeholders read as "loading" on the white modal.
   Scoped to #backend-popup so other modals' skeletons are untouched. */
#backend-popup .vt-tm-sk { background: linear-gradient(90deg, #e4e7ec 25%, #eef1f5 50%, #e4e7ec 75%); background-size: 200% 100%; }
/* Create Ticket modal focus rings. Teal, as everywhere else — the old comment
   here claimed orange was "the rest of the app", which was never true: the
   stylesheet had 9 teal focus rules against 3 orange, and Settings carried its
   own !important purely to escape this one. Orange also already means something
   in this app (private tickets, warning banners, severity 2 and 3), so an
   orange ring on a field you merely tabbed into read as a warning.
   #backend-popup only carries .vt-modal-v2 while it IS the Create Ticket modal,
   so other popups injected there are untouched. */
#backend-popup.vt-modal-v2 :focus-visible {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

.popup-content.grid-container {
  display: grid;
}

.popup-content.grid-container>div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-8);
}

.popup-content p {
  margin: 0;
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  text-align: center;
  color: var(--gray);
}

.popup-content.help p {
  text-align: start;
}

.popup-content.help hr {
  border-bottom: 1px solid var(--gray-light2);
  margin: 0;
  opacity: .2;
}

.popup-footer .secondary-button, .popup-footer .button, .popup-footer .delete-button, .popup-footer .btn-secondary, .popup-footer .btn-primary, .popup-footer .btn-danger{
  max-width: 180px;
  width: 100%;
}

.close-btn {
  cursor: pointer;
}

.popup .error,
.popup .pending {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  text-align: center;
  width: 100%;
  padding: var(--s-4);
  color: var(--red);
  background-color: var(--red-light);
  border-radius: 24px;
  display: none;
}

.popup .pending {
  color: var(--orange);
  background-color: var(--orange-light);
}

.popup .error.show,
.popup .pending.show {
  display: block;
}

.input-box {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.popup .full {
  grid-column: 1 / -1;
  gap: 0;
  display: flex;
  flex-wrap: wrap;
}

.dropzone {
  border: 1px dashed var(--green);
  height: 55px;
  width: 100%;
  border-radius: 24px;
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.dropzone-title {
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  color: var(--gray);
  display: inline-block;
  margin-bottom: var(--s-4);
}

.popup .full .dropzone {
  width: calc(50% - 8px);
}

.popup .dropzone {
  background-color: var(--white);
  height: 36px;
  padding: var(--s-4) var(--s-6);
}

.fileList {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.popup .full .fileList {
  margin-top: -40px;
  gap: var(--s-8);
  flex-wrap: wrap;
  flex-direction: row;
  min-height: 40px;
}

.dropzone-file {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 40px;
}

.popup .full .dropzone-file {
  width: calc(50% - 8px);
}

.popup .full .dropzone-file:first-child {
  margin-inline-start: calc(50% + 8px);
}

.dropzone-file>div {
  background-color: var(--white);
  padding: var(--s-4) var(--s-6);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--green);
  flex: 1;
  border-radius: var(--r-pill);
}

.dropzone-file>div span {
  color: var(--gray);
}

.copy-button {
  margin-inline-start: -34px;
  margin-inline-end: 9px;
  height: 18px;
  cursor: pointer;
}

.notifications-box {
  position: relative;
}

.notifications {
  width: 327px;
  top: 48px;
  inset-inline-end: 0;
  z-index: 1;
}

.notifications.show {
  display: block;
}

.notifications__title {
  font-family: var(--font-h);
  font-size: var(--t-5);
  font-weight: 500;
  line-height: 23.4px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--s-8);
}

.notifications__title button,
.notifications__title a {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--primary-color);
  cursor: pointer;
}

.notifications__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-6);
}

.notifications__item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.notifications__status {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.8px;
  text-align: start;
  color: var(--black);
}

.notifications__date {
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 400;
  line-height: 18.2px;
  text-align: start;
  color: var(--gray);
  margin-top: var(--s-2);
}

.notifications__item+.notifications__item {
  padding-top: var(--s-6);
  margin-top: var(--s-6);
  border-top: 1px solid var(--gray-light2);
}

.actions-box {
  position: relative;
  width: 40px;
  height: 40px;
}

.actions-menu {
  position: absolute;
  z-index: 200!important;
  width: 168px;
  top: 45px;
  inset-inline-end: 0;
  padding: var(--s-9);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  gap: var(--s-6);
  align-items: flex-start;
  background-color: var(--light-background);
  box-shadow: var(--sh-4);
}

.actions-menu button {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.8px;
  color: var(--black);
  cursor: pointer;
  width: 100%;
  text-align: start;
}

.actions-menu button.delete {
  padding-top: var(--s-6);
  border-top: 1px solid var(--gray-light2);
  color: var(--red);
}
/* Catalog Deactivate/Retire — Deactivate action + disabled permanent-delete. */
.actions-menu button.deact { color: #B45309; }
.actions-menu button.reactivate { color: var(--primary-color, #04696F); cursor: pointer; width: 100%; text-align: start; font-family: var(--font-b); font-size: var(--t-4); }
.actions-menu button.delete.is-locked,
.actions-menu button.delete:disabled { color: var(--gray); cursor: not-allowed; }
/* Retire / Deactivate / Reactivate for someone without the permission: greyed, the reason on hover. */
.actions-menu button.deact:disabled,
.actions-menu button.reactivate:disabled { color: var(--gray); cursor: not-allowed; }
.inactive-chip {
  display: inline-block; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill);
  background: var(--gray-light2, #EBEBEB); color: var(--gray, #828282); margin-inline-start: var(--s-3); vertical-align: 2px;
}
.usage-note { font-size: var(--t-1); color: var(--gray, #828282); }

/* CTI Retire — amber "Retired" pill (distinct from the grey "Draft" pill:
   Draft = never published / 0 groups; Retired = withdrawn, groups kept). */
.retired-pill {
  display: inline-block; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill);
  background: #FBE9D6; color: #B45309; margin-inline-start: var(--s-2); vertical-align: 1px;
}
.grp-muted { color: var(--gray); text-decoration: line-through; }

/* Standalone Reactivate pill — Status + Group manage pages (not in an
   actions-menu, so it needs its own base style). Teal outline pill. */
.reactivate-pill {
  font-family: var(--font-b); font-size: var(--t-2); font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid #B7DDDF; border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-7); color: var(--primary-color, #04696F); line-height: var(--lh-1);
}
.reactivate-pill:hover { background: #E6F1F1; }
/* Soft-deleted rows/cards read as dimmed-but-legible. */
.card-item.is-inactive { opacity: .72; }
tr.is-inactive td { opacity: .6; }

/* ============================================================
   Manage Ticket Statuses — refactored list view (2027).
   Vertical, stage-grouped list replacing the cramped card grid;
   roomy full-width add row so the name field is never squeezed.
   ============================================================ */
.manage-statuses-page .ms-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.manage-statuses-page .ms-head .page-title { margin: 0; }
.manage-statuses-page .secondary-button, .manage-statuses-page .btn-secondary{ display: inline-flex; align-items: center; gap: var(--s-4); }

.st-list { border: 1px solid #EFEFEF; border-radius: 16px; overflow: hidden; background: #fff; }
.st-group-head {
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gray); padding: 13px 18px 7px; background: #FAFBFC;
}
.st-group-head--retired { color: #B45309; background: #FFF9F2; }

.st-row {
  display: flex; align-items: center; gap: var(--s-8); padding: 13px 18px; border-top: 1px solid #F0F0F0;
}
.st-row:hover { background: #FBFCFC; }
.st-row.is-retired { opacity: .74; }
.st-name { min-width: 210px; display: flex; align-items: center; gap: var(--s-4); }
/* Row pill a touch larger than the guide pill (win over .manage-statuses-page
   .ms-pill on source order via the extra class). */
.manage-statuses-page .st-name .ms-pill { font-size: var(--t-2); padding: 5px var(--s-7) var(--s-3); }

.st-meta { flex: 1; display: flex; align-items: center; gap: var(--s-8); font-size: var(--t-2); color: #828282; }
.st-count { color: #5b626c; font-weight: 600; font-family: var(--font-b); }
.sla-chip {
  display: inline-flex; align-items: center; font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  padding: 3px var(--s-5); border-radius: var(--r-pill);
}
.sla-chip.sla-run { background: #E6F1F1; color: #04696F; }
.sla-chip.sla-pause { background: #FBF0D6; color: #9a6b12; }
.sla-chip.sla-complete { background: #DFF3E6; color: #1f8a4c; }
.st-stage { font-size: var(--t-1); color: var(--gray); }
/* D66: Counts as Completed / Cancelled on a finished status (preview_completed_cancelled).
   The .ap-tabs segmented control, sized down to sit in a row; a cancelled status's
   SLA chip turns neutral, because it is not scored. */
.st-meta .st-ca { font-size: var(--t-1); color: #6F6F6F; margin-inline-end: calc(var(--s-4) - var(--s-8)); }
.st-meta .st-outcome { padding: var(--s-1); }
.st-meta .st-outcome button { padding: var(--s-2) var(--s-6); font-size: var(--t-1); }
.sla-chip.sla-complete.is-cancel { background: #F1F3F4; color: #4A5560; }

.st-actions { display: flex; align-items: center; gap: var(--s-4); }
.st-ic {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: #F2F3F5;
}
.st-ic--gear { background: #EAF3F3; }
.st-ic--del { background: #FDECEC; }
.st-ic:hover { filter: brightness(0.96); }
.st-core {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-h); font-size: var(--t-1);
  font-weight: 600; color: var(--gray); padding: var(--s-2) var(--s-4); cursor: default;
}

/* Full-width add row — the fix for the cramped grid. */
.st-add {
  display: flex; align-items: center; gap: var(--s-6); padding: var(--s-8) 18px;
  border-top: 2px solid #EFEFEF; background: #FAFBFC;
}
.st-add #new-status {
  flex: 1; min-width: 0; border: 1px solid #D8DCE0; border-radius: var(--r-5); padding: 11px var(--s-7);
  font-family: var(--font-b); font-size: var(--t-4); background: #fff;
}
.st-add #new-status:focus { outline: none; border-color: var(--primary-color, #04696F); box-shadow: var(--sh-focus); }
.st-add .st-add-sla { margin: 0; flex: 0 0 auto; }
.st-add .st-add-sla select {
  border: 1px solid #D8DCE0; border-radius: var(--r-5); padding: 11px var(--s-6);
  font-family: var(--font-b); font-size: var(--t-3); background: #fff;
}
.st-add .st-add-go {
  flex: 0 0 auto; background: var(--primary-color, #04696F); color: #fff; border: none;
  border-radius: var(--r-5); padding: 11px 22px; font-family: var(--font-h); font-weight: 500; font-size: var(--t-3); cursor: pointer;
}
.st-add-hint { font-size: var(--t-1); color: var(--gray); padding: 0 18px var(--s-7); background: #FAFBFC; }

/* Location manage cards — Deactivate/Reactivate pills + disabled Delete.
   (Location has no actions-menu; these are inline pills in the card row.) */
.card-item.loc-inactive { opacity: .72; }
.loc-actions { display: flex; align-items: center; gap: var(--s-4); }
.loc-btn {
  font-family: var(--font-b); font-size: var(--t-3); font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-7); line-height: var(--lh-1);
}
.loc-btn.deact { color: #B45309; border-color: #F2D5AE; }
.loc-btn.deact:hover { background: #FDF4E7; }
.loc-btn.reactivate { color: var(--primary-color, #04696F); border-color: #B7DDDF; }
.loc-btn.reactivate:hover { background: #E6F1F1; }
.ellipse-button-small.delete.is-locked, .ellipse-button-small.delete:disabled, .btn-danger-2.btn-icon.is-locked, .btn-danger-2.btn-icon:disabled{ opacity: .4; cursor: not-allowed; }

.actions-menu.show {
  display: flex;
}

.mobile-nav {
  display: none;
}

/* start sing in/sing up page */

.sign-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  padding: 28px;
  position: relative;
}

.sign-container {
  background-color: var(--light-background);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  max-width: 1000px;
  min-height: 613px;
  width: 100%;
  height: 100%;
}

.sign-description {
  background-color: var(--white);
  border-start-start-radius: 24px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-end-start-radius: 24px;
  width: 50%;
  padding: var(--s-12) 60px;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
}

.sign-description .logo {
  position: absolute;
  inset-inline-start: 60px;
  top: 40px;
  height: auto;
}

.sign-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-8);
}

/* The workspace's own logo above its address on the sign-in page (D153 part 3, OF-86). */
.sign-title__logo { height: 36px; width: auto; max-width: 200px; object-fit: contain; display: block; margin: 0; }

.sign-title__badge {
  display: inline-block;
  padding: 3px var(--s-6);
  border-radius: var(--r-pill);
  background-color: var(--orange-light);
  font-family: var(--font-b);
  font-size: var(--t-3);
  font-weight: 400;
  line-height: 18.2px;
  color: var(--orange);
}

.sign-title h1 {
  font-family: var(--font-h);
  font-size: 56px;
  font-weight: 700;
  line-height: 72.8px;
  color: var(--black);
  margin: 0;
}

.sign-title p {
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  color: var(--gray-light);
}

.sing-form {
  width: 50%;
  display: flex;
  align-items: center;
  padding: var(--s-11) 56px;
}

.sing-form__container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.sing-form__title {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}

.sing-form__title h2 {
  font-family: var(--font-h);
  font-size: var(--t-7);
  font-weight: 600;
  line-height: 31.2px;
  color: var(--black);
  margin: 0;
}

.sing-form__title p {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  color: var(--gray);
}

/* F29: the confirm page's "old -> new" line (email_change.html). */
.sing-form__title p.ec-move { text-align: center; overflow-wrap: anywhere; }
.sing-form__title p.ec-move b { color: var(--black); font-weight: 600; }

/* The public invoice check (D250). */
.invoice-check-facts { margin: 0 0 var(--s-10); }
.invoice-check-facts > div { display: flex; justify-content: space-between; gap: var(--s-6); padding: var(--s-6) 0; border-bottom: 1px solid var(--border); }
.invoice-check-facts dt { color: var(--gray); font-weight: 400; }
.invoice-check-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.invoice-check-missing { color: var(--ink); margin: 0 0 var(--s-6); }

.sing-form__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}

.sing-form__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  text-align: center;
}

/* Plain links only: a link styled as a button (global.css .btn-primary, one class) lost its colours
   to this rule (a class and a tag outrank one class), so "Go to UBridge" on the suspended / not-found
   / deleted pages was teal on teal (found walking P0-03, 22 Oct 2026). :where() adds no weight, so
   the rule is as strong as it was for every other link. */
.sing-form a:where(:not(.btn)) {
  color: var(--primary-color);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  transition: color .1s linear;
  text-decoration: none;
  text-align: center;
}

.sing-form a:where(:not(.btn)):hover {
  color: var(--secondary-color);
}

.step {
  display: none;
}

.step.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step h2 {
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  color: var(--gray);
  margin: 0 0 var(--s-6) 0;
}

.step-buttons {
  margin-top: auto;
  margin-bottom: var(--s-8);
  display: flex;
  gap: var(--s-8);
}

.step-buttons button {
  flex: 1;
}

.multistep_progress {
  display: flex;
  gap: 13px;
  margin-bottom: var(--s-10);
}

.multistep_progress div {
  height: 8px;
  background-color: var(--green-light);
  border-radius: var(--r-3);
  flex: 1;
}

.multistep_progress div.active {
  background-color: var(--green);
}

/* end sing in/sing up page*/

/* start error page (403/404) */
.error-page {
  background-color: var(--light-background);
  border-radius: 24px;
  display: flex;
  height: calc(100vh - 48px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.error-number {
  color: var(--blue);
  font-family: var(--font-h);
  font-size: 180px;
  font-weight: 600;
  line-height: 234px;
  margin-bottom: 28px;
}

.error-title {
  color: var(--black);
  font-family: var(--font-h);
  font-size: 56px;
  font-weight: 600;
  line-height: 72.8px;
  margin-bottom: var(--s-9);
}

.error-text {
  color: var(--gray);
  font-family: var(--font-h);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 20.8px;
  margin-bottom: 28px;
  max-width: 678px;
}

/* end error page (403/404) */

.plans {
  background-color: white;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  gap: var(--s-11);
  max-width: 1296px;
  min-height: 610px;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 56px;
}

.plans h1 {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 600;
  line-height: 41.6px;
  text-align: center;
  color: var(--black);
  margin: 0;
}

.plans>a {
  color: var(--primary-color);
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  transition: color .1s linear;
  text-decoration: none;
  text-align: center;
}

.plans>a:hover {
  color: var(--secondary-color);
}

.plans-wrapper {
  display: flex;
  gap: var(--s-11);
  flex-wrap: wrap;
  justify-content: center;
}

.plan {
  padding: var(--s-11) var(--s-10);
  background-color: var(--light-background);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(33% - 18px);
  gap: var(--s-9);
}

.plan .button, .plan .btn-primary{
  width: 100%;
  margin-bottom: var(--s-9);
}

.price-wrapper {
  text-align: center;
}

.price-wrapper h2 {
  font-family: var(--font-h);
  font-size: var(--t-7);
  font-weight: 600;
  line-height: 31.2px;
  text-align: center;
  color: var(--black);
  margin-top: 0;
  margin-bottom: var(--s-6);
}

.price-wrapper .price {
  font-family: var(--font-h);
  font-size: 56px;
  font-weight: 600;
  line-height: 72.8px;
  color: var(--green);
  margin-bottom: var(--s-2);
}

.price-wrapper .price span {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  text-align: start;
  color: var(--gray);
}


.price-wrapper .discount,
.price-wrapper .year-price {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  text-align: center;
  color: var(--orange);
}

.price-wrapper .year-price {
  display: block;
  color: var(--gray);
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.plan li {
  font-family: var(--font-b);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 20.11px;
  text-align: start;
  position: relative;
  color: var(--gray);
  padding-inline-start: var(--s-11);
}

.plan li::before {
  content: '';
  width: 20px;
  height: 20px;
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='9.5' fill='%2304696F' stroke='%2304696F'/%3E%3Cpath d='M5 11.7765L7.73562 13.8306C7.91023 13.9617 8.12867 14.0202 8.34532 13.9938C8.56197 13.9674 8.76007 13.8583 8.89823 13.6892L16 5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  inset-inline-start: 0;
  top: 0;
}

.plan li.no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='9.5' fill='%23C9ECEC' stroke='%23C9ECEC'/%3E%3Cpath d='M10.0016 11.05L6.32656 14.725C6.18906 14.8625 6.01406 14.9313 5.80156 14.9313C5.58906 14.9313 5.41406 14.8625 5.27656 14.725C5.13906 14.5875 5.07031 14.4125 5.07031 14.2C5.07031 13.9875 5.13906 13.8125 5.27656 13.675L8.95156 10L5.27656 6.32501C5.13906 6.18751 5.07031 6.01251 5.07031 5.80001C5.07031 5.58751 5.13906 5.41251 5.27656 5.27501C5.41406 5.13751 5.58906 5.06876 5.80156 5.06876C6.01406 5.06876 6.18906 5.13751 6.32656 5.27501L10.0016 8.95001L13.6766 5.27501C13.8141 5.13751 13.9891 5.06876 14.2016 5.06876C14.4141 5.06876 14.5891 5.13751 14.7266 5.27501C14.8641 5.41251 14.9328 5.58751 14.9328 5.80001C14.9328 6.01251 14.8641 6.18751 14.7266 6.32501L11.0516 10L14.7266 13.675C14.8641 13.8125 14.9328 13.9875 14.9328 14.2C14.9328 14.4125 14.8641 14.5875 14.7266 14.725C14.5891 14.8625 14.4141 14.9313 14.2016 14.9313C13.9891 14.9313 13.8141 14.8625 13.6766 14.725L10.0016 11.05Z' fill='%2304696F'/%3E%3C/svg%3E");
}

.plan li b {
  color: var(--black);
}

/* Approved 2026-09-06: 8px everywhere. A 100px capsule is right on a chip and
   wrong on a full-width text box. Modals were ALREADY 8px via `.popup.show`, so
   this makes pages match modals rather than inventing a new shape — that
   now-redundant override is gone. */
.input input,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: var(--r-3);
    /* Was `1px solid transparent`: white on grey with no edge, so fields floated
       rather than sat in the page. The edge is most of the perceived quality. */
    border-color: #DFE2E5;
}

@media screen and (max-width: 1200px) {
  body {
    margin: var(--s-8);
  }

  .sidebar,
  nav {
    display: none;
  }

  main,
  .big-sidebar main {
    max-width: 100%;
  }

  nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-bottom: var(--s-6);
  }

  .mobile-header {
    flex-direction: row;
    gap: var(--s-6);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-8);
    position: relative;
    padding: var(--s-4) var(--s-6);
  }

  .logo {
    height: 28px;
    z-index: 2;
  }

  .mobile-header .nav__buttons,
  .mobile-header #mobileMenuButton {
    z-index: 2;
  }

  .mobile-menu {
    position: absolute;
    border-radius: 0 0 24px 24px;
    top: calc(100% - 18px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 2;
    background-color: var(--light-background);
    padding: 30px var(--s-6) var(--s-6);
    display: none;
    box-shadow: var(--sh-4);
  }

  .mobile-menu .sidebar {
    display: flex;
    width: 100%;
    padding: 0;
    gap: var(--s-10);
    margin-top: var(--s-10);
  }

  .sidebar__title {
    margin: 0;
    font-size: var(--t-5);
    line-height: 23.4px;
  }

  .menu li+li {
    margin-top: var(--s-2);
  }

  .sidebar__footer a {
    font-size: var(--t-5);
  }

  .sidebar__content {
    max-height: 55vh;
  }

  .sidebar__back-button {
    margin: 0;
  }

  .nav__search {
    width: 100%;
  }

  .four,
  .three {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-2 {
    flex-direction: column;
  }

  .col-2 .grey-block {
    width: 100%;
  }

  .dashboard {
    flex-wrap: wrap;
  }

  .card {
    width: calc(50% - 8px);
  }

  .sign-container {
    flex-direction: column;
  }

  .sign-description,
  .sing-form {
    width: 100%;
    padding: var(--s-10) var(--s-6);
    border-radius: 0;
  }

  .sign-description .logo {
    position: static;
    margin-bottom: var(--s-10);
  }

  .sign-title h1 {
    font-size: 40px;
    line-height: 52px;
  }

  .sign-page {
    padding: 28px var(--s-8);
  }

  .plans-wrapper {
    gap: var(--s-10);
  }

  .plan {
    width: calc(33% - 18px);
  }
}

@media screen and (max-width: 968px) {
  .plan {
    width: calc(50% - 16px);
  }
  .filter .select2 {
    width: 100% !important;
  }
  #filter-form .input, #filter-form .box {
    width: 100%;
  }
  .filter .button, .filter .btn-primary{
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .plans {
    padding: var(--s-11) var(--s-6);
  }

  .plan {
    padding: var(--s-10) var(--s-4);
    width: 100%;
    gap: var(--s-9);
  }

  .plans h1 {
    font-size: var(--t-7);
    font-weight: 600;
    line-height: 31.2px;
  }


  .price-wrapper h2 {
    font-size: var(--t-6);
    line-height: 26px;
  }

  .price-wrapper .price {
    font-size: 44px;
    line-height: 57.2px;
  }

  .popup .full .dropzone {
    width: 100%;
  }

  .popup {
    width: calc(100% - 32px);
    padding: 28px var(--s-6);
  }

  .popup .dropzone {
    height: 119px;
    text-align: center;
  }

  .popup-header h3 {
    font-size: var(--t-6);
  }

  .popup-footer {
    flex-direction: column;
    gap: var(--s-6);
  }

  .popup form {
    gap: var(--s-6);
  }

  .popup-content {
    gap: var(--s-6);
  }

  .popup-footer .secondary-button, .popup-footer .button, .popup-footer .delete-button, .popup-footer .btn-secondary, .popup-footer .btn-primary, .popup-footer .btn-danger{
    max-width: 100%;
  }

  .card {
    width: 100%;
  }

  .tabs {
    overflow-x: auto;
    gap: var(--s-2);
  }

  .overview {
    flex-direction: column;
  }

  .comment-input {
    flex-wrap: wrap;
  }

  .comment-input .button, .comment-input .btn-primary{
    width: 100%;
  }

  .grey-block:not(.mobile-header) .nav__buttons {
    justify-content: space-between;
  }

  .page-title {
    font-size: var(--t-5);
    line-height: 23.4px;
    flex-direction: column;
    gap: var(--s-9);
  }

  .grey-block {
    gap: var(--s-9);
  }

  .select2-container {
    flex: 0;
  }

  .error-number {
    font-size: 120px;
    line-height: 156px;
    margin-bottom: var(--s-10);
  }

  .error-title {
    font-size: 36px;
    line-height: 46.8px;
  }

  .error-text {
    margin-bottom: var(--s-10);
  }

  .two,
  .four,
  .three {
    grid-template-columns: repeat(1, 1fr);
  }

  table {
    min-width: auto;
  }
}
@media screen and (max-width: 706px) {

  .filter {
    flex-direction: column;
    justify-content: center;
  }
  span.select2.select2-container.select2-container--default {
    width: 100% !important;
  }
}
@media screen and (max-width: 500px) {
  .success-message,
  .pending-access,
  .notifications,
  .success-messages-container {
    width: 300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .success-message {
    width: 100%;
    transform: none;
  }
}
@media screen and (max-width: 370px) {
  .dropzone {
    font-size: var(--t-3);
  }
}


/* Styled popup error box */
.popup-content-wrapper {
  max-width: 600px;
  margin: 80px auto;
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: var(--sh-4);
  text-align: center;
}

.popup-content-wrapper .error-title {
  font-size: 48px;
  font-weight: 700;
  color: #2c2c6e;
  margin-bottom: var(--s-6);
}

.popup-content-wrapper .error-message {
  font-size: var(--t-4);
  color: #555555;
  margin-bottom: var(--s-9);
}

.popup-content-wrapper .button, .popup-content-wrapper .btn-primary{
  display: inline-block;
  padding: var(--s-5) var(--s-10);
  font-size: var(--t-3);
  background-color: #04696f;
  color: #ffffff;
  border-radius: var(--r-3);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.popup-content-wrapper .button:hover, .popup-content-wrapper .btn-primary:hover{
  background-color: #034b4f;
}

/* Optional: body background for popup mode */
.popup-body {
  background-color: #e5e5e5;
}

/* ---------------------------------------------------------------------------
   Ticket list UX additions: privacy badge, collapsible filter (button +
   chips + sliding panel + date presets), submit-button loading state.
   --------------------------------------------------------------------------- */

/* Privacy badge — colored chip showing whether the ticket is public/private. */
/* Privacy pill — Linear-style neutral pill with a colored dot indicator.
   Same on every page (list view + ticket detail view). The dot is the
   semantic signal: teal for Public, brand-orange + gentle pulse for
   Private. Animation respects prefers-reduced-motion. */
.privacy {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-6);
  border-radius: var(--r-pill);
  font-size: var(--t-1);
  font-weight: 600;
  /* Was uppercase + 0.4px tracking: the only pill in that row that shouted,
     while Closed / Met beside it are sentence case. It matters more now — this
     pill carries a department NAME, and "PEOPLE & CULTURE" reads broken. */
  letter-spacing: 0.1px;
  font-family: var(--font-b);
  background: #fff;
  color: var(--black);
  border: 1.5px solid var(--gray-light2);
  white-space: nowrap;
  vertical-align: middle;
  line-height: var(--lh-1);
}
.privacy::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  background: var(--gray);
}
.privacy-public::before {
  background: var(--primary-color);
}
/* Multi-department: the third tier shipped in the read gates with no rule here,
   so a 'department' ticket rendered an unstyled grey dot. Blue rather than a
   second teal: teal already means "open to everyone", and the pulse stays
   reserved for private, the most closed state. */
.privacy-department::before {
  background: var(--blue);
}
.privacy-private::before {
  background: #E26E00;
  box-shadow: var(--sh-1);
  animation: privacy-pulse 1.8s ease infinite;
}
@keyframes privacy-pulse {
  0%   { box-shadow: var(--sh-1); }
  70%  { box-shadow: var(--sh-focus); }
  100% { box-shadow: var(--sh-1); }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-private::before { animation: none; }
}

/* Larger variant for the ticket detail header — Poppins, mixed case,
   button-sized. Matches the .btn-pill size in the approved v3 preview. */
.privacy.privacy-lg {
  gap: 7px;
  padding: var(--s-4) var(--s-9);
  font-size: var(--t-2);
  font-weight: 500;
  font-family: var(--font-h);
  text-transform: none;
  letter-spacing: normal;
}
.privacy.privacy-lg::before {
  width: 10px;
  height: 10px;
}
.privacy.privacy-lg.privacy-private::before {
  box-shadow: var(--sh-1);
  animation: privacy-pulse-lg 1.8s ease infinite;
}
@keyframes privacy-pulse-lg {
  0%   { box-shadow: var(--sh-1); }
  70%  { box-shadow: var(--sh-focus); }
  100% { box-shadow: var(--sh-1); }
}
@media (prefers-reduced-motion: reduce) {
  .privacy.privacy-lg.privacy-private::before { animation: none; }
}

/* Visual cue that a form submit button is in flight. The .is-loading class
   is added by the form-submit disabler in static/js/new.js. */
button.is-loading,
input[type="submit"].is-loading {
  opacity: 0.75;
  cursor: progress;
}

/* ---- Collapsible filter ---- */

/* Page title row: title on the left, Filter button on the right. */
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}

/* The "Filter" pill button in the page header. */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 18px;
  background: #fff;
  color: var(--primary-color, #04696F);
  border: 1.5px solid var(--primary-color, #04696F);
  border-radius: var(--r-pill);
  font-family: var(--font-h);
  font-weight: 500;
  font-size: var(--t-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-toggle:hover {
  background: rgba(4, 105, 111, 0.08);
}
.filter-toggle.is-open {
  background: var(--primary-color, #04696F);
  color: #fff;
}
.filter-toggle.is-open .filter-toggle__count {
  background: #fff;
  color: var(--primary-color, #04696F);
}
.filter-toggle__count {
  background: var(--primary-color, #04696F);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 1px var(--s-4);
  font-size: var(--t-1);
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.filter-toggle__count[hidden] {
  display: none;
}
.filter-toggle__chevron {
  transition: transform 0.2s ease;
}
.filter-toggle.is-open .filter-toggle__chevron {
  transform: rotate(180deg);
}

/* Applied filter chips row — visible whenever any filter is active. */
.applied-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  /* On ticket list pages, the chips row sits as a sibling under the
     filter bar and visually continues it: same white background, same
     side padding, top corners square, bottom rounded. A 1px divider
     keeps the structural split readable. */
  padding: var(--s-5) 18px;
  margin-top: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
}
.applied-chips__hint {
  font-family: var(--font-b);
  font-size: var(--t-1);
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-inline-end: var(--s-2);
}
/* When the chips row follows the filter bar, the bar's bottom corners
   become square so the two read as one capsule. :has() is supported
   across all evergreen browsers (Baseline 2023) — fine for a 2027 app. */
.filter-bar:has(+ .applied-chips) {
  border-radius: 12px 12px 0 0;
}
/* ===================================================================
   Filter bar — 2027 design (replaces .filter-panel).
   Compact pill buttons on a single row; each pill opens a popover with
   a search input + checkbox list. Auto-applies on change (debounced).
   =================================================================== */
.filter-bar {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding: var(--s-6) 18px; background: #fff;
  border-bottom: 1px solid var(--border);
  margin-top: var(--s-4);
  border-radius: var(--r-5);
  /* Collapsible — controlled by the Filter button in the page header.
     max-height + opacity transition gives a smooth slide effect.
     overflow is `visible` by default so popovers below pills can escape;
     only the collapsed state clips. JS adds a temporary inline
     `overflow: hidden` during the open animation so content doesn't
     stick out below the half-grown bar. */
  max-height: 400px; opacity: 1;
  transition: max-height .25s ease, opacity .2s ease, margin .2s ease, padding .2s ease;
}
.filter-bar.is-collapsed {
  overflow: hidden;
  max-height: 0; opacity: 0;
  padding-top: 0; padding-bottom: 0;
  margin-top: 0; border-bottom-width: 0;
}

/* Chips are tied to the bar's open state — visible only when bar is
   open. When the bar is collapsed, the page stays clean (the count
   badge on the Filter button carries the only filter-status signal).
   Subsequent-sibling combinator matches .applied-chips that comes
   after a collapsed .filter-bar inside the same .grey-block parent. */
.filter-bar.is-collapsed ~ .applied-chips { display: none; }
@media (prefers-reduced-motion: reduce) {
  .filter-bar { transition: none; }
}

/* Filter button in the page header — count badge top-right, chevron
   rotates when the bar is open. Reuses the .icon-pill geometry already
   defined for Views / Columns so the visual language stays consistent. */
.icon-pill__count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--primary-color); color: #fff;
  font-size: var(--t-1); font-weight: 700; line-height: var(--lh-1);
  border: 2px solid #fff;
}
.icon-pill.is-open .icon-pill__count {
  background: #fff; color: var(--primary-color); border-color: var(--primary-color);
}
.filter-bar__label {
  font-family: var(--font-b);
  font-size: var(--t-1); color: var(--gray); font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
  margin-inline-end: var(--s-2);
}
.filter-bar__spacer { flex: 1; }
.filter-bar__btn {
  background: none; border: 0; color: var(--primary-color);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; cursor: pointer;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 5px;
}
.filter-bar__btn:hover { background: rgba(4,105,111,.08); }
.filter-bar__btn.is-copied {
  background: var(--green-light);
  color: var(--primary-color);
}
.filter-bar__btn.is-copied svg {
  animation: copy-check-pop .3s ease;
}
@keyframes copy-check-pop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.f-pill {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-6); border-radius: var(--r-pill);
  background: #fff; border: 1.5px solid #d8d8d8;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 500;
  color: var(--black); cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
  position: relative;
  user-select: none;
}
.f-pill:hover { border-color: var(--primary-color); }
.f-pill.is-active {
  background: var(--green-light); color: var(--primary-color);
  border-color: var(--primary-color);
}
.f-pill.is-open {
  border-color: var(--primary-color);
  box-shadow: var(--sh-focus);
}
.f-pill__label { color: var(--gray); font-weight: 400; }
.f-pill.is-active .f-pill__label { color: var(--primary-color); font-weight: 600; }
.f-pill__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--primary-color); color: #fff;
  font-size: var(--t-1); font-weight: 700; line-height: var(--lh-1);
}
.f-pill__chevron {
  color: var(--gray);
  transition: transform .15s ease, color .15s ease;
}
.f-pill.is-active .f-pill__chevron { color: var(--primary-color); }
.f-pill.is-open .f-pill__chevron { transform: rotate(180deg); color: var(--primary-color); }

.f-pop {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #d8d8d8; border-radius: var(--r-5);
  box-shadow: var(--sh-3);
  min-width: 260px; max-width: 320px; padding: var(--s-4) 0;
  z-index: 30; display: none;
}
.f-pill.is-open .f-pop { display: block; }
.f-pop__search {
  display: block;
  margin: var(--s-2) var(--s-6) var(--s-4); padding: var(--s-4) var(--s-5);
  border: 1.5px solid #e0e0e0; border-radius: var(--r-3);
  font-family: var(--font-b); font-size: var(--t-2);
  width: calc(100% - 24px);
  box-sizing: border-box;
}
.f-pop__search:focus {
  outline: 0; border-color: var(--primary-color);
  box-shadow: var(--sh-focus);
}
.f-pop__list { max-height: 240px; overflow-y: auto; }
.f-pop__opt {
  display: flex; align-items: center; gap: var(--s-4);
  padding: 7px var(--s-7); cursor: pointer; font-size: var(--t-2);
  font-family: var(--font-b); color: var(--black);
}
.f-pop__opt:hover { background: var(--light-background); }
.f-pop__opt input[type="checkbox"],
.f-pop__opt input[type="radio"] {
  width: 14px; height: 14px; accent-color: var(--primary-color);
  pointer-events: auto;
}
.f-pop__opt.is-checked { color: var(--primary-color); font-weight: 500; }
.f-pop__opt span { user-select: none; }
.f-pop__footer {
  margin-top: var(--s-3); padding: var(--s-4) var(--s-7) var(--s-2);
  border-top: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: center;
}
.f-pop__footer button {
  background: none; border: 0; color: var(--primary-color);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; cursor: pointer;
  padding: var(--s-2) 0;
}
.f-pop__footer button:hover { text-decoration: underline; }
.f-pop__count { font-size: var(--t-1); color: var(--gray); font-family: var(--font-b); }
.f-pop__field { padding: var(--s-2) var(--s-7) var(--s-4); }
.f-pop__label {
  display: block; font-size: var(--t-1); color: var(--gray);
  margin-bottom: var(--s-2); font-family: var(--font-h); font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
}
.f-pop__field input[type="datetime-local"] {
  width: 100%; padding: 7px var(--s-5);
  border: 1.5px solid #e0e0e0; border-radius: var(--r-3);
  font-family: var(--font-b); font-size: var(--t-2);
}
.f-pop__field input[type="datetime-local"]:focus {
  outline: 0; border-color: var(--primary-color);
  box-shadow: var(--sh-focus);
}
.f-pop__presets {
  padding: var(--s-2) var(--s-7) var(--s-2); display: flex; gap: var(--s-3); flex-wrap: wrap;
}
.f-pop__presets button {
  background: #f0f0f0; border: 0; padding: var(--s-2) var(--s-5); border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 500;
  color: var(--black); cursor: pointer;
}
.f-pop__presets button:hover { background: var(--gray-light2); }
.f-pop__presets button.is-active { background: var(--green-light); color: var(--primary-color); }
.f-pill--date { padding: var(--s-3) var(--s-7); }

/* Custom multi-select widget — replaces Select2 for multi-value filters
   (status, severity, group, assignee). Native <select multiple> stays
   in the DOM for form submission; this is the visible wrapper. */
.multi-select {
  position: relative;
  font-family: var(--font-b);
}
.multi-select__input {
  min-height: 38px; padding-block: 5px; padding-inline: var(--s-5) var(--s-11);
  border: 1.5px solid #d8d8d8; border-radius: var(--r-pill);
  display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center;
  cursor: text; background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.multi-select__input:focus-within,
.multi-select.is-open .multi-select__input {
  border-color: var(--primary-color);
  box-shadow: var(--sh-focus);
}
.multi-select__input::after {
  content: '▾'; position: absolute; inset-inline-end: 14px; top: 50%;
  transform: translateY(-50%); color: var(--gray); font-size: var(--t-1);
  pointer-events: none;
}
.multi-select__placeholder {
  color: var(--gray); font-size: var(--t-2); padding: var(--s-2) var(--s-3);
}
.multi-select__pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding-block: 3px;
  padding-inline: var(--s-5) var(--s-2);
  background: var(--green-light); color: var(--primary-color);
  border-radius: var(--r-pill); font-size: var(--t-1); font-weight: 500;
}
.multi-select__pill button {
  background: transparent; border: 0; padding: 0 5px;
  color: var(--primary-color); cursor: pointer; font-size: var(--t-2);
  line-height: var(--lh-1); border-radius: 50%;
}
.multi-select__pill button:hover { background: rgba(4, 105, 111, .15); }
.multi-select__search {
  border: 0; outline: 0; padding: var(--s-2) var(--s-3); flex: 1; min-width: 80px;
  font-size: var(--t-2); font-family: inherit; background: transparent;
}
.multi-select__menu {
  position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #d8d8d8; border-radius: var(--r-4);
  box-shadow: var(--sh-3);
  max-height: 260px; overflow-y: auto;
  display: none; z-index: 30;
}
.multi-select.is-open .multi-select__menu { display: block; }
.multi-select__option {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-7); cursor: pointer; font-size: var(--t-2);
  color: var(--black);
}
.multi-select__option:hover { background: var(--light-background); }
.multi-select__option input[type="checkbox"] {
  width: 14px; height: 14px; accent-color: var(--primary-color);
  cursor: pointer; pointer-events: none;
}
.multi-select__option.is-selected {
  background: rgba(4, 105, 111, .04);
  color: var(--primary-color); font-weight: 500;
}
.multi-select__menu-empty {
  padding: var(--s-6) var(--s-7); color: var(--gray); font-size: var(--t-1); font-style: italic;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-2);
  padding-inline: var(--s-6) var(--s-4);
  background: var(--green-light, #C9ECEC);
  color: var(--primary-color, #04696F);
  border-radius: var(--r-pill);
  font-family: var(--font-b);
  font-size: var(--t-1);
  font-weight: 500;
}
.chip__remove {
  background: transparent;
  border: 0;
  color: var(--primary-color, #04696F);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: var(--t-3);
  line-height: var(--lh-1);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  opacity: .7;
  transition: opacity .12s ease, background .12s ease;
}
.chip__remove:hover {
  opacity: 1;
  background: rgba(4, 105, 111, 0.12);
}
.clear-all {
  margin-inline-start: auto;
  background: none;
  border: none;
  color: var(--primary-color, #04696F);
  font-family: var(--font-h);
  font-size: var(--t-1);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* The collapsible panel itself — animated max-height for the slide effect. */
.filter-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, padding 0.25s ease, margin-top 0.25s ease;
  background: #f8fafa;
  border: 1px solid #d8e3e3;
  border-radius: var(--r-3);
  padding: 0 18px;
  margin-top: 0;
}
.filter-panel.is-open {
  max-height: 800px;
  padding: 18px;
  margin-top: var(--s-6);
}
.filter-panel__form {
  margin: 0;
}
.filter-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-8);
}
.filter-panel__field {
  display: flex;
  flex-direction: column;
}
.filter-panel__field label {
  font-size: var(--t-1);
  color: #707070;
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.filter-panel__field input,
.filter-panel__field select {
  font-family: var(--font-b);
  font-size: var(--t-3);
  padding: var(--s-4) var(--s-6);
  border: 1px solid #d8d8d8;
  border-radius: var(--r-3);
  background: #fff;
  min-height: 38px;
  color: #1f2424;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filter-panel__field input:focus,
.filter-panel__field select:focus {
  outline: 0;
  border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}

/* Date preset pills. */
.filter-panel__presets {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-2);
}
.preset-btn {
  background: #fff;
  color: #1f2424;
  border: 1px solid #d8d8d8;
  padding: 5px var(--s-6);
  border-radius: var(--r-pill);
  font-size: var(--t-1);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-h);
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.preset-btn:hover {
  border-color: var(--primary-color, #04696F);
  color: var(--primary-color, #04696F);
}
.preset-btn.is-active {
  background: var(--primary-color, #04696F);
  color: #fff;
  border-color: var(--primary-color, #04696F);
}

/* Apply / Reset actions. */
.filter-panel__actions {
  display: flex;
  gap: var(--s-5);
  justify-content: flex-end;
  grid-column: 1 / -1;
  padding-top: var(--s-7);
  margin-top: var(--s-3);
  border-top: 1px solid #d8e3e3;
}
.btn-primary:not(.btn),
.btn-secondary:not(.btn) {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-h);
  font-weight: 500;
  font-size: var(--t-2);
  cursor: pointer;
}
.btn-primary:not(.btn) {
  background: var(--primary-color, #04696F);
  color: #fff;
  border: 0;
}
.btn-primary:not(.btn):hover {
  background: #045358;
}
.btn-secondary:not(.btn) {
  background: #fff;
  color: var(--primary-color, #04696F);
  border: 1.5px solid var(--primary-color, #04696F);
}
.btn-secondary:not(.btn):hover {
  background: rgba(4, 105, 111, 0.08);
}

/* Mobile — single column inputs, full-width stacked actions. */
@media (max-width: 720px) {
  .filter-panel.is-open {
    padding: var(--s-8);
  }
  .filter-panel__grid {
    grid-template-columns: 1fr;
  }
  .filter-panel__actions {
    flex-direction: column-reverse;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   Ticket list — chevron expand, density toggle, columns menu, detail pane,
   inline comment form, resolve modal, toast.
   --------------------------------------------------------------------------- */

/* Header row holds Density + Columns + Filter together. */
.page-header-actions {
  display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap;
}

/* Generic pill button used for Columns + Filter. */
.icon-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 18px; background: #fff; color: var(--primary-color, #04696F);
  border: 1.5px solid var(--primary-color, #04696F); border-radius: var(--r-pill);
  font-family: var(--font-h); font-weight: 500; font-size: var(--t-2);
  cursor: pointer; transition: background .12s ease, color .12s ease;
}
.icon-pill:hover { background: rgba(4,105,111,0.08); }
.icon-pill.is-open { background: var(--primary-color, #04696F); color: #fff; }
.icon-pill__chevron { transition: transform .2s ease; }
.icon-pill.is-open .icon-pill__chevron { transform: rotate(180deg); }

/* Columns menu — dropdown panel anchored to the Columns button. */
.columns-wrap { position: relative; }
.columns-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #d8d8d8; border-radius: var(--r-5);
  box-shadow: var(--sh-3);
  min-width: 240px; padding: var(--s-4) 0; z-index: 20;
  display: none;
}
.columns-menu.is-open { display: block; }
.columns-menu__header {
  padding: var(--s-4) var(--s-8) var(--s-3); font-size: var(--t-1); text-transform: uppercase;
  color: #707070; letter-spacing: 0.4px; font-weight: 600;
  border-bottom: 1px solid #d8d8d8; margin-bottom: var(--s-2);
}
.columns-menu__item {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-8); cursor: pointer; font-size: var(--t-2);
  color: #1f2424; transition: background .1s ease;
  font-family: var(--font-b);
}
.columns-menu__item:hover { background: rgba(4,105,111,0.08); }
.columns-menu__item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary-color, #04696F); cursor: pointer;
}
.columns-menu__item.is-locked { color: #707070; cursor: not-allowed; }
.columns-menu__item.is-locked input { opacity: 0.4; pointer-events: none; }
.columns-menu__footer {
  border-top: 1px solid #d8d8d8; padding: var(--s-4) var(--s-8) var(--s-2);
  display: flex; justify-content: space-between;
}
.columns-menu__footer button {
  background: none; border: 0; color: var(--primary-color, #04696F);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  cursor: pointer; padding: var(--s-2) 0;
}
.columns-menu__footer button:hover { text-decoration: underline; }

/* Flexible / auto-sized columns. table-layout: auto sizes each column
   to the widest cell in that column across all visible rows. min-width
   per column prevents collapse below useful sizes; Title is the only
   column with a max-width (560px) so very long titles still clamp at a
   sane width rather than blowing the row out. Headers and cells default
   to white-space: nowrap so a single short cell can let the column
   shrink — only the Title cell wraps. */
.tickets-table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}
.tickets-table th.col-select,    .tickets-table td.col-select    { width: 38px; min-width: 38px; text-align: center; }
.tickets-table td.col-select input, .tickets-table th.col-select input { width: 16px; height: 16px; accent-color: var(--primary-color, #04696F); cursor: pointer; vertical-align: middle; }
.tickets-table tr.is-selected > td { background: #EAF3F3; }

/* Bulk action bar — floats at the bottom while rows are selected. */
.bulk-bar {
  position: sticky; bottom: 18px; z-index: 40; margin: var(--s-7) auto 0; width: max-content; max-width: 96%;
  display: flex; align-items: center; gap: var(--s-3); background: var(--primary-color, #04696F); color: #fff;
  border-radius: var(--r-pill); padding-block: var(--s-4); padding-inline: 18px var(--s-5); box-shadow: var(--sh-3);
  font-family: var(--font-h); font-size: var(--t-2);
}
.bulk-bar[hidden] { display: none; }
.bulk-bar.is-busy { pointer-events: none; }
/* While updating: swap the count + actions for a clear spinner state. */
.bulk-bar__loading { display: none; align-items: center; gap: 9px; white-space: nowrap; }
.bulk-bar.is-busy .bulk-bar__count,
.bulk-bar.is-busy .bulk-bar__acts,
.bulk-bar.is-busy .bulk-bar__clear { display: none; }
.bulk-bar.is-busy .bulk-bar__loading { display: inline-flex; }
.bulk-spin {
  width: 15px; height: 15px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: bulk-spin .7s linear infinite;
}
@keyframes bulk-spin { to { transform: rotate(360deg); } }
.bulk-bar__count { font-weight: 500; margin-inline-end: var(--s-4); white-space: nowrap; }
.bulk-bar__count b { font-weight: 700; }
.bulk-bar__acts { display: flex; align-items: center; gap: var(--s-3); }
.bulk-act-wrap { position: relative; }
.bulk-act {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.16);
  border: none; color: #fff; border-radius: var(--r-pill); padding: 7px var(--s-7); font-family: var(--font-h);
  font-size: var(--t-2); cursor: pointer;
}
.bulk-act:hover { background: rgba(255,255,255,.28); }
.bulk-bar__clear {
  background: none; border: none; color: #cfeceb; font-family: var(--font-h); font-size: var(--t-2);
  cursor: pointer; padding: 7px var(--s-6);
}
.bulk-bar__clear:hover { color: #fff; }
/* Popovers open ABOVE the bar (it sits at the bottom of the viewport). */
.bulk-pop {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; min-width: 220px; max-width: 300px;
  max-height: 320px; overflow: auto; background: #fff; color: #1a1a1a; border: 1px solid #E4E4E4;
  border-radius: var(--r-5); box-shadow: var(--sh-4); padding: 7px; font-family: var(--font-b);
}
.bulk-pop[hidden] { display: none; }
.bulk-pop__search {
  width: 100%; box-sizing: border-box; border: 1px solid #E0E0E0; border-radius: var(--r-3);
  padding: 7px 9px; font-size: var(--t-2); margin-bottom: var(--s-3); font-family: var(--font-b);
}
.bulk-pop__search:focus { outline: none; border-color: var(--primary-color, #04696F); }
.bulk-pop__list { display: flex; flex-direction: column; }
.bulk-opt {
  display: flex; align-items: center; gap: 9px; text-align: start; width: 100%;
  background: none; border: none; padding: 7px var(--s-5); border-radius: var(--r-3);
  font-size: var(--t-3); cursor: pointer; font-family: var(--font-b); color: #1a1a1a;
}
.bulk-opt:hover { background: #F0F5F5; }
.bulk-opt > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-opt__av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
/* while the shared assignees load: rows the shape of the real ones (markup in _list_bulkbar.html) */
.bulk-opt--sk { pointer-events: none; }
.bulk-opt--sk .av { display: block; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.bulk-opt--sk .ln { display: block; height: 12px; border-radius: var(--r-pill); }
/* the away pill keeps its words; the name gives way first */
.bulk-opt > .ooo-pill { flex: none; margin-inline-start: 0; }
.bulk-pop__hint { padding: var(--s-5); font-size: var(--t-2); color: var(--gray, #828282); font-family: var(--font-b); }
/* "you can't reassign T100001. Only its team reassigns." — before a pick, not after */
.bulk-pop__note { margin: var(--s-2) var(--s-2) var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-3); background: #FFF8EB; color: #7A4B06; font-family: var(--font-b); font-size: var(--t-1); line-height: 1.45; }

.tickets-table th.col-expand,    .tickets-table td.col-expand    { width: 36px; min-width: 36px; }
.tickets-table th.col-severity,  .tickets-table td.col-severity  { min-width: 70px; }
.tickets-table th.col-ticketno,  .tickets-table td.col-ticketno  { min-width: 85px; }
.tickets-table th.col-title,     .tickets-table td.col-title     { min-width: 260px; max-width: 560px; white-space: normal; }
.tickets-table th.col-status,    .tickets-table td.col-status    { min-width: 90px; }
.tickets-table th.col-sla,       .tickets-table td.col-sla       { min-width: 220px; }
.tickets-table th.col-age,       .tickets-table td.col-age       { min-width: 70px; }
.tickets-table th.col-assignee,  .tickets-table td.col-assignee  { min-width: 130px; }
.tickets-table th.col-group,     .tickets-table td.col-group     { min-width: 90px; }
.tickets-table th.col-privacy,   .tickets-table td.col-privacy   { min-width: 90px; }
.tickets-table th.col-created,   .tickets-table td.col-created   { min-width: 140px; }
.tickets-table th.col-updated,   .tickets-table td.col-updated   { min-width: 140px; }
.tickets-table th.col-requester, .tickets-table td.col-requester { min-width: 100px; }

/* Title cell — 2-line clamp on the anchor so a 200-char title doesn't
   blow up the row. Full title is in the title= attr (hover tooltip) and
   on the detail page. Cell stays at vertical-align: middle (table
   default) so short 1-line titles centre against the SLA stack.
   Brand-forward style: teal + bold, no underline, underline on hover. */
.tickets-table td.col-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  color: var(--primary-color, #04696F);
  text-decoration: none;
  font-weight: 600;
  transition: color .12s ease;
}
.tickets-table td.col-title a:hover {
  text-decoration: underline;
  color: var(--primary-dark, #034E54);
}

/* Ticket # cell — link still navigates; a small copy icon reveals on
   row hover so users can copy the ticket number with one click without
   losing the click-to-navigate muscle memory. Icon morphs to a green
   checkmark + tiny bounce on copy (Animation B). Respects
   prefers-reduced-motion. */
.ticketno-group {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.ticketno-link {
  color: var(--primary-color, #04696F);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: text-decoration .12s ease;
}
.ticketno-link:hover { text-decoration: underline; }
.copy-btn {
  background: transparent;
  border: 0;
  padding: var(--s-2);
  border-radius: var(--r-1);
  cursor: pointer;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 22px;
  height: 22px;
  opacity: 0;
  transition: opacity .12s ease, background .12s ease, color .12s ease,
              transform .15s cubic-bezier(.34, 1.56, .64, 1);
}
.copy-btn:hover {
  background: var(--gray-light2, #ebebeb);
  color: var(--primary-color, #04696F);
}
.copy-btn:focus-visible {
  opacity: 1;
  outline: 2px solid var(--primary-color, #04696F);
  outline-offset: 1px;
}
.ticket-row:hover .copy-btn,
.ticketno-group:hover .copy-btn { opacity: 1; }
.copy-btn__icon-default,
.copy-btn__icon-success {
  position: absolute;
  display: inline-flex;
  transition: opacity .18s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.copy-btn__icon-success {
  opacity: 0;
  transform: scale(0.6);
  color: var(--primary-color, #04696F);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}
.copy-btn.is-copied {
  transform: scale(1.08);
  opacity: 1;
}
.copy-btn.is-copied .copy-btn__icon-default {
  opacity: 0;
  transform: scale(0.6);
}
.copy-btn.is-copied .copy-btn__icon-success {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .copy-btn,
  .copy-btn__icon-default,
  .copy-btn__icon-success { transition: opacity .12s ease; }
  .copy-btn.is-copied { transform: none; }
}
@media print {
  .copy-btn { display: none; }
}

/* (The dark bottom-center .copy-toast was removed with the unified
   toast system — the copy button's icon morph to a checkmark is the
   confirmation, per the approved toast audit.) */

/* Cells: tight 14px padding (overrides the 32px base used elsewhere),
   single-line truncation for data, headers never truncate. */
.tickets-table th,
.tickets-table td {
  padding: var(--s-7) var(--s-7);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tickets-table th:first-child,
.tickets-table td:first-child { padding-inline-start: var(--s-7); }
.tickets-table th:last-child,
.tickets-table td:last-child { padding-inline-end: var(--s-7); }
.tickets-table th {
  overflow: visible;
  text-overflow: clip;
}
.tickets-table th.col-title,
.tickets-table td.col-title { white-space: normal; }
.tickets-table th.col-severity,
.tickets-table td.col-severity,
.tickets-table th.col-status,
.tickets-table td.col-status,
.tickets-table th.col-privacy,
.tickets-table td.col-privacy,
.tickets-table th.col-age,
.tickets-table td.col-age { text-align: center; }

/* Sticky first column (chevron) — so row identity stays visible while the
   user scrolls horizontally. */
.tickets-table th.col-expand,
.tickets-table td.col-expand {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
}
.tickets-table thead th.col-expand { background: var(--light-background); }
.tickets-table tbody td.col-expand { background: var(--white); }
.tickets-table tbody tr.ticket-row.is-expanded td.col-expand { background: #f6fafa; }

/* Real-time updates — live connection indicator + row-flash animation. */
.live-badge {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 3px var(--s-5); border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase;
  margin-inline-start: var(--s-5); vertical-align: middle;
}
.live-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
}
.live-badge[data-state="off"]       { background: var(--gray-light2); color: var(--gray); }
.live-badge[data-state="off"]::before { background: var(--gray); }
.live-badge[data-state="reconnect"] { background: var(--orange-light); color: var(--orange); }
.live-badge[data-state="reconnect"]::before { background: var(--orange); animation: live-blink 1s linear infinite; }
.live-badge[data-state="live"]      { background: var(--green-light); color: var(--green); }
.live-badge[data-state="live"]::before {
  background: var(--primary-color);
  box-shadow: var(--sh-1);
  animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: var(--sh-1); }
  70%  { box-shadow: var(--sh-focus); }
  100% { box-shadow: var(--sh-1); }
}
@keyframes live-blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* Cell flash when a real-time update touches it. */
.rt-flash { animation: rt-flash 1.2s ease; }
@keyframes rt-flash {
  0%   { background: rgba(4, 105, 111, 0.18); }
  100% { background: transparent; }
}

/* Views pill in the page header — dropdown of saved views + Save action.
   Mirrors .columns-wrap / .columns-menu so the geometry stays consistent. */
.views-wrap { position: relative; }
.views-menu { min-width: 300px; }
.views-menu__row {
  display: flex; align-items: stretch;
  /* The link fills the row; the delete button sits at the right edge.
     When the row's the active view, the whole strip gets the highlight. */
}
.views-menu__row.is-active {
  background: rgba(4,105,111,0.08);
}
.views-menu__row.is-active .views-menu__item { color: var(--primary-color); font-weight: 500; }
.views-menu__row:hover { background: var(--light-background); }
.views-menu__item {
  text-decoration: none; color: var(--black);
  display: flex; align-items: center; gap: var(--s-4);
  padding: 9px var(--s-8); font-size: var(--t-2);
  font-family: var(--font-b);
  flex: 1; min-width: 0;
}
.views-menu__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.views-menu__delete {
  background: none; border: 0; padding: 0 var(--s-7);
  color: var(--gray); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-inline-start: 1px solid transparent;
  transition: color .12s ease, background .12s ease;
  opacity: 0;
}
.views-menu__row:hover .views-menu__delete,
.views-menu__row:focus-within .views-menu__delete { opacity: 1; }
.views-menu__delete:hover { color: #b42323; background: rgba(180,35,35,0.06); }
.views-menu__empty {
  padding: var(--s-6) var(--s-8); color: var(--gray); font-size: var(--t-1);
  font-family: var(--font-b); line-height: var(--lh-3);
  background: var(--light-background); margin: var(--s-2) var(--s-4);
  border-radius: var(--r-2);
}
.views-menu__empty strong { color: var(--primary-color); }
/* Section labels inside the Views dropdown — "This page" / "Pinned
   elsewhere" — so the route-scoped views and cross-page pinned views
   read as distinct groups and can't contradict the sidebar. */
.views-menu__subhead {
  padding: var(--s-4) var(--s-8) var(--s-2); font-size: var(--t-1); text-transform: uppercase;
  letter-spacing: .4px; color: var(--gray); font-weight: 700;
  font-family: var(--font-h);
}
/* A "Pinned elsewhere" row stacks the name over a muted "from <page>"
   hint, since clicking it navigates to that other page. */
.views-menu__item--col { flex-direction: column; align-items: flex-start; gap: 1px; }
.views-menu__nm-row { display: flex; align-items: center; gap: var(--s-4); width: 100%; min-width: 0; }
.views-menu__from {
  font-size: var(--t-1); color: var(--gray);
  font-family: var(--font-b);
}

/* Clear link in the footer — same pill geometry as btn-secondary so it
   matches the rest of the app instead of looking like raw text. */
.views-menu__clear {
  display: inline-flex; align-items: center;
  padding: var(--s-3) var(--s-7); border-radius: var(--r-pill);
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color); background: #fff;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 500;
  text-decoration: none;
  transition: background .12s ease;
}
.views-menu__clear:hover { background: rgba(4,105,111,0.08); }

/* Pin SVG icon — replaces the 📌 emoji which renders inconsistently
   across platforms and looked off-brand. */
.saved-view__pin {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-color);
}

/* Pinned saved views inside the main sidebar <ul class="menu">.
   The wrapping <li class="menu__section-title"> renders a small group
   header; the actual view items use .menu__saved-view and inherit the
   queue-item geometry from .menu li a. */
.menu li.menu__section-title {
  font-size: var(--t-1); text-transform: uppercase; letter-spacing: .6px;
  color: var(--gray); padding: 18px 18px var(--s-3);
  font-weight: 600; font-family: var(--font-h);
  pointer-events: none;
  /* Section header isn't a link — no hover/cursor. */
}
.menu li.menu__saved-view a {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
}
.menu li.menu__saved-view .saved-view__name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.saved-view__tag {
  font-size: var(--t-1); background: var(--primary-color); color: #fff;
  padding: 1px var(--s-3); border-radius: var(--r-1); font-weight: 700; letter-spacing: .3px;
  font-family: var(--font-h);
}
.saved-view__pin { font-size: var(--t-1); opacity: .7; }

.save-view-btn {
  background: none; border: 0; color: var(--primary-color);
  cursor: pointer; padding: var(--s-2) 0; margin-inline-start: auto;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.save-view-btn:hover { text-decoration: underline; }

.view-pill-row { padding: var(--s-3) var(--s-9) var(--s-5); }
.view-pill {
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding-block: 5px;
  padding-inline: var(--s-5) var(--s-6); background: var(--primary-color); color: #fff;
  border-radius: var(--r-pill); font-family: var(--font-h); font-size: var(--t-1); font-weight: 500;
}
.view-pill strong { font-weight: 600; }
.view-pill__close {
  background: none; border: 0; color: inherit; text-decoration: none;
  cursor: pointer; font-size: var(--t-4); line-height: var(--lh-1); padding-block: 0 1px; padding-inline: var(--s-2) 0;
}
.view-pill__close:hover { opacity: .85; }

/* Save view modal — Includes card listing what's being captured. */
.includes-card {
  background: var(--light-background); border-radius: var(--r-4);
  padding: var(--s-6) var(--s-7); margin-bottom: var(--s-7);
  font-family: var(--font-b); font-size: var(--t-1); color: var(--gray);
}
.includes-card__title {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-1);
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--primary-color); margin-bottom: var(--s-4);
}
.includes-card__row {
  display: flex; align-items: center; gap: var(--s-3); padding: 3px 0;
}
.includes-card__row:empty { display: none; }
.includes-card__row svg { color: var(--primary-color); flex-shrink: 0; }

/* Drift indicator — appears next to the active-view pill when the user
   changes columns or filters after loading a view. The "Update view"
   action saves the new state back; "Save as new" creates a copy. */
.drifted-mark {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); margin-inline-start: var(--s-3); vertical-align: middle;
  box-shadow: var(--sh-1);
  animation: drifted-pulse 1.6s ease infinite;
}
@keyframes drifted-pulse {
  0%   { box-shadow: var(--sh-1); }
  70%  { box-shadow: var(--sh-focus); }
  100% { box-shadow: var(--sh-1); }
}
.drift-banner {
  background: var(--orange-light); color: var(--orange);
  font-family: var(--font-b); font-size: var(--t-1);
  padding: var(--s-5) var(--s-7);
  display: flex; align-items: center; gap: var(--s-5);
  border-radius: var(--r-4); margin-top: var(--s-4);
}
.drift-banner svg { color: var(--orange); flex-shrink: 0; }
.drift-banner button {
  background: var(--orange); color: #fff; border: 0;
  padding: 5px var(--s-6); border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  cursor: pointer; margin-inline-start: auto;
}
.drift-banner button.alt {
  background: #fff; color: var(--orange);
  border: 1.5px solid var(--orange); margin-inline-start: var(--s-3);
}
.drift-banner button:hover { filter: brightness(.95); }

/* Compact variant — sits inline in the title row next to the LIVE badge.
   Same height/letterform geometry as .live-badge so the two badges
   align cleanly side-by-side. Saves the dedicated .view-pill-row's
   vertical real estate. */
.view-pill--compact {
  display: inline-flex; align-items: center; gap: 5px;
  padding-block: 3px;
  padding-inline: 9px var(--s-3);
  background: var(--primary-color); color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase;
  margin-inline-start: var(--s-3); vertical-align: middle;
}
.view-pill--compact strong {
  font-weight: 700; text-transform: none;
  letter-spacing: 0; font-size: var(--t-1);
}
.view-pill--compact .view-pill__close {
  font-size: var(--t-2); opacity: .85;
  padding-block: 0 1px;
  padding-inline: var(--s-1) 0;
  display: inline-flex; align-items: center;
}
.view-pill--compact .view-pill__close:hover { opacity: 1; }

/* Drag-to-reorder column headers. Non-locked headers get a grab cursor;
   locked ones (expand chevron, title) get a small lock affordance. */
.tickets-table thead th[draggable="true"] {
  cursor: grab;
  user-select: none;
  transition: background-color .12s ease;
}
.tickets-table thead th[draggable="true"]:hover {
  background-color: rgba(4, 105, 111, 0.06);
}
.tickets-table thead th.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.tickets-table thead th.is-locked {
  cursor: default;
  /* No lock-icon ::before — the cursor + lack of draggable affordance
     is enough. Lock icon read as off-brand. */
}
.tickets-table thead th.drop-before {
  box-shadow: inset 3px 0 0 var(--primary-color);
}
.tickets-table thead th.drop-after {
  box-shadow: inset -3px 0 0 var(--primary-color);
}

/* Status pill rendered as a <button> for the inline picker — strip the
   default browser button border so it looks identical to the read-only
   <span> variant. */
button.status {
  border: 0;
  font: inherit;
  font-family: var(--font-b);
  font-size: var(--t-3);
  cursor: pointer;
  transition: filter .12s ease;
}
button.status:hover { filter: brightness(.96); }
button.status:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Status popover — anchored to the clicked pill via inline top/left.
   position: fixed so the coordinates from getBoundingClientRect() land
   exactly on the pill, regardless of any positioned ancestors in the
   layout chain. JS closes the popover on scroll so it doesn't float
   away from its anchor when the user scrolls the page. */
.status-popover {
  position: fixed;
  background: #fff; border: 1px solid #d8d8d8;
  border-radius: var(--r-4); box-shadow: var(--sh-3);
  min-width: 220px; padding: var(--s-3) 0; z-index: 50;
  font-family: var(--font-b);
}
.status-popover[hidden] { display: none; }
.status-popover__option {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-7); cursor: pointer; font-size: var(--t-3);
  justify-content: space-between;
}
.status-popover__option:hover { background: var(--light-background); }
.status-popover__option .status { cursor: default; pointer-events: none; }
.status-popover__option.is-current .check { color: var(--primary-color); font-weight: 700; }
/* slice 5b, "Ask for a note": a request-page window with one field, and the comment box's switch */
.vt-modal-v2--note .note-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.vt-modal-v2--note .note-h label { font: inherit; color: inherit; margin: 0; }
.vt-modal-v2--note .vm-area { min-height: 108px; }
.vt-modal-v2--note .vm-area.is-wrong, .note-modal textarea.is-wrong { border-color: var(--red, #C0392B); box-shadow: 0 0 0 1px var(--red, #C0392B); }
.vt-modal-v2--note .note-problem, .note-modal .note-problem { display: block; color: var(--red, #B42323); font-size: var(--t-1); font-family: var(--font-b); }
.vt-modal-v2--note .ucomp-mode-switch button[disabled], .note-modal .ucomp-mode-switch button[disabled] { opacity: .45; cursor: not-allowed; }
/* the list's window (.modal, as Set Pending) */
.note-modal .note-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-3); }
.note-modal .note-h label { margin: 0; }
.note-modal .note-hint { display: block; margin-top: var(--s-2); font-size: var(--t-1); color: var(--gray); font-family: var(--font-b); }
.note-modal.is-locked .modal__body, .note-modal.is-locked .modal__header { filter: blur(1.5px); opacity: .75; pointer-events: none; }
.note-modal.is-locked .btn-secondary { opacity: .6; pointer-events: none; }
/* D120 C: the workflow lets nothing follow this status here */
.status-popover__note { padding: var(--s-3) var(--s-7) var(--s-2); font-size: var(--t-2); color: var(--gray); max-width: 260px; }
.status-popover__option .modal-hint {
  font-size: var(--t-1); color: var(--gray); background: var(--gray-light2);
  padding: 1px var(--s-3); border-radius: var(--r-1);
}

/* Expander column + chevron. */
.col-expand { padding-inline-end: 0; }
.expander-btn {
  width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer;
  padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-1); color: #707070;
  transition: background .12s ease, color .12s ease;
}
.expander-btn:hover { background: #eee; color: #1f2424; }
.expander-btn:focus-visible {
  outline: 2px solid var(--primary-color, #04696F); outline-offset: 1px;
}
.expander-btn svg { transition: transform .2s ease; }
.ticket-row.is-expanded .expander-btn svg { transform: rotate(90deg); }
.ticket-row.is-expanded { background: #f6fafa; }

/* Title cell — multi-line clamp to 2 lines, balanced wrap, expands on row open. */
.title-cell {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  text-wrap: balance;
  word-break: break-word;
}
.ticket-row.is-expanded .title-cell {
  -webkit-line-clamp: unset; display: block; white-space: normal;
}

/* Column visibility — driven by data-hide-<key> on the table wrapper.
   Collapses the <col> (so its width allocation disappears under table-
   layout: fixed) AND hides every th/td. visibility:collapse is the
   spec-correct knob for hiding a column; display:none on the cells is
   the cross-browser belt-and-braces. */
[data-hide-severity]  col.col-severity,
[data-hide-status]    col.col-status,
[data-hide-age]       col.col-age,
[data-hide-assignee]  col.col-assignee,
[data-hide-group]     col.col-group,
[data-hide-privacy]   col.col-privacy,
[data-hide-created]   col.col-created,
[data-hide-updated]   col.col-updated,
[data-hide-requester] col.col-requester { visibility: collapse; }

[data-hide-severity] th.col-severity,  [data-hide-severity] td.col-severity  { display: none; }
[data-hide-status]   th.col-status,    [data-hide-status]   td.col-status    { display: none; }
[data-hide-age]      th.col-age,       [data-hide-age]      td.col-age       { display: none; }
[data-hide-assignee] th.col-assignee,  [data-hide-assignee] td.col-assignee  { display: none; }
[data-hide-group]    th.col-group,     [data-hide-group]    td.col-group     { display: none; }
[data-hide-privacy]  th.col-privacy,   [data-hide-privacy]  td.col-privacy   { display: none; }
[data-hide-created]  th.col-created,   [data-hide-created]  td.col-created   { display: none; }
[data-hide-updated]  th.col-updated,   [data-hide-updated]  td.col-updated   { display: none; }
[data-hide-requester] th.col-requester,[data-hide-requester] td.col-requester{ display: none; }

/* Detail row (hidden until expanded). */
.ticket-row__detail[hidden] { display: none; }
.ticket-row__detail > td { padding: 0; background: #fafbfb; border-bottom: 1px solid #d8d8d8; }
.detail-pane { padding-block: var(--s-8) var(--s-9); padding-inline: 60px var(--s-10); color: #1f2424; }
.detail-pane__description { margin: 0; line-height: 1.55; font-family: var(--font-b); font-size: var(--t-2); }
.detail-pane__description--empty { color: var(--gray); font-style: italic; }

/* Quick action pill buttons inside the detail pane. */
.quick-actions { margin-top: var(--s-7); display: flex; gap: var(--s-4); flex-wrap: wrap; }
.qa {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-7); border-radius: var(--r-pill); font-size: var(--t-1); font-weight: 500;
  cursor: pointer; border: 1px solid #d8d8d8; background: #fff;
  color: #1f2424; font-family: var(--font-h);
  transition: border-color .12s ease, color .12s ease, background .12s ease;
  text-decoration: none;
}
.qa:hover { border-color: var(--primary-color, #04696F); color: var(--primary-color, #04696F); text-decoration: none; }
.qa svg { width: 12px; height: 12px; }
.qa-primary {
  background: var(--primary-color, #04696F); color: #fff;
  border-color: var(--primary-color, #04696F);
}
.qa-primary:hover { background: #045358; color: #fff; border-color: #045358; }
.qa-danger { color: #b42323; border-color: #f3c0c0; }
.qa-danger:hover { background: #fde2e2; color: #b42323; border-color: #b42323; }
.qa:disabled, .qa.is-loading {
  opacity: 0.7; cursor: progress;
}

/* Coherency v3 invariant 4: quick-action rendered by the server
   as disabled because the current user isn't in the ticket's group.
   Distinct from :disabled (which is our loading state above) —
   uses .is-disabled so we can still receive :hover for the tooltip
   without triggering the click. Matches the Jira/Linear/GitHub
   pattern of teaching-via-disabled rather than error-on-click. */
.qa.is-disabled {
  opacity: 0.5;
  color: var(--gray, #828282);
  background: var(--gray-light1, #F5F5F5);
  border-color: var(--gray-light2, #EBEBEB);
  cursor: not-allowed;
}
.qa.is-disabled:hover {
  background: var(--gray-light1, #F5F5F5);
  border-color: var(--gray-light2, #EBEBEB);
  color: var(--gray, #828282);
}
.qa.is-disabled svg { color: var(--gray, #828282); }

/* Inline comment form expanding under "Add comment". */
.inline-comment {
  margin-top: var(--s-7); padding: var(--s-6); background: #fff;
  border: 1px solid #d8d8d8; border-radius: var(--r-3);
  max-width: 720px;
}
.inline-comment[hidden] { display: none; }
.inline-comment textarea {
  width: 100%; min-height: 70px; border: 1px solid #d8d8d8;
  border-radius: var(--r-2); padding: var(--s-4) var(--s-5);
  font-family: var(--font-b); font-size: var(--t-2); resize: vertical;
}
.inline-comment textarea:focus {
  outline: 0; border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}
.inline-comment__actions {
  display: flex; justify-content: flex-end; gap: var(--s-4); margin-top: var(--s-4);
}
.btn-sm:not(.btn) {
  padding: var(--s-3) var(--s-7); border-radius: var(--r-pill); border: 1px solid #d8d8d8;
  background: #fff; color: #1f2424;
  font-family: var(--font-h); font-weight: 500; font-size: var(--t-1);
  cursor: pointer;
}
.btn-sm.btn-primary:not(.btn) {
  background: var(--primary-color, #04696F); color: #fff;
  border-color: var(--primary-color, #04696F);
}
.btn-sm.btn-primary:not(.btn):hover { background: #045358; }

/* Resolve modal. */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: var(--s-9);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: #fff; border-radius: var(--r-5);
  box-shadow: var(--sh-4);
  max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto;
  font-family: var(--font-h);
}
.modal__header {
  padding: 22px 26px var(--s-7); border-bottom: 1px solid #d8d8d8;
  display: flex; justify-content: space-between; align-items: center;
}
.modal__title { font-size: var(--t-5); font-weight: 600; color: #1f2424; margin: 0; }
.modal__close {
  background: none; border: 0; color: #707070;
  cursor: pointer; font-size: var(--t-7); line-height: var(--lh-1); padding: 0;
}
.modal__close:hover { color: #1f2424; }
.modal__body { padding: var(--s-9) 26px; }
.modal__body p {
  font-size: var(--t-2); color: #707070; margin: 0 0 var(--s-7); line-height: var(--lh-3);
  font-family: var(--font-b);
}
.modal__field { margin-bottom: var(--s-8); }
.modal__field .modal__hint { display: block; margin-top: var(--s-2); font-size: var(--t-1); color: var(--gray); }   /* bulk On hold, 8 Nov 2026 */
.modal__field label {
  display: block; font-size: var(--t-1); color: #1f2424;
  margin-bottom: var(--s-3); font-weight: 500;
}
.modal__field .required { color: #b42323; margin-inline-start: var(--s-1); }
.modal__field select,
.modal__field input[type="text"],
.modal__field input[type="number"],
.modal__field textarea {
  width: 100%; padding: 9px var(--s-6); border: 1px solid #d8d8d8; border-radius: var(--r-3);
  font-family: var(--font-b); font-size: var(--t-2);
  background: #fff; color: #1f2424;
}
.modal__field textarea { min-height: 88px; resize: vertical; }
.modal__field select:focus,
.modal__field input:focus,
.modal__field textarea:focus {
  outline: 0; border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}
.modal__field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.modal__footer {
  padding: var(--s-8) 26px var(--s-9); border-top: 1px solid #d8d8d8;
  display: flex; justify-content: flex-end; gap: var(--s-5);
}
.btn-danger:not(.btn) {
  background: #b42323; color: #fff; border: 1.5px solid #b42323;
  padding: 9px 22px; border-radius: var(--r-pill); font-family: var(--font-h);
  font-weight: 500; font-size: var(--t-2); cursor: pointer;
}
.btn-danger:not(.btn):hover { background: #931b1b; border-color: #931b1b; }

/* The list's own toast lived here until batch 4 (D9): every message is the one card now, .ub-toast below. */
}

@media (max-width: 720px) {
  .page-header-actions { width: 100%; }
  .columns-menu { inset-inline-end: auto; inset-inline-start: 0; }
  .modal__field-row { grid-template-columns: 1fr; }
}

/* SLA chip — sibling of the severity pill, but for time pressure rather
   than urgency level. Always renders as a pair (Response + Resolution)
   when the ticket has TicketSLA rows; renders nothing otherwise. Color
   comes from inline --sla-color, set by the get_sla_chip_state helper
   per the actual TicketSLA.sla_status and remaining time. */
.sla-chip {
  --sla-color: #16A34A;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-2);
  padding-inline: 9px var(--s-5);
  border-radius: var(--r-pill);
  font-family: var(--font-b);
  font-size: var(--t-2);
  font-weight: 600;
  line-height: var(--lh-1);
  vertical-align: middle;
  background: color-mix(in srgb, var(--sla-color) 10%, #fff);
  color: var(--sla-color);
  border: 1px solid color-mix(in srgb, var(--sla-color) 30%, transparent);
  cursor: default;
  user-select: none;
  white-space: nowrap;
}
.sla-chip .sla-kind-icon,
.sla-chip .sla-state-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.sla-chip .sla-kind {
  font-weight: 700;
}
.sla-chip .sla-sep {
  opacity: 0.4;
  padding: 0 1px;
}
.sla-chip .sla-time {
  font-variant-numeric: tabular-nums;
}
.sla-chip.is-atrisk {
  animation: sla-pulse 1.6s ease-in-out infinite;
}
/* Breached (.is-missed / .is-missed-final) is intentionally static: the
   red bg + border + "Missed by …" text already say "missed". A pulse
   would add noise without information. Only at-risk pulses, because
   that's the state where the warning is still actionable. */
@keyframes sla-pulse {
  0%, 100% { box-shadow: var(--sh-1); }
  50%      { box-shadow: var(--sh-focus); }
}
@media (prefers-reduced-motion: reduce) {
  .sla-chip.is-atrisk { animation: none; }
}
.sla-chip.is-met,
.sla-chip.is-paused,
.sla-chip.is-cancelled {
  --sla-color: #6b7280;
  background: #f3f4f6;
  color: var(--gray);
  border-color: #e5e7eb;
}
.sla-chip.is-met .sla-state-icon { color: #16A34A; }
/* Active/open breach — loud red (the ticket still needs action). The
   Python state also sets --sla-color inline; this makes it robust even
   if that inline is ever missing. */
.sla-chip.is-missed {
  --sla-color: #DC2626;
}
/* Missed SLA on a CLOSED / terminal ticket is history — nothing to act
   on — so it's muted (Option 2, approved 2026-07-07). Was #991b1b, which
   read as an accidental second red next to the loud active-breach chip. */
.sla-chip.is-missed-final {
  background: #f6efef;
  color: #8a5a5a;
  border-color: #e8d9d9;
}

.sla-pair {
  display: inline-flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
  vertical-align: middle;
}

/* Ticket detail header: severity pill + SLA chip pair sit on their own
   row above the title, so the title gets a clear line of its own. */
.pills-row {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.sla-stack {
  display: inline-flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-start;
}

/* SLA compliance widget — admin dashboard. Donut on the left, per-severity
   bars on the right. Filter pills above. Data comes from the
   get_sla_compliance() helper in helpers.py. */
.sla-compliance {
  background: #fff;
  border-radius: var(--r-5);
  padding: 22px;
  border: 1px solid var(--border);
  font-family: var(--font-b);
}
.sla-compliance__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.sla-compliance__sub {
  color: var(--gray);
  font-size: var(--t-2);
  margin-top: var(--s-2);
}
.sla-compliance__filters {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  align-items: center;
}
.sla-compliance__filters .pill-filter {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px var(--s-6);
  font-family: var(--font-b);
  font-size: var(--t-1);
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.sla-compliance__filters .pill-filter:hover {
  background: var(--gray-light);
}
.sla-compliance__filters .pill-filter.active {
  background: var(--primary-color, #04696F);
  color: #fff;
  border-color: var(--primary-color, #04696F);
}
.sla-compliance__filters .pill-filter-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--gray-light2);
  margin: 0 var(--s-2);
}
.sla-compliance__body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: center;
}
.sla-compliance__donut {
  position: relative;
  text-align: center;
  padding: var(--s-3) 0;
}
.donut-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
  display: block;
  margin: 0 auto;
}
.donut-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  pointer-events: none;
}
.donut-pct {
  font-family: var(--font-h);
  font-size: var(--t-8);
  font-weight: 700;
  color: var(--primary-color, #04696F);
  line-height: var(--lh-1);
}
.donut-lbl {
  font-size: var(--t-1);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: var(--s-2);
}
.donut-delta {
  margin-top: var(--s-5);
  font-size: var(--t-1);
  font-weight: 600;
}
.donut-delta.up   { color: #16A34A; }
.donut-delta.down { color: #DC2626; }
.sla-compliance__breakdown {
  display: grid;
  gap: var(--s-5);
}
.sla-row {
  display: grid;
  grid-template-columns: 70px 1fr 50px 80px 90px;
  gap: var(--s-6);
  align-items: center;
  font-family: var(--font-b);
  font-size: var(--t-2);
}
.sla-row--head {
  font-size: var(--t-1);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.sla-row__bar {
  background: var(--gray-light);
  border-radius: var(--r-pill);
  height: 8px;
  overflow: hidden;
  display: block;
}
.sla-row__bar .bar-fill {
  height: 100%;
  background: #16A34A;
  border-radius: var(--r-pill);
  display: block;
  transition: width .4s ease;
}
.sla-row__pct {
  text-align: end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sla-row__count {
  text-align: end;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.sla-row__delta { text-align: end; }
.sla-row__delta .delta { font-size: var(--t-1); }
.sla-row__delta .delta.up   { color: #16A34A; }
.sla-row__delta .delta.down { color: #DC2626; }
.sla-row__delta .delta.dim  { color: var(--gray); }
.sla-row--empty {
  grid-column: 1 / -1;
  color: var(--gray);
  font-style: italic;
  padding: var(--s-7) 0;
}

@media (max-width: 720px) {
  .sla-compliance__body { grid-template-columns: 1fr; }
  .sla-row { grid-template-columns: 56px 1fr 44px 70px 80px; gap: var(--s-4); }
}

/* SLA column in the list-view table — opt-in via column picker. */
.tickets-table col.col-sla       { width: 220px; }
.tickets-table th.col-sla,
.tickets-table td.col-sla        { padding-inline-start: var(--s-6); padding-inline-end: var(--s-6); }
[data-hide-sla] col.col-sla      { visibility: collapse; }
[data-hide-sla] th.col-sla,
[data-hide-sla] td.col-sla       { display: none; }

/* ========================================================================
   view_ticket Option A v3 — sidebar + main column + Activity timeline.
   Scoped under .view-ticket-v3 (body class) so nothing else on the site
   inherits these rules. Reuses the existing .copy-btn, .severity, .sla-chip,
   .privacy variants from earlier work — those rules apply unchanged.
   ======================================================================== */

/* ================================================================
   SIDEBAR SHELL — 270px expanded, 56px in rail mode.
   Width transitions smoothly on collapse/expand. Main column
   reflows via grid parent (body.container).
   ================================================================ */
.view-ticket-v3.big-sidebar .sidebar {
  width: 300px;
  transition: width .28s cubic-bezier(.4, 0, .2, 1),
              padding .28s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}
.view-ticket-v3.big-sidebar main {
  max-width: calc(100% - 312px);
  transition: max-width .28s cubic-bezier(.4, 0, .2, 1);
}
/* Release the sidebar's reservation once it goes off-canvas. A reset already
   existed — `@media (max-width:1200px) { main, .big-sidebar main }` — but it is
   (0,1,1) and loses to the (0,2,1) rule above, so 312px stayed reserved for a
   sidebar that was not on screen. At a 402px viewport that left main about 90px
   wide, with the editor toolbar stacking one button per line. Adding another
   media query without matching this selector would not have fixed it. */
@media screen and (max-width: 1200px) {
  .view-ticket-v3.big-sidebar main { max-width: 100%; }
}

/* Rail mode — body.sb-rail-mode set by JS from localStorage.
   .sb-rail is a sibling to .sidebar__content; make it flex-grow so the
   icons + rail bg extend down and the footer sits naturally at the
   bottom (no giant empty gap between icons and footer). */
.view-ticket-v3.sb-rail-mode.big-sidebar .sidebar {
  width: 56px;
  padding: var(--s-4) var(--s-2);
}
.view-ticket-v3.sb-rail-mode.big-sidebar main {
  max-width: calc(100% - 68px);
}
.view-ticket-v3.sb-rail-mode .sidebar__content { display: none; }
.view-ticket-v3.sb-rail-mode .sb-rail {
  flex: 1;
  min-height: 0;
}
.view-ticket-v3:not(.sb-rail-mode) .sb-rail { display: none; }

/* .sidebar__content must fill available vertical space so its internal
   overflow-y: auto actually clips + scrolls. In a flex-column parent
   (.sidebar), height: 100% doesn't behave the way you'd want — need
   flex: 1 + min-height: 0. Scoped to view-ticket-v3 so other pages
   (which rely on the original sidebar__content height: 100%) aren't
   affected. */
.view-ticket-v3 .sidebar__content {
  flex: 1;
  min-height: 0;
  height: auto;
  position: relative;
}
.view-ticket-v3 .sidebar__content .shadow-top {
  position: sticky; top: 0; height: 12px; z-index: 2;
  background: linear-gradient(180deg, var(--light-background), transparent);
  margin: 0 -2px;
  pointer-events: none;
}
.view-ticket-v3 .sidebar__content .shadow-bottom {
  position: sticky; bottom: 0; height: 12px; z-index: 2;
  background: linear-gradient(0deg, var(--light-background), transparent);
  margin: 0 -2px;
  pointer-events: none;
}

/* Hide the corporate logo + sidebar_footer text labels in rail mode
   (icons stay). The logo link is the first direct <a> child of the
   parent <aside>. */
.view-ticket-v3.sb-rail-mode aside.sidebar > a:first-child { display: none; }
.view-ticket-v3.sb-rail-mode .sidebar__footer {
  padding: var(--s-4) 0; display: flex; flex-direction: column;
  gap: var(--s-2); align-items: center;
}
.view-ticket-v3.sb-rail-mode .sidebar__footer > button,
.view-ticket-v3.sb-rail-mode .sidebar__footer > a {
  font-size: 0;
  padding: var(--s-4); width: 40px; height: 40px;
  justify-content: center;
  border-radius: var(--r-4);
  color: var(--gray);
  transition: background .12s ease, color .12s ease;
}
.view-ticket-v3.sb-rail-mode .sidebar__footer > *:hover {
  background: var(--light-background); color: var(--primary-color);
}
.view-ticket-v3.sb-rail-mode .sidebar__footer > * > svg {
  width: 18px; height: 18px;
}

/* ================================================================
   FULL SIDEBAR (.sb-full) — v3 collapsible sections + CTI card
   ================================================================ */
.view-ticket-v3 .summary { display: none; }
.view-ticket-v3 .sb-full {
  font-family: var(--font-b);
  font-size: var(--t-2);
  color: var(--black);
  padding: 0 var(--s-1) var(--s-9);
  min-width: 0;
}

/* Topbar (back link + collapse toggle) */
.view-ticket-v3 .sb__topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2); padding: var(--s-2) 0; margin: var(--s-2) -2px var(--s-3);
}
.view-ticket-v3 .sb__back {
  display: inline-flex; align-items: center; gap: var(--s-3);
  color: var(--primary-color); font-weight: 600; font-size: var(--t-2);
  text-decoration: none; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-3); transition: background .12s ease;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.view-ticket-v3 .sb__back:hover { background: var(--light-background); }
.view-ticket-v3 .sb__back svg { width: 14px; height: 14px; flex-shrink: 0; }
.view-ticket-v3 .sb__collapse {
  background: transparent; border: 0; padding: var(--s-3); border-radius: var(--r-3);
  cursor: pointer; color: var(--gray);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s ease, color .12s ease;
  flex-shrink: 0;
}
.view-ticket-v3 .sb__collapse:hover { background: var(--light-background); color: var(--primary-color); }
.view-ticket-v3 .sb__collapse svg { width: 16px; height: 16px; }

/* Section skeleton */
.view-ticket-v3 .sb__section {
  border-top: 1px solid var(--gray-light2);
  padding: var(--s-1) 0;
}
.view-ticket-v3 .sb__section:first-of-type { border-top: 0; }
.view-ticket-v3 .sb__section-head {
  display: flex; align-items: center; gap: var(--s-4);
  /* was margin:0 -4px; width:calc(100%+8px) (full-bleed hover) — that pushed
     the header past the clipping scroll sidebar so its focus ring was cut on
     the sides. Fit it inside the container instead. */
  padding: var(--s-5) var(--s-4); margin: 0;
  background: transparent; border: 0; width: 100%;
  cursor: pointer; text-align: start;
  border-radius: var(--r-3); transition: background .12s ease;
  color: var(--gray); font-family: var(--font-b);
}
.view-ticket-v3 .sb__section-head--btn { cursor: pointer; }
.view-ticket-v3 .sb__section--pinned .sb__section-head { cursor: default; }
.view-ticket-v3 .sb__section-head--btn:hover { background: var(--light-background); }
.view-ticket-v3 .sb__section-head .chevron {
  width: 14px; height: 14px; color: var(--gray);
  transition: transform .18s ease; flex-shrink: 0;
}
.view-ticket-v3 .sb__section.is-collapsed .chevron { transform: rotate(-90deg); }
.view-ticket-v3 .sb__section-head .chevron.sb__chevron-blank { visibility: hidden; }
.view-ticket-v3 .sb__section-head .icon {
  width: 14px; height: 14px; color: var(--gray); flex-shrink: 0;
}
.view-ticket-v3 .sb__section-head .lbl {
  flex: 1; font-size: var(--t-1); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray);
}
.view-ticket-v3 .sb__section-head .count {
  font-size: var(--t-1); font-weight: 700; color: var(--gray);
  background: var(--light-background); border-radius: var(--r-pill);
  padding: 1px var(--s-4);
}
.view-ticket-v3 .sb__section-head .action {
  color: var(--primary-color); font-weight: 700; font-size: var(--t-3);
  padding: 0 var(--s-2); line-height: var(--lh-1); border-radius: var(--r-1);
  cursor: pointer;
}
.view-ticket-v3 .sb__section-head .action:hover { background: var(--gray-light2); }
.view-ticket-v3 .sb__section-body {
  padding: var(--s-1) var(--s-4) var(--s-6);
  display: block;
}
.view-ticket-v3 .sb__section.is-collapsed .sb__section-body { display: none; }

/* Identity — ticket # + copy button, centered horizontally, 18px */
.view-ticket-v3 .sb__id {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-5); padding: var(--s-3) 0 var(--s-2);
  font-size: var(--t-5); font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary-color);
}
.view-ticket-v3 .sb__id .copy-btn.sb__copy-btn {
  opacity: 1;
  width: 26px; height: 26px; padding: 5px;
}
.view-ticket-v3 .sb__id .copy-btn.sb__copy-btn svg {
  width: 16px; height: 16px;
}

/* CTI CARD — the three-step layout */
.view-ticket-v3 .sb__cti {
  margin-top: var(--s-5);
  background: linear-gradient(180deg, var(--light-background), #fff);
  border: 1px solid var(--gray-light2);
  border-radius: var(--r-4);
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.view-ticket-v3 .sb__cti:hover {
  border-color: var(--primary-color);
  box-shadow: var(--sh-2);
}
.view-ticket-v3 .sb__cti-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-4);
}
.view-ticket-v3 .sb__cti-head .lbl {
  font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--gray);
}
.view-ticket-v3 .sb__cti-head .edit-hint {
  font-size: var(--t-1); font-weight: 700; color: var(--primary-color);
  opacity: 0; transition: opacity .12s ease;
}
.view-ticket-v3 .sb__cti:hover .sb__cti-head .edit-hint { opacity: 1; }
/* Vertical layout: step label above value. Value spans the full card
   width so long CTI names wrap at word boundaries (or gracefully
   break long single words) without any grid-track sizing quirks. */
.view-ticket-v3 .sb__cti-row {
  display: block; padding: var(--s-3) 0;
}
.view-ticket-v3 .sb__cti-row .step {
  display: block;
  font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--gray);
  margin-bottom: 3px;
}
.view-ticket-v3 .sb__cti-row .val {
  display: block;
  font-size: var(--t-2); font-weight: 600; color: var(--black);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
.view-ticket-v3 .sb__cti-row + .sb__cti-row {
  margin-top: var(--s-2); padding-top: var(--s-4);
  border-top: 1px dashed var(--gray-light2);
}

/* Field row (property-sheet grid) — narrow label column so values sit
   right next to their labels instead of way over on the right.
   Widest label is "Requester" (~62px @ 12px font); 72px fits with a
   little breathing room. Gap trimmed to 8px so the value sits close. */
.view-ticket-v3 .sb__field {
  display: grid; grid-template-columns: 72px 1fr;
  gap: var(--s-4); align-items: center; padding: 5px 0;
}
.view-ticket-v3 .sb__field > .lbl { font-size: var(--t-1); color: var(--gray); }
.view-ticket-v3 .sb__field > .val {
  color: var(--black); font-weight: 600; font-size: var(--t-2);
  text-align: start; min-width: 0;
  /* Allow wrapping so long values (e.g., full Severity descriptions,
     Location "Saudi Arabia - Dammam - DMM") aren't truncated with
     ellipsis. Values still respect the grid cell width but can span
     multiple lines. */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.4;
}
.view-ticket-v3 .sb__field > .val .sb__alias {
  color: #5f6670; font-weight: 400; font-size: var(--t-1);   /* a11y #13: was --gray (~3.9:1) */
}
/* Unified keyboard focus ring for the ENTIRE View Ticket page (a11y follow-up).
   ONE colour — logo orange #E26E00 — replacing the browser's blue default AND
   the assorted teal var(--primary-color) rings, so every focus looks the same.
   Scoped to body.view-ticket-v3 so no other page is affected; !important beats
   the per-element focus rules (.editable / button.status / .copy-btn / …). The
   outline follows each element's own border-radius. outline (not box-shadow) so
   it's never clipped by a scroll container's own overflow; inline click-to-edit
   controls get a small radius so their ring is rounded, not a hard rectangle. */
.view-ticket-v3 :focus-visible {
  outline: 2px solid var(--primary-color) !important;
  /* INSET (negative offset), not outset: the sidebar scroll container
     (.sidebar__content { overflow-y:auto }) forces overflow-x:auto too, so an
     OUTSET ring on a full-width element (back link, section headers, severity/
     assignee rows) is clipped on the left/right. An inset ring is drawn inside
     the element's own box, so it's never clipped — visible on all four sides. */
  outline-offset: -2px !important;
}
.view-ticket-v3 .editable:focus-visible,
.view-ticket-v3 [data-action^="edit-"]:focus-visible,
.view-ticket-v3 [data-action="edit-cti"]:focus-visible,
.view-ticket-v3 .vt-title-view:focus-visible,
.view-ticket-v3 #vt-desc-display:focus-visible { border-radius: var(--r-1); }
/* Modals (CTI/Pending/Resolved) aren't inside the clipping scroll sidebar, so
   their rings can sit OUTSIDE the element — far more visible than an inset ring
   buried inside a filled button (e.g. the teal "Save CTI" now shows a clear
   orange ring around it). More specific than the page rule so it wins. */
.view-ticket-v3 .vt-modal-v2 :focus-visible { outline-offset: 2px !important; }
/* Composer (main + inline-edit + thread-reply) shows focus through its own
   teal :focus-within shell ring, so the app-wide orange :focus-visible ring on
   the inner contenteditable was redundant and noisy on click. Suppress it —
   the shell ring stays as the visible focus cue, so a11y is preserved. */
.view-ticket-v3 .ucomp-tiptap:focus-visible,
.view-ticket-v3 .ucomp-tiptap:focus { outline: none !important; }
/* The search box (⌘K, search-box.js) is appended to <body>, so this page-wide
   ring lands on its borderless field as a hard inset rectangle — the only page
   where it did (owner, 2026-10-06: "the ring in search looks ugly"). The box is
   a modal with one field, already focused: the dialog and the caret are the
   focus cue, exactly as on Home and every other page (search.css). Same
   treatment as the composer above. */
.view-ticket-v3 .sk-in input:focus-visible,
.view-ticket-v3 .sk-in input:focus { outline: none !important; }
/* The pickers' search field (openPicker in new.js, also appended to <body>)
   draws its own focus — teal border + soft glow (.vt-pick-search:focus) — so the
   page-wide inset ring on top of it was a double ring. Same reason, same fix. */
.view-ticket-v3 .vt-pick-search:focus-visible,
.view-ticket-v3 .vt-pick-search:focus { outline: none !important; }
.view-ticket-v3 .sb__field > .val.editable {
  /* was margin:-3px -8px (full-bleed) → ring clipped by the scroll sidebar.
     Snug -2px so the value's hover pill + focus ring stay inside the container. */
  cursor: pointer; padding: 3px var(--s-1); margin: -3px -2px;
  border-radius: var(--r-2); transition: background .12s ease;
}
.view-ticket-v3 .sb__field > .val.editable::after {
  content: '▾'; color: var(--gray); font-size: var(--t-1); margin-inline-start: var(--s-2);
}
.view-ticket-v3 .sb__field > .val.editable:hover { background: var(--light-background); }
.view-ticket-v3 .sb__field > .val.sb__val--locked {
  color: var(--gray); cursor: not-allowed; font-style: italic;
  white-space: normal;
}
.view-ticket-v3 .sb__field > .val.sb__val--locked .sb__auto {
  display: block; font-size: var(--t-1); color: var(--gray);
  font-weight: 400; font-style: normal;
}
.view-ticket-v3 .sb__field > .val.sb__val--unassigned { color: var(--gray); }
/* C1: Resolved milestone in Timing (approved preview_comments_v2) */
.view-ticket-v3 .sb__field > .val.sb__val--resolved { color: #16A34A; font-weight: 600; }

/* Tags */
.view-ticket-v3 .sb__tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--s-1);
}
.view-ticket-v3 .sb__tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding-block: 3px;
  padding-inline: var(--s-5) 9px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--primary-color) 8%, #fff);
  color: var(--primary-color);
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
  font-size: var(--t-1); font-weight: 600; text-decoration: none;
  transition: background .12s ease;
}
.view-ticket-v3 .sb__tag:hover { background: color-mix(in srgb, var(--primary-color) 16%, #fff); }
.view-ticket-v3 .sb__tag .x {
  background: transparent; border: 0; padding: 0 var(--s-1);
  color: var(--gray); font-weight: 700; opacity: 0;
  transition: opacity .12s ease, color .12s ease;
  cursor: pointer; line-height: var(--lh-1);
}
.view-ticket-v3 .sb__tag:hover .x { opacity: 1; }
/* × on hover stays the same gray — no red flash. */
.view-ticket-v3 .sb__tag .x:hover { color: var(--gray); }
.view-ticket-v3 .vt-tag-input {
  margin-top: var(--s-3); display: none; width: 100%;
  background: #fff; border: 1px solid var(--primary-color); border-radius: var(--r-3);
  padding: 5px var(--s-5); font-family: var(--font-b); font-size: var(--t-1);
  outline: none;
}
.view-ticket-v3 .vt-tag-input.is-open { display: block; }

/* Quick action buttons — production style */
.view-ticket-v3 .sb__qa-btn {
  display: block; width: 100%;
  background: #fff; color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 9px; border-radius: var(--r-4);
  text-align: center;
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 500;
  cursor: pointer; margin-top: var(--s-3);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
/* Only the section's literal first button loses its top margin. The
   OOB slot wrappers are display:contents, which made EVERY slotted
   button ":first-child" of its slot — collapsing all spacing
   (2026-07-06 report: Assign-to-me and Reopen touching). */
.view-ticket-v3 .sb__section-body > .sb__qa-btn:first-child { margin-top: 0; }
.view-ticket-v3 .sb__qa-btn:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.view-ticket-v3 .sb__qa-btn.sb__qa-btn--primary { background: var(--primary-color); color: #fff; }
.view-ticket-v3 .sb__qa-btn.sb__qa-btn--primary:hover { background: var(--secondary-color); }
.view-ticket-v3 .sb__qa-btn.sb__qa-btn--danger { color: #b42323; border-color: #b42323; }
.view-ticket-v3 .sb__qa-btn.sb__qa-btn--danger:hover { background: #fef2f2; }
.view-ticket-v3 .sb__qa-btn.sb__qa-btn--disabled {
  background: var(--gray-light2); color: var(--gray);
  border-color: var(--gray-light2); cursor: not-allowed;
}
.view-ticket-v3 .sb__qa-btn.sb__qa-btn--disabled:hover { background: var(--gray-light2); }

/* ================================================================
   STATUS — icon and name (D83, owner 2026-09-29; preview_status_look A)
   ================================================================
   Every status maps to one of six stages via status_family() in app.py, so a
   status a workspace names itself gets the right look without anyone picking a
   colour. The colour is D19's own (decided 2026-09-23, Jira's palette retired)
   and lives only in a 14px icon whose SHAPE also says the stage (empty = not
   started, half = in progress, clock = waiting, tick = done, ! = blocked,
   x = cancelled), so colour is never the only signal; the name stays in normal
   text. Icons >= 3:1 on white (3.4-6.5:1). Where the status IS the control (the
   request page header, the side panel) it is a quiet field with a caret. */
:root { --st-chev: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20d%3D%27M4.5%206.5L8%2010l3.5-3.5%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E"); }
.status-family-todo { --st-i: #6B7577; --st-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.7%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27/%3E%3C/svg%3E"); }
.status-family-active { --st-i: #04696F; --st-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.7%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27/%3E%3Cpath%20d%3D%27M8%204.6a3.4%203.4%200%200%201%200%206.8z%27%20fill%3D%27black%27/%3E%3C/svg%3E"); }
.status-family-pending { --st-i: #B45F06; --st-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.7%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27/%3E%3Cpath%20d%3D%27M8%205.3V8l1.8%201.15%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E"); }
.status-family-done { --st-i: #1F7A45; --st-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M5.2%208.2l1.9%201.9%203.7-3.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/mask%3E%3C/defs%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.6%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E"); }
.status-family-blocked { --st-i: #C0392B; --st-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M8%204.7v3.9%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27/%3E%3Ccircle%20cx%3D%278%27%20cy%3D%2711.1%27%20r%3D%271.05%27%20fill%3D%27black%27/%3E%3C/mask%3E%3C/defs%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.6%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E"); }
.status-family-cancelled { --st-i: #848C8E; --st-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.7%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27/%3E%3Cpath%20d%3D%27M6.1%206.1l3.8%203.8M9.9%206.1l-3.8%203.8%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27/%3E%3C/svg%3E"); }
:is(.status, .vt-status-pill, .sb__field > .val)[class*="status-family-"] {
  background: transparent; border: 1px solid transparent; color: var(--black); text-decoration: none; filter: none;
  display: inline-block; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  height: 26px; line-height: 24px; padding-block: 0; padding-inline: 5px 7px; border-radius: var(--r-2); width: auto;
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 500; box-shadow: none; text-align: start;
}
:is(.status, .vt-status-pill, .sb__field > .val)[class*="status-family-"]::before {
  content: ""; display: inline-block; vertical-align: -2.5px; margin-inline-end: 6px; width: 14px; height: 14px; background: var(--st-i);
  -webkit-mask: var(--st-m) center / 14px 14px no-repeat; mask: var(--st-m) center / 14px 14px no-repeat;
}
:is(button.status, .sb__field > .val.editable)[class*="status-family-"]:hover { background: #EEF1F2; filter: none; }
:is(.status, .vt-status-pill, .sb__field > .val).status-family-cancelled { color: var(--gray); }
/* the request page header: the status is the control, so it is a field with a caret */
.view-ticket-v3 .vt-status-pill[class*="status-family-"] { background: #fff; border-color: #DCE1E4; height: 24px; line-height: 22px; padding-block: 0; padding-inline: 7px var(--s-3); border-radius: var(--r-3); }
.view-ticket-v3 .vt-status-pill[class*="status-family-"]:hover { border-color: var(--primary-color); background: #fff; }
.view-ticket-v3 .vt-status-pill[class*="status-family-"]::after {
  content: ""; display: inline-block; vertical-align: -2px; margin-inline-start: 4px; width: 12px; height: 12px; background: var(--gray);
  -webkit-mask: var(--st-chev) center / 12px 12px no-repeat; mask: var(--st-chev) center / 12px 12px no-repeat;
}
/* locked (closed, or waiting on an approval): the stage icon stays, no caret, the lock and its reason stay */
.view-ticket-v3 .vt-status-pill--locked[class*="status-family-"]::after { display: none; }
.view-ticket-v3 .vt-status-pill--locked[class*="status-family-"]:hover { border-color: #DCE1E4; }
/* the left column's value on the request page */
.view-ticket-v3 .sb__field > .val[class*="status-family-"] { justify-self: start; margin-inline-start: -5px; }
/* inside the pickers the row is the target, not the name */
:is(.status-popover, .vt-picker-pop) .status[class*="status-family-"] { height: auto; line-height: 1.3; padding: 0; overflow: visible; }

/* Related — reuse existing .vt-related-* styles from the block below,
   only need light tweaks so the section body scrolls if very long */
.view-ticket-v3 .sb__section[data-section="related"] .sb__section-body {
  max-height: 380px; overflow-y: auto;
}

/* ================================================================
   ICON RAIL (.sb-rail) — visible only in .sb-rail-mode
   ================================================================ */
.view-ticket-v3 .sb-rail {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-2); padding: var(--s-3) 0;
}
.view-ticket-v3 .sb-rail .rail-btn {
  background: transparent; border: 0; padding: var(--s-4);
  width: 40px; height: 40px; border-radius: var(--r-4);
  cursor: pointer; color: var(--gray);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s ease, color .12s ease;
  position: relative;
}
.view-ticket-v3 .sb-rail .rail-btn:hover { background: var(--light-background); color: var(--primary-color); }
.view-ticket-v3 .sb-rail .rail-btn svg { width: 18px; height: 18px; }
.view-ticket-v3 .sb-rail .rail-btn .tt {
  position: absolute; inset-inline-start: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--black); color: #fff; font-size: var(--t-1); font-weight: 600;
  padding: var(--s-2) var(--s-5); border-radius: var(--r-2); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
  z-index: 100;
}
.view-ticket-v3 .sb-rail .rail-btn:hover .tt { opacity: 1; }
.view-ticket-v3 .sb-rail .rail-sep {
  width: 24px; height: 1px; background: var(--gray-light2);
  margin: var(--s-2) 0;
}
.view-ticket-v3 .sb-rail .rail-btn .rail-badge {
  position: absolute; top: 4px; inset-inline-end: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-color);
}
.view-ticket-v3 .sb-rail .rail-expand {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}


.view-ticket-v3 .vt-section {
  padding-bottom: var(--s-7);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.view-ticket-v3 .vt-section:last-child {
  padding-bottom: 0; margin-bottom: 0; border-bottom: 0;
}
.view-ticket-v3 .vt-section h5 {
  margin: 0 0 var(--s-4);
  font-size: var(--t-1); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray, #828282);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-b);
}
.view-ticket-v3 .vt-add {
  color: var(--primary-color, #04696F);
  cursor: pointer; font-weight: 700;
  font-size: var(--t-3); padding: 0 var(--s-3); line-height: var(--lh-1);
  user-select: none; border-radius: var(--r-1);
}
.view-ticket-v3 .vt-add:hover { background: var(--gray-light2, #ebebeb); }

/* Identity */
.view-ticket-v3 .vt-ticketno {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-1) 0;
  font-size: var(--t-3); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.view-ticket-v3 .vt-ticketno-link {
  color: var(--primary-color, #04696F);
  text-decoration: none; font-weight: 700;
}
.view-ticket-v3 .vt-ticketno-link:hover { text-decoration: underline; }
.view-ticket-v3 .vt-cti {
  font-family: var(--font-b); font-size: var(--t-1);
  color: #828282; line-height: 1.45; margin-top: var(--s-4);
  cursor: pointer; padding: var(--s-3) var(--s-4);
  margin-inline-start: -8px; margin-inline-end: -8px;
  border-radius: var(--r-2); transition: background .12s ease;
  position: relative;
}
.view-ticket-v3 .vt-cti:hover { background: var(--gray-light2, #ebebeb); }
.view-ticket-v3 .vt-cti-label {
  font-size: var(--t-1);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 3px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.view-ticket-v3 .vt-cti-hint {
  color: var(--primary-color, #04696F);
  font-size: var(--t-1); font-weight: 600;
  opacity: 0; transition: opacity .12s ease;
  text-transform: none; letter-spacing: 0;
}
.view-ticket-v3 .vt-cti:hover .vt-cti-hint { opacity: 1; }
.view-ticket-v3 .vt-cti b { color: var(--black, #1d1f23); font-weight: 600; }
.view-ticket-v3 .vt-cti-sep { opacity: 0.5; padding: 0 3px; }

/* Display-with-click-to-edit fields — 2-column grid so all values
   share the same left edge (property-sheet feel) instead of
   right-aligning and creating a ragged left margin. */
.view-ticket-v3 .vt-field {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  padding: 5px 0; gap: var(--s-5);
}
.view-ticket-v3 .vt-lbl {
  color: var(--gray, #828282);
  font-size: var(--t-1);
}
.view-ticket-v3 .vt-val {
  color: var(--black, #1d1f23); font-weight: 600;
  text-align: start;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.view-ticket-v3 .vt-editable {
  cursor: pointer; padding: 3px var(--s-4); margin: -3px -8px;
  border-radius: var(--r-1); transition: background .12s ease;
}
.view-ticket-v3 .vt-editable::after {
  content: '▾'; color: var(--gray, #828282);
  font-size: var(--t-1); margin-inline-start: var(--s-2);
}
.view-ticket-v3 .vt-editable:hover { background: var(--gray-light2, #ebebeb); }
.view-ticket-v3 .vt-val-locked {
  color: var(--gray, #828282); cursor: not-allowed; font-style: italic;
}
.view-ticket-v3 .vt-val-auto {
  font-size: var(--t-1); color: var(--gray, #828282);
  display: block; font-weight: 400; font-style: normal;
}
.view-ticket-v3 .vt-val-unassigned { color: var(--gray, #828282); }

/* Tags chips in sidebar */
.view-ticket-v3 .vt-tag-chips {
  display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2);
}
.view-ticket-v3 .vt-tag-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  color: var(--primary-color, #04696F);
  border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 22%, transparent);
  padding-block: 3px;
  padding-inline: var(--s-5) var(--s-4);
  border-radius: var(--r-pill);
  font-size: var(--t-1); font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .12s ease;
}
.view-ticket-v3 .vt-tag-chip:hover {
  background: color-mix(in srgb, var(--primary-color, #04696F) 16%, #fff);
}
.view-ticket-v3 .vt-tag-x {
  background: transparent; border: 0; padding: 0 var(--s-2);
  color: var(--gray, #828282); cursor: pointer; font-weight: 700;
  line-height: var(--lh-1); border-radius: var(--r-1);
  margin-inline-start: var(--s-1);
  opacity: 0; transition: opacity .12s ease;
  font-size: var(--t-3);
}
.view-ticket-v3 .vt-tag-chip:hover .vt-tag-x { opacity: 1; }
/* × hover: no red — neutral gray, transparent bg. */
.view-ticket-v3 .vt-tag-x:hover {
  background: transparent; color: var(--gray, #828282);
}
/* TAG in-flight feedback (approved preview_tag_feedback).
   Ghost chip: appears instantly on Enter, dashed + pulsing until the
   server confirms; then replaced by the real chip. */
.view-ticket-v3 .vt-tag-chip.is-pending {
  border-style: dashed; opacity: .65; pointer-events: none;
  animation: tag-pulse 1.1s ease-in-out infinite;
}
@keyframes tag-pulse { 0%, 100% { opacity: .65; } 50% { opacity: .4; } }
.view-ticket-v3 .vt-tag-spinner {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--primary-color, #04696F) 30%, transparent);
  border-top-color: var(--primary-color, #04696F);
  animation: tag-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes tag-spin { to { transform: rotate(360deg); } }
/* Input locks while the add request is in flight (same save-lock
   philosophy as the modals) — also the double-submit guard's visual. */
.view-ticket-v3 .vt-tag-input.is-saving {
  opacity: .6; pointer-events: none; background: var(--gray-light2, #EBEBEB);
}
.view-ticket-v3 .vt-tag-input {
  margin-top: var(--s-4); display: none;
  background: #fff;
  border: 1px solid var(--primary-color, #04696F);
  border-radius: var(--r-2); padding: 5px 9px;
  font-family: var(--font-b); font-size: var(--t-1);
  width: 100%; outline: none;
  color: var(--black);
}
.view-ticket-v3 .vt-tag-input.is-open { display: block; }

/* Quick actions */
.view-ticket-v3 .vt-qa-btn {
  display: block; width: 100%;
  background: #fff; color: var(--primary-color, #04696F);
  border: 1px solid var(--primary-color, #04696F);
  padding: var(--s-4); border-radius: var(--r-3); text-align: center;
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 500;
  cursor: pointer; margin-top: var(--s-3);
  transition: background .12s ease;
}
.view-ticket-v3 .vt-qa-btn:hover {
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
}
.view-ticket-v3 .vt-qa-btn.primary {
  background: var(--primary-color, #04696F); color: #fff;
}
.view-ticket-v3 .vt-qa-btn.primary:hover { background: var(--primary-dark, #034E54); }
.view-ticket-v3 .vt-qa-btn.danger {
  color: #b42323; border-color: #b42323;
}
.view-ticket-v3 .vt-qa-btn.danger:hover { background: #fef2f2; }
.view-ticket-v3 .vt-qa-btn.vt-qa-disabled,
.view-ticket-v3 .vt-qa-btn:disabled {
  background: var(--gray-light2, #ebebeb);
  color: var(--gray, #828282);
  border-color: var(--gray-light2, #ebebeb);
  cursor: not-allowed;
}
.view-ticket-v3 .vt-qa-btn.vt-qa-disabled:hover,
.view-ticket-v3 .vt-qa-btn:disabled:hover {
  background: var(--gray-light2, #ebebeb);
}

/* Related */
.view-ticket-v3 .vt-related-loading {
  font-style: italic; color: var(--gray, #828282); font-size: var(--t-1);
  padding: var(--s-2) 0;
}
.view-ticket-v3 .vt-related-group { margin-bottom: var(--s-5); }
.view-ticket-v3 .vt-related-group:last-child { margin-bottom: 0; }
.view-ticket-v3 .vt-related-group-label {
  font-size: var(--t-1); color: var(--gray, #828282);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  margin-bottom: var(--s-3);
  display: flex; justify-content: space-between; align-items: center;
}
.view-ticket-v3 .vt-related-item {
  display: flex; gap: var(--s-4); align-items: center;
  padding: var(--s-3);
  margin: 0 -6px; border-radius: var(--r-1);
  text-decoration: none; color: var(--black, #1d1f23);
  transition: background .12s ease;
}
.view-ticket-v3 .vt-related-item:hover { background: var(--gray-light2, #ebebeb); }
/* A redacted row isn't a link and has no hover (Part B preview, section 6). */
.view-ticket-v3 .vt-related-item.is-redacted { cursor: default; }
.view-ticket-v3 .vt-related-item.is-redacted:hover { background: none; }
/* "Remove link" (Part B, B5; 2026-10-06): on a Linked row, on hover and keyboard focus (always
   on touch, where there is no hover). The row leaves in place, then the list closes up —
   opacity and transform only, the fade duration. */
.view-ticket-v3 .vt-related-item .vt-unlink { margin-inline-start: auto; flex: 0 0 auto; width: 24px; height: 24px; border: 0; background: transparent; border-radius: var(--r-2); color: var(--gray, #828282); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--dur-state, .12s) var(--ease), background var(--dur-state, .12s) var(--ease), color var(--dur-state, .12s) var(--ease); }
.view-ticket-v3 .vt-related-item:hover .vt-unlink, .view-ticket-v3 .vt-related-item:focus-within .vt-unlink { opacity: 1; }
.view-ticket-v3 .vt-related-item .vt-unlink:hover, .view-ticket-v3 .vt-related-item .vt-unlink:focus-visible { background: #fff; color: var(--red, #E90909); box-shadow: 0 0 0 1px var(--gray-light2, #ebebeb); outline: none; }
.view-ticket-v3 .vt-related-item .vt-unlink svg { width: 14px; height: 14px; }
@media (hover: none) { .view-ticket-v3 .vt-related-item .vt-unlink { opacity: 1; } }
.view-ticket-v3 .vt-related-item.is-leaving { opacity: 0; transform: translateX(6px); transition: opacity var(--dur-fade, .18s) var(--ease), transform var(--dur-fade, .18s) var(--ease); }
@media (prefers-reduced-motion: reduce) { .view-ticket-v3 .vt-related-item.is-leaving { transform: none; transition: none; } }
.view-ticket-v3 .vt-related-num {
  color: var(--primary-color, #04696F);
  font-weight: 600; font-variant-numeric: tabular-nums;
  flex-shrink: 0; font-size: var(--t-1);
}
.view-ticket-v3 .vt-related-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--t-1);
}
.view-ticket-v3 .vt-related-status {
  font-size: var(--t-1); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  font-weight: 600; flex-shrink: 0;
}
/* D83: a related request's status is the stage look (icon and name), a size down for the list */
.view-ticket-v3 .vt-related-status.status[class*="status-family-"] { height: 20px; line-height: 18px; font-size: var(--t-1); padding: 0 var(--s-1); }
.view-ticket-v3 .vt-related-status.status[class*="status-family-"]::before { width: 12px; height: 12px; margin-inline-end: var(--s-2); vertical-align: -2px; -webkit-mask-size: 12px 12px; mask-size: 12px 12px; }
.view-ticket-v3 .vt-related-empty {
  color: var(--gray, #828282); font-style: italic;
  font-size: var(--t-1); padding: var(--s-2) 0;
}
.view-ticket-v3 .vt-related-info {
  font-size: var(--t-1); color: var(--gray, #828282);
  font-style: italic; padding-top: var(--s-4); margin-top: var(--s-4);
  border-top: 1px dashed var(--gray-light2, #ebebeb); line-height: 1.4;
}

/* Related — load skeleton (rows mirror .vt-related-item: num · title · status). */
.view-ticket-v3 .vt-related-sk-row {
  display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3);
}
.view-ticket-v3 .vt-related-sk-num { width: 42px; height: 11px; flex-shrink: 0; }
.view-ticket-v3 .vt-related-sk-title { flex: 1; height: 11px; }
.view-ticket-v3 .vt-related-sk-status { width: 46px; height: 16px; border-radius: var(--r-pill); flex-shrink: 0; }

/* Related — load error (distinct from genuine-empty, with Retry). A 500 or
   dropped connection must not masquerade as "no related tickets". */
.view-ticket-v3 .vt-related-error {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--t-1); color: var(--gray, #828282); padding: var(--s-2) 0;
}
.view-ticket-v3 .vt-related-error svg { width: 13px; height: 13px; color: var(--red, #E90909); flex-shrink: 0; }
.view-ticket-v3 .vt-related-retry {
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  color: var(--primary-color, #04696F);
  background: #fff; border: 1px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-pill); padding: var(--s-1) 11px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.view-ticket-v3 .vt-related-retry:hover {
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  border-color: color-mix(in srgb, var(--primary-color, #04696F) 30%, #fff);
}

/* Unset editable value — ghost affordance ("Set location") instead of a
   bare dash, so it reads as click-to-fill (Notion/Linear pattern). */
.view-ticket-v3 .sb__field .val.editable.is-empty { color: var(--gray); font-style: italic; }

/* === MAIN HEADER CARD === */
.view-ticket-v3 .vt-main-header {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--r-5);
  padding: 18px 22px;
  margin-bottom: var(--s-7);
}
.view-ticket-v3 .vt-pills-row {
  display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center;
  margin-bottom: var(--s-5);
}
/* 2026-07-07: uniform pill height — sev/status/privacy/SLA chips had
   drifting paddings and fonts, so they never sat on one middle line.
   2026-07-08: dropped 26px → 24px to match the SLA chip (the reference
   height the user liked); severity/status/privacy read too tall before. */
.view-ticket-v3 .vt-pills-row > * {
  height: 24px;
  display: inline-flex; align-items: center;
  box-sizing: border-box;
}
/* SLA chips live inside the #vt-sla-chip-pair wrapper, so the row-height
   rule above (a direct-child selector) never reached them — they sized
   naturally and ended up shorter than the fixed-height neighbours. Pin
   them to the same 24px so every pill sits at one height. */
.view-ticket-v3 .vt-pills-row .sla-chip {
  height: 24px; box-sizing: border-box;
}
.view-ticket-v3 .vt-pills-row .privacy {
  font-size: var(--t-1); padding: 0 var(--s-6);   /* was 4px/11px — read smaller than its neighbors */
}
.view-ticket-v3 .vt-status-pill {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 5px var(--s-6); border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: var(--t-1); font-weight: 600;
  line-height: var(--lh-1); cursor: pointer;
  border: 1px solid transparent;
  background: var(--gray-light2, #ebebeb);
  color: var(--black, #1d1f23);
}
.view-ticket-v3 .vt-title {
  font-size: var(--t-7); font-weight: 700;
  color: var(--black, #1d1f23);
  margin: var(--s-2) 0; line-height: 1.2;
  font-family: var(--font-h);
  /* A path, a dump filename or a serial in the title used to run straight
     through the card and give the whole app a horizontal scrollbar. The
     description and comments already wrap (.vt-desc-content, .vt-tl-text);
     the title was the one that did not. */
  overflow-wrap: anywhere;
}
.view-ticket-v3 .vt-title-view {
  display: inline-block; cursor: text;
  padding: var(--s-1) var(--s-3); margin: -2px -6px;
  border-radius: var(--r-1); transition: background .12s ease;
}
.view-ticket-v3 .vt-title-view:hover { background: var(--gray-light2, #ebebeb); }
.view-ticket-v3 .vt-title-input {
  font-family: var(--font-h); font-size: var(--t-7); font-weight: 700;
  color: var(--black, #1d1f23); width: 100%;
  padding: var(--s-1) var(--s-3); margin: -2px -6px;
  border: 2px solid var(--primary-color, #04696F);
  border-radius: var(--r-1); background: #fff;
  outline: none; line-height: 1.2;
}
.view-ticket-v3 .vt-meta-row {
  font-family: var(--font-b);
  font-size: var(--t-2); color: var(--gray, #828282);
  margin: 0;
}
.view-ticket-v3 .vt-meta-row b { color: var(--black, #1d1f23); font-weight: 600; }
/* The History page (ticket_history.html), for someone who reads a request's history but can't open it
   (owner, 28 Oct; approved preview_security_followups v3): the privacy level is a label, not the
   button that opens Privacy & access, and a tag is a label; "Read-only" said once under the title; the
   count beside History. */
.vt-history-only .vt-pills-row .privacy::after { display: none; }
.vt-history-only .vt-pills-row .privacy { cursor: default; }
.vt-history-only .sb__tag:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }   /* a label, not a link */
.vt-history-only .vt-ro-note svg { vertical-align: -3px; margin-inline-end: var(--s-3); }
.vt-history-only .vt-hist-n { font-weight: 400; margin-inline-start: var(--s-4); }
.view-ticket-v3 .vt-sev-desc { color: var(--gray, #828282); }
/* Q195: "Requested by <name> @alias on behalf of <name> @alias", under the title. The names are the
   house person triggers (hover: the person card). */
.view-ticket-v3 .vt-behalf { margin: var(--s-2) 0 0; font-size: var(--t-2); color: var(--gray); line-height: 1.9; }
.view-ticket-v3 .vt-behalf .pp { vertical-align: middle; }
.view-ticket-v3 .vt-behalf__al { color: var(--primary-color); font-weight: 500; }

/* The legacy .grey-block.tab-pane bottom communication section is gone
   now — make sure the legacy .severity-desc paragraph that used to sit
   below the title doesn't leak in. The v3 header puts severity desc
   inline in the meta row. */
/* The legacy view_ticket template wrapped the header + tabs + content in
   a .grey-block. The new v3 layout doesn't use that wrapper, so the
   original .grey-block rule from elsewhere in the file is fine — we
   intentionally don't override it here. */

/* Make the sidebar copy button always visible. The shared .copy-btn rule
   uses opacity:0 + hover-reveal (designed for the busy ticket-list rows).
   In view_ticket the icon sits next to a single ticket number; there's
   nothing busy to hide from, so always-on. */
.view-ticket-v3 .vt-copy-btn.copy-btn { opacity: 1; }
.view-ticket-v3 .vt-copy-btn.copy-btn:focus-visible { outline: 2px solid var(--primary-color, #04696F); outline-offset: 1px; }

/* === SLIM TABS === */
.view-ticket-v3 .vt-tabs {
  display: flex; gap: 0; margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.view-ticket-v3 .vt-tab {
  background: transparent; border: 0;
  padding: var(--s-5) var(--s-8);
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 500;
  color: var(--gray, #828282);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  display: inline-block;
  transition: color .12s ease;
}
.view-ticket-v3 .vt-tab:hover { color: var(--primary-color, #04696F); }
.view-ticket-v3 .vt-tab.active {
  color: var(--primary-color, #04696F);
  border-bottom-color: var(--primary-color, #04696F);
  font-weight: 600;
}

/* === CARDS (description, details, timeline) === */
.view-ticket-v3 .vt-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--r-5);
  padding: var(--s-8) var(--s-9);
  margin-bottom: var(--s-7);
}
.view-ticket-v3 .vt-card h3 {
  margin: 0 0 var(--s-4);
  font-size: var(--t-2); font-weight: 700;
  color: var(--black, #1d1f23);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-h);
}
.view-ticket-v3 .vt-card-toggle {
  background: none; border: 0; cursor: pointer;
  color: var(--primary-color, #04696F);
  font-family: var(--font-b); font-size: var(--t-1); font-weight: 600;
}
.view-ticket-v3 .vt-card-toggle:hover { text-decoration: underline; }
.view-ticket-v3 .vt-card.vt-collapsed .vt-details-body { display: none; }

/* Description card */
.view-ticket-v3 .vt-desc-edit-hint {
  color: var(--gray, #828282);
  font-size: var(--t-1); font-weight: 500;
  font-family: var(--font-b); opacity: 0;
  transition: opacity .12s ease;
}
.view-ticket-v3 .vt-desc-card:hover .vt-desc-edit-hint { opacity: 1; }
.view-ticket-v3 .vt-desc-content {
  font-family: var(--font-b); font-size: var(--t-3); line-height: 1.55;
  color: var(--black, #1d1f23);
  cursor: text; padding: var(--s-2) var(--s-3); margin: -4px -6px;
  border-radius: var(--r-1);
  transition: background .12s ease;
  min-height: 24px;
  white-space: pre-wrap;
  word-break: break-word;
}
.view-ticket-v3 .vt-desc-content:hover { background: var(--gray-light2, #ebebeb); }
/* someone who can't change the description reads it: no edit cursor, no hover (as the read-only title) */
.view-ticket-v3 .vt-desc-content.is-readonly { cursor: text; }
.view-ticket-v3 .vt-desc-content.is-readonly:hover { background: none; }
.view-ticket-v3 .vt-desc-textarea {
  font-family: var(--font-b); font-size: var(--t-3); line-height: 1.55;
  width: 100%; min-height: 120px;
  border: 2px solid var(--primary-color, #04696F);
  border-radius: var(--r-2); padding: var(--s-4) var(--s-5);
  outline: none; resize: vertical;
  display: none;
}
/* Answers (D112; preview_services v2): what the service's form asked, as it was sent. The card's
   own h3 rule (flex, space-between) still applies, so the title sits left and the line right. */
.view-ticket-v3 .sv-ans { display: flex; flex-direction: column; gap: var(--s-5); }
.view-ticket-v3 .sv-ans h3 { gap: var(--s-4); flex-wrap: wrap; }
.view-ticket-v3 .sv-ans-sub { font-family: var(--font-b); font-weight: 400; font-size: var(--t-2); color: var(--gray); }
.view-ticket-v3 .sv-ans-note { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); line-height: 1.5; }
.view-ticket-v3 .sv-ans dl { margin: 0; display: flex; flex-direction: column; }
.view-ticket-v3 .sv-ans dl > div { display: grid; grid-template-columns: minmax(180px, 38%) 1fr; gap: var(--s-6); padding: 9px 0; border-top: 1px solid #F1F3F4; }
.view-ticket-v3 .sv-ans dl > div:first-child { border-top: 0; padding-top: var(--s-1); }
.view-ticket-v3 .sv-ans dt { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); overflow-wrap: anywhere; }
.view-ticket-v3 .sv-ans dd { margin: 0; font-family: var(--font-b); font-size: var(--t-3); color: var(--black); white-space: pre-wrap; overflow-wrap: anywhere; }
.view-ticket-v3 .sv-ans dd.none { color: var(--gray); }
.view-ticket-v3 .sv-ans-who { display: inline-flex; align-items: center; gap: var(--s-4); }
.view-ticket-v3 .sv-ans-who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.view-ticket-v3 .sv-ans-file { display: inline-flex; align-items: center; gap: var(--s-3); margin-inline-end: 14px; }
.view-ticket-v3 .sv-ans-file svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--gray); }
.view-ticket-v3 .sv-ans-file a { color: var(--primary-color, #04696F); font-weight: 600; text-decoration: none; }
.view-ticket-v3 .sv-ans-file a:hover { text-decoration: underline; }
.view-ticket-v3 .sv-ans-file small { color: var(--gray); font-size: var(--t-1); }
@media (max-width: 720px) { .view-ticket-v3 .sv-ans dl > div { grid-template-columns: 1fr; gap: var(--s-1); } }
.view-ticket-v3 .vt-desc-card.editing .vt-desc-textarea { display: block; }
.view-ticket-v3 .vt-desc-card.editing .vt-desc-content { display: none; }
.view-ticket-v3 .vt-desc-actions { display: none; margin-top: var(--s-4); gap: var(--s-4); }
.view-ticket-v3 .vt-desc-card.editing .vt-desc-actions { display: flex; }
.view-ticket-v3 .vt-btn-save,
.view-ticket-v3 .vt-btn-cancel {
  padding: var(--s-3) var(--s-7); border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 500;
  cursor: pointer;
}
.view-ticket-v3 .vt-btn-save {
  background: var(--primary-color, #04696F); color: #fff;
  border: 1px solid var(--primary-color, #04696F);
}
.view-ticket-v3 .vt-btn-cancel {
  background: #fff; color: var(--gray, #828282);
  border: 1px solid var(--border, #e5e7eb);
}
/* The description while it saves (new.js lockDesc): the save-lock's look, inline. Save keeps its colour with a
   white spinner and "Saving…"; Cancel and the text dim and wait. */
.view-ticket-v3 .vt-desc-card.is-locked .vt-desc-textarea { opacity: .75; cursor: progress; }
.view-ticket-v3 .vt-desc-card.is-locked .vt-btn-cancel { opacity: .5; cursor: not-allowed; }
.view-ticket-v3 .vt-btn-save[aria-busy="true"] { position: relative; padding-inline-start: 38px; cursor: progress; }
.view-ticket-v3 .vt-btn-save[aria-busy="true"]::before {
  content: ''; position: absolute; inset-inline-start: 14px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: popup-save-spin 0.7s linear infinite;
}
.view-ticket-v3 .vt-btn-inline {
  background: #fff; color: var(--primary-color, #04696F);
  border: 1px solid var(--primary-color, #04696F);
  padding: var(--s-3) var(--s-7); border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 500;
  cursor: pointer;
}
.view-ticket-v3 .vt-btn-inline:hover {
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
}

/* Pending/Resolved details cards */
.view-ticket-v3 .vt-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) 18px;
  font-family: var(--font-b); font-size: var(--t-2);
}
.view-ticket-v3 .vt-details-label {
  color: var(--gray, #828282);
  font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; margin-bottom: var(--s-1);
}
.view-ticket-v3 .vt-details-value {
  color: var(--black, #1d1f23); line-height: var(--lh-3);
}
.view-ticket-v3 .vt-details-full { grid-column: 1 / -1; }

/* === ACTIVITY TIMELINE === */
.view-ticket-v3 .vt-timeline-toggle {
  display: inline-flex; gap: 0; align-items: center;
  background: var(--gray-light2, #ebebeb); padding: var(--s-1);
  border-radius: var(--r-pill);
}
.view-ticket-v3 .vt-timeline-toggle button {
  background: transparent; border: 0;
  padding: var(--s-2) var(--s-6); border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: var(--t-1);
  color: var(--gray, #828282);
  cursor: pointer; font-weight: 600;
}
.view-ticket-v3 .vt-timeline-toggle button.active {
  background: #fff; color: var(--black, #1d1f23);
  box-shadow: var(--sh-1);
}
/* Locked for someone who can't see internal notes on this ticket: shown, not
   clickable, the reason on hover -- same look as the composer's locked button. */
.view-ticket-v3 .vt-timeline-toggle button[disabled] {
  opacity: .45; cursor: not-allowed;
}
.view-ticket-v3 .vt-tl-entry {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: var(--s-6); padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  font-family: var(--font-b); font-size: var(--t-2);
  /* C2: anchors the hover action bar */
  position: relative;
}

/* ===== Comments 2.0 C2 (approved preview_comments_v2) ===== */
/* Hover action bar — Jira pattern: appears top-right of the entry. */
.view-ticket-v3 .vt-tl-actionbar {
  position: absolute; top: 8px; inset-inline-end: 10px;
  display: none; align-items: center; gap: var(--s-1);
  background: #fff; border: 1px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-3); padding: var(--s-1); box-shadow: var(--sh-2);
  z-index: 5;
}
/* 2.1 hover isolation: the comment's bar shows only while the pointer
   is on the comment itself — not while it's inside a nested reply or
   the inline reply editor (and vice-versa). */
.view-ticket-v3 .vt-tl-entry:hover:not(:has(.vt-tl-reply:hover)):not(:has(.vt-thread-mount:hover)) > .vt-tl-actionbar,
.view-ticket-v3 .vt-tl-actionbar:focus-within { display: inline-flex; }
.view-ticket-v3 .vt-tl-reply:hover > .vt-tl-actionbar { display: inline-flex; }
.view-ticket-v3 .vt-tl-actionbar button {
  background: transparent; border: 0; cursor: pointer;
  padding: 5px 7px; border-radius: var(--r-2); color: var(--gray, #828282);
  font-size: var(--t-2); line-height: var(--lh-1); display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-b); font-weight: 600;
}
.view-ticket-v3 .vt-tl-actionbar button:hover { background: var(--light-background, #F6F6F6); color: var(--black, #181818); }
.view-ticket-v3 .vt-tl-actionbar button svg { width: 14px; height: 14px; }
.view-ticket-v3 .vt-tl-actionbar button .plus { font-size: var(--t-1); }
.view-ticket-v3 .vt-tl-actionbar .sep { width: 1px; height: 16px; background: var(--gray-light2, #EBEBEB); margin: 0 var(--s-1); }

/* Reaction pills */
.view-ticket-v3 .vt-tl-reactions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.view-ticket-v3 .vt-tl-reactions:not(:empty) { margin-top: var(--s-4); }
.view-ticket-v3 .vt-rx-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--gray-light2, #EBEBEB); background: #fff;
  border-radius: var(--r-pill); padding: var(--s-1) 9px; cursor: pointer;
  font-family: var(--font-b); font-size: var(--t-1); color: var(--black, #181818);
  transition: border-color .12s ease, background .12s ease;
}
/* Hover = logo orange (approved preview_reaction_hover) */
.view-ticket-v3 .vt-rx-pill:hover { border-color: var(--logo-orange, #E26E00); }
.view-ticket-v3 .vt-rx-pill { position: relative; }
/* Option A dark tooltip: who reacted. :focus-visible (keyboard), never
   :focus — a mouse click would pin it open. */
.view-ticket-v3 .vt-rx-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); display: none; z-index: 10040;
  background: var(--black, #181818); color: #fff; border-radius: var(--r-3);
  padding: 7px var(--s-6); font-family: var(--font-b); font-size: var(--t-1);
  font-weight: 400; line-height: 1.45; text-align: center;
  max-width: 280px; width: max-content; white-space: normal;
  box-shadow: var(--sh-2); pointer-events: none;
}
.view-ticket-v3 .vt-rx-tip b { font-weight: 700; }
.view-ticket-v3 .vt-rx-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 5px solid transparent;
  border-top-color: var(--black, #181818);
}
.view-ticket-v3 .vt-rx-pill:hover .vt-rx-tip,
.view-ticket-v3 .vt-rx-pill:focus-visible .vt-rx-tip { display: block; }
.view-ticket-v3 .vt-rx-pill.mine {
  border-color: var(--primary-color, #04696F);
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  color: var(--primary-color, #04696F); font-weight: 600;
}
/* Orange hover must beat the .mine teal border (same specificity —
   source order decides; .mine is declared above). Covers both states. */
.view-ticket-v3 .vt-rx-pill:hover,
.view-ticket-v3 .vt-rx-pill.mine:hover { border-color: var(--logo-orange, #E26E00); }
.view-ticket-v3 .vt-rx-pill .cnt { font-size: var(--t-1); font-variant-numeric: tabular-nums; }

/* Emoji picker popover (curated six) */
.vt-rx-picker {
  position: fixed; z-index: 10060; display: none;
  grid-template-columns: repeat(7, 36px); grid-auto-rows: 36px; gap: var(--s-1);
  background: #fff; border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-4);
  box-shadow: var(--sh-3); padding: var(--s-3);
}
.vt-rx-picker.show { display: inline-grid; }
/* Every cell identical: same square, same centring — emoji or badge. */
.vt-rx-picker button {
  background: none; border: 0; font-size: var(--t-5); line-height: var(--lh-1); padding: 0;
  border-radius: var(--r-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.vt-rx-picker button:hover { background: var(--light-background, #F6F6F6); }
.vt-rx-picker .rx-badge { width: 28px; height: 20px; padding: 0; justify-content: center; }
.vt-rx-picker .rx-emoji { display: inline-flex; align-items: center; justify-content: center; }

/* "(edited)" label + edit-in-place shell */
.view-ticket-v3 .vt-tl-edited { color: var(--gray, #828282); font-size: var(--t-1); font-style: italic; cursor: default; }
.view-ticket-v3 .vt-edit-mount { margin-top: var(--s-4); }
.ucomp-shell--edit { margin: 0; }
.ucomp-edit-cancel {
  background: transparent; color: var(--gray, #828282); border: 0; cursor: pointer;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; padding: var(--s-3) var(--s-5);
}
.ucomp-edit-cancel:hover { color: var(--black, #181818); }

/* Copied-link arrival flash — Option D "Steady glow" (approved
   preview_comments_v2_1): border + soft outer glow in the logo orange
   (#BE630D — global.css --orange), hold, then even fade. Border-only,
   background untouched. */
.view-ticket-v3 .vt-tl-flash { animation: vt-tl-flash-glow 2.8s linear; border-radius: var(--r-3); }
@keyframes vt-tl-flash-glow {
  0%, 45% { border-color: var(--logo-orange, #E26E00); box-shadow: var(--sh-2); }
  100%    { border-color: var(--border, #e5e7eb); box-shadow: 0 0 0 0 transparent; }
}
/* Replies carry no border, so the border-color half of the glow was
   invisible on them (2026-07-06 report) — a 1px box-shadow ring plays
   the same Steady-glow role without any layout shift. */
.view-ticket-v3 .vt-tl-reply.vt-tl-flash { animation: vt-tl-flash-glow-reply 2.8s linear; }
@keyframes vt-tl-flash-glow-reply {
  0%, 45% { box-shadow: 0 0 0 1px var(--logo-orange, #E26E00), 0 0 14px 1px color-mix(in srgb, var(--logo-orange, #E26E00) 30%, transparent); }
  100%    { box-shadow: 0 0 0 0 transparent; }
}

/* ===== 2.1 threads (approved preview_comments_v2_1) ===== */
.view-ticket-v3 .vt-tl-replies {
  margin-top: var(--s-5); padding-inline-start: var(--s-7);
  border-inline-start: 2px solid color-mix(in srgb, var(--primary-color, #04696F) 25%, #fff);
}
.view-ticket-v3 .vt-tl-reply {
  display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s-5);
  padding: var(--s-4) 0; border-bottom: 1px dashed var(--gray-light2, #EBEBEB);
  position: relative;
}
.view-ticket-v3 .vt-tl-reply:last-child { border-bottom: 0; }
.view-ticket-v3 .vt-tl-reply .vt-tl-avatar { width: 28px; height: 28px; font-size: var(--t-1); }
.view-ticket-v3 .vt-tl-reply > .vt-tl-actionbar { top: 4px; }
.view-ticket-v3 .vt-reply-link {
  display: inline-flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4);
  color: var(--primary-color, #04696F); font-family: var(--font-b);
  font-size: var(--t-1); font-weight: 600; cursor: pointer;
  background: none; border: 0; padding: 0;
}
.view-ticket-v3 .vt-reply-link:hover { text-decoration: underline; }
.view-ticket-v3 .vt-thread-mount:not(:empty) { margin-top: var(--s-4); }
/* D226: answering a team note. The reply has no visibility switch of its own,
   so the box says where the answer goes before anything is typed. Same teal
   tint as the note it sits under (.vt-tl-internal), one line, not a warning. */
.view-ticket-v3 .vt-reply-note {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-4) 0 var(--s-3); padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--primary-color, #04696F) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 20%, transparent);
  border-radius: var(--r-1);
  color: var(--primary-color, #04696F);
  font-family: var(--font-b); font-size: var(--t-1); font-weight: 600;
  line-height: var(--lh-2);
}
.view-ticket-v3 .vt-reply-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* 2.1 reactions: text badges + uniform sizing (emoji and badge share
   a fixed-height leading slot so every pill reads the same). */
.rx-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; font-size: var(--t-1);
  letter-spacing: .02em; padding: var(--s-1) var(--s-3); border-radius: var(--r-1); line-height: 1.2;
}
.rx-badge--ty  { background: color-mix(in srgb, var(--primary-color, #04696F) 14%, #fff); color: var(--primary-color, #04696F); }
.rx-badge--ack { background: var(--orange-light, #FFF0E2); color: var(--orange, #BE630D); }
.rx-badge--yw  { background: #EDE9FE; color: #6D28D9; }
.view-ticket-v3 .vt-rx-pill { height: 20px; padding: 0 7px; gap: var(--s-2); }
.view-ticket-v3 .vt-rx-pill .rx-emoji { display: inline-flex; align-items: center; justify-content: center; height: 14px; font-size: var(--t-1); line-height: var(--lh-1); transform: translateY(1px); }   /* optical centering — emoji baselines sit high */
.view-ticket-v3 .vt-rx-pill .rx-badge { height: 14px; padding: 0 var(--s-2); font-size: var(--t-1); }
.view-ticket-v3 .vt-rx-pill .cnt { font-size: var(--t-1); }

/* C3: profile hover card (approved preview_comments_v2) */
.view-ticket-v3 .vt-tl-author [data-uid] { cursor: pointer; }

/* C4: Closed lifecycle (approved preview_comments_v2) */
.view-ticket-v3 .vt-status-pill--locked { cursor: not-allowed; opacity: .85; }
/* Was sized with font-size for a 🔒 emoji. It is a stroked SVG now — emoji
   render differently on every OS, can't take the brand colour, and don't
   scale with the type — so it needs real dimensions and inherits currentColor
   from the pill, which means it picks up each status family's colour. */
.view-ticket-v3 .vt-status-lock { width: 11px; height: 11px; opacity: .75;
  margin-inline-end: var(--s-2); vertical-align: -1px; flex: 0 0 auto; }
/* Sidebar status while it is locked. Dropping .editable already removes the
   chevron and the hover pill, so this only has to say "not clickable" —
   deliberately NOT .sb__val--locked, whose grey italic reads as "no value
   set" rather than "this value is held". */
.view-ticket-v3 .sb__field > .val.val--locked { cursor: not-allowed; }
.view-ticket-v3 .vt-closed-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5);
  background: var(--light-background, #F6F6F6);
  border: 1px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-4); padding: var(--s-6) var(--s-8);
  font-family: var(--font-b); font-size: var(--t-2);
  color: var(--black, #181818); margin-bottom: var(--s-6);
}
.view-ticket-v3 .vt-closed-banner svg { width: 16px; height: 16px; color: var(--gray, #828282); flex-shrink: 0; }
/* the words take the row; on a phone the follow-up button goes under them, not beside a thin column (A4) */
.view-ticket-v3 .vt-closed-banner__text { flex: 1 1 12em; min-width: 0; }
.view-ticket-v3 .vt-closed-banner__cta {
  margin-inline-start: auto; background: var(--primary-color, #04696F); color: #fff;
  border: 0; cursor: pointer; font-family: var(--font-h); font-size: var(--t-1);
  font-weight: 600; padding: var(--s-3) var(--s-8); border-radius: var(--r-pill); white-space: nowrap;
  transition: filter .12s ease;
}
.view-ticket-v3 .vt-closed-banner__cta:hover { filter: brightness(1.12); }
.view-ticket-v3 .vt-closed-banner__cta:disabled { opacity: .6; cursor: wait; }
/* Watchlist button (approved preview_watchlist) */
.view-ticket-v3 .vt-watch-btn { position: relative; }
/* Bell toggle (approved preview_watch_button Option A): outline bell
   off, filled bell on — swapped by the .watching class. */
.view-ticket-v3 .vt-watch-btn .w-bell { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: var(--s-2); }
.view-ticket-v3 .vt-watch-btn .w-bell--on { display: none; }
.view-ticket-v3 .vt-watch-btn.watching .w-bell--off { display: none; }
.view-ticket-v3 .vt-watch-btn.watching .w-bell--on { display: inline; }
.view-ticket-v3 .vt-watch-btn.watching { background: var(--primary-color, #04696F); color: #fff; }
.view-ticket-v3 .vt-watch-btn.watching:hover { background: var(--primary-color, #04696F); filter: brightness(1.08); }
.view-ticket-v3 .vt-watch-btn .cnt-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--primary-color, #04696F) 12%, #fff);
  color: var(--primary-color, #04696F);
  font-size: var(--t-1); font-weight: 700; margin-inline-start: var(--s-3); vertical-align: 1px;
  transition: box-shadow .12s ease;
}
/* The count badge is the hover target for the watchers list (not the whole
   button) — a subtle ring on hover signals that it's the spot to point at. */
.view-ticket-v3 .vt-watch-btn .cnt-badge:hover { box-shadow: var(--sh-focus); }
.view-ticket-v3 .vt-watch-btn.watching .cnt-badge { background: rgba(255, 255, 255, .22); color: #fff; }
.view-ticket-v3 .vt-watch-btn.watching .cnt-badge:hover { box-shadow: var(--sh-focus); }
.vt-watchers-pop {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px); width: 240px;
  background: #fff; border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-5);
  box-shadow: var(--sh-3); padding: var(--s-6);
  font-family: var(--font-b); text-align: start; z-index: 10035;
  color: var(--black, #181818); font-weight: 400; cursor: default;
}
.vt-watchers-pop[hidden] { display: none; }
.vt-watchers-pop .t { display: block; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray, #828282); margin-bottom: var(--s-4); }
.vt-watchers-pop .w-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) 0; font-size: var(--t-2); }
.vt-watchers-pop .w-av { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--logo-orange, #E26E00); background: #E1EDEE; color: var(--primary-color, #04696F); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.vt-watchers-pop .w-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.vt-watchers-pop .why { margin-inline-start: auto; color: var(--gray, #828282); font-size: var(--t-1); font-style: italic; }

/* sidebar primary quick-action variant (follow-up) */
.view-ticket-v3 .sb__qa-btn--primary {
  background: var(--primary-color, #04696F); color: #fff;
  border-color: var(--primary-color, #04696F);
}
.view-ticket-v3 .sb__qa-btn--primary:hover { filter: brightness(1.12); }
.view-ticket-v3 .vt-tl-entry:last-child { border-bottom: 0; }
.view-ticket-v3 .vt-tl-comment {
  padding: var(--s-7); background: #fafbfc;
  border-radius: var(--r-3); border: 1px solid var(--border, #e5e7eb);
  margin: var(--s-3) 0;
}
/* Internal note treatment — Option A: soft teal tint on the entry,
   solid teal "Team only" badge. Everything is derived from
   --primary-color (#04696F) so the internal channel reads as an
   on-brand UBridge feature, not a generic indigo message type. */
.view-ticket-v3 .vt-tl-internal {
  background: color-mix(in srgb, var(--primary-color, #04696F) 6%, #fff);
  border-color: color-mix(in srgb, var(--primary-color, #04696F) 22%, transparent);
  border-inline-start: 3px solid var(--primary-color, #04696F);
  padding-inline-start: 11px;
}
.view-ticket-v3 .vt-internal-badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--primary-color, #04696F); color: #fff;
  font-size: var(--t-1); font-weight: 700;
  padding-block: var(--s-1);
  padding-inline: var(--s-3) 7px; border-radius: var(--r-1);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-inline-start: var(--s-3); vertical-align: middle;
  line-height: var(--lh-1);
}
.view-ticket-v3 .vt-internal-badge svg { width: 11px; height: 11px; }
.view-ticket-v3 .vt-tl-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  /* Photo-loading placeholder: primary teal, not amber (2026-07-06). */
  background: var(--primary-color, #04696F); color: #fff;
  /* Logo-orange ring, same treatment as reaction pill borders (user
     spec 2026-07-06). Covers comments, replies, and the System bolt. */
  border: 1px solid var(--logo-orange, #E26E00);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--t-1); font-weight: 700; font-family: var(--font-h);
}
.view-ticket-v3 .vt-tl-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.view-ticket-v3 .vt-tl-avatar-sys {
  background: #e0f2fe; color: #0369a1;
  font-size: var(--t-1);
}
/* System actor (approved preview_avatars): fixed identity across all
   tenants — the SVG carries its own orange bolt AND a baked-in teal
   (#04696F) ring, so NO CSS border here (a CSS border left a white
   sliver between the orange and the teal — fixed 2026-07-07). */
.view-ticket-v3 .vt-tl-avatar--system { background: transparent; border: none; }
.view-ticket-v3 .vt-tl-avatar--system img { width: 100%; height: 100%; border-radius: 50%; }
.view-ticket-v3 .vt-tl-body { min-width: 0; color: var(--black, #1d1f23); }
.view-ticket-v3 .vt-tl-author { line-height: 1.4; }
.view-ticket-v3 .vt-tl-author b { font-weight: 600; }
/* a11y (audit #13): --gray #828282 is ~3.9:1 on white. Darker grey for
   timestamps/aliases so secondary text clears 4.5:1 (kept local to the
   View Ticket page rather than shifting the global token). */
.view-ticket-v3 .vt-tl-meta { color: #5f6670; font-size: var(--t-1); }
.view-ticket-v3 .vt-tl-text {
  margin-top: var(--s-3); line-height: 1.55;
  word-break: break-word; white-space: pre-wrap;
}
.view-ticket-v3 .vt-tl-text br { display: block; content: ""; margin-top: 0; }
/* D194 5e (D204): each line or paragraph takes its own direction — Arabic right to left, English left to right,
   even inside one reply — and starts on its own side, taken from its first letter as in WhatsApp, Slack and
   GitHub. List items take theirs from dir="auto" (composer.bidi_html), so their paragraphs are left out of the
   per-line rule; a quote's bar follows the quote's dir="auto", and each paragraph in it takes its own direction.
   text-align: start on the item itself, because Safari resolves an inherited "start" by the parent's direction.
   English replies unchanged. */
.view-ticket-v3 .vt-tl-text,
.view-ticket-v3 .vt-tl-text p:not(li p),
.view-ticket-v3 .vt-desc-content,
.view-ticket-v3 .vt-desc-textarea { unicode-bidi: plaintext; text-align: start; }
.view-ticket-v3 .vt-tl-text li,
.view-ticket-v3 .vt-tl-text blockquote,
.view-ticket-v3 .vt-tl-text li p,
.view-ticket-v3 .vt-tl-text blockquote p { text-align: start; }
/* Rich-composer content (format='html' rows). Same layout as .vt-tl-text
   but pre-wrap is off — the HTML already carries structural whitespace
   in tags. Inline formatting (b, i, code, mentions) rides on top. */
.view-ticket-v3 .vt-tl-text.vt-tl-rich { white-space: normal; }
.view-ticket-v3 .vt-tl-text.vt-tl-rich p { margin: 0 0 var(--s-3); }
.view-ticket-v3 .vt-tl-text.vt-tl-rich p:last-child { margin-bottom: 0; }
/* Same global-reset override for rendered comments in the timeline. */
/* the indent sits on each item's own side (margin-inline-start), so an Arabic item is as wide as an English one */
.view-ticket-v3 .vt-tl-text.vt-tl-rich ul { margin: var(--s-2) 0; padding: 0; list-style: disc; }
.view-ticket-v3 .vt-tl-text.vt-tl-rich ol { margin: var(--s-2) 0; padding: 0; list-style: decimal; }
.view-ticket-v3 .vt-tl-text.vt-tl-rich li {
  margin-bottom: 3px; margin-inline-start: 22px; list-style: inherit; display: list-item;
}
/* a sub-item in the other language from its parent item steps in twice, so it still sits inside its parent, not
   level with a top item of its own language; same-language lists are unchanged (5e review) */
.view-ticket-v3 .vt-tl-text.vt-tl-rich li:dir(ltr) > :is(ul, ol) > li:dir(rtl),
.view-ticket-v3 .vt-tl-text.vt-tl-rich li:dir(rtl) > :is(ul, ol) > li:dir(ltr) { margin-inline-start: 44px; }
.view-ticket-v3 .vt-tl-text.vt-tl-rich blockquote {
  margin: var(--s-3) 0; padding: var(--s-3) var(--s-6);
  border-inline-start: 3px solid var(--gray-light2, #EBEBEB);
  color: var(--gray, #828282); font-style: italic;
}
.view-ticket-v3 .vt-tl-text.vt-tl-rich code {
  background: var(--gray-light2, #EBEBEB); color: var(--primary-color, #04696F);
  padding: 1px 5px; border-radius: var(--r-1);
  font-family: ui-monospace, 'SF Mono', monospace; font-size: var(--t-1);
}
.view-ticket-v3 .vt-tl-text.vt-tl-rich pre {
  background: var(--black, #181818); color: #f8f8f2;
  padding: var(--s-4) var(--s-6); border-radius: var(--r-2); overflow: auto;
  max-height: calc(12 * var(--lh-3) * 1em + 2 * var(--s-4));   /* a long log scrolls inside its box (9 Nov 2026) */
  font-family: ui-monospace, 'SF Mono', monospace; font-size: var(--t-1); line-height: var(--lh-3);
  margin: var(--s-3) 0;
}
.view-ticket-v3 .vt-tl-text.vt-tl-rich pre code {
  background: transparent; color: inherit; padding: 0;
}
.view-ticket-v3 .vt-tl-text.vt-tl-rich a {
  color: var(--primary-color, #04696F); text-decoration: underline;
}
.view-ticket-v3 .vt-tl-text.vt-tl-rich .mention {
  background: color-mix(in srgb, var(--primary-color, #04696F) 12%, #fff);
  color: var(--primary-color, #04696F);
  padding-block: 0;
  padding-inline: var(--s-1) var(--s-2); border-radius: var(--r-1); font-weight: 600;
  font-size: var(--t-2);
}
.view-ticket-v3 .vt-tl-text.vt-tl-rich .mention::before { content: '@'; }

/* Inline attachment chips inside a comment (comment_attachments join) */
.view-ticket-v3 .vt-tl-atts {
  display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4);
}
.view-ticket-v3 .vt-tl-att-chip {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding-block: 5px;
  padding-inline: var(--s-4) var(--s-5);
  background: var(--light-background, #F6F6F6);
  border: 1px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-3);
  font-size: var(--t-1); color: var(--black, #181818); text-decoration: none;
  transition: border-color .12s ease, background .12s ease;
}
.view-ticket-v3 .vt-tl-att-chip:hover {
  border-color: var(--primary-color, #04696F);
  background: color-mix(in srgb, var(--primary-color, #04696F) 5%, #fff);
}
.view-ticket-v3 .vt-tl-att-ico {
  color: var(--primary-color, #04696F); font-size: var(--t-1);
}
.view-ticket-v3 .vt-tl-att-fn { font-weight: 600; }
.view-ticket-v3 .vt-tl-att-sz { color: var(--gray, #828282); font-size: var(--t-1); }

/* Attachment type badges + preview (approved preview_attachment_type_previews v3).
   Chip geometry stays uniform for every file type; the 20×20 badge slot
   carries the type color (mirrors the gallery icon palette) — and for
   images, a micro-thumbnail of the actual picture. */
.view-ticket-v3 .vt-tl-att-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: var(--r-1); flex-shrink: 0;
  overflow: hidden; position: relative;
}
.view-ticket-v3 .vt-tl-att-badge svg { width: 12px; height: 12px; }
.view-ticket-v3 .vt-tl-att-badge.type-pdf { background: #FEE2E2; color: #DC2626; }
.view-ticket-v3 .vt-tl-att-badge.type-doc { background: #DBEAFE; color: #2563EB; }
.view-ticket-v3 .vt-tl-att-badge.type-xls { background: #DCFCE7; color: #16A34A; }
.view-ticket-v3 .vt-tl-att-badge.type-zip { background: #F3E8FF; color: #9333EA; }
.view-ticket-v3 .vt-tl-att-badge.type-video { background: #111; color: #fff; }
.view-ticket-v3 .vt-tl-att-badge.type-img { background: color-mix(in srgb, var(--primary-color, #04696F) 15%, #fff); color: var(--primary-color, #04696F); }
.view-ticket-v3 .vt-tl-att-badge.type-file { background: var(--gray-light2, #EBEBEB); color: var(--gray, #828282); }
.view-ticket-v3 .vt-tl-att-badge img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.view-ticket-v3 .vt-tl-att-chip.is-previewable { cursor: zoom-in; }

/* Gallery: real image thumbnail filling the 40×40 icon cell. Sits on
   top of the type icon; onerror removes it so the icon shows through. */
.att-tab-v3__ico img.att-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; cursor: zoom-in;
}

/* Preview overlay — image / pdf(iframe) / video / audio modes. */
.att-pv {
  position: fixed; inset: 0; background: rgba(10, 12, 14, .88);
  display: flex; align-items: center; justify-content: center;
  z-index: 10050; padding: var(--s-12) var(--s-10) 84px;
}
.att-pv[hidden] { display: none; }
.att-pv__img {
  max-width: 92vw; max-height: 76vh; border-radius: var(--r-4);
  box-shadow: var(--sh-4); cursor: zoom-out;
}
.att-pv__doc {
  width: min(860px, 92vw); height: 76vh; border: 0; border-radius: var(--r-4);
  box-shadow: var(--sh-4); background: #3c3f43;
}
.att-pv__video {
  max-width: min(820px, 92vw); max-height: 76vh; border-radius: var(--r-4);
  box-shadow: var(--sh-4); background: #000;
}
.att-pv__audio { width: min(480px, 92vw); }
.att-pv__bar {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s-7);
  background: rgba(24, 24, 24, .82); backdrop-filter: blur(6px);
  padding-block: var(--s-4);
  padding-inline: 18px var(--s-5); border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: var(--t-2); color: #fff;
  max-width: 90vw;
}
.att-pv__fn {
  font-weight: 600; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 380px;
}
.att-pv__sz { color: rgba(255, 255, 255, .65); font-size: var(--t-1); flex-shrink: 0; }
.att-pv__dl {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: var(--primary-color, #04696F); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  padding: var(--s-3) var(--s-8); border-radius: var(--r-pill); text-decoration: none;
  transition: filter .12s ease;
}
.att-pv__dl:hover { filter: brightness(1.15); color: #fff; }
.att-pv__dl svg { width: 13px; height: 13px; }
.att-pv__close {
  position: absolute; top: 14px; inset-inline-end: 18px; color: #fff; font-size: var(--t-7);
  background: rgba(24, 24, 24, .5); border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.att-pv__close:hover { background: rgba(24, 24, 24, .8); }
.att-pv__esc-hint {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .55); font-family: var(--font-b); font-size: var(--t-1);
}
.att-pv__esc-hint kbd {
  background: rgba(255, 255, 255, .16); padding: 1px 7px; border-radius: var(--r-1);
  font-family: ui-monospace, monospace;
}

.view-ticket-v3 .vt-tl-ts {
  color: var(--gray, #828282); font-size: var(--t-1);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.view-ticket-v3 .vt-tl-entry[data-filter-hide="true"] { display: none; }
.view-ticket-v3 .vt-tl-pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-6) 0 var(--s-2);
  font-family: var(--font-b); font-size: var(--t-2); color: var(--gray, #828282);
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: var(--s-4);
}
.view-ticket-v3 .vt-tl-pagination a {
  color: var(--primary-color, #04696F); text-decoration: none; font-weight: 600;
}
.view-ticket-v3 .vt-tl-pagination a:hover { text-decoration: underline; }
/* Long requests (owner, 8 Nov 2026): "Show earlier" between the newest entries and the pinned first message */
.view-ticket-v3 .vt-tl-more { display: flex; justify-content: center; padding: var(--s-4) 0; }
.view-ticket-v3 .vt-tl-first { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
.view-ticket-v3 .vt-tl-first__l {
  font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; color: var(--gray, #828282);
  text-transform: uppercase; letter-spacing: .04em;
}
/* a long description folds after about eight lines; "Show all" opens the rest (same card, no reload) */
.view-ticket-v3 .vt-desc-content.is-folded {
  max-height: 12em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.view-ticket-v3 .vt-desc-more {
  background: none; border: 0; padding: var(--s-2) 0 0; cursor: pointer;
  font-family: var(--font-b); font-size: var(--t-2); font-weight: 600; color: var(--primary-color, #04696F);
}
.view-ticket-v3 .vt-desc-more:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-1); }
.view-ticket-v3 .vt-desc-card.editing .vt-desc-more { display: none; }

/* #5 real-time: brief teal pulse when a sidebar/header chip is live-swapped
   because another user changed the ticket (status/severity/assignee/CTI). Draws
   the eye to what moved without a jarring flash. Paired with a bottom-right
   toast naming who changed what. */
@keyframes vt-remote-flash {
  0%   { background-color: color-mix(in srgb, var(--primary-color, #04696F) 20%, transparent);
         box-shadow: var(--sh-focus); }
  65%  { background-color: color-mix(in srgb, var(--primary-color, #04696F) 9%, transparent); }
  100% { background-color: transparent; box-shadow: var(--sh-focus); }
}
.view-ticket-v3 .vt-remote-flash { animation: vt-remote-flash 1.8s ease-out; border-radius: var(--r-2); }

/* Activity empty state — filter-aware (comments / internal / changes / all).
   Shown when the active filter matches zero entries, so a fresh ticket
   (or the Internal tab with no notes) teaches instead of showing a void
   (Notion/Linear pattern). Copy is set per-filter in new.js applyFilter(). */
.view-ticket-v3 .vt-tl-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px var(--s-9) 30px; gap: 3px;
}
.view-ticket-v3 .vt-tl-empty__ico {
  width: 44px; height: 44px; border-radius: var(--r-5); margin-bottom: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary-color, #04696F) 9%, #fff);
  color: var(--primary-color, #04696F);
}
.view-ticket-v3 .vt-tl-empty__ico svg { width: 22px; height: 22px; }
.view-ticket-v3 .vt-tl-empty__title {
  font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: var(--black, #181818);
}
.view-ticket-v3 .vt-tl-empty__desc {
  font-size: var(--t-2); color: var(--gray, #828282); line-height: var(--lh-3); max-width: 340px;
}

/* Composer.
   Composer now sits BETWEEN the Activity heading + filter tabs and
   the timeline entries — so it needs a divider on BOTH sides to give
   it equal breathing room, matching the pagination-row divider that
   sits below the last visible entry. Same border colour + padding
   values on both edges. */
.view-ticket-v3 .vt-composer {
  margin-top: 18px; padding-top: var(--s-8);
  border-top: 1px solid var(--border, #e5e7eb);
  margin-bottom: 18px; padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.view-ticket-v3 .vt-composer-row {
  display: flex; gap: var(--s-6); align-items: flex-start;
}
/* Support door v2 PR 3 (D262): who "Reply to customer" reaches, above the box on a request a customer sent. */
.view-ticket-v3 .vt-sd-hint {
  margin: 18px 0 0; padding: var(--s-5) var(--s-7); border-radius: var(--r-4);
  background: var(--teal-wash); font-size: var(--t-2); line-height: var(--lh-3); color: var(--ink-2);
}
.view-ticket-v3 .vt-composer textarea {
  flex: 1; min-height: 64px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--r-3); padding: var(--s-5) var(--s-7);
  font-family: var(--font-b); font-size: var(--t-3);
  resize: vertical; outline: none;
  transition: border-color .12s ease, background .12s ease;
}
.view-ticket-v3 .vt-composer textarea:focus {
  outline: 2px solid var(--primary-color, #04696F);
  outline-offset: -1px;
  border-color: var(--primary-color, #04696F);
}
.view-ticket-v3 .vt-composer.internal-mode textarea {
  background: color-mix(in srgb, var(--primary-color, #04696F) 6%, #fff);
  border-color: color-mix(in srgb, var(--primary-color, #04696F) 22%, transparent);
}
.view-ticket-v3 .vt-composer.internal-mode textarea:focus {
  outline-color: var(--primary-color, #04696F);
  border-color: var(--primary-color, #04696F);
}
.view-ticket-v3 .vt-composer-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-5); flex-wrap: wrap; gap: var(--s-4);
}
.view-ticket-v3 .vt-composer-toggle {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-b); font-size: var(--t-2); color: var(--gray, #828282);
  cursor: pointer;
}
.view-ticket-v3 .vt-composer-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.view-ticket-v3 .vt-composer-toggle input { accent-color: var(--primary-color, #04696F); }
.view-ticket-v3 .vt-composer-toggle.is-active {
  color: var(--primary-color, #04696F); font-weight: 600;
}
.view-ticket-v3 .vt-composer-submit {
  background: var(--primary-color, #04696F); color: #fff; border: 0;
  padding: var(--s-4) 18px; border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 500;
  cursor: pointer; transition: background .12s ease;
}
.view-ticket-v3 .vt-composer-submit:hover:not(:disabled) { background: var(--primary-dark, #034E54); }
.view-ticket-v3 .vt-composer-submit:disabled {
  background: var(--gray-light2, #ebebeb); cursor: not-allowed; color: var(--gray, #828282);
}
.view-ticket-v3 .vt-composer-submit.internal { background: var(--primary-color, #04696F); }
.view-ticket-v3 .vt-composer-submit.internal:hover:not(:disabled) { background: var(--secondary-color, #035459); }
.view-ticket-v3 .vt-composer-hint { font-size: var(--t-1); color: var(--gray, #828282); }
/* When viewing the Internal tab, the toggle is redundant — every send
   is an internal note by default. Hide the toggle and the "Send" button
   floats right on its own. */
.view-ticket-v3 .vt-composer.internal-tab-forced .vt-composer-toggle { display: none; }
.view-ticket-v3 .vt-composer.internal-tab-forced .vt-composer-actions { justify-content: flex-end; }
.view-ticket-v3 .vt-kbd {
  font-family: var(--font-b);
  font-size: var(--t-1); color: var(--gray, #828282);
  background: var(--gray-light2, #ebebeb);
  padding: 1px 5px; border-radius: var(--r-1); margin: 0 var(--s-2);
  border: 1px solid #d4d4d4; border-bottom-width: 2px;
}

/* === PICKER POPOVERS === */
.vt-picker-pop {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--r-3);
  box-shadow: var(--sh-3);
  padding: var(--s-3);
  z-index: 1000;
  min-width: 220px;
  max-width: 320px;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.vt-picker-pop.is-open { display: block; }
.vt-picker-pop button {
  background: transparent; border: 0; width: 100%;
  padding: 7px var(--s-5); text-align: start;
  font-family: var(--font-b); font-size: var(--t-2);
  color: var(--black, #1d1f23);
  cursor: pointer; border-radius: var(--r-1);
  display: flex; align-items: center; gap: var(--s-4);
}
.vt-picker-pop button:hover { background: var(--gray-light2, #ebebeb); }
/* A choice the ticket's policy fences off (Part B, locked routing): listed so
   the person sees it exists, never pickable. */
.vt-picker-pop button:disabled { opacity: .5; cursor: not-allowed; }
.vt-picker-pop button:disabled:hover { background: none; }
.vt-picker-pop button.is-current {
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  color: var(--primary-color, #04696F);
  font-weight: 600;
}
.vt-picker-pop button .vt-pick-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.vt-picker-pop button .vt-pick-hint {
  color: var(--gray, #828282); font-size: var(--t-1); margin-inline-start: auto;
}
.vt-picker-pop button.is-active { background: var(--gray-light2, #ebebeb); }

/* Searchable picker (assignee): pinned search + scrollable list, and a
   leading avatar per option. */
.vt-picker-pop.has-search { overflow: hidden; }
.vt-pick-search {
  width: 100%; padding: 7px var(--s-5); margin-bottom: var(--s-3);
  border: 1px solid var(--gray-light2, #ebebeb); border-radius: var(--r-2);
  font-family: var(--font-b); font-size: var(--t-2);
}
.vt-pick-search:focus {
  outline: none; border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}
.vt-pick-list { max-height: 260px; overflow-y: auto; }
.vt-picker-pop button .vt-pick-av {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--logo-orange, #E26E00);
  background: #E1EDEE; color: var(--primary-color, #04696F);
  display: inline-flex; align-items: center; justify-content: center;
}
.vt-picker-pop button .vt-pick-av--ph {
  border-color: transparent; background: var(--gray-light2, #ebebeb); color: var(--gray, #828282);
}
.vt-picker-pop button .vt-pick-label {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vt-pick-empty {
  padding: var(--s-6); text-align: center; color: var(--gray, #828282);
  font-family: var(--font-b); font-size: var(--t-2);
}
/* The reason a list is locked (e.g. the service's policy on who assigns). */
.vt-pick-note {
  padding: var(--s-5) var(--s-6); color: #6c6c6c; line-height: 1.45;
  font-family: var(--font-b); font-size: var(--t-2);
  border-bottom: 1px solid var(--border, #e5e7eb);
}

/* === CTI MODAL — Variant B (side-by-side cards) + save-lock ===
   Two CTI cards laid out side-by-side (Current | → | New) with a
   Group panel below showing "From: X / → To: Y" when reassigning,
   or "Current: X (unchanged)" when the mapping stays put. Save-lock
   blurs + dims the whole modal + pointer-locks it so the user
   physically cannot click anything until the write finishes. */
.vt-modal-cti .popup-content { max-height: 600px; overflow-y: auto; padding: var(--s-4) var(--s-10) 18px; }
.vt-modal-cti .vt-modal-hint {
  font-family: var(--font-b); font-size: var(--t-2);
  color: var(--gray, #828282); margin: 0 0 var(--s-8); line-height: var(--lh-3);
  text-align: center;
}

/* Shared pane skeleton (current + new) */
.vt-modal-cti .cti-pane {
  border-radius: var(--r-4);
  padding: 13px var(--s-7);
  margin-bottom: var(--s-7);
  font-family: var(--font-b);
}
/* NOTE: --gray-light in this codebase is #6E6E6E (DARK grey, foreground
   only). Use --light-background (#F6F6F6) for surface panels;
   --gray-light2 (#EBEBEB) for subtle borders. The green tint on the
   "changed" New pane and the group panel are literal values — there's
   no matching light-green CSS variable in global.css. */

/* Side-by-side layout: Current | arrow | New */
.vt-modal-cti .cti-diff-sxs {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: var(--s-3);
  align-items: stretch;
  margin-bottom: var(--s-6);
}
.vt-modal-cti .cti-diff-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light2, #EBEBEB);
  font-weight: 700; font-size: var(--t-5);
  transition: color .18s ease;
}
.vt-modal-cti .cti-diff-sxs.changed .cti-diff-arrow {
  color: #059669;
}

/* Cards (shared skeleton) */
.vt-modal-cti .cti-pane {
  border-radius: var(--r-4);
  padding: var(--s-6) var(--s-7);
  font-family: var(--font-b);
  transition: background .18s ease, border-color .18s ease;
}
.vt-modal-cti .cti-pane.current {
  background: var(--light-background, #F6F6F6);
  border: 1px solid var(--gray-light2, #EBEBEB);
}
.vt-modal-cti .cti-pane.new {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.vt-modal-cti .cti-pane.new.unchanged-state {
  background: var(--light-background, #F6F6F6);
  border-color: var(--gray-light2, #EBEBEB);
}

.vt-modal-cti .cti-pane-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-3); gap: var(--s-4);
}
.vt-modal-cti .cti-pane-label {
  font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--gray, #828282);
}
.vt-modal-cti .cti-pane-pill {
  font-size: var(--t-1); font-weight: 700; padding: 3px var(--s-4); border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.vt-modal-cti .cti-pane-pill.unchanged {
  background: var(--gray-light2, #EBEBEB); color: var(--gray, #828282);
}
.vt-modal-cti .cti-pane-pill.unchanged::before {
  content: '○'; margin-inline-end: var(--s-2); color: var(--gray);
}
.vt-modal-cti .cti-pane-pill.will-change {
  background: #fef3c7; color: #92400e;
}
.vt-modal-cti .cti-pane-pill.will-change::before {
  content: '●'; margin-inline-end: var(--s-2); color: #f59e0b;
}

/* CTI breadcrumb line inside a card */
.vt-modal-cti .cti-cti-line {
  font-size: var(--t-2); line-height: var(--lh-3);
  color: var(--black, #181818); font-weight: 600;
  word-break: break-word;
}
.vt-modal-cti .cti-cti-line .sep {
  color: var(--gray, #828282); padding: 0 var(--s-2); font-weight: 400;
}
/* Per-segment diff — changed leg gets green ✓ */
.vt-modal-cti .cti-pane.new .cti-cti-line .diff {
  color: #059669; font-weight: 700;
}
.vt-modal-cti .cti-pane.new .cti-cti-line .diff::before {
  content: '✓ ';
}
/* When New is in "unchanged-state", strip the green accent so both
   cards read as identical copies. */
.vt-modal-cti .cti-pane.new.unchanged-state .cti-cti-line .diff {
  color: var(--black, #181818); font-weight: 600;
}
.vt-modal-cti .cti-pane.new.unchanged-state .cti-cti-line .diff::before {
  content: '';
}

/* Group panel below the two cards */
.vt-modal-cti .cti-group-pane {
  margin-bottom: var(--s-6);
  background: var(--light-background, #F6F6F6);
  border: 1px solid var(--gray-light2, #EBEBEB);
}
.vt-modal-cti .cti-group-pane.changed {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.vt-modal-cti .cti-group-body .cti-row {
  display: grid; grid-template-columns: 70px 1fr; gap: var(--s-5);
  padding: 3px 0; align-items: baseline;
}
.vt-modal-cti .cti-group-body .cti-row .lbl {
  font-size: var(--t-1); color: var(--gray, #828282);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.vt-modal-cti .cti-group-body .cti-row .val {
  font-size: var(--t-2); color: var(--black, #181818); font-weight: 600;
  line-height: 1.4;
}
.vt-modal-cti .cti-group-body .cti-row .val .to-name {
  color: #059669; font-weight: 700;
}
.vt-modal-cti .cti-group-body .cti-row .val .unchanged-note {
  color: var(--gray, #828282); font-weight: 400; margin-inline-start: var(--s-2);
  font-style: italic; font-size: var(--t-1);
}

/* Cascading dropdowns — native selects styled to match the v3 design */
.vt-modal-cti .field-stack {
  display: flex; flex-direction: column; gap: var(--s-6); margin: var(--s-4) 0 var(--s-7);
}
.vt-modal-cti .field-stack > label { display: block; }
.vt-modal-cti .field-stack > label > .lbl-text {
  display: block;
  font-size: var(--t-1); color: var(--gray, #828282); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px;
}
.vt-modal-cti .field-stack > label > select {
  width: 100%; padding: 9px var(--s-6);
  border: 1px solid var(--border, #e5e7eb); border-radius: var(--r-3);
  font-family: var(--font-b); font-size: var(--t-3);
  background-color: #fff; color: var(--black, #1d1f23); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23828282' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-inline-end: 36px;
}
.vt-modal-cti .field-stack > label > select:focus {
  outline: none; border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}
.vt-modal-cti .field-stack > label > select:disabled {
  background-color: var(--light-background, #F6F6F6);
  color: var(--gray, #828282); cursor: not-allowed;
}

.vt-modal-cti .popup-footer {
  display: flex; justify-content: flex-end; gap: var(--s-5);
  padding: var(--s-7) var(--s-10) 22px;
  border-top: 1px solid var(--gray-light2, #EBEBEB); margin-top: var(--s-3);
}

/* CTI-specific pill/panel tweaks END here.
   Save-lock + in-flight spinner styling now lives as a UNIVERSAL
   utility further down (search "SAVE-LOCK universal") so every
   modal in the app can opt in by adding .is-locked on the .popup
   and .is-saving on its primary button. */

/* Hide the legacy bottom communication block — Activity timeline
   replaces it. The original markup is no longer emitted (we rewrote
   view_ticket.html), but if any other route ever renders it, this
   rule keeps it hidden under view-ticket-v3 to avoid double-rendering. */
.view-ticket-v3 .grey-block .comment-input,
.view-ticket-v3 .grey-block #commentsSection { display: none; }

/* ========================================================================
   Manage Ticket Statuses page — v3 admin guide + family badges
   Scoped under .manage-statuses-page so nothing leaks into the rest of
   the app. Uses .ms-pill for the small family pills to avoid clashing
   with .pill / .status / .vt-status-pill used elsewhere.
   ======================================================================== */

/* ---- Guide callout ---- */
.manage-statuses-page .status-guide {
  background: linear-gradient(180deg, #F0F9FF, #EFF6FF);
  border: 1px solid #BFDBFE;
  border-radius: var(--r-5);
  margin-bottom: var(--s-9);
  overflow: hidden;
}
.manage-statuses-page .status-guide__head {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-7) 18px;
  width: 100%; background: transparent; border: 0;
  cursor: pointer; font-family: var(--font-b); text-align: start;
  color: inherit;
}
.manage-statuses-page .status-guide__head:hover { background: rgba(191, 219, 254, 0.2); }
.manage-statuses-page .status-guide__ico {
  width: 18px; height: 18px; color: #2563EB; flex-shrink: 0;
}
.manage-statuses-page .status-guide__head h4 {
  margin: 0; font-family: var(--font-h); font-size: var(--t-3); font-weight: 600;
  color: #1E3A8A; flex: 1;
}
.manage-statuses-page .status-guide__toggle-hint {
  font-size: var(--t-1); color: #3B82F6; font-weight: 600; font-family: var(--font-h);
  display: inline-flex; align-items: center; gap: 3px;
}
.manage-statuses-page .status-guide__toggle-hint-show { display: none; }
.manage-statuses-page .status-guide__toggle-hint-hide { display: inline; }
.manage-statuses-page .status-guide.is-collapsed .status-guide__toggle-hint-show { display: inline; }
.manage-statuses-page .status-guide.is-collapsed .status-guide__toggle-hint-hide { display: none; }
.manage-statuses-page .status-guide__body {
  padding: 0 18px var(--s-8);
  color: #1E3A8A; font-size: var(--t-2); line-height: 1.55;
  border-top: 1px solid rgba(191, 219, 254, 0.6);
}
.manage-statuses-page .status-guide.is-collapsed .status-guide__body { display: none; }
.manage-statuses-page .status-guide__body p {
  margin: var(--s-6) 0 var(--s-5);
}
.manage-statuses-page .status-guide__body b { color: #0F172A; }
.manage-statuses-page .status-guide__body code {
  background: #DBEAFE; color: #1E40AF;
  padding: 1px 5px; border-radius: var(--r-1); font-size: var(--t-1);
  font-family: ui-monospace, monospace;
}
.manage-statuses-page .status-guide__families {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4) var(--s-6);
  margin: var(--s-5) 0 var(--s-7);
}
.manage-statuses-page .status-guide__family-row {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4); background: rgba(255,255,255,0.55); border-radius: var(--r-3);
}
.manage-statuses-page .status-guide__family-row .ms-pill { flex-shrink: 0; }
.manage-statuses-page .status-guide__desc {
  font-size: var(--t-1); color: #1E3A8A; line-height: 1.4;
}
.manage-statuses-page .status-guide__kw-hint {
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--r-3);
  padding: var(--s-5) var(--s-6); font-size: var(--t-1); color: #78350F;
  display: flex; gap: var(--s-4); align-items: flex-start;
  line-height: var(--lh-3);
}
.manage-statuses-page .status-guide__kw-hint svg {
  width: 16px; height: 16px; color: #F59E0B; flex-shrink: 0; margin-top: 1px;
}
.manage-statuses-page .status-guide__kw-hint b { color: #431407; }
.manage-statuses-page .status-guide__kw-hint code {
  background: #FEF3C7; color: #78350F;
}

/* ---- Family pill (small, inline) ---- */
.manage-statuses-page .ms-pill {
  display: inline-flex; align-items: center;
  padding: var(--s-1) var(--s-5) 3px; border-radius: var(--r-pill);
  font-size: var(--t-1); font-weight: 600; font-family: var(--font-h);
  white-space: nowrap;
}
.manage-statuses-page .ms-pill.fam-todo { background: #DFE1E6; color: #42526E; }
.manage-statuses-page .ms-pill.fam-active { background: #DEEBFF; color: #0747A6; }
.manage-statuses-page .ms-pill.fam-pending { background: #FFF0B3; color: #7F5F01; }
.manage-statuses-page .ms-pill.fam-done { background: #E3FCEF; color: #006644; }
.manage-statuses-page .ms-pill.fam-blocked { background: #FFEBE6; color: #BF2600; }
.manage-statuses-page .ms-pill.fam-cancelled { background: #F4F5F7; color: var(--gray); text-decoration: line-through; }

/* ---- Family badge line under card name ---- */
.manage-statuses-page .card-item__family {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-2);
}
.manage-statuses-page .card-item__family-reason {
  font-size: var(--t-1); color: var(--gray, #828282);
  font-style: italic;
}

/* ========================================================================
   Attachments tab — dense list-view gallery (Phase 1A).
   Approved design: previews/preview_ticket_composer_final.html §4.
   Scoped under .att-tab-v3 so nothing leaks into the rest of the app.
   ======================================================================== */
.att-tab-v3 {
  background: #fff; border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-5);
  box-shadow: var(--sh-1);
  font-family: var(--font-b);
}
.att-tab-v3__head {
  display: flex; align-items: center; gap: var(--s-6);
  padding: var(--s-7) var(--s-9);
  border-bottom: 1px solid var(--gray-light2, #EBEBEB);
  flex-wrap: wrap;
}
.att-tab-v3__title {
  margin: 0; font-family: var(--font-h); font-size: var(--t-4); font-weight: 600; color: var(--black, #181818);
}
.att-tab-v3__stats {
  font-size: var(--t-1); color: var(--gray, #828282);
}
.att-tab-v3__stats [data-att-count],
.att-tab-v3__stats [data-att-total-size] { color: var(--black, #181818); font-weight: 700; }
.att-tab-v3__stats .sep { color: var(--gray-light2, #EBEBEB); }
.att-tab-v3__tools { margin-inline-start: auto; display: inline-flex; gap: var(--s-4); align-items: center; }
.att-tab-v3__search {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: var(--light-background, #F6F6F6); border: 1px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-pill); padding: 5px var(--s-6); font-size: var(--t-2);
  width: 200px;
}
.att-tab-v3__search svg { width: 13px; height: 13px; color: var(--gray, #828282); }
.att-tab-v3__search input {
  background: transparent; border: 0; outline: none; font-size: var(--t-2); width: 100%;
  font-family: var(--font-b); color: var(--black, #181818);
}
.att-tab-v3__sort {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: transparent; border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-5); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  color: var(--gray, #828282); cursor: pointer;
}
.att-tab-v3__sort:hover { color: var(--primary-color, #04696F); border-color: var(--primary-color, #04696F); }
.att-tab-v3__sort svg { width: 11px; height: 11px; }

.att-tab-v3__info {
  background: color-mix(in srgb, var(--primary-color, #04696F) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 22%, transparent);
  border-radius: var(--r-4); padding: var(--s-5) var(--s-7); margin: var(--s-7) var(--s-9) 0;
  font-size: var(--t-2); color: var(--black, #181818); line-height: var(--lh-3);
  display: flex; align-items: flex-start; gap: var(--s-4);
}
.att-tab-v3__info svg { width: 18px; height: 18px; color: var(--primary-color, #04696F); flex-shrink: 0; margin-top: 1px; }
.att-tab-v3__info b { color: var(--primary-color, #04696F); }

.att-tab-v3__list-head {
  display: grid;
  grid-template-columns: 40px 1fr 100px 130px 90px 100px 70px;
  gap: var(--s-6); padding: var(--s-6) var(--s-9) var(--s-4);
  font-family: var(--font-h); font-size: var(--t-1); color: var(--gray, #828282);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  border-bottom: 1px solid var(--gray-light2, #EBEBEB);
}
.att-tab-v3__list {
  display: block;
}
/* F-29: on a narrow screen the seven columns scroll sideways inside the card
   and the page itself keeps the phone's width (it grew to 656 px while
   loading and 694 px loaded, at 390). The header and the rows share one
   scroller so they stay lined up; the minimum gives the name column room
   (the fixed columns, gaps and padding take 642 px before it gets any). */
.att-tab-v3__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.att-tab-v3__scroll > .att-tab-v3__list-head,
.att-tab-v3__scroll > .att-tab-v3__list { min-width: 800px; }
.att-tab-v3__row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 130px 90px 100px 70px;
  gap: var(--s-6); padding: var(--s-5) var(--s-9); align-items: center;
  border-bottom: 1px solid var(--border, #F3F3F3);
  cursor: default;
  transition: background .12s ease;
}
.att-tab-v3__row:hover { background: var(--light-background, #F6F6F6); }
.att-tab-v3__row:last-child { border-bottom: 0; }

.att-tab-v3__ico {
  width: 40px; height: 40px; border-radius: var(--r-3);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--light-background, #F6F6F6);
  position: relative; overflow: hidden;
}
.att-tab-v3__ico svg { width: 18px; height: 18px; color: var(--gray, #828282); }
.att-tab-v3__ico.type-pdf svg { color: #DC2626; }
.att-tab-v3__ico.type-doc svg { color: #2563EB; }
.att-tab-v3__ico.type-xls svg { color: #16A34A; }
.att-tab-v3__ico.type-zip svg { color: #9333EA; }
.att-tab-v3__ico.type-img svg { color: var(--primary-color, #04696F); }
.att-tab-v3__ico.type-video { background: #111; }
.att-tab-v3__ico.type-video svg { color: #fff; }

.att-tab-v3__name { min-width: 0; }
.att-tab-v3__name .fn {
  font-size: var(--t-2); font-weight: 600; color: var(--black, #181818);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.att-tab-v3__name .sub {
  font-size: var(--t-1); color: var(--gray, #828282);
  margin-top: var(--s-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.att-tab-v3__source .src-badge {
  display: inline-flex; align-items: center;
  padding: 1px var(--s-4); border-radius: var(--r-1);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.att-tab-v3__source .src-badge.src-comment {
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  color: var(--primary-color, #04696F);
}
.att-tab-v3__source .src-badge.src-internal {
  background: var(--primary-color, #04696F);
  color: #fff;
}
.att-tab-v3__source .src-badge.src-direct {
  background: var(--gray-light2, #EBEBEB);
  color: var(--gray, #828282);
}

.att-tab-v3__uploader {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-1); color: var(--black, #181818); font-weight: 600;
  min-width: 0;
}
.att-tab-v3__uploader .avatar-xs {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; font-size: var(--t-1); flex-shrink: 0;
}
.att-tab-v3__uploader .avatar-xs.f { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.att-tab-v3__uploader .avatar-xs.m { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.att-tab-v3__uploader .avatar-xs.s { background: linear-gradient(135deg, #f472b6, #db2777); }
/* Uploader profile-picture variant. Same 22px pill as the initials
   chip so there's no layout shift between users with a picture and
   users on the initials fallback. `object-fit: cover` guarantees the
   image fills the circle even when the source is non-square. */
.att-tab-v3__uploader .avatar-xs.img {
  background: none;
  object-fit: cover;
}
.att-tab-v3__uploader .name-txt {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.att-tab-v3__size,
.att-tab-v3__time {
  font-size: var(--t-1); color: var(--gray, #828282);
  font-variant-numeric: tabular-nums;
}

.att-tab-v3__actions {
  display: inline-flex; gap: var(--s-1); justify-content: flex-end;
}
.att-tab-v3__actions button {
  background: transparent; border: 0; padding: var(--s-3); border-radius: var(--r-2);
  cursor: pointer; color: var(--gray, #828282);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s ease, color .12s ease;
}
.att-tab-v3__actions button:hover { background: var(--gray-light2, #EBEBEB); color: var(--primary-color, #04696F); }
.att-tab-v3__actions button[title="Delete"]:hover { color: var(--red, #E90909); background: color-mix(in srgb, var(--red, #E90909) 8%, #fff); }
.att-tab-v3__actions button svg { width: 14px; height: 14px; }

.att-tab-v3__loading,
.att-tab-v3__empty {
  padding: var(--s-12) var(--s-9); text-align: center; color: var(--gray, #828282);
}
.att-tab-v3__empty svg { width: 56px; height: 56px; color: var(--gray-light2, #EBEBEB); }
.att-tab-v3__empty h4 {
  margin: var(--s-6) 0 var(--s-2); font-family: var(--font-h); font-size: var(--t-3); font-weight: 600;
  color: var(--black, #181818);
}
.att-tab-v3__empty p { margin: 0; font-size: var(--t-2); color: var(--gray, #828282); }

/* Load skeleton — shimmer rows on the same grid as the loaded list, so
   there's no layout shift when the real files arrive (Linear pattern,
   replaces the old centred "Loading files…" line). */
.att-tab-v3__sk-row { cursor: default; }
.att-tab-v3__sk-row:hover { background: transparent; }
.att-tab-v3__sk-up { display: inline-flex; align-items: center; gap: var(--s-3); min-width: 0; }
.att-tab-v3__sk .att-tab-v3__ico { background: transparent; }

/* ========================================================================
   Rich composer — Tiptap bundle UI (Phase 1B).
   Class prefix `ucomp-*` matches the JS in frontend/composer/src/composer.js.
   Approved design: previews/preview_ticket_composer_final.html §2 & §3.
   ======================================================================== */
.ucomp-shell {
  background: #fff; border: 1.5px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-5);
  /* Clip the send-row's grey background at the rounded corners.
     Safe: the mention popover renders in document.body via tippy,
     not inside this shell, so nothing gets clipped that shouldn't. */
  overflow: hidden;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: var(--font-b);
}
.ucomp-shell:focus-within {
  border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}
.ucomp-shell.internal-mode {
  border-color: color-mix(in srgb, var(--primary-color, #04696F) 45%, transparent);
  background: color-mix(in srgb, var(--primary-color, #04696F) 3%, #fff);
}

/* Toolbar */
.ucomp-toolbar {
  display: flex; align-items: center; gap: var(--s-1);
  padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--gray-light2, #EBEBEB);
  flex-wrap: wrap;
}
.ucomp-shell.internal-mode .ucomp-toolbar {
  border-bottom-color: color-mix(in srgb, var(--primary-color, #04696F) 20%, transparent);
}
.ucomp-toolbar button {
  background: transparent; border: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-2);
  cursor: pointer; color: var(--gray, #828282);
  font-family: var(--font-b); font-size: var(--t-1); font-weight: 600;
  min-width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s ease, color .12s ease;
}
.ucomp-toolbar button:hover {
  background: var(--light-background, #F6F6F6); color: var(--black, #181818);
}
.ucomp-toolbar button.active {
  background: color-mix(in srgb, var(--primary-color, #04696F) 12%, #fff);
  color: var(--primary-color, #04696F);
}
.ucomp-sep {
  width: 1px; height: 16px; background: var(--gray-light2, #EBEBEB);
  margin: 0 var(--s-2);
}
.ucomp-tb-spacer { flex: 1; }
.ucomp-mode-switch {
  display: inline-flex; padding: var(--s-1); background: var(--light-background, #F6F6F6);
  border-radius: var(--r-pill);
}
.ucomp-mode-switch button {
  padding: var(--s-2) var(--s-6); border-radius: var(--r-pill); font-family: var(--font-h);
  font-size: var(--t-1); font-weight: 600; color: var(--gray, #828282);
}
.ucomp-mode-switch button.active {
  background: #fff; color: var(--primary-color, #04696F);
  box-shadow: var(--sh-1);
}
.ucomp-mode-switch button[data-mode="internal"].active {
  background: var(--primary-color, #04696F); color: #fff;
}

/* Editor area — Tiptap's contenteditable */
.ucomp-editor { padding: var(--s-6) var(--s-7); min-height: 72px; }
.ucomp-tiptap {
  font-size: var(--t-2); line-height: 1.55; color: var(--black, #181818);
  outline: none; min-height: 48px;
}
.ucomp-tiptap p { margin: 0 0 var(--s-2); }
/* D194 5e (D204): while typing, each paragraph outside a list or a quote takes its own direction, as it will
   once posted. List items and quotes stay left to right while typing (the editor drops dir), so a quote's
   words stay beside its bar. */
.ucomp-tiptap p:not(li p):not(blockquote p) { unicode-bidi: plaintext; text-align: start; }
.ucomp-tiptap p:last-child { margin-bottom: 0; }
.ucomp-tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder); color: var(--gray, #828282);
  float: left; height: 0; pointer-events: none;
}
/* Global CSS resets list-style: none on all ul/li — restore markers
   in the composer so bulletList / orderedList actually look like
   lists after the user clicks the toolbar. */
.ucomp-tiptap ul { margin: var(--s-2) 0; padding-inline-start: 22px; list-style: disc; }
.ucomp-tiptap ol { margin: var(--s-2) 0; padding-inline-start: 22px; list-style: decimal; }
.ucomp-tiptap li { margin-bottom: var(--s-1); list-style: inherit; display: list-item; }
.ucomp-tiptap blockquote {
  margin: var(--s-2) 0; padding: var(--s-2) var(--s-5);
  border-inline-start: 3px solid var(--gray-light2, #EBEBEB);
  color: var(--gray, #828282); font-style: italic;
}
.ucomp-tiptap code {
  background: var(--gray-light2, #EBEBEB); color: var(--primary-color, #04696F);
  padding: 1px 5px; border-radius: var(--r-1);
  font-family: ui-monospace, 'SF Mono', monospace; font-size: var(--t-1);
}
.ucomp-tiptap pre {
  background: var(--black, #181818); color: #f8f8f2;
  padding: var(--s-4) var(--s-6); border-radius: var(--r-2); overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: var(--t-1); line-height: var(--lh-3);
  margin: var(--s-3) 0;
}
.ucomp-tiptap pre code { background: transparent; color: inherit; padding: 0; }
.ucomp-tiptap a { color: var(--primary-color, #04696F); text-decoration: underline; }
.ucomp-tiptap .mention {
  background: color-mix(in srgb, var(--primary-color, #04696F) 12%, #fff);
  color: var(--primary-color, #04696F);
  padding-block: 0;
  padding-inline: var(--s-1) var(--s-2); border-radius: var(--r-1); font-weight: 600;
}
.ucomp-tiptap .mention::before { content: '@'; }

/* Attachment chips (staged before submit) */
.ucomp-attachments { padding: 0 var(--s-7) var(--s-4); }
.ucomp-attachments-list {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.ucomp-att-chip {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: var(--light-background, #F6F6F6);
  border: 1px solid var(--gray-light2, #EBEBEB);
  border-radius: var(--r-3); padding-block: var(--s-2); padding-inline: var(--s-3) var(--s-4);
  font-size: var(--t-1);
  transition: border-color .12s ease;
}
.ucomp-shell.internal-mode .ucomp-att-chip { background: #fff; }
.ucomp-att-chip.error { border-color: var(--red, #E90909); background: color-mix(in srgb, var(--red, #E90909) 6%, #fff); }
.ucomp-att-chip .ucomp-att-error {
  /* The whole sentence, wrapped. It was one clipped line, so a refusal was unreadable
     while the chip still looked like an attached file (50-person run, 28 Oct). */
  color: var(--red, #E90909); font-size: var(--t-1); font-style: italic;
  max-width: 420px; white-space: normal; overflow-wrap: anywhere;
}
.ucomp-att-chip.error { align-items: flex-start; }
.ucomp-att-chip.error .ucomp-att-ico { color: var(--red, #E90909);
  background: color-mix(in srgb, var(--red, #E90909) 12%, #fff); }
.ucomp-att-ico {
  width: 22px; height: 22px; border-radius: var(--r-1);
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary-color, #04696F) 15%, #fff);
  color: var(--primary-color, #04696F);
  font-size: var(--t-1); flex-shrink: 0;
}
.ucomp-att-ico svg { width: 14px; height: 14px; }
.ucomp-att-name {
  color: var(--black, #181818); font-weight: 600;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ucomp-att-size { color: var(--gray, #828282); font-size: var(--t-1); }
.ucomp-att-chip button {
  background: transparent; border: 0; padding: var(--s-1) var(--s-2); cursor: pointer;
  color: var(--gray, #828282); font-size: var(--t-3); line-height: var(--lh-1);
}
.ucomp-att-chip button:hover { color: var(--red, #E90909); }
.ucomp-att-spin {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--gray-light2, #EBEBEB);
  border-top-color: var(--primary-color, #04696F);
  animation: ucomp-spin 0.7s linear infinite;
}
@keyframes ucomp-spin { to { transform: rotate(360deg); } }

/* Send row */
.ucomp-send-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-7); border-top: 1px solid var(--gray-light2, #EBEBEB);
  background: var(--light-background, #F6F6F6);
}
.ucomp-shell.internal-mode .ucomp-send-row {
  border-top-color: color-mix(in srgb, var(--primary-color, #04696F) 20%, transparent);
  background: color-mix(in srgb, var(--primary-color, #04696F) 5%, #fff);
}
.ucomp-hint {
  font-size: var(--t-1); color: var(--gray, #828282);
  display: inline-flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
}
.ucomp-shell.internal-mode .ucomp-hint {
  color: var(--primary-color, #04696F); font-weight: 600;
}
.ucomp-kbd {
  background: var(--gray-light2, #EBEBEB); color: var(--black, #181818);
  font-family: ui-monospace, monospace; font-size: var(--t-1);
  padding: 1px var(--s-3); border-radius: var(--r-1);
}
.ucomp-send {
  background: var(--primary-color, #04696F); color: #fff; border: 0;
  padding: 7px var(--s-9); border-radius: var(--r-pill);
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 600;
  cursor: pointer; transition: background .12s ease;
}
.ucomp-send:hover:not(:disabled) { background: var(--secondary-color, #035459); }
.ucomp-send:disabled {
  background: var(--gray-light2, #EBEBEB); color: var(--gray, #828282);
  cursor: not-allowed;
}
.ucomp-send.sending {
  position: relative; padding-inline-start: 34px; cursor: progress;
}
.ucomp-send.sending::before {
  content: ''; position: absolute; inset-inline-start: 12px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: ucomp-spin 0.7s linear infinite;
}

/* #12: composer draft persistence affordances (approved
   previews/preview_composer_draft.html). The status chip lives in the
   hint row; the restored strip is prepended above the toolbar (clipped to
   the shell's rounded top corners by its overflow:hidden). */
.vt-draft-status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-1); color: var(--gray, #828282);
  opacity: 0; transition: opacity .2s ease;
}
.vt-draft-status.show { opacity: 1; }
.vt-draft-status.saving { color: var(--gray); }
.vt-draft-status svg { width: 11px; height: 11px; color: var(--primary-color, #04696F); }
.vt-draft-restored {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-7); font-size: var(--t-1);
  color: var(--primary-color, #04696F); font-weight: 600;
  background: color-mix(in srgb, var(--primary-color, #04696F) 6%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 18%, #fff);
}
.vt-draft-restored svg { width: 13px; height: 13px; flex-shrink: 0; }
.vt-draft-restored .sp { flex: 1; }
.vt-draft-restored .vt-draft-discard {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  color: var(--gray, #828282); text-decoration: underline;
}
.vt-draft-restored .vt-draft-discard:hover { color: var(--red, #E90909); }

/* @mention typeahead popup — rendered inside tippy.js */
.tippy-box[data-theme~="ubridge-mention"] {
  background: transparent; box-shadow: none;
}
.ucomp-mention-popup {
  background: #fff; border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-4);
  padding: var(--s-2); min-width: 240px; max-width: 320px;
  box-shadow: var(--sh-3);
}
.ucomp-mention-popup .ucomp-mention-empty {
  padding: var(--s-4) var(--s-6); color: var(--gray, #828282); font-size: var(--t-1); font-style: italic;
}
.ucomp-mention-row {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-2); cursor: pointer; width: 100%;
  background: transparent; border: 0; text-align: start;
  font-family: var(--font-b);
}
.ucomp-mention-row:hover,
.ucomp-mention-row.selected { background: var(--light-background, #F6F6F6); }
.ucomp-mention-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; font-size: var(--t-1); flex-shrink: 0;
}
/* Profile-picture variant. Same 22px pill so there's no layout shift
   between rows with a picture and rows on the initials fallback. */
.ucomp-mention-avatar.img {
  background: none;
  object-fit: cover;
}
.ucomp-mention-name {
  font-size: var(--t-2); color: var(--black, #181818); font-weight: 600;
}
.ucomp-mention-alias {
  font-size: var(--t-1); color: var(--gray, #828282);
}
.ucomp-mention-role {
  margin-inline-start: auto; font-size: var(--t-1); color: var(--gray, #828282);
  font-family: var(--font-h); white-space: nowrap;
  font-weight: 600; background: var(--light-background, #F6F6F6);
  padding: 1px var(--s-3); border-radius: var(--r-pill);
}
/* D214: name over username, and "Can't open" for someone who won't be told */
.ucomp-mention-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ucomp-mention-out { display: inline-flex; align-items: center; gap: var(--s-1); color: #A85400; background: #FFF4E5; }
.ucomp-mention-row.is-out .ucomp-mention-name { color: #5f6670; }

/* ==========================================================
   Notification pipeline (Phase 2A)
   ========================================================== */

/* Bell button wrapper — the existing .ellipse-button class already
   handles size/pill styling; we only need to make room for the badge. */
.notif-bell{ position: relative; }
.notif-badge {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 16px; height: 16px;
  background: #C0392B; color: #fff; font-size: var(--t-1); font-weight: 700;
  border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--s-2); border: 2px solid #fff; font-family: var(--font-h); line-height: var(--lh-1);
  z-index: 2; pointer-events: none;
}
.notif-badge[hidden] { display: none; }

/* Notification center dropdown — floats above the nav, anchored to the bell.
   Positioning is done by JS (top/right via getBoundingClientRect) so this
   only sets the shell. */
.notif-center-panel {
  position: absolute; z-index: 1200;
  width: 440px; max-width: calc(100vw - 16px);
  background: #fff; border: 1px solid #E4E4E4; border-radius: var(--r-5);
  box-shadow: var(--sh-4);
  overflow: hidden; font-family: var(--font-h);
}
.notif-center-panel[hidden] { display: none; }

.notif-center__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-7) var(--s-8); border-bottom: 1px solid #EEE;
}
.notif-center__title {
  font-size: var(--t-3); font-weight: 700; color: var(--black, #181818);
  display: flex; align-items: center; gap: var(--s-4);
}
.notif-center__count {
  background: var(--gray-light1, #F5F5F5); color: var(--gray, #828282);
  font-size: var(--t-1); font-weight: 700; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.notif-center__actions button {
  background: transparent; border: none; padding: var(--s-2) var(--s-4);
  color: var(--primary-color, #04696F); font-size: var(--t-1); font-weight: 600;
  cursor: pointer; border-radius: var(--r-1); font-family: var(--font-h);
}
.notif-center__actions button:hover { background: var(--gray-light1, #F5F5F5); }

.notif-center__tabs {
  display: flex; gap: var(--s-2); padding: var(--s-4) var(--s-6);
  background: #FBFBFB; border-bottom: 1px solid #EEE;
}
.notif-center__tabs button {
  padding: var(--s-3) var(--s-6); border-radius: var(--r-pill); border: none; background: transparent;
  cursor: pointer; font-size: var(--t-1); font-weight: 600; color: var(--gray, #828282);
  display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-h);
}
.notif-center__tabs button.active {
  background: #fff; color: var(--primary-color, #04696F);
  box-shadow: var(--sh-1);
}
.notif-center__tabs button .tab-count {
  background: var(--gray-light2, #EBEBEB); color: var(--gray, #828282);
  font-size: var(--t-1); padding: 1px var(--s-3); border-radius: var(--r-pill); font-weight: 700;
}
.notif-center__tabs button.active .tab-count {
  background: color-mix(in srgb, var(--primary-color, #04696F) 15%, #fff);
  color: var(--primary-color, #04696F);
}

.notif-center__list { max-height: 480px; overflow-y: auto; }
/* while the list loads: rows the shape of a notification (the markup is in _company.html) */
.notif-center__sk-row { display: flex; gap: var(--s-5); padding: var(--s-6) var(--s-8); border-bottom: 1px solid #F5F5F5; }
.notif-center__sk-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.notif-center__sk-row .av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; }
.notif-center__sk-row .ln { display: block; height: 12px; border-radius: var(--r-pill); }
.notif-center__sk-row .ln.sm { height: 10px; }
.notif-center__sk-row .ln.xs { height: 9px; }

.notif-center__item {
  display: flex; gap: var(--s-5); padding: var(--s-6) var(--s-8);
  border-bottom: 1px solid #F5F5F5; cursor: pointer; position: relative;
  font-family: var(--font-h);
}
.notif-center__item:hover { background: var(--gray-light1, #F5F5F5); }
.notif-center__item.unread {
  background: color-mix(in srgb, var(--primary-color, #04696F) 3%, #fff);
}
.notif-center__item.unread::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: #F97316; transform: translateY(-50%);
}
.notif-item__av {
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: var(--t-1); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-item__av.img { background: none !important; object-fit: cover; }
/* System actor in the notification center + toast: the bolt avatar,
   consistent with the timeline. The teal ring is baked into the SVG
   (no CSS border — avoids the orange/teal white gap). All tenants. */
.notif-item__av--system { border: none; background: none !important; }
.notif-item__av.color-a { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.notif-item__av.color-b { background: linear-gradient(135deg, #34d399, #059669); }
.notif-item__av.color-c { background: linear-gradient(135deg, #fbbf24, #f97316); }
.notif-item__av.color-d { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__top {
  font-size: var(--t-2); color: var(--black, #181818); line-height: 1.45;
}
.notif-item__top b { font-weight: 700; }
.notif-item__top .notif-item__link { color: var(--primary-color, #04696F); font-weight: 700; text-decoration: none; }
.notif-item__top .notif-item__link:hover, .notif-item__top .notif-item__link:focus-visible { text-decoration: underline; }
.notif-item__snippet {
  font-size: var(--t-1); color: var(--gray, #828282); margin-top: 3px;
  line-height: 1.4; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notif-item__ctx {
  display: flex; gap: var(--s-4); align-items: center; margin-top: var(--s-3);
  font-size: var(--t-1); flex-wrap: wrap;
}
.notif-item__ctx .tk { color: var(--primary-color, #04696F); font-weight: 700; }
.notif-item__ctx .when { color: var(--gray, #828282); }
.notif-badge-mini {
  font-size: var(--t-1); padding: 1px var(--s-3); border-radius: var(--r-1); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.notif-badge-mini.internal { background: var(--primary-color, #04696F); color: #fff; }
.notif-badge-mini.mention  { background: color-mix(in srgb, #7c3aed 15%, #fff); color: #7c3aed; }
.notif-badge-mini.sla      { background: color-mix(in srgb, #C0392B 15%, #fff); color: #C0392B; }
.notif-badge-mini.access   { background: color-mix(in srgb, var(--logo-orange, #E26E00) 15%, #fff); color: var(--logo-orange, #E26E00); }
.notif-item__row-actions {
  display: none; align-items: center; gap: var(--s-1); flex-shrink: 0;
}
.notif-center__item:hover .notif-item__row-actions { display: inline-flex; }
.notif-item__row-actions button {
  background: transparent; border: none; padding: var(--s-2); border-radius: var(--r-1);
  color: var(--gray, #828282); cursor: pointer;
}
.notif-item__row-actions button:hover {
  background: var(--gray-light2, #EBEBEB); color: var(--black, #181818);
}

.notif-center__empty {
  padding: var(--s-12) var(--s-8); text-align: center; color: var(--gray, #828282); font-family: var(--font-h);
}
.notif-center__empty svg {
  color: color-mix(in srgb, var(--primary-color, #04696F) 40%, #fff);
  margin-bottom: var(--s-5);
}
.notif-center__empty h4 {
  margin: 0 0 var(--s-2); font-size: var(--t-2); font-weight: 700; color: var(--black, #181818);
}
.notif-center__empty p {
  margin: 0 auto; font-size: var(--t-1); line-height: 1.6; max-width: 300px;
}

/* Toast region + toast */
.notif-toast-region {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1300;
  display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-end;
  pointer-events: none;
}
/* The notification toast (.notif-toast) lived here until batch 4: news is the one card now, .ub-toast below. */
}

/* Coherency v3: CTIs with 0 groups are Draft — admin-only, hidden
   from every end-user surface. This pill surfaces the state in the
   Manage CTIs list so admins can see at a glance which entries are
   still unpublished. */
.cti-draft-pill {
  display: inline-block; padding: var(--s-1) var(--s-5); border-radius: var(--r-pill);
  background: color-mix(in srgb, #B7791F 12%, #fff); color: #B7791F;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: help;
}
/* Part B: a service with a team whose access & handling policy can't stand is
   a Draft too. The pill, then why in plain words and where to fix it. */
.cti-draft-block { display: block; margin-top: 5px; }
.cti-draft-why { display: block; margin-top: 3px; font-family: var(--font-b); font-size: var(--t-1);
  line-height: 1.45; color: #8a5a1a; max-width: 320px; }
.cti-draft-fix { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--primary-color, #04696F);
  text-decoration: none; white-space: nowrap; }
a.cti-draft-fix:hover { text-decoration: underline; }
a.cti-draft-fix:focus-visible { outline: 2px solid var(--primary-color, #04696F); outline-offset: 2px; border-radius: var(--r-1); }
.cti-draft-fix.is-locked { color: #6F6F6F; cursor: not-allowed; }

/* =========================================================
   Ship 3A — partial-update UI states (HTMX-driven)
   ========================================================= */

/* Optimistic "saving…" tint. htmx-init.js adds this to the swap
   target on beforeRequest, removes on afterOnLoad. Warm-yellow so
   it's visible without being alarming. */
.is-saving {
  position: relative;
  filter: saturate(0.85);
  opacity: 0.75;
  transition: opacity 120ms ease, filter 120ms ease;
}
.is-saving::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg,
    color-mix(in srgb, #B7791F 12%, transparent),
    color-mix(in srgb, #B7791F 4%, transparent));
  pointer-events: none;
  animation: is-saving-pulse 1.4s ease-in-out infinite;
}
@keyframes is-saving-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

/* Highlight briefly when another tab reports this fragment was
   updated externally (BroadcastChannel 'partial-update' event). */
.is-external-update {
  animation: is-external-flash 1.2s ease-out;
}
@keyframes is-external-flash {
  0%   { box-shadow: var(--sh-focus); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* THE toast — batch 4 (D9 + D43, owner 2026-10-06; previews/preview_one_toast.html). One light card
   for every message after an action, every incoming notification and every Undo. Drawn by
   window.toast in new.js; the region (#notif-toast-region) is shared and keeps its id. */
.ub-toast {
  /* D43 (owner, 2026-09-23): a light card -- white, thin border, soft shadow, dark text, the
     icon in a ring that counts the time down, the action word in teal (the look first drawn
     on the Access page). Errors red; info amber. */
  --ub-c: var(--primary-color, #04696F); --ub-wash: #EAF3F3;
  --ub-toast-ms: 5000ms;          /* how long it stays; the renderer sets it per message */
  pointer-events: auto;
  width: 360px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line, #E6E9EC); border-inline-start: 4px solid var(--ub-c);
  border-radius: var(--r-4); box-shadow: var(--sh-3);
  padding-block: var(--s-5);
  padding-inline: var(--s-6) var(--s-5);
  display: flex; align-items: center; gap: var(--s-5);
  position: relative;
  animation: ub-toast-in 220ms var(--ease, ease-out);
}
.ub-toast.t-error { --ub-c: #C0392B; --ub-wash: #FDECEA; }
.ub-toast.t-info  { --ub-c: #B45309; --ub-wash: #FDF3E4; }
.ub-toast.out { animation: ub-toast-out 180ms ease-in forwards; }
@keyframes ub-toast-in { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ub-toast-out { to { transform: translateY(6px); opacity: 0; } }
.ub-toast__k { position: relative; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--ub-wash); color: var(--ub-c); display: inline-flex; align-items: center; justify-content: center; }
.ub-toast__i { width: 13px; height: 13px; }
.ub-toast__ring { position: absolute; inset: -3px; width: 28px; height: 28px; transform: rotate(-90deg); }
.ub-toast__ring circle { fill: none; stroke: var(--ub-c); stroke-width: 2; stroke-dasharray: 75.4; stroke-dashoffset: 0;
  animation: ub-toast-ring var(--ub-toast-ms) linear forwards; }
.ub-toast.is-held .ub-toast__ring circle { animation-play-state: paused; }
@keyframes ub-toast-ring { to { stroke-dashoffset: 75.4; } }
.ub-toast__msg { flex: 1; min-width: 0; font-family: var(--font-b); font-size: var(--t-2); line-height: 1.4;
  color: var(--ink, #181818); overflow-wrap: anywhere; }
.ub-toast__msg small { display: block; color: var(--gray); font-size: var(--t-1); margin-top: 1px; }
.ub-toast__undo { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--ub-c);
  background: none; border: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); cursor: pointer;
  white-space: nowrap; flex-shrink: 0; }
.ub-toast__undo:hover { background: var(--ub-wash); }
.ub-toast__undo:focus-visible, .ub-toast__x:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.ub-toast__x { background: none; border: 0; color: var(--gray); padding: var(--s-2); border-radius: var(--r-1);
  cursor: pointer; display: inline-flex; flex-shrink: 0; }
.ub-toast__x svg { width: 14px; height: 14px; }
.ub-toast__x:hover { color: var(--ink, #181818); }
/* batch 4 additions: a person's face in the ring, a card that opens something, an error that stays,
   the seconds when motion is reduced, the card held by focus, a touch swipe, the second line clamped */
.ub-toast__k.has-face { background: none; }
.ub-toast__face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }
.ub-toast.is-link { cursor: pointer; }
.ub-toast.stays .ub-toast__ring { display: none; }
.ub-toast.swiping { transition: none; }
.ub-toast.is-held .ub-toast__undo { text-decoration: underline; text-underline-offset: 3px; }
.ub-toast__undo .cd { display: none; font-variant-numeric: tabular-nums; font-weight: 400; color: var(--gray); margin-inline-start: var(--s-2); }
.ub-toast__msg b { font-weight: 600; }
.ub-toast__msg small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* a change that is ON SCREEN gets no card: the element flashes once and offers Undo in place (toast.inline) */
.ub-flash { animation: ub-flash 900ms var(--ease, ease); }
@keyframes ub-flash { 0% { background: #FFF7DB; } 100% { background: transparent; } }
.ub-inl { display: inline-flex; align-items: center; gap: var(--s-4); font-size: var(--t-2); color: var(--ink-2, #3F4A4C); background: #EAF3F3;
  border-radius: var(--r-pill); padding-block: var(--s-2); padding-inline: var(--s-6) var(--s-3); animation: ub-toast-in var(--dur-fade, 180ms) var(--ease, ease); max-width: 100%; }
.ub-inl b { font-weight: 600; }
.ub-inl button { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--primary-color); background: #fff; border: none;
  border-radius: var(--r-pill); padding: var(--s-2) var(--s-5); cursor: pointer; display: inline-flex; gap: var(--s-3); align-items: center; }
.ub-inl button:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.ub-inl button svg { width: 13px; height: 13px; }
.ub-inl .cd { font-variant-numeric: tabular-nums; color: var(--gray); font-size: var(--t-1); }
@media (max-width: 760px) {
  .notif-toast-region { inset-inline-start: var(--s-8); inset-inline-end: var(--s-8); bottom: calc(72px + env(safe-area-inset-bottom)); align-items: stretch; }
  .ub-toast { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ub-toast, .ub-toast.out { animation: none; }
  .ub-toast__ring circle { animation: none; stroke-dashoffset: 0; }
  .ub-toast__undo .cd { display: inline; }
  .ub-inl, .ub-flash { animation: none; }
}

/* T2 — At-risk view pill + SLA sort header (approved
   preview_sla_tracking §3). */
.atrisk-pill { color: #B45309; border-color: color-mix(in srgb, #B45309 45%, transparent); text-decoration: none; }
.atrisk-pill:hover { background: #fff7ed; }
.atrisk-pill.is-on { background: #B45309; color: #fff; border-color: #B45309; }
/* Sortable column headers (all columns, not just SLA). */
.tickets-table .th-sort {
  color: inherit; text-decoration: none; cursor: pointer; display: inline-flex;
  align-items: center; gap: var(--s-2); border-radius: var(--r-2); padding: var(--s-1) var(--s-3); margin: -2px -6px;
}
.tickets-table .th-sort:hover { background: #EFF4F4; color: var(--primary-color, #04696F); }
.tickets-table .th-sort.is-on { color: var(--primary-color, #04696F); font-weight: 700; }
.tickets-table .th-arr { font-size: var(--t-1); line-height: var(--lh-1); }
/* Faint ↕ hint on hover of a not-yet-sorted column. */
.tickets-table .th-sort:not(.is-on):hover .th-arr::after { content: '↕'; opacity: .5; }
/* While a sort navigation is in flight: dim the table for instant feedback
   (the old page stays visible until the re-sorted one loads). */
[data-ticket-table].is-sorting { opacity: .5; pointer-events: none; cursor: progress; transition: opacity .1s ease; }

/* ================================================================
   T1 — SLA popover (approved preview_sla_popover, v2 design).
   Mounted on <body> (chips live in the swap zone), so selectors are
   deliberately UNscoped — no page-class coupling.
   ================================================================ */
#vt-sla-chip-pair .sla-chip { cursor: pointer; }
.sla-pop {
  position: absolute; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--r-5); box-shadow: var(--sh-3);
  padding: 0; overflow: hidden; z-index: 1200;
  animation: sla-pop-in 160ms ease-out;
}
@keyframes sla-pop-in {
  from { transform: translateY(-4px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.sla-pop__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-6) var(--s-8) 0;
}
.sla-pop__kind {
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 600;
  color: var(--gray, #828282); text-transform: uppercase; letter-spacing: .05em;
}
.sla-pop__state {
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 700;
  padding: 3px var(--s-5); border-radius: var(--r-pill); letter-spacing: .04em;
}
.sla-pop__state.st-active { background: color-mix(in srgb, var(--primary-color, #04696F) 10%, #fff); color: var(--primary-color, #04696F); }
.sla-pop__state.st-paused { background: #fff7ed; color: #B45309; }
.sla-pop__state.st-passed { background: #ecfdf5; color: #0F766E; }
.sla-pop__state.st-failed { background: #fef2f2; color: #DC2626; }
.sla-pop__hero { padding: var(--s-4) var(--s-8) 0; }
.sla-pop__big { font-family: var(--font-h); font-size: var(--t-6); font-weight: 700; line-height: 1.2; color: var(--black, #1d1f23); }
.sla-pop__big small { font-size: var(--t-1); font-weight: 500; color: var(--gray, #828282); margin-inline-start: var(--s-3); }
.sla-pop__sub { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray, #828282); margin-top: 1px; }
.sla-pop__barwrap { padding: var(--s-5) var(--s-8) var(--s-1); position: relative; }
.sla-pop__bar {
  height: 8px; border-radius: var(--r-pill); background: var(--gray-light2, #EBEBEB);
  overflow: hidden; display: flex;
}
.sla-pop__bar .used { background: var(--primary-color, #04696F); border-start-start-radius: 999px; border-start-end-radius: 0; border-end-end-radius: 0; border-end-start-radius: 999px; }
.sla-pop__bar .over { background: #DC2626; }
.sla-pop__bar .pausewave { background: repeating-linear-gradient(45deg, #d9d9d9 0 4px, #cbcbcb 4px 8px); width: 10%; }
.sla-pop__risk {
  position: absolute; top: 8px; inset-inline-start: calc(16px + (100% - 32px) * .8);
  width: 0; height: 12px;
  border-inline-start: 2px dashed color-mix(in srgb, #B45309 55%, transparent);
}
.sla-pop__scale {
  display: flex; justify-content: space-between; padding: var(--s-2) var(--s-8) 0;
  font-family: var(--font-b); font-size: var(--t-1); color: var(--gray);
}
.sla-pop__hist { margin: var(--s-5) var(--s-8) 0; border-top: 1px solid var(--border, #e5e7eb); padding-top: var(--s-5); }
.sla-pop__ev {
  display: flex; align-items: flex-start; gap: 9px; padding: 3px 0;
  font-family: var(--font-b); font-size: var(--t-2); line-height: 1.45; color: var(--black, #1d1f23);
}
.sla-pop__ev .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--primary-color, #04696F); }
.sla-pop__ev.ev-pause .dot { background: #B45309; }
.sla-pop__ev.ev-complete .dot { background: #0F766E; }
.sla-pop__ev.ev-fail .dot { background: #DC2626; }
.sla-pop__ev.ev-reopen .dot { background: #94a3b8; }
.sla-pop__ev .t { margin-inline-start: auto; color: var(--gray, #828282); font-size: var(--t-1); white-space: nowrap; padding-inline-start: var(--s-5); }
.sla-pop__foot {
  margin-top: var(--s-5); padding: 9px var(--s-8) var(--s-6); background: #fafbfc;
  border-top: 1px solid var(--border, #e5e7eb);
  font-family: var(--font-b); font-size: var(--t-1); color: var(--gray, #828282); line-height: var(--lh-3);
}

/* View Transitions API — smooth crossfade between DOM states.
   Progressive enhancement; falls back cleanly on unsupported browsers. */
@supports (view-transition-name: none) {
  ::view-transition-old(ubridge-swap),
  ::view-transition-new(ubridge-swap) {
    animation-duration: 220ms;
    animation-timing-function: ease-in-out;
  }
}

/* ======================================================================
   PRIVACY & ACCESS (approved preview_privacy.html, 2026-07-07)
   — pending-count badge on the ticket-page privacy pill,
   — the Privacy & Access modal fragment (update_ticket_privacy.html),
   — the request-access page states (request_access.html).
   ====================================================================== */

/* Orange pending-request count inside the privacy pill. Rendered
   server-side for the decided approver population only, so it
   survives reloads with no client state. */
.priv-pending {
  background: var(--logo-orange, #E26E00);
  color: #fff;
  font-family: var(--font-h);
  font-size: var(--t-1);
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: var(--s-1);
}

/* ---- modal fragment ---- */
.pa-content { gap: var(--s-7); }
.pa-sec-title {
  font-family: var(--font-h);
  font-size: var(--t-2);
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.pa-cnt-badge {
  background: var(--logo-orange, #E26E00);
  color: #fff;
  font-family: var(--font-h);
  font-size: var(--t-1);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-pill);
}
.pa-cnt-badge.pa-cnt-gray { background: var(--gray-light2); color: var(--gray); }

.pa-req-card {
  background: #fff;
  border: 1px solid var(--gray-light2);
  border-radius: var(--r-5);
  padding: var(--s-6) var(--s-7);
  font-family: var(--font-b);
  margin-top: var(--s-4);
}
.pa-req-top { display: flex; align-items: center; gap: 9px; }
.pa-req-name { font-weight: 600; font-size: var(--t-2); }
.pa-dim { color: var(--gray); font-weight: 400; }
.pa-req-when { font-size: var(--t-1); color: var(--gray); }
.pa-req-just {
  font-size: var(--t-1);
  color: var(--black);
  margin: var(--s-4) 0 var(--s-5);
  background: var(--light-background);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  overflow-wrap: anywhere;
}
.pa-req-just b { color: var(--gray); font-weight: 600; }
.pa-req-actions { display: flex; gap: var(--s-4); justify-content: flex-end; }

.pa-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--logo-orange, #E26E00);
  object-fit: cover;
  flex-shrink: 0;
}
.pa-av-grp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-2);
  background: #E1EDEE;
  color: var(--primary-color);
  font-family: var(--font-h);
  font-size: var(--t-1);
  font-weight: 700;
  border-color: transparent;
}

.pa-seg {
  display: flex;
  background: var(--gray-light2);
  border-radius: var(--r-pill);
  padding: 3px;
}
.pa-seg button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-pill);
  font-family: var(--font-h);
  font-size: var(--t-2);
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}
.pa-seg button.on {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--sh-1);
}
.pa-seg button.on[data-v="department"] { color: var(--blue); }
.pa-seg button.on[data-v="private"] { color: var(--logo-orange, #E26E00); }
/* Three segments now fit where two did; keep the labels from wrapping when a
   department has a long name. */
.pa-seg button { min-width: 0; }
.pa-seg button[data-v="department"] { overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; display: inline-flex; }
/* Permission-gated: disabled + tooltip, never an error toast. */
.pa-seg.pa-locked button { cursor: not-allowed; opacity: .65; }

.pa-explain {
  font-size: var(--t-1);
  color: var(--gray);
  font-family: var(--font-b);
  line-height: var(--lh-3);
  margin-top: -8px;
}
.pa-explain b { color: var(--black); }

.pa-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-light2);
  border-radius: var(--r-5);
  padding: var(--s-1) var(--s-6);
}
.pa-row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-1);
  border-bottom: 1px solid #F3F3F3;
  font-family: var(--font-b);
  font-size: var(--t-2);
}
.pa-row:last-child { border-bottom: 0; }
.pa-row-locked { opacity: .75; }
.pa-main { min-width: 0; flex: 1; }
.pa-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-meta { font-size: var(--t-1); color: var(--gray); }
.pa-chip {
  font-family: var(--font-h);
  font-size: var(--t-1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: var(--s-1) var(--s-4);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.pa-chip-requester { background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); }
.pa-chip-group { background: var(--gray-light2); color: var(--gray); }
.pa-chip-granted { background: #e0e7ff; color: #3730a3; }
.pa-remove {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--gray);
  font-size: var(--t-4);
  line-height: var(--lh-1);
  padding: var(--s-1) var(--s-3);
  flex-shrink: 0;
  border-radius: var(--r-2);
}
.pa-remove:hover { color: #E90909; background: var(--gray-light1, #F5F5F5); }
.pa-remove-locked { visibility: hidden; }

.pa-add-row { display: flex; gap: var(--s-4); }
.pa-typeahead { position: relative; flex: 1; }
.pa-add-row input {
  width: 100%;
  font-family: var(--font-b);
  font-size: var(--t-2);
  padding: 9px var(--s-6);
  border: 1px solid var(--gray-light2);
  border-radius: var(--r-4);
  background: #fff;
}
.pa-add-row input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--sh-focus);
}

/* Typeahead dropdown — searches the tenant's users + groups. Rendered
   position:fixed and appended to <body> (positioned via JS from the
   input's rect) so the modal's own `overflow-y:auto` can't clip it —
   the same escape-the-scroll-container trick the sidebar pickers use.
   z-index sits above the modal (.popup is 211). */
.pa-suggest {
  position: fixed;
  background: #fff; border: 1px solid #d8d8d8; border-radius: var(--r-5);
  box-shadow: var(--sh-3);
  z-index: 3000; overflow: hidden auto; max-height: 300px; display: none;
}
.pa-suggest.is-open { display: block; }
.pa-suggest-cat {
  padding: var(--s-4) var(--s-7) var(--s-2); font-family: var(--font-h); font-size: var(--t-1);
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray);
}
.pa-suggest-row {
  display: flex; align-items: center; gap: var(--s-5); padding: var(--s-4) var(--s-7);
  cursor: pointer; font-family: var(--font-b); font-size: var(--t-2);
}
.pa-suggest-row.is-active,
.pa-suggest-row:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.pa-suggest-row.is-disabled { opacity: .55; cursor: default; }
.pa-suggest-row.is-disabled.is-active,
.pa-suggest-row.is-disabled:hover { background: transparent; }
.pa-suggest-row .pa-av { width: 26px; height: 26px; }
.pa-suggest-main { min-width: 0; flex: 1; }
.pa-suggest-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-suggest-name mark { background: color-mix(in srgb, var(--logo-orange) 22%, #fff); color: inherit; border-radius: var(--r-1); padding: 0 1px; }
.pa-suggest-sub { font-size: var(--t-1); color: var(--gray); }
.pa-suggest-badge {
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill); flex-shrink: 0;
}
.pa-suggest-badge.badge-user { background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); }
.pa-suggest-badge.badge-group { background: var(--gray-light2); color: var(--gray); }
.pa-suggest-added { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; color: var(--gray); flex-shrink: 0; }
.pa-suggest-empty { padding: var(--s-7); text-align: center; color: var(--gray); font-family: var(--font-b); font-size: var(--t-2); }
.pa-footnote {
  font-family: var(--font-b);
  font-size: var(--t-1);
  color: var(--gray);
  text-align: center;
}

/* Privacy modal save-lock variant: its writes are inline row actions
   (Approve/Deny/Add/revoke live INSIDE .popup-content — there is no
   footer Save button outside it), so the universal blur would blur
   the very button carrying the spinner. Keep the lock semantics
   (pointer-events from the base rule) but skip the blur here. */
.popup.is-locked .popup-content.pa-content {
  filter: none;
  opacity: 0.85;
}

/* Inline "Request approved/denied" empty state after the last pending
   card is resolved (approved preview §④). */
.pa-empty {
  text-align: center;
  padding: var(--s-7) var(--s-4);
  font-family: var(--font-b);
  color: var(--gray);
  font-size: var(--t-2);
  background: #fff;
  border: 1px solid var(--gray-light2);
  border-radius: var(--r-5);
  margin-top: var(--s-4);
}
.pa-empty svg { width: 30px; height: 30px; color: var(--gray-light2); display: block; margin: 0 auto var(--s-3); }
.pa-empty b {
  display: block;
  color: var(--black);
  font-family: var(--font-h);
  font-size: var(--t-2);
  margin-bottom: var(--s-1);
}

/* ---- request-access page states ---- */
.ra-state {
  text-align: center;
  padding: 18px var(--s-4);
  font-family: var(--font-b);
  color: var(--gray);
}
.ra-state svg { width: 36px; height: 36px; color: var(--gray-light2); margin-bottom: var(--s-4); }
.ra-state b {
  display: block;
  color: var(--black);
  font-family: var(--font-h);
  font-size: var(--t-3);
  margin-bottom: var(--s-1);
}
/* Both <p>-based blocks below would be dead-ruled by the generic
   `.popup-content p` (16px Poppins centered, specificity 0-1-1) —
   match/beat it explicitly. */
.ra-state p {
  margin: 0;
  font-family: var(--font-b);
  font-size: var(--t-2);
  font-weight: 400;
  color: var(--gray);
  line-height: var(--lh-3);
  text-align: center;
}
.popup-content p.ra-lead,
.ra-lead {
  font-family: var(--font-b);
  font-size: var(--t-2);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
  text-align: start;
}
.ra-note {
  font-family: var(--font-b);
  font-size: var(--t-2);
  border-radius: var(--r-4);
  padding: var(--s-5) var(--s-6);
  background: #fff;
  border: 1px solid var(--gray-light2);
}
.ra-note-denied { border-color: #f3c6c6; background: #fdf2f2; color: #991b1b; }

/* ======================================================================
   TIME PILL — the pills-row clock chip + popover (approved
   preview_time_tracking Phase 1). Teal tonal chip matching the SLA
   chips; the popover shows the working/waiting/resolution story.
   ====================================================================== */
.view-ticket-v3 .vt-time-pill {
  position: relative;
  width: 24px; height: 24px; border-radius: 50%; padding: 0;
  background: color-mix(in srgb, var(--primary-color, #04696F) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 30%, transparent);
  color: var(--primary-color, #04696F);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; transition: filter .12s ease, box-shadow .12s ease;
}
.view-ticket-v3 .vt-time-pill:hover { filter: brightness(.96); }
.view-ticket-v3 .vt-time-pill.is-open { box-shadow: var(--sh-focus); }
.view-ticket-v3 .vt-time-pill svg { width: 14px; height: 14px; }

/* v2 (approved preview_time_drawer): the Time panel is a right-side
   slide-over DRAWER, not an anchored popover — full height, its own
   scroll, always above the composer. Fixes the clipping / z-index
   collision the popover had with the comment box. */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.06); opacity: 0; pointer-events: none; transition: opacity .28s ease; z-index: 10049; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.vt-time-drawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100vh; height: 100dvh; width: 384px; max-width: 92vw;
  background: #fff; box-shadow: var(--sh-4); z-index: 10050;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1), visibility 0s linear .28s;
  font-family: var(--font-b); color: var(--black, #181818); font-weight: 400;
  /* closed = hidden, not only off-screen (9 Nov 2026, A5): its shadow drew a grey strip down the right of every
     request, and Tab could reach its Close button. visibility waits for the slide-out to finish. */
  visibility: hidden;
}
.vt-time-drawer.open { transform: translateX(0); visibility: visible; transition: transform .28s cubic-bezier(.4,0,.2,1), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .vt-time-drawer, .drawer-scrim { transition: none; } }
.vt-td-head { display: flex; align-items: center; gap: 9px; padding: var(--s-8) 18px; border-bottom: 1px solid var(--border, #e5e7eb); flex-shrink: 0; }
.vt-td-head h3 { font-family: var(--font-h); font-size: var(--t-4); font-weight: 700; display: flex; align-items: center; gap: var(--s-4); color: var(--black, #181818); margin: 0; }
.vt-td-head h3 svg { width: 16px; height: 16px; color: var(--primary-color, #04696F); }
.vt-td-head .chip { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; border-radius: var(--r-pill); padding: var(--s-1) var(--s-4); text-transform: uppercase; letter-spacing: .04em; }
.vt-td-head .chip.done { color: #006644; background: #e3fcef; }
.vt-td-head .chip.live { color: var(--primary-color, #04696F); background: color-mix(in srgb, var(--primary-color, #04696F) 12%, #fff); }
.vt-td-head .chip[hidden] { display: none; }
.vt-td-x { margin-inline-start: auto; width: 30px; height: 30px; border-radius: var(--r-3); border: none; background: none; color: var(--gray, #828282); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .12s; flex-shrink: 0; }
.vt-td-x:hover { background: var(--light-background, #F6F6F6); color: var(--black, #181818); }
.vt-td-x svg { width: 18px; height: 18px; }
.vt-td-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-8) 18px 26px; }
.vt-tm-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-6); }
.vt-tm-tile { background: var(--light-background, #F6F6F6); border-radius: var(--r-4); padding: 9px 11px; }
.vt-tm-tile .k { font-size: var(--t-1); color: var(--gray, #828282); display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.vt-tm-tile .k .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.vt-tm-tile .v { font-family: var(--font-h); font-size: var(--t-3); font-weight: 700; color: var(--black, #181818); }
.vt-tm-tile .v small { font-size: var(--t-1); font-weight: 600; color: var(--gray, #828282); }
.vt-tm-tile .v .met { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; border-radius: var(--r-pill); padding: 1px var(--s-3); margin-inline-start: 3px; vertical-align: 1px; }
.vt-tm-tile .v .met.ok { color: #006644; background: #e3fcef; }
.vt-tm-tile .v .met.bad { color: #991b1b; background: color-mix(in srgb, #DC2626 12%, #fff); }
.vt-tm-tile .v .met.pending { color: var(--gray, #828282); background: var(--gray-light2, #EBEBEB); }
.vt-tm-bar { display: flex; height: 12px; border-radius: var(--r-2); overflow: hidden; margin: var(--s-1) 0 var(--s-4); background: var(--gray-light2, #EBEBEB); }
.vt-tm-bar i { display: block; height: 100%; } .vt-tm-bar i + i { box-shadow: inset 1px 0 0 #fff; }
.vt-tm-legend { display: flex; flex-wrap: wrap; gap: var(--s-5); font-size: var(--t-1); color: var(--gray, #828282); margin-bottom: var(--s-5); }
.vt-tm-legend span { display: inline-flex; align-items: center; gap: 5px; } .vt-tm-legend .d { width: 8px; height: 8px; border-radius: var(--r-1); }
.vt-tm-row { display: flex; align-items: center; gap: 9px; padding: var(--s-3) 0; border-bottom: 1px solid #f3f3f3; font-size: var(--t-2); }
.vt-tm-row:last-child { border-bottom: 0; }
.vt-tm-row .d { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vt-tm-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-tm-row .nm small { color: var(--gray, #828282); font-size: var(--t-1); }
.vt-tm-row .du { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); font-variant-numeric: tabular-nums; color: var(--black, #181818); }
.vt-tm-row.live .du { color: var(--primary-color, #04696F); }
.vt-tm-live { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color, #04696F); display: inline-block; margin-inline-start: var(--s-2); animation: vt-tm-pulse 1.4s ease infinite; }
@keyframes vt-tm-pulse { 0%,100%{opacity:.35} 50%{opacity:1} }
.vt-tm-empty { color: var(--gray, #828282); font-size: var(--t-1); padding: var(--s-4) 0; line-height: var(--lh-3); }

/* ------------------------------------------------------------------
   TIME TRACKING v2 (approved preview_time_tracking_v2) — the popover's
   Total-effort header + the additive "Logged offline" section, and the
   resolve/pause modal offline line. Effort = auto working + Σ offline.
   ------------------------------------------------------------------ */
.vt-tm-total { background: color-mix(in srgb, var(--primary-color, #04696F) 7%, #fff); border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 20%, #fff); border-radius: var(--r-5); padding: 11px 13px; margin-bottom: var(--s-6); }
.vt-tm-total .cap { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-color, #04696F); margin-bottom: var(--s-1); }
.vt-tm-total .big { font-family: var(--font-h); font-size: var(--t-7); font-weight: 700; color: var(--black, #181818); line-height: 1.1; font-variant-numeric: tabular-nums; }
.vt-tm-total .brk { font-size: var(--t-1); color: var(--gray, #828282); margin-top: 3px; }
.vt-tm-total .brk b { color: var(--black, #181818); font-weight: 600; }

/* Outside-working-hours split — real elapsed time, honestly labelled as
   within-hours vs outside (evenings/weekends/holidays). */
.vt-tm-oh { margin: 0 0 var(--s-6); padding: 11px 13px; border: 1px solid var(--border, #e5e7eb); border-radius: var(--r-5); }
.vt-tm-oh .h { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray, #828282); margin-bottom: 9px; }
.vt-tm-oh .h svg { width: 12px; height: 12px; color: var(--gray); flex-shrink: 0; }
.vt-tm-oh .bar { display: flex; height: 12px; border-radius: var(--r-2); overflow: hidden; background: var(--gray-light2, #EBEBEB); margin-bottom: 9px; }
.vt-tm-oh .bar i { display: block; height: 100%; }
.vt-tm-oh .bar .in { background: var(--primary-color, #04696F); }
.vt-tm-oh .bar .out { background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 3px, #e2e8f0 3px, #e2e8f0 6px); }
.vt-tm-oh .lg { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--t-1); color: var(--black, #181818); }
.vt-tm-oh .lg .k { display: inline-flex; align-items: center; gap: var(--s-3); }
.vt-tm-oh .lg .k .d { width: 9px; height: 9px; border-radius: var(--r-1); flex-shrink: 0; }
.vt-tm-oh .lg .k .d.in { background: var(--primary-color, #04696F); }
.vt-tm-oh .lg .k .d.out { background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 2px, #e2e8f0 2px, #e2e8f0 4px); }
.vt-tm-oh .lg b { font-family: var(--font-h); font-variant-numeric: tabular-nums; }
.vt-tm-oh .note { font-size: var(--t-1); color: var(--gray, #828282); margin-top: var(--s-4); line-height: 1.45; }
.vt-tm-row .moon { color: var(--gray); margin-inline-start: 5px; display: inline-flex; vertical-align: -1px; }
.vt-tm-row .moon svg { width: 12px; height: 12px; }
.vt-tm-sec { display: flex; align-items: center; margin: var(--s-7) 0 var(--s-1); }
.vt-tm-sec h4 { margin: 0; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray, #828282); display: flex; align-items: center; gap: var(--s-3); }
.vt-tm-addbtn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--primary-color, #04696F); background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff); border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 25%, #fff); border-radius: var(--r-pill); padding: var(--s-2) var(--s-5); cursor: pointer; transition: background .12s; }
.vt-tm-addbtn:hover { background: color-mix(in srgb, var(--primary-color, #04696F) 15%, #fff); }
.vt-tm-addbtn svg { width: 11px; height: 11px; }
.vt-tm-addbtn[disabled] { opacity: .5; cursor: not-allowed; background: var(--gray-light2, #EBEBEB); color: var(--gray, #828282); border-color: transparent; }
.vt-tm-off { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid #f3f3f3; font-size: var(--t-2); }
.vt-tm-off:last-child { border-bottom: 0; }
.vt-tm-off .av { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; color: #fff; }
.vt-tm-off img.av { object-fit: cover; background: #fff; }
.vt-tm-off .nm { flex: 1; min-width: 0; }
.vt-tm-off .nm .who { font-weight: 600; font-family: var(--font-h); font-size: var(--t-1); color: var(--black, #181818); }
.vt-tm-off .nm .who span { color: var(--gray, #828282); font-weight: 400; font-family: var(--font-b); }
.vt-tm-off .nm .note { color: var(--gray, #828282); font-size: var(--t-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-tm-off .du { font-family: var(--font-h); font-weight: 700; font-size: var(--t-1); color: var(--primary-color, #04696F); font-variant-numeric: tabular-nums; }
.vt-tm-off .del { border: none; background: none; color: var(--gray, #828282); cursor: pointer; padding: var(--s-1); border-radius: var(--r-1); display: inline-flex; opacity: .55; transition: .12s; }
.vt-tm-off .del:hover { opacity: 1; color: var(--red, #C0392B); background: color-mix(in srgb, var(--red, #C0392B) 10%, #fff); }
.vt-tm-off .del svg { width: 13px; height: 13px; }
.vt-tm-addform { display: none; gap: var(--s-3); align-items: center; margin: var(--s-4) 0 var(--s-2); padding: 9px; background: var(--light-background, #F6F6F6); border-radius: var(--r-4); }
.vt-tm-addform.show { display: flex; }
.vt-tm-addform input { font-family: var(--font-b); font-size: var(--t-2); border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-2); padding: 7px 9px; background: #fff; min-width: 0; color: var(--black, #181818); }
.vt-tm-addform input:focus { outline: none; border-color: var(--primary-color, #04696F); }
.vt-tm-addform .mins { width: 64px; flex-shrink: 0; } .vt-tm-addform .note { flex: 1; }
.vt-tm-addform .go { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: #fff; background: var(--primary-color, #04696F); border: none; border-radius: var(--r-2); padding: 7px var(--s-6); cursor: pointer; flex-shrink: 0; }
.vt-tm-addform .go:hover { filter: brightness(1.06); }

/* resolve/pause modal — the additive "Log offline time" line */
.modal-offline { background: color-mix(in srgb, var(--primary-color, #04696F) 5%, #fff); border: 1px solid color-mix(in srgb, var(--primary-color, #04696F) 22%, #fff); border-radius: var(--r-4); padding: var(--s-6) 13px; }
.modal-offline .mo-lab { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: var(--primary-color, #04696F); margin-bottom: var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.modal-offline .mo-lab svg { width: 13px; height: 13px; }
.modal-offline .mo-row { display: flex; gap: var(--s-4); }
.modal-offline .mo-row input { font-family: var(--font-b); font-size: var(--t-3); border: 1px solid var(--gray-light2, #EBEBEB); border-radius: var(--r-3); padding: var(--s-4) 11px; background: #fff; color: var(--black, #181818); min-width: 0; }
.modal-offline .mo-row input:focus { outline: none; border-color: var(--primary-color, #04696F); }
.modal-offline .mo-row .mo-min { width: 90px; flex-shrink: 0; } .modal-offline .mo-row .mo-note { flex: 1; }
.modal-offline .mo-hint { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray, #828282); margin-top: var(--s-4); line-height: 1.45; }
.modal-offline .mo-hint b { color: var(--black, #181818); font-weight: 600; }

/* Loading skeleton — matches the popover layout (Linear pattern), not a spinner */
.vt-tm-sk { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: vt-tm-shim 1.3s infinite; border-radius: var(--r-2); }
@keyframes vt-tm-shim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* reduced motion freezes the shimmer and keeps the blocks: the shape is the information */
@media (prefers-reduced-motion: reduce) { .vt-tm-sk { animation: none; } }

/* ============================================================================
   INTEGRATIONS (P1, approved preview_integrations_p1) — outbound webhooks +
   Slack. Reuses the app's buttons (.button/.secondary-button), .grey-block, .page-title, table, and the .settings-tg toggle. Everything else is scoped
   under .int* / .intm* so it never leaks into other pages.
   ============================================================================ */
.int-lead, approved preview_integrations_p1) — outbound webhooks +
   Slack. Reuses the app's buttons (.btn-primary/.btn-secondary){ font-family: var(--font-b); font-size: var(--t-3); color: #5f6b78; margin: -8px 0 0; max-width: 760px; line-height: 1.55; }
.int-perm { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); background: #fff; border: 1px solid #EAECEF; border-radius: var(--r-pill); padding: 3px 11px; }
.int-list { display: flex; flex-direction: column; gap: var(--s-6); }
.int { display: flex; align-items: center; gap: var(--s-8); background: #fff; border: 1px solid #EAECEF; border-radius: var(--r-5); padding: 15px 18px; }
.int.is-off { opacity: .62; }
.int__ic { width: 44px; height: 44px; border-radius: var(--r-4); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #F5F7F8; }
.int__ic.slack { background: #F4ECF7; }
.int__main { flex: 1; min-width: 0; }
.int__top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.int__name { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: #1c2430; }
.int__type { font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill); background: #EAF3F3; color: var(--primary-color); }
.int__type.generic { background: #EEF0F2; color: #5f6b78; }
.int__url { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.int__events { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: 9px; }
.int__events .evt { font-family: var(--font-b); font-size: var(--t-1); color: #4b5563; background: #F4F6F7; border: 1px solid #EAECEF; border-radius: var(--r-pill); padding: var(--s-1) 9px; }
.int__right { display: flex; align-items: center; gap: var(--s-7); flex-shrink: 0; }
.int__last { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); text-align: end; line-height: var(--lh-3); }
.int__acts { display: flex; gap: 7px; }
.int__acts .ibtn:not(.btn) { width: 34px; height: 34px; border-radius: var(--r-3); border: 1px solid #EAECEF; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #5f6b78; transition: .12s; padding: 0; }
.int__acts .ibtn:not(.btn):hover { background: #F5F7F8; color: var(--primary-color); border-color: #DCE1E5; }
.int__acts .ibtn.del:hover { color: var(--red); border-color: #F3C6C6; background: #FDF3F3; }
.int__acts .ibtn svg { display: block; }

/* delivery status pill — tonal, leading dot (matches .severity family) */
.dpill { display: inline-flex; align-items: center; gap: var(--s-3); padding: 3px var(--s-5); border-radius: var(--r-pill); font-family: var(--font-b); font-size: var(--t-1); font-weight: 700; letter-spacing: .02em; line-height: var(--lh-1); white-space: nowrap; }
.dpill i { width: 6px; height: 6px; border-radius: 50%; }
.dpill.ok { background: color-mix(in srgb, #12805C 12%, #fff); color: #0a6b4c; } .dpill.ok i { background: #12805C; }
.dpill.pending { background: color-mix(in srgb, #6b7684 12%, #fff); color: #55606c; } .dpill.pending i { background: #6b7684; }
.dpill.retry { background: color-mix(in srgb, #B7791F 14%, #fff); color: #8a5a10; } .dpill.retry i { background: #B7791F; }
.dpill.fail { background: color-mix(in srgb, #DC2626 12%, #fff); color: #b01c1c; } .dpill.fail i { background: #DC2626; }

/* empty state (Notion/Linear pattern) */
.int-empty { text-align: center; padding: 44px var(--s-9); }
.int-empty svg { margin: 0 auto var(--s-7); display: block; }
.int-empty h3 { font-family: var(--font-h); font-size: var(--t-4); margin: 0 0 var(--s-3); color: #1c2430; }
.int-empty p { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); margin: 0 auto 18px; max-width: 400px; line-height: var(--lh-3); }

/* delivery log */
.int-log-wrap { background: #fff; border: 1px solid #EAECEF; border-radius: var(--r-5); overflow: hidden; }
.int-log { width: 100%; min-width: 0; border-collapse: collapse; background: #fff; margin: 0; border-radius: 0; }
.int-log thead { background: #fff; border-bottom: 1px solid var(--border); }
.int-log th { font-family: var(--font-b); font-size: var(--t-2); font-weight: 400; text-align: start; color: var(--gray); white-space: nowrap; padding: var(--s-6) var(--s-8); }
.int-log td { font-family: var(--font-b); font-size: var(--t-2); color: var(--black); padding: var(--s-6) var(--s-8); border-bottom: 1px solid var(--border); vertical-align: middle; }
.int-log tr:last-child td { border-bottom: none; }
.int-log td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-1); color: #5f6b78; }
.int-log-empty { padding: 30px; text-align: center; color: var(--gray); font-family: var(--font-b); font-size: var(--t-2); }
.int-sec-title { font-family: var(--font-h); font-size: var(--t-4); font-weight: 600; color: #1c2430; margin: var(--s-2) 0 0; }

/* ---- Add / edit modal (own .popup element, not the shared #backend-popup) ---- */
.popup.int-modal { max-width: 560px; padding: 0; background: #fff; overflow: hidden; }
.intm-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #EAECEF; }
.intm-head h3 { font-family: var(--font-h); font-size: var(--t-5); margin: 0; color: var(--black); }
.intm-head .intm-x { border: none; background: none; cursor: pointer; color: var(--gray); font-size: var(--t-6); line-height: var(--lh-1); padding: var(--s-2); }
.intm-body { padding: var(--s-9) 22px; max-height: 60vh; overflow-y: auto; }
.intm-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-7) 22px; border-top: 1px solid #EAECEF; }
.intm-fld { margin-bottom: var(--s-8); }
.intm-fld > label { display: block; font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #1c2430; margin-bottom: 7px; }
.intm-fld .hint { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin-top: var(--s-3); line-height: 1.45; }
.intm-in { width: 100%; padding: var(--s-5) var(--s-6); background: #fff; font-family: var(--font-b); font-size: var(--t-3); color: var(--black); border: 1px solid #DCE1E5; outline: none; border-radius: var(--r-4); }
.intm-in:focus { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.intm-in.err { border-color: var(--red); box-shadow: var(--sh-focus); }
.intm-err { display: none; font-family: var(--font-b); font-size: var(--t-1); color: var(--red); margin-top: var(--s-3); }
.intm-err.show { display: block; }
.intm-types { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.intm-tc { border: 1.5px solid #E4E7EA; border-radius: var(--r-5); padding: var(--s-6) 13px; cursor: pointer; display: flex; gap: var(--s-5); align-items: flex-start; transition: .12s; background: #fff; }
.intm-tc.sel { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 5%, #fff); }
.intm-tc__ic { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.intm-tc__t { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #1c2430; }
.intm-tc__d { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin-top: var(--s-1); line-height: 1.4; }
.intm-evgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.intm-evck { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #E4E7EA; border-radius: var(--r-4); cursor: pointer; font-family: var(--font-b); font-size: var(--t-2); color: #2b333d; user-select: none; }
.intm-evck .box { width: 17px; height: 17px; border-radius: var(--r-1); border: 1.5px solid #C4CAD0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: .1s; }
.intm-evck.on { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 5%, #fff); }
.intm-evck.on .box { background: var(--primary-color); border-color: var(--primary-color); }
.intm-evck .box svg { opacity: 0; } .intm-evck.on .box svg { opacity: 1; }
.intm-tog { display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); padding: var(--s-6) 0; }
.intm-tog + .intm-tog { border-top: 1px solid #F1F3F5; }
.intm-tog__t { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #1c2430; }
.intm-tog__d { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin-top: var(--s-1); max-width: 340px; line-height: 1.4; }
.intm-secret { display: flex; gap: var(--s-4); align-items: center; }
.intm-secret code { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: var(--t-1); background: #F4F6F7; border: 1px solid #E4E7EA; border-radius: var(--r-3); padding: 9px 11px; color: #3f4650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intm-copy { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--primary-color); background: #fff; border: 1px solid #DCE1E5; border-radius: var(--r-3); padding: var(--s-4) var(--s-6); cursor: pointer; white-space: nowrap; }
.intm-test { display: none; align-items: center; gap: 7px; font-family: var(--font-b); font-size: var(--t-2); margin-inline-start: var(--s-2); }
.intm-test.show { display: inline-flex; }
.intm-test.ok { color: #0a7d43; } .intm-test.bad { color: var(--red); } .intm-test.run { color: #5f6b78; }
.int-hidden { display: none !important; }

/* Integrations — per-group routing (approved preview_integrations_group_routing) */
.int-scope { font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; padding: var(--s-1) 9px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.int-scope.grp { background: #EEF4FF; color: #3050b5; }
.int-scope.all { background: #F1F3F5; color: var(--gray); }
.int-seg2 { display: inline-flex; background: #EEF0F2; border-radius: var(--r-4); padding: 3px; gap: var(--s-1); }
.int-seg2 button { border: none; background: none; font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #5f6b78; padding: 7px 15px; border-radius: var(--r-3); cursor: pointer; }
.int-seg2 button.on { background: #fff; color: var(--primary-color); box-shadow: var(--sh-1); }
.int-gpick { margin-top: 11px; }
.int-gpick.int-dim { opacity: .4; pointer-events: none; }
.int-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.int-chips:empty { display: none; }
.int-chip { display: inline-flex; align-items: center; gap: 7px; background: color-mix(in srgb, var(--primary-color) 8%, #fff); border: 1px solid color-mix(in srgb, var(--primary-color) 28%, #fff); color: var(--primary-color); border-radius: var(--r-pill); padding-block: 5px; padding-inline: var(--s-6) var(--s-4); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; }
.int-chip .rm { cursor: pointer; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary-color) 16%, #fff); font-size: var(--t-1); line-height: var(--lh-1); }
.int-chip .rm:hover { background: var(--primary-color); color: #fff; }
.int-gsearch { position: relative; }
.int-gmenu { position: absolute; top: calc(100% + 5px); inset-inline-start: 0; inset-inline-end: 0; background: #fff; border: 1px solid #EAECEF; border-radius: var(--r-5); box-shadow: var(--sh-4); z-index: 20; max-height: 210px; overflow-y: auto; padding: 5px; display: none; }
.int-gmenu.open { display: block; }
.int-gopt { display: flex; align-items: center; gap: var(--s-5); padding: 9px 11px; border-radius: var(--r-3); cursor: pointer; font-family: var(--font-b); font-size: var(--t-3); color: #2b333d; }
.int-gopt:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.int-gopt .ck { width: 16px; height: 16px; border-radius: var(--r-1); border: 1.5px solid #C4CAD0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.int-gopt.sel .ck { background: var(--primary-color); border-color: var(--primary-color); }
.int-gopt .ck svg { opacity: 0; } .int-gopt.sel .ck svg { opacity: 1; }
.int-gempty { padding: var(--s-7); text-align: center; color: var(--gray); font-family: var(--font-b); font-size: var(--t-2); }

/* ============================================================
   Unverified-email nag (approved preview_email).
   The approved decision was "let them in and nag" rather than
   locking the workspace — blocking at the door loses signups.
   Persistent and actionable, never blocking.
   ============================================================ */
.verify-nag {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  background: #FFF8EC;
  border-bottom: 1px solid #F0DFC0;
  color: #7a5a2a;
  font-family: var(--font-b);
  font-size: var(--t-3);
  line-height: var(--lh-3);
  padding: 11px var(--s-9);
}
.verify-nag__icon { display: flex; color: #B45309; flex: 0 0 auto; }
.verify-nag__text { flex: 1; min-width: 220px; overflow-wrap: anywhere; }
.verify-nag__text b { color: #5a3f14; }
.verify-nag form { margin: 0; }
.verify-nag__btn {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: var(--t-1);
  color: #7a5a2a;
  background: #fff;
  border: 1px solid #E0C89C;
  border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-7);
  cursor: pointer;
  transition: .15s;
}
.verify-nag__btn:hover { background: #B45309; border-color: #B45309; color: #fff; }
a.verify-nag__btn { text-decoration: none; display: inline-block; }   /* OPS-03: "Change my email" is a link */
/* D137 "whose clock?" (templates/_zone_question.html): the same strip in its calm colour — a
   question, not a warning. */
.verify-nag--info{background:#F3F9F9;border-bottom-color:#CFE3E4;color:#1F4F52}
.verify-nag--info .verify-nag__icon{color:var(--primary-color)}
.verify-nag--info .verify-nag__text b{color:#0B3B3E}
.verify-nag--info .verify-nag__btn{color:var(--primary-color);border-color:#CFE3E4}
.verify-nag--info .verify-nag__btn:hover{background:#E6F1F1;border-color:var(--primary-color);color:var(--primary-color)}
.verify-nag--info .verify-nag__btn--go{background:var(--primary-color);border-color:var(--primary-color);color:#fff}
.verify-nag--info .verify-nag__btn--go:hover{background:#035459;border-color:#035459;color:#fff}
/* CP-04 notices: a problem is red, one that is over is green (templates/_notice_strip.html). */
#ubNotices .verify-nag__btn{min-height:36px}
.verify-nag--stop{background:#FDECEC;border-bottom-color:#F5CFCF;color:#8A1F1F}
.verify-nag--stop .verify-nag__icon{color:#C42B2B}
.verify-nag--stop .verify-nag__text b{color:#6E1616}
.verify-nag--stop .verify-nag__btn{color:#8A1F1F;border-color:#F5CFCF}
.verify-nag--stop .verify-nag__btn:hover{background:#C42B2B;border-color:#C42B2B;color:#fff}
.verify-nag--done{background:#E7F5EE;border-bottom-color:#C9E8D8;color:#0E5C44}
.verify-nag--done .verify-nag__icon{color:#0E7C5A}
.verify-nag--done .verify-nag__text b{color:#0A4534}
.verify-nag--done .verify-nag__btn{color:#0E5C44;border-color:#C9E8D8}
.verify-nag--done .verify-nag__btn:hover{background:#0E7C5A;border-color:#0E7C5A;color:#fff}
.verify-nag__btn:focus-visible{outline:2px solid var(--primary-color);outline-offset:2px}
.verify-nag__acts{display:flex;gap:var(--s-4);flex-wrap:wrap}
@media (prefers-reduced-motion: no-preference){.verify-nag.is-leaving{transition:opacity .18s cubic-bezier(.4,0,.2,1);opacity:0}}

/* The sign pages have their own full-height layout; a banner there would sit
   above a centred card and look broken. */
.nt-details { display: grid; gap: var(--s-9); text-align: start; margin: var(--s-6) 0 var(--s-9); }
.nt-details h4 { margin: 0 0 var(--s-3); font-family: var(--font-h); font-size: var(--t-4); overflow-wrap: anywhere; }
.nt-details p.nt-details__when { margin: 0 0 var(--s-4); text-align: start; font-size: var(--t-2); }
.nt-details__time { display: grid; gap: var(--s-4); font-size: var(--t-3); }
.nt-details__time > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-4); overflow-wrap: anywhere; }
.nt-details__time time { color: var(--gray); font-size: var(--t-2); }
body.sign-page .verify-nag { display: none; }
/* A notice on the sign-in page sits across the top, outside the page's centred layout. */
body.sign-page .verify-nag.verify-nag--public { display: flex; position: fixed; inset: 0 0 auto 0; z-index: 10; }


/* ===========================================================================
   DEPARTMENTS (multi-department Phase 0-4)
   A card list, not a table: the posture is the headline, because it is the
   only reason this page exists. The three-way control lives here and nowhere
   else - an admin sets a department's posture once; a requester is never asked.
   =========================================================================== */
.dp-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: var(--s-9); flex-wrap: wrap; }
.dp-head h1 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-6); margin: 0 0 3px; }
.dp-head p { margin: 0; font-size: var(--t-2); color: var(--gray); }
.dp-new { display: flex; gap: var(--s-4); align-items: center; }
.dp-new input { border: 1px solid var(--gray-light2); border-radius: var(--r-3); padding: 9px var(--s-6);
  font-family: var(--font-b); font-size: var(--t-3); min-width: 220px; background: #fff; }
.dp-new input:focus { outline: none; border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }

.dp-list { display: flex; flex-direction: column; gap: 9px; }
.dp-card { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) 18px; align-items: center;
  background: #fff; border: 1px solid #E9E9E9; border-radius: var(--r-5); padding: 15px 17px;
  transition: border-color .13s, box-shadow .13s; }
.dp-card:hover { border-color: #D5D5D5; box-shadow: var(--sh-1); }
.dp-card:focus-within { border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }
.dp-card.is-off { opacity: .62; background: #FCFCFC; }
.dp-name { font-family: var(--font-h); font-weight: 600; font-size: var(--t-3);
  display: flex; align-items: center; gap: var(--s-4); }
.dp-tag { font-family: var(--font-b); font-size: var(--t-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; color: var(--gray);
  background: #F2F2F2; border-radius: var(--r-1); padding: var(--s-1) var(--s-3); }
.dp-see { grid-column: 1; display: flex; align-items: center; gap: 7px;
  font-size: var(--t-2); color: #4a4a4a; margin-top: 3px; }
.dp-see svg { width: 14px; height: 14px; flex: 0 0 auto; }
.dp-see b { font-weight: 600; color: var(--black); }
.dp-see.t-pub svg { color: var(--gray); }
.dp-see.t-dep svg { color: var(--primary-color); }
.dp-see.t-prv svg { color: var(--olive-gold, #6F6D04); }
.dp-groups { grid-column: 1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.dp-chip { font-size: var(--t-1); color: #555; background: #F5F5F5; border-radius: var(--r-1); padding: 2.5px var(--s-4); }
.dp-side { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: var(--s-7); }
.dp-meta { text-align: end; font-size: var(--t-1); color: var(--gray); line-height: var(--lh-3); white-space: nowrap; }
.dp-meta b { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-4); color: var(--black); }
.dp-edit { background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-3);
  height: 30px; padding: 0 var(--s-7); font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--black); cursor: pointer; transition: border-color .13s, color .13s; }
.dp-edit:hover { border-color: var(--primary-color); color: var(--primary-color); }
.dp-edit:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Teaches the decision instead of saying "no data". */
.dp-empty { border: 1px dashed #DFDFDF; border-radius: var(--r-5); padding: 26px var(--s-10);
  text-align: center; background: #FCFCFC; margin-top: var(--s-7); }
.dp-empty h4 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); margin: 0 0 5px; }
.dp-empty p { margin: 0 auto; font-size: var(--t-2); color: var(--gray); max-width: 46ch; line-height: 1.6; }

/* The three-way posture control. Stacked rows rather than three columns: at
   #backend-popup's inline 628px each option gets a full sentence instead of a
   cropped label. */
.dp-fld { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); margin: var(--s-8) 0 var(--s-3); }
.dv { display: flex; flex-direction: column; gap: 7px; }
.dv button { display: flex; gap: var(--s-5); align-items: flex-start; text-align: start; background: #fff;
  border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: 11px 13px; cursor: pointer;
  font-family: var(--font-b); transition: border-color .12s, background .12s; width: 100%; }
.dv button svg { width: 15px; height: 15px; color: var(--gray); flex: 0 0 auto; margin-top: var(--s-1); }
.dv .t { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--black); display: block; }
.dv .d { font-size: var(--t-1); color: var(--gray); margin-top: var(--s-1); line-height: 1.45; display: block; }
.dv button.on { border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 4%, #fff); }
.dv button.on svg { color: var(--primary-color); }
.dv button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.dp-effect { display: flex; gap: 9px; align-items: flex-start; background: #F7FAFA;
  border: 1px solid #DCEAEA; border-radius: var(--r-3); padding: 11px 13px; margin-top: var(--s-7);
  font-size: var(--t-2); line-height: 1.55; color: #31555a; }
.dp-effect svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--primary-color); margin-top: 1px; }
.dp-effect.is-warn { background: #FFF8F0; border-color: #F0DFC8; color: #6b5326; }
/* [hidden] is handled globally in global.css. */
.dp-effect.is-warn svg { color: var(--orange, #BE630D); }
/* A refused save's reasons, above a form that has no gap of its own (Edit user, Edit department). */
.popup .dp-effect.dp-refused { margin-bottom: 14px; }

/* --- inside #backend-popup, two generic rules outrank every component class
   here, and a standalone preview cannot show it because it has no .popup
   ancestor. Beat them explicitly (see the same note above .ra-lead):
       .popup-content p  -> 16px Poppins, CENTERED, grey   (0-1-1)
       .popup form       -> flex column with a 28px gap
   Rendered check: `python tools/render_modal.py edit_department.html`. --- */
.popup-content form.dp-form { display: block; gap: 0; }
.popup-content .dp-fld { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  margin: 18px 0 7px; text-align: start; color: var(--black); }
.popup-content p.dp-hint,
.dp-hint { margin: 0; font-family: var(--font-b); font-size: var(--t-1);
  font-weight: 400; color: var(--gray); line-height: var(--lh-3); text-align: start; }
.popup-content .dp-effect span { text-align: start; }

/* Department approvers. `p.dp-note` is written with the tag because
   `.popup-content p` (0-1-1) would otherwise make it 16px Poppins and CENTRED —
   the same rule that shipped the department hint wrong once already, and which
   tests/test_modal_style_specificity.py now fails the build over. */
.popup-content p.dp-note,
.dp-note { margin: var(--s-3) 0 0; font-family: var(--font-b); font-size: var(--t-1);
  font-weight: 400; color: var(--gray); line-height: var(--lh-3); text-align: start; }
/* The staff suspend dialog (_admin_suspend_dialog.html, P0-03, shared by Tenants and a workspace's
   Edit page): its sentence and its hint start at the left, as every hint does, instead of the popup's
   16px centred paragraph (tests/test_modal_style_specificity.py). */
.popup-content p.adm-suspend-body { margin: 0 0 var(--s-7); font-family: var(--font-b); font-size: var(--t-3);
  font-weight: 400; color: #4a5560; line-height: 1.65; text-align: start; }
.popup-content p.adm-help { margin: var(--s-2) 0 0; font-family: var(--font-b); font-size: var(--t-1);
  font-weight: 400; color: var(--gray); line-height: 1.55; text-align: start; }
/* P0-09: the Archive / Bring back windows' own message (_admin_archive_dialog.html), when a refusal names no field */
.popup-content p.arc-msg { margin: 0; background: #FDECEC; color: #C42B2B; border-radius: var(--r-3); padding: 11px 13px;
  font-family: var(--font-b); font-size: var(--t-2); font-weight: 500; line-height: 1.5; text-align: start; }
.dp-approvers { padding: 0; border: 0; display: block; height: auto; }
.dp-approvers .select2-container { width: 100% !important; }
.dp-warn { display: flex; gap: 9px; align-items: flex-start; background: #FFF8F0;
  border: 1px solid #F0DFC8; border-radius: var(--r-3); padding: 11px 13px; margin-top: var(--s-5);
  font-size: var(--t-2); line-height: 1.55; color: #6b5326; text-align: start; }
.dp-warn svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--orange, #BE630D);
  margin-top: 1px; }
.popup-content .dp-warn span { text-align: start; }

/* Part B — tickets a bulk move leaves for a person (approved
   preview_privacy_model_b v2, section 7): the cascade in Edit CTI, the list
   after saving, and a team changing department in Edit Group. */
.skip { border: 1px solid #F0DFC8; background: #FFFBF5; border-radius: var(--r-5); margin-top: var(--s-6);
  overflow: hidden; text-align: start; }
.skip-h { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-7); font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-2); color: #6b5326; border-bottom: 1px solid #F3E6D2; }
.skip-h svg { width: 15px; height: 15px; color: #BE630D; flex: 0 0 auto; }
.skip-h .n { margin-inline-start: auto; font-family: var(--font-b); font-weight: 600; font-size: var(--t-1); color: #8a6a45; }
.skip-row { display: grid; grid-template-columns: 86px 1fr auto; gap: var(--s-5); align-items: center;
  padding: var(--s-4) var(--s-7); border-top: 1px solid #F7EEE1; font-size: var(--t-2); }
.skip-row .num { font-family: ui-monospace, Menlo, monospace; color: #04696F; font-size: var(--t-2); }
.skip-row .why { font-size: var(--t-1); color: #8a6a45; white-space: nowrap; }
.skip-row .t { color: #2b3640; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skip-f { padding: 9px var(--s-7); border-top: 1px solid #F3E6D2; font-size: var(--t-1); color: #8a6a45; }
.skip.skip--page { margin: 0 0 var(--s-8); background: #fff; }
.grp-modal .dp-form > .skip { margin-top: var(--s-7); }
/* Part B (approved preview_privacy_model_b v2, section 7): the bulk bar's
   result names what it skipped. Bottom-right with the toasts; stays until
   dismissed while the page refreshes behind it. */
.bulk-result { pointer-events: auto; background: #fff; border: 1px solid #E6EAED; border-radius: var(--r-5);
  box-shadow: var(--sh-4); width: 520px; max-width: calc(100vw - 32px); }
.bulk-result .br-h { display: flex; align-items: center; gap: 9px; padding: var(--s-6) var(--s-7); font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-3); color: #12202b; }
.bulk-result .br-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); flex: 0 0 auto; }
.bulk-result .br-h .ub-toast__x { margin-inline-start: auto; }
.bulk-result .skip { margin: 0 var(--s-7) var(--s-7); max-height: 280px; overflow-y: auto; }
.bulk-result .skip-row:first-child { border-top: 0; }
.bulk-result .skip-row .why { white-space: normal; text-align: end; max-width: 240px; }

/* A hairline between each field block. The fields were stacked tight enough
   that a label read as belonging to the input above it rather than the one
   below; the rule buys the separation and the divider makes the grouping
   explicit. Settings-list pattern — Notion, Linear and Stripe all use it. */
.dept-modal .dp-form > .input + .input,
.dept-modal .dp-form > .dp-fld,
.grp-modal .dp-form > .input + .input,
.grp-modal .dp-form > .dp-effect + .input {
  border-top: 1px solid #ECEDEE;
  margin-top: 18px;
  padding-top: 18px;
}
/* The move warning sits between two fields; the field after it keeps its
   divider whether the warning is showing or not, so the rhythm never changes
   as it appears and disappears. */

/* One label style in this modal. `.input` is 16px Poppins grey, which sat next
   to a 12.5px black question and read as two different designs. */
.dept-modal .input { gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-2);
  font-weight: 600; line-height: 1.4; color: var(--black); }
.dept-modal .dp-fld { margin: var(--s-8) 0 7px; }
.dept-modal .dp-effect { margin-top: var(--s-7); }

/* Actions belong together, primary last — the pattern create_ticket uses. */
.popup-footer.dept-foot { justify-content: flex-end; gap: var(--s-5); }
.popup-footer.dept-foot .button, .popup-footer.dept-foot .btn-primary{ min-width: 132px; }

/* The group editor carries the same fields, so it gets the same treatment —
   one label style, and actions together in the footer with primary last. */
.grp-modal .input { gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-2);
  font-weight: 600; line-height: 1.4; color: var(--black); }
.popup-footer.grp-foot { justify-content: flex-end; gap: var(--s-5); }
.popup-footer.grp-foot .button, .popup-footer.grp-foot .btn-primary{ min-width: 132px; }
.grp-danger { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-7); margin-top: var(--s-9); padding-top: var(--s-8); border-top: 1px solid var(--gray-light2); }
.grp-danger form { order: -1; }
.grp-danger .dp-hint { flex: 1; }

/* Danger zone: one compact row, not a stack of mismatched pills. */
.dp-danger { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-7); margin-top: var(--s-9); padding-top: var(--s-8); border-top: 1px solid var(--gray-light2); }
.dp-danger .dp-hint { flex: 1; }
/* Destructive action to the LEFT, away from Save in the footer corner: stacked
   vertically they were one slip apart. `order` keeps the DOM reading
   explanation-then-action for screen readers. */
.dp-danger .delete-secondary-button, .dp-danger form, away from Save in the footer corner: stacked
   vertically they were one slip apart. `order` keeps the DOM reading
   explanation-then-action for screen readers. */
.dp-danger .btn-danger-2{ order: -1; }
.dp-danger .delete-secondary-button, .dp-danger .btn-danger-2{ flex: 0 0 auto; white-space: nowrap; }
.dp-danger .delete-secondary-button[disabled], .dp-danger .btn-danger-2[disabled]{ opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
  .dp-danger { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .dp-card { grid-template-columns: 1fr; }
  .dp-side { grid-row: auto; grid-column: 1; justify-content: space-between; margin-top: var(--s-5); }
  .dp-new { width: 100%; } .dp-new input { flex: 1; min-width: 0; }
}

/* CTI "who can read it" column — the plain answer, never the word "inherit".
   Overrides carry a Set here mark; the grey line names where an inherited
   answer came from. */
.cti-vis { white-space: normal; }
.cti-vis-answer { display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-2); color: #4a4a4a; }
.cti-vis-answer svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--gray); }
.cti-vis-answer.t-department svg { color: var(--primary-color); }
.cti-vis-answer.t-private svg { color: var(--olive-gold, #6F6D04); }
.cti-vis-none { color: var(--gray); }
.cti-vis-set { font-size: var(--t-1); font-family: var(--font-h); font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase; color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, #fff);
  border-radius: var(--r-1); padding: var(--s-1) var(--s-3); margin-inline-start: 7px; white-space: nowrap; }
.cti-vis-src { display: block; font-size: var(--t-1); color: var(--gray); margin-top: var(--s-1); }
.cti-vis-src.is-split { color: var(--orange, #BE630D); }


/* ===========================================================================
   ACCESS & HANDLING — the policy editor (Part B, Phase 1)
   Approved preview_privacy_model_b v2, section 1 (the page) and section 2 (the
   "Move open tickets" confirmation). Page: templates/access_handling.html and
   static/js/access_handling.js. Modal: templates/access_handling_move.html,
   rendered in the real shell with `python tools/render_modal.py
   access_handling_move.html`.
   =========================================================================== */
.pol-page .dp-head { margin-bottom: var(--s-7); }
.pol { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
@media (max-width: 980px) { .pol { grid-template-columns: 1fr; } }
/* Beats the global `nav` rule (the top bar's pill) — same fix as .settings-nav. */
nav.pol-tree { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
  height: auto; min-height: 0; width: auto; margin: 0; background: #fff; border: 1px solid #E9EDEF;
  border-radius: var(--r-5); padding: var(--s-5); position: static; overflow: visible; box-shadow: none; }
.pol-search { width: 100%; box-sizing: border-box; height: 36px; border: 1px solid #DCE1E5; border-radius: var(--r-3);
  padding: 0 11px; font-family: var(--font-b); font-size: var(--t-2); margin-bottom: var(--s-4); background: #fff; }
.pol-search:focus { outline: none; border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }
.pol-node { display: flex; align-items: center; gap: var(--s-3); width: 100%; border: 0; background: none; text-align: start;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-3); font-family: var(--font-b); font-size: var(--t-2); color: #2b3640;
  cursor: pointer; min-height: 30px; box-sizing: border-box; }
.pol-node:hover { background: #F3F5F6; }
.pol-node:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.pol-node.is-on { background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); font-weight: 600; }
.pol-node.l0 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); margin-top: var(--s-2); }
.pol-node.l1 { padding-inline-start: var(--s-9); } .pol-node.l2 { padding-inline-start: 34px; } .pol-node.l3 { padding-inline-start: 48px; }
.pol-node .pol-nm { min-width: 0; overflow-wrap: anywhere; }
.pol-node--label { cursor: default; color: #6F6F6F; }
.pol-node--label:hover { background: none; }
.pol-tree-empty { font-size: var(--t-2); color: #6F6F6F; padding: var(--s-4); }
.pol-tag { margin-inline-start: auto; font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; border-radius: var(--r-pill);
  padding: 1px 7px; white-space: nowrap; flex: 0 0 auto; }
.pol-tag.open { background: #E6F1F1; color: #04696F; } .pol-tag.team { background: #EEF0FA; color: #35358B; }
.pol-tag.conf { background: #FFF1E0; color: #B45309; } .pol-tag.hc { background: #FBEFF3; color: #9F1239; }
.pol-tag.inh { background: none; color: #6F6F6F; font-weight: 500; padding: 0; }
.pol-tag.draft { background: #FDECEF; color: #B4233E; }
#pol-status .pol-tag { margin: 0; }
.pol-main { background: #fff; border: 1px solid #E9EDEF; border-radius: 16px; overflow: hidden; min-width: 0; }
.pol-top { padding: var(--s-7) var(--s-9); border-bottom: 1px solid #EEF1F3; }
.pol-crumb { font-size: var(--t-2); color: #6F6F6F; overflow-wrap: anywhere; }
.pol-crumb b { color: #37424e; font-weight: 600; }
.pol-h { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-top: 3px; }
.pol-h h2 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-6); margin: 0; color: #12202b; overflow-wrap: anywhere; }
/* Focus lands on the title after a save or a move reloads the node (tabindex -1). */
.pol-h h2:focus { outline: none; }
.pol-h h2:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; border-radius: var(--r-1); }
.pol-ver { font-size: var(--t-1); color: #6F6F6F; margin-inline-start: auto; }
button.pol-move { display: inline-block; background: none; border: 0; padding: 0; margin-top: 5px; cursor: pointer;
  font-family: var(--font-b); }
button.pol-move:hover { text-decoration: underline; }
.pol-body { padding: var(--s-7) var(--s-9) 18px; }
.pol-split { margin: 0 0 var(--s-6); }
.pol-k { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #12202b; margin: 0 0 7px;
  display: flex; align-items: center; gap: var(--s-4); }
.pol-k .pol-src { margin-inline-start: 0; }
.pol-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 760px) { .pol-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pol-presets button { display: block; text-align: start; background: #fff; border: 1px solid var(--gray-light2);
  border-radius: var(--r-4); padding: var(--s-5) var(--s-6); cursor: pointer; font-family: var(--font-b); }
.pol-presets button:hover { border-color: #cdd3da; }
.pol-presets button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.pol-presets button .t { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-2); color: var(--black); }
.pol-presets button .d { display: block; font-size: var(--t-1); color: var(--gray); margin-top: 3px; line-height: 1.4; }
.pol-presets button.on { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 4%, #fff); }
.pol-presets button .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.pol-sk-card { border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-5) var(--s-6); }
.pol-custom { font-size: var(--t-1); color: #B45309; margin-top: var(--s-3); }
.pol-sent { display: flex; gap: var(--s-5); background: #F7FAFA; border: 1px solid #CFE3E3; border-radius: var(--r-5);
  padding: var(--s-6) var(--s-7); margin: var(--s-7) 0 0; font-size: var(--t-3); line-height: 1.6; color: #1f3b3e; }
.pol-sent svg { flex: 0 0 auto; color: var(--primary-color); margin-top: 3px; }
.pol-sent .lb { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); letter-spacing: .05em;
  text-transform: uppercase; color: #04696F; margin-bottom: var(--s-1); }
.pol-sent.is-bad { background: #FDF6F6; border-color: #F2D2D2; color: #6a2a2a; }
.pol-sent.is-bad svg, .pol-sent.is-bad .lb { color: #B4233E; }
details.pol-grp { margin-top: var(--s-6); border: 1px solid #EEF1F3; border-radius: var(--r-5); background: #fff; }
details.pol-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--s-7); font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #12202b; }
details.pol-grp > summary::-webkit-details-marker { display: none; }
details.pol-grp > summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; border-radius: var(--r-5); }
details.pol-grp > summary .n { margin-inline-start: auto; font-family: var(--font-b); font-weight: 600; font-size: var(--t-1); color: #6F6F6F; }
details.pol-grp > summary svg { transition: transform .15s; color: #6F6F6F; }
details.pol-grp[open] > summary svg { transform: rotate(90deg); }
.pol-sk-grp { margin-top: var(--s-6); border: 1px solid #EEF1F3; border-radius: var(--r-5); }
.pol-sk-sum { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-6) var(--s-7); }
.pol-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 108px; gap: var(--s-6); align-items: center;
  padding: 9px var(--s-7); border-top: 1px solid #F3F5F6; }
@media (max-width: 760px) { .pol-row { grid-template-columns: 1fr; } }
.pol-l { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #37424e; }
.pol-l small { display: block; font-family: var(--font-b); font-weight: 400; font-size: var(--t-1); color: #6F6F6F;
  margin-top: 1px; line-height: 1.35; }
.pol-src { justify-self: end; font-size: var(--t-1); font-family: var(--font-h); font-weight: 600; border-radius: var(--r-2);
  padding: var(--s-1) 7px; white-space: nowrap; color: #6F6F6F; background: #F3F5F6; }
.pol-src.here { color: #04696F; background: #E6F1F1; }
.pol-src.fixed { color: #6b7076; background: #EEF0F2; }
.pol-src.bad { color: #B4233E; background: #FDECEF; }
/* "Set here" is also the way back: hovering it says Inherit. */
button.pol-src { border: 0; cursor: pointer; line-height: inherit; }
button.pol-src .b { display: none; }
button.pol-src:hover .a, button.pol-src:focus-visible .a { display: none; }
button.pol-src:hover .b, button.pol-src:focus-visible .b { display: inline; }
button.pol-src:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.pol-main .settings-seg { flex-wrap: wrap; }
.pol-main .settings-seg button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.pol-main .settings-seg button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.pol-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.pol-chips--below { margin-top: var(--s-4); }
.pol-chip { display: inline-flex; align-items: center; gap: var(--s-3); border: 1px solid #DCE1E5; border-radius: var(--r-pill);
  padding-block: var(--s-1);
  padding-inline: 9px var(--s-2); font-size: var(--t-2); color: #1c2430; background: #fff; max-width: 100%; }
.pol-chip small { color: #6F6F6F; }
.pol-chip button { border: 0; background: none; color: #6F6F6F; cursor: pointer; font-size: var(--t-4); line-height: var(--lh-1);
  padding: 0 var(--s-2); border-radius: 50%; }
.pol-chip button:hover { color: #B4233E; }
.pol-chip button:focus-visible { outline: 2px solid var(--primary-color); }
.pol-chip.is-bad { border-color: #F2B8C3; background: #FDF2F4; }
/* The person on a chip: real photo (22px inline, D39) + the person-card trigger. */
.pol-chip .pol-chip-who { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; border-radius: var(--r-pill); }
.pol-chip .pol-chip-who:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.pol-chip-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; margin-inline-start: -4px; }
.pol-add { border: 1px dashed #CBD5D8; border-radius: var(--r-pill); padding: 3px var(--s-5); font-size: var(--t-2); color: #5f6b78;
  background: #fff; cursor: pointer; font-family: var(--font-b); }
.pol-add:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pol-add:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.pol-note { font-size: var(--t-1); color: #6F6F6F; margin-top: var(--s-2); line-height: 1.45; }
.pol-note.bad { color: #B4233E; }
.pol-fixed { font-size: var(--t-2); color: #5f6b78; line-height: 1.45; }
.pol-checks { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); }
.pol-checks label { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--t-2); color: #2b3640;
  font-family: var(--font-b); }
.pol-link { font-size: var(--t-2); color: var(--primary-color); font-weight: 600; text-decoration: none; }
.pol-errs { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.pol-errs:empty { display: none; }
.skip.pol-stranded { margin-top: var(--s-6); background: #fff; }
.pol-err { display: flex; gap: 9px; align-items: flex-start; background: #FDF2F2; border: 1px solid #F5D0D0;
  border-radius: var(--r-4); padding: 9px var(--s-6); font-size: var(--t-2); color: #8a2020; line-height: 1.55; }

/* A PROBLEM ON THE ROW IT IS ABOUT. Three red lines at the top of a long form,
   none of them pointing at a control, is what "it is not clear what is missing"
   meant. The message at the top stays — some problems are about the policy
   rather than one setting — and anything that names a field also marks it. */
.pol-row.is-bad{background:#FFFBFB;border-radius:var(--r-4);
  box-shadow:inset 3px 0 0 0 #B4241F;padding-inline-start:11px}
.pol-rowerr{grid-column:1 / -1;font-family: var(--font-b);font-size:var(--t-2);
  line-height:1.55;color:#B4241F;margin-top:var(--s-1)}

/* THE HELP MARKER. An inline SVG at 14px taking stroke="currentColor", so it
   picks up the row's colour and scales with the type — never a character or an
   emoji, which render differently on every machine and cannot take the brand
   colour. */
.pol-help{background:none;border:none;padding-block:0; padding-inline:5px 0;margin:0;cursor:pointer;
  color:#6c6c6c;vertical-align:-2px;line-height:0}
.pol-help svg{width:14px;height:14px;display:block}
.pol-help:hover,.pol-help[aria-expanded="true"]{color:var(--primary-color)}
.pol-help:focus-visible{outline:2px solid var(--primary-color);outline-offset:2px;border-radius:50%}

/* Its popover. position: fixed and repositioned on scroll with capture, so it
   follows its row inside the editor's own scrolling column — absolute plus
   window.scrollY detaches and the thing floats away, which is the bug this
   codebase already shipped once on the status and assignee pickers. */
.pol-helppop{position:fixed;z-index:70;max-width:330px;background:#fff;
  border:1px solid #E4E9EB;border-radius:var(--r-5);box-shadow:var(--sh-3);
  padding:13px 15px;font-family: var(--font-b);font-size:var(--t-2);line-height:1.6;color:#2b3640}
.pol-helppop .hd{font-family: var(--font-h);font-weight:600;font-size:var(--t-2);color:#12202b;margin-bottom:5px}
.pol-helppop p{margin:0;font-size:var(--t-2);line-height:1.6}
.pol-helppop .op{margin-top:7px;padding-top:7px;border-top:1px solid #F1F3F4}
.pol-helppop .op b{font-family: var(--font-h);font-weight:600}
.pol-err svg { flex: 0 0 auto; margin-top: var(--s-1); color: #C0392B; }
.pol-err b { font-family: var(--font-h); font-weight: 600; }
.pol-vrow { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; padding: 9px var(--s-7);
  border-top: 1px solid #F3F5F6; font-size: var(--t-2); color: #37424e; }
.pol-vrow b { font-family: var(--font-h); font-weight: 600; color: #12202b; }
.pol-vrow .cur { font-family: var(--font-h); font-weight: 700; font-size: var(--t-1); letter-spacing: .05em;
  text-transform: uppercase; color: #04696F; background: #E6F1F1; border-radius: var(--r-pill); padding: var(--s-1) var(--s-4); }
.pol-vrow .when { margin-inline-start: auto; color: #6F6F6F; }
.pol-vnone { padding: var(--s-5) var(--s-7); border-top: 1px solid #F3F5F6; font-size: var(--t-2); color: #6F6F6F; }

/* ===== Access & handling, the 2027 page (D88 / design/10; preview_access_handling_2027) =====
   The list (filters, one card per department, quiet rows), what is different here, all
   settings folded, check a person, versions as a timeline, before you save, the phone. */
/* a link that is a button takes the page's type (a button does not inherit it: it was Arial,
   on main too, for "Move open tickets" in the header) */
.pol-page button.pol-link { font-family: var(--font-h); }
.pol-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-5); }
.pol-filters button { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 30px; padding: var(--s-1) var(--s-6);
  border: 1px solid #DCE1E5; border-radius: var(--r-pill); background: #fff; color: #37424e; cursor: pointer;
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); transition: background-color var(--dur-state, 120ms) var(--ease, ease), border-color var(--dur-state, 120ms) var(--ease, ease); }
.pol-filters button:hover { border-color: #C5CDD2; }
.pol-filters button[aria-pressed="true"] { background: #E6F1F1; border-color: #CFE3E3; color: var(--primary-color); }
.pol-filters button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.pol-filters .n { color: #6F6F6F; font-variant-numeric: tabular-nums; }
.pol-filters .n.bad { color: #B4233E; }
.pol-filters .n .vt-tm-sk { display: inline-block; width: 14px; height: 10px; border-radius: var(--r-1); vertical-align: -1px; }
.pol-sec { border-top: 1px solid #F1F3F4; padding: var(--s-2) 0; }
.pol-sec:first-of-type { border-top: 0; }
.pol-sec[hidden] { display: none; }
.pol-shead { display: flex; align-items: center; gap: var(--s-1); }
.pol-tog { flex: 0 0 auto; width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; border: 0;
  background: none; color: #6F6F6F; border-radius: var(--r-2); cursor: pointer; }
.pol-tog:hover { background: #F3F5F6; color: #12202b; }
.pol-tog:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.pol-tog svg { transition: transform var(--dur-state, 120ms) var(--ease, ease); }
.pol-tog[aria-expanded="true"] svg { transform: rotate(90deg); }
.pol-shead .pol-node.l0 { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.pol-cnt { padding-block: 0 var(--s-2); padding-inline: 36px var(--s-4); font-size: var(--t-1); color: #6F6F6F; }
.pol-cnt:empty { display: none; }
.pol-cnt .bad { color: #B4233E; font-weight: 600; white-space: nowrap; }
.pol-cnt .bad svg { width: 12px; height: 12px; vertical-align: -2px; }
.pol-kids { padding-bottom: var(--s-2); }
.pol-kids .pol-node.l1 { padding-inline-start: 36px; }
.pol-kids .pol-node.l2 { padding-inline-start: 50px; }
.pol-kids .pol-node.l3 { padding-inline-start: 64px; }
/* a service that only follows what is above it says nothing: the quiet rows are the point */
.pol-kids .pol-node:not([data-sets]) .pol-tag.inh { display: none; }
.pol-need { flex: 0 0 auto; display: inline-flex; color: #B4233E; }
.pol-need svg { width: 14px; height: 14px; display: block; }
.pol-node.needs .pol-tag { margin-inline-start: var(--s-2); }
.pol-node.needs .pol-nm { margin-inline-end: auto; }
.pol-tree-empty { padding: var(--s-6) var(--s-4); font-size: var(--t-2); color: #6F6F6F; line-height: 1.5; }

.pol-back { display: none; align-items: center; gap: var(--s-2); padding: 0; margin: 0 0 var(--s-4); border: 0; background: none;
  color: var(--primary-color); font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); cursor: pointer; }
.pol-back svg { transform: rotate(180deg); }
.pol-back:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: var(--r-1); }

.pol-diff { margin-top: var(--s-7); border: 1px solid #EEF1F3; border-radius: var(--r-5); padding: var(--s-6) var(--s-7); background: #fff; }
.pol-diff:empty { display: none; }
.pol-diff h3 { margin: 0 0 var(--s-2); font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #12202b; }
.pol-diff .none { margin: 0; font-size: var(--t-2); color: #6F6F6F; line-height: 1.5; }
.pol-drow { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-4) 0; border-top: 1px solid #F3F5F6; }
.pol-diff h3 + .pol-drow { border-top: 0; }
.pol-drow .k { flex: 0 1 220px; min-width: 0; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #37424e; }
.pol-drow .v { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  font-size: var(--t-2); color: #12202b; }
.pol-drow .v .was { color: #6F6F6F; }
.pol-drow .v .pol-same { color: #6F6F6F; }
.pol-drow .v .pol-same::before { content: "·"; margin-inline-end: var(--s-2); }
.pol-drow .v svg { width: 12px; height: 12px; color: #6F6F6F; flex: 0 0 auto; }
.pol-drow .pol-link { flex: 0 0 auto; margin-inline-start: auto; background: none; border: 0; padding: var(--s-1) var(--s-2); cursor: pointer; border-radius: var(--r-1); }
.pol-drow .pol-link:focus-visible, .pol-diff .pol-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.pol-diff .more { margin-top: var(--s-4); }
.pol-diff .more .pol-link { background: none; border: 0; padding: 0; cursor: pointer; }

details.pol-all { margin-top: var(--s-7); border: 1px solid #E3E8EA; border-radius: var(--r-5); background: #fff; }
details.pol-all > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  padding: var(--s-6) var(--s-7); font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: #12202b; }
details.pol-all > summary::-webkit-details-marker { display: none; }
details.pol-all > summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; border-radius: var(--r-5); }
details.pol-all > summary svg { color: #6F6F6F; transition: transform var(--dur-state, 120ms) var(--ease, ease); }
details.pol-all[open] > summary svg { transform: rotate(90deg); }
details.pol-all > summary small { font-family: var(--font-b); font-weight: 400; font-size: var(--t-2); color: #6F6F6F; }
details.pol-all > summary .n { margin-inline-start: auto; font-family: var(--font-b); font-size: var(--t-1); color: #6F6F6F; }
details.pol-all > summary .n.bad { color: #B4233E; font-weight: 600; }
details.pol-all > details.pol-grp { margin: 0 var(--s-6) var(--s-6); }

.pol-card { margin-top: var(--s-7); border: 1px solid #EEF1F3; border-radius: var(--r-5); padding: var(--s-7); background: #fff; }
.pol-card h3 { margin: 0; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: #12202b; }
.pol-sk-card2 h3 { display: none; }
.pol-person .lead { margin: var(--s-2) 0 var(--s-6); font-size: var(--t-2); color: #6F6F6F; line-height: 1.5; }
.pol-pwho { display: flex; align-items: center; gap: var(--s-5); padding-bottom: var(--s-4); }
.pol-pwho img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pol-pwho .nm { font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: #12202b; }
.pol-pwho small { display: block; font-size: var(--t-1); color: #6F6F6F; }
.pol-pwho .pol-link { margin-inline-start: auto; background: none; border: 0; padding: var(--s-1) var(--s-2); cursor: pointer; border-radius: var(--r-1); }
.pol-pwho .pol-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.pol-ans { display: grid; grid-template-columns: 22px minmax(150px, 210px) minmax(0, 1fr); gap: var(--s-1) var(--s-5); align-items: start;
  padding: var(--s-4) 0; border-top: 1px solid #F3F5F6; }
.pol-ans .ic { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; margin-top: 1px; }
.pol-ans .ic svg { width: 12px; height: 12px; }
.pol-ans .ic.yes { background: #E6F1F1; color: var(--primary-color); }
.pol-ans .ic.no { background: #F1F3F4; color: #6F6F6F; }
.pol-ans .ic.info { background: #F1F3F4; color: #37424e; }
.pol-ans .q { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #12202b; }
.pol-ans .a { font-size: var(--t-2); color: #37424e; line-height: 1.5; }
.pol-ans .a b { font-family: var(--font-h); font-weight: 600; color: #12202b; margin-inline-end: var(--s-2); }
.pol-ans .a .pol-link { background: none; border: 0; padding: 0; margin-inline-start: var(--s-2); cursor: pointer; font-size: var(--t-1); font-weight: 500; }
.pol-ans .a .pol-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: var(--r-1); }
.pol-person .note { margin: var(--s-5) 0 0; font-size: var(--t-1); color: #6F6F6F; line-height: 1.5; }
.pol-person .pol-sk-ans { display: grid; gap: var(--s-4); }

.pol-hlist { list-style: none; margin: var(--s-5) 0 0; padding: 0; position: relative; }
.pol-hlist::before { content: ''; position: absolute; inset-inline-start: 7px; top: 14px; bottom: 14px; width: 2px; background: #EEF1F3; }
.pol-hlist:empty::before { display: none; }
.pol-hrow { display: flex; gap: var(--s-6); padding: var(--s-3) 0; position: relative; }
.pol-hrow .dot { flex: 0 0 auto; box-sizing: content-box; width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%;
  background: #CFD6DA; margin-top: var(--s-1); position: relative; z-index: 1; }
.pol-hrow.cur .dot { background: var(--primary-color); }
.pol-hrow .b { flex: 1 1 auto; min-width: 0; }
.pol-hrow .h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-2); color: #12202b; }
.pol-hrow .now { font-family: var(--font-h); font-weight: 700; font-size: var(--t-1); letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary-color); background: #E6F1F1; border-radius: var(--r-pill); padding: 0 var(--s-3); }
.pol-hrow .meta { margin-top: var(--s-1); font-size: var(--t-1); color: #6F6F6F; }
.pol-hrow ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-2); color: #37424e; }
.pol-hrow ul li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.pol-hrow ul li b { font-family: var(--font-h); font-weight: 600; color: #37424e; }
.pol-hrow ul li .was { color: #6F6F6F; }
.pol-hrow ul li svg { width: 12px; height: 12px; color: #6F6F6F; }
.pol-hrow .mv { margin-top: var(--s-3); }
.pol-hrow .mv .pol-link { background: none; border: 0; padding: 0; cursor: pointer; }
.pol-hrow .mv .pol-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: var(--r-1); }
.pol-hist .none { margin: var(--s-4) 0 0; font-size: var(--t-2); color: #6F6F6F; }

.pol-impact { margin: 0 var(--s-9) var(--s-6); border: 1px solid #CFE3E3; background: #F7FAFA; border-radius: var(--r-5); padding: var(--s-6) var(--s-7); }
.pol-impact h3 { margin: 0; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #12202b; }
.pol-impact p { margin: var(--s-2) 0 0; font-size: var(--t-2); color: #1f3b3e; line-height: 1.55; }
.pol-impact .mv { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #12202b; cursor: pointer; }
.pol-impact .mv input { width: 16px; height: 16px; accent-color: var(--primary-color); margin: 0; }
.pol-impact .if { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid #DCEBEB; }
.pol-impact .if h4 { margin: 0 0 var(--s-2); font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); letter-spacing: .05em; text-transform: uppercase; color: #04696F; }
.pol-impact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-2); color: #1f3b3e; }
.pol-impact ul li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.pol-impact ul li b { font-family: var(--font-h); font-weight: 600; }
.pol-impact ul li .was { color: #5d6f71; }
.pol-impact ul li svg { width: 12px; height: 12px; color: #5d6f71; }
.pol-impact .bad { color: #B4233E; }
.pol-impact .sk { display: grid; gap: var(--s-3); margin-top: var(--s-3); }

@media (max-width: 980px) {
  /* one column: the list, or the editor; Back returns to the list */
  .pol-page.is-editing nav.pol-tree { display: none; }
  .pol-page:not(.is-editing) .pol-main { display: none; }
  .pol-back { display: inline-flex; }
  /* clip, not hidden: hidden makes the card a scroll container and Save would never stick */
  .pol-main { overflow: clip; }
  /* pinned only while there is something to save; otherwise it sits at the end */
  .pol-main.is-dirty .pol-foot { position: sticky; bottom: 0; z-index: 30; box-shadow: 0 -6px 18px rgba(16, 24, 32, .06); }
  .pol-foot .st { flex: 1 1 100%; font-size: var(--t-1); }
  .pol-foot .btn { flex: 1 1 0; width: auto; min-width: 0; }
  .pol-impact { margin: 0 var(--s-7) var(--s-6); }
}
@media (max-width: 760px) {
  .pol-main.is-dirty .pol-foot { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .pol-foot { gap: var(--s-4); padding: var(--s-5) var(--s-6); }
  .pol-ans { grid-template-columns: 22px minmax(0, 1fr); }
  .pol-ans .a { grid-column: 2; }
  .pol-drow { flex-wrap: wrap; }
  .pol-drow .k { flex: 1 1 100%; }
  details.pol-all > details.pol-grp { margin: 0 var(--s-4) var(--s-4); }
  .pol-impact { margin: 0 var(--s-6) var(--s-6); }
}
@media (prefers-reduced-motion: reduce) {
  .pol-tog svg, details.pol-all > summary svg, .pol-filters button { transition: none; }
}
.pol-foot { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-6) var(--s-9); border-top: 1px solid #EEF1F3;
  background: #FBFCFC; flex-wrap: wrap; }
.pol-foot .st { margin-inline-end: auto; font-size: var(--t-2); color: #6F6F6F; }
.pol-foot .st.bad { color: #B4233E; }
/* global.css styles only .disabled, so a disabled attribute alone looked live. */
.pol-foot .button:disabled, .pol-foot .secondary-button:disabled, so a disabled attribute alone looked live. */
.pol-foot .btn-primary:disabled, .pol-foot .btn-secondary:disabled{ opacity: .45; cursor: not-allowed; }
.pol-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pol-main.is-loading .pol-live { display: none; }
.pol-main:not(.is-loading) .pol-skel { display: none; }
.pol-sk-ver { margin-inline-start: auto; }
/* Save-lock on the page editor: the same treatment as .popup.is-locked. */
.pol-main.is-locked .pol-top, .pol-main.is-locked .pol-body { pointer-events: none; filter: blur(1.5px) saturate(.85);
  opacity: .75; transition: filter .18s ease, opacity .18s ease; user-select: none; }
.pol-main.is-locked #pol-cancel { pointer-events: none; opacity: .5; }
.pol-foot .button.is-saving, .pol-foot .btn-primary.is-saving{ position: relative; padding-inline-start: 38px; cursor: progress; opacity: 1; }
.pol-foot .button.is-saving::before, .pol-foot .btn-primary.is-saving::before{ content: ''; position: absolute; inset-inline-start: 14px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: popup-save-spin .7s linear infinite; }

/* Reader and assignee picker. position:fixed and re-anchored on scroll and
   resize (the Privacy typeahead's pattern), flips above near the bottom. */
.pol-pick { position: fixed; top: 0; inset-inline-start: 0; width: 300px; max-width: calc(100vw - 16px); background: #fff;
  border: 1px solid #EAECEF; border-radius: var(--r-5); box-shadow: var(--sh-4); z-index: 240;
  overflow: hidden; }
.pol-pick input { border: none; border-bottom: 1px solid #EEF0F2; width: 100%; height: 40px; padding: 0 13px;
  font-family: var(--font-b); font-size: var(--t-3); outline: none; box-sizing: border-box; }
.pol-pick input:focus { box-shadow: inset 0 -2px 0 var(--primary-color); }
.pol-pick-list { max-height: 260px; overflow-y: auto; padding: 5px; }
.pol-pick-h { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); letter-spacing: .05em;
  text-transform: uppercase; color: #6F6F6F; padding: var(--s-4) 9px var(--s-2); }
.pol-pick-opt { display: flex; align-items: center; gap: var(--s-5); width: 100%; border: 0; background: none;
  text-align: start; padding: 7px 9px; border-radius: var(--r-3); cursor: pointer; font-family: var(--font-b);
  font-size: var(--t-3); color: #1c2430; }
.pol-pick-opt:hover, .pol-pick-opt.is-active { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.pol-pick-opt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.pol-pick-opt img { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.pol-pick-opt .ic { width: 24px; height: 24px; border-radius: var(--r-2); background: #E6F1F1; color: #04696F;
  display: grid; place-items: center; flex: 0 0 auto; }
.pol-pick-opt .ic svg { width: 14px; height: 14px; }
.pol-pick-opt .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pol-pick-opt small { color: #6F6F6F; font-size: var(--t-1); white-space: nowrap; }
.pol-pick-empty { padding: var(--s-7); text-align: center; color: #6F6F6F; font-size: var(--t-2); }
/* The one way to reach people outside the service's department: a link BELOW
   the list box, outside the scrolling list, so the arrow keys stay on people. */
.pol-pick-more { display: block; width: 100%; text-align: start; background: none; border: 0; border-top: 1px solid #EEF0F2;
  padding: 9px var(--s-5); font-family: var(--font-b); font-size: var(--t-2); color: var(--primary-color); cursor: pointer;
  border-radius: 0 0 10px 10px; }
.pol-pick-more:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); }
.pol-pick-more:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
/* Someone from another department, in the list and on the chip. Amber, never orange. */
.pol-pick-opt small .out, .pol-chip small .out { color: #B45309; }

/* The "Move open tickets" confirmation (section 2). */
.vt-modal-v2 .df { border: 1px solid #EEF1F3; border-radius: var(--r-5); overflow: hidden; }
.vt-modal-v2 .df-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-4) var(--s-6);
  border-top: 1px solid #F3F5F6; font-size: var(--t-2); line-height: 1.45; text-align: start; }
.vt-modal-v2 .df-row:first-child { border-top: 0; }
.vt-modal-v2 .df-k { font-family: var(--font-h); font-weight: 600; color: #37424e; }
.vt-modal-v2 .df-v { overflow-wrap: anywhere; color: #37424e; }
.vt-modal-v2 .df-v del { color: #6F6F6F; text-decoration: line-through; }
.vt-modal-v2 .df-v ins { text-decoration: none; color: #12202b; font-weight: 600; }
.vt-modal-v2 .df-h { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); letter-spacing: .04em;
  text-transform: uppercase; color: #6F6F6F; padding: var(--s-4) var(--s-6); background: #F7F9F9; text-align: start; }
.vt-modal-v2 .pol-mv .ap-tabs { align-self: flex-start; }
.vt-modal-v2 .pol-mv-panel { display: flex; flex-direction: column; gap: var(--s-6); }
.vt-modal-v2 .pol-mv-panel[hidden] { display: none; }
.vt-modal-v2 .pol-mv-panel .dp-effect { margin-top: 0; }
.vt-modal-v2 .pol-mv-list { border: 1px solid #E6EAED; background: #fff; border-radius: var(--r-5); overflow: hidden; }
.vt-modal-v2 .pol-mv-h { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-7); border-bottom: 1px solid #EEF1F3; }
.vt-modal-v2 .pol-mv-h label { display: flex; gap: 7px; align-items: center; font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-2); color: #37424e; }
.vt-modal-v2 .pol-mv-h .n { margin-inline-start: auto; font-family: var(--font-b); font-weight: 600; font-size: var(--t-1); color: #6F6F6F; }
.vt-modal-v2 .pol-mv-rows { max-height: 220px; overflow-y: auto; }
.vt-modal-v2 .pol-mv-row { display: grid; grid-template-columns: 86px 1fr auto; gap: var(--s-5); align-items: center;
  padding: var(--s-4) var(--s-7); border-top: 1px solid #F3F5F6; font-family: var(--font-b); font-size: var(--t-2); }
.vt-modal-v2 .pol-mv-row:first-child { border-top: 0; }
.vt-modal-v2 .pol-mv-row .num { font-family: ui-monospace, Menlo, monospace; color: #04696F; font-size: var(--t-2); }
.vt-modal-v2 .pol-mv-row .t { color: #2b3640; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-modal-v2 .pol-mv-f { padding: 9px var(--s-7); border-top: 1px solid #EEF1F3; font-size: var(--t-1); color: #6F6F6F; text-align: start; }
.popup-content p.pol-mv-cap { margin: 0; font-family: var(--font-b); font-size: var(--t-2); font-weight: 400;
  line-height: 1.55; color: #6F6F6F; text-align: start; }
.popup-content p.pol-mv-none { margin: 0; font-family: var(--font-b); font-size: var(--t-3); font-weight: 400;
  line-height: 1.55; color: #37424e; text-align: start; }


/* ===========================================================================
   APPROVALS — the waiting card on the ticket page (Phase 1)
   Amber rather than teal: this is a block, not a status. It only renders while
   something is actually waiting, so a ticket without an approval is unchanged.
   =========================================================================== */
/* The catalog item's settings section. A direct child of `.popup form`, which
   is `display:flex; flex-direction:column` — so this is one full-width column
   item — and `display:block` inside so its own children stack normally instead
   of becoming flex items themselves. */
.ap-settings { display: block; width: 100%; }
.popup-content + .ap-settings { margin-top: var(--s-2); }
.ap-settings .dp-fld:first-child { margin-top: 0; }

/* ===== Approvals page ================================================= */
.ap-tabs { display: inline-flex; background: #E9EAEB; border-radius: var(--r-3); padding: 3px; gap: var(--s-1); }
.ap-tabs button { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); border: 0;
  background: transparent; color: #6b7076; border-radius: var(--r-2); padding: 7px var(--s-7); cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--s-3); }
.ap-tabs button[aria-pressed="true"] { background: #fff; color: var(--black);
  box-shadow: var(--sh-1); }
.ap-tabs button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
/* The same control when its tabs are pages (Manage › People, D137): links, the current one marked
   with aria-current, so each tab keeps its own address. Looks exactly like the buttons above. */
.ap-tabs a { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); text-decoration: none;
  background: transparent; color: #6b7076; border-radius: var(--r-2); padding: 7px var(--s-7);
  display: inline-flex; align-items: center; gap: var(--s-3);
  transition: background-color var(--dur-state, 120ms) var(--ease, ease), color var(--dur-state, 120ms) var(--ease, ease); }
.ap-tabs a:hover { color: var(--black); }
.ap-tabs a[aria-current="page"] { background: #fff; color: var(--black); box-shadow: var(--sh-1); }
.ap-tabs a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.ap-tabs__n { opacity: .6; font-size: var(--t-1); }
.ap-filters select { height: 36px; border: 1px solid #E3E8EA; border-radius: var(--r-pill);
  padding: 0 var(--s-7); font-family: var(--font-b); font-size: var(--t-3); background: #fff; color: #3f3f3f; }
.ap-filters select:focus { border-color: var(--primary-color);
  box-shadow: var(--sh-focus); outline: none; }

/* The chain, read inline in a table cell — the whole point of a list over a
   drill-down is seeing it without opening anything. */
.ap-inline { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.ap-inline__st { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-2);
  background: #F4FAFA; border: 1px solid #DCEAEA; border-radius: var(--r-pill); padding: 3px var(--s-5);
  color: #2E6A6D; white-space: nowrap; }
.ap-inline__st b { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--primary-color); }
.ap-inline__ar { color: var(--gray); font-size: var(--t-1); }
.ap-none { font-size: var(--t-2); color: var(--gray); font-style: italic; }
.ap-win { font-size: var(--t-2); color: var(--gray); white-space: nowrap; }
.ap-warnpill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-1); background: #FBF0D6; color: #9a6b12; border-radius: var(--r-pill);
  padding: var(--s-1) var(--s-4); margin-inline-start: var(--s-3); }

/* "Waiting now" — the state chips. Deliberately distinct from the SLA chips:
   an approval that is overdue is NOT an SLA breach, and conflating them would
   put approvals into a red list that measures something else. */
.ap-state { display: inline-flex; align-items: center; font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-1); border-radius: var(--r-pill); padding: 3px var(--s-5);
  background: #EDF3F3; color: #2E6A6D; white-space: nowrap; }
.ap-state--late { background: #FBE7C9; color: #8a5a1a; }
.ap-state--stuck { background: #FBE3E1; color: #A8271C; }
.ap-state--req { background: #EDEDF7; color: #3B3B85; }
.ap-ref { font-family: ui-monospace, Menlo, monospace; font-size: var(--t-1); color: var(--gray);
  margin-inline-start: var(--s-3); }
.ap-clear { text-align: center; color: var(--gray); padding: 26px; font-style: italic; }

/* The read-only line left on the catalog item. */
.ap-summary { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap;
  border: 1px solid #DCEAEA; background: #F7FBFB; border-radius: var(--r-4); padding: 11px 13px;
  font-size: var(--t-2); color: #31555a; text-align: start; }
.ap-summary svg { flex: 0 0 auto; color: var(--primary-color); }
.ap-summary a { margin-inline-start: auto; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  color: var(--primary-color); }
.ap-summary.is-none { background: #FAFBFB; border-color: var(--gray-light2); color: var(--gray); }
.popup-content .ap-summary span { text-align: start; }

/* ===== Approval chain builder (catalog item) ==========================
   Lives inside #backend-popup, where `.popup form` (flex column, 28px gap) and
   `.popup-content p` (16px Poppins, centred) outrank a single class. The CTI
   form is not .dp-form, so the rows are laid out explicitly rather than relying
   on the generic gap. */
.ap-presets { display: flex; gap: var(--s-4); flex-wrap: wrap; margin: 0 0 var(--s-6); }
.ap-presets button { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1);
  border: 1px solid #DFE2E5; background: #fff; color: #3f3f3f; border-radius: var(--r-pill);
  padding: 7px 13px; cursor: pointer; transition: all .12s linear; }
.ap-presets button:hover { border-color: var(--primary-color); color: var(--primary-color); }
.ap-presets button[aria-pressed="true"] { background: var(--primary-color);
  border-color: var(--primary-color); color: #fff; }

.ap-chain { display: block; }
.ap-stage { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-4); background: #fff; }
.ap-stage__num { width: 24px; height: 24px; border-radius: var(--r-2); background: #EDF6F5;
  color: var(--primary-color); font-family: var(--font-h); font-weight: 700; font-size: var(--t-1);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ap-stage select { height: 34px; border: 1px solid #DFE2E5; border-radius: var(--r-3);
  padding: 0 9px; font-family: var(--font-b); font-size: var(--t-2); background: #fff;
  min-width: 0; }
.ap-stage__src { flex: 1 1 190px; }
.ap-stage__group, .ap-stage__user { flex: 1 1 150px; }
.ap-stage__days { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: var(--t-1); color: var(--gray); }
.ap-stage__days input { width: 52px; height: 34px; border: 1px solid #DFE2E5;
  border-radius: var(--r-3); text-align: center; font-family: var(--font-b); font-size: var(--t-2); }
.ap-stage__x { border: 0; background: transparent; color: #B6C0C2; cursor: pointer;
  font-size: var(--t-5); line-height: var(--lh-1); padding: 0 var(--s-2); flex: 0 0 auto; }
.ap-stage__x:hover { color: var(--red); }
/* Past four stages, every extra one is another wait — and a chain nobody can
   finish is a process people go around. */
.ap-chain.is-long .ap-stage:nth-child(n+5) { border-color: #F0DFC8; background: #FFFDFA; }

.ap-addstage { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-2); color: var(--primary-color); background: transparent;
  border: 1px dashed #BBD7D6; border-radius: var(--r-3); padding: var(--s-4) 13px; cursor: pointer; }
.ap-addstage:hover { background: #F4FAFA; border-style: solid; }

/* D80 "After the last approval": a two-choice segmented control, sized to its words. */
.ap-after { display: grid; gap: var(--s-3); }
.ap-after .ap-tabs { width: max-content; max-width: 100%; }
.ap-after[hidden] { display: none; }
.ap-ceiling { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid #F1F1F1;
  font-size: var(--t-2); color: #3f3f3f; }
.ap-ceiling label { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); }
.ap-ceiling input { width: 56px; height: 32px; border: 1px solid #DFE2E5; border-radius: var(--r-3);
  text-align: center; font-family: var(--font-b); font-size: var(--t-2); }
.ap-budget { display: flex; align-items: flex-start; gap: 9px; margin-top: var(--s-5);
  border: 1px solid #F0DFC8; background: #FFF8F0; border-radius: var(--r-3); padding: var(--s-5) var(--s-6);
  font-size: var(--t-2); line-height: 1.55; color: #6b5326; text-align: start; }
.ap-budget svg { flex: 0 0 auto; color: var(--orange, #BE630D); margin-top: 1px; }
.popup-content .ap-budget span { text-align: start; }

/* Adding a stage to a running chain, from the card. */
.view-ticket-v3 .ap-more { margin-top: var(--s-6); }
.view-ticket-v3 .ap-more__open { display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--gray);
  background: transparent; border: 1px dashed #D8DDDE; border-radius: var(--r-3);
  padding: 7px var(--s-6); cursor: pointer; transition: all .12s linear; }
.view-ticket-v3 .ap-more__open:hover { color: var(--primary-color, #04696F);
  border-color: var(--primary-color, #04696F); border-style: solid; background: #F7FBFB; }
.view-ticket-v3 .ap-more__open:focus-visible { outline: 2px solid var(--primary-color, #04696F);
  outline-offset: 2px; }
.view-ticket-v3 .ap-more__panel { margin-top: var(--s-5); padding-top: var(--s-6);
  border-top: 1px solid var(--amber-line, #F0DFC8); }
.view-ticket-v3 .ap-more__panel select { width: 100%; border: 0; outline: 0;
  font-family: var(--font-b); font-size: var(--t-3); background: transparent; }
/* A disabled option is explained, not silently unpickable. */
.view-ticket-v3 .ap-more__panel option:disabled { color: var(--gray); }

.view-ticket-v3 .ap-added { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.view-ticket-v3 .ap-added li { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: var(--t-2); color: #4b5158; padding: 7px 0; border-top: 1px solid #F4F6F7; }
.view-ticket-v3 .ap-added__tag { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1);
  text-transform: uppercase; letter-spacing: .4px; background: #EAEAF6; color: #35358B;
  border-radius: var(--r-pill); padding: var(--s-1) var(--s-4); flex: 0 0 auto; }
.view-ticket-v3 .ap-added__x { margin-inline-start: auto; border: 0; background: transparent;
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--gray); cursor: pointer; }
.view-ticket-v3 .ap-added__x:hover { color: var(--red, #E90909); }

/* ===== Ask for approval (Door B) =====================================
   Sits in the SAME slot as the approval card, so the decision always lives in
   one place. Quiet until used: a ticket that does not need sign-off should not
   be shouted at about approvals, but the way in must be findable without
   knowing it exists. */
.view-ticket-v3 .ap-ask { margin-bottom: var(--s-7); }
.view-ticket-v3 .ap-ask__open { display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--gray);
  background: transparent; border: 1px dashed #D8DDDE; border-radius: var(--r-4);
  padding: 7px 13px; cursor: pointer; transition: all .12s linear; }
.view-ticket-v3 .ap-ask__open svg { width: 15px; height: 15px; }
.view-ticket-v3 .ap-ask__open:hover { color: var(--primary-color, #04696F);
  border-color: var(--primary-color, #04696F); background: #F7FBFB; border-style: solid; }
.view-ticket-v3 .ap-ask__open:focus-visible { outline: 2px solid var(--primary-color, #04696F);
  outline-offset: 2px; }
.view-ticket-v3 .ap-ask__panel { margin-top: var(--s-5); border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--r-5); background: #fff; padding: var(--s-7) var(--s-8);
  box-shadow: var(--sh-1); }
.view-ticket-v3 .ap-ask__lb { display: block; font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-2); margin: 0 0 var(--s-3); }
.view-ticket-v3 .ap-ask__lb + * { margin-bottom: var(--s-6); }
.view-ticket-v3 .ap-ask__sel select,
.view-ticket-v3 .ap-ask__ibx input { width: 100%; height: 36px; border: 1px solid #DFE2E5;
  border-radius: var(--r-3); padding: 0 11px; font-family: var(--font-b); font-size: var(--t-3);
  background: #fff; outline: 0; }
.view-ticket-v3 .ap-ask__sel select:focus,
.view-ticket-v3 .ap-ask__ibx input:focus { border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus); }
.view-ticket-v3 .ap-ask__hint { font-size: var(--t-1); color: var(--gray); line-height: 1.55;
  margin: 0 0 var(--s-6); text-align: start; }
.view-ticket-v3 .ap-ask__acts { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ===== Approval card — Option D (approved preview_approval_card_designs_v2)
   One row when there is one step; the stepper only when there is a chain; the
   signed record when it is finished. Replaces the amber .vt-approval strip,
   which could render only the happy path.

   Muted text is #6B7478, not #98A0AA: the latter sits at roughly 2.6:1 on white
   and was carrying real information — timestamps, the reference, hint text.
   ===================================================================== */
.view-ticket-v3 .ap-d { border: 1px solid var(--border, #e5e7eb); border-radius: var(--r-5);
  background: #fff; overflow: hidden; margin-bottom: var(--s-7);
  box-shadow: var(--sh-1); }
.view-ticket-v3 .ap-d__rule { height: 3px;
  background: linear-gradient(90deg, var(--primary-color, #04696F), #0A8A91 55%, #5FBFC3); }
.view-ticket-v3 .ap-d.s-approved .ap-d__rule { background: linear-gradient(90deg,#1f8a4c,#31A05F 60%,#8CD3A8); }
.view-ticket-v3 .ap-d.s-declined .ap-d__rule { background: linear-gradient(90deg,#B0231A,#E0574C 60%,#F0A9A3); }
.view-ticket-v3 .ap-d.s-dead .ap-d__rule {
  background: repeating-linear-gradient(45deg,#C7CDCE,#C7CDCE 6px,#E4E8E9 6px,#E4E8E9 12px); }

.view-ticket-v3 .ap-d__hd { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: var(--s-6) 18px; border-bottom: 1px solid #F1F1F1; background: #FCFDFD; }
.view-ticket-v3 .ap-d__hd h3 { margin: 0; font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-2); display: flex; align-items: center; gap: var(--s-4); }
.view-ticket-v3 .ap-d__hd h3 svg { width: 16px; height: 16px; flex: 0 0 auto; }
.view-ticket-v3 .ap-d__ref { font-family: ui-monospace, Menlo, monospace; font-size: var(--t-1);
  color: var(--gray); letter-spacing: .2px; }
.view-ticket-v3 .ap-d__sp { flex: 1; min-width: 8px; }

.view-ticket-v3 .ap-d__body { padding: var(--s-7) 18px; }
.view-ticket-v3 .ap-d.s-you .ap-d__body { background: linear-gradient(180deg,#FFF8F0,#fff 70%); }
.view-ticket-v3 .ap-d.s-requester .ap-d__body { background: linear-gradient(180deg,#F7F7FC,#fff 70%); }
.view-ticket-v3 .ap-d.s-declined .ap-d__body { background: linear-gradient(180deg,#FFF6F5,#fff 70%); }
.view-ticket-v3 .ap-d__lead { font-family: var(--font-h); font-weight: 600; font-size: var(--t-4);
  margin: 0 0 var(--s-2); letter-spacing: -.1px; text-wrap: balance; }
.view-ticket-v3 .ap-d.s-you .ap-d__lead { color: #4a3a18; }
.view-ticket-v3 .ap-d__say { font-size: var(--t-2); line-height: 1.6; color: #4b5158; margin: 0;
  text-align: start; }
.view-ticket-v3 .ap-d__say b { font-weight: 600; color: var(--black, #181818); }
.view-ticket-v3 .ap-d__quote { margin: var(--s-4) 0 0; padding-block: var(--s-1); padding-inline: var(--s-7) 0;
  border-inline-start: 3px solid #F0C4C0; font-size: var(--t-2); line-height: 1.6; color: #4b5158; }
.view-ticket-v3 .ap-d__note { margin-top: var(--s-5); padding: var(--s-5) var(--s-6); border-radius: var(--r-3);
  background: #FCFCFE; border: 1px solid #DDDDF0; font-size: var(--t-2); line-height: 1.55; color: #4b5158; }

/* The stepper. Only rendered when there is more than one position — with a
   single step the card IS the compact one-row design, which is the whole reason
   the chain costs nothing on the common ticket. */
.view-ticket-v3 .ap-d__steps { display: flex; gap: 0; margin: 0; padding: var(--s-7) 18px var(--s-1);
  border-bottom: 1px solid #F5F5F5; list-style: none; }
.view-ticket-v3 .ap-stp { flex: 1; min-width: 0; position: relative; padding-inline-end: 14px; }
.view-ticket-v3 .ap-stp::after { content: ''; position: absolute; left: calc(50% + 20px);
  right: calc(-50% + 20px); top: 15px; height: 2px; background: #E7EAEB; border-radius: var(--r-1); }
.view-ticket-v3 .ap-stp:last-child { padding-inline-end: 0; }
.view-ticket-v3 .ap-stp:last-child::after { display: none; }
.view-ticket-v3 .ap-stp.done::after { background: #B6DFC7; }
.view-ticket-v3 .ap-stp__dot { width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: #EFF1F2; color: var(--gray);
  position: relative; z-index: 1; }
.view-ticket-v3 .ap-stp__dot svg { width: 15px; height: 15px; }
.view-ticket-v3 .ap-stp.done .ap-stp__dot { background: #DFF3E6; color: #1f8a4c; }
.view-ticket-v3 .ap-stp.declined .ap-stp__dot { background: #FBE3E1; color: #A8271C; }
.view-ticket-v3 .ap-stp.now .ap-stp__dot { background: var(--primary-color, #04696F); color: #fff;
  box-shadow: var(--sh-focus); }
.view-ticket-v3 .ap-stp__n { display: block; font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-1); color: var(--gray); margin: 9px 0 3px; text-transform: uppercase;
  letter-spacing: .5px; }
.view-ticket-v3 .ap-stp.now .ap-stp__n { color: var(--primary-color, #04696F); }
.view-ticket-v3 .ap-stp__who { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--t-2); color: #4b5158; line-height: 1.4; }
.view-ticket-v3 .ap-stp__t { display: block; font-size: var(--t-1); color: var(--gray); margin-top: 3px; }
.view-ticket-v3 .ap-sep { color: #B6C0C2; }
.view-ticket-v3 .ap-none { color: var(--gray); font-style: italic; }
.view-ticket-v3 .ap-av { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: inline-block; vertical-align: middle; background: #E1EDEE; }

/* The snapshot — what is actually being approved. */
.view-ticket-v3 .ap-snap { margin-top: 11px; border: 1px solid #F0DFC8; border-radius: var(--r-3);
  background: #FFFDFA; padding: 11px 13px; }
.view-ticket-v3 .ap-snap__lbl { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .55px; color: #9a8560; margin-bottom: var(--s-3); }
.view-ticket-v3 .ap-snap__ttl { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  color: #4a3a18; margin-bottom: var(--s-2); }
.view-ticket-v3 .ap-snap__exc,
.view-ticket-v3 .ap-snap__full { font-size: var(--t-2); color: #6b5326; line-height: 1.55; }
.view-ticket-v3 .ap-snap__full { display: none; }
.view-ticket-v3 .ap-snap.is-open .ap-snap__full { display: block; }
.view-ticket-v3 .ap-snap.is-open .ap-snap__exc { display: none; }
.view-ticket-v3 .ap-snap__more { margin-top: var(--s-4); font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-1); color: var(--primary-color, #04696F); background: transparent; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.view-ticket-v3 .ap-d__grid { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: var(--s-6) var(--s-9);
  padding-top: 13px; margin-top: 13px; border-top: 1px solid #F1F1F1; }
.view-ticket-v3 .ap-d__grid .k { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .55px; color: var(--gray); margin-bottom: var(--s-2); }
.view-ticket-v3 .ap-d__grid .v { font-size: var(--t-2); font-weight: 600; display: flex;
  align-items: center; gap: 7px; }

/* Actions. The primary leads; Decline is demoted, pushed to the far end and
   only reddens on hover — a red button beside the primary is a misclick waiting
   to happen on a decision that cannot be taken back. */
.view-ticket-v3 .ap-d__acts { display: flex; gap: var(--s-4); margin-top: var(--s-7); flex-wrap: wrap;
  align-items: center; }
.view-ticket-v3 .ap-d__grow { flex: 1; min-width: 4px; }
.view-ticket-v3 .ap-quiet { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600;
  height: 30px; padding: 0 var(--s-6); border-radius: var(--r-3); border: 1px solid transparent;
  background: transparent; color: var(--gray); cursor: pointer; display: inline-flex;
  align-items: center; gap: 7px; transition: all .1s linear; }
.view-ticket-v3 .ap-quiet:hover { color: var(--red, #E90909); border-color: #F2C9C6; background: #FFF7F6; }
.view-ticket-v3 .ap-quiet:focus-visible { outline: 2px solid var(--red, #E90909); outline-offset: 2px; }

.view-ticket-v3 .ap-d__panel { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid #F0DFC8; }
.view-ticket-v3 .ap-d__lb { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  margin-bottom: var(--s-3); display: block; }
.view-ticket-v3 .ap-d__ibx { border: 1px solid #DFE2E5; border-radius: var(--r-3); min-height: 36px;
  display: flex; align-items: center; padding: 0 11px; background: #fff; }
.view-ticket-v3 .ap-d__ibx input { border: 0; outline: 0; font-family: var(--font-b);
  font-size: var(--t-3); width: 100%; background: transparent; }
.view-ticket-v3 .ap-d__ibx:focus-within { border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus); }
.view-ticket-v3 .ap-d__hint { font-size: var(--t-1); color: var(--gray); margin: var(--s-3) 0 0; text-align: start; }

/* Answering the approver's question (approved preview_approval_answer).
   Asking was one-way until now: the requester's only control posted an empty
   body, so the question came back unanswered. */
.view-ticket-v3 .ap-ans { margin-top: var(--s-6); }
.view-ticket-v3 .ap-ans__lb { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  margin-bottom: var(--s-3); display: block; }
.view-ticket-v3 .ap-ans__bx { border: 1px solid #DFE2E5; border-radius: var(--r-3); background: #fff;
  padding: 9px 11px; }
.view-ticket-v3 .ap-ans__bx:focus-within { border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus); }
.view-ticket-v3 .ap-ans__bx textarea { border: 0; outline: 0; width: 100%; resize: vertical;
  min-height: 62px; font-family: var(--font-b); font-size: var(--t-3); line-height: 1.55;
  color: var(--black); background: transparent; }
.view-ticket-v3 .ap-ans__ft { display: flex; align-items: center; gap: var(--s-5); margin-top: 7px; }
.view-ticket-v3 .ap-ans__ct { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); }
.view-ticket-v3 .ap-ans__ct.over { color: var(--red, #E90909); font-weight: 600; }
/* The trail. Stays on the card after the send-back, because the approver asked
   the question and has to be able to read the answer when it arrives —
   request.question is cleared the moment it is answered. */
.view-ticket-v3 .ap-qa { margin-top: var(--s-6); border-inline-start: 2px solid #E6EAEC; padding-inline-start: 13px;
  display: grid; gap: 11px; }
.view-ticket-v3 .ap-qa__r { display: grid; gap: 3px; }
.view-ticket-v3 .ap-qa__w { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  color: var(--gray); display: flex; align-items: center; gap: var(--s-3); }
.view-ticket-v3 .ap-qa__w .ap-av { width: 17px; height: 17px; border-radius: 50%; }
.view-ticket-v3 .ap-qa__t { font-family: var(--font-b); font-size: var(--t-2); line-height: 1.55;
  color: var(--black); white-space: pre-wrap; overflow-wrap: anywhere; }
.view-ticket-v3 .ap-qa__r.is-a .ap-qa__w { color: var(--primary-color, #04696F); }

/* Choosing a person — Forward, and the add-a-stage panel (approved
   preview_approval_forward). Replaces a native <select> whose disabled options
   hid their own explanation in a title attribute. */
.ap-pick { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.ap-pick__row { display: grid; grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 9px; padding: var(--s-4) 11px; border: 1px solid #E3E8EA;
  border-radius: var(--r-3); cursor: pointer; background: #fff;
  transition: border-color .12s, background .12s; }
.ap-pick__row:hover { border-color: #C6D2D4; background: #FCFDFD; }
.ap-pick__row.is-on { border-color: var(--primary-color, #04696F);
  background: color-mix(in srgb, var(--primary-color) 4%, #fff); }
.ap-pick__row:focus-within { outline: 2px solid var(--primary-color, #04696F);
  outline-offset: 2px; }
.ap-pick__row input { accent-color: var(--primary-color, #04696F); margin: 0; }
.ap-pick__row .ap-av { width: 24px; height: 24px; border-radius: 50%; }
.ap-pick__n { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); }
.ap-pick__w { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray);
  text-align: end; }
.ap-pick__row.is-off { opacity: .55; cursor: not-allowed; }
.ap-pick__row.is-off:hover { border-color: #E3E8EA; background: #fff; }
.ap-pick__empty { font-family: var(--font-b); font-size: var(--t-2);
  color: var(--gray); padding: var(--s-5) 11px; border: 1px dashed #DCE3E5; border-radius: var(--r-3);
  margin-bottom: var(--s-6); line-height: 1.55; }
/* The attestation. Deliberately quiet — it is a statement of what the button
   means, not a warning. */
.view-ticket-v3 .ap-attest { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray);
  margin: var(--s-6) 0 0; line-height: var(--lh-3); text-align: start; }

/* Out of office (approved preview_out_of_office_v2) ----------------------- */
/* The one marker, reused wherever a person is shown: assignee picker, ticket
   list, approval card. Orange rather than red — away is a fact, not a fault. */
.ooo-pill { display: inline-flex; align-items: center; gap: var(--s-2); height: 19px; padding: 0 7px;
  border-radius: var(--r-pill); background: color-mix(in srgb, var(--logo-orange) 12%, #fff);
  color: #8a5a1a; font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  margin-inline-start: var(--s-3); vertical-align: 1px; white-space: nowrap; }
.ooo-pill svg { width: 10px; height: 10px; flex: 0 0 auto; }
/* Says a cover can answer tickets but not approvals, ON the row, while the
   choice is being made rather than after it fails. */
.avail-onlyt { display: inline-flex; align-items: center; height: 17px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); background: color-mix(in srgb, var(--logo-orange) 12%, #fff);
  color: #8a5a1a; font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  margin-inline-start: var(--s-3); }
.settings-tz__opt img { flex: 0 0 auto; }
/* The out-of-office banner on a ticket. Borrows the closed-ticket banner's
   geometry — same shelf, same job: a fact about this ticket you should know
   before you read further. It informs and offers nothing: whether the work
   moves is the assignee's team's call, not the requester's. */
.view-ticket-v3 .vt-ooo-banner { display: flex; align-items: flex-start; gap: var(--s-5);
  background: color-mix(in srgb, var(--logo-orange) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--logo-orange) 24%, #fff);
  border-radius: var(--r-4); padding: var(--s-6) var(--s-8); font-family: var(--font-b); font-size: var(--t-2);
  line-height: 1.55; color: var(--black, #181818); margin-bottom: var(--s-6); }
.view-ticket-v3 .vt-ooo-banner svg { width: 16px; height: 16px; color: var(--logo-orange);
  flex-shrink: 0; margin-top: 1px; }

/* Approvals report (approved preview_approval_report v2) ------------------
   Column visibility uses the SAME mechanism as the tickets table:
   data-hide-<key> on the wrapper collapses the <col> and hides the cells. A
   second mechanism for the same job would drift the first time either moved. */
[data-hide-cti]       col.col-cti,
[data-hide-group]     col.col-group,
[data-hide-requester] col.col-requester,
[data-hide-decided]   col.col-decided,
[data-hide-outcome]   col.col-outcome,
[data-hide-stage]     col.col-stage,
[data-hide-when]      col.col-when,
[data-hide-how]       col.col-how { visibility: collapse; }
[data-hide-cti]       th.col-cti,       [data-hide-cti]       td.col-cti       { display: none; }
[data-hide-requester] th.col-requester, [data-hide-requester] td.col-requester { display: none; }
[data-hide-decided]   th.col-decided,   [data-hide-decided]   td.col-decided   { display: none; }
[data-hide-outcome]   th.col-outcome,   [data-hide-outcome]   td.col-outcome   { display: none; }
[data-hide-stage]     th.col-stage,     [data-hide-stage]     td.col-stage     { display: none; }
[data-hide-when]      th.col-when,      [data-hide-when]      td.col-when      { display: none; }
[data-hide-how]       th.col-how,       [data-hide-how]       td.col-how       { display: none; }
/* col-group already has its rule from the tickets table; reusing the key
   deliberately so one preference covers both screens. */

.ap-rep__ref { font-family: ui-monospace, Menlo, monospace; font-size: var(--t-1); letter-spacing: .2px; }
.ap-rep__av { width: 22px; height: 22px; border-radius: 50%; vertical-align: -6px; margin-inline-end: 7px; }
.ap-rep__none { color: var(--gray); }
.ap-rep__empty { text-align: center; color: var(--gray); font-family: var(--font-b); padding: 26px var(--s-6); }
.ctbl-link { color: var(--primary-color); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .12s; }
.ctbl-link:hover { border-bottom-color: var(--primary-color); }
.ctbl-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px;
  border-radius: var(--r-1); }

/* Chips. Expiry reads NEUTRAL, not green: a validity window is a constraint,
   not good news, and borrowing the completed colour said the wrong thing. */
.view-ticket-v3 .sla-chip.ap-hold { background: #EDEDF7; color: #3B3B85; }
.view-ticket-v3 .sla-chip.ap-late { background: #FBE7C9; color: #8a5a1a; }
.view-ticket-v3 .sla-chip.ap-valid { background: #EDF3F3; color: #2E6A6D; }

/* Unscoped: approval cards and their live messages also sit on Home and in the Approvals inbox (f4). */
.vt-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
  .view-ticket-v3 .ap-d__steps { flex-direction: column; gap: var(--s-7); }
  .view-ticket-v3 .ap-stp { padding-inline-end: 0; }
  .view-ticket-v3 .ap-stp::after { display: none; }
}
@media (max-width: 560px) {
  .view-ticket-v3 .ap-d__acts .button, .view-ticket-v3 .ap-d__acts .btn-primary{ width: 100%; }
  .view-ticket-v3 .ap-d__grow { display: none; }
}

/* ===== Edit CTI modal (approved preview_edit_cti_v2, 2026-09-09) ==========
   The editor moved onto .vt-modal-v2 — the language the ticket modals already
   use — so most of it is inherited. What is new here is the Category > Type >
   Item path, its type-to-rename fields, the rename-or-move question, and the
   change list. Rendered via tools/render_modal.py before shipping, because
   .popup-content p and .popup form outrank single-class rules inside the shell.
   ====================================================================== */
/* the modal wears .vt-modal-v2 — the app's current modal language */
.cti-tabbar { padding-bottom: var(--s-7); border-bottom: 1px solid var(--gray-light2);
  margin-bottom: var(--s-1); }
.vt-modal-v2 .vm-body { padding-top: var(--s-7); }
.dp-fld.dp-fld--first { margin-top: var(--s-1); }

/* Category > Type > Item, shown as the path it actually is */
.cti-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start;
  gap: var(--s-4); background: var(--light-background); border: 1px solid var(--border);
  border-radius: var(--r-5); padding: var(--s-7) 15px; }
.cti-seg { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cti-seg__l { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1);
  text-transform: uppercase; letter-spacing: .07em; color: var(--gray); }
.cti-seg__m { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); }
.cti-arrow { width: 15px; height: 15px; color: var(--gray); margin-top: 26px; flex-shrink: 0; }
.cti-path .vm-picker-trigger { padding: var(--s-4) var(--s-5); font-size: var(--t-3); border-radius: var(--r-3); }
.cti-path .vm-picker-trigger.is-open { border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }
.cti-leaf { width: 100%; font-family: var(--font-b); font-size: var(--t-3); color: var(--black);
  background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-3); padding: var(--s-4) var(--s-5); }
.cti-leaf:focus { outline: none; border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }

/* a real combobox: the value is a text field you can type in, with a chevron to
   browse. A button-with-a-chevron read as "pick only" and hid the rename entirely. */
.cti-combo { position: relative; display: flex; }
.cti-combo .cti-leaf { padding-inline-end: 30px; }
/* no browse list on Category/Type — the field is for typing, not for picking */
.cti-combo--plain .cti-leaf { padding-inline-end: var(--s-5); }
.cti-combo__b { position: absolute; inset-inline-end: 3px; top: 3px; bottom: 3px; width: 26px;
  display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: none; color: var(--gray); cursor: pointer; border-radius: var(--r-2); padding: 0; }
.cti-combo__b:hover { background: var(--light-background); color: var(--black); }
.cti-combo__b .chev { width: 15px; height: 15px; transition: transform .15s; }
.cti-combo__b.is-open .chev { transform: rotate(180deg); }

/* when a typed name is new, ask which was meant instead of guessing */
.cti-ask { border: 1px solid #E4D3B4; background: #FFFBF5; border-radius: var(--r-5); padding: 13px var(--s-7); }
.cti-ask__q { font-family: var(--font-b); font-size: var(--t-2); color: #6b5326; line-height: 1.55;
  margin-bottom: var(--s-5); }
.cti-ask__o { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.cti-ask__b { text-align: start; background: #fff; border: 1px solid var(--gray-light2);
  border-radius: var(--r-4); padding: var(--s-5) var(--s-6); cursor: pointer; display: block;
  transition: border-color .12s, box-shadow .12s; }
.cti-ask__b:hover { border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }
.cti-ask__b b { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2);
  color: var(--black); line-height: 1.4; }
.cti-ask__b span { display: block; font-family: var(--font-b); font-size: var(--t-1);
  color: var(--gray); margin-top: 3px; line-height: 1.45; }
@media (max-width: 560px) { .cti-ask__o { grid-template-columns: 1fr; } }

/* every pending change, listed — one note could only ever report one of them */
.cti-diff { border: 1px solid #DCEAEA; background: #F7FBFB; border-radius: var(--r-5);
  padding: var(--s-6) var(--s-7); }
.cti-diff__h { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1);
  text-transform: uppercase; letter-spacing: .07em; color: var(--gray); margin-bottom: var(--s-4); }
.cti-diff__l { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.cti-diff__l li { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start;
  font-family: var(--font-b); font-size: var(--t-2); line-height: 1.55; color: #31555a;
  list-style: none; }
.cti-diff__l li::before { content: ''; width: 7px; height: 7px; border-radius: 50%;
  margin-top: var(--s-3); background: var(--primary-color); }
.cti-diff__l li.is-warn { color: #6b5326; }
.cti-diff__l li.is-warn::before { background: var(--orange, #BE630D); }
.cti-diff__l li.is-ask { color: var(--gray); }
.cti-diff__l li.is-ask::before { background: #c3cace; }

/* handled-by row */
.cti-grp { display: flex; gap: var(--s-4); align-items: stretch; }
.cti-grp .vm-picker-trigger { flex: 1; padding: var(--s-4) var(--s-5); }
.cti-grp__av { width: 30px; height: 30px; border-radius: var(--r-3); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: #E1EDEE;
  color: var(--primary-color); font-family: var(--font-h); font-weight: 700; font-size: var(--t-1); }
.cti-grp .vm-picker-val b { display: block; font-family: var(--font-h); font-weight: 600;
  font-size: var(--t-3); color: var(--black); }
.cti-grp__d { display: block; font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); }
.secondary-button.cti-mg, .btn-secondary.cti-mg{ height: auto; padding: 0 var(--s-8); font-size: var(--t-2); white-space: nowrap; }

/* the combobox: pick to move, type to rename — the two intents made distinguishable */
.cti-pop { position: fixed; z-index: 320; background: #fff; border: 1px solid var(--gray-light2);
  border-radius: var(--r-5); box-shadow: var(--sh-4); overflow: hidden;
  min-width: 292px; }
.cti-pop__s { display: flex; align-items: center; gap: var(--s-4); padding: 9px 11px;
  border-bottom: 1px solid var(--border); }
.cti-pop__s svg { width: 15px; height: 15px; color: var(--gray); flex-shrink: 0; }
.cti-pop__s input { flex: 1; border: 0; outline: none; font-family: var(--font-b);
  font-size: var(--t-3); color: var(--black); background: transparent; }
.cti-pop__l { max-height: 240px; overflow-y: auto; padding: 5px; }
.cti-pop__i { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); text-align: start; background: none; border: 0; border-radius: var(--r-3); cursor: pointer;
  padding: var(--s-4) var(--s-5); font-family: var(--font-b); font-size: var(--t-3); color: var(--black); }
.cti-pop__i:hover { background: var(--light-background); }
.cti-pop__i.on { color: var(--primary-color); font-weight: 600; }
.cti-pop__i > :first-child, .cti-pop__i { min-width: 0; }
.cti-pop__i span { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--gray); flex-shrink: 0; }
/* the rename/create rows carry a long sentence — stack the meta under it rather than
   letting a nowrap chip squeeze the sentence into three words a line */
.cti-pop__i--new { color: var(--primary-color); font-weight: 600; flex-direction: column;
  align-items: flex-start; gap: var(--s-1); line-height: 1.45; }
.cti-pop__i--new span { letter-spacing: .04em; }
.cti-pop__sep { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray); padding: var(--s-4) var(--s-5) var(--s-2); }
.cti-pop__e { padding: var(--s-6) var(--s-5); font-family: var(--font-b); font-size: var(--t-2);
  color: var(--gray); }

.cti-window { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-1); }
.cti-window__l { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); }

/* The tenant's auto-close default, on the statuses page (2026-09-09). It had no
   UI at all before — every tenant sat on 7 days with no way to change it. Chips
   reuse .ap-tabs so it reads the same as the per-CTI control in the CTI editor. */
.manage-statuses-page .ms-default { display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: space-between; background: #fff;
  border: 1px solid var(--gray-light2); border-radius: var(--r-5); padding: 15px 18px;
  margin-bottom: var(--s-8); }
.manage-statuses-page .ms-default__t { display: block; font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-3); color: var(--black); }
.manage-statuses-page .ms-default__d { display: block; font-family: var(--font-b);
  font-size: var(--t-2); color: var(--gray); margin-top: 3px; max-width: 62ch;
  line-height: var(--lh-3); }
.manage-statuses-page .ms-default__o { flex-shrink: 0; }
/* D76 "Taking a request starts it" — the same card, a .settings-tg switch */
.manage-statuses-page .ms-take .ms-default__o { display: flex; align-items: center; gap: var(--s-4); }
.manage-statuses-page .ms-take .ms-take__st { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); min-width: 22px; }
.manage-statuses-page .ms-take .settings-tg[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
/* On a phone the five auto-close choices are wider than the screen (433px in 390),
   and `flex-shrink: 0` pushed the whole page sideways rather than giving way.
   The row scrolls inside itself instead; the page does not (browser sweep, 2026-09-24). */
@media (max-width: 480px) {
  .manage-statuses-page .ms-default__o {
    max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .manage-statuses-page .ms-default__o::-webkit-scrollbar { display: none; }
  .manage-statuses-page .ms-default__o button { flex: 0 0 auto; }
}
/* Save while the rename/move question is open scrolls to it and nudges, rather
   than letting the server guess — the guess is the bug this modal exists to fix. */
.cti-ask.is-nudged { animation: ctiAskNudge .45s ease 2; }
@keyframes ctiAskNudge { 0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
html.reduce-motion .cti-ask.is-nudged, .no-motion .cti-ask.is-nudged { animation: none;
  box-shadow: var(--sh-focus); }

/* ==========================================================================
   AUTH STEPS (shared). The admin sign-in steps (approved preview_admin_mfa)
   set the pattern for every multi-step auth screen — the user made it the
   standard on 2026-09-10: badge + title + lead on the left; on the right the
   step indicator (.mfa-step), a six-box code entry (.mfa-code) for any code,
   and the hint line (.mfa-hint). Moved here from admin.css so the sign-up
   page (and any future auth step) gets them without loading admin styles.
   ========================================================================== */
.mfa-step {
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600;
  color: var(--gray); margin-bottom: var(--s-7); flex-wrap: wrap;
}

/* Setting two-factor up (moved from admin.css, D153 part 7a): the QR box, the key to type, the ten
   recovery codes and "I've saved these". Staff and workspace people use the same pieces. */
/* enrolment */
.mfa-enrol { display: flex; gap: var(--s-8); align-items: flex-start; margin-bottom: var(--s-7); flex-wrap: wrap; }
/* 240px, not 150px: the otpauth QR is 41x41 modules plus a 4-module quiet
   zone, so a 150px box gave ~3.1px per module and phones could not scan it.
   At 240px it is ~5.5px per module. Don't shrink this without re-testing on
   an actual phone. */
.mfa-qr {
  width: 240px; height: 240px; background: #fff;
  border: 1px solid #E1E6E8; border-radius: var(--r-5);
  display: grid; place-items: center; flex: 0 0 auto; padding: var(--s-3);
}
/* Do NOT set width/height here. segno draws the modules as stroked lines on
   half-pixel offsets; rescaling the SVG by a fractional ratio anti-aliases
   every module boundary into grey and phones stop scanning it. The SVG is
   rendered at a whole 5px per module (225px) to fit this box exactly. */
.mfa-qr svg {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  shape-rendering: crispEdges;
}
.mfa-enrol__manual { flex: 1; min-width: 190px; }
.mfa-enrol__manual p { font-size: var(--t-2); color: #5b6570; margin: 0 0 7px; line-height: 1.55; }
.mfa-secret {
  font-family: ui-monospace, Menlo, monospace; font-size: var(--t-2); letter-spacing: .08em;
  background: #F4F6F7; border: 1px dashed #D6DEE0; border-radius: var(--r-3);
  padding: 9px var(--s-6); color: #3f4a54; word-break: break-all;
}

/* recovery codes */
.mfa-rc {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px;
  font-family: ui-monospace, Menlo, monospace; font-size: var(--t-2); color: #12202b;
  margin-bottom: var(--s-5);
}
.mfa-rc span {
  background: #F4F6F7; border: 1px solid #E6EAED; border-radius: var(--r-3);
  padding: 7px 11px; letter-spacing: .06em; text-align: center;
}
.mfa-ack {
  display: flex; align-items: center; gap: 9px;
  font-size: var(--t-2); color: #4a5560; margin: var(--s-6) 0 var(--s-2); cursor: pointer;
}
.mfa-ack input { width: auto; height: auto; margin: 0; }

/* The sign-up consent box. `.mfa-ack` above is a flex row with a gap, written for a checkbox and
   one text node; the consent sentence carries two links, so its words go in a single <span> and
   this keeps the row to two items. align-items: flex-start because the sentence wraps to two or
   three lines on a phone, and a centred box then floats beside the middle of the paragraph.
   The 24px box is WCAG 2.2 AA 2.5.8 (Target Size, Minimum) -- the native one measured 13x13 on
   the one control in the product that records somebody agreeing to something. */
.su-ack { align-items: flex-start; gap: var(--s-5); line-height: 1.45; }
.su-ack input {
  width: 24px; height: 24px; min-width: 24px; flex: 0 0 auto;
  margin: -2px 0 0; accent-color: var(--primary-color); cursor: pointer;
}
.su-ack > span { min-width: 0; }
/* CP-09: Cloudflare's robot check. Empty and taking no room unless Cloudflare asks for a click. */
.su-person:not(:empty) { margin: var(--s-4) 0 0; }

/* a refused code, under the boxes (D153 part 7a) */
.mfa-error { color: var(--red); font-size: var(--t-2); margin: var(--s-4) 0 0; }
.mfa-step i {
  width: 20px; height: 20px; border-radius: 50%;
  background: #E6EAED; color: var(--gray);
  display: grid; place-items: center; font-style: normal; font-size: var(--t-1);
  flex: 0 0 auto;
}
.mfa-step i.on { background: var(--primary-color, #04696F); color: #fff; }
.mfa-step b, .mfa-step span.on { color: var(--primary-color, #04696F); font-weight: 600; }
.mfa-step__rule { width: 18px; height: 1px; background: #D6DEE0; }
/* six-box code entry */
.mfa-code { display: flex; gap: 9px; margin: var(--s-2) 0 var(--s-3); }
.mfa-code input {
  width: 46px; height: 56px; text-align: center;
  font-family: var(--font-h); font-weight: 600; font-size: var(--t-7);
  color: #12202b; background: #fff;
  border: 1.5px solid #DDE3E5; border-radius: var(--r-5); outline: none;
  transition: .15s;
}
.mfa-code input:focus {
  border-color: var(--primary-color, #04696F);
  box-shadow: var(--sh-focus);
}
.mfa-hint { font-size: var(--t-2); color: var(--gray); margin: var(--s-1) 0 0; line-height: 1.55; }
/* The stop link page (email_stop.html): the Settings link sits apart from the two buttons above it. */
.mfa-hint.email-stop-more { margin-top: var(--s-6); }
/* Setting it up at sign-in (D153 part 7b, preview v5 frame 9): the line above the six boxes, and the
   "open in your app" link at the hint's own size (`.sing-form a` would make it body-sized) */
.ws-si-lab { font: 600 var(--t-2)/1.3 var(--font-h); color: #12202b; margin: var(--s-2) 0 0; }
.mfa-enrol__manual .mfa-hint a { font-size: inherit; line-height: inherit; }
.mfa-hint a { color: var(--primary-color, #04696F); }

/* ==========================================================================
   SIGN-UP (preview_signup_first_run_v2, Stage 2) — the three-step workspace
   sign-up on the auth shell above. Only what the preview introduced is new:
   the answer cards (.fr-pick) and the live catalog panel (.fr-side).
   ========================================================================== */
.su-step { display: none; }
.su-step.is-active { display: block; }
.su .sign-title .fr-side[hidden] { display: none; }
.su .su-msg { margin-top: -4px; margin-bottom: var(--s-4); }
.su .su-msg:not(.ok):not(.no) { display: none; }
/* The claim line, under the address message. Its own line so the message above can stay
   plain text (it is written with textContent, like every message on this page) while this
   one carries a real link. The link is given a 44px tap target because the whole point of
   it is the phone: an address as plain text cannot be tapped, and a double-tap selects one
   word of it. */
.su .su-claim { margin: calc(var(--s-4) * -1) 0 var(--s-4); font-size: var(--t-2); color: var(--gray); }
.su .su-claim[hidden] { display: none; }
.su .su-claim a {
  color: var(--primary-color, #04696F); text-decoration: underline; text-underline-offset: 2px;
  display: inline-block; min-height: 44px; line-height: 44px; word-break: break-all;
}
.su .su-alt { display: block; margin-top: 18px; text-align: center; font-family: var(--font-b); font-size: var(--t-3); color: var(--gray-light, #8a929c); }
.su .su-alt:hover { color: var(--primary-color); }
.su .button.is-saving, .su .btn-primary.is-saving{ opacity: .85; pointer-events: none; }
/* the one question */
.fr-picks { display: grid; gap: var(--s-4); margin-bottom: 22px; }
.fr-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-6);
  background: var(--white, #fff); border: 1px solid var(--gray-light2, #E6E9EC); border-radius: var(--r-5);
  padding: 11px 13px; cursor: pointer; text-align: start; font: inherit; width: 100%;
  transition: border-color .12s ease, box-shadow .12s ease; }
.fr-pick:hover { border-color: var(--primary-color); }
.fr-pick:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.fr-pick.is-on { border-color: var(--primary-color);
  box-shadow: var(--sh-focus); }
.fr-pick__i { display: inline-flex; width: 34px; height: 34px; border-radius: var(--r-3); align-items: center;
  justify-content: center; background: var(--light-background, #F4F6F8); color: var(--gray-light, #8a929c); flex-shrink: 0; }
.fr-pick.is-on .fr-pick__i { background: #E1EDEE; color: var(--primary-color); }
.fr-pick__t { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: var(--black, #1f2933); }
.fr-pick__d { display: block; font-family: var(--font-b); font-size: var(--t-2); color: var(--gray-light, #8a929c); margin-top: 1px; }
.fr-pick__c { color: var(--primary-color); opacity: 0; transition: opacity .12s ease; }
.fr-pick.is-on .fr-pick__c { opacity: 1; }
/* the left half stops being decoration on step 3: it previews the catalog the answer builds */
.fr-side { margin-top: var(--s-7); border-top: 1px solid var(--gray-light2, #E6E9EC); padding-top: var(--s-9); width: 100%; }
.fr-side__h { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray, #6b7580); margin-bottom: var(--s-6); }
.fr-side__l { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-8); padding: 0; list-style: none; }
.fr-side__l li { font-family: var(--font-b); font-size: var(--t-2); color: var(--primary-color);
  background: #E1EDEE; border-radius: var(--r-pill); padding: var(--s-2) var(--s-6); list-style: none; }
.fr-side__f { font-family: var(--font-b); font-size: var(--t-3); color: var(--gray-light, #8a929c);
  display: flex; align-items: center; gap: 7px; }
.fr-side__f b { font-family: var(--font-h); font-size: var(--t-2); color: var(--black, #1f2933); }
.fr-side__f svg { color: var(--primary-color); flex-shrink: 0; }

/* ==========================================================================
   FIRST RUN (preview_signup_first_run_v2, Stage 3): the build screen after
   "Build my desk", the day-one card on the home page, and a real empty state
   for ticket lists. Classes are the preview's own.
   ========================================================================== */
/* the build screen */
.sign-container.fr-build { background: var(--white, #fff); padding: 48px 56px; align-items: flex-start; flex-direction: column; }
.fr-build__in { width: 100%; max-width: 620px; margin: 0 auto; }
.fr-build__h { font-family: var(--font-h); font-size: var(--t-8); font-weight: 700; color: var(--black, #1f2933); margin: 22px 0 var(--s-3); letter-spacing: -.4px; }
.fr-build__s { font-family: var(--font-b); font-size: var(--t-4); color: var(--gray-light, #8a929c); margin: 0 0 var(--s-3); max-width: 60ch; }
.fr-brs { display: grid; gap: var(--s-1); }
.fr-br { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-6); padding: 9px var(--s-2); opacity: .28; transform: translateY(3px); transition: opacity .4s ease, transform .4s ease; }
.fr-br.is-in { opacity: 1; transform: none; }
.fr-br__b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gray-light2, #E6E9EC); display: inline-flex; align-items: center; justify-content: center; color: var(--white, #fff); flex-shrink: 0; transition: background .3s ease, border-color .3s ease; }
.fr-br.is-in .fr-br__b { background: var(--primary-color); border-color: var(--primary-color); }
.fr-br.is-in .fr-br__b svg { animation: frPop .3s ease; }
@keyframes frPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* the step that is running right now: a spinner, not a dim tick */
.fr-br.is-now { opacity: 1; transform: none; }
.fr-br.is-now .fr-br__b { border-color: var(--primary-color); border-inline-end-color: transparent;
  animation: frSpin .8s linear infinite; }
.fr-br.is-now .fr-br__b svg { display: none; }
@keyframes frSpin { to { transform: rotate(360deg); } }
html.reduce-motion .fr-br.is-now .fr-br__b { animation: none; border-inline-end-color: var(--primary-color); }
/* the line that changes while it works */
.fr-say { min-height: 44px; margin: 0 0 18px; display: flex; align-items: center; gap: 9px;
  font-family: var(--font-b); font-size: var(--t-3); color: var(--primary-color); }
.fr-say__t { opacity: 0; transform: translateY(4px); transition: opacity .45s ease, transform .45s ease; }
.fr-say__t.is-in { opacity: 1; transform: none; }
.fr-say svg { flex: 0 0 auto; color: var(--primary-color); opacity: .75; }
html.reduce-motion .fr-say__t { transition: none; }
.fr-br__t { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: var(--black, #1f2933); }
.fr-br__d { display: block; font-family: var(--font-b); font-size: var(--t-2); color: var(--gray-light, #8a929c); margin-top: 1px; }
.fr-build__f { margin-top: var(--s-10); font-family: var(--font-h); font-size: var(--t-3); font-weight: 600;
  color: var(--primary-color); opacity: 0; transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease; }
.fr-build__f.is-in { opacity: 1; transform: none; }
html.reduce-motion .fr-br, .no-motion .fr-br { transition: none; }
/* the launch page — the first ten minutes, on its own page */
.lp { max-width: 900px; }
.lp-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: var(--s-9); }
.lp-ring { position: relative; width: 74px; height: 74px; flex: 0 0 auto; }
.lp-ring svg { transform: rotate(-90deg); }
.lp-ring__n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-h);
  font-size: var(--t-4); font-weight: 700; color: var(--primary-color); }
.lp-head h1 { font-family: var(--font-h); font-size: var(--t-7); font-weight: 600; margin: 0 0 var(--s-2); color: var(--black, #1f2933); }
.lp-head p { font-family: var(--font-b); font-size: var(--t-3); color: var(--gray-light, #8a929c); margin: 0; }
.lp-list { display: grid; gap: var(--s-5); }
.lp-step { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-7); align-items: center;
  background: var(--white, #fff); border: 1px solid var(--gray-light2, #E6E9EC); border-radius: var(--r-5); padding: 15px 17px; }
.lp-step--now { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.lp-step--done { background: #FBFCFC; }
.lp-b { width: 26px; height: 26px; border-radius: 50%; border: 1.6px solid var(--gray-light2, #E6E9EC);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white, #fff); flex-shrink: 0; }
.lp-step--done .lp-b { background: var(--primary-color); border-color: var(--primary-color); }
.lp-step--now .lp-b { border-color: var(--primary-color); border-style: dashed; }
.lp-t { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: var(--black, #1f2933); }
.lp-step--done .lp-t { color: var(--gray, #6b7580); }
.lp-d { display: block; font-family: var(--font-b); font-size: var(--t-2); color: var(--gray-light, #8a929c);
  margin-top: var(--s-1); line-height: var(--lh-3); }
.lp-step .button, .lp-step .secondary-button, .lp-step .btn-primary, .lp-step .btn-secondary{ white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; }
.lp-done { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-h); font-size: var(--t-2); color: var(--gray, #6b7580); }
.lp-foot { display: flex; align-items: center; gap: 18px; margin: 18px 0 0; font-family: var(--font-b); font-size: var(--t-3); }
.lp-foot a { color: var(--primary-color); font-weight: 600; }
.lp-skip { margin-inline-start: auto; background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--gray-light, #8a929c); text-decoration: underline; }
.lp-skip:disabled { text-decoration: none; cursor: default; }
@media (max-width: 780px) { .lp-step { grid-template-columns: auto 1fr; } .lp-step .button, .lp-step .secondary-button, .lp-done, .lp-step .btn-primary, .lp-step .btn-secondary{ grid-column: 2; justify-self: start; } }

/* the one-line strip above the ticket list, back to the launch page */
.fr-strip { display: flex; align-items: center; gap: var(--s-6); background: var(--white, #fff);
  border: 1px solid var(--gray-light2, #E6E9EC); border-radius: var(--r-5); padding: var(--s-5) var(--s-7); margin: 0 0 var(--s-7);
  font-family: var(--font-b); font-size: var(--t-3); color: var(--gray, #6b7580); }
.fr-strip__i { display: inline-flex; width: 26px; height: 26px; border-radius: var(--r-3); background: #E1EDEE;
  color: var(--primary-color); align-items: center; justify-content: center; flex: 0 0 auto; }
.fr-strip__t { min-width: 0; }
.fr-strip__t b { color: var(--black, #1f2933); font-family: var(--font-h); font-size: var(--t-2); }
.fr-strip__bar { flex: 0 0 110px; height: 6px; border-radius: var(--r-1); background: var(--gray-light2, #E6E9EC);
  overflow: hidden; margin-inline-start: auto; }
.fr-strip__bar i { display: block; height: 100%; background: var(--primary-color); border-radius: var(--r-1); }
.fr-strip__a { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: var(--primary-color);
  text-decoration: none; white-space: nowrap; }
.fr-strip__a:hover { text-decoration: underline; }
@media (max-width: 760px) { .fr-strip__bar { display: none; } }
/* D222: the practice request's strip is the same line, pinned under the header while the person scrolls to
   the control a step names; its "Show me" is a button that looks like the strip's link */
.fr-strip.is-practice { position: sticky; top: calc(var(--shell-top, 60px) + var(--s-4)); z-index: 20; box-shadow: var(--sh-2); }
.fr-strip.is-practice .fr-strip__t { flex: 1; }
button.fr-strip__a { background: none; border: 0; padding: 0; cursor: pointer; }
.fr-strip__a:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-1); }
/* its pill: who reads a practice request never changes, so the pill is teal, says so, and opens nothing */
.view-ticket-v3 .vt-pills-row .privacy.is-practice { --row-i: var(--primary-color); cursor: default; }
.view-ticket-v3 .vt-pills-row .privacy.is-practice::after { display: none; }

/* the guided ring (static/js/tour.js) — the dim is the ring's own shadow, so
   the control it points at stays clickable */
/* no scrim element: a full-page layer swallowed the click on the very control
   the ring points at. The dim is the ring's own outward shadow, and an
   outside click is caught by a document listener in tour.js instead. */
.tour-ring { position: fixed; z-index: 1401; border-radius: var(--r-5); pointer-events: none;
  box-shadow: var(--sh-focus);
  transition: top .3s cubic-bezier(.4,0,.2,1), left .3s cubic-bezier(.4,0,.2,1),
              width .3s cubic-bezier(.4,0,.2,1), height .3s cubic-bezier(.4,0,.2,1); }
.tour-ring::after { content: ''; position: absolute; inset: -9px; border-radius: 16px;
  box-shadow: var(--sh-focus);
  animation: tourPulse 1.9s ease-out infinite; }
@keyframes tourPulse { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(1.1); opacity: 0; } 100% { opacity: 0; } }
.tour-tip { position: fixed; z-index: 1402; width: 312px; max-width: calc(100vw - 24px);
  background: var(--white, #fff); border-radius: var(--r-5); padding: var(--s-8) 18px var(--s-7);
  box-shadow: var(--sh-4);
  transition: top .3s cubic-bezier(.4,0,.2,1), left .3s cubic-bezier(.4,0,.2,1); }
.tour-tip__k { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--primary-color); margin: 0 0 5px; }
.tour-tip__t { font-family: var(--font-h); font-size: var(--t-4); font-weight: 600; color: var(--black, #1f2933); margin: 0 0 var(--s-3); }
.tour-tip__d { font-family: var(--font-b); font-size: var(--t-3); line-height: 1.55;
  color: var(--gray-light, #8a929c); margin: 0 0 var(--s-7); }
.tour-tip__f { display: flex; align-items: center; gap: var(--s-5); }
.tour-tip__f .button, .tour-tip__f .btn-primary{ height: 34px; padding: 0 18px; font-size: var(--t-2); }
.tour-skip { margin-inline-start: auto; font-family: var(--font-b); font-size: var(--t-2);
  color: var(--gray-light, #8a929c); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-light2, #E6E9EC); }
.tour-dots i.on { background: var(--primary-color); }
html.reduce-motion .tour-ring, html.reduce-motion .tour-tip { transition: none; }
html.reduce-motion .tour-ring::after { animation: none; }

/* the empty state */
.tickets-table .empty-row td { padding: 0; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: 44px var(--s-9) 48px; }
.empty-state__i { display: inline-flex; width: 44px; height: 44px; border-radius: var(--r-5); background: #E1EDEE; color: var(--primary-color); align-items: center; justify-content: center; margin-bottom: var(--s-3); }
.empty-state__t { font-family: var(--font-h); font-size: var(--t-4); font-weight: 600; color: var(--black, #1f2933); }
.empty-state__d { font-family: var(--font-b); font-size: var(--t-3); color: var(--gray-light, #8a929c); max-width: 46ch; text-wrap: balance; }
.empty-state .button, .empty-state .secondary-button, .empty-state .btn-primary, .empty-state .btn-secondary{ margin-top: var(--s-5); }

/* ==========================================================================
   Private ticket access — work package A1 (approved preview 6,
   previews/preview_private_ticket_access.html). Break glass was dropped, so
   the strip carries only the oversight look.
   ========================================================================== */
.ov-strip { display: flex; gap: var(--s-5); align-items: flex-start; background: #F3F6FF; border: 1px solid #D5DEF7; border-radius: var(--r-5); padding: var(--s-5) var(--s-7); font-size: var(--t-2); color: #2E3F75; line-height: var(--lh-3); margin: 0 0 var(--s-6); }
.ov-strip svg { flex: 0 0 auto; margin-top: var(--s-1); color: #3050b5; }
.ov-strip b { font-family: var(--font-h); font-weight: 600; color: #2E3F75; }

/* Part B, B3 — handover to another department (approved
   preview_privacy_model_b v2, section 4). The Change CTI panel (.ho), the
   ticket page's strip while an offer waits (.ho-strip), and the redacted offer
   card the receiving side sees (.rd). The modal's generic `.popup-content p`
   outranks a single class, hence the two-class paragraph rules. */
.ho { border: 1px solid #D5DEF7; background: #F3F6FF; border-radius: var(--r-5); padding: var(--s-6) var(--s-7); margin-top: var(--s-6); }
.ho-t { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #2E3F75; }
.ho-t svg { width: 15px; height: 15px; color: #3050b5; flex: 0 0 auto; }
.ho-t svg[hidden] { display: none; }
.popup-content p.ho-d, .ho p.ho-d { font-family: var(--font-b); font-size: var(--t-2); line-height: 1.55; color: #3d4b73; margin: 5px 0 var(--s-4); text-align: start; }
.ho-count { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-b); background: #fff; border: 1px solid #D5DEF7; border-radius: var(--r-4); padding: var(--s-4) var(--s-5); font-size: var(--t-2); color: #2E3F75; margin: 0 0 var(--s-4); }
.ho-count svg { flex: 0 0 auto; }
.ho-count b { font-family: var(--font-h); font-weight: 600; }
.ho-avs { display: inline-flex; margin-inline-start: auto; }
.ho-avs img, .ho-avs span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -7px; background: #E6F1F1; color: #04696F; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); display: grid; place-items: center; object-fit: cover; box-sizing: border-box; }
.ho textarea, .rd textarea { width: 100%; box-sizing: border-box; min-height: 66px; border: 1px solid #CBD6F2; border-radius: var(--r-4); padding: var(--s-4) var(--s-5); font-family: var(--font-b); font-size: var(--t-2); resize: vertical; background: #fff; color: #1c2430; }
.ho textarea:focus, .rd textarea:focus { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.ho-foot { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-3); }
.ho-n { font-size: var(--t-1); color: #6F6F6F; margin-inline-end: auto; }
.ho-n.ok { color: #0E7C5A; }
.ho.is-blocked { background: #F7F8F9; border-color: #E6EAED; }
.ho.is-blocked .ho-t, .popup-content .ho.is-blocked p.ho-d, .ho.is-blocked p.ho-d { color: #5f6b78; }
.ho.is-blocked .ho-t svg { color: #6F6F6F; }

.ho-strip { display: flex; gap: var(--s-5); align-items: flex-start; background: #F3F6FF; border: 1px solid #D5DEF7; border-radius: var(--r-5); padding: var(--s-5) var(--s-7); font-size: var(--t-2); color: #2E3F75; line-height: var(--lh-3); margin: 0 0 var(--s-6); }
.ho-strip > svg { flex: 0 0 auto; margin-top: var(--s-1); color: #3050b5; }
.ho-strip b { font-family: var(--font-h); font-weight: 600; }
.ho-strip .ho-act { margin-inline-start: auto; display: flex; gap: var(--s-4); flex: 0 0 auto; }
.ho-strip .ho-act .secondary-button, .ho-strip .ho-act .btn-secondary{ height: 30px; font-size: var(--t-1); padding: 0 var(--s-6); }
.ho-strip .ho-act .secondary-button[disabled], .ho-strip .ho-act .btn-secondary[disabled]{ opacity: .45; cursor: not-allowed; pointer-events: none; }
.ho-strip .ho-act-tip { display: inline-flex; cursor: not-allowed; }
.ho-strip.is-locked > div:not(.ho-act) { opacity: .6; }

.tf-status { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); border-radius: var(--r-pill); padding: 3px var(--s-5); white-space: nowrap; }
.tf-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tf-due { background: #FFF1E0; color: #B45309; }

.rd { background: #fff; border: 1px solid #E6EAED; border-radius: 16px; padding: 18px var(--s-9); transition: opacity .15s, filter .15s; }
.rd.is-locked > :not([data-ho-panel]) { opacity: .75; filter: blur(1.5px); pointer-events: none; }
.rd.is-locked [data-ho-panel] :not(.is-saving) { pointer-events: none; }
.rd-top { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.rd-top .rd-state { margin-inline-start: auto; }
.rd-num { font-family: ui-monospace, Menlo, monospace; font-size: var(--t-2); color: #04696F; }
.rd-title { font-family: var(--font-h); font-weight: 600; font-size: var(--t-5); color: #6F6F6F; margin: var(--s-4) 0 var(--s-2); }
.rd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-6) 0; }
@media (max-width: 720px) { .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-cell { background: #F7F9F9; border-radius: var(--r-4); padding: 9px 11px; min-width: 0; }
.rd-cell .k { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6F6F6F; }
.rd-cell .v { font-size: var(--t-3); color: #12202b; margin-top: 3px; font-weight: 600; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.rd-hidden { display: flex; gap: 9px; align-items: flex-start; border: 1px dashed #D6DEE0; border-radius: var(--r-5); padding: var(--s-6) var(--s-7); color: #5b6570; font-size: var(--t-2); line-height: 1.55; }
.rd-hidden svg { flex: 0 0 auto; color: #6F6F6F; margin-top: var(--s-1); }
.rd-why { margin: var(--s-6) 0 0; font-size: var(--t-2); color: #2b3640; background: #F3F6FF; border-radius: var(--r-4); padding: 9px 11px; line-height: var(--lh-3); overflow-wrap: anywhere; }
.rd-why b { font-family: var(--font-h); font-weight: 600; color: #2E3F75; }
.rd-act { display: flex; gap: var(--s-5); align-items: center; margin-top: var(--s-7); flex-wrap: wrap; }
.rd-act .hint { font-size: var(--t-1); color: #6F6F6F; }
.rd-panel { margin-top: var(--s-6); }
.rd p.pa-pub-d { font-family: var(--font-b); font-size: var(--t-2); color: #6B5A44; line-height: 1.55; margin: var(--s-2) 0 var(--s-4); text-align: start; }
.pa-pub.rd-assign { border-color: #CFE3E3; background: #F4FAFA; }
.pa-pub.rd-assign .pa-pub-t { color: #04696F; }
.rd p.rd-assign-d, .rd .rd-assign p.pa-pub-d { color: #4b5b66; }
.rd-search { width: 100%; box-sizing: border-box; height: 36px; border: 1px solid #CFDADB; border-radius: var(--r-4); padding: 0 11px; font-family: var(--font-b); font-size: var(--t-2); background: #fff; }
.rd-search:focus { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.rd-people { display: flex; flex-direction: column; gap: var(--s-1); max-height: 220px; overflow-y: auto; margin-top: var(--s-4); background: #fff; border: 1px solid #E3ECEC; border-radius: var(--r-4); padding: var(--s-2); }
.rd-person { display: flex; align-items: center; gap: 9px; padding: var(--s-3) var(--s-4); border-radius: var(--r-3); cursor: pointer; font-size: var(--t-2); color: #12202b; }
.rd-person:hover { background: #F2F7F7; }
.rd-person.is-picked { background: color-mix(in srgb, var(--primary-color) 9%, #fff); }
.rd-person input { accent-color: var(--primary-color); margin: 0; }
.rd-person img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rd-person-n { font-weight: 600; }
.rd-person-h { margin-inline-start: auto; font-size: var(--t-1); color: #6F6F6F; }
.rd-person.is-self { cursor: not-allowed; opacity: .6; }
.rd-person[hidden] { display: none; }
.rd-none { font-size: var(--t-2); color: #6F6F6F; padding: var(--s-4); }
.rd .pa-pub-foot .button, .rd .pa-pub-foot .btn-primary{ height: 34px; font-size: var(--t-2); padding: 0 var(--s-8); }

.ho-waiting { margin: 0 0 var(--s-8); }
.ho-waiting-head { display: flex; align-items: baseline; gap: var(--s-5); flex-wrap: wrap; margin: 0 0 var(--s-5); }
.ho-waiting-head h2 { font-family: var(--font-h); font-weight: 600; font-size: var(--t-4); color: #12202b; margin: 0; }
.ho-waiting-sub { font-size: var(--t-2); color: #6F6F6F; }
.ho-waiting-list { display: grid; gap: var(--s-6); }
.ho-page { max-width: 760px; }
.ho-page-h { font-family: var(--font-h); font-weight: 600; font-size: var(--t-6); color: #12202b; margin: 0 0 var(--s-7); }
.rtl .ho-avs { margin-inline-start: 0; margin-inline-end: auto; }
.rtl .ho-n { margin-inline-end: 0; margin-inline-start: auto; }
.rtl .ho-strip .ho-act, .rtl .rd-top .rd-state { margin-inline-start: 0; margin-inline-end: auto; }
.rtl .rd-num { direction: ltr; unicode-bidi: isolate; }

/* Access requests inbox */
.ar-page { max-width: 880px; }
.ar-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-5); }
.ar-h { font-family: var(--font-h); font-weight: 600; font-size: var(--t-5); color: #12202b; margin: 0; }
.ar-s { font-size: var(--t-2); color: var(--gray); }
.ar-card { display: grid; grid-template-columns: 36px 1fr auto; gap: var(--s-6); align-items: flex-start; background: #fff; border: 1px solid #E9EDEF; border-radius: var(--r-5); padding: var(--s-7) var(--s-8); margin-top: var(--s-5); }
.ar-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #E6F1F1; }
.ar-who { font-size: var(--t-2); color: #42505c; }
.ar-who b { font-family: var(--font-h); font-weight: 600; color: #12202b; }
.ar-tk { margin-top: 3px; font-size: var(--t-2); color: #12202b; overflow-wrap: anywhere; }
.ar-tk .num { font-family: ui-monospace, Menlo, monospace; color: #04696F; margin-inline-end: var(--s-3); }
.ar-tk a.num { text-decoration: none; }
.ar-tk a.num:hover { text-decoration: underline; }
.ar-why { margin-top: var(--s-3); font-size: var(--t-2); color: #2b3640; background: #F7F9F9; border-radius: var(--r-4); padding: var(--s-4) var(--s-5); line-height: var(--lh-3); overflow-wrap: anywhere; }
.ar-why.none { color: var(--gray); font-style: italic; }
.ar-scope { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); border-radius: var(--r-pill); padding: var(--s-1) var(--s-4); background: #EEF4FF; color: #3050b5; margin-top: var(--s-4); }
.ar-act { display: flex; flex-direction: column; gap: var(--s-3); align-items: stretch; min-width: 110px; }
.ar-act .button, .ar-act .secondary-button, .ar-act .btn-primary, .ar-act .btn-secondary{ height: 34px; font-size: var(--t-2); padding: 0 var(--s-7); justify-content: center; }
.ar-done { font-size: var(--t-2); color: #0E7C5A; font-family: var(--font-h); font-weight: 600; align-self: center; }
.ar-done.denied { color: var(--gray); }
.ar-empty { border: 1px dashed #CBD5D8; border-radius: var(--r-5); padding: 18px; text-align: center; color: #5b6570; font-size: var(--t-2); margin-top: var(--s-5); }
.ar-note { font-size: var(--t-1); color: var(--gray); margin-top: var(--s-7); }

/* Access expiry (0047, approved previews/preview_access_expiry.html).
   A split approve button: the main half grants what the service's policy
   says, the caret shortens it. Geometry matches .ar-act's 34px buttons, and
   the seam is a 1px light rule rather than a gap, so it reads as one control.
   The menu is position:fixed — an inbox card scrolls, and an absolute overlay
   would float away from its anchor (the Status/Severity/Assignee bug). */
.ar-split { display: inline-flex; align-items: stretch; }
.ar-split .button, .ar-split .btn-primary{ padding-block: 0; padding-inline: var(--s-7) var(--s-5); flex: 1; }
/* Square the seam ONLY when a caret follows it — a service with one option
   renders no caret, and a half-rounded lone button looks broken. */
.ar-split .button:has(+ .ar-caret), and a half-rounded lone button looks broken. */
.ar-split .btn-primary:has(+ .ar-caret){ border-start-end-radius: 0; border-end-end-radius: 0; }
.ar-caret { background: var(--primary-color); color: #fff; border: none;
  border-inline-start: 1px solid rgba(255,255,255,.25); border-start-start-radius: 0; border-start-end-radius: 10px; border-end-end-radius: 10px; border-end-start-radius: 0;
  width: 30px; height: 34px; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: background-color .1s linear; }
.ar-caret:hover { background: var(--secondary-color); }
.ar-caret:disabled { background: var(--gray); cursor: not-allowed; }
.ar-menu { position: fixed; z-index: 1200; background: #fff; border: 1px solid #E3E8EA;
  border-radius: var(--r-5); box-shadow: var(--sh-3); padding: var(--s-3); min-width: 208px; }
.ar-menu button { display: flex; width: 100%; align-items: center; gap: 9px;
  font-family: var(--font-b); font-size: var(--t-3); color: #2b3640; padding: var(--s-4) var(--s-5);
  border-radius: var(--r-3); cursor: pointer; text-align: start; background: none; border: none; }
.ar-menu button:hover { background: #F2F7F7; }
.ar-menu button.on { color: var(--primary-color); font-weight: 600; }
.ar-menu-hd { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); letter-spacing: .04em;
  text-transform: uppercase; color: #6F6F6F; padding: 7px var(--s-5) var(--s-2); }
.ar-menu-ft { font-family: var(--font-b); font-size: var(--t-1); color: #6F6F6F;
  border-top: 1px solid #F1F3F4; margin-top: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-2); }

/* "Until 12 Oct" next to a person in the Privacy & Access panel. Three states:
   teal is fine, orange is ending soon, red is an open-ended grant nobody has
   reviewed — every row that predates this feature looks like that on day one. */
.ac-until { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-h);
  font-weight: 600; font-size: var(--t-1); border-radius: var(--r-pill); padding: var(--s-1) var(--s-4);
  background: #E6F1F1; color: var(--primary-color); white-space: nowrap; }
.ac-until.soon { background: var(--orange-light); color: var(--orange); }
.ac-until.none { background: var(--red-light); color: #B4241F; }
@media (max-width: 560px) {
  .ar-card { grid-template-columns: 36px 1fr; }
  .ar-act { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .ar-act .button, .ar-act .secondary-button, .ar-act .btn-primary, .ar-act .btn-secondary{ flex: 1; }
}

/* Request access: nobody can decide */
.popup-content .ar-nobody { border: 1px solid #F3D9B1; background: #FFFAF2; color: #6B4A1E; border-radius: var(--r-5); padding: var(--s-6) var(--s-7); font-size: var(--t-2); line-height: 1.55; text-align: start; }
.popup-content .ar-nobody b { font-family: var(--font-h); font-weight: 600; color: #8A4B07; display: block; margin-bottom: var(--s-1); }

/* Department head field in the department editor */
.dh-pick { display: flex; align-items: center; gap: var(--s-5); border: 1px solid #DDE3E5; border-radius: var(--r-5); padding: var(--s-4) var(--s-5); background: #fff; }
.dh-pick .dh-cur { display: flex; align-items: center; gap: var(--s-5); min-width: 0; }
.dh-pick .dh-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.dh-pick .dh-av-empty { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed #CBD5D8; flex: 0 0 auto; }
.dh-pick .nm { font-size: var(--t-2); color: #12202b; }
.dh-pick .al { font-size: var(--t-1); color: var(--gray); }
.dh-pick .nm.empty { color: var(--gray); }
.dh-pick .chg { margin-inline-start: auto; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--primary-color); background: none; border: 0; padding: var(--s-2) var(--s-3); cursor: pointer; border-radius: var(--r-2); }
.dh-pick .chg:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.dh-pick .chg.rm { color: var(--gray); margin-inline-start: 0; }
.popup-content p.dh-hint, .popup-content .dh-hint { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin: var(--s-3) 0 0; text-align: start; line-height: var(--lh-3); }
.popup-content p.dh-hint.away { color: #8A4B07; }
.dh-menu { border: 1px solid #DDE3E5; border-radius: var(--r-5); background: #fff; margin-top: var(--s-3); box-shadow: var(--sh-3); overflow: hidden; }
.dh-menu input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #EEF1F3; padding: 9px var(--s-6); font-size: var(--t-2); outline: none; font-family: var(--font-b); }
.dh-list { max-height: 220px; overflow-y: auto; }
.dh-opt { display: flex; align-items: center; gap: var(--s-5); width: 100%; background: none; border: 0; padding: 7px var(--s-6); cursor: pointer; text-align: start; font: inherit; }
.dh-opt:hover, .dh-opt.is-active { background: #F4F8F8; }
.dh-opt.dh-rm { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--gray); }
.dh-opt img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dh-opt .nm { font-size: var(--t-2); color: #12202b; }
.dh-opt .al { font-size: var(--t-1); color: var(--gray); }
.dh-empty { padding: var(--s-5) var(--s-6); font-size: var(--t-2); color: var(--gray); }

/* Privacy & Access modal: the reason for making a ticket public */
.pa-pub { border: 1px solid #F3D9B1; background: #FFFAF2; border-radius: var(--r-5); padding: var(--s-6) var(--s-7); margin-top: var(--s-5); }
.pa-pub .pa-pub-t { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #8A4B07; display: flex; gap: var(--s-4); align-items: center; }
.popup-content p.pa-pub-d { font-family: var(--font-b); font-size: var(--t-2); color: #6B5A44; line-height: 1.55; margin: var(--s-2) 0 var(--s-4); text-align: start; }
.pa-pub textarea { width: 100%; box-sizing: border-box; min-height: 74px; border: 1px solid #E7CFA8; border-radius: var(--r-4); padding: 9px 11px; font-family: var(--font-b); font-size: var(--t-2); resize: vertical; background: #fff; }
.pa-pub textarea:focus { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.pa-pub-foot { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); flex-wrap: wrap; }
.pa-pub-count { font-size: var(--t-1); color: var(--gray); margin-inline-end: auto; }
.pa-pub-count.ok { color: #0E7C5A; }
.pa-pub-foot .secondary-button, .pa-pub-foot .pa-pub-go, .pa-pub-foot .btn-secondary{ height: 34px; font-size: var(--t-2); padding: 0 var(--s-7); }
.pa-pub-go { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-h); font-weight: 600; color: #fff; background: #B45309; border: 0; border-radius: var(--r-pill); cursor: pointer; }
.pa-pub-go[disabled] { opacity: .45; cursor: not-allowed; }

/* Role editor: a capability flag ("Every open recorded") */
.cap-flag { display: inline-block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); border-radius: var(--r-pill); padding: 1px var(--s-4); margin-inline-start: var(--s-3); background: #FDF2E2; color: #B45309; }

/* Requested access (Part C, L3): number, category and team only */
.rq-wrap { overflow-x: auto; margin-top: var(--s-5); }
.rq-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E9EDEF; border-radius: var(--r-5); overflow: hidden; }
.rq-table th { text-align: start; font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--gray); padding: var(--s-5) var(--s-7); background: #F7F9F9; border-bottom: 1px solid #EEF1F3; }
.rq-table td { padding: var(--s-5) var(--s-7); font-size: var(--t-2); color: #2b3640; border-bottom: 1px solid #F1F4F5; }
.rq-table td.num { font-family: ui-monospace, Menlo, monospace; color: #04696F; }
.rq-table td.num a { color: #04696F; text-decoration: none; }
.rq-status { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); border-radius: var(--r-pill); padding: var(--s-1) 9px; background: #F1F4F5; color: #42505c; }
.rq-status.rq-approved { background: #E6F4EE; color: #0E7C5A; }

/* Redacted ticket rows (Part C): what may be shown about a ticket you cannot read */
.redacted-label { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--gray); }
tr.is-redacted td, .nd-row.is-redacted { color: var(--gray); }
.nd-row.is-redacted { cursor: default; }
/* Part B (approved preview v2, section 3): the redacted queue row's category, the
   Restricted privacy dot, and the policy rows in the Privacy & Access list. */
.rq-cat { font-size: var(--t-1); color: #5b6570; }
.privacy-restricted::before { background: #9F1239; box-shadow: var(--sh-focus); }
.pa-chip-department { background: #EEF0FA; color: var(--blue); }
.thr { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: #68727d; background: #F1F3F5; border-radius: var(--r-2); padding: 1px 7px; white-space: nowrap; vertical-align: middle; }

/* Part B, B1 (approved preview v2, section 3): Restricted in the Privacy &
   Access modal — its segment, the policy line under the title, the grey
   "why not wider" note — the lock pill on the ticket page, and the queue's
   Assign action on a restricted row. */
.pa-seg button.on[data-v="restricted"] { color: #9F1239; }
.pa-seg button[data-v="restricted"] svg { flex: 0 0 auto; }
.pa-footnote.pa-policy-line { text-align: start; margin: 0 0 var(--s-5); }
.pa-explain .pa-note { color: #6F6F6F; }
.lock-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 var(--s-5); border-radius: var(--r-pill); background: #F1F3F5; border: 1.5px solid var(--gray-light2); font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; color: #37424e; white-space: nowrap; vertical-align: middle; }
.lock-pill svg { width: 12px; height: 12px; color: #5f6b78; flex: 0 0 auto; }
.rq-row td { color: #68727d; }
.rq-row .redacted-label { margin-inline-end: var(--s-3); }
.rq-assign { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--primary-color); background: none; border: 1px solid #CFE3E3; border-radius: var(--r-3); padding: 3px 9px; cursor: pointer; }
.rq-assign[disabled] { color: #6F6F6F; border-color: #E6EAED; cursor: not-allowed; }
.rq-assign:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
/* The queue Assign picker's loading rows mirror its options: avatar + name. */
.vt-picker-pop .rq-pick-sk { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.vt-picker-pop .rq-pick-sk-av { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.vt-picker-pop .rq-pick-sk-name { height: 11px; flex: 1; max-width: 150px; border-radius: var(--r-1); }
/* A typeahead row whose holder the policy hides from this viewer: no photo. */
.nav-ac__av--none { display: inline-block; background: #EEF1F3; }

/* ---- Ticket · the More menu (walkthrough finding 5) ---------------------
   Occasional actions -- ask for approval, raise a related ticket -- in one
   menu instead of a permanent button on every ticket. The menu is
   position: fixed and placed by static/js/more_menu.js, so it tracks its
   button in the viewport rather than detaching from the scrolling sidebar. */
.sb__more { display: contents; }
.sb__more__open { justify-content: flex-start; }
/* The More button carried an unsized icon, so the SVG took the button's whole width: a 256x277 box
   of three giant dots under Mark resolved (found reviewing T100032 for production). One line, like
   the buttons above it, with a 16px "⋯". */
.view-ticket-v3 .sb__qa-btn.sb__more__open { display: flex; align-items: center; justify-content: center; gap: var(--s-3); }
.view-ticket-v3 .sb__qa-btn.sb__more__open svg { width: 16px; height: 16px; flex: 0 0 16px; }
.sb__more__menu { position: fixed; z-index: 1200; min-width: 208px;
                  background: #fff; border: 1px solid var(--border, #EAECEF);
                  border-radius: var(--r-4); box-shadow: var(--sh-3);
                  padding: 5px; }
.sb__more__item { display: flex; align-items: center; gap: 9px; width: 100%;
                  border: none; background: none; text-align: start;
                  font-family: var(--font-h); font-size: var(--t-2);
                  font-weight: 500; color: #1F2933; padding: var(--s-4) var(--s-5);
                  border-radius: var(--r-2); cursor: pointer; }
.sb__more__item svg { width: 15px; height: 15px; flex: 0 0 15px; color: #5f6b78; }
.sb__more__item:hover { background: #F1F5F5; color: var(--primary-color, #04696F); }
.sb__more__item:hover svg { color: var(--primary-color, #04696F); }
.sb__more__item:focus-visible { outline: 2px solid var(--primary-color, #04696F);
                                outline-offset: -2px; }
/* Disabled carries the reason as its tooltip and does nothing on click, the
   same pattern as "Assign to me" -- educate upfront, never error after. */
.sb__more__item--off { color: #6c6c6c; cursor: not-allowed; }        /* 4.86:1 on the app background; the icon inherits it */
.sb__more__item--off:hover { background: none; color: #6c6c6c; }

/* The ask-for-approval panel keeps its own heading now that the button that
   used to name it has moved into the menu. */
.ap-ask__hd { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600;
              color: #1F2933; margin: 0 0 var(--s-5); }

/* ---- List header: refresh, and a badge that tells the truth (finding 17) --
   "Live" now means the server was heard from inside the last 45 seconds --
   events.heartbeat sends a named ping every 20 seconds of quiet. When it has
   not been heard from, the badge says WHEN it last was, which is a fact, and
   Refresh is right beside it. */
.list-refresh { display: inline-flex; align-items: center; justify-content: center;
                width: 26px; height: 26px; padding: 0; margin-inline-start: var(--s-1);
                border: 1px solid var(--border, #EAECEF); border-radius: var(--r-pill);
                background: #fff; color: #5f6b78; cursor: pointer;
                vertical-align: middle; }
.list-refresh svg { width: 13px; height: 13px; }
.list-refresh:hover { color: var(--primary-color, #04696F);
                      border-color: var(--primary-color, #04696F); }
.list-refresh:focus-visible { outline: 2px solid var(--primary-color, #04696F);
                              outline-offset: 2px; }
.list-refresh.is-spinning svg { animation: list-refresh-spin .8s linear infinite; }
@keyframes list-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .list-refresh.is-spinning svg { animation: none; }
}
/* Stale reads as a fact, not a fault: grey, not red. */
.live-badge[data-state="stale"] { background: #F1F3F5; color: #5f6b78; }
/* ---- F41 / F44 (2026-09-23): the Manage pages that scrolled sideways on a 390px phone.
   Found by the first Playwright sweep. A segmented tab row would not wrap, and a
   table wrapper that is a flex child grows to its table's width (min-width: auto)
   instead of scrolling inside it. ---- */
@media (max-width: 480px) {
  .ap-tabs { display: flex; flex-wrap: wrap; }
  .table-wrapper { min-width: 0; max-width: 100%; }
  /* Manage → Statuses: the default row's tab group is flex-shrink: 0 on wide screens
     so it never wraps; on a phone it shrinks and the row wraps under its label. */
  .manage-statuses-page .ms-default { flex-wrap: wrap; }
  .manage-statuses-page .ms-default__o { flex-shrink: 1; min-width: 0; }
}

/* ============================================================
   LOCKED CONTROLS — disabled + tooltip (house pattern: Jira / GitHub / Linear)
   A control the person may not use is SHOWN, greyed, with a tooltip that names
   the permission and who to ask — never an error after the click. Wrap the
   control in .lk-tip[data-tip] (add .lk-tip--block for a full-width control)
   and mark the control aria-disabled="true", NOT native disabled, so keyboard
   users can reach it and read the tooltip. The server check stays whatever the
   screen does. Owner decisions D34 / D38 (2026-09-23); the LIGHT CARD look is D43
   (owner, 2026-09-23: a black background reads as cheap on this light app).
   ============================================================ */
.lk-tip{position:relative;display:inline-flex;max-width:100%}
.lk-tip--block{display:flex}
.lk-tip::after{content:attr(data-tip);position:absolute;inset-inline-start:0;bottom:calc(100% + 8px);background:#fff;color:#3F4A4C;border:1px solid #E6E9EC;box-shadow:var(--sh-3);font-family: var(--font-b);font-size:var(--t-2);font-weight:400;line-height:1.35;padding:7px var(--s-5);border-radius:var(--r-4);width:max-content;max-width:min(300px,80vw);white-space:normal;text-align:start;opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1);z-index:30}
.lk-tip:hover::after,.lk-tip:focus-within::after{opacity:1;transform:none}
.lk-ctl[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.vt-modal-v2 .vm-picker-trigger[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.ap-tabs button[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.secondary-button[aria-disabled="true"], .btn-secondary[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.view-ticket-v3 .vt-tl-att-chip.is-locked{cursor:not-allowed}.view-ticket-v3 .vt-tl-att-chip.is-locked>*{opacity:.6}   /* dim the chip's parts, not the chip: its tooltip must stay crisp */
.view-ticket-v3 .vt-tl-att-chip.is-locked:hover{border-color:var(--gray-light2,#EBEBEB);background:var(--light-background,#F6F6F6)}
.att-tab-v3__actions .lk-tip::after{inset-inline-start:auto;inset-inline-end:0}
.view-ticket-v3 .sb__field > .val.lk-tip{display:inline-block;cursor:not-allowed}
/* the sidebar is a narrow scroll container: keep its tooltip inside it, hung from the value's right edge */
.view-ticket-v3 .sb__field > .val.lk-tip::after{inset-inline-start:auto;inset-inline-end:0;max-width:min(250px,60vw)}
@media (prefers-reduced-motion: reduce){.lk-tip::after{transition:none}}

/* ---- Accepting an invitation: the username hint -------------------------
   The rule, then what the server said about what was typed. States: plain
   (the rule), checking, free, bad. The suggestion is a pill like every other
   button here, not a link. (Finding 23; lived on the retired sign-up page
   first.) */
.su-hint { margin: -6px 0 0; font-family: var(--font-b);
           font-size: var(--t-2); color: #5f6b78; line-height: 1.45; }
.su-hint--checking { color: #6c6c6c; }
.su-hint--free { color: #0C5C36; }
.su-hint--bad { color: #A32020; }
.su-pick { border: 1px solid var(--primary-color, #04696F); background: #fff;
           color: var(--primary-color, #04696F); font-family: var(--font-h);
           font-weight: 600; font-size: var(--t-1); padding: 3px 11px; border-radius: var(--r-pill);
           cursor: pointer; margin-inline-start: var(--s-1); }
.su-pick:hover { background: var(--primary-color, #04696F); color: #fff; }
.su-pick:focus-visible { outline: 2px solid var(--primary-color, #04696F);
                         outline-offset: 2px; }

/* Access & handling: four privacy choices, one of which carries the workspace
   name ("Everyone at Najd Logistics"). A long name must wrap the row, never
   push the modal sideways. */
.pol-row .settings-seg { flex-wrap: wrap; }

/* A mention in a comment opens the person card on hover (person-card.js). */
.vt-tl-rich .mention { cursor: pointer; }

/* ===== D71 phone numbers (approved preview_phone_settings + preview_person_phones) ===== */
/* Edit user (admin) and the admin card: "Hidden from others" */
label.input .ph-hid, .mcard__val .ph-hid { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-b); font-weight: 400; font-size: var(--t-1); color: var(--gray); border: 1px solid #E4E7EC;
  background: #F2F4F7; border-radius: var(--r-pill); padding: var(--s-1) var(--s-4); }
label.input .ph-hid { margin-top: -2px; }
.mcard__val .ph-hid { margin-inline-start: var(--s-3); vertical-align: 1px; }
label.ph-ext input { max-width: 120px; }
/* Settings › Profile */
.ph-block { display: grid; gap: var(--s-5); padding-top: var(--s-2); margin-bottom: var(--s-4); }
/* D93: Your activity -- a line of text and the same switch as the numbers' */
.pr-row { display: flex; align-items: center; gap: var(--s-8); }
.pr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.pr-text b { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--ink); }
.pr-text span { font-size: var(--t-1); color: var(--gray); line-height: 1.45; }
.pr-row .ph-show { padding-bottom: 0; }
@media (max-width: 560px) { .pr-row { flex-wrap: wrap; gap: var(--s-3); } .pr-text { flex-basis: 100%; } }
.ph-head { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: var(--black); }
.ph-row { display: flex; align-items: flex-end; gap: var(--s-8); }
.ph-field { flex: 1; min-width: 0; margin: 0; }
.ph-field--short { flex: 0 1 180px; }
.ph-opt { font-weight: 400; color: var(--gray); font-size: var(--t-1); margin-inline-start: var(--s-2); }
.ph-show { display: inline-flex; align-items: center; gap: var(--s-5); flex-shrink: 0; padding-bottom: var(--s-4);
  font-family: var(--font-b); font-size: var(--t-2); color: var(--ink-2); cursor: pointer; }
@media (max-width: 560px) { .ph-row { flex-wrap: wrap; gap: var(--s-3); } .ph-field--short { flex-basis: 100%; } .ph-show { padding-bottom: 0; } }
/* the numbers on the person card, the profile panel, the profile page and the admin card */
.pc-row a.pc-tel, .pn-row a.pc-tel, .mcard__val a.pc-tel, .pg-meta a.pc-tel { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.pc-row a.pc-tel:hover, .pn-row a.pc-tel:hover, .mcard__val a.pc-tel:hover, .pg-meta a.pc-tel:hover { color: var(--primary-color); text-decoration: underline; }
.pc-row .pc-kind, .pn-row .pc-kind { color: var(--gray); font-size: .92em; white-space: nowrap; }

/* ===== D72: Requests › Your turn / Their turn (approved preview_home_level2) ===== */
.tl-tabs { display: inline-flex; padding: 3px; gap: var(--s-1); background: #F1F4F5; border-radius: var(--r-pill); margin: 0 var(--s-4); vertical-align: middle; }
.tl-tabs a { padding: var(--s-1) var(--s-6); border-radius: var(--r-pill); font-family: var(--font-b); font-size: var(--t-2); font-weight: 400; color: var(--ink-2); text-decoration: none; }
.tl-tabs a b { font-weight: 600; margin-inline-start: var(--s-1); }
.tl-tabs a[aria-selected="true"] { background: #fff; color: var(--primary-color); font-weight: 600; box-shadow: var(--sh-1); }
.tl-tabs a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.tickets-table th.col-wait, .tickets-table td.col-wait { min-width: 90px; white-space: nowrap; }
.tickets-table th.col-turn, .tickets-table td.col-turn { min-width: 220px; max-width: 320px; }
.tl-turn { display: grid; gap: var(--s-1); }
.tl-tag { justify-self: start; padding: 0 var(--s-4); border-radius: var(--r-pill); background: #EEF6F6; color: var(--primary-color); font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; }
.tl-tag.is-amber { background: #FFFAEB; color: #B54708; }
.tl-tag.is-mention { background: #EEF2FF; color: #3538CD; }
.tl-say { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.tl-wait { font-family: var(--font-b); font-size: var(--t-2); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-wait.is-red { color: #B42318; }
.tl-wait.is-amber { color: #B54708; }
.tl-n { margin-inline-start: var(--s-3); padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--primary-color); color: #fff; font-size: var(--t-1); font-weight: 600; }
.tl-n.is-quiet { background: #E6ECEE; color: var(--ink-2); }

/* ======================================================================
   The approval card (D78-D80, approved preview_approvals_final). One card for the
   request page and the Approvals inbox (templates/_approval_card.html).
   ====================================================================== */
/* Approval, redesigned (proposal) — one card that reads top to bottom:
   why it is here → the journey → what is being signed → the conversation → what you can do. */
.apj { background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-5); box-shadow: var(--sh-1); overflow: hidden; margin-bottom: var(--s-8); font-family: var(--font-b); }
.apj__rule { height: 3px; background: linear-gradient(90deg, var(--primary-color), #0A8A91 55%, #5FBFC3); }
.apj.is-ok .apj__rule { background: linear-gradient(90deg, #1f8a4c, #31A05F 60%, #8CD3A8); }
.apj.is-no .apj__rule { background: linear-gradient(90deg, #B0231A, #E0574C 60%, #F0A9A3); }
.apj__hd { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-6) var(--s-8); border-bottom: 1px solid #F1F3F4; }
.apj__hd h3 { margin: 0; display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: var(--black); }
.apj__hd h3 svg { width: 18px; height: 18px; color: var(--primary-color); }
.apj__ref { font-family: ui-monospace, Menlo, monospace; font-size: var(--t-1); color: var(--gray); }
.apj__sp { flex: 1; }
.apj__state { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-5); border-radius: var(--r-pill); font-size: var(--t-2); font-weight: 600; background: #FFF4E5; color: #93370D; }
.apj__state.ok { background: #ECFDF3; color: #067647; }
.apj__state.no { background: #FEF3F2; color: #B42318; }
.apj__state.info { background: #EEF4FF; color: #3538CD; }
.apj__why { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5) var(--s-8); background: #FAFBFB; border-bottom: 1px solid #F1F3F4; font-size: var(--t-2); color: var(--ink-2); line-height: 1.5; }
.apj__why svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary-color); }
.apj__why b { color: var(--black); font-weight: 600; }
/* the journey */
.apj__jr { list-style: none; margin: 0; padding: var(--s-8) var(--s-8) var(--s-6); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.apj__st { position: relative; padding-inline-end: var(--s-4); min-width: 0; }
.apj__st::after { content: ''; position: absolute; top: 15px; inset-inline-start: 36px; inset-inline-end: 4px; height: 2px; background: #E7EAEB; border-radius: var(--r-pill); }
.apj__st:last-child::after { display: none; }
.apj__st.done::after { background: #B6DFC7; }
.apj__dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #EFF1F2; color: var(--gray); }
.apj__dot svg { width: 15px; height: 15px; }
.apj__st.done .apj__dot { background: #DFF3E6; color: #1f8a4c; }
.apj__st.no .apj__dot { background: #FBE3E1; color: #A8271C; }
.apj__st.now .apj__dot { background: var(--primary-color); color: #fff; box-shadow: var(--sh-focus); }
.apj__st.end .apj__dot { background: #F3F9F9; color: var(--primary-color); border: 1px dashed #9CC7CA; }
.apj__n { display: block; margin-top: var(--s-4); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--gray); }
.apj__st.now .apj__n { color: var(--primary-color); }
.apj__who { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); font-size: var(--t-2); color: var(--black); font-weight: 600; }
.apj__t { display: block; margin-top: var(--s-1); font-size: var(--t-1); color: var(--gray); line-height: 1.45; }
.apj__t.late { color: #B42318; font-weight: 600; }
.apj__away { display: inline-flex; align-items: center; height: 18px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: #FFF4E5; color: #93370D; font-size: var(--t-1); font-weight: 600; }
.apj-av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: #E1EDEE; color: var(--primary-color); font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; flex-shrink: 0; }
/* body */
.apj__bd { padding: 0 var(--s-8) var(--s-8); display: grid; gap: var(--s-6); }
.apj__lead { margin: 0; font-family: var(--font-h); font-size: var(--t-4); font-weight: 600; color: var(--black); text-wrap: balance; }
.apj__say { margin: var(--s-1) 0 0; font-size: var(--t-2); color: var(--ink-2); line-height: 1.55; }
.apj__say b { color: var(--black); font-weight: 600; }
.apj__sign { border: 1px solid #E6E9EC; border-radius: var(--r-4); overflow: hidden; }
.apj__sign-h { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); background: #FAFBFB; border-bottom: 1px solid #F1F3F4; font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--gray); }
.apj__sign-h .sp { flex: 1; }
.apj__sign-h .fp { text-transform: none; letter-spacing: 0; font-family: var(--font-b); font-weight: 400; display: inline-flex; gap: var(--s-2); align-items: center; color: #067647; }
.apj__sign-h .fp svg { width: 13px; height: 13px; }
.apj__sign-b { padding: var(--s-6); display: grid; gap: var(--s-4); }
.apj__sign-t { font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: var(--black); }
.apj__sign-d { font-size: var(--t-2); color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.apj__files { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.apj__file { display: inline-flex; align-items: center; gap: var(--s-3); padding-block: var(--s-2); padding-inline: var(--s-3) var(--s-5); border: 1px solid #E6E9EC; border-radius: var(--r-3); background: #fff; font-size: var(--t-2); color: var(--black); text-decoration: none; }
.apj__file:hover { border-color: #CFE3E4; background: #F7FAFA; }
.apj__file svg { width: 16px; height: 16px; color: var(--primary-color); flex-shrink: 0; }
.apj__file small { color: var(--gray); }
.apj__file .lk { color: #067647; }
.apj__file.is-new { border-color: #F5C58B; background: #FFFAF2; }
.apj__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-5) var(--s-8); padding-top: var(--s-5); border-top: 1px solid #F1F3F4; }
.apj__meta .k { font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--gray); }
.apj__meta .v { margin-top: var(--s-1); font-size: var(--t-2); font-weight: 600; color: var(--black); display: flex; gap: var(--s-2); align-items: center; }
.apj__chg { display: grid; gap: var(--s-3); padding: var(--s-5) var(--s-6); border: 1px solid #F5C58B; border-radius: var(--r-4); background: #FFFAF2; font-size: var(--t-2); color: #7A4A0B; }
.apj__chg b { color: #93370D; }
.apj__chg ul { margin: 0; padding-inline-start: var(--s-8); display: grid; gap: var(--s-1); }
.apj__chg del { color: #B42318; text-decoration-thickness: 1px; }
.apj__chg ins { color: #067647; text-decoration: none; background: #ECFDF3; border-radius: var(--r-1); padding: 0 var(--s-1); }
/* the conversation */
.apj__qa { display: grid; gap: var(--s-4); }
.apj__msg { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-4); }
.apj__bub { padding: var(--s-4) var(--s-6); border-radius: var(--r-4); background: #F5F7F8; font-size: var(--t-2); line-height: 1.55; color: var(--ink-2); }
.apj__bub b { display: block; font-family: var(--font-h); font-size: var(--t-1); color: var(--black); margin-bottom: var(--s-1); }
.apj__msg.q .apj__bub { background: #EEF4FF; }
.apj__clock { display: flex; gap: var(--s-6); flex-wrap: wrap; font-size: var(--t-1); color: var(--gray); }
.apj__clock span { display: inline-flex; align-items: center; gap: var(--s-2); }
.apj__clock svg { width: 13px; height: 13px; }
.apj__attest { margin: 0; font-size: var(--t-1); color: var(--gray); line-height: 1.5; }
.apj__acts { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.apj__acts .grow { flex: 1; }
.apj-quiet { height: 32px; padding: 0 var(--s-6); border: 1px solid transparent; border-radius: var(--r-3); background: transparent; color: var(--gray); font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; cursor: pointer; }
.apj-quiet:hover { color: var(--red, #E90909); border-color: #F2C9C6; background: #FFF7F6; }
.apj-quiet[aria-disabled="true"], .apj-quiet[aria-disabled="true"]:hover { color: var(--gray); border-color: transparent; background: transparent; opacity: .6; cursor: not-allowed; }   /* Q228: greyed, the note beside it says why */
.apj-link { border: 0; background: none; padding: 0; font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: var(--primary-color); cursor: pointer; }
.apj__panel { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid #F1F3F4; }
.apj__panel label { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: var(--black); }
.apj__panel textarea { width: 100%; min-height: 72px; box-sizing: border-box; padding: var(--s-4) var(--s-5); border: 1px solid #DFE2E5; border-radius: var(--r-3); font-family: var(--font-b); font-size: var(--t-3); resize: vertical; }
.apj__panel textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.apj__panel .row { display: flex; gap: var(--s-4); justify-content: flex-end; }
.apj__panel small { color: var(--gray); font-size: var(--t-1); }
/* D96: "+ Add another approver" picks from the Ask window's choices -- its trigger, outside a window */
.apj__panel .apj-pick { width: 100%; display: flex; align-items: center; gap: var(--s-5); min-height: 44px; font-family: var(--font-b); font-size: var(--t-3); color: var(--black); background: #fff; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding: var(--s-4) var(--s-6); cursor: pointer; text-align: start; transition: border-color .12s, box-shadow .12s; }
.apj__panel .apj-pick:hover { border-color: #cdd3da; }
.apj__panel .apj-pick:focus-visible { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.apj__panel .apj-pick .chev { width: 16px; height: 16px; color: var(--gray); flex-shrink: 0; }
.apj__panel .ask2-who.is-ph b { color: var(--gray); font-weight: 500; }
.apj__receipt { display: grid; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-4); background: #F6FBF8; border: 1px solid #CDEBD8; font-size: var(--t-2); color: #1d4f33; }
.apj__receipt b { color: #0b3d22; }
.apj__receipt .row { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .apj__jr { grid-auto-flow: row; grid-auto-columns: auto; gap: var(--s-6); }
  .apj__st { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: var(--s-5); }
  .apj__st .apj__dot { grid-row: span 3; }
  .apj__st .apj__n { margin-top: 0; }
  .apj__st::after { top: 34px; bottom: -14px; inset-inline-start: 14px; inset-inline-end: auto; width: 2px; height: auto; }
  .apj__hd, .apj__why, .apj__jr, .apj__bd { padding-inline-start: var(--s-6); padding-inline-end: var(--s-6); }
}
.apj__receipt svg { width: 16px; height: 16px; color: #1f8a4c; flex-shrink: 0; }
/* expand / minimise: minimised shows the header and the journey only */
.apj__tg { display: inline-flex; align-items: center; gap: var(--s-2); height: 28px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; cursor: pointer; }
.apj__tg:hover { background: #F1F4F5; color: var(--primary-color); }
.apj__tg:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.apj__tg svg { width: 14px; height: 14px; transition: transform var(--dur-move, .18s) var(--ease, ease); }
.apj.is-min .apj__tg svg { transform: rotate(-90deg); }
.apj.is-min .apj__why, .apj.is-min .apj__bd { display: none; }
.apj.is-min .apj__jr { padding-bottom: var(--s-7); }
.apj__turn { display: none; }
.apj.is-min .apj__turn { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .apj__tg svg { transition: none; } }
/* Minimised = the header and the journey, compact: smaller dots, tighter spacing, one line of
   detail per step. (v3's one-line bar was set aside for this: the steps read better.) */
.apj__mini { display: none; }
.apj.is-min .apj__rule { height: 2px; }
.apj.is-min .apj__hd { padding-block: var(--s-3); padding-inline: var(--s-7) var(--s-4); border-bottom: 0; }
.apj.is-min .apj__hd h3 { font-size: var(--t-2); }
.apj.is-min .apj__hd h3 svg { width: 16px; height: 16px; }
.apj.is-min .apj__state { padding: 0 var(--s-4); font-size: var(--t-1); }
.apj.is-min .apj__jr { padding: 0 var(--s-7) var(--s-5); }
.apj.is-min .apj__dot { width: 20px; height: 20px; }
.apj.is-min .apj__dot svg { width: 11px; height: 11px; }
.apj.is-min .apj__st::after { top: 10px; inset-inline-start: 26px; }
.apj.is-min .apj__st.now .apj__dot { box-shadow: var(--sh-focus); }
.apj.is-min .apj__n { display: none; }
.apj.is-min .apj__who { margin-top: var(--s-2); font-size: var(--t-2); }
.apj.is-min .apj__who .apj-av { width: 18px; height: 18px; font-size: var(--t-1); }
.apj.is-min .apj__t { margin-top: 0; }
@media (max-width: 720px) {
  .apj.is-min .apj__jr { gap: var(--s-3); }
  .apj.is-min .apj__st { column-gap: var(--s-4); }
  .apj.is-min .apj__st::after { top: 22px; bottom: -8px; inset-inline-start: 9px; }
  .apj.is-min .apj__who { margin-top: 0; }
}
/* the role / the name: minimised shows the role (and the requester's name), expanded shows the people */
.apj__who .rl { display: none; }
.apj.is-min .apj__who .nm, .apj.is-min .apj__who .apj-av { display: none; }
.apj.is-min .apj__who .rl { display: inline; }
.apj.is-min .apj__st.req .apj__who .nm, .apj.is-min .apj__st.req .apj__who .apj-av { display: inline-grid; }
.apj.is-min .apj__st.req .apj__who .nm { display: inline; }
.apj.is-min .apj__st.req .apj__who .rl { display: none; }
/* "1 day over" is a pill like "Away until…", not a red sentence */
.apj__late { display: inline-flex; align-items: center; height: 18px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: #FEF3F2; color: #B42318; font-size: var(--t-1); font-weight: 600; margin-inline-start: var(--s-2); }
/* Long chains in narrow places (the inbox pane on a small laptop): six or more points on the
   journey stack vertically, as on a phone, instead of squeezing the names. */
.apj { container-type: inline-size; }
@container (max-width: 820px) {
  .apj__jr:has(> .apj__st:nth-child(6)) { grid-auto-flow: row; grid-auto-columns: auto; gap: var(--s-5); }
  .apj__jr:has(> .apj__st:nth-child(6)) .apj__st { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: var(--s-5); }
  .apj__jr:has(> .apj__st:nth-child(6)) .apj__dot { grid-row: span 3; }
  .apj__jr:has(> .apj__st:nth-child(6)) .apj__n { margin-top: 0; }
  .apj__jr:has(> .apj__st:nth-child(6)) .apj__st::after { top: 34px; bottom: -14px; inset-inline-start: 14px; inset-inline-end: auto; width: 2px; height: auto; }
}

/* ---- production additions ---- */
.apj { scroll-margin-top: calc(var(--shell-top, 60px) + var(--s-6)); }
.apj__open { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: var(--primary-color); text-decoration: none; }
.apj__open:hover { text-decoration: underline; }
.apj__open svg { width: 13px; height: 13px; }
.apj-av { object-fit: cover; }
.apj__sign-d.is-long { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.apj__sign-d.is-long.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.apj__file .lk svg { width: 13px; height: 13px; }
.apj__more { display: grid; gap: var(--s-4); }
.apj__added { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: var(--t-2); color: var(--ink-2); }
.apj__added li { display: flex; gap: var(--s-4); align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-5); border: 1px dashed #DCE3E5; border-radius: var(--r-3); }
.apj__answer small { display: flex; justify-content: space-between; }
.ap-pick__row .apj-av { width: 24px; height: 24px; border-radius: 50%; }
.apj__hd .apj__state + .apj__state { margin-inline-start: calc(var(--s-2) * -1); }
.apj__msg { grid-template-columns: minmax(0, 1fr); }
.apj__bub b { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.apj--mini { margin: 0; box-shadow: none; }
.apj--mini .apj__jr { padding: var(--s-6); }
.apj-select { min-height: 40px; }
.vt-modal-v2--onit select.apj-select { min-height: 40px; height: 40px; resize: none; }

/* ==== The Approvals inbox (D78-D80, approved preview_approvals_final) ==== */
/* Approvals inbox (proposal) — list on the left, the request + the approval card on the right */
.apx { display: grid; gap: var(--s-8); }
.apx-head { display: flex; align-items: flex-end; gap: var(--s-6); flex-wrap: wrap; }
.apx-head h1 { margin: 0; font-family: var(--font-h); font-size: var(--t-6); color: var(--black); }
.apx-head p { margin: var(--s-2) 0 0; font-family: var(--font-b); font-size: var(--t-3); color: var(--gray); }
.apx-head .sp { flex: 1; }
.apx-tabs { display: inline-flex; padding: var(--s-1); gap: var(--s-1); background: #F1F4F5; border-radius: var(--r-pill); }
.apx-tabs a { border: 0; background: transparent; padding: var(--s-2) var(--s-7); border-radius: var(--r-pill); font-family: var(--font-b); font-size: var(--t-3); color: var(--ink-2); cursor: pointer; }
.apx-tabs a b { font-weight: 600; margin-inline-start: var(--s-2); }
.apx-tabs a[aria-current="page"] { background: #fff; color: var(--primary-color); font-weight: 600; box-shadow: var(--sh-1); }
.apx-tabs a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.apx-split { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.apx-list { background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-5); padding: var(--s-3); display: grid; gap: var(--s-1); position: sticky; top: calc(var(--shell-top, 60px) + var(--s-6)); max-height: calc(100vh - 140px); overflow: auto; }
.apx-row { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-5); padding-inline: var(--s-3) var(--s-5); border-radius: var(--r-4); cursor: pointer; border: 1px solid transparent; background: transparent; text-align: start; width: 100%; font: inherit; color: inherit; }
.apx-row:hover { background: #F7FAFA; }
.apx-row[aria-selected="true"] { background: #EEF6F6; border-color: #CFE3E4; }
.apx-row:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.apx-row .bar { border-radius: var(--r-pill); background: #E6E9EC; }
.apx-row.is-late .bar { background: #DC2626; }
.apx-row .t { display: block; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: var(--black); line-height: 1.35; }
.apx-row .m { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; margin-top: var(--s-2); font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); }
.apx-row .m .ref { font-family: var(--font-b); font-variant-numeric: tabular-nums; font-size: var(--t-1); }   /* the app's type, not a code font (owner, 2026-09-28) */
.apx-row .late { color: #B42318; font-weight: 600; }
.apx-row .who { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink-2); }
/* Show more: rows the shape of an approval while the next ones load (approvals-inbox.js) */
.apx-row--sk { pointer-events: none; }
.apx-row--sk .bar { background: #F1F3F4; }
.apx-row--sk .t { display: block; height: 14px; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.apx-row--sk .x { display: inline-block; height: 10px; border-radius: var(--r-pill); }
.apx-av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: #E1EDEE; color: var(--primary-color); font-family: var(--font-h); font-size: var(--t-1); font-weight: 700; flex-shrink: 0; }
.apx-chip { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0 var(--s-4); border-radius: var(--r-pill); font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; }
.apx-chip.ok { background: #ECFDF3; color: #067647; }
.apx-chip.no { background: #FEF3F2; color: #B42318; }
.apx-chip.wait { background: #F2F4F7; color: var(--ink-2); }
.apx-pane { min-width: 0; }
.apx-open { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--primary-color); text-decoration: none; display: inline-flex; gap: var(--s-2); align-items: center; }
.apx-open:hover { text-decoration: underline; }
.apx-back { display: none; }
.apx-kb { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); }
.apx-kb kbd { font-family: var(--font-b); font-size: var(--t-1); padding: 0 5px; border: 1px solid #DDE2E4; border-bottom-width: 2px; border-radius: var(--r-1); background: #fff; color: var(--ink-2); }
.apx-panel textarea { width: 100%; min-height: 72px; box-sizing: border-box; padding: var(--s-4) var(--s-5); border: 1px solid #DFE2E5; border-radius: var(--r-3); font-family: var(--font-b); font-size: var(--t-3); resize: vertical; }
.apx-panel textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.apx-panel .row { display: flex; gap: var(--s-4); justify-content: flex-end; margin-top: var(--s-5); }
.apx-empty { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: var(--s-12) var(--s-8); background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-5); }
.apx-empty .ill { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #EEF6F6; color: var(--primary-color); }
.apx-empty .ill svg { width: 30px; height: 30px; }
.apx-empty b { font-family: var(--font-h); font-size: var(--t-5); color: var(--black); }
.apx-empty span { font-family: var(--font-b); font-size: var(--t-3); color: var(--gray); max-width: 46ch; }
.apx-row.is-leaving { opacity: 0; transform: translateX(12px); transition: opacity .2s ease, transform .2s ease; }
@media (max-width: 900px) {
  .apx-split { grid-template-columns: 1fr; }
  .apx-list { position: static; max-height: none; }
  .apx.is-reading .apx-list { display: none; }
  .apx:not(.is-reading) .apx-pane { display: none; }
  .apx-back { display: inline-flex; margin-bottom: var(--s-5); }
  .apx-kb { display: none; }
}
.apx-sbtn { display: inline-flex; }
.apx-sbtn .btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.apx-sbtn__c { border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; padding: 0 var(--s-4) !important; border-inline-start: 1px solid rgba(255,255,255,.35) !important; }

.apx-tabs a { text-decoration: none; display: inline-flex; align-items: center; }
.apx-row { text-decoration: none; }
.apx-row .apj-av, .apx-row .pp { width: 20px; height: 20px; }
.apx-pane[aria-busy="true"] { opacity: .6; transition: opacity var(--dur-state, .15s); }
.apx-lasts { display: grid; min-width: 220px; padding: var(--s-2); background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-4); box-shadow: var(--sh-2);
  /* floats over the page, anchored to the split button (house rule 4): it used to sit in the
     card's flow and push the Approve button down (owner, 2026-09-28) */
  position: fixed; z-index: 3000; }
.apx-lasts[hidden] { display: none; }
.apx-lasts button { border: 0; background: transparent; text-align: start; padding: var(--s-3) var(--s-5); border-radius: var(--r-3); font-family: var(--font-b); font-size: var(--t-3); cursor: pointer; }
.apx-lasts button:hover, .apx-lasts button:focus-visible { background: #EEF6F6; color: var(--primary-color); outline: none; }
.apx .apj { margin-bottom: 0; }
.apx-kb { margin-top: var(--s-5); }
/* The page frame is a flex row (see "Super-admin portal" notes): the inbox takes the whole
   width, or the right side collapses to a strip. */
.apx { width: 100%; min-width: 0; flex: 1 1 auto; align-self: stretch; }

/* a private request's subject (owner, 2026-09-27): a blurred shape where the words would be.
   The words never reach the page; the bar only shows that a request is there. */
.nd-row.is-redacted .nd-title { display: flex; align-items: center; gap: var(--s-2); }
.nd-blur { display: inline-block; width: 16ch; max-width: 60%; height: .8em; border-radius: var(--r-2);
  background: repeating-linear-gradient(90deg, #C9CED3 0 4ch, transparent 4ch 4.6ch); filter: blur(3px); opacity: .9; }
.nd-blur--s { width: 8ch; }
.nd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   ALL TEAMS — a request the viewer can't open, and REQUEST ACCESS
   (approved preview_request_access, owner 2026-09-28). The row keeps
   every cell (hide / move columns keep working): a greyed checkbox and
   the lock where a normal row has its checkbox and ›, the same ink and
   size as every row, blur shapes where status / assignee / SLA /
   requester would be, and the request's real privacy chip and times.
   ============================================================ */
.tickets-table tr.axl-row { background: #FAFBFB; }
.tickets-table tr.axl-row td { color: var(--black); }
.axl { display: flex; align-items: center; gap: var(--s-3); width: 100%; white-space: nowrap; font-family: var(--font-b); font-size: inherit; color: inherit; }
.axl-t b { font-family: var(--font-h); font-weight: 600; color: var(--black); }
.axl .axl-req, .axl .axl-wait { margin-inline-start: auto; }
.axl-wait { margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--s-3); padding-block: 0; padding-inline: 0 var(--s-7); border: 0; background: none; cursor: pointer;
  color: #A85400; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); }
.axl-wait .axl-view { color: var(--primary-color); margin-inline-start: var(--s-2); }
.axl-wait:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-2); }
.axl-sel input { opacity: .35; cursor: not-allowed; }
.axl-lock { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--r-1); color: var(--gray); }
.axl-lock:focus-visible, .axl-sel input:focus-visible { outline: none; box-shadow: var(--sh-focus); }
/* the floating tip (D43 light card), placed on the page so a scrolling table can't clip it. It wraps inside
   its width, never wider than the window: a locked control's reason is a sentence, and on one line it ran off
   the right edge (scenario test, 31 Oct 2026). max-content keeps a short tip on one line and its width the
   same wherever request-access.js places it. */
.ftip { position: fixed; z-index: 6000; background: #fff; color: #3F4A4C; border: 1px solid #E6E9EC; box-shadow: var(--sh-3); font-family: var(--font-b); font-size: var(--t-2);
  line-height: 1.35; padding: var(--s-3) var(--s-5); border-radius: var(--r-4); box-sizing: border-box; width: max-content; max-width: min(340px, calc(100vw - 16px));
  white-space: normal; overflow-wrap: break-word; text-wrap: pretty; pointer-events: none; opacity: 0; transition: opacity .15s; }
.ftip.on { opacity: 1; }
/* the Request access window (.popup.vt-modal-v2) */
.vt-modal-v2--ra .ra-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.vt-modal-v2--ra .ra-chip { font-family: var(--font-b); font-size: var(--t-1); color: #3f4650; background: var(--light-background); border: 1px solid var(--border); border-radius: var(--r-pill); padding: var(--s-2) var(--s-5); cursor: pointer; }
.vt-modal-v2--ra .ra-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.vt-modal-v2--ra .ra-chip:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.vt-modal-v2--ra .ra-who { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); border: 1px solid var(--border); border-radius: var(--r-4); background: #fff; }
.vt-modal-v2--ra .ra-who img { width: 28px; height: 28px; border-radius: 50%; }
.vt-modal-v2--ra .ra-who .t { font-family: var(--font-b); font-weight: 400; font-size: var(--t-2); color: #3f4650; line-height: 1.35; }
.vt-modal-v2--ra .ra-who .t b { font-family: var(--font-h); font-weight: 600; color: var(--black); }
.vt-modal-v2--ra .axr-note, .vt-modal-v2--redact .axr-note { display: flex; gap: var(--s-3); align-items: flex-start; font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); line-height: 1.45; }
.vt-modal-v2--ra .axr-note.is-denied { color: var(--red); }
.vt-modal-v2--ra .axr-note svg, .vt-modal-v2--ra .axr-ic svg, .vt-modal-v2--redact .axr-note svg { flex: 0 0 auto; stroke: currentColor; }
.vt-modal-v2--ra .axr-note svg, .vt-modal-v2--redact .axr-note svg { margin-top: var(--s-1); }
.vt-modal-v2--ra .ra-err { display: none; color: var(--red); font-family: var(--font-b); font-size: var(--t-1); }
.vt-modal-v2--ra.show-err .ra-err { display: block; }
.vt-modal-v2--ra.show-err .vm-area { border-color: var(--red); }
.vt-modal-v2--ra .axr-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-4) var(--s-6) var(--s-2);
  font-family: var(--font-b); font-size: var(--t-2); color: #3f4650; line-height: 1.45; }
.vt-modal-v2--ra .axr-state b { font-family: var(--font-h); color: var(--black); font-size: var(--t-3); }
.vt-modal-v2--ra .axr-state span { max-width: 36ch; }
.vt-modal-v2--ra .axr-ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s-2);
  background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); }
.vt-modal-v2--ra .axr-ic.is-wait { background: #FFF4E5; color: #A85400; }
.vt-modal-v2--ra .axr-ic svg { width: 22px; height: 22px; }
.vt-modal-v2--ra.is-state .vm-foot { justify-content: center; }

/* Who decides: a small person card per decider (owner, 2026-09-28) */
.vt-modal-v2--ra .ra-people { display: flex; flex-direction: column; gap: var(--s-3); }
.vt-modal-v2--ra .ra-card { align-items: flex-start; }
.vt-modal-v2--ra .ra-card img { width: 40px; height: 40px; flex: 0 0 auto; }
.vt-modal-v2--ra .ra-card .t { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.vt-modal-v2--ra .ra-card .ra-l1 { color: #3f4650; }
.vt-modal-v2--ra .ra-card .ra-name { font-family: var(--font-h); font-weight: 600; color: var(--black); text-decoration: none; }
.vt-modal-v2--ra .ra-card .ra-name:hover { color: var(--primary-color); text-decoration: underline; }
.vt-modal-v2--ra .ra-card .ra-name:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-1); }
.vt-modal-v2--ra .ra-card .ra-l2 { font-size: var(--t-1); color: var(--gray); }
.vt-modal-v2--ra .ra-card .ra-l3 .pc-st { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-1); font-weight: 500; color: #3f4650; }
.vt-modal-v2--ra .ra-card .ra-l3 .pc-st i { width: 8px; height: 8px; border-radius: 50%; background: #1A6A3B; display: inline-block; }
.vt-modal-v2--ra .ra-card .ra-l3 .pc-st.off i, .vt-modal-v2--ra .ra-card .ra-l3 .pc-st.seen i { background: #B1B6B8; }
.vt-modal-v2--ra .ra-card .ra-l3 .pc-st.inv i { background: #BE630D; }
.vt-modal-v2--ra .ra-sk { display: inline-block; height: .8em; border-radius: var(--r-1); background: linear-gradient(90deg, #EEF0F2, #F6F7F8, #EEF0F2); background-size: 200% 100%; animation: raSk 1.2s linear infinite; }
@keyframes raSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .vt-modal-v2--ra .ra-sk { animation: none; } }
.vt-modal-v2--ra .ra-more { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); padding-inline-start: var(--s-2); }

/* Deny an access request (approved preview_deny_reason, owner 2026-09-28): the house centred
   window, destructive — a red primary. */
.vt-modal-v2--deny { --vm-accent: #B42318; }
.vt-modal-v2--deny .dn-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.vt-modal-v2--deny .dn-chip { font-family: var(--font-b); font-size: var(--t-1); font-weight: 400; color: #3f4650; background: var(--light-background); border: 1px solid var(--border); border-radius: var(--r-pill); padding: var(--s-2) var(--s-5); cursor: pointer; }
.vt-modal-v2--deny .dn-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.vt-modal-v2--deny .dn-chip:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.vt-modal-v2--deny .dn-opt { font-weight: 400; color: var(--gray); }
.vt-modal-v2--deny .dn-note { display: flex; gap: var(--s-3); align-items: flex-start; font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); line-height: 1.45; }
.vt-modal-v2--deny .dn-note svg { flex: 0 0 auto; margin-top: var(--s-1); stroke: currentColor; }
.vt-modal-v2--deny .dn-their { background: var(--light-background); border-radius: var(--r-4); padding: var(--s-5) var(--s-6); font-family: var(--font-b); font-size: var(--t-2); color: #3f4650; line-height: 1.45; }
.vt-modal-v2--deny .dn-their b { display: block; font-family: var(--font-h); font-size: var(--t-1); color: var(--gray); font-weight: 600; margin-bottom: var(--s-1); }
.vt-modal-v2--deny .vm-foot .btn-danger { background: #B42318; border: 1px solid #B42318; color: #fff; border-radius: var(--r-4); padding: 0 18px; height: 36px; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); }
.vt-modal-v2--deny .vm-foot .btn-danger:hover { background: #912018; border-color: #912018; }
.vt-modal-v2--deny .vm-foot .btn-danger:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* a request changed after it was approved (owner, 2026-09-28, "flag and tell") */
.apj__changed { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin: 0 var(--s-8) var(--s-6); padding: var(--s-5) var(--s-6);
  background: #FFF8EB; border: 1px solid #F5D9A8; border-radius: var(--r-4); font-family: var(--font-b); font-size: var(--t-2); color: #7A4300; line-height: 1.45; }
.apj__changed svg { flex: 0 0 auto; width: 16px; height: 16px; stroke: currentColor; }
.apj__changed span { flex: 1 1 260px; }
.apj__changed b { font-family: var(--font-h); font-weight: 600; }

/* ==== Approvals history (approved preview_approvals_history, owner 2026-09-28) ====
   "You answered" and "Your requests": a search + filter bar at the top of the list, rows
   30 at a time, and a read-only record of your part for a request you can no longer open.
   Rules copied from the approved preview; the extras below it are what the preview had no
   case for (custom dates, the grey chip, the record's title and button row). */
.apx-rows{display:grid;gap:var(--s-1)}
.apx-tools{display:grid;gap:var(--s-4);padding:var(--s-3) var(--s-3) var(--s-4);border-bottom:1px solid #F1F2F4;margin-bottom:var(--s-2)}
.apx-q{display:flex;align-items:center;gap:var(--s-3);height:36px;padding:0 var(--s-5);border:1px solid #DFE2E5;border-radius:var(--r-pill);background:#fff;color:var(--gray)}
.apx-q:focus-within{border-color:var(--primary-color);box-shadow:var(--sh-focus)}
.apx-q svg{width:15px;height:15px;flex:0 0 auto}
.apx-q input{border:0;outline:none;flex:1;min-width:0;font-family:var(--font-b);font-size:var(--t-2);color:var(--black);background:transparent}
.apx-seg{display:grid;grid-template-columns:repeat(3,1fr);padding:var(--s-1);gap:var(--s-1);background:#F1F4F5;border-radius:var(--r-pill)}
.apx-seg button{border:0;background:transparent;border-radius:var(--r-pill);padding:var(--s-2) 0;font-family:var(--font-b);font-size:var(--t-2);color:var(--ink-2);cursor:pointer}
.apx-seg button[aria-checked="true"]{background:#fff;color:var(--primary-color);font-weight:600;box-shadow:var(--sh-1)}
.apx-seg button:focus-visible{outline:none;box-shadow:var(--sh-focus)}
.apx-fil{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-3)}
.apx-fil.apx-fil--kind{grid-template-columns:1fr}   /* D126: the kind dropdown takes the old switch's place, full width */
/* ---- the time-off card (D126, approved preview v2 §2): apj vocabulary, its own facts ---- */
.apj[data-apj-tof] .tof-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
.apj[data-apj-tof] .tof-meta .v { display: block; }
.apj[data-apj-tof] .tof-sub { display: block; font-weight: 400; color: #5f6b78; font-size: var(--t-1); margin-top: var(--s-1); }
.tof-ctx { border-top: 1px solid #EEF1F3; margin-top: var(--s-6); padding-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.tof-ctx__h { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5f6b78; }
.tof-also { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-b); font-size: var(--t-2); color: #3F4A4C; }
.tof-also b { font-family: var(--font-h); color: #1a2326; }
.tof-also small { display: block; color: #A85400; font-size: var(--t-1); }
.tof-also--none { color: #5f6b78; }
.tof-strip { margin-top: var(--s-5); border: 1px solid #EEF1F3; border-radius: var(--r-4); padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.tof-strip__r { display: grid; grid-template-columns: minmax(84px, 1.3fr) repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; }
.tof-strip__h span { text-align: center; font: 600 var(--t-1) var(--font-h); color: #5f6b78; line-height: 1.15; }
.tof-strip__h span small { display: block; font-weight: 500; color: #5f6b78; font-size: var(--t-1); }
.tof-strip__h span.off { color: #5f6b78; opacity: .7; }
.tof-strip .who { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-b); font-size: var(--t-1); color: #3F4A4C; min-width: 0; }
.tof-strip .who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tof-strip__r.me .who > span { font-family: var(--font-h); font-weight: 600; color: #1a2326; }
.tof-c { display: block; height: 18px; border-radius: var(--r-1); background: #F2F4F6; }
.tof-c.off { background: repeating-linear-gradient(135deg, #EEF0F2 0 4px, #F7F8F9 4px 8px); }
.tof-c.ask { background: repeating-linear-gradient(135deg, rgba(4, 105, 111, .32) 0 4px, rgba(4, 105, 111, .12) 4px 8px); box-shadow: inset 0 0 0 1px rgba(4, 105, 111, .45); }
.tof-c.ok { background: var(--primary-color); }
.tof-c.ask.half { background: linear-gradient(90deg, transparent 50%, #F2F4F6 50%), repeating-linear-gradient(135deg, rgba(4, 105, 111, .32) 0 4px, rgba(4, 105, 111, .12) 4px 8px); }
.tof-c.ok.half { background: linear-gradient(90deg, var(--primary-color) 50%, #F2F4F6 50%); }
.tof-strip__k { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-7); margin-top: var(--s-2); font-family: var(--font-b); font-size: var(--t-1); color: #5f6b78; }
.tof-strip__k span { display: inline-flex; align-items: center; gap: var(--s-3); }
.tof-strip__k .tof-c { width: 16px; height: 10px; display: inline-block; }
.apj[data-apj-tof] textarea.is-wrong { border-color: var(--red, #C0392B); box-shadow: 0 0 0 1px var(--red, #C0392B); }
.apj[data-apj-tof] .tof-err { display: block; color: var(--red, #B42323); font-size: var(--t-1); font-family: var(--font-b); margin-top: var(--s-2); }
.apj__bub b img { vertical-align: -6px; margin-inline-end: var(--s-2); }
.apx-sel{height:34px;border:1px solid #DFE2E5;border-radius:var(--r-pill);padding-block:0; padding-inline:var(--s-5) var(--s-8);font-family:var(--font-b);font-size:var(--t-2);color:var(--black);background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%236b7076' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 10px center/14px;appearance:none;-webkit-appearance:none;cursor:pointer}
.apx-sel:focus-visible{outline:none;border-color:var(--primary-color);box-shadow:var(--sh-focus)}
.apx-sel.is-set{border-color:#CFE3E4;background-color:#EEF6F6;color:var(--primary-color);font-weight:600}
.apx-count{display:flex;align-items:center;gap:var(--s-3);font-family:var(--font-b);font-size:var(--t-1);color:var(--gray)}
.apx-count .clear{margin-inline-start:auto;border:0;background:none;color:var(--primary-color);font-family:var(--font-h);font-weight:600;font-size:var(--t-1);cursor:pointer}
.apx-more{display:flex;justify-content:center;padding:var(--s-4) 0 var(--s-2)}
.apx-foot{border-top:1px solid #F1F2F4;margin-top:var(--s-2);padding:var(--s-5) var(--s-4) var(--s-3);font-family:var(--font-b);font-size:var(--t-1);color:var(--gray)}
.apx-foot a{color:var(--primary-color);font-family:var(--font-h);font-weight:600;text-decoration:none;white-space:nowrap}
.apx-chip.ask{background:#FFF4E5;color:#A85400}
.apx-chip.fwd{background:#EEF4FF;color:#3538CD}
.apx-none{padding:var(--s-10) var(--s-6);text-align:center;font-family:var(--font-b);font-size:var(--t-2);color:var(--gray)}
.apx-none b{display:block;font-family:var(--font-h);color:var(--black);margin-bottom:var(--s-2)}
/* the read-only record: a past decision on a request you can no longer open */
.apx-rec{background:#fff;border:1px solid #E6E9EC;border-radius:var(--r-5);overflow:hidden}
.apx-rec .hd{display:flex;align-items:center;gap:var(--s-4);padding:var(--s-6) var(--s-8);border-bottom:1px solid #F1F2F4}
.apx-rec .hd h3{margin:0;font-family:var(--font-h);font-size:var(--t-3);color:var(--black);display:flex;align-items:center;gap:var(--s-3)}
.apx-rec .hd .ref{font-family:ui-monospace,Menlo,monospace;font-size:var(--t-1);color:var(--gray)}
.apx-rec .bd{padding:var(--s-8);display:grid;gap:var(--s-6)}
.apx-rec .lock{display:flex;gap:var(--s-4);align-items:flex-start;background:#F7F8F9;border-radius:var(--r-4);padding:var(--s-5) var(--s-6);font-family:var(--font-b);font-size:var(--t-2);color:#3f4650;line-height:1.45}
.apx-rec .lock svg{flex:0 0 auto;margin-top:2px;color:var(--gray)}
.apx-rec dl{display:grid;grid-template-columns:140px 1fr;gap:var(--s-4) var(--s-6);margin:0;font-family:var(--font-b);font-size:var(--t-2)}
.apx-rec dt{color:var(--gray)}.apx-rec dd{margin:0;color:var(--black)}
.apx-rec q{quotes:"“" "”";color:#3f4650}
.apx-chip.off{background:#F2F4F7;color:var(--gray)}
.apx-dates{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-3)}
.apx-dates[hidden]{display:none}
.apx-dates label{display:grid;gap:var(--s-1);font-family:var(--font-b);font-size:var(--t-1);color:var(--gray)}
.apx-date{background-image:none;padding:0 var(--s-5);width:100%;min-width:0}
.apx-count .clear{text-decoration:none}
.apx-count .clear[hidden]{display:none}
.apx-none[hidden],.apx-more[hidden]{display:none}
.apx-rec .hd .sp{flex:1}
.apx-rec .bd p.apx-rec-t{margin:0;font-family:var(--font-h);font-weight:600;font-size:var(--t-4);color:var(--black);text-align:start}
.apx-rec-acts{display:flex;gap:var(--s-3);justify-content:flex-start}
.apx-rows[aria-busy="true"]{opacity:.55;transition:opacity .15s ease}
@media (max-width: 640px){.apx-rec dl{grid-template-columns:1fr;gap:var(--s-1) 0}.apx-rec dd{margin-bottom:var(--s-3)}}


/* ==== Answer with files (approved preview_approval_answer_files, owner 2026-09-28) ====
   The answer box takes files (drafts until Send) and a long conversation folds. Rules copied
   from the approved preview; the fold button and the sending state are what it had no case for. */
.apj__answer .apj__drop{position:relative;display:grid;gap:var(--s-4)}
.apj__answer .apj__drop.is-drag textarea{border-color:var(--primary-color);border-style:dashed;background:color-mix(in srgb,var(--primary-color) 4%,#fff)}
.apj__answer .apj__drop-hint{position:absolute;inset:0;display:none;place-items:center;border-radius:var(--r-3);font-family:var(--font-h);font-size:var(--t-2);font-weight:600;color:var(--primary-color);pointer-events:none}
.apj__answer .apj__drop.is-drag .apj__drop-hint{display:grid}
.apj__answer .apj__drop.is-drag textarea::placeholder{color:transparent}
.apj__answer .row{align-items:center;flex-wrap:wrap;row-gap:var(--s-3)}
.apj__attach{display:inline-flex;align-items:center;gap:var(--s-2);height:32px;white-space:nowrap;flex-shrink:0;padding:0 var(--s-5);border:1px solid #DFE2E5;border-radius:var(--r-pill);background:#fff;color:var(--ink-2);font-family:var(--font-h);font-size:var(--t-2);font-weight:600;cursor:pointer}
.apj__attach:hover{border-color:#CFE3E4;background:#F7FAFA;color:var(--primary-color)}
.apj__attach:focus-visible{outline:none;box-shadow:var(--sh-focus)}
.apj__attach svg{width:15px;height:15px}
.apj__answer .row .grow{flex:1}
.apj__answer .apj__files:empty{display:none}
.apj__file.is-up{position:relative;overflow:hidden}
.apj__file .bar{position:absolute;inset-inline-start:0;bottom:0;height:2px;background:var(--primary-color);transition:width .2s linear}
.apj__file.is-bad{border-color:#F2C9C6;background:#FFF7F6;color:#B42318}
.apj__file.is-bad svg{color:#B42318}
.apj__file .x{display:inline-grid;place-items:center;width:20px;height:20px;margin-inline-start:var(--s-1);border:0;border-radius:var(--r-2,4px);background:transparent;color:var(--gray);cursor:pointer}
.apj__file .x:hover{background:#F1F3F4;color:var(--black)}
.apj__file .x svg{width:12px;height:12px;color:currentColor}
.apj__bub .apj__files{margin-top:var(--s-3)}
.apj__bub .apj__file{background:#fff}
.apj__limit{color:var(--gray);font-size:var(--t-1)}
.apj__file .n{overflow-wrap:anywhere}
.apj__fold{justify-self:start;display:inline-flex;align-items:center;gap:var(--s-2);height:28px;padding:0 var(--s-5);border:1px solid #E6E9EC;border-radius:var(--r-pill);background:#fff;color:var(--ink-2);font-family:var(--font-h);font-size:var(--t-1);font-weight:600;cursor:pointer}
.apj__fold:hover{border-color:#CFE3E4;color:var(--primary-color)}
.apj__fold:focus-visible{outline:none;box-shadow:var(--sh-focus)}
.apj__fold svg{width:13px;height:13px}
.apj.is-locked .apj__answer .apj__drop,.apj.is-locked .apj__answer .apj__files,.apj.is-locked .apj__attach{opacity:.6;pointer-events:none;filter:blur(1px)}

/* Required fields carry no mark (owner, 2026-09-28: the red star "looks cheap"); the word
   "required" stays for screen readers. The few fields that may be skipped say "Optional". */
.vt-modal-v2 .vm-req, .modal__field .required, .ax-fld label .req {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vm-opt { margin-inline-start: var(--s-2); color: var(--gray); font-weight: 400; font-family: var(--font-b); font-size: var(--t-1); }

/* Approvals header = the Requests page's (owner, 2026-09-28): big title + count, sentence, underline tabs */
.apx-head { display: grid; gap: var(--s-4); align-items: start; }
.apx-head h1 { margin: 0; font-family: var(--font-h); font-size: var(--t-8); line-height: 1.15; color: var(--black); display: flex; align-items: center; gap: var(--s-5); }
.apx-total { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 var(--s-5); border-radius: var(--r-pill); background: #EEF6F6; color: var(--primary-color); font-size: var(--t-6); font-weight: 700; font-variant-numeric: tabular-nums; }
.apx-head p { margin: 0; font-family: var(--font-b); font-size: var(--t-3); color: var(--gray); line-height: 1.5; }
/* the global `nav` rule (grey pill, 64px, spread out) is what made these tabs a pill; undone here */
.apx-head .apx-tabs { display: flex; height: auto; padding: 0; gap: var(--s-1); justify-content: flex-start; background: none; border-radius: 0; border-bottom: 1px solid #E6E9EC; margin: var(--s-3) 0 0; overflow-x: auto; scrollbar-width: none; }
.apx-tabs a { position: relative; display: inline-flex; align-items: center; gap: var(--s-3); white-space: nowrap; padding: var(--s-5) var(--s-6); border-radius: var(--r-3) var(--r-3) 0 0; background: none; box-shadow: none; font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: var(--gray); text-decoration: none; }
.apx-tabs a b { margin: 0; font-weight: 600; font-size: var(--t-1); min-width: 20px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: #F1F4F5; color: var(--ink-2); text-align: center; }
.apx-tabs a:hover { color: var(--black); background: #F7FAFA; }
.apx-tabs a[aria-current="page"] { color: var(--primary-color); background: none; box-shadow: none; }
.apx-tabs a[aria-current="page"]::after { content: ""; position: absolute; inset-inline-start: var(--s-6); inset-inline-end: var(--s-6); bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary-color); }
.apx-tabs a[aria-current="page"] b { background: #EEF6F6; color: var(--primary-color); }
.apx-tabs a:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* ======================================================================
   Privacy & access — redesigned onto the app's approved dialog (.vt-modal-v2,
   the Request access / CTI / Pending window): icon + title + lead, one scrolling
   body, a footer. One selector for the level (owner rule 2026-09-25: four options
   are a selector, not a row of buttons), faces for people, plain words for roles.
   Every paragraph class is two-deep (.vt-modal-v2 p.x) so `.popup-content p`
   (16px, centred) cannot win — the trap tools/render_modal.py exists for.
   ====================================================================== */
.popup.vt-modal-v2.vt-modal-v2--privacy { max-width: 560px; }
.vt-modal-v2--privacy .vm-body { gap: var(--s-8); padding-bottom: var(--s-8); }
.vt-modal-v2 .px-sec { display: flex; flex-direction: column; gap: var(--s-4); }
.vt-modal-v2 .px-lab { display: flex; align-items: center; gap: var(--s-3); font: 600 var(--t-3)/1.3 var(--font-h); color: var(--black); margin: 0; }
.vt-modal-v2 .px-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: #EEF1F2; color: var(--ink-2); font: 600 var(--t-1)/1 var(--font-h); }
.vt-modal-v2 .px-n.is-warn { background: #FBEFD2; color: #7A4E00; }

/* the level — the dialog's own field (.vm-picker-trigger) with the level's icon and its reach */
.vt-modal-v2 .vm-picker-trigger.px-dd { min-height: 52px; padding-block: var(--s-4); padding-inline: var(--s-4) var(--s-6); gap: var(--s-5); }
.vt-modal-v2 .px-ic { width: 32px; height: 32px; border-radius: var(--r-3); background: #EEF6F6; color: var(--primary-color); display: grid; place-items: center; flex: 0 0 auto; }
.vt-modal-v2 .px-ic svg { width: 16px; height: 16px; }
.vt-modal-v2 .px-dd .vm-picker-val b { display: block; font: 600 var(--t-3)/1.3 var(--font-h); color: var(--black); overflow: hidden; text-overflow: ellipsis; }
.vt-modal-v2 .px-dd .vm-picker-val small { display: block; font: 400 var(--t-1)/1.3 var(--font-b); color: var(--gray); margin-top: 1px; }
.vt-modal-v2 .px-dd[aria-expanded="true"] { border-color: var(--primary-color); box-shadow: var(--sh-focus); }
/* locked for this person: still readable, still hoverable (the reason is on it), never clickable */
.vt-modal-v2 .vm-picker-trigger.px-dd[aria-disabled="true"] { background: #F7F8F8; cursor: not-allowed; }
.vt-modal-v2 .vm-picker-trigger.px-dd[aria-disabled="true"]:hover { border-color: var(--gray-light2); }
.vt-modal-v2 .px-dd .px-lock { width: 15px; height: 15px; color: var(--gray); flex: 0 0 auto; }
.vt-modal-v2 p.px-say { margin: 0; text-align: start; font: 400 var(--t-2)/1.5 var(--font-b); color: var(--ink-2); }
.vt-modal-v2 p.px-say b { color: var(--black); font-weight: 600; }
.vt-modal-v2 p.px-src { margin: 0; text-align: start; display: flex; gap: var(--s-3); align-items: flex-start; font: 400 var(--t-1)/1.45 var(--font-b); color: var(--gray); }
.vt-modal-v2 p.px-src svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; }
.vt-modal-v2 p.px-src b { color: var(--ink-2); font-weight: 600; }

/* a wider level asks why first — inline, under the field, never a second window */
.vt-modal-v2 .px-why { border: 1px solid #F3E3BF; background: #FFFBF2; border-radius: var(--r-4); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.vt-modal-v2 .px-why[hidden] { display: none; }
.vt-modal-v2 .px-wt { display: flex; align-items: center; gap: var(--s-3); font: 600 var(--t-2)/1.3 var(--font-h); color: var(--black); }
.vt-modal-v2 .px-wt svg { width: 15px; height: 15px; color: #B45309; flex: 0 0 auto; }
.vt-modal-v2 .px-wt > span { display: inline-flex; align-items: center; gap: var(--s-3); }
.vt-modal-v2 p.px-wd { margin: 0; text-align: start; font: 400 var(--t-1)/1.45 var(--font-b); color: var(--ink-2); }
.vt-modal-v2 .px-why .vm-area { min-height: 72px; }
.vt-modal-v2 .px-wf { display: flex; align-items: center; gap: var(--s-4); }
.vt-modal-v2 .px-wc { margin-inline-end: auto; font: 400 var(--t-1) var(--font-b); color: var(--gray); }
.vt-modal-v2 .px-wc.ok { color: #0E7C5A; }

/* someone asked to see it — at the top, amber like every "waiting on you" */
.vt-modal-v2 .px-ask { border: 1px solid #F3E3BF; background: #FFFBF2; border-radius: var(--r-4); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); }
.vt-modal-v2 .px-askc { display: flex; gap: var(--s-5); align-items: flex-start; }
.vt-modal-v2 .px-askc + .px-askc { border-top: 1px solid #F3E3BF; padding-top: var(--s-5); }
.vt-modal-v2 .px-askt { flex: 1; min-width: 0; }
.vt-modal-v2 .px-askt b { font: 600 var(--t-3)/1.3 var(--font-h); color: var(--black); }
.vt-modal-v2 p.px-q { margin: var(--s-2) 0 0; text-align: start; font: 400 var(--t-2)/1.45 var(--font-b); color: var(--ink-2); }
.vt-modal-v2 .px-askb { display: flex; gap: var(--s-4); justify-content: flex-end; margin-top: var(--s-4); }
.vt-modal-v2 .px-done { display: flex; align-items: center; gap: var(--s-4); font: 400 var(--t-2)/1.4 var(--font-b); color: var(--ink-2); }
.vt-modal-v2 .px-done svg { width: 18px; height: 18px; color: #1F7A45; flex: 0 0 auto; }

/* people with access */
.vt-modal-v2 .px-add { position: relative; }
.vt-modal-v2 .px-add input { width: 100%; box-sizing: border-box; height: 40px; border: 1px solid var(--gray-light2); border-radius: var(--r-4); padding-block: 0; padding-inline: 36px var(--s-6); font: 400 var(--t-3) var(--font-b); color: var(--black); background: #fff; transition: border-color .12s, box-shadow .12s; }
.vt-modal-v2 .px-add input::placeholder { color: var(--gray); }
.vt-modal-v2 .px-add input:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.vt-modal-v2 .px-add > svg { position: absolute; inset-inline-start: 12px; top: 12px; width: 16px; height: 16px; color: var(--gray); pointer-events: none; }
.vt-modal-v2 .px-list { list-style: none; margin: 0; padding: 0; border: 1px solid #E6E9EC; border-radius: var(--r-4); overflow: hidden; }
.vt-modal-v2 .px-row { display: flex; align-items: center; gap: var(--s-5); padding-block: var(--s-4); padding-inline: var(--s-6) var(--s-4); border-top: 1px solid #F1F2F4; min-height: 56px; box-sizing: border-box; }
.vt-modal-v2 .px-row:first-child { border-top: 0; }
.vt-modal-v2 .px-av { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.vt-modal-v2 .px-av.px-grp { border-radius: var(--r-3); background: #EEF1F2; color: var(--ink-2); display: grid; place-items: center; }
.vt-modal-v2 .px-av.px-grp svg { width: 16px; height: 16px; }
.vt-modal-v2 .px-main { flex: 1; min-width: 0; }
.vt-modal-v2 .px-main b { font: 600 var(--t-3)/1.3 var(--font-h); color: var(--black); }
.vt-modal-v2 .px-dim { font: 400 var(--t-2) var(--font-b); color: var(--gray); }
.vt-modal-v2 .px-main small { display: block; font: 400 var(--t-1)/1.4 var(--font-b); color: var(--gray); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-modal-v2 .px-until { display: inline-flex; align-items: center; gap: 3px; color: #7A4E00; }
.vt-modal-v2 .px-until svg { width: 11px; height: 11px; }
.vt-modal-v2 .px-role { font: 500 var(--t-1)/1 var(--font-h); color: var(--ink-2); white-space: nowrap; }
.vt-modal-v2 .px-row.is-noread .px-role { color: #7A4E00; }
.vt-modal-v2 .px-lk { width: 28px; height: 28px; display: grid; place-items: center; color: var(--gray); flex: 0 0 auto; }
.vt-modal-v2 .px-lk svg { width: 14px; height: 14px; }
.vt-modal-v2 .px-row .btn-icon { flex: 0 0 auto; }
.vt-modal-v2 .px-row.is-new { animation: px-new 1.6s ease; }
@keyframes px-new { 0% { background: #EEF6F6; } 100% { background: transparent; } }
.vt-modal-v2 p.px-foot { margin: 0; text-align: start; display: flex; gap: var(--s-3); align-items: flex-start; font: 400 var(--t-1)/1.45 var(--font-b); color: var(--gray); }
.vt-modal-v2 p.px-foot svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; }
.vt-modal-v2 .vm-foot .px-saved { margin-inline-end: auto; display: flex; align-items: center; gap: var(--s-3); font: 400 var(--t-1) var(--font-b); color: var(--gray); }
.vt-modal-v2 .vm-foot .px-saved svg { width: 14px; height: 14px; }

/* the level menu — the approved selector list (radio + a help line per option, mock v3.4 .ddm) */
.px-menu { position: fixed; z-index: 6000; background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-4); box-shadow: var(--sh-3); padding: var(--s-3); box-sizing: border-box; max-height: 70vh; overflow: auto; overscroll-behavior: contain; }
.px-menu button { display: flex; gap: var(--s-5); align-items: flex-start; width: 100%; text-align: start; background: none; border: 0; padding: var(--s-5); border-radius: var(--r-3); cursor: pointer; font: inherit; color: var(--black); }
.px-menu button:hover, .px-menu button:focus-visible { background: #F1F5F5; outline: 0; }
.px-menu button[aria-disabled="true"] { cursor: not-allowed; }
.px-menu button[aria-disabled="true"]:hover { background: #F7F8F8; }
.px-menu .px-rd { padding: 0;  width: 16px; height: 16px; border: 1.5px solid #B9C2C9; background: #fff; flex: 0 0 auto; margin-top: 6px; display: block; border-radius: 50%; box-sizing: border-box; }
.px-menu .px-rd.on { border-color: var(--primary-color); box-shadow: inset 0 0 0 3px #fff; background: var(--primary-color); }
.px-menu button[aria-disabled="true"] .px-rd { background: #F2F4F5; border-color: #D5DADD; }
.px-menu .px-mi { width: 28px; height: 28px; border-radius: var(--r-3); background: #EEF6F6; color: var(--primary-color); display: grid; place-items: center; flex: 0 0 auto; }
.px-menu .px-mi svg { width: 15px; height: 15px; }
.px-menu button[aria-disabled="true"] .px-mi { background: #F2F4F5; color: var(--gray); }
.px-menu .t { flex: 1; min-width: 0; }
.px-menu .t b { display: block; font: 600 var(--t-2)/1.35 var(--font-h); color: var(--black); }
.px-menu button[aria-disabled="true"] .t b { color: var(--gray); }
.px-menu .t small { display: block; font: 400 var(--t-1)/1.4 var(--font-b); color: var(--gray); margin-top: 2px; }
.px-menu .t .px-no { display: flex; gap: var(--s-2); align-items: flex-start; color: #7A4E00; margin-top: 4px; font: 400 var(--t-1)/1.4 var(--font-b); }
.px-menu .t .px-no svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px; }
.px-menu .px-cnt { font: 500 var(--t-1)/1.35 var(--font-h); color: var(--gray); white-space: nowrap; margin-top: 1px; }

/* add a person or a team — suggestions with faces */
.px-sug { display: none; position: fixed; z-index: 6000; background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-4); box-shadow: var(--sh-3); padding: var(--s-3); box-sizing: border-box; max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.px-sug.is-open { display: block; }
.px-sug .cat { padding: var(--s-3) var(--s-5) var(--s-2); font: 600 var(--t-1) var(--font-h); color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.px-sug button { display: flex; align-items: center; gap: var(--s-5); width: 100%; text-align: start; background: none; border: 0; padding: 7px var(--s-5); border-radius: var(--r-3); cursor: pointer; font: inherit; }
.px-sug button:hover, .px-sug button.is-active { background: #F1F5F5; }
.px-sug button[aria-disabled="true"] { cursor: default; opacity: .6; }
.px-sug .px-av { width: 28px; height: 28px; border-radius: 50%; }
.px-sug .px-av.px-grp { border-radius: var(--r-3); background: #EEF1F2; color: var(--ink-2); display: grid; place-items: center; }
.px-sug .px-av.px-grp svg { width: 15px; height: 15px; }
.px-sug .t { flex: 1; min-width: 0; } .px-sug .t b { display: block; font: 600 var(--t-2)/1.3 var(--font-h); color: var(--black); }
.px-sug .t small { display: block; font: 400 var(--t-1)/1.3 var(--font-b); color: var(--gray); }
.px-sug mark { background: #DCEFEF; color: inherit; border-radius: 2px; }
.px-sug .px-added { font: 500 var(--t-1) var(--font-h); color: var(--gray); }
.px-sug .none { padding: var(--s-5); font: 400 var(--t-2) var(--font-b); color: var(--gray); }
/* OF-100 (owner 2026-10-22, approved preview Qq3epQqCrXNic9sU1sruV3): the search says where each
   person works, "N more" says when to keep typing, and the keys are taught where they are used. */
.px-sug .px-hint { padding: var(--s-3) var(--s-5); font: 400 var(--t-1)/1.4 var(--font-b); color: var(--gray); }
.px-sug kbd { font: 500 11px/1.4 var(--font-b); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-1); padding: 0 var(--s-2); color: var(--ink-2); background: #fff; }
.px-sug .px-added { white-space: nowrap; }
/* Who can add people by name, said honestly, and Suggest someone: a person, a reason, and the
   people who decide "Request access" say yes or no. */
.vt-modal-v2 .pxw { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-4); background: #FAFBFB; }
.vt-modal-v2 .pxw .px-faces img { width: 28px; height: 28px; }
.vt-modal-v2 .pxw-ic { width: 28px; height: 28px; border-radius: 50%; background: #EEF1F2; color: var(--ink-2); display: grid; place-items: center; flex: 0 0 auto; }
.vt-modal-v2 .pxw-ic svg { width: 15px; height: 15px; }
.vt-modal-v2 .pxw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.vt-modal-v2 .pxw-t p.pxw-lead { margin: 0; text-align: start; font: 400 var(--t-2)/1.45 var(--font-b); color: var(--ink); }
.vt-modal-v2 .pxw-t p.pxw-sub { margin: 0; text-align: start; font: 400 var(--t-1)/1.45 var(--font-b); color: var(--gray); }
.vt-modal-v2 .pxw-t p.pxw-fix { margin: var(--s-3) 0 0; text-align: start; display: flex; gap: var(--s-3); font: 400 var(--t-1)/1.45 var(--font-b); color: var(--gray); }
.vt-modal-v2 .pxw-t p.pxw-fix svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; }
.vt-modal-v2 .pxw-t a { color: var(--primary-color); font-weight: 500; }
.vt-modal-v2 .pxw-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--s-3); white-space: nowrap; }
.vt-modal-v2 .pxw-btn svg { width: 15px; height: 15px; }
.vt-modal-v2 .pxs { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-4); background: #fff; }
.vt-modal-v2 .pxs[hidden] { display: none; }
.vt-modal-v2 .pxs-fld { display: flex; flex-direction: column; gap: var(--s-3); }
.vt-modal-v2 .pxs-l { font: 500 var(--t-2) var(--font-h); color: var(--ink); }
.vt-modal-v2 .pxs-f { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.vt-modal-v2 .pxs-f .px-wc { flex: 1; }
.vt-modal-v2 .pxs-b { display: flex; gap: var(--s-4); }
.vt-modal-v2 p.pxs-note { margin: 0; text-align: start; font: 400 var(--t-1)/1.45 var(--font-b); color: var(--gray); }
.vt-modal-v2 .pxs-pick { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-4); background: #F1F5F5; }
.vt-modal-v2 .pxs-pick[hidden], .vt-modal-v2 .px-add[hidden] { display: none; }
.vt-modal-v2 .pxs-pick img { width: 28px; height: 28px; border-radius: 50%; }
.vt-modal-v2 .pxs-pick .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vt-modal-v2 .pxs-pick b { font: 600 var(--t-2)/1.3 var(--font-h); color: var(--black); }
.vt-modal-v2 .pxs-pick small { font: 400 var(--t-1)/1.3 var(--font-b); color: var(--gray); }
.vt-modal-v2 .pxa-by { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); font: 400 var(--t-1)/1.4 var(--font-b); color: var(--gray); }
.vt-modal-v2 .pxa-by img { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }
.vt-modal-v2 .px-role.is-wait { color: #7A4E00; }
.vt-modal-v2 .px-askb { flex-wrap: wrap; }
@media (max-width: 520px) { .vt-modal-v2 .pxw { flex-wrap: wrap; } .vt-modal-v2 .pxw-btn { width: 100%; justify-content: center; } }

@media (max-width: 520px) {
  .vt-modal-v2 .px-askb .btn, .vt-modal-v2 .px-wf .btn { flex: 1; }
  .vt-modal-v2 .px-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .vt-modal-v2 .px-row.is-new { animation: none; } }

/* a level change waits for Save (owner, 2026-09-29: "when I click any from the list it immediately affects...").
   The field says "Not saved", a box says who gains or loses access (with faces), the list shows the result,
   and the footer turns into Cancel / Save. */
.vt-modal-v2 .px-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s-4); border-radius: var(--r-pill); background: #FBEFD2; color: #7A4E00; font: 600 11px/1 var(--font-h); white-space: nowrap; flex: 0 0 auto; }
.vt-modal-v2 .px-tag.is-gain { background: #DCF2E3; color: #1A6A3B; }
.vt-modal-v2 .px-tag.is-lose { background: #FADFDD; color: #A0281E; }
.vt-modal-v2 .px-row .px-tag { margin-inline-end: var(--s-2); }
.vt-modal-v2 .px-row.is-changing { background: #FCFCFD; }
.vt-modal-v2 .px-imp { border: 1px solid #E6E9EC; border-radius: var(--r-4); padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); background: #FAFBFB; }
.vt-modal-v2 .px-ih { font: 600 var(--t-1)/1 var(--font-h); color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.vt-modal-v2 .px-il { display: flex; align-items: center; gap: var(--s-4); font: 400 var(--t-2)/1.45 var(--font-b); color: var(--ink-2); }
.vt-modal-v2 .px-il > svg { width: 16px; height: 16px; color: #1F7A45; flex: 0 0 auto; }
.vt-modal-v2 .px-il b { color: var(--black); font-weight: 600; }
.vt-modal-v2 .px-il.is-lose b { color: #A0281E; }
.vt-modal-v2 .px-faces { display: inline-flex; flex: 0 0 auto; }
.vt-modal-v2 .px-faces img { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #FAFBFB; box-sizing: border-box; }
.vt-modal-v2 .px-faces img + img { margin-inline-start: -6px; }
.vt-modal-v2 .px-dd .px-tag { margin-inline-start: auto; }
.vt-modal-v2 .vm-foot .px-saved.is-pending { color: #7A4E00; }
.vt-modal-v2 .vm-foot .px-saved.is-pending b { color: #7A4E00; }
.vt-modal-v2 .vm-foot .px-saved > span { display: inline; }

/* the draft footer's Cancel: the dialog's Cancel look, without the .cancel class (that one closes the window) */
.vt-modal-v2 .vm-foot [data-pa-cancel] { border-radius: var(--r-4); padding: 0 18px; height: 36px; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); background: #fff; border: 1px solid var(--gray-light2); color: #3f4650; }
.vt-modal-v2 .vm-foot [data-pa-cancel]:hover { background: var(--light-background); }
.vt-modal-v2 .vm-foot[hidden] { display: none; }
.vt-modal-v2 .px-imp[hidden] { display: none; }
/* the pending card keeps its .pa-req-card hook for the script; the old card box is not this window's */
.vt-modal-v2 .px-askc.pa-req-card { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }

/* ================================================================
   The request page's top row — one quiet property bar (D85, owner 2026-09-29;
   previews/preview_header_row.html, look A). Every item is the same white field
   as the D83 status: one height, a thin border, an icon in its colour, words in
   normal text. Status leads; "Severity 2" with signal bars (more bars, more
   severe; critical is a red "!"); privacy with its level's icon and a caret (it
   opens Privacy & access); a target's icon says its state and only a MISSED
   target turns red (words, icon, a faint border — no fill); "Time" in words.
   No pulsing here. Scoped to .vt-pills-row: the list's target cells and SLA
   breaches keep their own look. The doubled class outranks the older
   (0,3,0) rules for .privacy / .sla-chip in this row.
   ================================================================ */
.view-ticket-v3 .vt-pills-row { gap: var(--s-3); --row-globe: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.2%27/%3E%3Cpath%20d%3D%27M1.8%208h12.4M8%201.8c2%202%202%2010.4%200%2012.4M8%201.8c-2%202-2%2010.4%200%2012.4%27/%3E%3C/g%3E%3C/svg%3E"); --row-building: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2013.5V4a.8.8%200%200%201%20.8-.8h4.4a.8.8%200%200%201%20.8.8v9.5%27/%3E%3Cpath%20d%3D%27M9.5%207.5h2.2a.8.8%200%200%201%20.8.8v5.2%27/%3E%3Cpath%20d%3D%27M2%2013.5h12%27/%3E%3Cpath%20d%3D%27M5.3%205.8h2M5.3%208h2M5.3%2010.2h2%27/%3E%3C/g%3E%3C/svg%3E"); --row-lock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%2710%27%20height%3D%277%27%20rx%3D%271.5%27/%3E%3Cpath%20d%3D%27M5%207V5a3%203%200%200%201%206%200v2%27/%3E%3C/g%3E%3C/svg%3E"); --row-lock2: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%2710%27%20height%3D%277%27%20rx%3D%271.5%27/%3E%3Cpath%20d%3D%27M5%207V5a3%203%200%200%201%206%200v2%27/%3E%3Cpath%20d%3D%27M8%209.6v2%27%20stroke-linecap%3D%27round%27/%3E%3C/g%3E%3C/svg%3E"); --row-clock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.9%27/%3E%3Cpath%20d%3D%27M8%204.9V8l2%201.3%27/%3E%3C/g%3E%3C/svg%3E"); --row-missed: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M8%204.7v3.9%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27/%3E%3Ccircle%20cx%3D%278%27%20cy%3D%2711.1%27%20r%3D%271.05%27%20fill%3D%27black%27/%3E%3C/mask%3E%3C/defs%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.6%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E"); --row-met: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M5.2%208.2l1.9%201.9%203.7-3.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/mask%3E%3C/defs%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.6%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E"); --row-cancel: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.7%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27/%3E%3Cpath%20d%3D%27M6.1%206.1l3.8%203.8M9.9%206.1l-3.8%203.8%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27/%3E%3C/svg%3E"); --row-paused: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%275.9%27/%3E%3Cpath%20d%3D%27M6.6%205.9v4.2M9.4%205.9v4.2%27/%3E%3C/g%3E%3C/svg%3E"); --row-watch: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%279.2%27%20r%3D%275%27/%3E%3Cpath%20d%3D%27M8%206.7v2.6l1.6%201M6.3%201.9h3.4M12.2%204.4l.9-.9%27/%3E%3C/g%3E%3C/svg%3E"); --row-chev: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20d%3D%27M4.5%206.5L8%2010l3.5-3.5%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E"); }
.view-ticket-v3.view-ticket-v3 .vt-pills-row :where(#vt-severity-pill, .privacy, .lock-pill, .sla-chip, #vt-time-pill) {
  display: inline-flex; align-items: center; gap: var(--s-3); height: 26px; padding-block: 0; padding-inline: 7px 9px; box-sizing: border-box;
  border: 1px solid #DCE1E4; border-radius: var(--r-3); background: #fff; color: var(--black); box-shadow: none; filter: none;
  font: 500 var(--t-2)/1 var(--font-h); letter-spacing: 0; text-transform: none; width: auto; white-space: nowrap; animation: none;
}
.view-ticket-v3.view-ticket-v3 .vt-pills-row :where(#vt-severity-pill, .privacy, .sla-chip, #vt-time-pill)::before {
  content: ""; display: block; width: 14px; height: 14px; flex: 0 0 auto; border-radius: 0; box-shadow: none; animation: none;
  background: var(--row-i, var(--gray)); -webkit-mask: var(--row-m) center / 14px 14px no-repeat; mask: var(--row-m) center / 14px 14px no-repeat;
}
.view-ticket-v3.view-ticket-v3 .vt-pills-row :where(.privacy, .sla-chip, #vt-time-pill):hover { border-color: var(--primary-color); background: #fff; filter: none; }
.view-ticket-v3 .vt-pills-row .vt-status-pill[class*="status-family-"] { height: 26px; line-height: 24px; }
.view-ticket-v3 .vt-pills-row #vt-severity-pill { --row-i: var(--sev-color); cursor: default; }
.view-ticket-v3 .vt-pills-row #vt-severity-pill[data-level="1"] { --row-m: var(--row-sev1); }
.view-ticket-v3 .vt-pills-row #vt-severity-pill[data-level="2"] { --row-m: var(--row-sev2); }
.view-ticket-v3 .vt-pills-row #vt-severity-pill[data-level="3"] { --row-m: var(--row-sev3); }
.view-ticket-v3 .vt-pills-row #vt-severity-pill[data-level="4"] { --row-m: var(--row-sev4); }
.view-ticket-v3 .vt-pills-row #vt-severity-pill[data-level="5"] { --row-m: var(--row-sev5); }
/* A priority anywhere else, drawn as this row draws it (D85): its signal bars in its colour, then
   "Priority N" in normal text (Manage › Service levels uses it). The five bar images live on :root so
   both read the same ones. A level outside 1-5 (a workspace's own name) shows a plain dot. */
:root { --row-sev1: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M8%204.6v4.2%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27/%3E%3Ccircle%20cx%3D%278%27%20cy%3D%2711.3%27%20r%3D%271.05%27%20fill%3D%27black%27/%3E%3C/mask%3E%3C/defs%3E%3Crect%20x%3D%271.8%27%20y%3D%271.8%27%20width%3D%2712.4%27%20height%3D%2712.4%27%20rx%3D%273%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E"); --row-sev2: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Crect%20x%3D%272%27%20y%3D%279%27%20width%3D%273%27%20height%3D%275%27%20rx%3D%271%27%20fill%3D%27black%27/%3E%3Crect%20x%3D%276.5%27%20y%3D%276%27%20width%3D%273%27%20height%3D%278%27%20rx%3D%271%27%20fill%3D%27black%27/%3E%3Crect%20x%3D%2711%27%20y%3D%273%27%20width%3D%273%27%20height%3D%2711%27%20rx%3D%271%27%20fill%3D%27black%27/%3E%3C/svg%3E"); --row-sev3: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Crect%20x%3D%272%27%20y%3D%279%27%20width%3D%273%27%20height%3D%275%27%20rx%3D%271%27%20fill%3D%27black%27/%3E%3Crect%20x%3D%276.5%27%20y%3D%276%27%20width%3D%273%27%20height%3D%278%27%20rx%3D%271%27%20fill%3D%27black%27/%3E%3Crect%20x%3D%2711.6%27%20y%3D%273.6%27%20width%3D%271.8%27%20height%3D%279.8%27%20rx%3D%27.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.2%27/%3E%3C/svg%3E"); --row-sev4: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Crect%20x%3D%272%27%20y%3D%279%27%20width%3D%273%27%20height%3D%275%27%20rx%3D%271%27%20fill%3D%27black%27/%3E%3Crect%20x%3D%277.1%27%20y%3D%276.6%27%20width%3D%271.8%27%20height%3D%276.8%27%20rx%3D%27.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.2%27/%3E%3Crect%20x%3D%2711.6%27%20y%3D%273.6%27%20width%3D%271.8%27%20height%3D%279.8%27%20rx%3D%27.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.2%27/%3E%3C/svg%3E"); --row-sev5: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Crect%20x%3D%272.6%27%20y%3D%279.6%27%20width%3D%271.8%27%20height%3D%273.8%27%20rx%3D%27.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.2%27/%3E%3Crect%20x%3D%277.1%27%20y%3D%276.6%27%20width%3D%271.8%27%20height%3D%276.8%27%20rx%3D%27.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.2%27/%3E%3Crect%20x%3D%2711.6%27%20y%3D%273.6%27%20width%3D%271.8%27%20height%3D%279.8%27%20rx%3D%27.9%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.2%27/%3E%3C/svg%3E"); --row-sevdot: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%274%27%20fill%3D%27black%27/%3E%3C/svg%3E"); }
.pri-mark { --pri-m: var(--row-sevdot); display: inline-flex; align-items: center; gap: var(--s-3); white-space: nowrap;
  font: 500 var(--t-2)/1.2 var(--font-h); color: var(--black); }
.pri-mark::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; background: var(--sev-color, var(--gray));
  -webkit-mask: var(--pri-m) center / 14px 14px no-repeat; mask: var(--pri-m) center / 14px 14px no-repeat; }
.pri-mark[data-level="1"] { --pri-m: var(--row-sev1); }
.pri-mark[data-level="2"] { --pri-m: var(--row-sev2); }
.pri-mark[data-level="3"] { --pri-m: var(--row-sev3); }
.pri-mark[data-level="4"] { --pri-m: var(--row-sev4); }
.pri-mark[data-level="5"] { --pri-m: var(--row-sev5); }
/* D123: the look a workspace picks for each priority (priority_looks.py) -- data-icon wins over
   data-level everywhere a priority is drawn: .pri-mark, the 16px .pri-ic of the pickers, and the request
   page's own chip (its design unchanged; it only reads the icon). */
:root { --pri-up2: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M4%208.2l4-4%204%204M4%2012.2l4-4%204%204%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); --pri-up: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M4%2010.2l4-4%204%204%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); --pri-equal: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M3.8%206.4h8.4M3.8%209.6h8.4%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); --pri-down: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M4%205.8l4%204%204-4%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); --pri-down2: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M4%203.8l4%204%204-4M4%207.8l4%204%204-4%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); --pri-flame: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M8%201.6c.5%202.3%204%203.6%204%207.6a4%204%200%200%201-8%200c0-1.9%201-3.1%201.8-3.8.1%201.4.8%202.3%201.6%202.6C7.2%206.1%207.3%203.8%208%201.6z%27%20fill=%27black%27/%3E%3C/svg%3E"); --pri-dash: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M3%208h1.6M7.2%208h1.6M11.4%208h1.6%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="urgent"] { --pri-m: var(--row-sev1); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="bars3"] { --pri-m: var(--row-sev2); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="bars2"] { --pri-m: var(--row-sev3); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="bars1"] { --pri-m: var(--row-sev4); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="bars0"] { --pri-m: var(--row-sev5); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="up2"] { --pri-m: var(--pri-up2); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="up"] { --pri-m: var(--pri-up); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="equal"] { --pri-m: var(--pri-equal); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="down"] { --pri-m: var(--pri-down); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="down2"] { --pri-m: var(--pri-down2); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="flame"] { --pri-m: var(--pri-flame); }
:is(.pri-mark, .pri-ic, #vt-severity-pill)[data-icon="dash"] { --pri-m: var(--pri-dash); }
.pri-ic { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; vertical-align: -2px; background: var(--sev-color, var(--gray));
  -webkit-mask: var(--pri-m, var(--row-sevdot)) center / 14px 14px no-repeat; mask: var(--pri-m, var(--row-sevdot)) center / 14px 14px no-repeat; }
.view-ticket-v3 .vt-pills-row #vt-severity-pill[data-icon] { --row-m: var(--pri-m); }
.vt-pick-label .pri-ic { margin-inline-end: 6px; }
/* the request page's side panel: the priority's icon before its value, as Status has its own; a long
   value wraps under its text, not under the icon */
.view-ticket-v3 .sb__field > .val.has-pri { padding-inline-start: var(--s-10); text-indent: calc(-1 * var(--s-9)); margin-inline-start: calc(-1 * var(--s-2)); }
.view-ticket-v3 .sb__field > .val.has-pri > .pri-ic { margin-inline-end: 6px; text-indent: 0; }
.view-ticket-v3 .vt-pills-row .privacy-public { --row-i: #04696F; --row-m: var(--row-globe); }
.view-ticket-v3 .vt-pills-row .privacy-department { --row-i: #2563EB; --row-m: var(--row-building); }
.view-ticket-v3 .vt-pills-row .privacy-private { --row-i: #E26E00; --row-m: var(--row-lock); }
.view-ticket-v3 .vt-pills-row .privacy-restricted { --row-i: #9F1239; --row-m: var(--row-lock2); }
.view-ticket-v3 .vt-pills-row .privacy::after {
  content: ""; width: 12px; height: 12px; flex: 0 0 auto; background: var(--gray);
  -webkit-mask: var(--row-chev) center / 12px 12px no-repeat; mask: var(--row-chev) center / 12px 12px no-repeat;
}
.view-ticket-v3 .vt-pills-row .privacy .priv-pending { order: 2; margin: 0; }
.view-ticket-v3.view-ticket-v3 .vt-pills-row .lock-pill { color: var(--ink-2); background: #F7F8F8; }
.view-ticket-v3 .vt-pills-row .lock-pill svg { width: 14px; height: 14px; color: var(--gray); }
.view-ticket-v3 .vt-pills-row .sla-chip .sla-kind-icon, .view-ticket-v3 .vt-pills-row .sla-chip .sla-state-icon { display: none; }
.view-ticket-v3 .vt-pills-row .sla-chip { --row-i: var(--sla-color, #16A34A); --row-m: var(--row-clock); }
.view-ticket-v3 .vt-pills-row .sla-chip .sla-kind { font-weight: 600; color: var(--black); }
.view-ticket-v3 .vt-pills-row .sla-chip .sla-sep { color: var(--gray); }
.view-ticket-v3 .vt-pills-row .sla-chip .sla-time { font-weight: 500; color: var(--ink-2); }
.view-ticket-v3 .vt-pills-row .sla-chip.is-atrisk { --row-i: #EA580C; }
.view-ticket-v3 .vt-pills-row .sla-chip.is-atrisk .sla-time { color: #B54708; font-weight: 600; }
.view-ticket-v3.view-ticket-v3 .vt-pills-row .sla-chip:is(.is-missed, .is-missed-final) { --row-i: #DC2626; --row-m: var(--row-missed); border-color: #F3C9C5; }
.view-ticket-v3 .vt-pills-row .sla-chip:is(.is-missed, .is-missed-final) .sla-time { color: #B42318; font-weight: 600; }
.view-ticket-v3 .vt-pills-row .sla-chip.is-met { --row-i: #1F7A45; --row-m: var(--row-met); }
.view-ticket-v3 .vt-pills-row .sla-chip.is-paused { --row-i: #6B7577; --row-m: var(--row-paused); }
.view-ticket-v3 .vt-pills-row .sla-chip.is-cancelled { --row-i: #848C8E; --row-m: var(--row-cancel); }
.view-ticket-v3 .vt-pills-row .sla-chip:is(.is-met, .is-paused, .is-cancelled) .sla-time { color: var(--gray); }
.view-ticket-v3 .vt-pills-row #vt-time-pill { --row-i: #04696F; --row-m: var(--row-watch); }
.view-ticket-v3 .vt-pills-row #vt-time-pill > svg { display: none; }
/* The two targets sat in a wrapper the row fixes at one line tall; when they wrapped (a phone, a long
   privacy name) the second spilled over the next line (OF-42). Their wrappers step aside, so each
   target is one of the row's own items and wraps with it. The OOB swap replaces the same element. */
.view-ticket-v3 .vt-pills-row #vt-sla-chip-pair, .view-ticket-v3 .vt-pills-row #vt-sla-chip-pair > .sla-pair { display: contents; }

/* Without the permission a control shows its value and says why on hover, instead of opening a picker
   that is then refused (review of T100032, 2026-09-29). The status reuses its locked look (D83). */
.view-ticket-v3 .vt-title-view.is-readonly { cursor: text; }
.view-ticket-v3 .vt-title-view.is-readonly:hover { background: none; }
.view-ticket-v3 .sb__field > .val.val--locked { cursor: not-allowed; }
.view-ticket-v3 .sb__cti.is-locked { cursor: default; }
.view-ticket-v3 .sb__cti.is-locked:hover { border-color: var(--border, #e5e7eb); background: inherit; }
.view-ticket-v3 .sb__section-head .action.is-disabled { color: var(--gray); opacity: .6; cursor: not-allowed; }
.view-ticket-v3 .sb__field .val.val--locked.is-empty { color: var(--gray); font-style: italic; font-weight: 400; }


/* A missed target in the log (D86): the missed icon, the part before " — " in bold, a quiet
   "Team only" pill. Only the team is sent this line (sla.audit_lines_for); this only draws it.
   Other team lines (a team note's, a copy's) are .vt-tl-teamline: the pill, no icon. */
.view-ticket-v3 .vt-tl-miss,
.view-ticket-v3 .vt-tl-teamline { display: inline-flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.view-ticket-v3 .vt-tl-miss::before {
  content: ""; width: 15px; height: 15px; flex: 0 0 auto; background: #DC2626;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M8%204.7v3.9%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27/%3E%3Ccircle%20cx%3D%278%27%20cy%3D%2711.1%27%20r%3D%271.05%27%20fill%3D%27black%27/%3E%3C/mask%3E%3C/defs%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.6%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E") center / 15px 15px no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cdefs%3E%3Cmask%20id%3D%27k%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27white%27/%3E%3Cpath%20d%3D%27M8%204.7v3.9%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27/%3E%3Ccircle%20cx%3D%278%27%20cy%3D%2711.1%27%20r%3D%271.05%27%20fill%3D%27black%27/%3E%3C/mask%3E%3C/defs%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%276.6%27%20fill%3D%27black%27%20mask%3D%27url%28%23k%29%27/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.view-ticket-v3 .vt-tl-miss b { font-weight: 600; color: var(--black); }
.view-ticket-v3 .vt-tl-team {
  display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  background: #F2F4F5; color: var(--ink-2); font: 600 var(--t-1)/var(--lh-1) var(--font-h);
}

/* The request page on a phone (D86): a Details bar under the title opens the left column as a sheet
   from the bottom. The column is MOVED into the sheet (ticket-details-sheet.js), so these rules undo
   its desktop frame there. On the shell sheet's layer (60): pickers, menus and modals opened from
   inside sit above it. */
.view-ticket-v3 .vt-det-bar { display: none; }
@media (max-width: 760px) {
  .view-ticket-v3 .vt-det-bar {
    display: flex; align-items: center; gap: var(--s-5); width: 100%; margin-top: 12px; padding: 0 var(--s-6); height: 44px;
    box-sizing: border-box; border: 1px solid #DCE1E4; border-radius: var(--r-4); background: #fff; color: var(--black);
    font: 500 var(--t-2)/var(--lh-1) var(--font-h); text-align: start; cursor: pointer;
  }
  .view-ticket-v3 .vt-det-bar:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
  .view-ticket-v3 .vt-det-bar .l { font-weight: 600; flex: 0 0 auto; }
  .view-ticket-v3 .vt-det-bar .s { flex: 1; min-width: 0; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-family: var(--font-b); }
  .view-ticket-v3 .vt-det-bar > svg { color: var(--gray); flex: 0 0 auto; }
}
.vt-dsheet { position: fixed; inset: 0; z-index: 60; }
.vt-dsheet[hidden] { display: none; }
.vt-dsheet__back { position: absolute; inset: 0; background: rgba(16, 24, 32, .32); opacity: 0; transition: opacity var(--dur-fade) var(--ease); }
.vt-dsheet__panel {
  position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; max-height: 86vh; overflow: auto; overscroll-behavior: contain;
  background: #F7F8F8; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(16, 24, 32, .18);
  padding: var(--s-3) var(--s-8) calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box;
  transform: translateY(24px); opacity: 0; transition: transform var(--dur-fade) var(--ease), opacity var(--dur-fade) var(--ease);
}
.vt-dsheet.is-open .vt-dsheet__back { opacity: 1; }
.vt-dsheet.is-open .vt-dsheet__panel { transform: none; opacity: 1; }
.vt-dsheet__grab { width: 40px; height: 4px; border-radius: 2px; background: #CDD3D6; margin: 6px auto 8px; }
.vt-dsheet__hd { display: flex; align-items: center; justify-content: space-between; padding: var(--s-1) 0 var(--s-4); font: 700 var(--t-4)/1.2 var(--font-h); color: var(--black); }
body.vt-dsheet-open { overflow: hidden; }
.view-ticket-v3 .vt-dsheet .sidebar,
.view-ticket-v3.sb-rail-mode.big-sidebar .vt-dsheet .sidebar {
  display: flex; width: auto; position: static; max-height: none; padding: 0; background: none; border-radius: 0; overflow: visible;
}
.view-ticket-v3 .vt-dsheet .sidebar__content,
.view-ticket-v3.sb-rail-mode .vt-dsheet .sidebar__content { display: block; height: auto; max-height: none; overflow: visible; }
.view-ticket-v3 .vt-dsheet :is(.sb-rail, .sb__topbar, .shadow-top, .shadow-bottom) { display: none !important; }
@media (prefers-reduced-motion: reduce) { .vt-dsheet__back, .vt-dsheet__panel { transition: none; } }

/* ===== D87 — the request's details column (owner, 2026-09-30; previews/preview_rail_request_page.html).
   Today's column, with: what was Quick Actions as one line pinned at the top, the followers list, a white
   card, the section icons in Home's heading tile, the number in the logo's orange, no IDENTITY heading. ===== */
/* the same white card as the page's other cards and the Requests side panel */
.view-ticket-v3 aside.sidebar { background: #fff; border: 1px solid #E6E9EC; box-shadow: var(--sh-1); }
.view-ticket-v3 .sb__section-head--btn:hover { background: #F4F7F7; }
/* the number: the logo's orange, at the 24px the brand rules allow orange text (3.25:1 on white) */
.view-ticket-v3 .sb__id { color: #E26E00; font-size: var(--t-7); letter-spacing: -.01em; }
.view-ticket-v3 .sb__id .copy-btn.sb__copy-btn { color: var(--gray); }
/* section icons in Home's heading tile (.h2-chip), smaller for the column */
.view-ticket-v3 .sb-chip { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; background: var(--teal-wash); color: var(--primary-color); }
.view-ticket-v3 .sb-chip svg { width: 15px; height: 15px; }
.view-ticket-v3 .sb__section-head { gap: var(--s-4); }
.view-ticket-v3 .sb__section-head .lbl { color: var(--ink-2); }
.view-ticket-v3 .sb-rail .rail-btn > svg { width: 18px; height: 18px; }
/* the action line: stays in reach while the column scrolls. Its own line is the one under it, so the
   first section below draws none (it was the column's first section, and first-of-type no longer is) */
.view-ticket-v3 .sb-acts + .sb__section { border-top: 0; }
.view-ticket-v3 .sb-acts { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-2) var(--s-5); margin-bottom: var(--s-2); background: #fff; border-bottom: 1px solid #E6E9EC; }
/* one height and one corner for the three controls of the line (32px, --r-4) */
.view-ticket-v3 .sb-acts .sb-acts__main { flex: 1 1 auto; min-width: 0; height: 32px; border-radius: var(--r-4); }
.view-ticket-v3 .sb-acts .sb-acts__main[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
/* the dots: centred (an older .sb__more__open rule pushed them to the left edge) and drawn like the
   follow control beside them -- a quiet grey field, teal on hover -- not a second teal outline */
.view-ticket-v3 .sb-acts .sb__more__open { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; justify-content: center;
  border: 1px solid #DCE1E4; border-radius: var(--r-4); background: #fff; color: var(--ink-2); }
.view-ticket-v3 .sb-acts .sb__more__open:hover, .view-ticket-v3 .sb-acts .sb__more__open[aria-expanded="true"] { border-color: var(--primary-color); color: var(--primary-color); background: #F4F7F7; }
.view-ticket-v3 .sb-acts .sb__more__open svg { width: 16px; height: 16px; }
/* Follow: the bell turns following on and off; the number beside it shows who follows */
.view-ticket-v3 .vt-follow { display: inline-flex; align-items: stretch; height: 32px; flex: 0 0 auto; border: 1px solid #DCE1E4; border-radius: var(--r-4); background: #fff; overflow: hidden; }
.view-ticket-v3 .vt-follow button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); border: 0; background: none; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; padding: 0 var(--s-4); transition: background-color var(--dur-state) var(--ease), color var(--dur-state) var(--ease); }
.view-ticket-v3 .vt-follow button:hover { background: #F4F7F7; }
.view-ticket-v3 .vt-follow button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.view-ticket-v3 .vt-follow svg { width: 16px; height: 16px; flex: 0 0 auto; }
.view-ticket-v3 .vt-follow .vt-follow__n { border-inline-start: 1px solid #DCE1E4; min-width: 34px; font-variant-numeric: tabular-nums; }
.view-ticket-v3 .vt-follow .b-on { display: none; }
.view-ticket-v3 .vt-follow.is-on { border-color: color-mix(in srgb, var(--primary-color) 35%, #fff); }
.view-ticket-v3 .vt-follow.is-on .vt-follow__t { color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 7%, #fff); }
.view-ticket-v3 .vt-follow.is-on .b-on { display: block; }
.view-ticket-v3 .vt-follow.is-on .b-off { display: none; }
.view-ticket-v3 .vt-follow.is-on .vt-follow__n { border-inline-start-color: color-mix(in srgb, var(--primary-color) 35%, #fff); }
.view-ticket-v3 .vt-follow .vt-follow__n[aria-expanded="true"] { background: #F4F7F7; color: var(--primary-color); }
/* the ⋯ menu: the ways out last, after a line, in red */
.sb__more__sep { height: 1px; background: #EEF0F1; margin: var(--s-2) 0; }
.sb__more__item--danger, .sb__more__item--danger svg { color: #B42318; }
.sb__more__item--danger:hover, .sb__more__item--danger:hover svg { color: #B42318; background: #FEF3F2; }
.sb__more__item--danger.sb__more__item--off, .sb__more__item--danger.sb__more__item--off svg { color: #6c6c6c; }
/* "Assign to me": a small link under the assignee, as in the Requests side panel */
.view-ticket-v3 .sb__field .sb__take { grid-column: 2; justify-self: start; margin-top: calc(-1 * var(--s-2)); padding: 0; border: 0; background: none;
  color: var(--primary-color); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; cursor: pointer; }
.view-ticket-v3 .sb__field .sb__take:hover { text-decoration: underline; }
.view-ticket-v3 .sb__field .sb__take.is-off { color: var(--gray); cursor: not-allowed; text-decoration: none; }
/* who follows: the app's light card (D43), under the number, flips above, never past the edge */
.vt-follow-pop { position: fixed; z-index: 1200; width: 280px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: var(--s-4);
  background: #fff; border: 1px solid #E6E9EC; border-radius: var(--r-4); box-shadow: var(--sh-3); font-family: var(--font-b); }
.vt-follow-pop[hidden] { display: none; }
.vt-follow-pop__h { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-1) var(--s-2) var(--s-4); border-bottom: 1px solid #EEF0F1; margin-bottom: var(--s-2); }
.vt-follow-pop__h b { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: var(--black); }
.vt-follow-pop__h small { font-size: var(--t-1); color: var(--gray); }
.vt-follow-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); max-height: 280px; overflow: auto; overscroll-behavior: contain; }
.vt-follow-pop li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); min-height: 36px; padding: 0 var(--s-2); border-radius: var(--r-3); }
.vt-follow-pop li img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.vt-follow-pop li b { font-family: var(--font-h); font-size: var(--t-2); font-weight: 500; color: var(--black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-follow-pop li.is-you b { font-weight: 600; }
.vt-follow-pop li .why { font-size: var(--t-1); color: var(--gray); white-space: nowrap; }
.vt-follow-pop li.is-more { grid-template-columns: 1fr; color: var(--gray); font-size: var(--t-1); }
.vt-follow-pop .sk { display: block; height: 12px; border-radius: var(--r-2); background: linear-gradient(90deg, #F1F3F4 25%, #E6E9EC 37%, #F1F3F4 63%); background-size: 400% 100%; animation: vt-follow-sh 1.25s linear infinite; }
.vt-follow-pop .sk.c { width: 26px; height: 26px; border-radius: 50%; }
@keyframes vt-follow-sh { to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .vt-follow-pop .sk { animation: none; } }

/* F-03: the plan-limit window, for someone who cannot open Billing */
.popup-footer .sl-who { font-family: var(--font-b); font-size: var(--t-2); color: var(--gray); }

/* ---- OF-64 (owner, 2026-09-30): a window holds the page still ----------------------------
   Scrolling inside a window (Privacy & access, found with a trackpad) reached the end of its
   list and carried on into the request behind it. While any window is open the page does not
   scroll, and a window's own scroll area never hands the scroll on. One rule for every window:
   the app's .popup (the shared #backend-popup and every in-page one) and its dim .backdrop, the
   search palette (.sk), the delete confirm (.uc-scrim), the Save-view window (.modal-backdrop),
   the request's time drawer (.drawer-scrim) and Home's drill-through and Customise (.nd/.hc-scrim).
   The person and access drawers already lock the page themselves (person-card.js, access.js).
   The request-access page is itself one window, so it never scrolled anyway. */
html:has(.popup.show, .backdrop.show, .sk.show, .uc-scrim.open, .modal-backdrop:not([hidden]),
          .drawer-scrim.open, .nd-scrim.open, .hc-scrim.open) { overflow: hidden; }
html { scrollbar-gutter: stable; }        /* the page keeps its width when its scrollbar goes */
.popup, .popup .popup-content, .popup .vm-body, .sk-list, .uc-modal, .modal, .vt-td-body { overscroll-behavior: contain; }

/* OF-67: the window that did not open -- the error chip in the window's own icon tile */
.vt-modal-v2 .vm-ic.vm-ic--err { background: #FDECEA; color: #C0392B; }
/* OF-67: the photo viewer in the app's window */
#avatar-popup.vt-modal-v2--photo { max-width: 420px; }
#avatar-popup .vm-body { align-items: center; padding-bottom: var(--s-10); }
#avatar-popup .vm-photo { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; box-shadow: var(--sh-2); }

/* OF-63: someone waits for this viewer's answer -- the orange of the privacy pill's count */
.ho-strip.ar-strip { background: #FFF6EC; border-color: #F6D9B8; color: #6B3A06; align-items: center; }
.ar-strip .ars-faces { display: inline-flex; flex: 0 0 auto; }
.ar-strip .ars-faces > * + * { margin-inline-start: -6px; }
.ar-strip .ars-faces img { border: 2px solid #FFF6EC; border-radius: 50%; }
.ar-strip b { color: #5A3104; }
.ar-strip .ars-why { color: #6B3A06; }
.ar-strip .ars-when { color: #8A5A2B; white-space: nowrap; }
.ar-strip small { display: block; color: #8A5A2B; font-size: var(--t-1); margin-top: 2px; }
.ar-strip .ho-act .btn-primary { height: 30px; font-size: var(--t-1); padding: 0 var(--s-6); }
@media (max-width: 760px) { .ho-strip.ar-strip { flex-wrap: wrap; } .ar-strip .ho-act { margin-inline-start: 0; width: 100%; } .ar-strip .ho-act .btn { flex: 1; } }

/* The window sweep for OF-64 (owner, 2026-09-30: "check all pop ups design and layout issues"): the
   Change CTI window. Its labels were 44px wide, so "CURRENT" ran into the team ("CURRENTIT Support");
   and on a phone the Current / New cards could not shrink below their longest word, so New ran
   past the window. The label grows from 44px; on a narrow window the two cards stack. */
.vt-modal-v2 .cti-row .lbl { width: auto; min-width: 44px; white-space: nowrap; }
.vt-modal-v2 .cti-diff-sxs { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); }
.vt-modal-v2 .cti-cti-line { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .vt-modal-v2 .cti-diff-sxs { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
  .vt-modal-v2 .cti-diff-arrow { transform: rotate(90deg); height: 18px; }
}

/* Ask for approval v2 (OF-58/59/60, approved preview_messages_windows, D91): the steps, each a
   picker saying who the person is to the request; the files; the journey follows the steps. */
.ask2-steps { display: grid; gap: var(--s-4); }
.ask2-step { display: flex; align-items: center; gap: var(--s-5); }
.ask2-n { width: 22px; height: 22px; border-radius: 50%; background: #EAF3F3; color: var(--primary-color);
  font: 600 var(--t-1)/22px var(--font-h); text-align: center; flex: 0 0 auto; }
.vt-modal-v2 .ask2-trg { padding: var(--s-4) var(--s-6); gap: var(--s-5); }
.ask2-av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.ask2-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; text-align: start; }
.ask2-who b { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask2-who small { color: var(--gray); font-size: var(--t-1); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask2-x { background: none; border: 0; color: var(--gray); padding: var(--s-3); border-radius: var(--r-2); cursor: pointer; display: inline-flex; flex: 0 0 auto; }
.ask2-x svg { width: 14px; height: 14px; }
.ask2-x:hover { color: var(--ink); background: #F2F4F5; }
.ask2-x:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.ask2-x-gap { width: 26px; flex: 0 0 26px; }
.ask2-add { display: inline-flex; align-items: center; gap: var(--s-3); align-self: flex-start; margin-top: var(--s-2); }
.ask2-add svg { width: 14px; height: 14px; }
.ask2-add[hidden] { display: none; }
.vt-modal-v2 p.ask2-hint { margin: var(--s-1) 0 0; font: 400 var(--t-1)/1.45 var(--font-b); color: var(--gray); text-align: start; }
.vt-modal-v2 .vm-opt { font-weight: 400; color: var(--gray); margin-inline-start: var(--s-2); }
.ask2-att { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.ask2-files:empty { display: none; }
.ask2-fx { background: none; border: 0; padding-block: 0; padding-inline: var(--s-2) 0; color: var(--gray); cursor: pointer; display: inline-flex; }
.ask2-fx svg { width: 12px; height: 12px; }
.ask2-menu .ask2-grp { font: 600 var(--t-1)/1 var(--font-h); text-transform: uppercase; letter-spacing: .04em; color: var(--gray); padding: var(--s-5) var(--s-5) var(--s-2); }
.ask2-menu button { align-items: flex-start; }
.ask2-menu .vt-pick-label { display: flex; flex-direction: column; line-height: 1.3; }
.ask2-sub { color: var(--gray); font-size: var(--t-1); font-weight: 400; white-space: normal; }
.vt-picker-pop.ask2-menu { max-height: min(360px, 60vh); }
.ask2-add { min-height: 32px; }
@media (max-width: 760px) { .ask2-add { min-height: 44px; } }
/* Time off (D133): the person's own year under the card's heading */
.tof-card .tof-taken{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2) var(--s-5);margin-top:var(--s-4);font-family:var(--font-b);font-size:var(--t-2);color:#5f6b78}
.tof-card .tof-taken b{font-family:var(--font-h);font-weight:600;color:#1a2326}
.tof-card .tof-taken__chip{background:#E1EDEE;color:var(--primary-color);border-radius:var(--r-pill);padding:1px var(--s-5);font-family:var(--font-h);font-weight:600;font-size:var(--t-1)}

/* ======================================================================
   D206 MESSAGE CARDS (approved preview_share_message v9, 22 Oct 2026).
   One card under a comment for a Share, a pasted message or request link, and later a
   Slack message (_macros_cards.html); the Share window's own parts (.vs-*); the message
   box's preview of a pasted link; "Shared to / Linked from" under the original.
   Widths measured on the real page: the card caps at 600px; on a phone the text column
   is 189px, so the card uses the whole message width under the face.
   ====================================================================== */
.view-ticket-v3 .vt-mcards, .view-ticket-v3-cards { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-4); }
.vt-mcard { max-width: 600px; background: #fff; border: 1px solid #E1E6E9; border-radius: var(--r-4); overflow: hidden; font-family: var(--font-b); position: relative; }
.vt-mcard:hover, .vt-mcard:focus-within { border-color: #CFD8DC; }
.vt-mcard__src { display: flex; align-items: center; gap: var(--s-3); min-width: 0; padding: var(--s-3) var(--s-7); background: #FAFBFC; border-bottom: 1px solid #EEF1F3; font-size: var(--t-1); color: #5f6670; line-height: 1.4; }
.vt-mcard__src > svg { width: 13px; height: 13px; flex-shrink: 0; color: #5f6670; }
.vt-mcard__src a.no { color: var(--primary-color); font-family: var(--font-h); font-weight: 700; text-decoration: none; flex-shrink: 0; }
.vt-mcard__src a.no:hover { text-decoration: underline; }
.vt-mcard__src .ti { color: #3f4650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vt-mcard__src .dot, .vt-mcard .dot, .vt-mbacklink .dot { color: #6b7076; flex-shrink: 0; }
.vt-mcard__src .lock-t { color: #6b5a3f; }
.vt-mcard__src .no-plain { color: #3f4650; font-family: var(--font-h); }
.vt-mcard__src .ask { color: var(--primary-color); font-weight: 600; text-decoration: none; flex-shrink: 0; }
.vt-mcard__src .ask:hover { text-decoration: underline; }
/* D214: the Request access window opens from a locked card; its link sits in .axl like a list row's */
.vt-mcard__src .axl { display: inline-flex; width: auto; flex-shrink: 0; font-size: inherit; }
.vt-mcard__src .axl button.ask { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--primary-color); font-weight: 600; }
.vt-mcard__src .axl .axl-wait { margin-inline-start: 0; padding: 0; font-size: inherit; }
.vt-mcard__src .axl .axl-wait svg { width: 12px; height: 12px; }
.vt-mcard .privacy { padding: var(--s-1) var(--s-4); border-width: 1px; font-size: var(--t-1); flex-shrink: 0; }
.vt-mcard .privacy::before { width: 7px; height: 7px; }
.vt-mcard .privacy-private::before { animation: none; }   /* the pulse stays on the request's own header */
.vt-mcard__status { display: inline-flex; align-items: center; gap: var(--s-2); flex-shrink: 0; height: 20px; padding: 0 7px; border: 1px solid #E3E8EA; border-radius: var(--r-pill); background: #fff; color: var(--black); font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); white-space: nowrap; }
.vt-mcard__status svg { width: 11px; height: 11px; color: var(--primary-color); }
.vt-mcard__x { margin-inline-start: auto; flex-shrink: 0; width: 22px; height: 22px; border: 0; background: none; border-radius: var(--r-2); color: #6b7076; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--dur-state, 120ms) var(--ease); padding: 0; }
.vt-mcard:hover .vt-mcard__x, .vt-mcard-removed:hover .vt-mcard__x, .vt-mcard__x:focus-visible { opacity: 1; }
@media (hover: none) { .vt-mcard__x { opacity: 1; } }
.vt-mcard__x:hover { background: #EEF1F3; color: var(--black); }
.vt-mcard__x svg { width: 12px; height: 12px; }
.vt-mcard__body { padding: var(--s-6) var(--s-7); display: flex; flex-direction: column; gap: var(--s-3); }
.vt-mcard__head { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.vt-mcard__face { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 1px solid var(--logo-orange, #E26E00); flex-shrink: 0; }
.vt-mcard__face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vt-mcard__who { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--black); }
.vt-mcard__when { color: #5f6670; font-size: var(--t-1); }
.vt-mcard__text { font-size: var(--t-2); line-height: 1.55; color: var(--black); word-break: break-word; }
.vt-mcard__text p { margin: 0 0 var(--s-3); }
.vt-mcard__text p:last-child { margin: 0; }
.vt-mcard__text ul { margin: var(--s-2) 0; padding-inline-start: 22px; list-style: disc; }
.vt-mcard__text ol { margin: var(--s-2) 0; padding-inline-start: 22px; list-style: decimal; }
.vt-mcard__text li { list-style: inherit; display: list-item; }
.vt-mcard__text a { color: var(--primary-color); text-decoration: underline; }
.vt-mcard__text .mention { font-weight: 600; color: var(--black); background: none; padding: 0; }   /* copied mentions are plain names: they never notify */
.vt-mcard__text .mention::before { content: '@'; }
.vt-mcard__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.vt-mcard__more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--primary-color); font-family: var(--font-b); font-weight: 600; font-size: var(--t-1); cursor: pointer; }
.vt-mcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); font-size: var(--t-1); color: #5f6670; }
.vt-mcard__foot .vt-tl-atts { margin: 0; }
.vt-mcard__foot .vt-tl-att-ico svg { width: 12px; height: 12px; }
.vt-mcard__reps { background: none; border: 0; padding: 0; cursor: pointer; color: var(--primary-color); font-family: var(--font-b); font-size: var(--t-1); font-weight: 600; display: inline-flex; align-items: center; gap: var(--s-3); }
.vt-mcard__reps .faces { display: inline-flex; }
.vt-mcard__reps .faces img { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; margin-inline-start: -5px; box-shadow: 0 0 0 1px #E1E6E9; object-fit: cover; }
.vt-mcard__reps .faces img:first-child { margin-inline-start: 0; }
.vt-mcard__reps svg { width: 12px; height: 12px; transition: transform var(--dur-move, 240ms) var(--ease); }
.vt-mcard__reps[aria-expanded="true"] svg { transform: rotate(180deg); }
.vt-mcard__open { margin-inline-start: auto; color: var(--primary-color); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); }
.vt-mcard__open:hover { text-decoration: underline; }
.vt-mcard__open svg { width: 12px; height: 12px; }
.vt-mcard__replist { display: flex; flex-direction: column; gap: var(--s-4); border-top: 1px dashed var(--gray-light2, #EBEBEB); padding-top: var(--s-4); }
.vt-mcard__rep { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-4); font-size: var(--t-2); }
.vt-mcard__rep .vt-mcard__face { width: 20px; height: 20px; }
.vt-mcard__rep b { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); }
.vt-mcard__rep span { color: #5f6670; font-size: var(--t-1); }
.vt-mcard__rep p { margin: var(--s-1) 0 0; line-height: 1.5; white-space: pre-wrap; }
.vt-mcard--locked .vt-mcard__src { border-bottom: 0; background: #FFFBF4; }
.vt-mcard--req .vt-mcard__body { gap: var(--s-3); }
.vt-mcard--req .rq-top { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; min-width: 0; }
.vt-mcard--req .rq-no { font-family: var(--font-h); font-weight: 700; color: var(--primary-color); font-size: var(--t-2); text-decoration: none; }
.vt-mcard--req .rq-ti { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--black); flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-mcard--req .rq-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: var(--t-1); color: #5f6670; }
.vt-mcard--req .rq-meta img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--logo-orange, #E26E00); object-fit: cover; }
.vt-mcard-removed { max-width: 600px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); border: 1px dashed #DCE1E5; border-radius: var(--r-4); font-size: var(--t-1); color: #5f6670; background: #fff; }
.vt-mcard-removed svg { width: 13px; height: 13px; color: #6b7076; flex-shrink: 0; }
/* a pasted link reads short in the text: "T100094 › message" */
.vt-tl-text .vt-mlink, .vt-mlink { color: var(--primary-color); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 35%, transparent); }
/* where a message was shared or linked, under the original */
.vt-mbacklinks { display: flex; flex-direction: column; gap: var(--s-1); margin-top: var(--s-4); }
.vt-mbacklink { display: inline-flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-size: var(--t-1); color: #5f6670; }
.vt-mbacklink svg { width: 12px; height: 12px; color: #5f6670; }
/* D214 Delete and Redact: the line a deleted message leaves, the mark for removed words, the window */
.vt-mdeleted { display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); border: 1px dashed #DCE1E5; border-radius: var(--r-4); font-size: var(--t-1); color: #5f6670; background: #fff; }
.vt-mdeleted svg { width: 13px; height: 13px; color: #6b7076; flex-shrink: 0; }
.vt-mdeleted .dot { margin: 0 var(--s-2); }
.vt-mdeleted--soon { border-style: solid; border-color: #F0D9B5; background: #FFF9F0; color: #A85400; margin-bottom: var(--s-3); }
.vt-tl-entry.is-going > .vt-tl-body > :not(.vt-mdeleted):not(.vt-tl-replies):not(.vt-thread-mount),
.vt-tl-reply.is-going > .vt-tl-body > :not(.vt-mdeleted) { display: none; }
.vt-tl-entry.is-going > .vt-tl-actionbar, .vt-tl-reply.is-going > .vt-tl-actionbar { display: none; }
.vt-redact { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0 var(--s-3); border-radius: var(--r-pill); background: #EEF0F2; color: #5f6670; font-size: var(--t-1); font-weight: 600; vertical-align: 1px; }
.vt-tl-actionbar button[data-act="delete"]:hover { color: #B42318; }
.vm-ic.vm-ic--danger { background: #FDECEA; color: #B42318; }
.rd-text { border: 1px solid var(--border); border-radius: var(--r-4); background: #fff; padding: var(--s-5) var(--s-6); font-family: var(--font-b); font-weight: 400; font-size: var(--t-2); line-height: 1.55; color: var(--black); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; user-select: text; cursor: text; }
.rd-text::selection { background: #FAD4D0; color: #7A1A12; }
.rd-text.is-all { background: #FDF2F2; color: #7A1A12; text-decoration: line-through; }
.rd-show { color: #7A1A12; background: #FDF2F2; padding: 0 var(--s-2); border-radius: var(--r-1); font-weight: 600; }
/* D216: History's "View message" on a reply's line */
.vt-tl-change .vt-tl-text .dot { color: #6b7076; margin: 0 var(--s-1); }
.vt-tl-change .vt-tl-text a.vt-tl-ref { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.vt-tl-change .vt-tl-text a.vt-tl-ref:hover { text-decoration: underline; }
.vt-tl-change .vt-tl-text a.vt-tl-ref:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-1); }
/* D214 Manage copies: the line under the original and its window */
.vt-mbacklink__btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--primary-color); cursor: pointer; }
.vt-mbacklink__btn:hover { text-decoration: underline; }
.vt-mbacklink__btn:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-1); }
.vs-copies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.vs-copies__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) var(--s-6); border: 1px solid var(--border); border-radius: var(--r-4); background: #fff; }
.vs-copies__where { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4); min-width: 0; }
.vs-copies__where .vs-row__t { font-size: var(--t-2); color: var(--black); overflow-wrap: anywhere; }
.vs-copies__where small { flex-basis: 100%; font-size: var(--t-1); color: #5f6670; }
.vs-copies__where small .dot { margin: 0 var(--s-2); }
.vs-copies__lock { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--t-2); color: #5f6670; }
.vs-copies__lock svg { width: 13px; height: 13px; }
.vs-copies__done, .vs-copies__none { font-size: var(--t-1); color: #5f6670; }
.vs-copies__confirm { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-3); font-size: var(--t-1); color: #991b1b; }
.vs-copies__row > .btn, .vs-copies__confirm .btn { white-space: nowrap; flex-shrink: 0; }
.vt-mbacklink a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.vt-mbacklink a:hover { text-decoration: underline; }
/* the action bar's Share */
.view-ticket-v3 .vt-tl-actionbar .vt-share-off { display: inline-flex; }
.view-ticket-v3 .vt-tl-actionbar button[disabled] { opacity: .45; cursor: not-allowed; }
.view-ticket-v3 .vt-tl-actionbar button[disabled]:hover { background: transparent; color: var(--gray, #828282); }
@media (max-width: 560px) {
  /* the text column is 189px on a phone: the card takes the whole message width under the face */
  /* end: only the grid gap now -- a message has no time column of its own since A7 (8 Nov 2026) */
  .view-ticket-v3 .vt-tl-comment > .vt-tl-body > .vt-mcards { margin-inline-start: -48px; margin-inline-end: calc(-1 * var(--s-6)); }
  .vt-mcard, .vt-mcard-removed { max-width: none; }
}

/* the Share window (inside the .vt-modal-v2 shell) */
.vt-modal-v2 .vs-quote { border: 1px solid #E1E6E9; background: #FAFBFC; border-radius: var(--r-4); padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); }
.vt-modal-v2 .vs-quote__h { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--black); flex-wrap: wrap; }
.vt-modal-v2 .vs-quote__h img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--logo-orange, #E26E00); object-fit: cover; }
.vt-modal-v2 .vs-quote__h span { font-family: var(--font-b); font-weight: 400; color: #5f6670; }
.popup-content .vt-modal-v2 .vs-quote__t, .vt-modal-v2 .vs-quote__t { font-family: var(--font-b); font-weight: 400; font-size: var(--t-2); color: #3f4650; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: start; }
.vt-modal-v2 .vs-search { position: relative; }
.vt-modal-v2 .vs-search > svg { position: absolute; inset-inline-start: 12px; top: 12px; width: 16px; height: 16px; color: var(--gray); pointer-events: none; }
.vt-modal-v2 .vs-search .vx-input { padding-inline-start: 36px; }
.vt-modal-v2 .vs-results { border: 1px solid var(--gray-light2); border-radius: var(--r-4); overflow: hidden; background: #fff; box-shadow: var(--sh-2); margin-top: var(--s-3); }
.vt-modal-v2 .vs-results ul { list-style: none; margin: 0; padding: var(--s-2); max-height: 214px; overflow-y: auto; }
.vt-modal-v2 .vs-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-5); align-items: baseline; text-align: start; background: none; border: 0; border-radius: var(--r-3); padding: var(--s-4) var(--s-5); cursor: pointer; font-family: var(--font-b); }
.vt-modal-v2 .vs-row:hover, .vt-modal-v2 .vs-row.is-active { background: var(--teal-wash, #E6F1F1); }
.vt-modal-v2 .vs-row__no { font-family: var(--font-h); font-weight: 700; font-size: var(--t-2); color: var(--primary-color); }
.vt-modal-v2 .vs-row__t { font-size: var(--t-2); font-weight: 600; color: var(--black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-modal-v2 .vs-row__m { grid-column: 2; display: flex; gap: var(--s-3); flex-wrap: wrap; font-size: var(--t-1); color: #5f6670; font-weight: 400; }
.vt-modal-v2 .vs-chip { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-1); font-weight: 600; color: #3f4650; background: var(--light-background); border: 1px solid var(--gray-light2); border-radius: var(--r-pill); padding: 0 7px; }
.vt-modal-v2 .vs-chip--conf { background: #FDF3E4; border-color: #F3DDBB; color: #8A4A0B; }
.vt-modal-v2 .vs-results__foot { font-family: var(--font-b); font-weight: 400; font-size: var(--t-1); color: #5f6670; padding: 7px var(--s-7); border-top: 1px solid #f1f2f4; background: #fcfcfd; }
.vt-modal-v2 .vs-empty { font-family: var(--font-b); font-weight: 400; font-size: var(--t-2); color: #5f6670; padding: var(--s-7); }
.vt-modal-v2 .vs-picked { display: flex; align-items: center; gap: var(--s-5); border: 1px solid color-mix(in srgb, var(--primary-color) 35%, #fff); background: color-mix(in srgb, var(--primary-color) 4%, #fff); border-radius: var(--r-4); padding: 9px var(--s-6); }
.vt-modal-v2 .vs-picked__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--font-b); }
.vt-modal-v2 .vs-picked__txt b { font-family: var(--font-h); font-size: var(--t-2); color: var(--primary-color); }
.vt-modal-v2 .vs-picked__txt span { font-size: var(--t-2); color: var(--black); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-modal-v2 .vs-picked button { font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--primary-color); background: #fff; border: 1px solid #E3E8EA; border-radius: var(--r-pill); padding: var(--s-2) var(--s-5); cursor: pointer; }
.vt-modal-v2 .vs-seg { display: inline-flex; background: var(--light-background); border: 1px solid var(--gray-light2); border-radius: var(--r-pill); padding: 3px; gap: var(--s-1); align-self: flex-start; }
.vt-modal-v2 .vs-seg button { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #3f4650; background: none; border: 0; border-radius: var(--r-pill); padding: var(--s-3) var(--s-7); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-3); }
.vt-modal-v2 .vs-seg button svg { width: 13px; height: 13px; }
.vt-modal-v2 .vs-seg button[aria-pressed="true"] { background: #fff; color: var(--primary-color); box-shadow: var(--sh-1); }
.vt-modal-v2 .vs-seg button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.vt-modal-v2 .vs-hint { font-family: var(--font-b); font-weight: 400; font-size: var(--t-1); color: #5f6670; }
.vt-modal-v2 .vs-ticks { display: flex; flex-direction: column; gap: var(--s-4); }
.vt-modal-v2 .vs-tick { display: flex; align-items: center; gap: 9px; font-family: var(--font-b); font-size: var(--t-2); font-weight: 400; color: var(--black); cursor: pointer; }
.vt-modal-v2 .vs-tick input { width: 16px; height: 16px; accent-color: var(--primary-color); margin: 0; }
.vt-modal-v2 .vs-tick small { color: #5f6670; font-size: var(--t-1); }
.vt-modal-v2 .vs-impact { background: color-mix(in srgb, var(--primary-color) 5%, #fff); border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #fff); border-radius: var(--r-5); padding: var(--s-6) 13px; display: flex; flex-direction: column; gap: var(--s-4); font-family: var(--font-b); font-weight: 400; }
.vt-modal-v2 .vs-impact__h { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; color: var(--primary-color); }
.vt-modal-v2 .vs-impact__h svg { width: 13px; height: 13px; }
.vt-modal-v2 .vs-faces { display: flex; align-items: center; }
.vt-modal-v2 .vs-faces img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -7px; box-shadow: 0 0 0 1px #E1E6E9; object-fit: cover; }
.vt-modal-v2 .vs-faces img:first-child { margin-inline-start: 0; }
.vt-modal-v2 .vs-faces .more { margin-inline-start: 6px; font-size: var(--t-1); font-weight: 600; color: #3f4650; }
.popup-content .vt-modal-v2 .vs-impact p, .vt-modal-v2 .vs-impact p { margin: 0; font-family: var(--font-b); font-size: var(--t-2); color: #3f4650; line-height: 1.45; text-align: start; }
.vt-modal-v2 .vs-impact p b { color: var(--black); font-weight: 600; }
.vt-modal-v2 .vs-newly { color: #8A4A0B; }
.vt-modal-v2 .vs-err { display: flex; gap: var(--s-4); align-items: flex-start; background: #FDECEA; border: 1px solid #F4C7C1; border-radius: var(--r-4); padding: var(--s-5) var(--s-6); font-family: var(--font-b); font-size: var(--t-2); color: #8F2D22; line-height: 1.45; }
.vt-modal-v2 .vs-err svg { width: 15px; height: 15px; flex-shrink: 0; color: #C0392B; margin-top: var(--s-1); }
/* the reminder (private original) and the question, in the Share window and the message box */
.vs-remind { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-family: var(--font-b); font-size: var(--t-2); color: #5b4423; }
.vs-remind > svg { width: 14px; height: 14px; color: #B45309; flex-shrink: 0; }
.vs-remind .privacy { padding: var(--s-1) var(--s-4); border-width: 1px; font-size: var(--t-1); }
.vs-remind .privacy-private::before { animation: none; }
.vs-remind--share { border: 1px solid #F3DDBB; background: #FFFBF4; border-radius: var(--r-4); padding: var(--s-4) var(--s-5); }
.vs-unfurl { padding: 0 var(--s-7) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.vs-unfurl:empty { display: none; }
.vs-unfurl__item { display: flex; flex-direction: column; gap: var(--s-4); }
.vs-unfurl .vt-mcards { margin-top: 0; }
.vs-ask { border: 1px solid #F3DDBB; background: #FFFBF4; border-radius: var(--r-4); padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); max-width: 600px; font-family: var(--font-b); }
.vs-ask__t { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-2); color: #5b4423; }
.vs-ask__t b { color: #3d2c12; }
.vs-ask .faces { display: inline-flex; }
.vs-ask .faces img { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; margin-inline-start: -6px; box-shadow: 0 0 0 1px #F3DDBB; object-fit: cover; }
.vs-ask .faces img:first-child { margin-inline-start: 0; }
.vs-ask__row { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.vs-ask__hint { font-size: var(--t-1); color: #7a6240; }
.vs-ask__sep { height: 1px; background: #F3DDBB; margin: var(--s-1) 0; }
.vs-ask .seg { display: inline-flex; background: #fff; border: 1px solid #EAD3AE; border-radius: var(--r-pill); padding: 3px; gap: var(--s-1); }
.vs-ask .seg button { font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: #3f4650; background: none; border: 0; border-radius: var(--r-pill); padding: 5px var(--s-6); cursor: pointer; }
.vs-ask .seg button[aria-pressed="true"] { background: var(--primary-color); color: #fff; }
/* Copy link, when the browser blocks the clipboard: the link selected, never window.prompt */
.vs-copybox { position: fixed; z-index: 300; background: #fff; border: 1px solid #E3E8EA; border-radius: var(--r-4); box-shadow: var(--sh-3); padding: var(--s-5); width: min(360px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: var(--s-3); font-family: var(--font-b); font-size: var(--t-1); color: #5f6670; }
.vs-copybox input { width: 100%; height: 32px; border: 1px solid #DCE1E5; border-radius: var(--r-3); padding: 0 var(--s-4); font-family: var(--font-b); font-size: var(--t-1); color: var(--black); }

.view-ticket-v3 .vt-tl-text.vt-tl-muted { color: #5f6670; }   /* D206: a Share with no note */

/* ===================================================================================================================
   NO ACCESS (D209, owner 26 Oct 2026; previews/preview_no_access.html): one design for "you can't open this" —
   the page (access_denied.html), its window (_no_access_window.html, inside #backend-popup), the general error page
   (error.html) and the staff portal's (admin_403.html). Start-aligned; teal for the action; one orange dot.
   Inside .popup-content, `p` (16px, centred, grey) and `form` (flex column, 28px gap) outrank one class: the
   window's rules name .popup-content as well (tests/test_modal_style_specificity.py).
   =================================================================================================================== */
.nax-card { max-width: 600px; margin: 40px auto 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: var(--s-11) var(--s-11) 28px; display: grid; gap: var(--s-7); text-align: start; }
.nax-solo { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 8vh var(--s-8) var(--s-12); background: #F6F6F6; }
.nax-solo .nax-card { margin: 0; width: 100%; }
.nax-art { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-wash); color: var(--primary-color);
  display: flex; align-items: center; justify-content: center; }
.nax-art i { position: absolute; inset-inline-end: 8px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #E26E00; }
.nax-t { font-family: var(--font-h); font-size: var(--t-7); font-weight: 600; line-height: 1.25; color: var(--ink); margin: 4px 0 0; text-wrap: balance; }
.nax-t--s { font-size: var(--t-6); }
.nax-lead { font-family: var(--font-b); font-size: var(--t-4); line-height: 1.5; color: #3F4A4C; margin: 0; }
.nax-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-6); align-items: start; padding-top: var(--s-6); border-top: 1px solid var(--line); }
.nax-k { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: #5F6B70; padding-top: 3px; }
.nax-opt { font-weight: 400; }
.nax-need { display: grid; gap: var(--s-3); justify-items: start; min-width: 0; }
.nax-chip { display: inline-flex; align-items: center; gap: var(--s-3); padding: 3px var(--s-5); border-radius: var(--r-pill); background: var(--teal-wash);
  color: var(--primary-color); font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; }
.nax-d { font-family: var(--font-b); font-size: var(--t-3); line-height: 1.5; color: #5F6B70; }
.nax-who { display: flex; align-items: center; gap: var(--s-5); min-width: 0; font-family: var(--font-b); font-size: var(--t-3); line-height: 1.5; color: #3F4A4C; }
.nax-faces { display: inline-flex; flex: none; }
.nax-faces img { width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.nax-faces img + img { margin-inline-start: -8px; }
.nax-askf { display: grid; gap: var(--s-6); margin: 0; }
.nax-ask { display: grid; gap: var(--s-3); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.nax-ask textarea { font: inherit; font-family: var(--font-b); font-size: var(--t-3); padding: var(--s-5) var(--s-6); border: 1px solid var(--line);
  border-radius: var(--r-4); resize: vertical; min-height: 64px; }
.nax-ask textarea: focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.nax-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: 8px; }
.nax-acts .btn { display: inline-flex; align-items: center; gap: var(--s-3); }
.nax-acts--end { justify-content: flex-end; }
.nax-link { font-family: var(--font-h); font-size: var(--t-3); font-weight: 600; color: var(--primary-color); text-decoration: none; margin-inline-start: 4px; }
.nax-link: hover { text-decoration: underline; }
.nax-link: focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-3); }
.nax-done, .nax-fail { display: flex; gap: var(--s-4); align-items: flex-start; margin: 0; padding: var(--s-5) var(--s-6); border-radius: var(--r-4);
  font-family: var(--font-b); font-size: var(--t-3); line-height: 1.5; }
.nax-done { background: #ECF7F1; color: #1E6B45; }
.nax-fail { background: #FEF2F2; color: #B42318; }
.nax-done svg, .nax-fail svg { flex: none; margin-top: 2px; }
.nax-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); font-family: var(--font-b); font-size: var(--t-3); line-height: 1.5; color: #3F4A4C; }
.nax-steps li { display: flex; gap: var(--s-5); align-items: flex-start; }
.nax-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-wash); color: var(--primary-color); font-family: var(--font-h);
  font-size: var(--t-1); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
/* D255: the reference a person quotes to support, and its Copy button */
.nax-ref { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.nax-ref .nax-k { padding-top: 0; }
.nax-ref code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-4); letter-spacing: .04em; color: var(--ink);
  background: #F4F6F7; border-radius: var(--r-2); padding: var(--s-2) var(--s-4); }
.nax-copy { font-family: var(--font-h); font-size: var(--t-2); font-weight: 600; color: var(--primary-color); background: none; border: 1px solid var(--line);
  border-radius: var(--r-3); padding: var(--s-2) var(--s-4); cursor: pointer; }
.nax-copy:hover { border-color: var(--primary-color); }
.nax-copy:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.nax-addr { display: grid; gap: var(--s-2); margin: 0; }
.nax-addr code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-2); color: #3F4A4C; background: #F4F6F7;
  border-radius: var(--r-2); padding: var(--s-3) var(--s-4); overflow-wrap: anywhere; }
/* the window: inside #backend-popup's content */
.nax-window { display: grid; gap: var(--s-7); text-align: start; max-width: 520px; }
.popup-content .nax-window p.nax-lead { font-family: var(--font-b); font-size: var(--t-4); line-height: 1.5; color: #3F4A4C; text-align: start; margin: 0; }
.popup-content .nax-window p.nax-done, .popup-content .nax-window p.nax-fail { font-family: var(--font-b); font-size: var(--t-3); text-align: start; margin: 0; }
.popup-content .nax-window p.nax-done { color: #1E6B45; }
.popup-content .nax-window p.nax-fail { color: #B42318; }
.popup .nax-window form.nax-askf { display: grid; gap: var(--s-6); margin: 0; }
@media (max-width: 560px) {
  .nax-card { margin: 16px 0 24px; padding: 22px 18px; border-radius: 14px; }
  .nax-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .nax-acts { flex-direction: column; align-items: stretch; }
  .nax-acts--end { flex-direction: column-reverse; }
  .nax-acts .btn { justify-content: center; }
  .nax-link { text-align: center; margin: 4px 0 0; }
}

/* ───────────── D228 "How did we do?" (approved preview_reports_csat v2): the five answers, the card at the top of
   the request, the team's chip, the rating page an email opens, Reports › Satisfaction, and the two settings ───────────── */
.csat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.csat-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-5) 0 0; padding: 0; border: 0; min-width: 0; }
.csat-f { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); min-height: 76px; padding: var(--s-5) var(--s-2) 9px;
  background: #fff; border: 1px solid #DFE4E7; border-radius: var(--r-4); color: #3F4A4C; cursor: pointer;
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 500; line-height: 1.2; text-align: center;
  transition: transform 120ms var(--ease), border-color 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease); }
.csat-f input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.csat-f .csat-ic { width: 26px; height: 26px; }
.csat-f:hover { transform: translateY(-2px); border-color: #B9CDD0; }
.csat-f:active { transform: scale(.97); }
.csat-f:has(input:focus-visible) { box-shadow: var(--sh-focus); }
.csat-f:has(input:checked) { background: #EAF3F3; border-color: var(--primary-color); color: var(--primary-color); font-weight: 600; }
.view-ticket-v3 .vt-card h3.csat-h { margin: 0 0 4px; }
.csat-lead { margin: 0; font-family: var(--font-b); font-size: var(--t-2); color: #3F4A4C; line-height: 1.5; }
.csat-lbl { display: block; margin: var(--s-6) 0 6px; padding: 0; font-family: var(--font-h); font-weight: 600; font-size: var(--t-2); color: var(--ink, #181818); }
.csat-lbl span { font-family: var(--font-b); font-weight: 400; color: var(--gray); font-size: var(--t-1); margin-inline-start: 4px; }
.csat-ta { width: 100%; box-sizing: border-box; resize: vertical; min-height: 72px; padding: var(--s-5) var(--s-6); border: 1px solid #DFE4E7; border-radius: var(--r-3);
  font-family: var(--font-b); font-size: var(--t-2); line-height: 1.5; color: var(--ink, #181818); background: #fff; }
.csat-ta:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--sh-focus); }
.csat-foot { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-8); align-items: center; justify-content: space-between; margin-top: 10px; }
.csat-fine { font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); margin: 8px 0 0; }
.csat-foot .csat-fine { margin: 0; }
.csat-err { margin: 8px 0 0; font-family: var(--font-b); font-size: var(--t-1); color: var(--red, #C0392B); }
/* what comes after the answers waits for one; the reasons only for Poor and Very poor — no script needed */
.csat-ask:not(:has(input[name="score"]:checked)) .csat-more,
.csat-sign form:not(:has(input[name="score"]:checked)) .csat-reasons { display: none; }
.csat-reasons { margin: var(--s-6) 0 0; padding: 0; border: 0; min-width: 0; }
.csat-reasons .csat-lbl { margin-top: 0; }
form:not(:has(input[name="score"][value="1"]:checked, input[name="score"][value="2"]:checked)) .csat-reasons { display: none; }
.csat-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.csat-chip-r { position: relative; font-family: var(--font-h); font-size: var(--t-1); font-weight: 500; padding: var(--s-3) var(--s-6); border-radius: var(--r-pill);
  border: 1px solid #DFE4E7; background: #fff; color: #3F4A4C; cursor: pointer; transition: border-color 120ms var(--ease), background-color 120ms var(--ease); }
.csat-chip-r input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.csat-chip-r:has(input:checked) { background: #EAF3F3; border-color: var(--primary-color); color: var(--primary-color); font-weight: 600; }
.csat-chip-r:has(input:focus-visible) { box-shadow: var(--sh-focus); }
.csat-card.is-locked .csat-faces, .csat-card.is-locked .csat-ta, .csat-card.is-locked .csat-lead, .csat-card.is-locked .csat-chips {
  filter: blur(1.5px); opacity: .75; pointer-events: none; transition: filter 180ms var(--ease), opacity 180ms var(--ease); }
.csat-done { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; font-family: var(--font-b); font-size: var(--t-2); color: var(--ink, #181818); }
.csat-done__f { width: 36px; height: 36px; border-radius: 50%; background: #EAF3F3; color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.csat-done__t { flex: 1 1 240px; min-width: 0; }
.csat-done__t small { display: block; color: var(--gray); font-size: var(--t-1); margin-top: 1px; }
/* Reports › Satisfaction › To follow up (D232): the poor answers, for whoever follows them up */
/* the bell opens it at #csFollow: its heading clears the fixed top bar, as an approval does (.apj) */
/* D233: the "Rated" chip, only for the people who see this team's ratings (csat.chip_for) */
.csat-rchip { display: inline-flex; align-items: center; gap: var(--s-3); padding-block: var(--s-2); padding-inline: 9px var(--s-5); border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: var(--t-2); font-weight: 600; line-height: var(--lh-1); vertical-align: middle; white-space: nowrap;
  background: #EAF3F3; color: var(--primary-color); border: 1px solid #C5DDDF; cursor: pointer; transition: border-color 120ms var(--ease); }
.csat-rchip:hover { border-color: var(--primary-color); }
.csat-rchip:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.csat-rchip .k { font-weight: 700; }
.csat-rchip .sla-sep { opacity: .4; padding: 0 1px; }
.csat-rchip__i { width: 15px; height: 15px; flex: 0 0 auto; }
.csat-pop { position: fixed; z-index: 1200; width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box; background: #fff; border: 1px solid var(--line, #E6E9EC);
  border-radius: var(--r-4); box-shadow: var(--sh-3); padding: var(--s-7) var(--s-8); font-family: var(--font-b); font-size: var(--t-2); color: var(--ink, #181818); }
.csat-pop__who { display: flex; gap: var(--s-5); align-items: center; }
.csat-pop__who img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.csat-pop__who small { display: block; color: var(--gray); font-size: var(--t-1); }
.csat-pop__r { margin: 10px 0 0; color: #3F4A4C; font-size: var(--t-1); font-weight: 600; }
.csat-pop__q { margin: 10px 0 0; padding: var(--s-5) var(--s-6); background: #F2F7F7; border-radius: var(--r-3); line-height: 1.55; overflow-wrap: anywhere; }
.csat-pop__fine { margin: 10px 0 0; color: var(--gray); font-size: var(--t-1); line-height: 1.5; }
.csat-fu { scroll-margin-top: calc(var(--shell-top, 60px) + var(--s-6)); }
.csat-fu__n { display: inline-block; margin-inline-start: var(--s-3); padding: 0 var(--s-4); border-radius: var(--r-pill); background: #EAF3F3; color: var(--primary-color);
  font-family: var(--font-h); font-size: var(--t-1); font-weight: 600; vertical-align: 2px; }
.csat-fu__lead, .csat-fu__none { margin: 0 0 var(--s-6); font-family: var(--font-b); font-size: var(--t-2); color: #3F4A4C; max-width: 72ch; }
.csat-fu__none { margin: 0; }
.csat-fu__list { list-style: none; margin: 0; padding: 0; }
.csat-fu__r { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-6) 0; border-top: 1px solid #EEF1F3;
  font-family: var(--font-b); font-size: var(--t-2); color: var(--ink, #181818); }
.csat-fu__r > img, .csat-fu__nobody { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #EEF1F3; }
.csat-fu__b { flex: 1 1 auto; min-width: 0; }
.csat-fu__b p { margin: 0; }
.csat-fu__who b { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-color); }
.csat-fu__i { width: 15px; height: 15px; flex: 0 0 auto; }
.csat-fu__b .csat-fu__meta { margin-top: 2px; color: #3F4A4C; overflow-wrap: anywhere; }
.csat-fu__b .csat-fu__meta a { font-weight: 600; color: var(--primary-color); }
.csat-fu__closed { color: var(--gray); }
.csat-fu__b .csat-fu__why { margin-top: 8px; color: #3F4A4C; font-size: var(--t-1); font-weight: 600; }
.csat-fu__b .csat-fu__q { margin-top: 8px; padding: var(--s-5) var(--s-6); background: #F2F7F7; border-radius: var(--r-3); line-height: 1.55; overflow-wrap: anywhere; }
.csat-fu__b .csat-fu__fine { margin-top: 8px; color: var(--gray); font-size: var(--t-1); line-height: 1.5; }
.csat-sign .sing-form__container .csat-faces { margin-bottom: 4px; }
.csat-sign .csat-ta { flex: 0 0 auto; height: 96px; }
.csat-sign .sing-form__buttons { margin-top: 18px; }
/* Reports › Satisfaction */
.rp-kpis.csat-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .rp-kpis.csat-kpis { grid-template-columns: 1fr 1fr; } .rp-kpis.csat-kpis > .kpi:last-child { grid-column: 1 / -1; } }
.csat-dist { display: grid; gap: var(--s-5); }
.csat-dist__r { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: var(--s-5); }
.csat-dist__w { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-h); font-weight: 500; font-size: var(--t-2); color: var(--ink, #181818); }
.csat-dist__i { width: 16px; height: 16px; color: var(--primary-color); flex: 0 0 auto; }
.csat-why { margin: 14px 0 0; font-family: var(--font-b); font-size: var(--t-1); color: #3F4A4C; }
.csat-wk { display: grid; gap: var(--s-3); align-items: end; height: 168px; padding-top: 22px; border-bottom: 1px solid #E6E9EC; }
.csat-wk__c { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.csat-wk__b { display: block; background: var(--primary-color); border-radius: 6px 6px 0 0; min-height: 3px; }
.csat-wk__c.is-none .csat-wk__b { background: #EEF1F3; height: 3px; }
.csat-wk__v { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-h); font-weight: 600; font-size: var(--t-1); color: var(--primary-color); white-space: nowrap; }
.csat-wk__l { position: absolute; top: 100%; inset-inline-start: 0; margin-top: 6px; font-family: var(--font-b); font-size: var(--t-1); color: var(--gray); white-space: nowrap; }
.csat-wk + .csat-fine { margin-top: 28px; }
.csat-empty__t { margin: 0; font-family: var(--font-h); font-weight: 600; font-size: var(--t-3); color: var(--ink, #181818); }
.csat-empty__d { margin: 6px 0 0; font-family: var(--font-b); font-size: var(--t-2); color: #3F4A4C; max-width: 62ch; }
.csat-plan-h { margin: var(--s-10) 0 var(--s-5); }
/* the settings: a strong name with a small grey note */
.csat-tag { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: var(--r-pill); background: #EEF1F3; color: #5F6B70; font-family: var(--font-h);
  font-size: var(--t-1); font-weight: 600; letter-spacing: .03em; vertical-align: 1px; }
.csat-svc-sum { display: block; margin-top: 4px; color: #3F4A4C; }
@media (max-width: 480px) {
  .csat-faces { gap: 5px; }
  .csat-f { min-height: 70px; padding: 9px var(--s-1) var(--s-4); font-size: var(--t-1); }
  .csat-f .csat-ic { width: 24px; height: 24px; }
  .csat-dist__r { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .csat-f, .csat-rchip, .csat-chip-r { transition: none; } .csat-f:hover, .csat-f:active { transform: none; } }
