@charset "UTF-8";
:root {
  --ink: #223a33;
  --muted: #76847b;
  --green: #174d40;
  --green-light: #eef4e7;
  --paper: #f6f7f2;
  --line: #e0e6dc;
  --white: #fff;
  --accent: #accb80;
  --danger: #ab493c;
  --shadow: 0 18px 60px #25372b0b;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
  text-align: center;
}
button:hover,
.button:hover {
  border-color: #a7b6a6;
  text-decoration: none;
  background: #f5f8f1;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover {
  background: #0b3c31;
  color: #fff;
  border-color: #0b3c31;
}
.danger {
  color: var(--danger);
  border-color: #ead7d1;
}
.primary.danger {
  color: white;
  background: var(--danger);
}
.text-button {
  background: transparent;
  border-color: transparent;
  padding: 6px 10px;
  min-height: 34px;
}
.text-link {
  font-weight: 600;
}
.small-button {
  min-height: 34px;
  padding: 6px 12px;
}
.button:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #94b773;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8dad74;
  outline-offset: 2px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #97a096;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
label small {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.4;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
p {
  line-height: 1.8;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.8;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  color: #8a9a83;
  margin-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: 0.4px;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.8px;
  margin-top: 5px;
  font-weight: 500;
}
.topbar {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.top-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #91a08a;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
}
main {
  min-height: calc(100vh - 178px);
}
.public-page .page-shell {
  max-width: 1600px;
  margin: auto;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 7vw;
  padding: 56px 7vw 46px;
  align-items: center;
}
.login-story {
  position: relative;
}
.login-story h1 {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}
.login-story h1 span {
  color: #7d995a;
}
.lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
.story-foot {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: #83917c;
  font-size: 10px;
  letter-spacing: 1px;
}
.login-panel {
  padding: 35px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.pill {
  display: inline-block;
  padding: 5px 10px;
  background: var(--green-light);
  color: #567347;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
}
.pill.inactive {
  background: #f4e8e4;
  color: var(--danger);
}
.login-panel h2 {
  font-size: 26px;
  margin: 23px 0 8px;
  letter-spacing: -0.8px;
}
.login-panel > .muted {
  font-size: 13px;
  margin-bottom: 28px;
}
.wecom-button {
  width: 100%;
  height: 49px;
  justify-content: space-between;
}
.login-panel > .hint {
  margin-top: 13px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #9aa495;
  margin: 28px 0 19px;
}
.divider:before,
.divider:after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
summary {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
}
.stack {
  display: grid;
  gap: 20px;
}
.login-panel details .stack {
  margin-top: 20px;
}
.login-foot {
  font-size: 11px;
  line-height: 1.9;
  color: #98a28f;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin: 24px 0 0;
}
.gateway-art {
  width: 310px;
  height: 200px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 4px 0 0 80px;
}
.gateway-ring {
  border: 1px solid #bdceac;
  position: absolute;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.ring-one {
  width: 270px;
  height: 135px;
}
.ring-two {
  width: 195px;
  height: 185px;
  transform: rotate(38deg);
  border-color: #dce4d4;
}
.gateway-core {
  transform: rotate(-8deg);
  box-shadow: 15px 25px 30px #3f5d3121;
  border-radius: 25px;
  height: 86px;
}
.orbit-label {
  position: absolute;
  font-size: 11px;
  padding: 5px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: #749062;
}
.orbit-one {
  top: 21px;
  right: 9px;
}
.orbit-two {
  bottom: 17px;
  right: 42px;
}
.orbit-three {
  left: -8px;
  bottom: 63px;
}
.dev-note {
  background: #fcf4db;
  color: #8c772e;
  padding: 9px 24px;
  font-size: 11px;
  text-align: center;
}
.notice,
.form-error {
  padding: 14px 18px;
  border-radius: 8px;
  background: #eef3e6;
  border: 1px solid #dde6ce;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.form-error {
  background: #fff3ef;
  color: var(--danger);
  border-color: #efd4cb;
}
.workspace {
  display: flex;
}
.sidebar {
  width: 242px;
  position: fixed;
  top: 0;
  bottom: 0;
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  padding: 35px 23px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.sidebar .brand {
  font-size: 18px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9aa592;
  margin: 38px 13px 14px;
}
.nav-link {
  display: flex;
  gap: 13px;
  padding: 13px;
  border-radius: 7px;
  margin: 5px 0;
  color: #7a8675;
  font-size: 13px;
}
.nav-link.selected {
  background: #eaf0df;
  color: #345c3e;
  font-weight: 600;
}
.nav-link:hover {
  text-decoration: none;
  background: #eff3e9;
}
.nav-icon {
  font-size: 17px;
  width: 18px;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  line-height: 2;
  color: #7e8d75;
  padding: 10px;
}
.sidebar-footer small {
  font-size: 10px;
  color: #a0aa97;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #82a05d;
  border-radius: 100%;
  margin-right: 8px;
}
.workspace > .page-shell {
  margin-left: 242px;
  width: calc(100% - 242px);
  min-width: 0;
}
.workspace .topbar {
  height: 90px;
  padding: 0 40px;
  background: #ffffff70;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #c0c9b7;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.user-menu small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.avatar,
.large-avatar {
  display: grid;
  place-items: center;
  background: #e9efdf;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 13px;
  color: #5b784b;
}
.workspace main {
  padding: 36px 40px;
  min-height: calc(100vh - 168px);
  max-width: 1550px;
  margin: auto;
}
.workspace main > .dev-note {
  margin: -36px -40px 30px;
}
.workspace .footer {
  padding: 25px 40px;
}
.page-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 30px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.description {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.summary-strip {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: #839078;
  margin-bottom: 28px;
}
.summary-strip strong {
  font-size: 18px;
  color: var(--green);
  margin-right: 5px;
}
.summary-strip a {
  margin-left: auto;
  font-size: 11px;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.app-letter {
  width: 44px;
  height: 44px;
  border: 1px solid #e4eadb;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #587647;
  background: #f5f7ee;
}
.app-card h2 {
  font-size: 19px;
}
.app-card p {
  font-size: 12px;
  color: var(--muted);
  min-height: 44px;
}
.app-card-footer {
  padding-top: 20px;
  border-top: 1px solid #edf0e8;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.app-card-footer small {
  font-size: 10px;
  color: #a0ac98;
  overflow-wrap: anywhere;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.panel > p {
  font-size: 13px;
  color: var(--muted);
}
.empty {
  padding: 70px 24px;
  border: 1px dashed #d1dcc6;
  border-radius: 12px;
  text-align: center;
  background: #fcfdf8;
}
.empty-symbol {
  display: block;
  font-size: 45px;
  line-height: 1;
  color: #a9bd93;
  margin-bottom: 22px;
}
.empty h2 {
  font-size: 19px;
  font-weight: 500;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 510px;
  margin: 0 auto;
}
.profile-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}
.large-avatar {
  width: 66px;
  height: 66px;
  font-size: 24px;
  flex-shrink: 0;
}
.profile-panel p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.profile-id {
  margin-left: auto;
  font-size: 11px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
code,
pre {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
}
.session-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
}
.session-row p {
  font-size: 11px;
  color: var(--muted);
  max-width: 650px;
  overflow-wrap: anywhere;
  margin: 5px 0;
}
.session-row small {
  font-size: 10px;
  color: #98a08f;
}
.danger-panel {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.danger-panel p {
  font-size: 12px;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 0;
}
.danger-panel button {
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 500;
  color: #99a28d;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}
td {
  padding: 20px 22px;
  border-bottom: 1px solid #edf0e8;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  color: #9aa38f;
  font-size: 10px;
  margin-top: 6px;
}
.strong-link {
  font-weight: 600;
  font-size: 14px;
}
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 430px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
}
.pagination .button {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 12px;
}
.form-panel {
  max-width: 820px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.config-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  font-size: 13px;
}
.config-list dt {
  color: var(--muted);
  font-size: 12px;
}
.config-list dd {
  margin: 0;
}
.config-list code {
  display: block;
  line-height: 1.8;
}
.member-columns {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1.3fr);
  gap: 24px;
}
.grant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.grant-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.grant-row button {
  white-space: nowrap;
}
.grant-row:last-child {
  border-bottom: 0;
}
.identity-id {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 25px;
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.audit-subject {
  font-size: 10px;
  max-width: 330px;
  overflow-wrap: anywhere;
}
.nowrap {
  white-space: nowrap;
}
.consent-card,
.error-card {
  max-width: 520px;
  margin: 80px auto;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
}
.consent-card h1,
.error-card h1 {
  font-size: 27px;
}
.consent-card > .eyebrow {
  margin-top: 24px;
}
.consent-card p,
.error-card p {
  font-size: 14px;
  color: var(--muted);
}
.consent-card > .button,
.error-card > .button {
  margin-top: 20px;
}
.consent-card > form > .primary {
  width: 100%;
  margin: 16px 0;
}
.scope-list {
  text-align: left;
  background: #f8faf4;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  margin: 24px 0;
}
.scope-list > span,
.scope-list small {
  font-size: 11px;
  color: var(--muted);
}
.secret-card pre {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  word-break: break-all;
}
.secret-card .button {
  display: flex;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  z-index: 20;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  max-width: 450px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
dialog::backdrop {
  background: #1c322957;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .login-layout {
    padding-top: 85px;
    padding-bottom: 80px;
    gap: 10vw;
  }
  .login-panel {
    padding: 40px;
  }
  .gateway-art {
    height: 230px;
  }
}
@media (max-width: 1080px) {
  .sidebar {
    width: 210px;
    padding: 30px 17px;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .workspace > .page-shell {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .workspace main {
    padding: 26px;
  }
  .workspace .topbar {
    padding: 0 26px;
  }
  .workspace main > .dev-note {
    margin: -26px -26px 25px;
  }
  .member-columns {
    grid-template-columns: 1fr;
  }
  .profile-id {
    max-width: 240px;
  }
  .summary-strip {
    gap: 20px;
  }
  .summary-strip a {
    display: none;
  }
  .login-layout {
    gap: 40px;
    padding: 40px;
    grid-template-columns: 1fr 355px;
  }
  .gateway-art {
    margin-left: 10px;
  }
  .login-story h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 85px;
    padding: 0 24px;
  }
  .top-note {
    display: none;
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    gap: 20px;
  }
  .login-story .eyebrow {
    margin-bottom: 9px;
  }
  .login-story h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 0 0 12px;
  }
  .login-story h1 br {
    display: none;
  }
  .login-story .lead {
    font-size: 12px;
    margin: 0;
  }
  .gateway-art,
  .story-foot {
    display: none;
  }
  .login-panel {
    padding: 26px;
    max-width: 440px;
    width: 100%;
    margin: 10px auto 20px;
  }
  .login-panel h2 {
    font-size: 23px;
  }
  .footer {
    padding: 23px;
    font-size: 10px;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    font-size: 17px;
  }
  .sidebar > .nav-label,
  .sidebar-footer,
  nav > .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    margin-top: 18px;
  }
  .nav-link {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
    margin: 0;
    gap: 7px;
  }
  .nav-icon {
    font-size: 14px;
  }
  .workspace {
    display: block;
  }
  .workspace > .page-shell {
    margin: 0;
    width: 100%;
  }
  .workspace .topbar {
    height: 70px;
    padding: 0 20px;
  }
  .breadcrumb {
    display: none;
  }
  .user-menu {
    margin-left: auto;
    font-size: 12px;
  }
  .workspace main {
    padding: 24px 18px;
  }
  .workspace main > .dev-note {
    margin: -24px -18px 24px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
    margin-top: 2px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .description {
    font-size: 12px;
  }
  .page-heading > .button {
    font-size: 12px;
  }
  .summary-strip {
    padding: 16px;
    gap: 25px;
    flex-wrap: wrap;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 22px;
  }
  .profile-panel {
    flex-wrap: wrap;
  }
  .profile-id {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }
  .danger-panel {
    display: block;
  }
  .danger-panel form {
    margin-top: 20px;
  }
  .member-columns {
    display: block;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .config-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .config-list dd {
    margin-bottom: 12px;
  }
  .workspace .footer {
    padding: 23px 18px;
  }
  .consent-card,
  .error-card {
    margin: 40px 18px;
    padding: 28px 24px;
  }
  .workspace .consent-card {
    margin: 30px auto;
  }
  .login-foot {
    font-size: 10px;
  }
  .session-row {
    align-items: flex-start;
  }
  .session-row p {
    max-width: 240px;
  }
  .session-row small {
    line-height: 1.7;
    display: block;
  }
  .eyebrow {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .app-card:hover {
    transform: none;
  }
}
