:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: #4e3422;
  background: #fdf9f4;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 64px;
  background: linear-gradient(180deg, #f5bf86, #f2b26d);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;
  color: white;
  padding: 25px 0;
  font-size: 24px;
  z-index: 3;
}
.rail-logo {
  background: #ffffff35;
  border-radius: 10px;
  padding: 5px 8px;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 25px;
  justify-items: center;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  background: #fef6ed;
  color: #de8346;
  font-weight: 700;
}
aside {
  position: fixed;
  left: 64px;
  top: 0;
  bottom: 0;
  width: 238px;
  padding: 27px 18px;
  background: white;
  border-right: 1px solid #f6eee5;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 4px;
}
.brand strong {
  font-size: 18px;
  color: #e78d51;
  letter-spacing: -0.5px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.8px;
  display: block;
  color: #c0ad98;
  margin-top: 6px;
}
.brand-icon {
  width: 39px;
  height: 43px;
  background: #f4b775;
  border-radius: 10px;
  color: white;
  font-weight: 800;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 17px;
}
.brand-icon span {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: white;
  border: 2px solid #f4b775;
  color: #f4b775;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
}
.local-card {
  margin-top: 33px;
  background: linear-gradient(120deg, #f4b572, #ea8440);
  padding: 19px 15px;
  border-radius: 12px;
  color: white;
  position: relative;
  overflow: hidden;
}
.local-card:after {
  content: "✦";
  position: absolute;
  right: -10px;
  top: 24px;
  font-size: 100px;
  color: #ffffff12;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  display: block;
  font-weight: 650;
}
.local-card .eyebrow {
  color: #fcecda;
  font-size: 8px;
}
.local-card strong {
  display: block;
  font-size: 16px;
  margin-top: 14px;
}
.local-card p {
  font-size: 11px;
  color: #fdf1e4;
  margin: 9px 0 15px;
}
.local-tag {
  display: inline-block;
  background: #ffffff23;
  border: 1px solid #ffffff40;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 10px;
}
.side-status {
  margin: 17px 0 28px;
  border: 1px solid #f9ead9;
  border-radius: 6px;
  padding: 9px;
  color: #b88f74;
  font-size: 11px;
  background: #fefbf8;
}
.menu-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #c0b09f;
  padding: 0 12px;
  margin-bottom: 12px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  color: #917766;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
}
nav a:hover {
  background: #fefaf5;
}
nav a.active {
  background: #fef6ee;
  color: #e6823f;
  font-weight: 600;
}
nav i {
  font-style: normal;
  font-size: 19px;
  width: 21px;
}
.badge {
  font-size: 8px;
  color: #e59057;
  background: #fdf1e4;
  padding: 3px 4px;
  border-radius: 3px;
  margin-left: auto;
}
.count {
  margin-left: auto;
  font-size: 10px;
  background: #f9f4ef;
  padding: 3px 6px;
  border-radius: 4px;
}
.sidebar-foot {
  position: absolute;
  bottom: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-foot b {
  font-size: 11px;
  font-weight: 500;
}
.sidebar-foot small {
  display: block;
  font-size: 9px;
  color: #beae9c;
  margin-top: 5px;
}
.workspace {
  margin-left: 302px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  height: 76px;
  border-bottom: 1px solid #f6eee6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: #bcab98;
}
.breadcrumb span {
  margin: 0 14px;
  color: #e3d7ca;
}
.breadcrumb b {
  font-weight: 500;
  color: #856956;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pill {
  border: 1px solid #f6ece2;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 10px;
  color: #baa191;
  white-space: nowrap;
}
.pill.online {
  background: #edfaf3;
  color: #38996f;
  border-color: #d9efe3;
}
.button {
  padding: 10px 16px;
  border: 1px solid #f2e6da;
  border-radius: 6px;
  background: white;
  color: #8f7360;
  white-space: nowrap;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.button:hover {
  background: #fefaf5;
  border-color: #f4cea5;
}
.button.primary {
  background: #f2a95b;
  color: white;
  border-color: #f2a95b;
  box-shadow: 0 3px 7px #d5834c19;
}
.button.primary:hover {
  background: #ea8745;
}
.button.small {
  padding: 7px 11px;
  font-size: 11px;
}
.button.danger {
  color: #d46c72;
}
.icon-button {
  border: 1px solid #f1e8df;
  background: white;
  color: #b99f8d;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
}
main {
  padding: 33px 34px;
  flex: 1;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.subtitle {
  font-size: 12px;
  color: #b7a294;
  line-height: 1.6;
  margin: 0;
}
.page-actions {
  display: flex;
  gap: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 23px;
}
.stat {
  border: 1px solid #f6ece2;
  border-radius: 9px;
  background: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-icon {
  background: #fef7ef;
  color: #efb16f;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.stat small {
  color: #b8a293;
  font-size: 11px;
  display: block;
  margin-bottom: 9px;
}
.stat strong {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.stat em {
  font-size: 10px;
  color: #bfb1a2;
  font-style: normal;
  margin-left: 8px;
}
.panel {
  background: white;
  border: 1px solid #f5ece2;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-heading {
  padding: 20px 23px;
  border-bottom: 1px solid #f8f2ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-heading h3 span {
  font-weight: 400;
  color: #c5b4a1;
  font-size: 11px;
  margin-left: 10px;
}
.toolbar {
  padding: 17px 23px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  min-width: 200px;
  flex: 1;
  max-width: 310px;
}
.toolbar .spacer {
  flex: 1;
}
input,
select,
textarea {
  border: 1px solid #f1e8de;
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  color: #7f5e48;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #c7b8a7;
}
select {
  max-width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #f1b472;
  box-shadow: 0 0 0 3px #fdf5ec;
  outline: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  background: #fdfbf8;
  padding: 14px 20px;
  color: #b9a090;
  font-weight: 500;
  border-block: 1px solid #f8f2ec;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #f9f4ef;
  color: #8e705c;
}
td strong {
  font-weight: 550;
  color: #72533f;
}
td small {
  display: block;
  font-size: 10px;
  color: #c2b19e;
  margin-top: 5px;
}
input[type="checkbox"] {
  accent-color: #f29658;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.empty {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px;
  text-align: center;
}
.empty-icon {
  font-size: 36px;
  color: #e7c29a;
  background: #fef8f2;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.empty h3 {
  color: #967762;
  font-weight: 500;
  margin-bottom: 10px;
}
.empty p {
  color: #c2b19f;
  font-size: 12px;
  max-width: 470px;
  line-height: 1.9;
  margin: 0 0 18px;
}
.table-foot {
  padding: 14px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #beac99;
  font-size: 11px;
}
.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 18px;
  background: #fef7f0;
  border: 1px solid #fceddc;
  border-radius: 7px;
  color: #bf8a67;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.notice.warning {
  background: #fff9ef;
  border-color: #f5e6c8;
  color: #aa8a52;
}
.notice strong {
  display: block;
  font-weight: 550;
}
.notice .button {
  margin-left: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-body {
  padding: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.field label {
  font-size: 12px;
  color: #92735f;
}
.field small {
  font-size: 11px;
  color: #beab96;
  line-height: 1.7;
}
.full {
  grid-column: 1/-1;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #f7efe7;
  padding: 0 23px;
}
.tabs button {
  padding: 17px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #bba792;
  background: none;
  font-size: 12px;
}
.tabs button.active {
  border-color: #f2a95b;
  color: #e1864a;
  font-weight: 600;
}
.status {
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-block;
  background: #fbf5ef;
  color: #b39784;
}
.status.ACTIVE,
.status.success {
  background: #edf9f1;
  color: #57a378;
}
.status.failed {
  background: #fff0f0;
  color: #d27878;
}
.status.unknown {
  background: #fff5df;
  color: #bd9649;
}
.mono {
  font-family: ui-monospace, monospace;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 34px 22px;
  color: #c7b8a7;
  font-size: 10px;
  gap: 20px;
}
footer b {
  font-size: 8px;
  background: #f8f0e7;
  color: #b99c88;
  padding: 3px 5px;
  border-radius: 3px;
  margin-left: 7px;
}
dialog {
  border: 1px solid #f6e8d9;
  border-radius: 13px;
  width: 650px;
  max-width: 95vw;
  padding: 27px;
  color: #75543e;
  box-shadow: 0 30px 90px #693d1f25;
}
dialog::backdrop {
  background: #4f2c1460;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
}
.dialog-heading .eyebrow {
  color: #d39c77;
  margin-bottom: 10px;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
}
pre {
  background: #fdf8f3;
  border: 1px solid #f7ede3;
  border-radius: 7px;
  padding: 17px;
  font:
    12px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  overflow: auto;
}
.muted {
  color: #bda994;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 23px;
}
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #754a2e;
  color: white;
  padding: 13px 22px;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 5px 25px #5a351d25;
  display: none;
  max-width: 500px;
  font-size: 12px;
  line-height: 1.8;
}
.progress {
  padding: 14px 22px;
  color: #be8a68;
  background: #fefaf6;
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.instructions {
  padding: 22px;
  color: #b19481;
  font-size: 12px;
  line-height: 2.1;
}
.instructions ol {
  padding-left: 18px;
}
.instructions h3 {
  color: #946b50;
  margin-bottom: 15px;
}
.account-pick {
  max-width: 285px;
}
.inline-result {
  margin-top: 12px;
}
body.busy #main button,
body.busy #main input,
body.busy #main select,
body.busy #main textarea {
  pointer-events: none;
  opacity: 0.6;
}
body.busy nav {
  pointer-events: none;
  opacity: 0.6;
}
.link-button {
  border: 0;
  background: none;
  color: #e59159;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
}
.error-text {
  color: #c27676;
  font-size: 12px;
  line-height: 1.8;
}
.connection-block {
  display: flex;
  gap: 14px;
  align-items: center;
}
.page-flag {
  font-size: 10px;
  vertical-align: middle;
  padding: 3px 7px;
  background: #fdf3e9;
  color: #cf9975;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 400;
}
@media (min-width: 1600px) {
  main {
    padding: 40px 50px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 213px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 277px;
  }
  main {
    padding: 25px 20px;
  }
  header {
    padding: 0 20px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 16px 12px;
    gap: 10px;
  }
  .stat strong {
    font-size: 21px;
  }
  nav a {
    font-size: 12px;
    gap: 7px;
  }
  .brand strong {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .rail {
    display: none;
  }
  aside {
    position: relative;
    left: 0;
    width: 100%;
    padding: 17px;
    border-bottom: 1px solid #f7ebdf;
  }
  .local-card,
  .side-status,
  .menu-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 4px;
  }
  nav a {
    padding: 10px;
    flex-shrink: 0;
  }
  nav i,
  .badge {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .brand {
    width: 100%;
  }
  header {
    height: 60px;
  }
  .breadcrumb {
    display: none;
  }
  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    display: block;
  }
  .stat-icon {
    display: none;
  }
  .stat strong {
    font-size: 20px;
  }
  .stat em {
    display: block;
    margin: 5px 0 0;
  }
  .page-title {
    align-items: flex-start;
  }
  h1 {
    font-size: 21px;
  }
  .page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    padding: 15px;
  }
  .account-pick {
    max-width: 100%;
    width: 100%;
  }
  .panel-heading {
    padding: 18px;
  }
  main {
    padding: 23px 15px;
  }
  footer {
    padding: 12px 15px;
  }
  footer span:last-child {
    display: none;
  }
  .notice {
    font-size: 11px;
  }
  .button {
    padding: 9px 12px;
  }
  .table-foot {
    padding: 12px;
  }
  .full {
    grid-column: auto;
  }
}

/* 哈特虎666 · warm identity */
:root {
  color: #573e31;
  background: #fffaf4;
}
.rail {
  background: linear-gradient(180deg, #e8a66a, #d57a4b);
}
.brand strong {
  color: #ac552e;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.brand small {
  color: #bda58f;
  letter-spacing: 1.4px;
}
.brand-icon {
  width: 47px;
  height: 47px;
  background: #fff2df;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-icon img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}
.rail-logo {
  padding: 4px;
  background: #fff6e5;
  border-radius: 12px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
}
.rail-logo img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}
.avatar {
  background: #fff0df;
  color: #b76c3c;
}
.avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.local-card {
  background: linear-gradient(120deg, #e5a158, #cc7543);
}
.local-card .eyebrow {
  color: #fff1da;
}
.local-card p {
  color: #ffeed8;
}
.button.primary {
  background: #d58149;
  border-color: #d58149;
}
.button.primary:hover {
  background: #bd6b37;
}
nav a.active {
  color: #b66937;
  background: #fff1e1;
}
.brand:hover .brand-icon {
  background: #ffe8c9;
}
@media (max-width: 1100px) {
  .brand strong {
    font-size: 19px;
  }
}
.install-page {
  max-width: 660px;
  margin: 25px auto 40px;
  text-align: center;
}
.install-logo {
  width: 80px;
  height: 80px;
  background: #fff0dc;
  border-radius: 23px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.install-logo img {
  width: 67px;
  height: 67px;
  object-fit: contain;
}
.install-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #bb865e;
}
.install-page h1 {
  font-size: 26px;
  margin: 14px 0;
  line-height: 1.5;
}
.install-intro {
  font-size: 12px;
  color: #a08c7c;
  line-height: 1.9;
  margin-bottom: 27px;
}
.install-card {
  text-align: left;
  background: white;
  border: 1px solid #efdfce;
  border-radius: 14px;
  padding: 27px 30px;
  box-shadow: 0 10px 35px #9a623009;
}
.install-title {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 21px;
  border-bottom: 1px solid #f5ece2;
}
.install-title > span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #fff1df;
  border-radius: 11px;
  color: #ce8a4c;
  font-size: 26px;
}
.install-title h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.install-title p {
  font-size: 11px;
  color: #b19b89;
  margin: 0;
}
.install-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 22px;
}
.install-steps li {
  display: flex;
  gap: 13px;
}
.install-steps li > b {
  display: grid;
  place-items: center;
  background: #fbefdf;
  color: #c68a52;
  border-radius: 50%;
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  font-size: 11px;
}
.install-steps strong {
  font-size: 12px;
  font-weight: 550;
}
.install-steps p {
  font-size: 11px;
  line-height: 1.9;
  color: #ac9785;
  margin: 5px 0 0;
}
.install-download {
  width: 100%;
  padding: 14px;
  font-size: 13px;
}
.install-secondary {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.install-footnote {
  font-size: 10px;
  color: #baa896;
  line-height: 1.8;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .install-page {
    margin-top: 12px;
  }
  .install-page h1 {
    font-size: 22px;
  }
  .install-card {
    padding: 23px 18px;
  }
  .install-secondary {
    flex-wrap: wrap;
  }
}
.spend-toolbar {
  border-top: 1px solid #f4e9de;
  gap: 10px;
}
.spend-toolbar label {
  font-size: 12px;
  color: #9b806a;
}
.spend-toolbar input[type="date"] {
  max-width: 160px;
}
.spend-timezone {
  font-size: 10px;
  line-height: 1.8;
}
.spend-toolbar select {
  min-width: 120px;
}
#account-status-filter {
  min-width: 130px;
}
@media (max-width: 760px) {
  .spend-toolbar input[type="date"] {
    max-width: 145px;
  }
  .spend-timezone {
    width: 100%;
  }
}
#account-bm-filter {
  min-width: 160px;
  max-width: 285px;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  #account-bm-filter {
    max-width: 100%;
    flex: 1;
  }
}
