@font-face {
  font-family: "Noto Sans SC Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/NotoSansSC-UI.woff2") format("woff2");
}

:root {
  font-family:
    "Noto Sans SC Variable",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "Source Han Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #261c17;
  background: #f2ecdf;
  font-size: 14px;
  font-synthesis: none;
  --ink: #261c17;
  --muted: #7e7266;
  --red: #b5151d;
  --red-bright: #cf2029;
  --red-dark: #760e14;
  --jade: #126b57;
  --jade-soft: #e2f0e7;
  --gold: #c9953e;
  --gold-light: #ead3a3;
  --paper: #fffdf7;
  --paper-deep: #f3ecde;
  --line: #ded2bd;
  --sidebar: 264px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f2ecdf;
}

body {
  min-height: 100dvh;
  margin: 0;
  background-color: #f4efe5;
  background-image:
    linear-gradient(#9c1a2008 1px, transparent 1px),
    linear-gradient(90deg, #9c1a2008 1px, transparent 1px);
  background-size: 28px 28px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--red-dark),
    var(--red-bright) 52%,
    var(--gold)
  );
}

::selection {
  color: #fff;
  background: var(--red);
}

* {
  scrollbar-color: #c8bba5 transparent;
  scrollbar-width: thin;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

a {
  color: var(--red);
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #e4b64b;
  outline-offset: 3px;
}

input,
textarea,
select {
  border: 1px solid #cfc2ad;
  border-radius: 4px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fffef9;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #b5151d12;
}

input[type="checkbox"] {
  accent-color: var(--red);
}

.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.boot span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: auto;
  border: 2px solid var(--gold);
  color: #fff8e8;
  background: var(--red);
  font-size: 20px;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 3px var(--red),
    inset 0 0 0 4px #dfb55f;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.mono,
code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 8px #50080d26);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy strong {
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 3px;
}

.brand-copy small {
  margin-top: 5px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  opacity: 0.72;
}

.brand > i {
  align-self: flex-start;
  border: 1px solid currentColor;
  padding: 2px 3px;
  font-size: 8px;
  font-style: normal;
  line-height: 1;
  opacity: 0.7;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 4px;
  font-weight: 700;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.primary {
  padding: 10px 17px;
  color: #fffaf0;
  background: var(--red);
  box-shadow:
    0 3px 0 var(--red-dark),
    0 8px 18px #790c1220;
}

.primary:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 var(--red-dark),
    0 10px 22px #790c1229;
}

.primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--red-dark);
}

.primary > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.primary small {
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.9px;
  opacity: 0.72;
}

.secondary {
  border: 1px solid #cdbd9f;
  padding: 9px 13px;
  color: #5f4939;
  background: #fffdf6;
  box-shadow: 0 2px 0 #ded0b9;
}

.secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff9ed;
  transform: translateY(-1px);
}

.quiet {
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  padding: 8px;
  color: var(--muted);
}

.quiet:hover {
  color: var(--red);
  background: #b5151d0d;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spread {
  justify-content: space-between;
}

.error {
  border: 1px solid #df8c87;
  border-left: 4px solid var(--red);
  border-radius: 3px;
  padding: 11px 12px;
  color: #94141b;
  background: #fff1eb;
  font-size: 12px;
}

.error:empty {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ddc38e;
  border-radius: 2px;
  padding: 4px 7px;
  color: #8a5d15;
  background: #fff7df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

.pill.green {
  border-color: #83b6a1;
  color: #0e6a52;
  background: #edf8f1;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35b77d;
  box-shadow: 0 0 0 3px #35b77d20;
}

.divider {
  height: 1px;
  margin: 23px 0;
  background: var(--line);
}

/* Operator sign-in */
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(440px, 0.88fr);
  overflow: hidden;
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: 46px clamp(48px, 7vw, 112px) 36px;
  color: #fff4dc;
  background-color: #aa141c;
  background-image:
    radial-gradient(circle at 16% 16%, #da3037 0 1px, transparent 2px),
    radial-gradient(
      circle at 16% 16%,
      transparent 0 28px,
      #d94c4930 29px 30px,
      transparent 31px
    ),
    linear-gradient(135deg, transparent 74%, #6f0c1326 74% 75%, transparent 75%);
  background-size:
    48px 48px,
    96px 96px,
    32px 32px;
}

.login-story::before {
  content: "讯";
  position: absolute;
  right: -26px;
  bottom: -110px;
  color: #fff;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 410px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.035;
  transform: rotate(-6deg);
}

.login-story::after {
  content: "";
  position: absolute;
  top: 0;
  right: 42px;
  width: 1px;
  height: 100%;
  background: #f1c66830;
  box-shadow: 7px 0 0 #6b0d1228;
}

.login-story .brand img {
  background: #8a1016;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: clamp(70px, 10vh, 130px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f4d087;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #f4d087;
}

.eyebrow span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
}

.eyebrow small {
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.62;
}

.login-story h1 {
  margin: 25px 0 20px;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 5px;
  text-shadow: 0 4px 0 #750e14;
}

.login-story h1 em {
  color: #f0ca79;
  font-style: normal;
}

.login-story p {
  max-width: 530px;
  margin: 0;
  color: #f7e5cb;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.login-story p span {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.8px;
  opacity: 0.65;
}

.signal-art {
  position: relative;
  z-index: 1;
  width: min(560px, 92%);
  margin-top: 46px;
  border: 1px solid #ead09c;
  border-radius: 2px;
  padding: 0 22px 18px;
  color: var(--ink);
  background: #fff7e6;
  box-shadow: 8px 8px 0 #760e1457;
  transform: rotate(-0.6deg);
}

.signal-art::before,
.signal-art::after {
  content: "";
  position: absolute;
  top: 52%;
  width: 15px;
  height: 30px;
  border: 1px solid #ead09c;
  background: #aa141c;
  border-radius: 50%;
}

.signal-art::before {
  left: -9px;
  border-left-color: transparent;
}

.signal-art::after {
  right: -9px;
  border-right-color: transparent;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #cdb98e;
  margin-bottom: 18px;
  padding: 13px 2px 11px;
  color: #826840;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.ticket-head b {
  border: 1px solid #c54b4c;
  padding: 3px 6px;
  color: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  letter-spacing: 2px;
  transform: rotate(2deg);
}

.signal-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.signal-node {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ded0b3;
  padding: 3px 17px 8px;
}

.signal-node:first-child {
  padding-left: 2px;
}

.signal-node:last-child {
  border: 0;
}

.signal-node strong {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.signal-node span {
  margin-top: 7px;
  color: #74634f;
  font-size: 10px;
  letter-spacing: 1px;
}

.signal-note {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #cdb98e;
  margin-top: 11px;
  padding-top: 13px;
  color: #917b5f;
  font-size: 9px;
  letter-spacing: 0.7px;
}

.ticket-code {
  position: absolute;
  right: 22px;
  bottom: 16px;
  width: 54px;
  height: 13px;
  background: repeating-linear-gradient(
    90deg,
    #5a4533 0 1px,
    transparent 1px 3px,
    #5a4533 3px 5px,
    transparent 5px 7px
  );
  opacity: 0.28;
}

.signal-note span:last-child {
  margin-right: 72px;
}

.login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1cf8652;
  margin-top: auto;
  padding-top: 18px;
  color: #f0cb82;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.login-form-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 72px clamp(42px, 6vw, 92px);
  background-color: #f6f0e4;
  background-image:
    linear-gradient(
      45deg,
      #b5151d08 25%,
      transparent 25%,
      transparent 75%,
      #b5151d08 75%
    ),
    linear-gradient(
      45deg,
      #b5151d08 25%,
      transparent 25%,
      transparent 75%,
      #b5151d08 75%
    );
  background-position:
    0 0,
    16px 16px;
  background-size: 32px 32px;
}

.login-notice {
  position: absolute;
  top: 38px;
  right: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f655b;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.login-form {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid #d3c09d;
  border-top: 5px solid var(--red);
  padding: clamp(34px, 5vw, 54px);
  background: #fffdf7;
  box-shadow:
    12px 12px 0 #dfd2bb,
    0 25px 70px #4a281018;
}

.login-form::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #eee3d1;
  pointer-events: none;
}

.form-seal {
  position: absolute;
  top: -25px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid #fff8e8;
  outline: 2px solid var(--red);
  color: #fff7e5;
  background: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  transform: rotate(3deg);
}

.form-kicker {
  position: relative;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.login-form h2 {
  position: relative;
  margin: 12px 0 9px;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 33px;
  font-weight: 900;
  letter-spacing: 3px;
}

.login-form > p {
  position: relative;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.login-form > p span {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.2px;
  opacity: 0.76;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
}

.field label {
  color: #4a382d;
  font-size: 12px;
  font-weight: 800;
}

.field label small {
  margin-left: 6px;
  color: #998b7d;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.field > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.login-form input {
  height: 46px;
  border-width: 1px 1px 2px;
  background: #fffefa;
}

.login-submit {
  position: relative;
  width: 100%;
  min-height: 49px;
  justify-content: space-between;
  margin: 7px 0 19px;
  padding-inline: 18px;
}

.login-submit > span {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.login-submit small {
  font-size: 7px;
  letter-spacing: 1.4px;
}

.login-footnote {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #918579;
  font-size: 9px;
  text-align: center;
}

.login-footnote .icon {
  width: 13px;
  height: 13px;
  color: var(--jade);
}

.login-corner {
  position: absolute;
  right: 42px;
  bottom: 33px;
  color: #8b7e70;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  text-align: right;
}

.login-corner span {
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 1px;
}

/* Authenticated shell */
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 8;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  overflow: hidden;
  border-right: 4px solid #c69740;
  padding: 29px 22px 20px;
  color: #fff2d7;
  background-color: #98131a;
  background-image:
    linear-gradient(
      135deg,
      transparent 74%,
      #670b112e 74% 76%,
      transparent 76%
    ),
    radial-gradient(circle at 100% 0, #efcf8b19 0 1px, transparent 2px);
  background-size:
    27px 27px,
    38px 38px;
  box-shadow: inset -10px 0 30px #650b1024;
}

.sidebar::after {
  content: "屋讯";
  position: absolute;
  right: -25px;
  bottom: 150px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 90px;
  font-weight: 900;
  letter-spacing: -18px;
  opacity: 0.035;
  writing-mode: vertical-rl;
}

.sidebar .brand {
  margin: 0 5px;
}

.sidebar .brand img {
  width: 39px;
  height: 39px;
  background: #820f15;
}

.sidebar .brand-copy strong {
  font-size: 22px;
}

.workspace {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e9bc6866;
  border-radius: 3px;
  margin: 30px 0 24px;
  padding: 11px;
  color: #fff6e6;
  background: #6e0c1238;
  font-size: 11px;
  box-shadow: inset 0 1px #ffffff12;
}

.workspace-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #e8c275;
  color: #8b1117;
  background: #f1cf87;
  font-family: "STKaiti", "KaiTi", serif;
  font-weight: 900;
}

.workspace strong {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.workspace small {
  display: block;
  margin-top: 4px;
  color: #ebcf9a;
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 0.5px;
}

.workspace-chevron {
  margin-left: auto;
  color: #e8c275;
  font-size: 18px;
}

.nav-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 10px 8px;
  color: #efcb83;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.nav-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #eac77c38;
}

.nav-label small {
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 0.8px;
  opacity: 0.65;
}

.nav-button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  gap: 12px;
  border-radius: 3px;
  margin: 2px 0;
  padding: 8px 12px;
  color: #efd7b0;
  text-align: left;
  transition:
    transform 120ms ease,
    background 120ms ease;
}

.nav-button:hover {
  color: #fff8e8;
  background: #6f0c1235;
}

.nav-button.active {
  color: #9c131a;
  background: #fff5df;
  box-shadow: 4px 4px 0 #670b1238;
  transform: translateX(3px);
}

.nav-button.active::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px -3px;
  width: 3px;
  background: #e0aa48;
}

.nav-button .icon {
  width: 17px;
  height: 17px;
}

.nav-button > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-button strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.nav-button small {
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.9px;
  opacity: 0.56;
}

.sidebar-bottom {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.sidebar-motto {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #efcb8357;
  border-left: 0;
  border-right: 0;
  margin: 0 4px 9px;
  padding: 11px 2px;
}

.sidebar-motto i {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #efc879;
  color: #f6d894;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 16px;
  font-style: normal;
  transform: rotate(-3deg);
}

.sidebar-motto strong {
  font-size: 9px;
  letter-spacing: 0.7px;
}

.sidebar-motto small {
  display: block;
  margin-top: 3px;
  color: #e7bd73;
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 0.7px;
}

.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 7px;
  color: #eed3aa;
  font-size: 9px;
}

.connection b {
  margin-left: auto;
  color: #79d3a9;
  font-size: 8px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #e9c27545;
  margin-top: 5px;
  padding: 16px 5px 0;
  color: #f3dfbe;
  font-size: 9px;
}

.sidebar-footer .small {
  color: #dcb875;
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 0.8px;
}

.sidebar-footer .quiet {
  margin-left: auto;
  color: #f2d39b;
}

.sidebar-footer .quiet:hover {
  color: #fff;
  background: #610a1038;
}

.avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  color: #861017;
  background: #e9c77e;
  font-family: "STKaiti", "KaiTi", serif;
  font-weight: 900;
}

.main {
  position: relative;
  grid-column: 2;
  min-width: 0;
  overflow-x: hidden;
}

.main::before {
  content: "";
  position: fixed;
  right: -110px;
  bottom: -150px;
  width: 410px;
  height: 410px;
  border: 1px solid #ae202212;
  border-radius: 50%;
  box-shadow:
    0 0 0 34px #ae202208,
    0 0 0 68px #ae202207;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dacdb7;
  padding: 0 32px;
  color: #7f7164;
  background: #fffdf7ed;
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: 10px;
}

.breadcrumb i {
  color: #c2ad8c;
  font-style: normal;
}

.breadcrumb strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb small {
  color: #aa9881;
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 0.8px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
}

.duty-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b6650;
}

.duty-chip b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d4b46f;
  color: var(--red);
  background: #fff6df;
  font-family: "STKaiti", "KaiTi", serif;
}

.api-badge {
  border: 1px solid #d4c6ad;
  border-radius: 2px;
  padding: 5px 8px;
  color: #786a5e;
  background: #fffaf0;
  font-size: 8px;
}

.live-status {
  color: #526e60;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.service-ticker {
  position: relative;
  z-index: 2;
  display: flex;
  height: 35px;
  align-items: center;
  border-bottom: 1px solid #dbcaa9;
  padding: 0 32px;
  color: #6f5c47;
  background: #f5e8c9;
  font-size: 9px;
}

.service-ticker b {
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-right: 14px;
  padding: 0 12px;
  color: #fff7e6;
  background: var(--red);
  font-size: 9px;
  letter-spacing: 1px;
}

.service-ticker span::before {
  content: "◆";
  margin-right: 8px;
  color: var(--red);
  font-size: 6px;
}

.service-ticker small {
  margin-left: auto;
  color: #967b55;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 30px 22px;
}

.page-heading {
  display: flex;
  min-height: 68px;
  align-items: center;
  margin-bottom: 19px;
}

.heading-mark {
  align-self: stretch;
  display: flex;
  width: 43px;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid #d2c09e;
  margin-right: 15px;
  padding-top: 8px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
}

.heading-copy {
  min-width: 0;
}

.heading-english {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.page-heading h1 {
  margin: 3px 0 5px;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2px;
}

.page-heading > .primary,
.page-heading > .secondary {
  margin-left: auto;
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 0.62fr)) minmax(330px, 1.65fr);
  overflow: hidden;
  border: 1px solid #d3c3a8;
  border-top: 3px solid var(--red);
  border-radius: 4px 4px 0 0;
  margin-bottom: 12px;
  color: #43352b;
  background: #fffaf0;
  box-shadow: 0 5px 16px #5f3c1a0c;
}

.ops-cell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  min-height: 66px;
  align-content: center;
  border-right: 1px solid #dfd1b9;
  padding: 9px 14px;
}

.ops-cell span {
  grid-column: 1;
  color: #7d6d5d;
  font-size: 9px;
}

.ops-cell strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.ops-cell small {
  grid-column: 1;
  color: #aa9982;
  font-size: 8px;
}

.ops-cell.live strong {
  color: var(--jade);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
}

.ops-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 17px;
  background: #f4e6c6;
}

.ops-slogan b {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--red);
  color: #fff6df;
  background: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 14px;
}

.ops-slogan span {
  color: #5f4d39;
  font-size: 9px;
  line-height: 1.35;
}

.ops-slogan small {
  color: #a08763;
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 0.5px;
}

.ops-slogan i {
  width: 13px;
  height: 1px;
  background: #bd9d68;
}

.inbox-panel {
  overflow: hidden;
  border: 1px solid #d4c4a9;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 7px 24px #5033170c;
}

.panel-toolbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 15px;
  background: #fff8e9;
}

.line-picker {
  min-width: 0;
}

.line-label {
  border-left: 3px solid var(--red);
  padding-left: 9px;
  color: #675441;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.number-select {
  width: 280px;
  max-width: 42vw;
  height: 36px;
  padding: 7px 31px 7px 10px;
  border-color: #cdbd9f;
  color: #3d3027;
  background: #fffef9;
  font-size: 11px;
  font-weight: 700;
}

.toolbar-label {
  color: #9a8872;
  font-size: 9px;
}

.panel-toolbar .quiet {
  border: 1px solid transparent;
  padding: 7px;
}

.panel-toolbar .quiet:hover {
  border-color: #d9c6a4;
  background: #fffef8;
}

.inbox-body {
  display: grid;
  grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
  min-height: 520px;
  height: calc(100dvh - 355px);
}

.message-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fffdf8;
}

.message-filters {
  border-bottom: 1px solid var(--line);
  padding: 14px 14px 10px;
  background: #faf5e9;
}

.search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-wrap .icon {
  position: absolute;
  top: 9px;
  left: 10px;
  width: 15px;
  height: 15px;
  color: #a08f79;
}

.search-wrap input {
  width: 100%;
  height: 34px;
  padding: 8px 10px 8px 32px;
  border-color: #ded2bd;
  background: #fffdf8;
  font-size: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.filter-tab {
  border-radius: 2px;
  padding: 6px 9px;
  color: #887866;
  font-size: 10px;
}

.filter-tab:hover {
  color: var(--red);
  background: #b5151d0b;
}

.filter-tab.active {
  color: #fff9e9;
  background: var(--red);
  font-weight: 800;
}

.unread-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #887866;
  font-size: 9px;
  white-space: nowrap;
}

.unread-toggle input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.message-list {
  flex: 1;
  overflow-y: auto;
}

.message-item {
  position: relative;
  display: block;
  width: 100%;
  border-bottom: 1px solid #e9dfce;
  border-left: 4px solid transparent;
  padding: 16px 15px 14px;
  text-align: left;
  transition: background 100ms ease;
}

.message-item:hover {
  background: #fff8e9;
}

.message-item.selected {
  border-left-color: var(--red);
  background: #f7ecd4;
}

.message-item.selected::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 0;
  border: 6px solid transparent;
  border-right-color: #caa563;
}

.message-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sender-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #e3cfa8;
  border-radius: 50%;
  color: var(--red);
  background: #fff6e1;
}

.sender-icon .icon {
  width: 14px;
  height: 14px;
}

.sender-name {
  overflow: hidden;
  color: #33261f;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-time {
  margin-left: auto;
  color: #9f8e79;
  font-family: Arial, sans-serif;
  font-size: 8px;
  white-space: nowrap;
}

.message-preview {
  overflow: hidden;
  margin: 0 0 8px 39px;
  color: #76695c;
  font-size: 10px;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 39px;
}

.message-tags .pill {
  border-color: #d8bd88;
  padding: 2px 5px;
  color: #90651f;
  background: #fff8e7;
  font-size: 8px;
}

.message-tags .small {
  font-size: 8px;
}

.unread-dot {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  margin-left: auto;
  color: #fff;
  background: var(--red);
}

.unread-dot i {
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.list-foot {
  border-top: 1px solid var(--line);
  padding: 10px;
  color: #9a8873;
  background: #faf5e9;
  font-size: 8px;
  text-align: center;
}

.load-more {
  width: 100%;
  padding: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}

.message-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  background-color: #f8f4eb;
  background-image: radial-gradient(#b58e5d16 0.8px, transparent 0.8px);
  background-size: 12px 12px;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 21px;
  background: #fffdf7f2;
  backdrop-filter: blur(8px);
}

.sender-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #e0b966;
  color: #fff7e5;
  background: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #e5d1aa;
}

.detail-kicker {
  color: #9a8064;
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}

.detail-sender {
  overflow: hidden;
  margin-top: 2px;
  color: #32251e;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-date {
  margin-top: 4px;
  color: #8f806f;
  font-size: 8px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.detail-actions .quiet {
  border: 1px solid #dfd2bc;
  color: #796b5d;
  background: #fffaf0;
}

.detail-actions .quiet:hover {
  border-color: var(--red);
  color: var(--red);
}

.detail-actions .icon {
  width: 15px;
  height: 15px;
}

.detail-body {
  width: min(760px, 100%);
  flex: 1;
  margin: 0 auto;
  padding: 26px 30px 38px;
}

.date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #a18d74;
  font-size: 8px;
}

.date-line::before,
.date-line::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfd1bb;
}

.bubble-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 7px 11px;
  color: #7f6c58;
  font-size: 9px;
  font-weight: 800;
}

.bubble-label small {
  color: #ad9679;
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 1px;
}

.message-bubble {
  position: relative;
  max-width: 100%;
  border: 1px solid #aec9b7;
  border-radius: 3px 10px 10px;
  padding: 17px 19px;
  color: #25332c;
  background: #dff0e5;
  box-shadow: 4px 5px 0 #d7cdbd;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-bubble::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -9px;
  border: 9px solid transparent;
  border-top-color: #aec9b7;
}

.message-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  border: 8px solid transparent;
  border-top-color: #dff0e5;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 25px 5px;
  color: #8e7e6d;
  font-size: 8px;
}

.message-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--jade);
}

.metadata {
  border-top: 1px solid #ddd0ba;
  margin-top: 25px;
  padding-top: 19px;
}

.metadata-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.metadata-label small {
  color: #a58d71;
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 1.2px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.metadata-grid > div {
  border-left: 2px solid #dbc498;
  padding-left: 9px;
}

.metadata-grid dt {
  margin-bottom: 5px;
  color: #9d8970;
  font-size: 8px;
}

.metadata-grid dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #5e5146;
  font-size: 10px;
}

.detail-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  color: #917f69;
  background: #f4ead5;
  font-size: 8px;
}

.detail-footer .icon {
  width: 12px;
  height: 12px;
  color: var(--jade);
}

.empty {
  display: flex;
  min-height: 250px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 25px;
  color: #8d7c68;
  text-align: center;
}

.empty-icon {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid #d9ba7c;
  color: var(--red);
  background: #fff4da;
  box-shadow:
    inset 0 0 0 5px #f8ead0,
    5px 5px 0 #e2d2b7;
  transform: rotate(-2deg);
}

.empty-icon::after {
  content: "候";
  position: absolute;
  right: -11px;
  bottom: -9px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff4df;
  background: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 10px;
}

.empty-icon .icon {
  width: 27px;
  height: 27px;
}

.empty h3 {
  margin: 21px 0 8px;
  color: #5b493a;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
}

.empty p {
  max-width: 290px;
  margin: 0;
  font-size: 10px;
  line-height: 1.85;
}

.empty .secondary {
  margin-top: 20px;
  font-size: 10px;
}

.bottom-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #8f806e;
  font-size: 8px;
}

.bottom-note .icon {
  width: 11px;
  height: 11px;
  color: var(--jade);
}

.bottom-note span:last-child {
  margin-left: auto;
}

.note-field {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  margin: 2px 0 9px;
  border-color: #d3c5b0;
  background: #fffdf7;
  font-size: 11px;
}

.raw-payload {
  margin-top: 18px;
}

.raw-payload summary {
  color: #897762;
  font-size: 9px;
  cursor: pointer;
}

.raw-payload pre {
  overflow-wrap: anywhere;
  border: 1px solid #d9cdb9;
  border-radius: 3px;
  padding: 13px;
  color: #6d6054;
  background: #eee7dc;
  font-size: 9px;
  white-space: pre-wrap;
}

.attachments {
  border-left: 3px solid var(--gold);
  margin: 16px 0;
  padding-left: 12px;
  font-size: 10px;
}

.attachments a {
  display: block;
  overflow-wrap: anywhere;
  margin: 8px 0;
}

.back-to-list {
  display: none;
}

/* Utility pages */
.section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5c7af;
  border-radius: 4px;
  margin-bottom: 17px;
  padding: 22px;
  background: #fffdf7;
  box-shadow: 0 5px 18px #5a3a1e0b;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #d4a04b;
}

.section-card h2 {
  margin: 0 0 9px;
  color: #3a2b22;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
}

.section-card h2 b {
  margin-left: 6px;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 21px;
}

.section-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
}

.section-card .field {
  max-width: 550px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.numbers-card {
  padding: 26px;
}

.number-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.number-table th {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  color: #8e7b65;
  background: #f9f1e3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.number-table td {
  border-bottom: 1px solid #e9dfce;
  padding: 17px 10px;
  color: #4e4035;
  font-size: 10px;
}

.number-table tr:last-child td {
  border-bottom: 0;
}

.number-table tbody tr:hover {
  background: #fff8e9;
}

.number-table td:first-child {
  color: #2d241e;
  font-weight: 700;
}

.setup-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid #b9cfc3;
  border-left: 4px solid var(--jade);
  border-radius: 3px;
  margin: 0 0 20px;
  padding: 15px 75px 15px 17px;
  color: #45695b;
  background: #edf5ef;
  font-size: 10px;
  line-height: 1.75;
}

.setup-banner .icon {
  color: var(--jade);
}

.setup-banner strong {
  color: #1c604d;
  font-size: 11px;
}

.setup-banner > span {
  position: absolute;
  right: 17px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid #35816a;
  color: #25705a;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transform: rotate(4deg);
  opacity: 0.75;
}

.api-hero {
  border-top: 3px solid var(--red);
  padding-right: 92px;
}

.api-seal {
  position: absolute;
  top: 20px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  transform: rotate(4deg);
}

.code-block {
  overflow-x: auto;
  border: 1px solid #4a3027;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  margin: 16px 0;
  padding: 17px;
  color: #eadab9;
  background: #2d2823;
  box-shadow: inset 0 0 35px #00000030;
  font-size: 10px;
  line-height: 1.8;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 17px;
}

.settings-grid .section-card {
  height: 100%;
  margin-bottom: 0;
}

.endpoint-list {
  display: grid;
}

.endpoint {
  display: grid;
  grid-template-columns: 48px minmax(260px, 1.2fr) minmax(130px, 0.8fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 9px;
}

.endpoint:last-child {
  border: 0;
}

.method {
  border: 1px solid #92b6a6;
  border-radius: 2px;
  padding: 3px 5px;
  color: var(--jade);
  background: #edf6f0;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.method.write {
  border-color: #d9b879;
  color: #8b601b;
  background: #fff7e2;
}

.endpoint code {
  overflow-wrap: anywhere;
  color: #44362c;
  font-size: 9px;
}

.endpoint span:last-child {
  color: var(--muted);
  text-align: right;
}

.route-count {
  border: 1px solid #d5bf95;
  padding: 4px 7px;
  color: #8a6a3a;
  background: #fff6df;
  font-size: 8px;
  font-weight: 800;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: #55473b;
  font-size: 10px;
}

.status-line > span:first-child {
  color: #7e6f60;
}

.status-line span small {
  display: block;
  margin-top: 2px;
  color: #ae9a80;
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 0.8px;
}

.status-line strong {
  font-size: 9px;
  text-align: right;
}

.status-good {
  color: var(--jade);
}

.callback-output {
  overflow-wrap: anywhere;
  border: 1px solid #d4c6af;
  border-left: 3px solid var(--red);
  border-radius: 2px;
  margin: 13px 0;
  padding: 12px;
  color: #594b3e;
  background: #f6efe4;
  font-size: 9px;
}

.receipts {
  display: grid;
  gap: 10px;
  font-size: 10px;
}

.receipt {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px;
  background: #fffaf0;
}

.receipt summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.receipt pre {
  max-height: 250px;
  overflow: auto;
  font-size: 9px;
}

audio {
  width: 100%;
  max-width: 100%;
  margin: 15px 0;
}

dialog {
  width: min(470px, 92vw);
  border: 1px solid #cdb98f;
  border-top: 5px solid var(--red);
  border-radius: 3px;
  padding: 30px;
  color: var(--ink);
  background: #fffdf7;
  box-shadow:
    10px 10px 0 #d5c7af,
    0 25px 90px #36140e38;
}

dialog::backdrop {
  background: #4b16165c;
  backdrop-filter: blur(4px);
}

.dialog-kicker {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

dialog h2 {
  margin: 8px 0 9px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

dialog > p {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

dialog .row {
  justify-content: flex-end;
  margin-top: 23px;
}

dialog .primary,
dialog .secondary {
  font-size: 11px;
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 20;
  max-width: 90vw;
  border: 1px solid #dfb55e;
  border-left: 5px solid #dfb55e;
  border-radius: 3px;
  padding: 11px 18px;
  color: #fff4dc;
  background: #8e1117;
  box-shadow:
    5px 6px 0 #4f090d4d,
    0 10px 35px #3b16152b;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: all 180ms ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.footer-link {
  padding: 18px;
  color: #9b8a75;
  font-size: 9px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
}

@media (min-width: 1600px) {
  .content {
    padding-right: 42px;
    padding-left: 42px;
  }

  .inbox-body {
    grid-template-columns: 380px minmax(0, 1fr);
  }

  .detail-body {
    width: min(820px, 100%);
    padding: 32px 42px 45px;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 230px;
  }

  .sidebar {
    padding-right: 15px;
    padding-left: 15px;
  }

  .content {
    padding-right: 21px;
    padding-left: 21px;
  }

  .topbar,
  .service-ticker {
    padding-right: 22px;
    padding-left: 22px;
  }

  .ops-strip {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
  }

  .ops-slogan {
    display: none;
  }

  .inbox-body {
    grid-template-columns: 292px minmax(0, 1fr);
  }

  .detail-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar: 0px;
  }

  .shell {
    display: block;
  }

  .sidebar {
    width: 256px;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 14px 0 40px #35100f45;
  }

  .shell.menu-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  .main {
    width: 100%;
  }

  .mobile-menu {
    display: inline-grid;
    flex-shrink: 0;
    margin-left: -8px;
  }

  .topbar {
    height: 58px;
    padding: 0 15px;
  }

  .breadcrumb {
    gap: 7px;
  }

  .breadcrumb > span,
  .breadcrumb > i,
  .breadcrumb > small {
    display: none;
  }

  .top-actions {
    gap: 9px;
  }

  .duty-chip,
  .api-badge {
    display: none;
  }

  .service-ticker {
    height: 31px;
    overflow: hidden;
    padding: 0 15px;
    white-space: nowrap;
  }

  .service-ticker b {
    margin-left: -15px;
    padding: 0 9px 0 14px;
  }

  .service-ticker span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-ticker small {
    display: none;
  }

  .content {
    width: 100%;
    padding: 19px 14px 18px;
  }

  .page-heading {
    min-height: 61px;
    margin-bottom: 14px;
  }

  .heading-mark {
    width: 31px;
    margin-right: 10px;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .page-heading p {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-heading > .primary {
    min-height: 38px;
    padding: 8px 10px;
  }

  .page-heading > .primary small {
    display: none;
  }

  .ops-strip {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ops-cell {
    min-width: 128px;
    scroll-snap-align: start;
  }

  .panel-toolbar {
    align-items: center;
    padding: 9px 10px;
  }

  .line-label,
  .toolbar-label {
    display: none;
  }

  .number-select {
    width: min(248px, 58vw);
    max-width: none;
  }

  .inbox-body {
    height: calc(100dvh - 319px);
    min-height: 470px;
    grid-template-columns: minmax(0, 1fr);
  }

  .message-column {
    border-right: 0;
  }

  .message-detail {
    display: none;
  }

  .inbox-panel.has-selection .message-column {
    display: none;
  }

  .inbox-panel.has-selection .message-detail {
    display: flex;
  }

  .back-to-list {
    display: inline-grid;
    border: 0 !important;
    padding: 5px;
    background: transparent !important;
  }

  .detail-top {
    min-height: 70px;
    padding: 11px 12px;
  }

  .detail-top > .row {
    min-width: 0;
    gap: 7px;
  }

  .detail-top > .row > div:last-child {
    min-width: 0;
  }

  .sender-avatar {
    width: 34px;
    height: 34px;
  }

  .detail-sender {
    font-size: 12px;
  }

  .detail-date {
    overflow: hidden;
    max-width: 42vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-actions {
    flex-shrink: 0;
  }

  .detail-actions .quiet {
    padding: 6px;
  }

  .detail-body {
    padding: 20px 18px 30px;
  }

  .metadata-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 9px;
  }

  .bottom-note span:last-child {
    display: none;
  }

  .endpoint {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 8px;
  }

  .endpoint span:last-child {
    grid-column: 2;
    text-align: left;
  }

  .numbers-card {
    overflow-x: auto;
  }

  .number-table {
    min-width: 650px;
  }

  .section-card {
    padding: 19px 16px;
  }

  .api-hero {
    padding-right: 75px;
  }

  .login-page {
    display: block;
    overflow: visible;
  }

  .login-story {
    min-height: 390px;
    padding: 31px 9% 28px;
  }

  .login-story::after {
    right: 24px;
  }

  .hero-copy {
    margin-top: 43px;
  }

  .login-story h1 {
    margin: 18px 0 13px;
    font-size: clamp(42px, 12vw, 59px);
    letter-spacing: 3px;
  }

  .login-story p {
    font-size: 12px;
  }

  .signal-art {
    width: min(470px, 96%);
    margin-top: 26px;
  }

  .login-footer {
    display: none;
  }

  .login-form-wrap {
    min-height: 480px;
    align-items: flex-start;
    padding: 64px 9% 80px;
  }

  .login-notice {
    top: 24px;
    right: 9%;
  }

  .login-form {
    width: 100%;
  }

  .login-corner {
    right: 9%;
    bottom: 24px;
  }
}

@media (max-width: 520px) {
  .top-actions .live-status span:last-child {
    font-size: 8px;
  }

  .page-heading p {
    display: none;
  }

  .heading-english {
    font-size: 7px;
  }

  .page-heading h1 {
    margin-top: 4px;
    font-size: 23px;
  }

  .ops-cell {
    min-width: 116px;
    min-height: 60px;
  }

  .ops-cell strong {
    font-size: 21px;
  }

  .panel-toolbar > .row:last-child {
    gap: 2px;
  }

  .panel-toolbar .quiet {
    padding: 6px;
  }

  .number-select {
    width: calc(100vw - 127px);
    font-size: 10px;
  }

  .panel-toolbar .pill {
    display: none;
  }

  .inbox-body {
    height: calc(100dvh - 305px);
  }

  .message-filters {
    padding: 11px 11px 9px;
  }

  .message-item {
    padding-right: 12px;
    padding-left: 12px;
  }

  .detail-top {
    gap: 4px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .sender-avatar {
    display: none;
  }

  .detail-date {
    max-width: 43vw;
  }

  .detail-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .message-bubble {
    padding: 15px;
    font-size: 12px;
  }

  .message-meta {
    flex-wrap: wrap;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .bottom-note {
    padding-left: 2px;
  }

  .card-heading {
    align-items: flex-start;
  }

  .card-heading .secondary {
    max-width: 130px;
    min-height: 35px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .setup-banner {
    padding-right: 17px;
  }

  .setup-banner > span {
    display: none;
  }

  .api-hero {
    padding-right: 16px;
  }

  .api-seal {
    display: none;
  }

  .login-story {
    min-height: 350px;
    padding-right: 7%;
    padding-left: 7%;
  }

  .login-story .brand-copy strong {
    font-size: 21px;
  }

  .eyebrow {
    gap: 8px;
  }

  .eyebrow small {
    display: none;
  }

  .login-story h1 {
    font-size: 43px;
  }

  .login-story p span {
    display: none;
  }

  .signal-art {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  .signal-node {
    padding-right: 8px;
    padding-left: 8px;
  }

  .signal-node strong {
    font-size: 21px;
  }

  .signal-note span:last-child,
  .ticket-code {
    display: none;
  }

  .login-form-wrap {
    padding-right: 7%;
    padding-left: 7%;
  }

  .login-form {
    padding: 37px 26px 31px;
    box-shadow:
      7px 7px 0 #dfd2bb,
      0 20px 50px #4a281014;
  }

  dialog {
    padding: 25px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep display text on the bundled CJK face even when local calligraphic fonts are absent. */
.brand-copy strong,
.brand-copy small,
.login-story::before,
.login-story h1,
.ticket-head b,
.signal-node strong,
.login-footer,
.form-seal,
.form-kicker,
.login-form h2,
.field label small,
.sidebar::after,
.workspace-avatar,
.sidebar-motto i,
.avatar,
.duty-chip b,
.page-heading h1,
.ops-cell.live strong,
.ops-slogan b,
.sender-avatar,
.detail-kicker,
.empty-icon::after,
.empty h3,
.section-card h2,
.setup-banner > span,
.api-seal,
.dialog-kicker,
dialog h2 {
  font-family: "Noto Sans SC Variable", "PingFang SC", sans-serif;
}
