:root {
  --ink: #263b32;
  --muted: #7a837c;
  --line: #e6e9e4;
  --paper: #f5f6f2;
  --gold: #a68a54
}

* {
  box-sizing: border-box
}

[hidden] {
  display: none !important
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.65 "Microsoft YaHei", sans-serif
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer;
  transition: background .15s
}

button:disabled {
  opacity: .45;
  cursor: not-allowed
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b9cabb;
  outline-offset: 3px
}

h1,
h2,
p {
  margin: 0
}

h1 {
  font-size: 30px;
  letter-spacing: 1px
}

h2 {
  font-size: 17px
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 12px
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 12px
}

.brandmark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #eadfc7;
  border-radius: 13px;
  width: 44px;
  height: 44px;
  font-family: serif;
  font-size: 26px
}

.environment {
  display: inline-block;
  border: 1px solid #cad6c8;
  color: #536951;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px
}

.primary,
.secondary {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 20px;
  font-weight: 600
}

.primary {
  background: var(--ink);
  color: white
}

.primary:hover {
  background: #395447
}

.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
  padding: 8px 14px
}

.secondary:hover {
  background: #eff2ec
}

.text-button {
  border: 0;
  background: transparent;
  color: #5f765f;
  padding: 8px
}

.wide {
  width: 100%
}

input,
select,
textarea {
  border: 1px solid #dce2da;
  border-radius: 6px;
  background: white;
  padding: 11px 13px;
  color: var(--ink);
  width: 100%
}

label {
  display: block;
  font-size: 13px;
  margin: 20px 0
}

label input,
label select {
  display: block;
  margin-top: 8px
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1080px, calc(100% - 96px));
  min-height: 660px;
  margin: max(40px, calc((100vh - 660px) / 2)) auto;
  border: 1px solid #e1e5dc;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px #25392d0d;
}

.auth-story {
  background: #243c31;
  color: #f1f2e9;
  padding: 44px 48px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story::before, .auth-story::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid #d5debf14;
  border-radius: 50%;
  right: -290px;
  bottom: -180px;
  pointer-events: none;
}
.auth-story::after { width: 600px; height: 600px; right: -360px; bottom: -250px; }
.auth-story > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand .brandmark { background: #f0e9d9; color: #2a4133; border-radius: 12px; width: 46px; height: 46px; }
.auth-brand strong { font-size: 17px; font-weight: 500; letter-spacing: 2px; }
.auth-brand span { display: block; color: #a6b7a6; font-size: 9px; letter-spacing: 3px; margin-top: 2px; }
.auth-message { padding: 58px 0 68px; }
.auth-story .eyebrow { color: #bdb48a; font-size: 10px; letter-spacing: 3px; margin-bottom: 20px; }
.auth-story h1 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.65;
  letter-spacing: 3px;
  font-weight: 500;
}
.auth-intro { margin-top: 23px; color: #b0c0b1; font-size: 13px; line-height: 1.9; }
.auth-topics { display: flex; gap: 15px; margin-top: 34px; color: #c9d4c3; font-size: 11px; }
.auth-topics span + span { border-left: 1px solid #718373; padding-left: 15px; }
.auth-story-footer { display: flex; width: 100%; justify-content: space-between; align-items: center; color: #93aa97; font-size: 10px; letter-spacing: 1px; }
.auth-star { font-size: 29px; color: #c8bb8d; }
.auth-panel {
  display: grid;
  place-items: center;
  background: #fcfcfa;
  padding: 48px 58px;
}

.auth-inner {
  width: 100%;
  max-width: 360px;
}

.auth-inner h2 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.auth-inner form {
  margin: 28px 0 18px;
}
.auth-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.auth-heading .eyebrow { margin: 0; font-size: 9px; letter-spacing: 2px; }
.auth-heading .environment { font-size: 10px; border: 0; background: #eef2e9; color: #6c7d68; border-radius: 20px; padding: 4px 12px; }
.auth-inner .muted { font-size: 12px; }
.auth-inner label { color: #536458; font-size: 12px; margin: 19px 0; }
.auth-inner input { padding: 13px 14px; border-radius: 9px; font-size: 13px; background: #fff; }
.auth-inner input::placeholder { color: #acb2a8; }
.auth-inner .primary { padding: 13px 18px; border-radius: 9px; font-size: 13px; margin-top: 6px; letter-spacing: 1px; }
.auth-inner .primary span { margin-left: 10px; font-size: 17px; }
.password-field { position: relative; margin-top: 8px; }
.password-field input { padding-right: 64px; margin: 0; }
.password-field button { position: absolute; right: 9px; top: 6px; padding: 8px; border: 0; background: transparent; color: #7e8d7a; font-size: 11px; border-radius: 4px; }
.auth-role-note { text-align: center; font-size: 11px; line-height: 1.9; color: #8b9487; }
.auth-register { display: flex; justify-content: center; align-items: center; gap: 2px; border-top: 1px solid #e7ebe2; margin-top: 25px; padding-top: 15px; font-size: 11px; color: #90998b; }
.auth-register .text-button { padding: 8px 4px; font-size: 11px; }
.auth-footnote { text-align: center; color: #aab1a5; font-size: 10px; margin-top: 21px; letter-spacing: 1px; }
.auth-error { background: #fff1e9; border: 1px solid #edd7c9; color: #895b43; border-radius: 8px; padding: 10px 12px; margin-top: 15px; font-size: 12px; }
.auth-error a { color: #365c42; }
@media(max-width: 1050px) {
  .auth-layout { width: calc(100% - 48px); }
  .auth-story { padding: 38px 32px; }
  .auth-panel { padding: 40px 32px; }
}
@media(max-width: 700px) {
  .auth-layout { display: block; width: calc(100% - 32px); margin: 20px auto; min-height: 0; }
  .auth-story { padding: 24px; }
  .auth-message, .auth-story-footer { display: none; }
  .auth-panel { padding: 32px 24px; }
}

.workspace {
  display: flex;
  min-width: 1024px;
  min-height: 100vh
}

aside {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #edf0e8;
  border-right: 1px solid #dce3d7;
  padding: 36px 22px;
  display: flex;
  flex-direction: column
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand strong {
  font-size: 17px
}

.brand small {
  display: block;
  color: #84907f;
  font-size: 10px;
  letter-spacing: 3px
}

.nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #86917e;
  margin: 48px 12px 18px
}

nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 15px;
  margin-bottom: 7px;
  border-radius: 7px;
  color: #667560
}

nav button.active {
  background: #dce4d5;
  color: #263b32;
  font-weight: 600
}

nav span {
  font-size: 10px;
  opacity: .5
}

.sidebar-bottom {
  margin-top: auto;
  color: #839079
}

.sidebar-bottom p {
  margin-top: 14px
}

.main {
  margin-left: 230px;
  flex: 1;
  min-width: 0
}

header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fcfdfa;
  border-bottom: 1px solid var(--line);
  font-size: 12px
}

.separator {
  padding: 0 15px;
  color: #b8c0b5
}

.account {
  display: flex;
  align-items: center;
  gap: 25px
}

main {
  padding: 40px;
  max-width: 1680px;
  margin: auto
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px
}

.page-heading .muted {
  margin-top: 10px;
  font-size: 13px
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px
}

.stats section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
  position: relative
}

.stats span {
  color: #7f8979;
  font-size: 12px
}

.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
  margin: 8px 0
}

.stats small {
  font-size: 11px;
  color: #9aa292
}

.content-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line)
}

.toolbar form {
  display: flex;
  gap: 10px
}

.toolbar input {
  width: 240px;
  padding: 8px 12px
}

.table-scroll {
  overflow: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap
}

th {
  background: #fafbf8;
  text-align: left;
  color: #8b9586;
  font-size: 11px;
  font-weight: 500
}

th,
td {
  padding: 18px 24px;
  border-bottom: 1px solid #eff1ed
}

tbody tr:hover {
  background: #fbfcf9
}

.person {
  display: flex;
  align-items: center;
  gap: 11px
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eedf;
  color: #7b876a;
  font-size: 13px
}

.person strong {
  font-weight: 500;
  font-size: 13px
}

.person small {
  display: block;
  font-size: 10px;
  color: #98a08f
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e1e6d8;
  border-radius: 4px;
  margin: 2px 4px 2px 0;
  color: #697b59;
  background: #f7f9f2;
  font-size: 11px
}

.status {
  color: #729666
}

.status.off {
  color: #b0927a
}

.row-actions {
  display: flex;
  gap: 6px
}

.row-actions button {
  font-size: 11px;
  padding: 5px 7px
}

.row-actions .danger {
  color: #a36d5d
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  color: #8b9485;
  font-size: 12px
}

.pagination button {
  font-size: 11px;
  margin-left: 7px
}

.empty {
  text-align: center;
  padding: 65px;
  color: #8c9787
}

dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 460px;
  max-width: 90vw;
  padding: 28px;
  box-shadow: 0 20px 80px #263b3230
}

dialog::backdrop {
  background: #1d2c2355
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px
}

textarea {
  resize: none;
  margin: 20px 0 4px;
  min-height: 72px;
  font-family: monospace;
  font-size: 16px
}

#code-dialog .wide {
  margin-top: 20px
}

#notice {
  position: fixed;
  z-index: 100;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  max-width: 80vw;
  color: white;
  background: #344939;
  border-radius: 8px;
  box-shadow: 0 8px 20px #0002
}

#notice.error {
  background: #884f43
}

@media(max-width:1100px) {
  main {
    padding: 28px
  }

  aside {
    width: 205px
  }

  .main {
    margin-left: 205px
  }

  th,
  td {
    padding: 16px
  }

  .stats section {
    padding: 20px
  }

  .row-actions {
    gap: 0
  }
}

.auth-filing { margin: 14px 0 0; text-align: center; font-size: 12px; line-height: 1.6; }
.auth-filing a { color: #77716d; text-decoration: none; }
.auth-filing a:hover { text-decoration: underline; }

.acceptance-banner{position:sticky;top:0;z-index:1000;padding:10px 16px;background:#fff3d6;color:#73571c;text-align:center;font-size:14px;line-height:1.5;border-bottom:1px solid #ead5a5}
