:root {
  --ink:#193730;
  --muted:#556a63;
  --brand:#164f42;
  --line:#d9e2dd;
  --paper:#f5f7f5;
  --white:#fff;
  font:16px/1.6 "Inter","Microsoft YaHei UI","PingFang SC",sans-serif;
  color:var(--ink);
  background:var(--paper);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,select,textarea {
  font:inherit;
}

button,summary,select {
  cursor:pointer;
}

button {
  color:inherit;
}

a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #d78b25;
  outline-offset:3px;
}

svg {
  width:20px;
  height:20px;
  flex:none;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:clamp(1.6rem,3vw,2.55rem);
  line-height:1.26;
  letter-spacing:-.045em;
}

h2 {
  font-size:1.4rem;
  line-height:1.35;
}

h3 {
  font-size:1.1rem;
}

.workspace {
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
  min-height:100vh;
}

aside {
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  background:#153d33;
  color:#e9f1e9;
  padding:32px 18px;
}

.brand {
  display:flex;
  align-items:center;
  gap:13px;
  line-height:1.1;
}

.brand strong {
  font-weight:800;
  letter-spacing:.12em;
  font-size:1.45rem;
}

.brand small {
  display:block;
  margin-top:6px;
  font-size:13px;
  letter-spacing:.1em;
}

.seal {
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  background:#e4eec3;
  color:#254433;
  border-radius:13px 4px 13px 4px;
  font-family:"STKaiti","KaiTi",serif;
  font-size:33px;
  line-height:1;
}

.brand {
  padding-left:8px;
}

aside nav {
  display:grid;
  gap:4px;
  margin-top:43px;
}

aside nav a,.side-foot {
  display:flex;
  align-items:center;
  gap:12px;
}

aside nav a {
  padding:11px 15px;
  border-radius:7px;
  font-size:15px;
  color:#daebe2;
}

aside nav a:hover,aside .nav-home {
  background:#29574a;
  color:white;
}

.nav-caption {
  font-size:13px;
  color:#a4c2b2;
  padding:28px 15px 5px;
}

.side-foot {
  margin-top:auto;
  border-top:1px solid #3e6155;
  padding:16px 9px 0;
  font-size:13px;
  color:#c5dace;
}

.main {
  min-width:0;
}

header {
  height:70px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:0 clamp(18px,3vw,52px);
}

.crumb,.accountbar,.store-name,.switch summary,.exit,.back,.hero-side a {
  display:flex;
  align-items:center;
  gap:9px;
}

.crumb,.role,.store-name,.switch,.exit {
  font-size:14px;
}

.crumb b,.dirhead b {
  color:#a3b0aa;
}

.accountbar {
  gap:18px;
}

.role {
  border-left:1px solid var(--line);
  padding-left:15px;
  color:var(--muted);
}

.exit {
  padding:7px 0;
  background:none;
  border:0;
}

.exit svg {
  width:17px;
}

.switch {
  position:relative;
}

.switch summary {
  list-style:none;
}

.switch summary span,.eyebrow {
  color:var(--muted);
  font-size:13px;
}

.switch>div {
  position:absolute;
  right:0;
  z-index:4;
  width:230px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 8px 25px #163a301c;
  padding:6px;
}

.switch a {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px;
}

.switch a:hover,.switch [aria-current] {
  background:#edf4ef;
}

.content {
  max-width:1620px;
  margin:auto;
  padding:28px clamp(18px,3vw,52px) 55px;
}

.hero,.login-brand {
  background-color:var(--brand);
  color:white;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.hero:after,.login-brand:after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 0 45%;
  opacity:.35;
  background:repeating-radial-gradient(ellipse at 100% 138%,transparent 0 20px,#82b09a 21px 22px,transparent 23px 40px);
  pointer-events:none;
}

.hero {
  padding:clamp(23px,3vw,38px);
  border-radius:12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  min-height:170px;
}

.hero h1 {
  margin:7px 0 8px;
}

.hero p,.login-copy p {
  color:#dce9df;
}

.kicker,.hero-side>span {
  font-size:13px;
  letter-spacing:.065em;
  color:#d4e5c9;
}

.kicker i {
  display:inline-block;
  height:10px;
  width:1px;
  background:#86b09c;
  margin:0 8px;
}

.hero-side {
  min-width:160px;
}

.hero-side>span {
  display:block;
  margin-bottom:8px;
}

.hero-side a {
  width:fit-content;
  border:1px solid #81a995;
  border-radius:6px;
  background:#245c4b;
  padding:8px 12px;
  font-size:14px;
}

.hero-side a svg:last-child {
  width:14px;
}

.dirhead,.section-title,.card-top,.detail-head {
  display:flex;
  align-items:center;
}

.dirhead {
  gap:12px;
  margin:30px 0 18px;
}

.dirhead span,.section-title small,.card small,.panel small,.login-form p,.notice p {
  color:var(--muted);
}

.dirhead span,.section-title small {
  font-size:14px;
}

.group {
  --tint:#e4f0e9;
  --accent:#3c755b;
  scroll-margin:18px;
}

.g1 {
  --tint:#f3eedf;
  --accent:#83652b;
}

.g2 {
  --tint:#e6eef5;
  --accent:#426581;
}

.g3 {
  --tint:#eee9f2;
  --accent:#756085;
}

.section-title {
  gap:10px;
  margin:22px 0 10px;
}

.section-title .bar {
  height:16px;
  width:4px;
  background:var(--accent);
  border-radius:3px;
}

.cards {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(216px,100%),1fr));
  gap:10px;
}

.card,.panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
}

.card {
  padding:15px 16px;
  display:block;
  transition:border-color .15s,box-shadow .15s;
}

.card:hover {
  border-color:var(--accent);
  box-shadow:0 3px 12px #12342b12;
}

.card-top {
  justify-content:space-between;
  margin-bottom:10px;
}

.iconbox {
  background:var(--tint,#e4f0e9);
  color:var(--accent,#365f4e);
  border-radius:7px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
}

.card strong,.card small {
  display:block;
}

.card small {
  font-size:13px;
  margin-top:3px;
}

.tag,.environment {
  display:inline-block;
  width:fit-content;
  font-size:13px;
  border-radius:5px;
  padding:2px 8px;
}

.tag.pending {
  background:#f0f3f1;
  color:#57665e;
}

.tag.candidate {
  background:#f8eedc;
  color:#76571e;
}

.tag.ready,.environment {
  background:#e3efdd;
  color:#375934;
}

.back {
  font-size:14px;
  color:var(--muted);
  width:fit-content;
}

.back svg {
  width:16px;
}

.detail-head {
  gap:15px;
  margin:24px 0;
}

.detail-head .iconbox {
  width:55px;
  height:55px;
}

.detail-head .iconbox svg {
  width:26px;
  height:26px;
}

.detail-head h1 {
  font-size:2rem;
}

.panel {
  padding:22px;
  margin:15px 0;
}

.panel h2 {
  font-size:1.18rem;
  margin-bottom:9px;
}

.panel p {
  margin:6px 0;
}

.topics {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:15px;
}

.topics span,.login-stages span {
  font-size:14px;
  background:#eff3ef;
  padding:4px 11px;
  border-radius:5px;
}

.login {
  max-width:990px;
  min-height:510px;
  margin:max(6vh,28px) auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  box-shadow:0 16px 65px #203d2f12;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}

.login-brand,.login-form {
  padding:clamp(25px,4vw,55px);
}

.login-brand {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:40px;
}

.login-brand .brand {
  padding:0;
}

.login-copy h1 {
  font-size:clamp(36px,4vw,55px);
  margin:10px 0;
}

.login-stages {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.login-stages span {
  background:#2b6351;
  color:#e0edde;
  font-size:13px;
}

.login-form {
  background:white;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.login-form h2 {
  font-size:28px;
  margin:13px 0 4px;
}

.login-form p {
  font-size:14px;
}

label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin-top:14px;
}

input,textarea,select {
  background:white;
  color:var(--ink);
  border:1px solid #b5c6bc;
  border-radius:6px;
  padding:9px 12px;
}

label input,label textarea {
  display:block;
  width:100%;
  margin:5px 0;
}

textarea {
  min-height:75px;
}

.primary {
  border:0;
  display:inline-block;
  background:var(--brand);
  color:white;
  padding:10px 18px;
  border-radius:6px;
  font-weight:600;
}

.wide {
  width:100%;
  margin-top:18px;
}

.alert {
  color:#a13421!important;
  margin-top:7px;
}

.notice {
  max-width:540px;
  margin:12vh auto;
  background:white;
  padding:32px;
  border:1px solid var(--line);
  border-radius:12px;
}

.notice h1 {
  margin:24px 0 8px;
}

.notice .primary {
  margin-top:18px;
}

@media(min-width:1650px) {
  .cards {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}

.metricrow {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr));
  gap:12px;
  margin:14px 0;
}

.metricrow>div {
  padding:14px;
  background:#eef4ef;
  border-radius:6px;
}

.metricrow strong {
  display:block;
  font-size:1.8rem;
  font-variant-numeric:tabular-nums;
  line-height:1.4;
}

.metricrow strong em {
  font-size:14px;
  font-style:normal;
  font-weight:400;
}

.filters,.mapentry {
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.filters label {
  margin:0;
}

.filters select {
  display:block;
  margin-top:4px;
}

.period {
  font-size:14px;
  color:var(--muted);
  padding-top:10px;
}

.tablewrap {
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  font-size:14px;
  white-space:nowrap;
  margin:12px 0;
}

th,td {
  text-align:right;
  border-bottom:1px solid var(--line);
  padding:8px;
  font-variant-numeric:tabular-nums;
}

th:first-child {
  text-align:left;
}

thead th {
  background:#f1f5f2;
}

caption {
  text-align:left;
  color:var(--muted);
  margin-bottom:6px;
}

.panel ul {
  padding-left:20px;
  overflow-wrap:anywhere;
}

.panel li {
  margin:6px 0;
}

.panel summary,.inline {
  font-weight:650;
}

.inline {
  display:inline-block;
  color:#155441;
  text-decoration:underline;
  text-underline-offset:3px;
}

.mapentry {
  align-items:center;
  justify-content:space-between;
}

.mapentry>div {
  max-width:670px;
}

.mapentry .eyebrow {
  margin-bottom:8px;
}

.log {
  padding:12px 0;
  border-top:1px solid var(--line);
}

.log dl {
  display:grid;
  grid-template-columns:minmax(70px,100px) 1fr;
  font-size:15px;
  gap:6px;
}

.log dt {
  color:var(--muted);
}

.log dd {
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.panel form>.primary {
  margin-top:10px;
}

.panel meter {
  vertical-align:middle;
  max-width:50px;
}

@media(max-width:900px) {
  .workspace {
    grid-template-columns:158px minmax(0,1fr);
  }
  aside {
    padding:24px 10px;
  }
  .accountbar {
    gap:9px;
  }
  .role {
    padding-left:8px;
  }
  .hero-side {
    min-width:auto;
  }
  .hero {
    align-items:flex-start;
    flex-direction:column;
  }
  .hero-side>span {
    display:none;
  }
  .login {
    margin:32px 16px;
  }
}

@media(max-width:690px) {
  .workspace {
    display:block;
  }
  aside {
    height:auto;
    position:static;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    padding:10px 15px;
  }
  aside nav,aside .side-foot,.crumb {
    display:none;
  }
  .brand {
    gap:8px;
    padding:0;
  }
  .brand strong {
    font-size:18px;
  }
  .brand small {
    font-size:12px;
    margin:0;
  }
  .seal {
    height:32px;
    width:32px;
    font-size:24px;
  }
  .workspace aside .brand>div {
    display:flex;
    align-items:center;
    gap:8px;
  }
  header {
    height:auto;
    min-height:50px;
    padding:6px 14px;
  }
  .accountbar {
    width:100%;
    gap:7px;
    justify-content:space-between;
  }
  .switch>div {
    left:0;
  }
  .role {
    border:0;
  }
  .content {
    padding:15px 12px 32px;
  }
  .hero {
    padding:20px;
    min-height:0;
    gap:12px;
  }
  .hero p {
    font-size:14px;
  }
  .cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .card {
    padding:12px;
  }
  .card small {
    font-size:12px;
  }
  .dirhead {
    margin:22px 0 10px;
  }
  .login {
    display:block;
    margin:12px;
    min-height:0;
  }
  .login-brand {
    gap:18px;
    padding:22px;
  }
  .login-copy h1 {
    font-size:32px;
  }
  .login-copy .kicker,.login-stages {
    display:none;
  }
  .login-form {
    padding:22px;
  }
  .panel {
    padding:15px;
  }
  .detail-head {
    gap:9px;
  }
  .detail-head h1 {
    font-size:1.6rem;
  }
  .notice {
    margin:20px;
  }
}

.shortcuts {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

aside nav { min-height:0; overflow-y:auto; }
.aux-nav { border-top:1px solid #416458; margin-top:12px; }
.aux-nav .nav-caption { padding-top:14px; }
.aux-nav a { padding-block:7px; }
.workspace { grid-template-columns:254px minmax(0,1fr); }
.menu-toggle { display:none; }
#module-nav { margin-top:24px; padding-bottom:12px; scrollbar-width:thin; }
aside nav .nav-home:not([aria-current]) { background:transparent; }
.nav-branch summary {
  display:flex; align-items:center; gap:10px; padding:10px; border-radius:6px;
  color:#f0f6f2; font-weight:600; list-style:none; cursor:pointer;
}
.nav-branch summary::-webkit-details-marker { display:none; }
.nav-branch summary:hover,.nav-branch[open]>summary { background:#245347; }
.nav-branch summary small { margin-left:auto; color:#c0d6c9; font-weight:400; }
.nav-branch summary svg:last-child { width:15px; transition:transform .15s; }
.nav-branch[open]>summary svg:last-child { transform:rotate(90deg); }
.nav-branch ul { margin:4px 0 8px 19px; padding:0 0 0 8px; border-left:1px solid #456b5a; list-style:none; }
aside nav .module-link { justify-content:space-between; gap:4px; padding:7px 8px; font-size:14px; }
.module-link small { color:#b6cdbf; font-size:12px; }
aside nav .module-link[aria-current] { background:#e3edda; color:#234332; font-weight:650; }
.module-link[aria-current] small { color:#47624e; }
.subline,.inbox-list small { display:block; font-size:13px; color:var(--muted); font-weight:400; }
.inbox-list { list-style:none; padding:0!important; margin:4px 0; }
.inbox-list li+li { border-top:1px solid var(--line); }
.inbox-list li>a { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:9px 4px; }
.inbox-list li>a:hover { background:#f3f7f2; }
.shop-choices { border:1px solid var(--line); border-radius:6px; margin:12px 0; }
.shop-choices label { display:flex; align-items:center; gap:8px; margin:7px; }
.shop-choices input { width:auto; }
@media(max-width:900px) and (min-width:691px) { .workspace { grid-template-columns:208px minmax(0,1fr); } }
@media(max-width:690px) {
  .workspace aside { flex-wrap:wrap; }
  .menu-toggle { display:block; border:1px solid #749984; background:transparent; color:white; border-radius:5px; padding:6px 10px; }
  #module-nav.mobile-open { display:block; width:100%; margin-top:10px; max-height:60vh; }
  .accountbar { flex-wrap:wrap; }
  .inbox-list li>a { align-items:flex-start; }
  .shop-choices label { overflow-wrap:anywhere; }
}
.g3 { border-top:1px solid var(--line); margin-top:24px; }
.plan-table th,.plan-table td { text-align:left; }
.plan-summary .metricrow strong { font-size:1.3rem; }
.phase h2 { margin-bottom:16px; }
.launch-step { border-top:1px solid var(--line); scroll-margin:16px; }
.launch-step>summary {
  min-height:52px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 2px;
}
.launch-step>summary strong { font-size:15px; }
.launch-step>summary::after { content:"＋"; color:var(--muted); }
.launch-step[open]>summary::after { content:"－"; }
.launch-step>summary small { margin-left:auto; font-weight:normal; }
.step-body { background:#f5f8f6; padding:14px; border-radius:6px; margin-bottom:10px; }
.step-state { padding:3px 7px; border-radius:4px; font-size:12px; font-weight:550; white-space:nowrap; }
.state-waiting { color:#58645f; background:#edf0ee; }
.state-ready { color:#18583d; background:#deefdf; }
.state-held,.state-returned { color:#823c23; background:#fbeada; }
.state-done { color:#305775; background:#e8eff5; }
.task-links>a { padding:6px 11px; background:#e8f1ea; color:#18563e; border-radius:5px; font-size:14px; }
.step-body button,.schedule button { border:1px solid #b4c6ba; border-radius:6px; padding:7px 12px; background:white; }
.step-body .primary { background:var(--brand); color:white; }
.step-body .sample { font-size:13px; padding:4px 8px; }
.step-actions,.return-row { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin-top:12px; }
.return-row select { display:block; }
.schedule,.tail { margin-top:12px; }
.schedule summary,.tail summary { font-size:14px; color:var(--muted); }
.launch-log { padding-left:20px; }
.launch-log li { margin:7px 0; overflow-wrap:anywhere; }
.launch-log small { display:block; }
@media(max-width:690px) {
  .launch-step>summary { display:grid; grid-template-columns:1fr auto; }
  .launch-step>summary small { grid-row:2; margin-left:0; }
  .launch-step>summary::after { grid-area:1/2; }
  .step-body { padding:10px; }
  .hero .shortcuts { gap:5px; }
}
