:root {
  color-scheme: light;
  --ink: #172436;
  --muted: #506078;
  --navy: #151e2d;
  --nav-light: #aebbd0;
  --line: #dce3ec;
  --surface: #fff;
  --ground: #f2f4f7;
  --green: #12684c;
  --orange: #8b451c;
  --accent: #f3b087;
  --radius: 17px;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ground); }
a { color: #174d78; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2b73ba; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 14px; top: -100px; z-index: 9; padding: 12px; background: white; }
.skip:focus { top: 8px; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.sidebar {
  padding: 27px 16px 20px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; gap: 31px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding-inline: 7px; }
.brand img { width: 44px; height: 44px; }
.brand strong { display: block; font-size: 16px; }
.brand small { color: var(--nav-light); display: block; font-size: 12px; margin-top: 4px; letter-spacing: .03em; }
.nav { display: grid; gap: 6px; }
.nav button, .account-button {
  display: flex; align-items: center; gap: 12px; color: #d7e0ef; background: transparent;
  min-height: 44px; padding: 9px 13px; width: 100%; border: 1px solid transparent; border-radius: 10px; text-align: left;
}
.nav button[aria-current=page], .nav button:hover, .account-button:hover {
  background: #26354a; color: #fff; border-color: #3a4d68;
}
.nav button[aria-current=page] .nav-icon { color: var(--accent); }
.nav-icon { font: 600 19px/1 system-ui; width: 23px; text-align: center; color: #a6bfd8; }
.aside-footer { margin-top: auto; }
.account-button { border-color: #3a4d68; overflow-wrap: anywhere; }
.page { min-width: 0; }
.topline {
  min-height: 62px; border-bottom: 1px solid var(--line); background: #fff;
  padding: 10px clamp(18px,3.3vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topline > span:first-child { color: var(--muted); font-size: 14px; }
.preview, .chip { border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
.preview { background: #fcebe0; color: #7b3b19; }
main { padding: 28px clamp(18px,3.3vw,44px) 45px; max-width: 1580px; margin: auto; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(26px,3vw,36px); letter-spacing: -.03em; line-height: 1.25; }
h2 { font-size: 20px; letter-spacing: -.015em; }
h3 { font-size: 16px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.heading p,.panel-head p { margin-top: 6px; line-height: 1.55; }
.heading-date { font-size: 14px; color: var(--muted); white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: #eaf1fb; color: #2b527f; font-size: 20px; }
.metric:nth-child(2) .metric-icon { background: #e3f4ed; color: #176b53; }
.metric:nth-child(3) .metric-icon { background: #fff0e2; color: var(--orange); }
.metric:nth-child(4) .metric-icon { background: #eee9f9; color: #623e8b; }
.metric .number { display: block; font-weight: 750; font-size: clamp(24px,3vw,32px); margin: 10px 0 2px; }
.metric .muted { font-size: 14px; }
.grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 17px 18px; gap: 9px; border-bottom: 1px solid #edf0f5; }
.panel-head p { font-size: 14px; color: var(--muted); }
.panel-body { padding: 16px 18px; }
.list { margin: 0; padding: 0; list-style: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid #edf0f5; min-width: 0; }
.row:last-child { border-bottom: 0; }
.row strong { display: block; font-size: 15px; }
.row .muted { display: block; margin-top: 4px; font-size: 13px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { background: #edf1f6; color: #485970; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.healthy,.chip.done,.chip.approved { background: #e4f3eb; color: #166148; }
.chip.warning,.chip.blocked,.chip.approval { background: #fff0dd; color: #7b4718; }
.chip.down,.chip.failed,.chip.rejected { background: #ffe7e8; color: #942d39; }
.chip.running { background: #e7f0fc; color: #20558a; }
.chip.stale { background: #eee8f7; color: #674682; }
.primary,.secondary,.link-button { border: 1px solid transparent; min-height: 42px; padding: 7px 13px; border-radius: 9px; font-weight: 650; }
.primary { background: #203957; color: white; }
.primary:hover { background: #30557d; }
.secondary { background: #fff; border-color: #cbd7e4; color: #244765; }
.secondary:hover,.link-button:hover { background: #ecf2fa; }
.link-button { color: #26577d; background: transparent; text-align: left; padding-inline: 8px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.filters label { min-width: 130px; flex: 1; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.fields .wide { grid-column: 1/-1; }
label { display: grid; gap: 5px; color: #31455e; font-size: 14px; font-weight: 650; min-width: 0; }
input,select,textarea { min-height: 42px; width: 100%; border: 1px solid #b8c7d7; border-radius: 8px; padding: 8px 10px; color: var(--ink); background: white; font-weight: 400; }
textarea { min-height: 76px; resize: vertical; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 15px; margin: 0; }
.info dt { font-size: 13px; color: var(--muted); }
.info dd { margin: 3px 0 0; line-height: 1.5; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 15px; }
.empty { padding: 19px; color: var(--muted); line-height: 1.65; }
.summary { margin-top: 13px; line-height: 1.55; color: var(--muted); }
.notice { position: fixed; z-index: 3; bottom: 16px; right: 16px; left: auto; max-width: min(360px,calc(100% - 32px)); padding: 14px 17px; color: #fff; background: #243d58; box-shadow: 0 8px 30px #16223540; border-radius: 12px; }
.notice.error { background: #8b3038; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 20% 14%,#324963,#142031 65%); }
.login { width: min(100%,440px); padding: 25px; border-radius: 21px; background: white; box-shadow: 0 12px 45px #09132255; }
.login .brand { padding: 0; margin-bottom: 20px; }
.login .brand small { color: var(--muted); }
.login p { margin: 12px 0 18px; line-height: 1.6; }
.login form { display: grid; gap: 13px; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 191px minmax(0,1fr); }
  .grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .layout { display: block; }
  .sidebar { height: auto; position: static; display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 11px 12px; gap: 10px; }
  .brand { gap: 8px; padding-inline: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .aside-footer { grid-area: 1/2; margin: 0; }
  .account-button { padding: 6px 10px; }
  .nav { grid-column: 1/-1; display: flex; gap: 4px; flex-wrap: wrap; }
  .nav button { min-height: 40px; width: auto; padding: 5px 8px; font-size: 14px; }
  .nav-icon { display: none; }
  .topline { min-height: 46px; padding-block: 8px; }
  main { padding-top: 20px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .panel-head,.panel-body,.row { padding-inline: 13px; }
}
@media (max-width: 410px) {
  .fields,.info { grid-template-columns: minmax(0,1fr); }
  .heading { gap: 8px; }
}

.member-controls { display:flex; flex-wrap:wrap; gap:8px 14px; margin:10px 0; }
.check { display:flex; align-items:center; min-height:32px; gap:6px; }
.check input { width:17px; min-height:17px; flex:0 0 17px; }
