@charset "UTF-8";
:root {
  --ink: #20332e;
  --muted: #7a8780;
  --green: #285d4b;
  --soft: #edf3ee;
  --line: #e5e9e3;
  --paper: #fafbf8;
  --white: #fff;
  --amber: #a56f23;
  --red: #b34c42;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a0bdac;
  outline-offset: 3px;
}
button:active {
  transform: translateY(1px);
}
button,
input,
select,
textarea {
  border-radius: 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3dc;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #769b85;
  box-shadow: 0 0 0 3px #285d4b10;
}
textarea {
  min-height: 110px;
  resize: vertical;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
}
label {
  display: block;
  font-weight: 550;
  font-size: 13px;
  margin: 18px 0;
}
label input,
label select,
label textarea {
  margin-top: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 13px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #749182;
  display: block;
  margin-bottom: 18px;
}
.primary,
.secondary,
.danger {
  padding: 11px 17px;
  border: 1px solid transparent;
  font-weight: 550;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #1e4c3d;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: #f4f7f2;
}
.danger {
  color: var(--red);
  background: #fcf1ef;
}
.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 0;
  text-align: left;
}
.text-button:hover {
  color: var(--green);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  width: 34px;
  height: 35px;
  border-radius: 9px;
  font-size: 23px;
}
.brand-tag {
  margin-left: 6px;
  border: 1px solid #bdc9ba;
  color: #6f876f;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 6px;
  border-radius: 4px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #54866b;
  border-radius: 50%;
  margin-right: 4px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  padding: 45px 64px;
  background: #eaf0e5;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.intro-copy {
  margin: auto 0;
  padding: 65px 0 25px;
  max-width: 420px;
}
.intro-copy h1 {
  font-size: 48px;
  line-height: 1.35;
  letter-spacing: -2px;
  margin-bottom: 22px;
}
.intro-copy p {
  font-size: 14px;
  color: #6e806e;
  line-height: 2;
}
.intro-foot {
  font-size: 9px;
  letter-spacing: 2px;
  color: #899c86;
  margin-top: 20px;
}
.login-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 350px;
}
.login-box .eyebrow {
  margin-bottom: 15px;
}
.login-box h2 {
  font-size: 27px;
}
.login-box > p {
  margin-bottom: 30px;
}
.private-note {
  margin-top: 35px;
  text-align: center;
  color: #879389;
  font-size: 11px;
}
.orbit {
  position: relative;
  width: 270px;
  height: 175px;
  margin: 25px 0 0 30px;
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #cbd8c4;
  border-radius: 50%;
  inset: 20px 0;
  transform: rotate(-20deg);
}
.orbit:after {
  inset: 0 48px;
  transform: rotate(24deg);
}
.orbit-center {
  position: absolute;
  left: 115px;
  top: 65px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #285d4b;
  color: white;
  border-radius: 14px;
  font-size: 30px;
  z-index: 1;
}
.orbit-item {
  position: absolute;
  background: #f8faf4;
  border: 1px solid #d8e1d1;
  border-radius: 7px;
  padding: 8px 14px;
  color: #71866a;
  font-size: 11px;
  z-index: 1;
}
.orbit-a {
  left: 10px;
  top: 40px;
}
.orbit-b {
  right: 0;
  top: 50px;
}
.orbit-c {
  left: 50px;
  bottom: 8px;
}
.orbit-d {
  right: 32px;
  bottom: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #f1f4ed;
  border-right: 1px solid var(--line);
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
}
.workspace-label {
  color: #98a290;
  font-size: 11px;
  margin: 11px 0 40px 44px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-button {
  background: none;
  border: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  text-align: left;
  padding: 12px 15px;
  color: #788578;
  font-size: 13px;
}
.nav-button span {
  font-size: 19px;
  width: 18px;
  text-align: center;
  font-weight: 400;
}
.nav-button.active {
  background: #e1eadf;
  color: var(--green);
  font-weight: 600;
}
.nav-button:hover {
  background: #e8eee3;
}
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 9px;
  padding: 25px 12px 0;
}
.sidebar-footer > span {
  font-size: 10px;
  color: #a0aa98;
  letter-spacing: 1px;
}
.private-pill {
  font-size: 11px;
  color: #77896f;
}
.workspace main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #889486;
}
.local-badge {
  color: #6d836f;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.content {
  padding: 44px 48px 24px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  margin-bottom: 13px;
}
.page-heading p {
  margin: 0;
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 27px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.metric-label {
  font-size: 11px;
  color: #839180;
  margin-bottom: 18px;
}
.metric-value {
  font-size: 33px;
  letter-spacing: -1px;
  font-weight: 550;
}
.metric-sub {
  font-size: 10px;
  color: #9ba594;
  margin-top: 8px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
}
.panel-heading p {
  font-size: 11px;
  margin: 5px 0 0;
  color: var(--muted);
}
.panel-heading h3 {
  font-size: 14px;
}
.panel-heading .text-button {
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: #8c9787;
  font-size: 10px;
  padding: 14px 25px;
  background: #fcfdfb;
  white-space: nowrap;
}
td {
  padding: 20px 25px;
  border-top: 1px solid #f0f2ec;
  vertical-align: middle;
}
.row-title {
  font-weight: 550;
  margin-bottom: 6px;
}
.row-sub {
  font-size: 10px;
  color: #9aa591;
  max-width: 320px;
  word-break: break-word;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #edf4ee;
  color: #5b8565;
  white-space: nowrap;
}
.badge.warn {
  background: #faf2e3;
  color: var(--amber);
}
.badge.off {
  background: #f1f2ee;
  color: #97a08e;
}
.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.actions button {
  background: #f7f9f4;
  border: 1px solid var(--line);
  color: #72806d;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 5px;
}
.actions button:hover {
  background: #e9efe4;
}
.actions button.destructive {
  color: var(--red);
}
.empty {
  padding: 54px 25px;
  text-align: center;
  color: #8b9785;
}
.empty .empty-symbol {
  font-size: 32px;
  color: #adbea7;
  margin-bottom: 12px;
}
.empty h3 {
  color: #596e54;
  font-size: 14px;
}
.empty p {
  font-size: 11px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.flow-card {
  padding: 25px;
}
.flow-line {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}
.flow-step {
  text-align: center;
  background: #f4f7f0;
  border: 1px solid #e8ede2;
  border-radius: 8px;
  flex: 1;
  padding: 14px 5px;
  font-size: 11px;
  color: #708466;
}
.flow-step strong {
  display: block;
  color: var(--green);
  font-size: 21px;
  margin-bottom: 8px;
}
.flow-arrow {
  color: #b5c2ac;
}
.hint {
  padding: 17px;
  background: #f5f7f1;
  border-radius: 8px;
  color: #85937a;
  font-size: 11px;
  line-height: 1.9;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.profile-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.profile-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.profile-card-head p {
  font-size: 11px;
  color: #99a28f;
  margin: 7px 0;
}
.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.profile-meta span {
  font-size: 10px;
  color: #9aa28e;
}
.profile-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
}
.profile-card .actions {
  gap: 7px;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 5px;
  margin-top: 16px;
  font-size: 10px;
  color: #a4ad9c;
}
.main-footer span {
  color: #b2baa9;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-card {
  padding: 25px;
}
.settings-card p {
  font-size: 12px;
  color: #8a9781;
  line-height: 2;
}
.settings-card code {
  display: block;
  background: #f3f6ee;
  padding: 16px;
  border-radius: 8px;
  font-size: 11px;
  color: #718168;
  overflow: auto;
}
.settings-card label {
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
  width: 650px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 100px #1c302430;
}
dialog::backdrop {
  background: #21362750;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
}
.dialog-heading .eyebrow {
  margin-bottom: 9px;
  font-size: 9px;
}
.icon-button {
  border: 0;
  background: #f3f6ef;
  color: #8b9a81;
  font-size: 22px;
  width: 30px;
  height: 30px;
  padding: 0;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid label {
  margin: 12px 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0;
  font-weight: 400;
}
.check-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}
.source-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 12px;
  background: #f6f8f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
}
.field-help {
  font-size: 10px;
  font-weight: 400;
  color: #9aa490;
  display: block;
  line-height: 1.9;
  margin-top: 6px;
}
.error-text {
  color: var(--red);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.error-text:empty {
  display: none;
}
.link-box {
  padding: 15px;
  background: #f3f7ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  word-break: break-all;
  font:
    12px/1.8 ui-monospace,
    monospace;
  margin: 15px 0;
}
.notice-copy {
  font-size: 12px;
  color: #87967b;
  line-height: 2;
}
.notice-stat {
  font-size: 32px;
  color: var(--green);
  margin: 20px 0;
}
.notice-list {
  display: grid;
  gap: 9px;
}
.notice-list button {
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7f9f4;
  text-align: left;
  color: #718266;
  font-size: 12px;
}
.secret-input {
  min-height: 210px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #213c2f;
  color: #fff;
  padding: 12px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #10281820;
  font-size: 12px;
  z-index: 20;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 56px;
  }
  .login-intro {
    padding-left: 90px;
  }
  .intro-copy h1 {
    font-size: 56px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    width: 190px;
    padding: 28px 16px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .content {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 35px;
  }
  .intro-copy h1 {
    font-size: 39px;
  }
  td,
  th {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 720px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 190px;
    padding: 25px;
  }
  .intro-copy {
    padding: 25px 0 0;
  }
  .intro-copy h1 {
    font-size: 28px;
    margin: 0;
  }
  .intro-copy h1 br {
    display: none;
  }
  .intro-copy p,
  .intro-copy .eyebrow,
  .orbit,
  .intro-foot {
    display: none;
  }
  .login-pane {
    padding: 40px 25px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-label,
  .sidebar-footer {
    display: none;
  }
  .sidebar .brand {
    margin-bottom: 18px;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .nav-button {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .nav-button span {
    display: none;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  .content {
    padding: 27px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    max-width: 220px;
    font-size: 11px;
  }
  .page-heading .primary {
    font-size: 11px;
    padding: 10px;
    white-space: nowrap;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 28px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .main-footer {
    flex-direction: column;
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .source-picker {
    grid-template-columns: 1fr;
  }
  .local-badge {
    font-size: 9px;
  }
  dialog {
    padding: 20px;
  }
}
