:root {
  --ink: #eaf1ff;
  --muted: #a2b1c9;
  --blue: #79ead7;
  --green: #79ead7;
  --amber: #ffca7d;
  --red: #ff7895;
  --bg: #080d17;
  --line: #1e2d43;
  --white: #101827;
  --violet: #ab9eff;
  --surface-raised: #152136;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
  --radius: 10px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  font-weight: 680;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
.muted,
.sub {
  color: var(--muted);
}
.sub {
  font-size: 12px;
  line-height: 1.6;
}
.initial {
  height: 100vh;
  display: grid;
  place-content: center;
  gap: 20px;
  text-align: center;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
}
.brand span {
  color: var(--blue);
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: var(--white);
  z-index: 100;
}
.skip:focus {
  top: 16px;
}
.shell {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #0b1220;
  border-right: 1px solid var(--line);
  color: #a2b1c9;
  position: fixed;
  inset: 0 auto 0 0;
  width: 80px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 26px 7px 18px;
  z-index: 20;
}
.sidebar .brand {
  font-size: 16px;
  letter-spacing: 1.4px;
  color: var(--ink);
  margin-bottom: 40px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.nav button {
  border: 0;
  background: none;
  color: inherit;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 13px 3px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 550;
  position: relative;
}
.nav button:hover {
  background: #142334;
}
.nav button.active {
  background: #173432;
  color: var(--ink);
}
.nav button.active:before {
  content: "";
  width: 3px;
  height: 26px;
  background: var(--blue);
  position: absolute;
  left: -7px;
  top: 20px;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px #79ead744;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.user-avatar,
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-content: center;
  border-radius: 50%;
  background: #1c2c43;
  color: #bbcce5;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--white);
}
.sidebar .user-avatar {
  background: #25334e;
  color: var(--ink);
  border: 0;
}
.sidebar-bottom button {
  background: none;
  border: 0;
  color: #a2b1c9;
  padding: 6px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 66px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.service-light {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.dot.warning {
  background: var(--amber);
}
.dot.critical {
  background: var(--red);
}
.dot.unknown {
  background: #788aa3;
}
.presence-wrap {
  position: relative;
}
.presence-toggle {
  display: flex;
  align-items: center;
  border: 0;
  background: none;
  gap: 7px;
  font-size: 12px;
  padding: 5px;
}
.avatar-stack {
  display: flex;
  padding-left: 5px;
}
.avatar-stack .avatar {
  margin-left: -5px;
  width: 29px;
  height: 29px;
  font-size: 10px;
}
.presence-popover {
  position: absolute;
  right: 0;
  top: 44px;
  width: 310px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px #00000066;
  border-radius: 12px;
  padding: 18px;
  z-index: 35;
}
.presence-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.presence-person:last-child {
  border: 0;
  padding-bottom: 0;
}
.presence-person p {
  font-size: 12px;
  margin-top: 3px;
  color: var(--muted);
}
.presence-error {
  font-size: 12px;
  color: var(--amber);
}
.demo-banner {
  padding: 9px 36px;
  background: #14253a;
  border-bottom: 1px solid #283d58;
  font-size: 12px;
  color: #aac4e5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.live-banner { background: #102923; color: var(--green); border-color: #254f45; }
.content {
  padding: 28px 30px 48px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.page-heading .sub {
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  min-height: 36px;
  transition:
    background 140ms,
    border-color 140ms,
    box-shadow 140ms;
}
.btn:hover {
  background: var(--surface-raised);
  border-color: #3c536d;
  text-decoration: none;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #081a19;
  box-shadow: 0 0 18px #79ead712;
}
.btn.primary:hover {
  background: #a0f5e6;
  box-shadow: 0 0 20px #79ead72b;
}
.btn.danger {
  color: var(--red);
  border-color: #663246;
}
.btn.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.btn.small {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
}
.btn .icon svg {
  width: 15px;
  height: 15px;
}
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters select {
  font-size: 12px;
  min-width: 150px;
}
.filters .search {
  margin-left: auto;
  max-width: 280px;
  min-width: 160px;
  flex: 1;
}
.search {
  position: relative;
}
.search .icon {
  position: absolute;
  left: 11px;
  top: 10px;
  color: var(--muted);
}
.search input {
  padding-left: 36px;
  width: 100%;
}
.filter-label {
  font-size: 11px;
  color: var(--muted);
  padding-left: 4px;
}
.channel-filter {
  position: relative;
}
.channel-filter summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 170px;
}
.channel-filter summary:after {
  content: "⌄";
  float: right;
  padding-left: 15px;
}
.channel-menu {
  position: absolute;
  top: 42px;
  left: 0;
  width: 265px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  z-index: 15;
  box-shadow: 0 12px 30px #00000066;
}
.checklist {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b1321;
  padding: 9px 10px;
  color: var(--ink);
  min-width: 0;
}
input::placeholder {
  color: #7889a2;
}
select {
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #c2cfe2;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span-two {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.form-message:empty {
  display: none;
}
.form-message {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  background: #301c2b;
  color: var(--red);
}
.form-message.success {
  background: #12302d;
  color: var(--green);
}
.form-message.warning {
  background: #30291e;
  color: var(--amber);
}
.notice {
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 8px;
  background: #30291e;
  color: var(--amber);
  margin-bottom: 18px;
}
.notice.info {
  background: #152739;
  color: #b5cfe9;
}
.notice.error {
  background: #301c2b;
  color: var(--red);
}
.notice strong {
  font-weight: 650;
}
.sync-info {
  font-family: var(--mono);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.kpi {
  background: #0e1725;
  padding: 11px 18px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kpi .number {
  font-size: 22px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.8px;
}
.kpi .label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.kpi.critical .number {
  color: var(--red);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-heading .sub {
  font-size: 11px;
}
.live-map {
  margin-bottom: 28px;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  white-space: nowrap;
}
.channel:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #95a4ba;
}
.channel.telegram:before {
  background: #77bdff;
}
.channel.max:before {
  background: #ab9eff;
}
.channel.whatsapp:before {
  background: #79ead7;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.panel-head h2 {
  font-size: 15px;
}
.panel-body {
  padding: 20px;
}
.count-badge {
  display: inline-grid;
  place-content: center;
  border-radius: 5px;
  min-width: 22px;
  padding: 2px 6px;
  background: #3b2031;
  color: var(--red);
  font-size: 11px;
  margin-left: 7px;
}
.alert-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.alert-row:last-child {
  border-bottom: 0;
}
.alert-mark {
  color: var(--red);
  background: #3b2031;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
}
.alert-row.warning .alert-mark {
  color: var(--amber);
  background: #362b1f;
}
.alert-main {
  flex: 1;
  min-width: 0;
}
.alert-main strong {
  font-size: 12px;
  font-weight: 600;
}
.alert-main p {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.alert-main button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-weight: 600;
}
.ack-text {
  font-size: 10px;
  color: var(--green);
  max-width: 190px;
  text-align: right;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.25px;
  font-weight: 550;
  color: var(--muted);
  padding: 12px 18px;
  background: #0d1522;
  white-space: nowrap;
}
td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:hover {
  background: #152236;
}
.ticket-link {
  background: none;
  border: 0;
  color: var(--blue);
  padding: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
.ticket-title {
  font-size: 11px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  background: #24233d;
  color: #c4baff;
  white-space: nowrap;
}
.badge.green {
  color: var(--green);
  background: #16332f;
}
.badge.amber {
  color: var(--amber);
  background: #362b1f;
}
.badge.red {
  color: var(--red);
  background: #3b2031;
}
.badge.gray {
  color: #b1bfd2;
  background: #222e40;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.ticket-pages {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ticket-pages button:disabled {
  cursor: default;
}
#ticket-list {
  scroll-margin-top: 80px;
}
#process-graph-host {
  margin-bottom: 16px;
}
.alerts-panel > summary {
  cursor: pointer;
  list-style: none;
}
.alerts-panel > summary::-webkit-details-marker {
  display: none;
}
.alerts-panel > summary::after {
  content: "⌄";
  font-size: 18px;
  color: var(--muted);
}
.alerts-panel[open] > summary::after {
  content: "⌃";
}
.alerts-panel > summary .sub {
  margin-left: auto;
}
.alerts-panel[open] > summary .sub {
  visibility: hidden;
}
#alerts-list .empty {
  min-height: 64px;
  padding: 16px;
}
@media (max-width: 640px) {
  .alerts-panel > summary .sub {
    display: none;
  }
}
.empty {
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty .icon {
  margin-bottom: 12px;
  color: #91a4bf;
}
.loading {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.loading:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #29405b;
  border-top-color: var(--blue);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.section-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 9px 14px;
  font-size: 12px;
  border-radius: 6px;
}
.section-tabs button.active {
  background: #16332f;
  color: var(--blue);
  font-weight: 650;
}
.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.operator-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.operator-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.operator-head .avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.operator-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}
.operator-metrics dt {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.operator-metrics dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 600;
}
.calendar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--line);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.day-label {
  background: #0c1421;
  text-align: center;
  padding: 12px;
  font-size: 10px;
  color: var(--muted);
}
.day {
  min-height: 128px;
  background: var(--white);
  padding: 10px;
  min-width: 0;
}
.day.blank {
  background: #0c1421;
}
.day-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 10px;
  font-family: var(--mono);
}
.day.today .day-number span {
  background: var(--blue);
  color: #081a19;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-content: center;
}
.day-add {
  border: 0;
  background: none;
  color: #90a3bf;
  font-size: 17px;
  padding: 0 5px;
}
.shift {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid #ab9eff;
  border-radius: 4px;
  background: #24233d;
  padding: 6px;
  margin: 5px 0;
  color: #c4baff;
  font-size: 10px;
  line-height: 1.5;
  overflow: hidden;
}
.shift strong {
  display: block;
  font-size: 10px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.shift > span {
  display: block;
}
.shift.replacement {
  background: #362b1f;
  border-left-color: #ffca7d;
  color: #ffca7d;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.service-card h3 {
  font-size: 13px;
  margin-bottom: 15px;
}
.service-card .sub {
  margin-top: 12px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
}
.auth-side {
  background:
    radial-gradient(ellipse at 8% 55%, #123a3b66, transparent 65%), #0a1220;
  border-right: 1px solid var(--line);
  color: var(--ink);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side h2 {
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -1.4px;
  font-weight: 650;
  max-width: 400px;
}
.auth-side p {
  font-size: 13px;
  color: #a2b1c9;
  line-height: 1.8;
  max-width: 330px;
  margin-top: 24px;
}
.auth-side .sub {
  color: #8c9fb9;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  max-width: 360px;
  width: 100%;
}
.auth-form h1 {
  font-size: 27px;
}
.auth-form > .sub {
  margin: 12px 0 30px;
}
.auth-form .field {
  margin: 18px 0;
}
.auth-form .btn.primary {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
}
.auth-route {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 36px;
}
.auth-route i {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--violet);
  background: #24233d;
  box-shadow: 0 0 18px #ab9eff28;
  border-radius: 5px;
}
.auth-route i:not(:last-child):after {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  width: 30px;
  height: 1px;
  background: #68877f;
}
.auth-route i:nth-child(3) {
  background: #16332f;
  border-color: var(--blue);
  box-shadow: 0 0 18px #79ead72b;
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: #030710bb;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  background: var(--white);
  border-left: 1px solid #31425b;
  width: min(620px, 100%);
  height: 100%;
  overflow: auto;
  box-shadow: -12px 0 50px #00000066;
  padding: 28px 30px;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.drawer-head h2 {
  font-size: 23px;
  line-height: 1.4;
}
.drawer-close {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 21px;
}
.drawer .ticket-subject {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 550;
  margin: 16px 0;
}
.drawer-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.drawer-section h3 {
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.detail-grid dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-grid dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 24px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.timeline li:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  left: -4px;
  top: 5px;
  border: 2px solid var(--white);
  box-sizing: content-box;
}
.timeline strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.timeline p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.object-presence {
  font-size: 11px;
  padding: 10px 12px;
  background: #162439;
  color: #b3c6e1;
  border-radius: 6px;
  margin-bottom: 16px;
}
.object-presence:empty {
  display: none;
}
.secret {
  font-family: ui-monospace, monospace;
  background: #0a1220;
  padding: 14px;
  word-break: break-all;
  color: var(--ink);
  font-size: 15px;
  user-select: all;
  margin: 12px 0;
}
.conflict {
  padding: 14px;
  border: 1px solid #6b5331;
  background: #30291e;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0;
}
.conflict p {
  margin-top: 8px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: #192b3c;
  border: 1px solid #426474;
  color: var(--ink);
  padding: 13px 20px;
  border-radius: 8px;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 6px 25px #00000066;
  display: none;
}
#toast.visible {
  display: block;
}
.audit-detail {
  max-width: 330px;
  word-break: break-word;
  font-size: 11px;
}
.mobile-only {
  display: none;
}
.hide {
  display: none !important;
}

@media (max-width: 1200px) {
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .operator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    padding: 10px 12px;
  }
  .kpi .number {
    font-size: 21px;
  }
  td,
  th {
    padding: 12px;
  }
  .day {
    padding: 6px;
  }
}
@media (max-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .sidebar {
    width: 72px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .sidebar .brand {
    font-size: 14px;
  }
  .nav button {
    font-size: 9px;
  }
  .content {
    padding: 24px 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    min-height: 58px;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calendar {
    overflow: visible;
  }
  .day {
    min-height: 110px;
  }
  .shift {
    font-size: 9px;
  }
  .auth-side {
    padding: 35px;
  }
  .auth-side h2 {
    font-size: 32px;
  }
  .top-actions {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .demo-banner {
    padding: 8px 18px;
  }
  .filters .search {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 68px;
    padding: 4px 8px;
    flex-direction: row;
    z-index: 40;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px #00000066;
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    gap: 3px;
    justify-content: space-around;
  }
  .nav button {
    flex: 1;
    padding: 8px 3px;
    gap: 4px;
    font-size: 9px;
  }
  .nav button.active:before {
    display: none;
  }
  .nav .icon svg {
    width: 18px;
    height: 18px;
  }
  .main {
    padding-bottom: 68px;
  }
  .topbar {
    height: 58px;
    padding: 0 16px;
  }
  .breadcrumb {
    gap: 0;
    font-size: 0;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb strong {
    display: none;
  }
  .breadcrumb:before {
    content: "DESK";
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ink);
  }
  .top-actions {
    gap: 6px;
    margin-left: auto;
    min-width: 0;
  }
  .service-light {
    font-size: 0;
    gap: 0;
  }
  .presence-toggle {
    font-size: 10px;
  }
  .avatar-stack .avatar {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }
  .presence-popover {
    right: -5px;
    width: 280px;
  }
  .content {
    padding: 24px 16px;
  }
  .demo-banner {
    padding: 8px 16px;
    font-size: 10px;
  }
  .demo-banner span:last-child {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .heading-actions {
    gap: 4px;
    max-width: 130px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 7px 8px;
  }
  .heading-actions .btn .icon {
    display: none;
  }
  .heading-actions .btn[data-action="notifications"] .icon {
    display: inline-flex;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading .sub {
    font-size: 11px;
    max-width: 220px;
  }
  .filters {
    display: none;
  }
  .filters.open {
    display: flex;
  }
  .mobile-only {
    display: inline-flex;
  }
  .filters > * {
    width: 100%;
  }
  .filters .search {
    width: 100%;
    max-width: none;
  }
  .channel-filter summary {
    width: 100%;
  }
  .channel-menu {
    width: 100%;
    position: relative;
    top: 8px;
    box-shadow: none;
    margin-bottom: 8px;
  }
  .filters select {
    width: 100%;
  }
  .kpis {
    margin-bottom: 18px;
  }
  .kpi {
    padding: 11px 12px;
    gap: 10px;
    display: flex;
  }
  .kpi .number {
    font-size: 20px;
    white-space: nowrap;
  }
  .kpi .label {
    font-size: 11px;
    display: block;
    margin-top: 0;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading .sub {
    font-size: 10px;
  }
  .section-heading,
  .panel-head {
    flex-wrap: wrap;
  }
  .panel-head {
    padding: 15px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .alert-row {
    padding: 13px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .alert-mark {
    width: 25px;
    height: 25px;
  }
  .alert-main {
    min-width: 180px;
  }
  .alert-main strong {
    font-size: 11px;
  }
  .alert-row > .btn,
  .ack-text {
    margin-left: 34px;
  }
  .ticket-table thead {
    display: none;
  }
  .ticket-table,
  .ticket-table tbody,
  .ticket-table tr,
  .ticket-table td {
    display: block;
  }
  .ticket-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 13px 15px;
    border-top: 1px solid var(--line);
    gap: 10px;
  }
  .ticket-table td {
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 11px;
  }
  .ticket-table td:first-child {
    grid-column: 1/-1;
  }
  .ticket-table .ticket-title {
    max-width: 100%;
    font-size: 11px;
  }
  .ticket-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .table-footer {
    padding: 12px 15px;
    line-height: 1.5;
    gap: 15px;
  }
  .operator-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .operator-card {
    padding: 18px;
  }
  .calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-radius: 7px;
  }
  .day-label {
    padding: 9px 1px;
    font-size: 9px;
  }
  .day {
    padding: 4px;
    min-height: 90px;
  }
  .day-number {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .day-add {
    font-size: 14px;
    padding: 0 1px;
  }
  .shift {
    padding: 3px;
    font-size: 8px;
    border-left-width: 1px;
  }
  .shift strong {
    font-size: 8px;
  }
  .shift .shift-time {
    display: none;
  }
  .calendar-tools {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }
  .calendar-tools input {
    font-size: 11px;
    width: 125px;
    padding: 6px;
  }
  .calendar-tools .btn {
    padding: 6px;
    min-height: 30px;
  }
  .calendar-tools .btn .icon svg {
    width: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .drawer {
    padding: 22px 20px;
  }
  .drawer-head h2 {
    font-size: 20px;
  }
  .drawer-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .auth {
    display: block;
  }
  .auth-side {
    padding: 28px;
    min-height: 185px;
  }
  .auth-side h2 {
    font-size: 23px;
    margin-top: 28px;
  }
  .auth-side p,
  .auth-side > .sub,
  .auth-route {
    display: none;
  }
  .auth-main {
    padding: 38px 28px;
  }
  .auth-form h1 {
    font-size: 25px;
  }
  .section-tabs {
    gap: 0;
  }
  .section-tabs button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .sync-info {
    font-size: 10px;
  }
  #toast {
    bottom: 82px;
  }
  .detail-grid {
    gap: 14px;
  }
  .panel-body {
    padding: 16px;
  }
  .notification-label {
    display: none;
  }
}
.space-top {
  margin-top: 16px;
}
.space-top-lg {
  margin-top: 24px;
}
.space-bottom {
  margin-bottom: 16px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
