.auth-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  position: relative;
  background: var(--bg);
  padding: 40px 6%;
  gap: 7%;
}
.auth-screen:before {
  content: "";
  position: absolute;
  inset: 0 38% 0 0;
  background:
    linear-gradient(90deg, #10091d22, #10091d00 50%, var(--bg)),
    linear-gradient(0deg, var(--bg), #10091d05 65%),
    url("/assets/city-night.webp") center/cover;
}
.auth-story,
.auth-card {
  position: relative;
  z-index: 1;
}
.auth-story {
  display: flex;
  flex-direction: column;
  min-height: 650px;
  padding: 5px 0 20px;
}
.auth-brand {
  margin-bottom: 100px;
}
.auth-story-copy {
  margin: auto 0 60px;
  max-width: 600px;
}
.auth-story h2 {
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  margin: 20px 0;
}
.auth-story h2 em {
  font-style: normal;
  color: #d1a0f5;
}
.auth-story p {
  max-width: 385px;
  color: #d1c3dd;
  font-size: 14px;
  line-height: 1.9;
}
.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff25;
  background: #10091d55;
  border-radius: 30px;
  padding: 8px 13px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.story-tag:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.story-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #bca9ce;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.story-footer:before {
  content: "";
  height: 1px;
  width: 45px;
  background: var(--gold);
}
.auth-card {
  align-self: center;
  width: 100%;
  max-width: 450px;
  padding: 38px;
  border: 1px solid #ffffff16;
  background: linear-gradient(145deg, #2d1b4590, #1a102bd9);
  border-radius: 24px;
  box-shadow: 0 16px 48px #05020d35;
  backdrop-filter: blur(20px);
  animation: rise 0.5s ease;
}
.auth-card h1 {
  font-size: 30px;
  letter-spacing: -0.05em;
  margin: 13px 0;
}
.auth-lead {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 28px;
}
.auth-form label,
.field span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 9px;
  color: #d9cce5;
}
.auth-form input,
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #10091d80;
  color: white;
  font-size: 12px;
  margin-bottom: 20px;
  min-height: 46px;
}
.auth-form input {
  display: block;
}
.auth-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
}
.auth-error {
  padding: 12px;
  background: #ff668712;
  border: 1px solid #ff66872e;
  border-radius: 9px;
  color: #ffb9c6;
  font-size: 12px;
  margin-bottom: 15px;
}
.auth-switch {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 24px 0;
}
.auth-switch button {
  background: none;
  border: 0;
  color: #d7a5ff;
  font-weight: 700;
  padding: 5px;
}
.auth-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
  font-size: 10px;
  color: var(--quiet);
  line-height: 1.8;
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  background: #130d20;
  border-right: 1px solid var(--line);
  padding: 30px 17px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 6px 46px;
}
.workspace-label {
  padding: 0 13px 15px;
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.navigation {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  min-height: 46px;
  padding: 11px 13px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.nav-item > span:first-child {
  width: 20px;
  font-size: 20px;
  color: #9985b2;
}
.nav-item:hover {
  background: #ffffff05;
  color: white;
}
.nav-item.active {
  background: linear-gradient(90deg, #8538c733, #8538c710);
  border-color: #b94cff24;
  color: white;
  box-shadow: inset 3px 0 var(--neon);
}
.nav-item.active > span:first-child {
  color: #ce8bff;
}
.nav-count {
  margin-left: auto;
  background: #b94cff22;
  color: #d6a9f9;
  padding: 3px 7px;
  font-size: 10px;
  border-radius: 5px;
}
.sidebar-scene {
  margin-top: auto;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  min-height: 142px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, #1a102bf0, #1a102b22),
    url("/assets/city-night.webp") 70% center/cover;
}
.sidebar-scene strong {
  font-size: 16px;
  letter-spacing: -0.04em;
}
.sidebar-scene small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #d0badf;
  margin-top: 5px;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 21px 7px 0;
  font-size: 10px;
  color: var(--muted);
}
.sidebar-bottom small {
  display: block;
  color: var(--quiet);
  font-size: 9px;
  margin: 7px 0 0 14px;
}
.connection-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--quiet);
}
.connection-dot.online {
  background: #8ee3b3;
  box-shadow: 0 0 9px #8ee3b340;
}
.connection-dot.offline {
  background: #ff9dac;
}
.main {
  min-width: 0;
  background:
    radial-gradient(ellipse at 85% 0, #8538c710, transparent 45%), var(--bg);
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: #160e24a0;
}
.breadcrumb {
  font-size: 11px;
  color: var(--quiet);
}
.breadcrumb span {
  margin: 0 14px;
  color: #645176;
}
.breadcrumb strong {
  color: #dacde7;
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.operator-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  min-width: 0;
}
.operator-chip > span:first-child {
  color: var(--gold);
}
#operator-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-button {
  padding: 8px 13px;
  min-height: 36px;
  font-size: 10px;
}
.view {
  max-width: 1650px;
  margin: auto;
  padding: 30px 36px 50px;
  animation: rise 0.4s ease;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: -0.055em;
  margin: 0 0 9px;
}
.page-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.desk-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #b94cff2a;
  border-radius: 16px;
  min-height: 152px;
  padding: 27px 30px;
  margin: 0 0 22px;
  background:
    linear-gradient(90deg, #2c1747 15%, #2c1747e8 40%, #25113635),
    url("/assets/city-night.webp") 75% 54% / cover;
}
.desk-banner h2 {
  font-size: 24px;
  letter-spacing: -0.045em;
  margin: 7px 0 8px;
}
.desk-banner p {
  font-size: 11px;
  line-height: 1.8;
  color: #d0bedf;
  max-width: 420px;
  margin: 0;
}
.banner-label {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.banner-orbit {
  flex: none;
  border: 1px solid #d8a4ff50;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #8538c730;
  color: #e4baff;
  font-size: 42px;
  transform: rotate(-8deg);
  margin-right: 25px;
  backdrop-filter: blur(8px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 24px;
}
.stat {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px 20px;
  background: linear-gradient(130deg, #28193880, #1c122c);
  animation: rise 0.45s ease both;
}
.stat:nth-child(2) {
  animation-delay: 50ms;
}
.stat:nth-child(3) {
  animation-delay: 100ms;
}
.stat:nth-child(4) {
  animation-delay: 150ms;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 12px;
}
.stat strong {
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.stat:nth-child(2) strong {
  color: #d5b2f8;
}
.stat:nth-child(3) strong {
  color: #ec9de4;
}
.stat:nth-child(4) strong {
  color: var(--gold);
}
.workspace,
.rules-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 20px;
  align-items: start;
}
.list-panel,
.detail-panel,
.rules-card {
  background: linear-gradient(140deg, #24163880, #1a102b);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 8px 28px #08030f14;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}
.panel-head h2,
.section-title {
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.025em;
}
.panel-head small {
  display: block;
  font-size: 10px;
  color: var(--quiet);
  margin-top: 5px;
}
.filters {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
}
.filters select {
  width: 50%;
  min-width: 0;
  background: #10091d66;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 10px;
  min-height: 40px;
}
.request-list {
  max-height: 640px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #654681 transparent;
}
.request-row {
  display: block;
  width: 100%;
  text-align: left;
  color: white;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px;
  background: transparent;
  animation: rise 0.3s ease both;
}
.request-row:nth-child(2) {
  animation-delay: 40ms;
}
.request-row:nth-child(3) {
  animation-delay: 80ms;
}
.request-row:hover {
  background: #b94cff09;
}
.request-row.selected {
  background: linear-gradient(90deg, #8538c724, #8538c708);
  box-shadow: inset 3px 0 var(--neon);
}
.request-row-top,
.row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.request-row strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-row p {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0 15px;
}
.row-bottom {
  font-size: 9px;
  color: var(--quiet);
}
.detail-panel {
  min-height: 460px;
}
.detail-top {
  padding: 25px;
  border-bottom: 1px solid var(--line);
  background: #ffffff02;
}
.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.request-id {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--quiet);
  overflow-wrap: anywhere;
}
.detail-top h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.detail-meta {
  font-size: 10px;
  color: var(--quiet);
  line-height: 1.7;
}
.detail-body {
  padding: 25px;
}
.section-block {
  margin-bottom: 25px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #b94cff16;
  color: #d1a0f5;
  font-size: 9px;
}
.message-box {
  background: #10091d80;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  color: #cfbfdc;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.analysis-grid,
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-pill {
  background: #ffffff05;
  border: 1px solid var(--line);
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--quiet);
  font-size: 10px;
}
.info-pill strong {
  color: #e7d9f3;
  margin-left: 7px;
}
.facts {
  margin-top: 10px;
}
.fact {
  padding: 6px 9px;
  background: #b94cff10;
  color: #c8a4e3;
  border-radius: 5px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.draft-box {
  border: 1px solid #b94cff35;
  border-radius: 11px;
  background: linear-gradient(135deg, #8538c712, #ec55d805);
  padding: 18px;
}
.draft-box textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: 0;
  color: #ecdef7;
  font-size: 12px;
  line-height: 1.9;
  resize: vertical;
}
.draft-meta {
  border-top: 1px solid #b94cff20;
  padding-top: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #bd92dd;
}
.draft-meta strong {
  white-space: nowrap;
}
.citation {
  border-left: 2px solid #b94cff70;
  border-radius: 0 8px 8px 0;
  padding: 12px 15px;
  background: #b94cff08;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.citation strong {
  display: block;
  color: #d5b0f3;
  margin-bottom: 6px;
}
.citation p {
  margin: 0;
  white-space: pre-wrap;
}
.escalation-note {
  background: #ffd12e0b;
  border: 1px solid #ffd12e24;
  border-radius: 9px;
  padding: 13px;
  font-size: 11px;
  color: #e9ca82;
  line-height: 1.7;
  margin-top: 13px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.muted-note {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.8;
}
.rule-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 20px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: white;
}
.rule-row:hover,
.rule-row.selected {
  background: #b94cff10;
}
.rule-row.selected {
  box-shadow: inset 3px 0 var(--neon);
}
.rule-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border-radius: 9px;
  flex: none;
  background: #b94cff18;
  color: #ca94ed;
  font-size: 20px;
}
.rule-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rule-row small {
  display: block;
  font-size: 9px;
  color: var(--quiet);
  margin-top: 7px;
}
.rule-content {
  padding: 26px;
}
.rule-content h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.rule-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #10091d80;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font:
    12px/1.9 Manrope,
    sans-serif;
  color: #cdbddc;
  max-height: 560px;
  overflow: auto;
}
.rule-actions {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}
.rules-banner {
  background: linear-gradient(110deg, #281841, #1a102b);
  border-left: 3px solid var(--gold);
}
.rules-banner .banner-orbit {
  color: var(--gold);
  background: #ffd12e08;
  border-color: #ffd12e35;
}
.toast {
  position: fixed;
  right: 25px;
  top: 90px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 15px 20px;
  background: #382149;
  border: 1px solid #b94cff66;
  border-radius: 12px;
  box-shadow: 0 16px 48px #05020d35;
  z-index: 30;
  font-size: 12px;
  line-height: 1.7;
  animation: rise 0.2s ease;
}
.toast.error {
  background: #43202e;
  border-color: #ff668755;
  color: #ffccd5;
}
dialog {
  width: min(540px, calc(100vw - 28px));
  max-height: 90svh;
  overflow: auto;
  border: 1px solid #b94cff40;
  border-radius: 20px;
  padding: 0;
  color: white;
  background: #21152f;
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #080310b8;
  backdrop-filter: blur(8px);
}
dialog form {
  padding: 28px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-heading h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 0;
}
.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.8;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 12px;
  }
  .sidebar .brand {
    gap: 8px;
  }
  .sidebar .brand strong {
    font-size: 12px;
  }
  .view {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .workspace,
  .rules-layout {
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  }
  .auth-screen {
    gap: 5%;
    padding: 35px 4%;
  }
  .auth-card {
    padding: 30px;
  }
  .auth-story h2 {
    font-size: 53px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .draft-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .auth-screen {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .auth-story h2 {
    font-size: 43px;
  }
  .auth-story {
    min-height: 620px;
  }
  .auth-brand {
    margin-bottom: 50px;
  }
  .workspace,
  .rules-layout {
    grid-template-columns: 1fr;
  }
  .request-list {
    max-height: 300px;
  }
  .detail-panel {
    min-height: 350px;
  }
  .desk-banner {
    padding: 24px;
  }
  .banner-orbit {
    margin-right: 0;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 17px 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .auth-screen {
    display: flex;
    flex-direction: column;
    padding: 28px 20px 40px;
    gap: 22px;
  }
  .auth-screen:before {
    inset: 0 0 25%;
    background:
      linear-gradient(0deg, var(--bg), #10091d40),
      url("/assets/city-night.webp") 65% center/cover;
  }
  .auth-story {
    min-height: 0;
    width: 100%;
    padding: 0;
  }
  .auth-brand {
    margin-bottom: 38px;
  }
  .auth-story-copy {
    margin: 0;
  }
  .auth-story h2 {
    font-size: 42px;
    margin: 16px 0;
  }
  .auth-story p {
    font-size: 12px;
    margin-bottom: 0;
    max-width: 340px;
  }
  .story-footer {
    display: none;
  }
  .auth-card {
    max-width: none;
    padding: 27px;
  }
  .auth-card h1 {
    font-size: 27px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    padding: 0 0 20px;
  }
  .sidebar .brand strong {
    font-size: 15px;
  }
  .workspace-label,
  .sidebar-bottom,
  .sidebar-scene {
    display: none;
  }
  .navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
  }
  .nav-item {
    justify-content: center;
    padding: 10px 6px;
    font-size: 10px;
    gap: 6px;
    min-height: 44px;
  }
  .nav-item > span:first-child {
    font-size: 16px;
    width: auto;
  }
  .nav-count {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 8px;
  }
  .operator-chip {
    display: none;
  }
  .view {
    padding: 24px 16px 40px;
  }
  .page-heading {
    gap: 15px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .button {
    padding: 10px 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 28px;
  }
  .desk-banner {
    min-height: 150px;
    padding: 23px 20px;
  }
  .desk-banner h2 {
    font-size: 23px;
  }
  .desk-banner p {
    max-width: 300px;
    font-size: 10px;
  }
  .banner-orbit {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
  .workspace,
  .rules-layout {
    gap: 16px;
  }
  .detail-top,
  .detail-body,
  .rule-content {
    padding: 22px;
  }
  .toast {
    top: 20px;
    right: 16px;
  }
  .empty-state {
    padding: 60px 24px;
  }
}
@media (max-width: 420px) {
  .page-heading {
    flex-direction: column;
  }
  .page-heading > .button {
    width: 100%;
    font-size: 12px;
  }
  .nav-item {
    font-size: 9px;
    gap: 5px;
  }
  .nav-count {
    font-size: 9px;
    padding: 2px 5px;
  }
  .banner-orbit {
    display: none;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .auth-story h2 {
    font-size: 38px;
  }
  .request-row-top {
    gap: 7px;
  }
  .request-row strong {
    font-size: 11px;
  }
  .badge {
    font-size: 9px;
  }
  .filters {
    padding: 0 15px 15px;
  }
  .request-row,
  .panel-head {
    padding: 18px;
  }
  .detail-top,
  .detail-body {
    padding: 18px;
  }
  .action-row .button {
    flex: 1;
  }
  .detail-top h2 {
    font-size: 21px;
  }
  .dialog-actions .button {
    flex: 1;
  }
}
/* Final accessibility and visual polish. */
.error-state,
.empty-list {
  padding: 35px 22px;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}
.error-state {
  color: #ffb9c6;
  background: #ff668708;
}
.detail-panel[aria-busy="true"] .action-row:before {
  content: "Обрабатываем обращение…";
  display: block;
  width: 100%;
  color: #d1a0f5;
  font-size: 12px;
  padding: 5px 0 12px;
}
.auth-switch button {
  min-height: 40px;
}
.auth-form label,
.field span {
  font-size: 12px;
}
.auth-note {
  font-size: 11px;
}
.auth-lead {
  font-size: 13px;
}
.page-heading p {
  font-size: 12px;
}
.row-bottom,
.detail-meta,
.request-id,
.panel-head small {
  font-size: 11px;
}
.stat span {
  font-size: 11px;
}
.filters select {
  font-size: 11px;
}
.request-row p {
  font-size: 12px;
}
.request-row strong {
  font-size: 13px;
}
.rule-row small,
.rule-row strong {
  font-size: 12px;
}
.sidebar-bottom,
.sidebar-bottom small {
  font-size: 10px;
}
.rules-card .empty-state {
  min-height: 360px;
}
.auth-card {
  min-width: 0;
}
.auth-story {
  min-width: 0;
}
.auth-story h2 {
  overflow-wrap: normal;
}
.dialog-heading .icon-button {
  flex: none;
}
.citation,
.facts,
.info-pill {
  overflow-wrap: anywhere;
}
.request-row-top strong {
  min-width: 0;
}
.draft-box textarea:focus-visible {
  outline: 1px solid #b94cff88;
  outline-offset: 6px;
}
.auth-form input:autofill {
  box-shadow: 0 0 0 40px #21152f inset;
  -webkit-text-fill-color: white;
}
.nav-item:hover > span:first-child {
  color: #d4a7f6;
}
@media (max-width: 700px) {
  .button,
  .nav-item,
  .icon-button,
  .filters select {
    min-height: 44px;
  }
  .topbar .logout-button {
    min-height: 38px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .desk-banner p {
    font-size: 11px;
  }
  .row-bottom {
    font-size: 10px;
  }
  .auth-story-copy {
    max-width: 460px;
  }
  .auth-story h2 {
    font-size: clamp(34px, 8vw, 45px);
  }
  .auth-screen:before {
    background-position: 65% top;
  }
  .detail-topline {
    flex-wrap: wrap;
  }
  .draft-meta {
    font-size: 11px;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .nav-item {
    font-size: 11px;
  }
  .nav-item > span:first-child {
    font-size: 15px;
  }
  .nav-item {
    gap: 5px;
  }
  .nav-count {
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  .nav-item {
    font-size: 10px;
  }
  .navigation {
    gap: 3px;
  }
  .nav-item {
    padding: 9px 3px;
  }
}
.investigation { border-color:#b94cff4a; }.investigation-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.verdict{padding:6px 9px;border-radius:6px;font-size:10px;font-weight:800}.verdict-CONFIRMED{background:#8ee3b326;color:#aaf0c8}.verdict-PARTIALLY_CONFIRMED{background:#ffd36b24;color:#ffe098}.verdict-NOT_VERIFIED{background:#ffffff12;color:#d0c6d9}.verdict-CONTRADICTED{background:#ff668726;color:#ffb2c0}.verdict-INSUFFICIENT_EVIDENCE{background:#69b6ff28;color:#b7dcff}.investigation-summary{line-height:1.75;color:var(--muted)}.investigation-list{display:grid;gap:7px;margin-top:18px}.claim,.evidence{padding:8px 10px;background:#ffffff05;border-radius:7px;font-size:11px}.evidence{display:flex;gap:8px;align-items:flex-start}.evidence-icon{font-weight:800}.evidence-icon.match{color:#8ee3b3}.evidence-icon.mismatch{color:#ff9dac}.evidence-icon.missing{color:#ffe098}.checks-wrap,.possible-reasons,.proposed-action,.tool-trace{margin-top:18px}.checks{width:100%;border-collapse:collapse;margin-top:8px;font-size:11px}.checks th,.checks td{padding:8px;text-align:left;border-bottom:1px solid var(--line)}.checks tr.match td:first-child{color:#8ee3b3}.checks tr.mismatch td:first-child{color:#ff9dac}.possible-reasons{font-size:11px;color:var(--muted)}.possible-reasons li{margin:6px 0}.proposed-action{padding:12px;border:1px solid #b94cff35;background:#b94cff0c;border-radius:9px}.proposed-action p{font-size:11px;color:var(--muted)}.approved{color:#aaf0c8;font-size:11px}.tool-trace{display:flex;gap:7px;flex-wrap:wrap}.tool-trace strong{width:100%}.trace-step{opacity:0;animation:trace-in .35s ease forwards;padding:6px 8px;background:#ffffff06;border-radius:6px;font-size:10px;color:var(--muted)}@keyframes trace-in{to{opacity:1}}@media(max-width:700px){.checks{display:block;overflow-x:auto}.proposed-action .button{width:100%}}

.investigation-previews { display:flex; gap:10px; flex-wrap:wrap; margin:16px 0; }
.investigation-previews img { width:min(100%,180px); max-height:220px; object-fit:contain; border:1px solid var(--line); border-radius:8px; background:#10091d; }
.claim { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.investigation-warning { margin:12px 0; padding:10px; border:1px solid #ff668766; border-radius:8px; color:#ffb2c0; background:#ff668714; font-size:11px; }
