:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172a3e;
  background: #f3f6fa;
  line-height: 1.5;
  --ink: #172a3e;
  --muted: #586d82;
  --line: #dfe7ef;
  --surface: #fff;
  --action: #145d88;
  --action-hover: #0e476d;
  --teal: #1c7367;
  --sidebar: #10263d;
  --sidebar-width: 232px;
  --header-height: 66px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .48; }
:focus-visible { outline: 2px solid #258e83; outline-offset: 3px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: middle; }

.workspace { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: auto;
  background: var(--sidebar);
  color: #d6e4f0;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; }
.sidebar .brand { margin: 24px 20px 25px; }
.brand-mark { display: grid; width: 43px; height: 43px; flex: none; place-items: center; overflow: hidden; border-radius: 11px; background: #f7fbfd; }
.brand-mark img { display: block; width: 42px; height: 42px; transform: scale(1.65); }
.brand-wordmark { display: grid; gap: 2px; }
.brand-wordmark strong { color: #fff; font-size: 17px; line-height: 1.25; font-weight: 700; }
.brand-wordmark > span { color: #a9bfd3; font-size: 12px; }
.section-nav { display: grid; gap: 17px; padding: 0 12px 22px; }
.nav-group { display: grid; gap: 3px; }
.nav-group p { padding: 0 12px 4px; color: #a1b6ca; font-size: 12px; }
.nav-link {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c8d7e5;
  font-size: 14px;
}
.nav-link .icon { color: #92adbf; font-size: 16px; }
.nav-link:hover { background: #1a3a53; color: #fff; }
.nav-link[aria-current] { background: #20475f; color: #fff; font-weight: 600; }
.nav-link[aria-current] .icon { color: #9ce3d5; }
.account {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding: 15px 16px;
  border-top: 1px solid #284258;
}
.account-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #abe0d6; background: #294a60; }
.account-name { min-width: 0; display: grid; }
.account-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f7fbfd; font-size: 13px; }
.account-name small { color: #a9bfd3; font-size: 12px; }
.account-logout { padding: 5px; color: #c6d7e7; border: 0; border-radius: 5px; background: transparent; font-size: 12px; }
.account-logout:hover { background: #20475f; color: #fff; }

.workspace-body { min-width: 0; }
.toolbar { position: sticky; z-index: 4; top: 0; background: #fff; border-bottom: 1px solid var(--line); }
.toolbar-inner, .stage { width: min(100%, 1392px); margin-inline: auto; padding-inline: clamp(22px, 3.1vw, 44px); }
.toolbar-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.breadcrumb, .toolbar-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a:hover { color: var(--action); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 650; }
.mobile-toggle { display: none; }
.db-indicator {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #226a5c;
  padding: 5px 9px;
  border-radius: 20px;
  background: #e9f5ef;
  font-size: 12px;
  white-space: nowrap;
}
.db-indicator i { width: 6px; height: 6px; border-radius: 100%; background: #278e75; }
.stage { padding-block: 27px 39px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.button .icon { font-size: 13px; }
.button-primary { background: var(--action); color: #fff; min-height: 40px; padding-inline: 15px; }
.button-primary:hover:not(:disabled) { background: var(--action-hover); }
.button-secondary { border-color: var(--line); color: #304a61; background: var(--surface); }
.button-secondary:hover:not(:disabled) { color: #124d71; background: #f1f7fb; }
.button-hero { background: #e8faf6; color: #154f49; padding-inline: 14px; }
.button-hero:hover { background: #fff; }
.button-remove { border-color: #efdad7; background: #fff; color: #9a3d32; }
.button-remove:hover { background: #fff1ee; }

.welcome, .login-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 98% 100%, #246c71, transparent 62%), linear-gradient(107deg, #153c62, #1e526f);
}
.welcome { padding: 28px 31px; min-height: 191px; border-radius: var(--radius); }
.welcome-copy { position: relative; z-index: 1; }
.welcome h1 { font-size: clamp(29px, 3vw, 37px); line-height: 1.2; letter-spacing: .035em; }
.welcome p { margin-top: 9px; color: #d6e7f0; font-size: 14px; }
.welcome .button { margin-top: 20px; }
.welcome-decoration { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 43%; pointer-events: none; }
.welcome-decoration::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(#a5e1e5 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: .22;
  mask-image: linear-gradient(90deg, transparent, #000 72%);
}
.welcome-decoration i { position: absolute; right: 9%; top: 21%; width: 61%; aspect-ratio: 1; border: 1px solid #a3d9e448; border-radius: 27%; transform: rotate(-30deg); }
.welcome-decoration i:nth-child(2) { right: 3%; top: 14%; }
.welcome-decoration i:nth-child(3) { right: -3%; top: 7%; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.metric {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 83px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.metric:hover, .module-link:hover { border-color: #a1c4d7; background: #f5fafd; }
.metric-icon, .module-icon, .record-icon, .editor-heading-icon { display: grid; place-items: center; flex: none; }
.metric-icon { width: 46px; height: 46px; border-radius: 12px; background: #e6f1fa; color: #216491; font-size: 20px; }
.metric-jobs .metric-icon { background: #e6f4ee; color: #247363; }
.metric-news .metric-icon { background: #eeeffa; color: #5366a1; }
.metric-copy { display: grid; }
.metric-copy strong { color: #19334d; font-size: 25px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric-copy > span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.modules { margin-top: 24px; }
.modules > h2 { margin-bottom: 11px; font-size: 19px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.module-group { min-width: 0; padding: 6px 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.module-group h3 { margin: 0 5px; padding: 10px 2px; border-bottom: 1px solid #eaf0f5; color: #2b475d; font-size: 14px; }
.module-link { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 5px; padding: 6px 5px; border: 1px solid transparent; border-radius: 8px; }
.module-icon { width: 34px; height: 34px; border-radius: 8px; background: #edf4f8; color: #356783; font-size: 15px; }
.module-copy { display: grid; gap: 2px; min-width: 0; }
.module-copy strong { font-size: 14px; }
.module-copy > span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.notice { margin-bottom: 14px; padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: 14px; overflow-wrap: anywhere; }
.notice ul { padding-left: 18px; list-style: disc; }
.notice.success { border-color: #c9e7d9; background: #e9f7ef; color: #1d6556; }
.notice.error { border-color: #f0d4ca; background: #fff2ed; color: #913f32; }
.database-notice { margin-top: 16px; }
.database-notice form { margin-top: 10px; }

.editor-heading { display: flex; gap: 14px; align-items: center; margin: 1px 0 21px; }
.editor-heading-icon { width: 49px; height: 49px; border: 1px solid #dbeaf2; border-radius: 12px; color: #225e81; background: #e8f2f8; font-size: 21px; }
.editor-heading h1 { font-size: 28px; line-height: 1.2; }
.editor-heading p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.editor-fields, .choice-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.editor-fields { display: grid; gap: 14px; }
.editor-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.editor-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 13px 19px; border-bottom: 1px solid #e9eff4; }
.editor-panel-header h2 { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.editor-panel-header h2 span { border-radius: 12px; padding: 2px 7px; background: #edf4fa; color: #42617a; font-size: 12px; font-variant-numeric: tabular-nums; }
.editor-panel-body, .record-fields { padding: 17px 19px 19px; }
.plus { font-size: 18px; font-weight: 400; line-height: 1; }

.record + .record { border-top: 1px solid #e9eff4; }
.record summary { display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 11px 19px; list-style: none; cursor: pointer; }
.record summary::marker { content: ""; }
.record summary::-webkit-details-marker { display: none; }
.record summary:hover, .record[open] summary { background: #f5f9fc; }
.record-icon { width: 34px; height: 34px; border-radius: 8px; color: #296b89; background: #e6f2f6; font-size: 15px; }
.record-copy { display: grid; flex: 1; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.record-copy strong { font-size: 15px; }
.record-copy small { color: var(--muted); font-size: 12px; }
.record-tag { padding: 3px 8px; border-radius: 7px; background: #ebf1f7; color: #315673; font-size: 12px; white-space: nowrap; }
.record-tag.featured { background: #e6f3ec; color: #286958; }
.chevron { width: 8px; height: 8px; margin: 0 3px 3px 7px; transform: rotate(45deg); border-right: 2px solid #627c93; border-bottom: 2px solid #627c93; }
.record[open] .chevron { margin-bottom: 0; transform: rotate(225deg); }
.record-fields { border-top: 1px solid #eaf0f5; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.record-actions .button-remove { margin-left: auto; }
.empty-records { padding: 21px; color: var(--muted); font-size: 14px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.field-grid label, .choice-group legend, .login-form label { display: grid; min-width: 0; gap: 6px; color: #2c4258; font-size: 14px; font-weight: 600; }
.field-grid .full-width, .choice-group { grid-column: 1 / -1; }
.field-grid small { color: var(--muted); font-size: 12px; font-weight: 400; }
.field-grid .check-option { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice-group .check-option { margin: 7px 15px 0 0; }
input[type="checkbox"] { accent-color: var(--teal); }
input:not([type="checkbox"], [type="hidden"]), textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid #dce6ef;
  border-radius: 7px;
  color: #23394e;
  background: #fafcfd;
  font-size: 14px;
  font-weight: 400;
}
textarea { resize: vertical; }
input:not([type="checkbox"], [type="hidden"]):focus, textarea:focus, select:focus { background: #fff; border-color: #78a89f; }
.save-bar {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 14px #1b3e5710;
}
.save-state { margin-right: auto; color: var(--muted); font-size: 13px; }
.save-state.is-dirty { color: #915821; }

.login-page { display: grid; min-height: 100dvh; place-items: center; padding: 24px; }
.login-card { display: grid; width: min(100%, 840px); grid-template-columns: 1.04fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 60px #223e521c; }
.login-brand { display: grid; gap: 53px; align-content: start; min-height: 390px; padding: 32px; }
.login-brand > :not(.welcome-decoration) { position: relative; z-index: 1; }
.login-brand-title { font-size: clamp(25px, 4vw, 38px); font-weight: 700; line-height: 1.2; letter-spacing: .035em; }
.login-brand-description { margin-top: 13px; color: #d7e7f1; font-size: 14px; }
.login-brand .welcome-decoration { inset: 32% 0 0 26%; width: auto; }
.login-content { align-self: center; padding: 37px clamp(24px, 4vw, 46px) 41px; }
.login-content h1 { font-size: 26px; }
.login-preview { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0 18px; color: var(--action); font-size: 13px; }
.login-preview:hover { text-decoration: underline; }
.login-form { display: grid; gap: 14px; }
.login-form .button { min-height: 42px; margin-top: 5px; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 198px; }
  .toolbar-inner, .stage { padding-inline: 23px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  :root { --header-height: 56px; }
  .workspace { display: block; }
  .workspace.menu-open::before { position: fixed; z-index: 3; inset: var(--header-height) 0 0; content: ""; background: #112c45a3; }
  .sidebar { position: fixed; z-index: 5; inset: var(--header-height) auto 0 0; display: none; width: min(264px, 82vw); height: auto; }
  .workspace.menu-open .sidebar { display: flex; }
  .sidebar .brand { margin-block: 19px; }
  .toolbar-inner, .stage { padding-inline: 16px; }
  .toolbar-inner { justify-content: initial; gap: 10px; }
  .toolbar-actions { margin-left: auto; gap: 7px; }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #34566f;
    background: #fff;
    font-size: 13px;
    white-space: nowrap;
  }
  .menu-icon { width: 13px; height: 10px; border-block: 1px solid currentColor; }
  .menu-icon::after { display: block; margin-top: 3px; border-top: 1px solid currentColor; content: ""; }
  .breadcrumb { gap: 5px; font-size: 13px; overflow-wrap: anywhere; }
  .breadcrumb :not([aria-current]) { display: none; }
  .website-link { min-height: 32px; padding: 5px 7px; font-size: 12px; }
  .db-indicator { display: none; }
  .stage { padding-block: 17px 27px; }
  .welcome { min-height: 0; padding: 20px 17px; }
  .metric-grid, .module-grid { gap: 9px; }
  .metric { grid-template-columns: 1fr; justify-items: start; gap: 7px; padding: 9px 10px; }
  .metric-icon { width: 34px; height: 34px; font-size: 16px; }
  .metric-copy strong { font-size: 20px; }
  .metric-copy > span { margin-top: 1px; font-size: 12px; }
  .editor-heading h1 { font-size: 23px; }
  .editor-heading-icon { width: 41px; height: 41px; font-size: 17px; }
  .record summary, .editor-panel-header { padding-inline: 12px; }
  .editor-panel-body, .record-fields { padding: 13px 12px; }
  .record summary { gap: 8px; }
  .record-tag.featured { display: none; }
  .login-card { max-width: 420px; grid-template-columns: 1fr; }
  .login-brand { min-height: 0; gap: 15px; padding: 18px 24px 21px; }
  .login-brand-title br { display: none; }
  .login-brand-title { font-size: 22px; }
  .login-brand-description { margin-top: 5px; font-size: 12px; }
  .login-content { padding-block: 23px 27px; }
}
@media (max-width: 450px) {
  .module-grid, .field-grid { grid-template-columns: 1fr; }
  .save-bar { gap: 6px; }
  .save-state { font-size: 12px; }
  .save-bar .button { padding-inline: 8px; min-height: 36px; font-size: 12px; }
  .login-page { padding: 16px; }
}
