:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  color: #17201f;
  background: #f4f6f5;
  font-size: 14px;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 320px; background: #f4f6f5; }
a { color: #116b59; text-decoration: none; }
a:hover { color: #0b4f42; }
button, input, select, textarea { font: inherit; }
.topbar { height: 60px; padding: 0 32px; background: #fff; border-bottom: 1px solid #dce2e0; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #17201f; font-size: 15px; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #12705d; border-radius: 6px; }
.topbar nav { display: flex; align-self: stretch; gap: 4px; }
.topbar nav a { color: #465250; padding: 0 14px; display: grid; place-items: center; border-bottom: 2px solid transparent; }
.topbar nav a:hover { color: #116b59; border-bottom-color: #116b59; }
.account { margin-left: auto; display: flex; align-items: center; gap: 14px; color: #5f6b69; }
.account form { margin: 0; }
.page { width: min(1440px, calc(100% - 48px)); margin: 32px auto 64px; }
.page.narrow { width: min(900px, calc(100% - 48px)); }
.page-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 26px; line-height: 1.25; }
h2 { margin-bottom: 0; font-size: 17px; }
.page-heading p, .publish-bar p { margin: 0; color: #697573; }
.back-link { display: inline-block; margin-bottom: 8px; font-size: 13px; }
.button { min-height: 36px; border: 1px solid #cbd4d2; border-radius: 6px; padding: 8px 15px; background: #fff; color: #26312f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.button:hover { background: #f5f8f7; color: #17201f; }
.button.primary { color: #fff; background: #126b59; border-color: #126b59; }
.button.primary:hover { background: #0d594a; }
.button.danger { color: #a52b2b; border-color: #e3baba; background: #fff; }
.button.danger:hover { background: #fff2f2; }
.button.quiet { background: transparent; }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 13px; }
.button.full { width: 100%; }
.notice { margin-bottom: 20px; border-radius: 6px; padding: 12px 14px; border: 1px solid; }
.notice.error { color: #8e2626; background: #fff3f2; border-color: #efc7c4; }
.notice.success { color: #145b36; background: #effaf4; border-color: #b9ddc8; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid #dce2e0; border-radius: 7px; margin-bottom: 24px; }
.metrics div { padding: 20px 24px; display: flex; flex-direction: column; border-right: 1px solid #e3e8e6; }
.metrics div:last-child { border-right: 0; }
.metrics strong { font-size: 24px; }
.metrics span { color: #697573; margin-top: 3px; }
.section { background: #fff; border-top: 1px solid #dce2e0; border-bottom: 1px solid #dce2e0; margin-bottom: 24px; }
.section-heading { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e7e5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #65716f; background: #f8faf9; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
th, td { padding: 13px 16px; border-bottom: 1px solid #e8eceb; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: #75807e; }
.empty { color: #7a8583; text-align: center; padding: 36px; }
.status { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #edf0ef; color: #53605e; white-space: nowrap; }
.status.published { color: #12603b; background: #e8f6ee; }
.status.draft { color: #895c0a; background: #fff4d9; }
.status.disabled { color: #7b3434; background: #faeaea; }
.status.large { min-height: 30px; padding: 4px 11px; font-size: 13px; }
.danger-text { color: #a23838; }
.split-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list { padding: 0 20px; }
.list-row { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e8eceb; }
.list-row small { display: block; color: #74807e; margin-top: 3px; }
.create-box { padding: 15px 20px; }
.create-box summary { color: #116b59; cursor: pointer; }
.compact-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; padding-top: 14px; }
label { color: #34413f; display: flex; flex-direction: column; gap: 7px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #c8d1cf; border-radius: 5px; background: #fff; color: #17201f; padding: 9px 10px; outline: none; }
input, select { height: 39px; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #16816b; box-shadow: 0 0 0 3px rgba(22, 129, 107, .12); }
.editor-form { display: flex; flex-direction: column; gap: 20px; }
.form-section { padding: 23px 24px; background: #fff; border-top: 1px solid #dce2e0; border-bottom: 1px solid #dce2e0; display: flex; flex-direction: column; gap: 18px; }
.form-section h2 { padding-bottom: 13px; border-bottom: 1px solid #e6eae9; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-row { flex-direction: row; align-items: center; font-weight: 500; }
.check-row input { width: 17px; height: 17px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.artifact-band { display: grid; grid-template-columns: 1.2fr .6fr 2fr auto; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 20px; background: #eaf1ef; border: 1px solid #cbd9d6; }
.artifact-band div { min-width: 0; }
.artifact-band span { display: block; color: #697573; font-size: 12px; margin-bottom: 5px; }
.artifact-band strong, .artifact-band code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callback-band { grid-template-columns: minmax(0, 2fr) 1fr auto; }
code { font-family: Consolas, monospace; font-size: 12px; }
.publish-bar { margin-top: 24px; padding: 20px 24px; background: #fff; border: 1px solid #dce2e0; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.publish-bar strong { display: block; margin-bottom: 5px; }
.detail-cell { max-width: 380px; font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.openid-cell { min-width: 230px; max-width: 330px; }
.openid-cell code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.openid-cell small { font-family: Consolas, monospace; }
.openid-cell code + code { margin-top: 7px; }
.test-email-form { margin-top: 20px; }
.test-email-form .compact-form { grid-template-columns: 1fr auto; padding-top: 0; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.muted { color: #75807e; }
.install-id { min-width: 230px; max-width: 320px; }
.install-id code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status.downloaded, .status.installed { color: #12603b; background: #e8f6ee; }
.status.downloading, .status.installing, .status.notified { color: #225e87; background: #e9f3fa; }
.status.failed { color: #8e2626; background: #fff0ef; }
.login-shell { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: #eef2f0; }
.login-panel { width: min(400px, 100%); background: #fff; border: 1px solid #d8dfdd; border-radius: 7px; padding: 32px; box-shadow: 0 12px 40px rgba(25, 45, 40, .08); }
.login-brand { margin-bottom: 32px; }
.login-panel h1 { font-size: 22px; margin-bottom: 20px; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
@media (max-width: 900px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar nav { display: none; }
  .page, .page.narrow { width: min(100% - 24px, 900px); margin-top: 20px; }
  .split-sections { grid-template-columns: 1fr; }
  .artifact-band { grid-template-columns: 1fr 1fr; }
  .callback-band { grid-template-columns: 1fr; }
  .artifact-band .hash { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand > span:last-child { display: none; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 22px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-right: 0; border-bottom: 1px solid #e3e8e6; }
  .metrics div:last-child { border-bottom: 0; }
  .field-grid, .compact-form { grid-template-columns: 1fr; }
  .artifact-band { grid-template-columns: 1fr; }
  .artifact-band .hash { grid-column: auto; }
  .publish-bar { align-items: flex-start; flex-direction: column; }
}
