:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #252b33;
  background: #f7f8fa;
  font-synthesis: none;
  --accent: #087f6d;
  --accent-soft: #e9f5f1;
  --line: #e5e8ec;
  --muted: #858b94;
  --danger: #c3434c;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #88cbbb;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #98d1c3;
  outline-offset: 1px;
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.4;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
code {
  font-family: "SFMono-Regular", Consolas, monospace;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 30px;
  font-size: 23px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: #89919b;
  margin-top: 2px;
}
.brand-mark {
  width: 38px;
  height: 42px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
  fill: #fff2;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 9px;
  margin-bottom: 34px;
  font-size: 12px;
  font-weight: 600;
}
.workspace-avatar {
  width: 30px;
  height: 30px;
  background: #f1f2f5;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.workspace small {
  display: block;
  font-size: 8px;
  color: #9298a1;
  margin-top: 2px;
}
.workspace > svg {
  margin-left: auto;
  width: 13px;
  color: #a4a9b1;
}
.nav-caption {
  font-size: 10px;
  color: #969ba4;
  padding: 0 12px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 6px;
  color: #646c77;
  margin-bottom: 6px;
  font-size: 13px;
}
.nav-link:hover {
  background: #f6f7f8;
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  min-width: 19px;
  text-align: center;
  font-size: 10px;
  background: #00000005;
  border-radius: 4px;
  color: #9299a1;
}
.active .nav-count {
  color: var(--accent);
  background: #d6ebe3;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 10px 0;
  font-size: 11px;
  color: #646c77;
}
.sidebar-bottom > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.sidebar-bottom > small {
  display: flex;
  justify-content: space-between;
  color: #a2a7af;
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.dot.neutral {
  background: #a5adb7;
}
.dot.error {
  background: var(--danger);
}
.workspace-main {
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #949ba5;
}
.breadcrumb svg {
  width: 12px;
  height: 12px;
}
.breadcrumb span {
  color: #454d58;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #858d97;
  font-weight: 600;
}
.local-badge svg {
  width: 12px;
  height: 12px;
}
main {
  width: 100%;
  max-width: 1560px;
  padding: 33px 38px 50px;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 7px;
}
.page-heading p {
  color: #8b929c;
  font-size: 12px;
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.button {
  height: 36px;
  border: 1px solid #dce0e5;
  border-radius: 5px;
  background: #fff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.button:hover {
  background: #f3f5f7;
}
.button svg {
  width: 15px;
  height: 15px;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button.primary:hover {
  background: #076c5e;
}
.button.danger-quiet {
  color: #707780;
}
.button.danger-quiet:hover {
  background: #fff0f1;
  color: var(--danger);
  border-color: #f0c7cc;
}
.button.danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.button.small {
  height: 30px;
  font-size: 11px;
  padding: 0 10px;
}
.icon-button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #8c939e;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #edf0f3;
  color: #343b44;
}
.icon-button.delete:hover {
  background: #fff1f2;
  color: var(--danger);
}
.icon-button.bordered {
  border: 1px solid #dce0e5;
  background: #fff;
  width: 40px;
  height: 40px;
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 30px;
}
.metric {
  padding: 20px 23px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.metric > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #838b95;
}
.metric > span svg {
  width: 15px;
  height: 15px;
  color: #a6aeb8;
}
.metric > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
}
.metric strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.metric small {
  color: #969da7;
  font-size: 10px;
}
.metric:first-child strong {
  color: var(--accent);
}
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.tabs {
  display: flex;
  align-self: stretch;
  gap: 23px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  border: 0;
  background: none;
  font-size: 12px;
  padding: 11px 0 16px;
  color: #8b929d;
  white-space: nowrap;
}
.tab.active {
  color: #283039;
  font-weight: 600;
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.tab span,
.count-label {
  font-size: 10px;
  color: #8c949e;
  font-weight: 500;
  background: #e9ecf0;
  min-width: 18px;
  text-align: center;
  padding: 1px 5px;
  border-radius: 4px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  width: 100%;
  margin-bottom: 9px;
}
.search svg {
  color: #969eaa;
  width: 15px;
  height: 15px;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  font-size: 11px;
  padding: 7px 0;
  outline: none;
}
.search input::placeholder {
  color: #a6acb5;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #8c949e;
  font-weight: 500;
  background: #f8f9fa;
  height: 40px;
  padding: 0 18px;
  white-space: nowrap;
}
td {
  padding: 19px 18px;
  border-top: 1px solid #eef0f3;
  vertical-align: middle;
}
td:first-child {
  min-width: 150px;
}
tbody tr:hover {
  background: #fcfdfd;
}
.cell-title {
  font-size: 12px;
  font-weight: 550;
  color: #35404c;
  overflow-wrap: anywhere;
  max-width: 240px;
}
.cell-sub {
  display: block;
  font-size: 10px;
  color: #9aa1ab;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.cell-account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #697e9f;
  background: #eef1f8;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.tone-1 {
  color: #a0784e;
  background: #f9f1e8;
}
.avatar.tone-2 {
  color: #59857e;
  background: #ebf4f1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 220px;
}
.tag {
  background: #f0f2f5;
  color: #66717e;
  border-radius: 4px;
  font-size: 10px;
  padding: 3px 7px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-code {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #f3f5f7;
  border: 1px solid #e9ecf0;
  border-radius: 4px;
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  color: #89909b;
  background: #f0f2f5;
}
.badge.green {
  color: #178171;
  background: #eaf5ef;
}
.badge.red {
  color: #bd5e68;
  background: #fbebed;
}
.badge.amber {
  color: #a87b36;
  background: #faf2e2;
}
.badge .dot {
  width: 5px;
  height: 5px;
}
.row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 17px;
  flex-shrink: 0;
  position: relative;
  margin: 0 9px 0 0;
  border: 0;
  border-radius: 10px;
  background: #d5dbe2;
  cursor: pointer;
  transition: background 0.15s;
}
.switch:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--accent);
}
.switch:checked:before {
  transform: translateX(13px);
}
.switch:disabled {
  opacity: 0.5;
  cursor: wait;
}
.section-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 1px;
  font-size: 10px;
  color: #a1a8b2;
}
.section-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-footer svg {
  width: 12px;
  height: 12px;
}
.section-footer code {
  color: #6e7885;
}
.divider {
  color: #d0d5dc;
  margin: 0 5px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 58px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.empty-state.compact {
  padding: 35px 20px;
}
.empty-symbol {
  width: 52px;
  height: 52px;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  background: #f8fafb;
  display: grid;
  place-items: center;
  color: #8caaa5;
  margin-bottom: 4px;
}
.empty-symbol svg {
  width: 24px;
  height: 24px;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 550;
  color: #6c7581;
  margin: 0;
}
.empty-state p {
  font-size: 11px;
  color: #a0a7b1;
}
.empty-state .button {
  margin-top: 6px;
}
.recent-section {
  margin-top: 28px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.section-heading .muted {
  font-size: 10px;
}
.text-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #8e97a1;
}
.text-link:hover {
  color: var(--accent);
}
.text-link svg {
  width: 12px;
  height: 12px;
}
.activity {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.activity-row {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #f0f2f5;
}
.activity-row:last-child {
  border: 0;
}
.activity-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  flex-shrink: 0;
}
.activity-icon svg {
  width: 12px;
  height: 12px;
}
.activity-icon.failed {
  background: #fbebed;
  color: var(--danger);
}
.activity-row p {
  font-size: 11px;
  color: #73808d;
}
.activity-row strong {
  color: #424e5b;
  font-weight: 500;
}
.activity-row time {
  margin-left: auto;
  color: #a1a8b2;
  font-size: 10px;
  white-space: nowrap;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 38px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #a3aab4;
}
.page-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-footer svg {
  width: 11px;
  height: 11px;
}
dialog {
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 70px #17232d25;
  color: inherit;
  background: white;
  overflow: auto;
}
dialog::backdrop {
  background: #14242f55;
  backdrop-filter: blur(2px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px 19px;
  border-bottom: 1px solid var(--line);
}
.dialog-kicker {
  font-size: 8px;
  color: var(--accent);
  font-weight: 600;
}
.dialog-header h2 {
  font-size: 19px;
  margin-top: 3px;
}
.dialog-body {
  padding: 23px 25px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 16px 25px;
  background: #fafbfc;
  position: sticky;
  bottom: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}
.field input,
.field select,
.field textarea,
.preview-body textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  background: #fff;
  resize: vertical;
  font-size: 12px;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder,
.preview-body textarea::placeholder {
  color: #b0b5bd;
}
.field select {
  height: 40px;
  padding-right: 24px;
}
.field-note {
  font-size: 10px;
  font-weight: 400;
  color: #9da4ae;
}
.input-with-action {
  display: flex;
  gap: 8px;
}
.matching-options {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.field-label {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
.segmented {
  display: flex;
  background: #f1f3f5;
  border-radius: 5px;
  padding: 3px;
  height: 34px;
}
.segmented label {
  position: relative;
  display: flex;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segmented span {
  padding: 5px 12px;
  font-size: 10px;
  color: #87909a;
  border-radius: 3px;
}
.segmented input:checked + span {
  background: #fff;
  box-shadow: 0 1px 3px #0000000b;
  color: #3d4c56;
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  color: #7c858f;
  height: 34px;
}
.checkbox-label input {
  accent-color: var(--accent);
}
.reply-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 11px;
  margin: 0 0 14px;
}
.reply-field > span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #8994a0;
}
.reply-field svg {
  width: 14px;
  height: 14px;
}
.reply-field code {
  background: #eff3f5;
  padding: 2px 8px;
  border-radius: 4px;
  color: #475866;
}
.reply-field .muted {
  margin-left: auto;
  font-size: 10px;
}
.save-state {
  margin-right: auto;
  font-size: 9px;
  color: #939ca7;
  display: flex;
  align-items: center;
  gap: 5px;
}
summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 11px;
  color: #6d7986;
  padding: 10px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
}
summary span {
  font-size: 9px;
  color: #a4abb3;
}
.preview-body {
  padding: 8px 0;
}
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.preview-actions output {
  font-size: 10px;
  color: #969eaa;
  overflow-wrap: anywhere;
}
.preview-actions output.matched {
  color: var(--accent);
}
.form-error,
.alert {
  font-size: 11px;
  line-height: 1.7;
  border: 1px solid #f2d0d4;
  background: #fff3f4;
  color: #b14856;
  padding: 10px 12px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.form-error {
  margin-top: 12px;
}
.alert {
  margin-bottom: 20px;
}
.confirm-dialog {
  width: 430px;
}
.confirm-dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: #798490;
  overflow-wrap: anywhere;
}
#toast-region {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  background: #283b37;
  color: #fff;
  padding: 11px 17px;
  border-radius: 6px;
  box-shadow: 0 4px 16px #0002;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.toast.error {
  background: #8e3d49;
}
.loading {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 44px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace-main {
    margin-left: 190px;
  }
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 18px 16px;
  }
  td,
  th {
    padding-left: 13px;
    padding-right: 13px;
  }
  .page-footer {
    margin: 0 24px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 72px;
    padding: 22px 10px;
  }
  .brand {
    padding: 0 6px 26px;
  }
  .brand > span:last-child,
  .workspace,
  .nav-caption,
  .nav-link > span,
  .sidebar-bottom {
    display: none;
  }
  .brand-mark {
    width: 36px;
    height: 38px;
    flex-shrink: 0;
  }
  .nav-link {
    justify-content: center;
    padding: 14px 0;
    margin-bottom: 10px;
  }
  .workspace-main {
    margin-left: 72px;
  }
  .topbar {
    height: 55px;
  }
  .page-heading {
    align-items: flex-end;
  }
  main {
    padding-top: 26px;
  }
  .metric {
    padding: 17px 13px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric > div {
    gap: 6px;
  }
  .metric > span svg {
    display: none;
  }
  .search {
    max-width: 200px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: static;
    width: 100%;
    height: 62px;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
    margin-right: auto;
    gap: 8px;
    font-size: 18px;
  }
  .brand > span:last-child {
    display: block;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    width: 29px;
    height: 32px;
    border-radius: 6px;
  }
  .brand-mark svg {
    width: 17px;
  }
  .sidebar nav {
    display: flex;
    gap: 7px;
  }
  .nav-link {
    width: 40px;
    height: 36px;
    margin: 0;
    padding: 0;
  }
  .nav-link svg {
    width: 18px;
  }
  .workspace-main {
    margin-left: 0;
    min-height: calc(100dvh - 62px);
  }
  .topbar {
    display: none;
  }
  main {
    padding: 23px 16px 32px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 5px;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 6px;
  }
  .heading-actions {
    gap: 6px;
    margin-top: 17px;
  }
  .heading-actions .button {
    padding: 0 10px;
    height: 32px;
    font-size: 10px;
  }
  .heading-actions .danger-quiet {
    width: 32px;
    padding: 0;
  }
  .heading-actions .danger-quiet span {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  .metric {
    padding: 14px 16px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric > span {
    font-size: 10px;
  }
  .metric > span svg {
    display: block;
    width: 13px;
    height: 13px;
  }
  .metric > div {
    margin-top: 7px;
  }
  .metric strong {
    font-size: 25px;
  }
  .section-toolbar {
    flex-wrap: wrap;
    gap: 0;
  }
  .tabs {
    min-height: 48px;
    gap: 20px;
  }
  .tab {
    font-size: 11px;
    padding-bottom: 12px;
  }
  .search {
    order: -1;
    max-width: none;
    margin: 0;
    padding: 0 0 4px;
  }
  .search input {
    padding: 9px 0;
    font-size: 11px;
  }
  .section-toolbar > .icon-button {
    margin-left: auto;
  }
  .section-footer {
    font-size: 9px;
    align-items: flex-start;
  }
  .section-footer > span {
    flex-wrap: wrap;
  }
  .empty-state {
    padding: 38px 15px;
  }
  .empty-state.compact {
    padding: 30px 15px;
  }
  .recent-section {
    margin-top: 21px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .page-footer {
    margin: 0 16px;
    font-size: 8px;
  }
  .activity-row {
    padding: 13px 12px;
    gap: 9px;
  }
  .activity-row p {
    font-size: 10px;
  }
  .activity-row time {
    font-size: 9px;
  }
  .dialog-header {
    padding: 18px;
  }
  .dialog-body {
    padding: 18px;
  }
  .dialog-footer {
    padding: 14px 18px;
    gap: 6px;
  }
  .dialog-footer .button {
    font-size: 11px;
    padding: 0 11px;
  }
  .save-state {
    font-size: 8px;
    max-width: 100px;
    line-height: 1.5;
  }
  .matching-options {
    gap: 7px;
  }
  .segmented span {
    padding: 5px 9px;
    font-size: 10px;
  }
  .checkbox-label {
    font-size: 9px;
  }
  .confirm-dialog .dialog-header h2 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.auth-screen {
  min-height: 100dvh;
  background: #f5f7f8;
  display: grid;
  place-items: center;
  padding: 22px;
}
.auth-shell {
  width: min(420px, 100%);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 40px;
  font-size: 22px;
}
.auth-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 7px;
}
.auth-panel h1 {
  font-size: 24px;
  margin: 6px 0;
}
.auth-panel > p {
  color: #8a939d;
  font-size: 12px;
  margin-bottom: 30px;
}
.auth-panel .field {
  margin-bottom: 19px;
}
.auth-submit {
  width: 100%;
  height: 42px;
  margin-top: 12px;
}
.auth-foot {
  display: block;
  color: #a1aab5;
  text-align: center;
  margin-top: 24px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-links {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
  display: grid;
  gap: 3px;
}
.sidebar-links button {
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  background: none;
  border: 0;
  color: #707b86;
  font-size: 11px;
  padding: 8px;
  border-radius: 4px;
}
.sidebar-links button:hover {
  background: #f4f6f7;
  color: var(--accent);
}
.sidebar-links svg {
  width: 14px;
  height: 14px;
}
.qr-body {
  text-align: center;
}
.qr-image {
  width: 248px;
  height: 248px;
  margin: 6px auto 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}
.qr-image img {
  width: 236px;
  height: 236px;
  image-rendering: pixelated;
}
.qr-body > p {
  font-size: 12px;
  color: #697786;
  line-height: 1.7;
  max-width: 310px;
  margin: 0 auto 17px;
}
.qr-body form {
  text-align: left;
}
.qr-body form > button {
  width: 100%;
  margin: 5px 0;
}
.dialog-help {
  font-size: 12px;
  color: #74818d;
  margin-bottom: 20px;
}
.admin-toggle {
  height: 40px;
  font-size: 12px;
  margin-bottom: 12px;
}
.admin-toggle input {
  width: 17px;
  height: 17px;
}
.topbar-actions .icon-button {
  border: 1px solid var(--line);
}
@media (max-width: 850px) {
  .sidebar-links {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .topbar {
    display: flex;
    height: 44px;
    padding: 0 16px;
  }
  .topbar .breadcrumb {
    font-size: 10px;
  }
  .topbar-actions .local-badge {
    display: none;
  }
  .topbar-actions .icon-button {
    width: 28px;
    height: 28px;
  }
  .sidebar nav {
    gap: 2px;
  }
  .nav-link {
    width: 35px;
  }
  .sidebar {
    padding: 0 12px;
  }
  .auth-panel {
    padding: 27px 22px;
  }
  .auth-brand {
    margin-bottom: 25px;
  }
  .qr-image {
    width: 218px;
    height: 218px;
  }
  .qr-image img {
    width: 208px;
    height: 208px;
  }
}
