:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #30334d;
  background: #f3f4fb;
  font-synthesis: none;
  --muted: #777d98;
  --purple: #7464d9;
  --line: rgba(125, 127, 165, 0.15);
  --glass: rgba(255, 255, 255, 0.66);
  --shadow: 0 12px 35px #34376006;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a394fa;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.a1 {
  width: 600px;
  height: 600px;
  top: -280px;
  right: 0;
  background: #ded6ff99;
}
.a2 {
  width: 550px;
  height: 550px;
  bottom: -200px;
  left: 5%;
  background: #bce9e866;
}
.glass {
  background: var(--glass);
  border: 1px solid #ffffffd9;
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 9px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.75;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 1px;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 500;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 32px 22px;
  background: #ffffff72;
  backdrop-filter: blur(28px);
  border-right: 1px solid #fff;
  display: flex;
  flex-direction: column;
  gap: 34px;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 10px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9a9cb2;
  padding: 0 16px;
  margin: 0 0 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 13px 16px;
  border-radius: 13px;
  color: #798098;
  font-size: 13px;
  white-space: nowrap;
}
.nav button:hover {
  background: #f0edf9;
}
.nav button.active {
  background: linear-gradient(100deg, #8778e9, #9a8bf0);
  color: white;
  box-shadow: 0 7px 16px #8170de22;
}
.nav button .arrow {
  margin-left: auto;
  opacity: 0.6;
}
.sidebar-foot {
  margin-top: auto;
}
.user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 15px 5px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border-radius: 13px;
  background: #e9e3fb;
  color: #7968c7;
  font-weight: 650;
}
.user strong {
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 125px;
}
.user small {
  font-size: 10px;
}
.main {
  min-width: 0;
  padding: 0 38px 40px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.crumb {
  font-size: 12px;
  color: #8a8da5;
  flex: 1;
}
.crumb b {
  font-weight: 500;
  color: #5c617f;
  margin-left: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
  background: #edf8f1;
  color: #5b9576;
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.tag.purple {
  background: #efeafb;
  color: #8974c7;
}
.tag.gray {
  background: #efeff6;
  color: #7b8097;
}
.tag.amber {
  background: #fff2dc;
  color: #a77b32;
}
.tag.red {
  background: #fceced;
  color: #b26370;
}
.icon-btn {
  border: 1px solid var(--line);
  background: #ffffff80;
  border-radius: 11px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  color: #9a91bb;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffffa3;
  padding: 10px 16px;
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1.5;
}
.button.primary {
  background: linear-gradient(110deg, #8c7ce6, #7162cb);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 16px #8472d920;
}
.button.danger {
  background: #fff1f3;
  color: #b34f68;
}
.button.text {
  border: 0;
  background: none;
  color: var(--purple);
}
.button.small {
  font-size: 11px;
  padding: 5px 11px;
  min-height: 30px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  padding: 23px 23px 19px;
  position: relative;
  min-width: 0;
}
.stat-icon {
  color: #9686cb;
  background: #efebfb;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
}
.stat:nth-child(2) .stat-icon {
  color: #71a995;
  background: #e7f3ed;
}
.stat:nth-child(3) .stat-icon {
  color: #ca9b6d;
  background: #fff0e2;
}
.stat:nth-child(4) .stat-icon {
  color: #849ccd;
  background: #eaf0fc;
}
.stat-label {
  font-size: 12px;
  color: #8287a0;
}
.stat-value {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 10px 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 22px;
}
.panel {
  padding: 25px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 25px;
}
.panel-head h2 {
  margin: 0;
}
.welcome {
  background: linear-gradient(115deg, #ebe6ff99, #e8eefa88);
  overflow: hidden;
  position: relative;
  padding: 32px;
  margin-bottom: 22px;
}
.welcome h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
  position: relative;
}
.welcome p {
  font-size: 12px;
  color: #82819e;
  max-width: 470px;
  position: relative;
  margin-bottom: 24px;
}
.welcome::after {
  content: "道";
  position: absolute;
  right: 24px;
  bottom: -25px;
  font-family: serif;
  font-size: 180px;
  line-height: 1;
  color: #a497d819;
  transform: rotate(-12deg);
}
.welcome .button {
  position: relative;
  z-index: 1;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick {
  border: 1px solid var(--line);
  background: #fff8;
  padding: 20px 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  font-size: 12px;
}
.quick svg {
  color: #9384c7;
}
.quick:hover {
  background: white;
  transform: translateY(-2px);
}
.activity-mini {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.activity-mini:last-child {
  border-bottom: 0;
}
.activity-mini .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #aa9ce1;
  flex-shrink: 0;
}
.activity-mini strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.activity-mini small {
  font-size: 10px;
}
.activity-mini .tag {
  margin-left: auto;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #ded8f1;
  background: #ede9fb66;
  border-radius: 12px;
  font-size: 12px;
  color: #84739e;
  line-height: 1.8;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar form {
  display: flex;
  gap: 9px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}
.toolbar select {
  max-width: 180px;
}
.toolbar input[type="date"] {
  max-width: 170px;
}
.input,
input,
select,
textarea {
  background: #fffc;
  color: #42465e;
  border: 1px solid #dcdde9;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #a9aabd;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table-wrap:focus {
  outline-offset: 2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 500;
  background: #f5f4fa99;
  color: #8d8fa7;
  text-align: left;
  padding: 15px 17px;
}
td {
  padding: 17px;
  border-top: 1px solid var(--line);
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td.wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 170px;
}
tbody tr:hover {
  background: #fff7;
}
.cell-main {
  font-weight: 550;
  color: #4b506b;
}
.cell-sub {
  font-size: 10px;
  color: #989bb0;
  margin-top: 5px;
}
.empty {
  padding: 55px 16px;
  text-align: center;
  color: #9295ad;
  font-size: 13px;
}
.empty svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  color: #b1a6d5;
}
.pagination {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.pagination > span:first-child {
  margin-right: auto;
}
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.config-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.config-card h3 {
  margin: 0;
}
.config-card .config-title {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.config-card code {
  font-size: 10px;
  color: #9394ac;
  overflow-wrap: anywhere;
}
.config-card p {
  font-size: 11px;
  color: #9296aa;
  margin: 0;
}
.config-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.scope-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  margin-bottom: 18px;
}
.scope-panel > div { min-width: 0; }
.scope-panel p { margin: 7px 0 0; color: var(--muted); }
.scope-panel select { max-width: 100%; min-width: 0; flex: 0 1 380px; }
.config-version { margin: 0 0 20px; overflow-wrap: anywhere; }
.form-field small { overflow-wrap: anywhere; }
.form-field input:disabled, .form-field textarea:disabled { opacity: .7; cursor: not-allowed; }
.zone-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zone-lines span {
  padding: 8px 12px;
  background: #eeeef8;
  border-radius: 8px;
  font-size: 11px;
}
.bottom-note {
  text-align: center;
  color: #a8a9bc;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 35px;
}
.boot {
  min-height: 70vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.loader {
  padding: 65px;
  text-align: center;
  color: var(--muted);
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 32px;
  gap: 45px;
  max-width: 1500px;
  margin: auto;
  align-items: center;
}
.auth-art {
  background: linear-gradient(145deg, #eae4fb99, #dce8f4aa 70%, #d6eeeb88);
  border: 1px solid white;
  border-radius: 32px;
  align-self: stretch;
  min-height: 700px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art h1 {
  font-size: 46px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.auth-art h1 span {
  color: #9181c6;
}
.auth-art p {
  color: #9290ac;
  font-size: 13px;
  max-width: 350px;
  position: relative;
  z-index: 1;
}
.orbit {
  width: 340px;
  height: 340px;
  position: relative;
  margin: 20px auto 0;
  border: 1px solid #ffffffa6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #fff6, #fff0);
  box-shadow:
    0 20px 70px #b1a4d433,
    inset 0 0 50px #fff6;
  transform: rotate(-12deg);
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
}
.orbit::after {
  inset: 80px;
  background: linear-gradient(145deg, #ffffff80, #c7b5f333);
  box-shadow: 12px 16px 35px #a89bc733;
}
.orbit b {
  font-family: serif;
  font-size: 100px;
  font-weight: 400;
  color: #fff;
  z-index: 1;
  text-shadow: 0 4px 25px #b8a7d999;
  transform: rotate(12deg);
}
.auth-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa2bc;
  position: relative;
  z-index: 1;
}
.auth-side {
  padding: 35px;
  max-width: 520px;
  width: 100%;
  margin: auto;
}
.auth-side .eyebrow {
  margin-bottom: 18px;
}
.auth-side h2 {
  font-size: 29px;
  margin-bottom: 12px;
}
.auth-side > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #eae8f388;
  border-radius: 12px;
  margin-bottom: 30px;
}
.tabs button {
  width: 50%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #8c8ca7;
  font-size: 13px;
  border-radius: 9px;
}
.tabs button.active {
  background: #fff;
  color: #7e6fc4;
  box-shadow: 0 3px 10px #3331;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
  min-width: 0;
}
.form-field label {
  font-size: 12px;
  color: #666b87;
}
.form-field input {
  padding: 13px 14px;
}
.form-field small {
  font-size: 10px;
}
.full {
  width: 100%;
}
.auth-help {
  text-align: center;
  font-size: 11px;
  color: #a0a1b6;
  margin-top: 22px;
  line-height: 1.8;
}
.error {
  color: #b85166;
  background: #fff0f2;
  border: 1px solid #f6dce2;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.auth-form .button {
  min-height: 47px;
}
.password-wrap {
  display: flex;
  gap: 8px;
}
.password-wrap input {
  flex: 1;
  width: 100%;
}
.password-wrap button {
  flex-shrink: 0;
}
.menu-shade {
  display: none;
}
dialog {
  border: 1px solid white;
  border-radius: 22px;
  width: min(730px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 0;
  background: #f7f7fc;
  box-shadow: 0 30px 120px #2b215b44;
  color: inherit;
}
dialog::backdrop {
  background: #34344a44;
  backdrop-filter: blur(5px);
}
.modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: sticky;
  top: 0;
  background: #f7f7fc;
  z-index: 2;
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.8;
  background: #eaeaf4;
  padding: 16px;
  border-radius: 12px;
  max-height: 320px;
  overflow: auto;
  tab-size: 2;
}
details {
  font-size: 12px;
  margin: 17px 0;
}
summary {
  cursor: pointer;
  color: #827699;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #46405ceb;
  color: white;
  border-radius: 13px;
  padding: 14px 22px;
  box-shadow: 0 10px 30px #34304e22;
  font-size: 12px;
  max-width: calc(100% - 32px);
  overflow-wrap: anywhere;
}
.switch-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.switch-line input {
  accent-color: #8573d9;
  width: 19px;
  height: 19px;
}
.inline-buttons {
  display: flex;
  gap: 6px;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.hero-tag {
  display: inline-block;
  border: 1px solid #ded7ec;
  background: #fff6;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 10px;
  color: #a093b2;
}
.status-page {
  max-width: 540px;
  margin: 60px auto;
  text-align: center;
}
.mobile-close {
  display: none;
}
@media (min-width: 1550px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .auth-art {
    min-height: 790px;
  }
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 14px;
  }
  .main {
    padding: 0 25px 30px;
  }
  .config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 30px;
    min-height: 670px;
  }
  .auth-art h1 {
    font-size: 37px;
  }
  .orbit {
    width: 280px;
    height: 280px;
  }
  .auth-layout {
    gap: 15px;
  }
  .auth-side {
    padding: 25px;
  }
}
@media (max-width: 850px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 25px;
    min-height: 100dvh;
  }
  .auth-art {
    display: none;
  }
  .auth-side {
    padding: 28px 18px;
    max-width: 470px;
  }
  .auth-side::before {
    content: "云境 / 问道运营";
    display: block;
    color: #9789bd;
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 50px;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    background: #f8f7fe;
    overflow: auto;
  }
  .layout.menu-open .sidebar {
    transform: translateX(0);
  }
  .layout.menu-open .menu-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #2224;
    border: 0;
    z-index: 19;
  }
  .mobile-close {
    display: block;
    position: absolute;
    right: 9px;
    top: 9px;
    border: 0;
    background: none;
    font-size: 20px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .main {
    padding: 0 17px 25px;
  }
  .topbar {
    height: 73px;
    margin-bottom: 25px;
    gap: 9px;
  }
  .topbar > .tag {
    display: none;
  }
  .heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading p {
    font-size: 11px;
  }
  .heading > .button {
    padding: 8px 11px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-icon {
    margin-bottom: 15px;
    width: 32px;
    height: 32px;
  }
  .panel {
    padding: 18px;
  }
  .welcome {
    padding: 23px;
  }
  .welcome h2 {
    font-size: 22px;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .config-card {
    padding: 20px;
  }
  .toolbar form {
    width: 100%;
  }
  .toolbar input {
    max-width: none;
    width: 100%;
  }
  .quick {
    padding: 18px 6px;
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-head {
    padding: 17px;
  }
  .modal-body {
    padding: 19px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .crumb {
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
  .topbar time {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Operations workspaces */
.sidebar { gap: 20px; }
.sidebar-nav { min-height: 0; overflow-y: auto; flex: 1; }
.sidebar .brand, .sidebar-foot { flex-shrink: 0; }
.ops-stage { display: flex; gap: 16px; align-items: baseline; margin-bottom: 22px; }
.ops-stage strong { white-space: nowrap; }
.ops-panel { margin-bottom: 22px; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-sub { display: block; color: var(--muted); margin-top: 7px; max-width: 260px; overflow-wrap: anywhere; }
.ops-zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px),1fr)); gap: 22px; }
.ops-zone { min-width: 0; }
.ops-meta { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; font-size: 13px; margin: 24px 0; }
.ops-meta dt { color: #797e93; }
.ops-meta dd { margin: 0; overflow-wrap: anywhere; }
.ops-lines { margin: 22px 0; border-top: 1px solid var(--line); }
.ops-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.ops-lines small { display: block; margin-top: 6px; color: #797e93; }
.ops-empty { text-align: center; padding: 60px 24px; }
.ops-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 18px 0; }
.ops-toolbar input { width: min(100%, 390px); }
#ops-files { max-height: 620px; overflow: auto; }
#ops-files code { overflow-wrap: anywhere; }
dialog:has(.ops-source) { width: min(1100px, calc(100% - 28px)); }
textarea.ops-source { min-height: 380px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 4; white-space: pre; }
.ops-digest { display: block; overflow-wrap: anywhere; font-size: 12px; }
.ops-release { border: 1px solid var(--line); border-radius: 12px; max-height: 300px; overflow: auto; }
.ops-release label { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 12px; }
.ops-release input { width: auto; }
@media(max-width:700px) {
  .ops-stage { flex-direction: column; gap: 6px; }
  .ops-lines > div { align-items: flex-start; flex-direction: column; }
  .ops-meta { grid-template-columns: 80px minmax(0,1fr); }
}

.heading > .button { flex-shrink: 0; white-space: nowrap; }

.monitor-updated { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:16px 0; font-size:12px; color:#797e93; }
.monitor-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0; }
.monitor-stats > div { border:1px solid var(--line); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:10px; }
.monitor-stats strong { font-size:24px; color:#55477e; overflow-wrap:anywhere; }
.monitor-stats span { font-size:11px; color:#797e93; }
#mfa-secret { font-family:ui-monospace,monospace; font-size:14px; }
#mfa-recovery { font-size:15px; letter-spacing:1px; }
@media(max-width:1000px) { .monitor-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:420px) { .monitor-stats { gap:8px; } .monitor-stats > div { padding:12px; } .monitor-stats strong { font-size:20px; } }

/* LOCAL_DESIGN: compact, keyboard-accessible maintenance menu. */
.ops-batch-menu { position: relative; }
.ops-batch-menu > summary { cursor: pointer; list-style: none; }
.ops-batch-menu[open] > div { position: absolute; right: 0; top: 100%; z-index: 5; display: grid; gap: 8px; padding: 12px; min-width: 180px; background: #fff; border: 1px solid #e4e4ee; border-radius: 12px; box-shadow: 0 10px 30px #2222; }

.ops-version-times { display: grid; gap: 6px; min-width: 190px; font-size: 12px; }

.ops-version-actions { min-width: 160px; max-width: 230px; }

/* LOCAL_DESIGN 2026-10-06: visible per-zone GM grant entry and inline search. */
.ops-access-accounts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ops-access-accounts .panel-head { flex-wrap: wrap; gap: 12px; }
.ops-access-accounts h3 { margin: 0; }
.ops-access-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 18px; }
.ops-access-search .form-field { flex: 1 1 240px; min-width: 0; margin: 0; }
.ops-access-search .error { flex-basis: 100%; margin: 0; }
.ops-access-empty { margin: 18px 0; }
@media(max-width:500px) { .ops-access-search > button { width: 100%; } }

.ops-central-confirm{display:flex;align-items:flex-start;gap:10px;margin:18px 0;line-height:1.7}
.ops-central-confirm input{flex:0 0 auto;margin-top:6px;width:18px;height:18px}

.ops-status-light{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;padding:6px 9px;border-radius:12px;background:var(--surface,#fff)}
.ops-status-light i{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}.ops-status-light.green{color:#268463}.ops-status-light.red{color:#c24355}.ops-status-light.amber{color:#996616}.ops-status-light.gray{color:#73788a}.ops-task-warning{margin:14px 0;overflow-wrap:anywhere}.ops-task-warning p{margin:8px 0}.ops-zone>details{margin-bottom:16px}.ops-lines .ops-status-light{margin-top:5px}

.ops-task-warning[hidden]{display:none}
/* Reservation date controls remain full-width on mobile and do not inherit the release list's scroll box. */
.reservation-fields { max-height:none; overflow:visible; padding:12px 16px; margin-top:16px; }
.reservation-fields input, .reservation-fields select { width:100%; min-width:0; }
.reservation-fields[hidden], .reservation-fields [hidden] { display:none !important; }

/* LOCAL_DESIGN 2026-10-06: activity data, schedules and reward editors. */
.activity-filter { display:flex; flex-wrap:wrap; gap:18px; align-items:end; }
.activity-filter label { flex:1; min-width:190px; display:grid; gap:8px; }
.activity-filter small { width:100%; color:var(--muted); }
.activity-capabilities { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; font-size:13px; color:var(--muted); }
.activity-capabilities span { padding:5px 9px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.activity-card code { overflow-wrap:anywhere; }
.activity-card p { font-size:13px; }
.activity-group { border:1px solid var(--line); border-radius:14px; padding:16px; margin:14px 0; }
.activity-group summary { cursor:pointer; font-weight:650; }
.activity-group summary small { font-weight:400; color:var(--muted); margin-left:8px; }
.activity-row { border:0; border-top:1px solid var(--line); padding:14px 0; margin:12px 0 0; min-width:0; }
.activity-row legend { color:var(--muted); font-size:12px; padding-right:8px; overflow-wrap:anywhere; }
.activity-values { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:16px; }
.activity-value { min-width:0; margin:0; }
.activity-value input, .activity-value select, .activity-value textarea { max-width:100%; width:100%; min-width:0; }
.activity-value small, .activity-comment { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.activity-readonly { white-space:pre-wrap; overflow-wrap:anywhere; padding:10px; border-radius:8px; background:rgba(120,120,150,.07); font-size:13px; }
.activity-raw { margin-top:18px; }
.activity-linked { border-color:#c19a43; }
@media(max-width:600px) { .activity-group { padding:10px; } .activity-values { grid-template-columns:1fr; } }

.activity-protected { grid-column:1/-1; color:var(--muted); font-size:12px; }
.activity-protected summary { margin:8px 0; cursor:pointer; }
.activity-protected .activity-value { margin:12px 0; }
.activity-modal .modal-actions { position:sticky; bottom:-28px; padding:18px 0; background:#f8f8ff; z-index:3; border-top:1px solid var(--line); }
/* Activity configuration review: scoped, readable before/after values. */
.activity-workflow{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;color:var(--muted);font-size:13px}
.activity-workflow span{padding:7px 10px;border:1px solid var(--line);border-radius:8px}
.activity-time-source{line-height:1.7;color:var(--text);font-size:13px}
.activity-document+.activity-document{border-top:1px solid var(--line);margin-top:26px;padding-top:18px}
.activity-document>code{overflow-wrap:anywhere;font-size:12px}
.activity-baseline{margin:14px 0}.activity-baseline summary,#activity-history summary{cursor:pointer;padding:10px 0}
.activity-diff-scroll{overflow-x:auto;margin:12px 0}.activity-diff{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.activity-diff th,.activity-diff td{padding:10px;border:1px solid var(--line);text-align:left;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}
.activity-diff th small{display:block;font-size:11px;font-weight:400;margin-top:5px;color:var(--muted)}
.activity-diff td:last-child{background:#f1f7f2}.activity-history-row{padding:14px 0;border-bottom:1px solid var(--line)}
#activity-review:not(:empty){border:1px solid #c3d6c6;border-radius:12px;padding:16px;margin:20px 0}
@media(max-width:600px){.activity-diff{min-width:520px}.activity-workflow{gap:6px}.activity-workflow span{font-size:11px}}
/* Record cleanup keeps selection compact and confirmation lists scrollable. */
.record-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:12px 0; }
.record-check { width:18px; height:18px; min-width:18px; padding:0; vertical-align:middle; }
.record-targets { max-height:180px; overflow:auto; overflow-wrap:anywhere; }

/* LOCAL_DESIGN 2026-10-11: flat feature tabs; only the agency hierarchy collapses. */
.agency-workspace { margin: 16px 0; padding: 6px 20px 0; min-width: 0; }
.agency-tabs { display: flex; flex-wrap: wrap; gap: 0 24px; border-bottom: 1px solid var(--line); }
.agency-tabs > button { position: relative; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 18px 2px 15px; font-weight: 600; white-space: nowrap; }
.agency-tabs > button:hover { color: var(--purple); }
.agency-tabs > button[aria-selected="true"] { color: var(--purple); border-bottom-color: var(--purple); }
.agency-tabs > button:focus-visible { outline-offset: -3px; border-radius: 4px; }
.agency-section-body { padding: 8px 0 20px; }
.agency-section-body[hidden] { display: none; }
.agency-security { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 4px; }
.agency-security > span { margin-right: 4px; font-size: 13px; }
.agency-node > summary { cursor: pointer; padding: 16px; }
.agency-node > summary small { color: #77738c; margin: 0 10px; }
.agency-node { border: 1px solid #e8e5f1; border-radius: 12px; margin-top: 12px; background: #ffffffa8; min-width: 0; }
.agency-node > summary { overflow-wrap: anywhere; }
.agency-node-body { padding: 0 16px 16px; min-width: 0; }
.agency-children { margin-left: 12px; }
.agency-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.agency-filter input, .agency-filter select { max-width: 100%; min-width: 0; }
.agency-filter input[name=q] { flex: 1 1 280px; }
.agency-filter label { display: flex; gap: 6px; align-items: center; }
.agency-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; }
.agency-invite strong { font-family: monospace; font-size: 20px; overflow-wrap: anywhere; }
.agency-invite small { color: #77738c; }
/* Player results share a header row; narrow screens scroll inside the table only. */
.agency-player-table { border: 1px solid var(--line); border-radius: 10px; margin-top: 16px; }
.agency-player-table table { min-width: 1080px; font-size: 13px; }
.agency-player-table th, .agency-player-table td { padding: 14px 12px; }
.agency-player-table th { background: #f5f3fb; font-size: 12px; }
.agency-player-table tbody tr:nth-child(even) { background: #f8f7fc; }
.agency-player-table tbody tr:hover { background: #f0edfb; }
.agency-player-id { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; }
.agency-amount { font-weight: 700; color: #6255cf; text-align: right; }
.agency-player-table th:nth-child(7) { text-align: right; }
.agency-summary { display: flex; gap: 20px; flex-wrap: wrap; padding: 15px 0; }
/* Keep exact wallet strings selectable and contained on narrow screens. */
.agency-address { font-family: ui-monospace, SFMono-Regular, monospace; user-select: text; }
.agency-agent-table table { min-width: 850px; }
.agency-settlement-form { max-width: 680px; padding: 16px 0; }
.agency-settlement-form input { width: 100%; min-width: 0; }
/* Order IDs remain selectable; wider order columns scroll inside each hierarchy node. */
.agency-order-table table { min-width: 1200px; font-size: 13px; }
.agency-order-id { font-family: ui-monospace, SFMono-Regular, monospace; user-select: text; }
.agency-filter input[name=orderId], .agency-filter input[name=account] { flex: 1 1 220px; }
@media (max-width:700px) {
  .agency-workspace { padding: 0 10px; }
  .agency-tabs { gap: 0 16px; }
  .agency-tabs > button { padding: 14px 0 11px; font-size: 14px; }
  .agency-section-body { padding: 4px 0 12px; }
  .agency-node-body { padding: 0 6px 10px; }
  .agency-children { margin-left: 3px; }
  .agency-node > summary { padding: 12px 8px; }
  .agency-node > summary small { display: block; margin: 5px 0; }
  .agency-filter input[name=q], .agency-filter > select { flex: 1 1 100%; width: 100%; }
}
