.it-page,
.support-page {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
  width: 100%;
  padding-bottom: 24px;
}
.it-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
html.it-operations,
body.it-operations {
  height: 100%;
  overflow: hidden;
}
body.it-operations {
  margin: 0;
}
.it-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.it-main #page {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  font-family: var(--font-body);
}
.it-main #page h1,
.it-main #page h2,
.it-main #page h3,
.it-main #page h4,
.it-main #page label,
.it-main #page th,
.it-main #page strong,
.it-main #page .button,
.it-main #page .it-status {
  font-family: var(--font-heading);
}
.it-help-widget {
  position: fixed;
  z-index: 1500;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(252px, env(safe-area-inset-left));
}
.it-help-launcher {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fdbd5a;
  box-shadow: 0 8px 24px rgba(47, 47, 47, 0.24);
  color: #2f2f2f;
  font-size: 27px;
  transition: transform 180ms ease;
}
.it-help-launcher:hover {
  transform: scale(1.08);
}
.it-help-orbit {
  position: absolute;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f5a6b7;
  color: #2f2f2f;
  font-size: 11px;
  animation: it-help-orbit 4s linear infinite;
}
.it-help-orbit-one {
  --orbit-radius: 35px;
}
.it-help-orbit-two {
  --orbit-radius: 32px;
  animation-delay: -2s;
  background: #a9d8c5;
}
.it-help-popover {
  position: absolute;
  bottom: 74px;
  left: 0;
  display: grid;
  gap: 11px;
  width: min(290px, calc(100vw - 32px));
  padding: 17px;
  border: 1px solid #eadcc5;
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: 0 12px 36px rgba(47, 47, 47, 0.2);
}
.it-help-popover[hidden] {
  display: none;
}
.it-help-popover-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.it-help-popover-head strong,
.it-help-popover-head small {
  display: block;
}
.it-help-popover-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.it-help-sparkle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #f8dce3;
  color: #8a485b;
  font-size: 21px;
}
.it-help-queue-link {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
@keyframes it-help-orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .it-help-orbit {
    animation: none;
  }
}
.it-page > *,
.support-page > * {
  min-width: 0;
}
.it-page .panel {
  overflow: hidden;
}
.it-page .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}
.it-page .stat,
.it-page .panel,
.support-page .panel {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.it-page .panel,
.support-page .panel {
  padding: clamp(16px, 2.2vw, 24px);
}
.it-page h2,
.support-page h2 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
}
.it-main .topbar {
  align-items: flex-start;
}
.it-main .topbar > div:first-child {
  min-width: 0;
}
#userSlot {
  max-width: min(280px, 35vw);
  overflow-wrap: anywhere;
  text-align: right;
}
.it-page .panel-head,
.support-page .panel-head {
  flex-wrap: wrap;
  gap: 12px;
}
.it-nav-group {
  display: grid;
  gap: 4px;
  margin: 14px 0 4px;
}
.it-nav-label {
  padding: 8px 14px 4px;
  color: #f1e4d3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.it-nav-group a {
  font-size: 13px;
  padding: 9px 14px;
}
.it-page .panel,
.support-page .panel {
  min-width: 0;
}
.it-page .button,
.support-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.it-page .button:hover,
.support-page .button:hover {
  transform: translateY(-1px);
}
.it-page .button:focus-visible,
.support-page .button:focus-visible,
.it-nav a:focus-visible,
.it-page input:focus-visible,
.it-page select:focus-visible,
.it-page textarea:focus-visible,
.support-page input:focus-visible,
.support-page select:focus-visible,
.support-page textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}
.it-page button:disabled,
.support-page button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}
.it-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: thin;
}
.it-table-wrap .table {
  min-width: 900px;
  line-height: 1.45;
}
.it-table-wrap .table th {
  position: sticky;
  top: 0;
  z-index: 0;
  background: var(--card);
}
.it-table-wrap .table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.it-table-wrap .it-activity-table {
  min-width: 1080px;
  table-layout: fixed;
}
.it-activity-table th:nth-child(1),
.it-activity-table td:nth-child(1) {
  width: 36%;
}
.it-activity-table th:nth-child(2),
.it-activity-table td:nth-child(2) {
  width: 13%;
  white-space: nowrap;
  overflow-wrap: normal;
}
.it-activity-table th:nth-child(3),
.it-activity-table td:nth-child(3) {
  width: 17%;
}
.it-activity-table th:nth-child(4),
.it-activity-table td:nth-child(4) {
  width: 15%;
  white-space: nowrap;
  overflow-wrap: normal;
}
.it-activity-table th:nth-child(5),
.it-activity-table td:nth-child(5) {
  width: 19%;
  white-space: nowrap;
  overflow-wrap: normal;
}
.it-table-wrap .table th,
.it-table-wrap .table td {
  padding: 13px 12px;
}
.it-table-wrap .table tr:last-child td {
  border-bottom: 0;
}
.it-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}
.it-actions .button {
  padding: 7px 9px;
  font-size: 12px;
}
.it-filter {
  min-width: 180px;
}
.it-page .toolbar input,
.it-page .toolbar select,
.it-filter,
.it-thread-controls select,
.it-user-status {
  min-height: 40px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.it-page .toolbar input {
  flex: 1 1 240px;
  min-width: min(240px, 100%);
}
.it-page .toolbar select {
  flex: 0 1 190px;
  min-width: min(180px, 100%);
}
.it-status {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  background: #e6f3ef;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.it-status[data-status="PENDING"],
.it-status[data-status="WAITING_FOR_USER"] {
  background: #fff0d6;
  color: #75500d;
}
.it-status[data-status="DISABLED"],
.it-status[data-status="INACTIVE"],
.it-status[data-status="ARCHIVED"],
.it-status[data-status="CLOSED"] {
  background: #f4e7e7;
  color: #803b3b;
}
.it-status[data-status="LOA"] {
  background: #fff0d6;
  color: #75500d;
}
.it-status[data-status="CRITICAL"],
.it-status[data-status="HIGH"] {
  background: #f8e3df;
  color: #8b3429;
}
.it-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.it-form .field {
  min-width: 0;
}
.it-form input,
.it-form select,
.it-form textarea,
.support-ticket-form input,
.support-ticket-form select,
.support-ticket-form textarea,
.it-reply textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.it-form input[readonly],
.it-form select:disabled {
  background: color-mix(in srgb, var(--paper) 50%, white);
  color: var(--muted);
}
.it-form textarea,
.support-ticket-form textarea,
.it-reply textarea {
  min-height: 120px;
  resize: vertical;
}
.it-form .field-wide {
  grid-column: 1 / -1;
}
.it-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.it-user-status,
.it-form select,
.it-form input,
.it-form textarea {
  max-width: 100%;
  min-width: 0;
}
.it-user-status {
  max-width: 150px;
}
.it-modal-open {
  position: fixed;
  z-index: 2000;
  display: grid;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-items: start;
  justify-items: center;
  isolation: isolate;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.it-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.it-modal-card .panel-head {
  position: sticky;
  top: -24px;
  z-index: 2;
  margin: -24px -24px 18px;
  padding: 16px 24px 12px;
  background: var(--card);
}
.it-feedback {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 7px;
  overflow-wrap: anywhere;
}
.it-form-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.it-feedback.success,
.it-feedback.error {
  display: block;
}
.it-feedback.success {
  background: #e6f3ef;
  color: var(--brand-dark);
}
.it-feedback.error {
  background: #f8e3df;
  color: #8b3429;
}
.it-ticket-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.5fr);
  gap: 16px;
  min-height: 420px;
}
.it-ticket-list {
  min-width: 0;
  max-height: 68vh;
  overflow: auto;
}
.it-ticket-row {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.it-ticket-row:hover,
.it-ticket-row.active {
  background: #f6f0e5;
}
.it-ticket-row strong {
  overflow-wrap: anywhere;
}
.it-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.it-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 420px;
}
.it-thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.it-ticket-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffaf2;
}
.it-ticket-details > div {
  min-width: 0;
}
.it-ticket-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font: 600 11px var(--font-heading);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.it-ticket-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.it-ticket-details .it-ticket-description {
  grid-column: 1 / -1;
}
.it-ticket-description dd {
  white-space: pre-wrap;
}
.it-thread-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.it-thread-controls select {
  max-width: 210px;
}
.it-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 220px;
  max-height: 48vh;
  overflow: auto;
  padding: 14px 2px;
}
.it-message {
  max-width: min(760px, 92%);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}
.it-message.mine {
  justify-self: end;
  background: #f6f0e5;
}
.it-message small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}
.it-message p {
  margin: 0;
  white-space: pre-wrap;
}
.it-attachments {
  display: grid;
  gap: 6px;
  padding-top: 7px;
}
.it-attachments a {
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}
.it-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.it-reply textarea {
  min-height: 76px;
}
.it-reply input[type="file"] {
  grid-column: 1 / -1;
  max-width: 100%;
  font-size: 12px;
}
.it-empty-state {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}
.support-ticket-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.support-ticket-form .field-wide {
  grid-column: 1 / -1;
}
.support-ticket-form input[type="file"] {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.it-reply input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.support-ticket-form button {
  justify-self: start;
}
.public-support-panel {
  width: min(820px, 100%);
  margin: 0 auto;
}
.public-support-panel .it-form-note {
  margin: 0 0 18px;
}
.public-support-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.public-support-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(20px, 6vw, 44px) 12px;
  text-align: center;
}
.public-support-success > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #f8dce3;
  color: #8a485b;
  font-size: 28px;
}
.public-support-success h3 {
  font-size: 22px;
}
.public-support-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.public-support-success > strong {
  padding: 9px 14px;
  border-radius: 8px;
  background: #fff;
  font-size: 20px;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .it-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .it-main {
    padding-right: clamp(16px, 3vw, 28px);
    padding-left: clamp(16px, 3vw, 28px);
  }
  .it-ticket-layout {
    grid-template-columns: 1fr;
  }
  .it-ticket-list {
    max-height: 260px;
  }
}
@media (max-width: 760px) {
  html.it-operations,
  body.it-operations {
    height: 100%;
    overflow: hidden;
  }
  .it-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .it-main {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px 16px;
  }
  .it-main #page {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }
  .it-help-widget {
    left: max(14px, env(safe-area-inset-left));
  }
  .it-main .topbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  .it-main .topbar h1 {
    font-size: clamp(24px, 6vw, 32px);
    overflow-wrap: anywhere;
  }
  #userSlot {
    max-width: 42%;
    font-size: 13px;
  }
  .it-nav {
    width: 100%;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .it-nav-group {
    flex: 0 0 auto;
    align-content: start;
    min-width: max-content;
    margin: 0;
    padding-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  .it-nav-label {
    padding-left: 10px;
  }
  .it-nav-group a {
    padding: 8px 10px;
  }
  .it-actions {
    min-width: 140px;
  }
}
@media (max-width: 600px) {
  .it-page .cards,
  .it-form,
  .support-ticket-form {
    grid-template-columns: 1fr;
  }
  .it-form .field-wide,
  .it-form-actions,
  .support-ticket-form .field-wide {
    grid-column: auto;
  }
  .it-thread-controls select {
    max-width: 100%;
  }
  .it-reply {
    grid-template-columns: 1fr;
  }
  .it-modal-open {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }
  .it-modal-card {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
    border-radius: 10px;
  }
  .it-modal-card .panel-head {
    top: -16px;
    margin: -16px -16px 14px;
    padding: 13px 16px 10px;
  }
  .it-modal-card .it-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .it-modal-card .it-form-actions .button {
    width: 100%;
    justify-content: center;
  }
  .it-actions {
    min-width: 0;
  }
  .it-actions .button {
    min-height: 36px;
  }
  .it-thread-head {
    align-items: stretch;
  }
  .it-page .panel-head,
  .support-page .panel-head {
    align-items: flex-start;
  }
  .it-page .panel-head > .button,
  .support-page .panel-head > .button {
    width: 100%;
  }
  .it-page .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .it-page .toolbar input,
  .it-page .toolbar select {
    width: 100%;
    min-width: 0;
  }
  .it-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .it-form-actions .button {
    width: 100%;
  }
  .it-thread {
    min-height: 0;
  }
  .it-messages {
    min-height: 180px;
    max-height: 42vh;
  }
  .it-thread-controls {
    width: 100%;
  }
  .it-ticket-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .it-thread-controls > * {
    flex: 1 1 140px;
  }
  .it-thread-controls .button {
    text-align: center;
  }
}
/* User directory state and inline persisted team assignment. */
.it-directory-state { padding: 24px; }
.it-team-select { min-width: 160px; max-width: 260px; padding: 8px; border: 1px solid var(--rsd-border); border-radius: 8px; background: #fff; color: var(--rsd-neutral-900); }
