:root {
  --ink: #1c201d;
  --muted: #6e756f;
  --line: #dfe3df;
  --paper: #f3f5f2;
  --surface: #fff;
  --nav: #18211d;
  --nav2: #26312c;
  --green: #176b4e;
  --green2: #dff1e9;
  --blue: #395f91;
  --red: #ae392e;
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button, input, select, textarea {
  font: inherit;
}
.hidden {
  display: none !important;
}
button {
  cursor: pointer;
  border: 0;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  padding: 8vw;
  background: radial-gradient(
    circle at 20% 20%,
    #34473e 0,
    #18211d 45%,
    #111713 100%
  );
  color: #fff;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-brand > span, .sidebar-brand > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ddf0e7;
  color: #145b43;
  font: 800 22px Georgia;
}
.login-brand b, .login-brand small, .sidebar-brand b, .sidebar-brand small {
  display: block;
}
.login-brand b {
  font-size: 30px;
}
.login-brand small {
  color: #879a90;
  letter-spacing: 2px;
  margin-top: 5px;
}
.login-card {
  background: #fff;
  color: var(--ink);
  padding: 45px;
  border-radius: 16px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}
.login-card h1 {
  font: 600 32px Georgia, "Songti SC", serif;
  margin: 0 0 10px;
}
.login-card > p:not(.eyebrow):not(.form-error) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  font-size: 11px;
  color: #525953;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d5dad5;
  background: #fbfcfb;
  border-radius: 7px;
  padding: 0 12px;
  outline: none;
  color: var(--ink);
}
input, select {
  height: 43px;
}
textarea {
  padding: 12px;
  resize: vertical;
  font: 11px/1.55 "SFMono-Regular", monospace;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 78, 0.09);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.ghost {
  background: white;
  border-color: #d5dad5;
  color: #4f5751;
}
.button.danger {
  background: #f4dfdc;
  color: var(--red);
}
.button.small {
  min-height: 34px;
}
.login-card .button {
  width: 100%;
  margin-top: 12px;
}
.form-error {
  min-height: 16px;
  color: var(--red);
  font-size: 11px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  color: #dbe3de;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}
.sidebar-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 25px;
}
.sidebar-brand > span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}
.sidebar-brand b {
  font-size: 15px;
}
.sidebar-brand small {
  color: #788a81;
  font-size: 9px;
  margin-top: 3px;
}
.sidebar nav {
  overflow: auto;
  padding-right: 2px;
}
.sidebar nav p {
  color: #687971;
  font-size: 9px;
  letter-spacing: 1.3px;
  margin: 20px 12px 7px;
  text-transform: uppercase;
}
.sidebar nav button {
  width: 100%;
  height: 41px;
  border-radius: 7px;
  background: transparent;
  color: #9eaca5;
  text-align: left;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.sidebar nav button i {
  font-style: normal;
  width: 16px;
  text-align: center;
}
.sidebar nav button:hover, .sidebar nav button.active {
  color: #fff;
  background: var(--nav2);
}
.sidebar nav button.active {
  box-shadow: inset 3px 0 #65bd94;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #2d3933;
  padding: 16px 10px 0;
  display: grid;
  gap: 12px;
}
.health {
  font-size: 10px;
  color: #8fa097;
}
.health i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b19b4d;
  margin-right: 7px;
}
.health.ok i {
  background: #55bd8b;
}
.health.error i {
  background: #cf655b;
}
.sidebar-foot button {
  background: none;
  color: #788a81;
  text-align: left;
  padding: 0;
  font-size: 10px;
}
.main {
  min-width: 0;
  padding: 34px 42px 70px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
}
.topbar h1 {
  font: 600 31px Georgia, "Songti SC", serif;
  margin: 0;
}
.topbar .eyebrow {
  margin-bottom: 5px;
  color: #889087;
}
.top-actions {
  display: flex;
  gap: 9px;
}
.topbar #menu-toggle {
  display: none;
  background: none;
  font-size: 20px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-grid article, .surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.stat-grid article {
  padding: 21px;
  display: flex;
  flex-direction: column;
  min-height: 133px;
}
.stat-grid small {
  font-size: 10px;
  color: var(--muted);
}
.stat-grid strong {
  font: 600 34px Georgia;
  margin: 17px 0 7px;
}
.stat-grid span {
  color: #989e99;
  font-size: 10px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.surface {
  padding: 22px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.section-head h2 {
  font-size: 16px;
  margin: 0;
}
.flow {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.flow span {
  background: #f0f3f0;
  border: 1px solid #e0e5e1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10px;
}
.flow b {
  color: #99a29c;
}
.muted {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf0ed;
  color: #6b736d;
  font-size: 9px;
}
.status.active, .status.succeeded, .status.healthy, .status.ready {
  background: var(--green2);
  color: var(--green);
}
.status.queued, .status.running {
  background: #e7edf7;
  color: var(--blue);
}
.status.failed, .status.cancelled, .status.revoked, .status.unhealthy {
  background: #f6e2df;
  color: var(--red);
}
.panel-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}
.panel-intro > div:last-child {
  display: flex;
  gap: 8px;
}
.panel-intro h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.panel-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.table-wrap {
  padding: 0;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  text-align: left;
}
th {
  background: #f1f3f0;
  color: #747c76;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
}
td {
  border-top: 1px solid #e7eae7;
  padding: 15px 16px;
  font-size: 11px;
}
td code {
  font-size: 10px;
}
.text-link {
  background: none;
  color: var(--green);
  font-size: 10px;
}
.card-grid, .account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.profile-card, .account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.profile-card header, .account-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}
.profile-card h3, .account-card h3 {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.profile-card p, .account-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.profile-card dl, .account-card dl, .chrome-grid dl {
  margin: 18px 0;
}
.profile-card dl div, .account-card dl div, .chrome-grid dl div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0ed;
  padding: 9px 0;
  font-size: 10px;
}
.profile-card dt, .account-card dt, .chrome-grid dt {
  color: var(--muted);
}
.account-actions, .button-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.account-actions button {
  background: #edf4f0;
  color: var(--green);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 9px;
}
.account-actions button:last-child {
  background: #eef0f4;
  color: #4b6181;
}
.verification {
  margin-top: 12px;
  padding: 10px;
  background: #f4f6f3;
  border-radius: 6px;
  font-size: 9px;
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
}
.chrome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.chrome-grid h2 {
  margin: 0 0 20px;
}
.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  top: 24px;
  max-width: 400px;
  background: #183126;
  color: #eaf7ef;
  padding: 13px 17px;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  font-size: 11px;
}
.toast.error {
  background: #652c27;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 12px;
  width: min(430px, calc(100vw - 28px));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}
dialog::backdrop {
  background: rgba(13, 18, 15, 0.55);
  backdrop-filter: blur(2px);
}
dialog form, .details {
  padding: 28px;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
dialog header h2 {
  font: 600 24px Georgia, "Songti SC", serif;
  margin: 0;
}
dialog header > button {
  background: none;
  font-size: 23px;
  color: #89908a;
}
.wide-dialog {
  width: min(760px, calc(100vw - 28px));
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 14px;
}
.check {
  display: flex;
  align-items: center;
  grid-template-columns: 18px auto;
  gap: 8px;
}
.check input {
  width: 16px;
  height: 16px;
}
.check label {
  margin: 0;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.details table {
  min-width: 0;
}
@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid, .account-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .login-view {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .login-brand {
    display: none;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 15;
    width: 248px;
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    padding: 25px 18px 60px;
  }
  .topbar #menu-toggle {
    display: inline-block;
    margin-right: 10px;
  }
  .topbar > div:first-child {
    display: flex;
    align-items: center;
  }
  .topbar .eyebrow {
    display: none;
  }
  .overview-grid, .chrome-grid {
    grid-template-columns: 1fr;
  }
  .card-grid, .account-grid {
    grid-template-columns: 1fr;
  }
  .top-actions .button {
    padding: 0 11px;
  }
  .panel-intro {
    align-items: start;
    gap: 15px;
  }
}
@media (max-width: 540px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar h1 {
    font-size: 24px;
  }
  .panel-intro {
    display: grid;
  }
  .login-card {
    padding: 28px;
  }
}
