:root {
  --green: #16834b;
  --ink: #25302a;
  --muted: #67746b;
  --line: #dce5de;
  --background: #f3f5f3;
  --danger: #a1382a;
  --amber: #926417;
  font-family: "Microsoft YaHei","PingFang SC",sans-serif;
  color: var(--ink);
  background: var(--background);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
}
button,input,select,textarea {
  font: inherit;
}
button {
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  min-height: 40px;
}
button:hover {
  filter: brightness(.95);
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
button.danger {
  background: #fff;
  color: var(--danger);
  border-color: #e1b4ad;
}
button.small {
  padding: 5px 10px;
  min-height: 32px;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #6bbd92;
  outline-offset: 2px;
}
[hidden] {
  display: none!important;
}
h1,h2,h3,p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  margin-bottom: 0;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.8;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.5;
}
input,select,textarea {
  border: 1px solid #cbd6ce;
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  width: 100%;
  min-height: 42px;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}
input[type=checkbox] {
  width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin: 3px 0;
}
form {
  display: grid;
  gap: 18px;
}
form .actions {
  margin-top: 0;
}
.eyebrow {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 12px;
  margin: 0 0 6px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}
.notice {
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: #edf6ef;
  margin: 0 0 20px;
}
.notice.warning {
  border-color: var(--amber);
  background: #fff8eb;
}
.notice.error {
  border-color: var(--danger);
  background: #fff0ed;
}
.login-view {
  display: grid;
  grid-template-columns: minmax(280px,1fr) 380px;
  gap: 80px;
  max-width: 1080px;
  min-height: 100vh;
  margin: auto;
  align-items: center;
  padding: 60px 50px;
}
.login-intro {
  max-width: 440px;
}
.login-intro svg {
  width: 64px;
  height: 64px;
  color: var(--green);
  margin-bottom: 24px;
}
.login-intro h1 {
  font-size: 40px;
  margin-bottom: 20px;
}
.login-form {
  padding: 32px;
}
.login-form h2 {
  margin-bottom: 8px;
}
.app {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 38px;
  padding-left: 12px;
}
.brand svg {
  width: 32px;
  height: 32px;
  color: var(--green);
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 13px 14px;
  border-radius: 6px;
}
nav a:hover {
  background: var(--background);
}
nav a[aria-current=page] {
  background: #eaf5ed;
  color: var(--green);
  font-weight: bold;
}
.sidebar-note {
  color: var(--muted);
  font-size: 12px;
  margin: 40px 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: white;
  gap: 20px;
}
.account {
  display: flex;
  align-items: center;
  gap: 16px;
}
main {
  padding: 28px 32px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar label {
  min-width: 140px;
}
.toolbar label.grow {
  flex: 1;
}
.toolbar form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  flex: 1;
}
.toolbar input[type=search] {
  min-width: 220px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--muted);
  background: #f8faf8;
  font-weight: normal;
}
td,th {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.title-cell {
  white-space: normal;
  min-width: 150px;
  max-width: 280px;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: #edf1ee;
  color: var(--muted);
  font-size: 12px;
}
.badge.good {
  color: var(--green);
  background: #eaf5ed;
}
.badge.warn {
  color: var(--amber);
  background: #fff3d9;
}
.badge.bad {
  color: var(--danger);
  background: #fff0ed;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stat p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.stat strong {
  font-size: 30px;
  font-weight: 600;
}
.stat small {
  font-size: 13px;
  font-weight: normal;
  margin-left: 6px;
  color: var(--muted);
}
.description {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 12px 16px;
  margin: 0 0 24px;
}
.description dt {
  color: var(--muted);
}
.description dd {
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
}
.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full-width {
  grid-column: 1/-1;
}
dialog {
  width: min(740px,calc(100% - 32px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  color: var(--ink);
}
dialog::backdrop {
  background: #17271c66;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.dialog-heading h2 {
  margin: 0;
}
.media-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.media-item {
  width: calc(50% - 8px);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
}
.media-item img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}
.media-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.message-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.ticket-message {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcf9;
}
.ticket-message p {
  margin: 7px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.ticket-message small {
  color: var(--muted);
}
#message {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100% - 28px);
  padding: 14px 20px;
  border: 1px solid #8abd9c;
  border-radius: 6px;
  background: #effaf1;
  box-shadow: 0 3px 10px #1c392314;
  white-space: pre-wrap;
}
#message.error {
  background: #fff1ee;
  border-color: #dba79f;
  color: var(--danger);
}
@media(max-width:900px) {
  .app {
    grid-template-columns: 180px minmax(0,1fr);
  }
  .sidebar {
    padding: 26px 10px;
  }
  .brand {
    font-size: 17px;
  }
  .topbar {
    padding: 24px;
  }
  .account {
    gap: 8px;
  }
  main {
    padding: 24px;
  }
  .login-view {
    gap: 30px;
    padding: 40px 25px;
  }
}
@media(max-width:640px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 20px;
    min-height: auto;
  }
  .login-intro {
    max-width: none;
  }
  .login-intro svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
  .login-intro h1 {
    font-size: 28px;
  }
  .login-intro p:last-child {
    margin-bottom: 0;
  }
  .login-form {
    padding: 24px;
  }
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 14px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav a {
    flex-shrink: 0;
    font-size: 13px;
    padding: 10px;
  }
  .sidebar-note {
    display: none;
  }
  .topbar {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .account {
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
  }
  main {
    padding: 18px 14px;
  }
  .panel {
    padding: 18px 14px;
  }
  .stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat strong {
    font-size: 25px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar form {
    gap: 10px;
  }
  .toolbar label {
    flex: 1;
    min-width: 120px;
  }
  .toolbar input[type=search] {
    min-width: 0;
  }
  .toolbar form button {
    flex-shrink: 0;
  }
  .description {
    grid-template-columns: 95px minmax(0,1fr);
    gap: 12px 10px;
  }
  .split-form {
    grid-template-columns: 1fr;
  }
  .media-item {
    width: 100%;
  }
  dialog {
    padding: 20px;
  }
  .dialog-heading {
    margin-bottom: 22px;
  }
}
