:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: #121922;
  --panel2: #17212c;
  --line: #25303c;
  --muted: #8996a6;
  --text: #edf2f6;
  --accent: #84cc16;
  --red: #ff857e;
  --amber: #f0c16e;
  --blue: #86b9ff;
  --sidebar: 226px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
input,
textarea,
select {
  background: #0c131c;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid #759b4b;
  border-color: #759b4b;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #101720;
  border-right: 1px solid var(--line);
  padding: 27px 17px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 6px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 19px;
  line-height: 1.15;
}
.brand > div > span {
  display: block;
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 2.1px;
  margin-top: 6px;
  color: #a4b1bf;
}
.brand-mark {
  width: 39px;
  height: 42px;
  border-radius: 12px 3px 12px 3px;
  background: var(--accent);
  color: #142019;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand-mark > span {
  font-size: 16px;
  align-self: flex-start;
  margin-top: 6px;
}
.workspace {
  margin: 34px 0 27px;
  border: 1px solid var(--line);
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  font-size: 12px;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.workspace-icon {
  background: #273448;
  color: #d6e6fa;
  border-radius: 6px;
  width: 28px;
  height: 30px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.workspace-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #617083;
  padding: 0 12px;
  margin-bottom: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  padding: 11px 12px;
  border-radius: 7px;
  color: #9aa8b8;
  text-align: left;
  margin-bottom: 5px;
  font-size: 12px;
}
.nav-item:hover {
  background: #1b2631;
  color: var(--text);
}
.nav-item.active {
  background: #243126;
  color: #c4edaa;
}
.nav-item b {
  margin-left: auto;
  background: #354a30;
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 6px;
}
.nav-icon {
  font-size: 19px;
  width: 22px;
  line-height: 1;
}
.sidebar-note {
  margin-top: auto;
  margin-bottom: 25px;
  padding: 17px 12px;
  border: 1px solid #293633;
  border-radius: 10px;
  background: linear-gradient(140deg, #1b2825, #101720);
}
.sidebar-note strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0;
}
.sidebar-note p {
  font-size: 11px;
  color: #93a598;
  line-height: 1.8;
}
.spark {
  color: var(--accent);
  font-size: 22px;
}
.language-dots {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}
.language-dots span {
  font:
    9px Consolas,
    monospace;
  border: 1px solid #334438;
  border-radius: 4px;
  padding: 3px 6px;
  color: #b2c1b8;
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 5px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #2c3543;
  color: #c9d5e4;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.operator strong {
  font-size: 12px;
}
.operator small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}
.status-dot {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
}
main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 31px;
  gap: 10px;
}
.crumb {
  font-size: 10px;
  color: #8795a7;
  letter-spacing: 0.7px;
}
.crumb > span:first-child {
  margin: 0 13px;
  color: #435166;
}
.crumb > span:last-child {
  color: #c0ccda;
  letter-spacing: 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.connection {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.connection.live {
  color: #9cc68b;
}
.connection.live:before {
  content: "●";
  font-size: 7px;
  margin-right: 7px;
}
.language-picker {
  display: flex !important;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.language-picker select {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 4px;
  max-width: 120px;
}
.language-picker option {
  background: var(--panel);
}
#page {
  padding: 27px 30px 40px;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #7e8d9e;
  display: block;
  margin-bottom: 7px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.btn {
  background: var(--panel2);
  border: 1px solid #32404e;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover {
  background: #25313f;
  border-color: #58697d;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14221a;
  font-weight: 650;
}
.btn.primary:hover {
  background: #ccff91;
}
.btn.ghost {
  background: none;
  color: #b3becb;
  border-color: var(--line);
}
.btn.small {
  padding: 6px 10px;
  font-size: 10px;
}
.icon-btn {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #8b99aa;
  padding: 0 6px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.stat:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #546476, transparent);
}
.stat.green:after {
  background: linear-gradient(90deg, #82b94b, transparent);
}
.stat.red:after {
  background: linear-gradient(90deg, #d16c68, transparent);
}
.stat.amber:after {
  background: linear-gradient(90deg, #b8904a, transparent);
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8f9cab;
  font-size: 10px;
}
.stat-top > span:last-child {
  font-size: 17px;
  color: #6a7e93;
}
.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -1px;
  margin-top: 7px;
}
.stat small {
  font-size: 9px;
  color: #6f8194;
}
.stat.red strong {
  color: #ffb1a8;
}
.stat.green strong {
  color: #cbecb1;
}
.inbox-shell {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel);
}
.filters {
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 53px;
}
.filter-tab {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 17px 0;
  position: relative;
}
.filter-tab.active {
  color: var(--accent);
}
.filter-tab.active:after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -1px;
  background: var(--accent);
  height: 2px;
}
.live-label {
  margin-left: auto;
  font-size: 9px;
  color: #6f977d;
}
.live-label:before {
  content: "●";
  font-size: 6px;
  margin-right: 6px;
}
.toolbar {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 9px;
}
.search {
  flex: 1;
  min-width: 100px;
  padding: 8px 11px;
  font-size: 11px;
}
.toolbar select {
  font-size: 10px;
  padding: 7px 9px;
  max-width: 180px;
}
.inbox-content {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(400px, 1.4fr);
  min-height: 580px;
}
.ticket-list {
  border-right: 1px solid var(--line);
  max-height: 880px;
  overflow: auto;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 17px;
  font-size: 9px;
  color: #738296;
  border-bottom: 1px solid #1f2a36;
}
.ticket-row {
  border: 0;
  border-bottom: 1px solid #232e3b;
  background: none;
  color: inherit;
  display: block;
  width: 100%;
  text-align: left;
  padding: 17px 17px 15px;
  position: relative;
  transition: background 0.15s;
}
.ticket-row:hover {
  background: #192430;
}
.ticket-row.selected {
  background: #202c38;
}
.ticket-row.selected:before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.ticket-row.p0:not(.selected):before {
  position: absolute;
  content: "";
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: #cc716c;
}
.row-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 10px;
}
.row-top time {
  margin-left: auto;
  color: #8d9bad;
  font-size: 9px;
}
.row-title {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #91a0b1;
  font-size: 9px;
}
.row-bottom .person {
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #3a4655;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  white-space: nowrap;
  line-height: 1.4;
}
.badge.p0 {
  color: #ffaea6;
  background: #442b2e;
  border-color: #694043;
}
.badge.p1 {
  color: #f2cf8b;
  background: #3e3427;
  border-color: #5a4932;
}
.badge.p2 {
  color: #a2c6fa;
  background: #233247;
  border-color: #344d69;
}
.badge.p3 {
  color: #afbdcd;
  background: #29313d;
  border-color: #3e4b5c;
}
.badge.language {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.4px;
  background: #202d3a;
  color: #bacbdf;
  border-color: #334456;
}
.badge.human {
  color: #cebaa3;
  background: #312d28;
  border-color: #484035;
}
.badge.success {
  color: #b6d898;
  background: #243426;
  border-color: #3c5135;
}
.badge.waiting {
  color: #d9c089;
  background: #343023;
  border-color: #4b4430;
}
.detail {
  padding: 20px 24px 25px;
  min-width: 0;
  max-height: 880px;
  overflow: auto;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-id {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #8e9eb1;
}
.detail-title {
  font-size: 18px;
  font-weight: 550;
  line-height: 1.5;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.detail-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-caption {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8d9aab;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-caption .right {
  margin-left: auto;
  letter-spacing: 0;
}
.ai-card {
  border: 1px solid #344b38;
  background: linear-gradient(120deg, #1d2b24, #17201e);
  padding: 15px 17px;
  border-radius: 9px;
  margin-bottom: 20px;
}
.ai-card .section-caption {
  color: #a7cb95;
}
.ai-summary {
  font-size: 12px;
  color: #d7e4d1;
  line-height: 1.8;
}
.ai-facts {
  list-style: none;
  padding: 0;
  margin: 11px 0 0;
}
.ai-facts li {
  font-size: 10px;
  color: #a5b7a7;
  margin: 6px 0;
  padding-left: 12px;
  position: relative;
}
.ai-facts li:before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #a8bf9e;
  margin-top: 12px;
}
.confidence-track {
  width: 65px;
  height: 3px;
  background: #394a36;
  border-radius: 2px;
}
.confidence-track i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #a6cf7b;
}
.message-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 14px;
  background: #101721;
}
.message-head {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #adbac9;
  margin-bottom: 9px;
}
.message-text {
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.citation {
  display: block;
  margin-top: 8px;
  border: 1px solid #314355;
  background: #15212d;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 10px;
  color: #abc9e8;
}
.citation summary {
  cursor: pointer;
}
.citation p {
  margin-top: 8px;
  line-height: 1.8;
  color: #95a8bc;
}
.detail-section {
  margin: 18px 0;
}
.draft {
  width: 100%;
  min-height: 155px;
  font-size: 11px;
  border-color: #3b4e62;
  background: #111b26;
  padding: 13px 14px;
}
.draft-note {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #77899d;
  margin: 6px 0 11px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.action-row .primary {
  margin-left: auto;
}
.alert {
  border: 1px solid #645238;
  background: #312b22;
  color: #dcc59c;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 11px;
  margin-bottom: 12px;
}
.alert.info {
  background: #162636;
  border-color: #2e4b63;
  color: #a9c9e5;
}
.alert.error {
  background: #382427;
  border-color: #63383f;
  color: #e8a5a8;
}
.details-list {
  padding-left: 16px;
  color: #a6b4c5;
  font-size: 10px;
  line-height: 1.9;
}
.timeline {
  border-left: 1px solid #344151;
  margin: 12px 0 0 5px;
  padding-left: 15px;
}
.event {
  position: relative;
  padding-bottom: 15px;
  font-size: 10px;
  color: #a6b4c3;
}
.event:before {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  background: #64788e;
  border-radius: 50%;
  left: -18px;
  top: 6px;
}
.event time {
  display: block;
  font-size: 9px;
  color: #6d8096;
}
.event p {
  white-space: pre-wrap;
  margin-top: 4px;
  color: #c0ccd9;
  overflow-wrap: anywhere;
}
.empty {
  text-align: center;
  padding: 60px 25px;
  color: #7e90a6;
}
.empty .empty-symbol {
  display: block;
  font-size: 37px;
  color: #41546a;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 15px;
  color: #bdcad8;
  margin-bottom: 7px;
}
.empty p {
  font-size: 11px;
  max-width: 270px;
  margin: 0 auto 18px;
}
.page-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  max-width: 1050px;
}
.settings-grid .page-panel {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  margin-bottom: 15px;
  color: #aebdce;
}
label input,
label select,
label textarea {
  width: 100%;
  font-size: 12px;
}
.hint {
  font-size: 10px;
  color: #7b8b9f;
  line-height: 1.8;
  margin: 10px 0 18px;
}
.settings-grid h3 {
  margin-bottom: 18px;
}
.step {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  font-size: 11px;
  color: #9aabba;
}
.step b {
  background: #253a2b;
  color: #b8dca3;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
}
.step p strong {
  display: block;
  color: #d4dfeb;
  margin-bottom: 5px;
  font-weight: 500;
}
.knowledge-search {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 20px 0;
}
.rule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rule-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 19px;
  border-radius: 9px;
}
.rule-card h3 {
  font-size: 12px;
  color: #becddd;
  margin: 10px 0;
}
.rule-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #95a6b9;
  white-space: pre-wrap;
}
.table-wrap {
  overflow: auto;
}
.metrics-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
.metrics-table th {
  font-size: 9px;
  color: #7d8fa4;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}
.metrics-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #202c39;
  color: #bccbdc;
}
.metric-explainer {
  font-size: 11px;
  color: #8fa0b3;
  line-height: 1.8;
  max-width: 800px;
  margin: 14px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 31px;
  border-top: 1px solid var(--line);
  color: #5f7288;
  font-size: 9px;
  gap: 15px;
}
footer > span:first-child {
  color: #8396ac;
}
dialog {
  background: #141d28;
  border: 1px solid #344254;
  border-radius: 13px;
  color: var(--text);
  width: min(580px, 94vw);
  padding: 25px;
  box-shadow: 0 30px 120px #0009;
  max-height: 90vh;
}
dialog::backdrop {
  background: #03070bc9;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}
.modal-head h2 {
  font-size: 23px;
}
.modal-head + p {
  font-size: 12px;
  margin-bottom: 21px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 8px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(var(--sidebar) + 30px);
  max-width: min(650px, 80vw);
  padding: 13px 18px;
  background: #263b2b;
  border: 1px solid #526e43;
  color: #d8efc9;
  border-radius: 9px;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 12px 40px #0006;
  display: none;
}
#toast.error {
  background: #402b2d;
  border-color: #795155;
  color: #ffd4cd;
}
.loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9bca1;
  font-size: 11px;
}
.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid #344438;
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.age-bump {
  color: #c4d9ac !important;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #344151;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@media (min-width: 1600px) {
  #page {
    max-width: 1600px;
    width: 100%;
    margin: auto;
  }
  .inbox-content {
    grid-template-columns: minmax(330px, 0.9fr) minmax(500px, 1.4fr);
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 196px;
  }
  #page {
    padding: 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .inbox-content {
    grid-template-columns: minmax(240px, 0.9fr) minmax(330px, 1.3fr);
  }
  .detail {
    padding: 18px;
  }
  .row-bottom .person {
    max-width: 80px;
  }
  .connection {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 8px 10px;
  }
}
@media (max-width: 980px) {
  :root {
    --sidebar: 72px;
  }
  .sidebar {
    align-items: center;
    padding: 20px 8px;
  }
  .brand > div,
  .workspace,
  .nav-label,
  .nav-item > span:not(.nav-icon),
  .nav-item b,
  .sidebar-note,
  .operator > div {
    display: none;
  }
  .brand {
    padding: 0;
  }
  .nav-item {
    width: 45px;
    justify-content: center;
    padding: 12px 0;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .operator {
    margin-top: auto;
    border: 0;
  }
  .topbar .crumb {
    font-size: 9px;
  }
  .inbox-content {
    grid-template-columns: minmax(240px, 1fr) minmax(340px, 1.5fr);
  }
  .stats-grid {
    gap: 9px;
  }
  .stat {
    padding: 12px;
  }
  .filters {
    gap: 17px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
}
@media (max-width: 720px) {
  .inbox-content {
    display: block;
  }
  .ticket-list {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .detail {
    max-height: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    display: block;
  }
  .heading-actions {
    margin-top: 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .crumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  #page {
    padding: 18px 12px;
  }
  .filters {
    gap: 14px;
    padding: 0 12px;
    overflow: auto;
    white-space: nowrap;
  }
  .filter-tab {
    font-size: 10px;
  }
  .live-label {
    display: none;
  }
  .toolbar {
    padding: 12px;
  }
  .toolbar select {
    max-width: 120px;
  }
  .rule-list {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat small {
    font-size: 8px;
  }
  footer {
    padding: 15px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .language-picker select {
    max-width: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Operations Console palette and hierarchy from the Google Stitch design. */
.model-architecture {
  padding: 24px 0;
  color: var(--accent);
  font:
    13px Consolas,
    monospace;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
}
.model-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 0 24px;
}
.model-facts small {
  display: block;
  color: var(--muted);
}
.model-facts strong {
  display: block;
  font-size: 23px;
  margin-top: 5px;
}
.language-notice {
  border-left: 2px solid #8b5cf6;
  padding: 9px 12px;
  margin: 18px 0;
  color: #b8accf;
  font-size: 12px;
  background: #171426;
}
.page-panel .hint + .btn {
  margin-top: 20px;
}

.row-category {
  color: var(--accent);
  font-size: 11px;
  margin-top: 8px;
}
.category-correction input,
.category-correction select {
  width: 100%;
  margin: 6px 0;
}

.game-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0; }
.dictionary-pairs { display:grid; grid-template-columns:40px minmax(0,1fr); gap:10px; font-size:13px; }
.dictionary-pairs dt { color:var(--muted); }
.dictionary-pairs dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.archive-dialog { width:min(760px,calc(100vw - 36px)); max-height:85vh; overflow:auto; background:var(--panel,#171b21); color:var(--text,#e8edf2); padding:28px; border:1px solid #34404c; border-radius:16px; }
.archive-dialog::backdrop { background:#000a; }
.rule-card p,.citation p { overflow-wrap:anywhere; }
