:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #20342e;
  background: #f4f6f3;
  font-synthesis: none;
  --green: #245e4d;
  --line: #e1e8e1;
  --muted: #77867d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--green);
}
button,
input,
select,
textarea {
  border-radius: 8px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #91c2a4;
  outline-offset: 2px;
}
.workspace {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  border-radius: 11px;
}
.brand strong {
  font-size: 22px;
  letter-spacing: 1px;
}
.brand strong span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #7a8980;
  margin-top: 2px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9aa59d;
  margin: 44px 12px 12px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 14px;
  color: #66776d;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav button span {
  font-size: 10px;
  opacity: 0.55;
}
nav button:hover,
nav button.active {
  background: #eaf1eb;
  color: var(--green);
}
nav button.active {
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 12px 0;
  font-size: 12px;
  color: #5d7568;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #99a49d;
  line-height: 1.8;
  margin-top: 12px;
}
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #6a9e7c;
  margin-right: 6px;
}
main {
  min-width: 0;
  padding: 36px 42px 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #86978b;
  font-weight: 600;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 7px 0;
}
h2 {
  font-size: 20px;
  margin: 7px 0 14px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #67766d;
}
.quiet {
  border: 0;
  background: transparent;
  color: #728378;
  padding: 7px 8px;
  font-size: 12px;
}
.quiet:hover {
  background: #edf2ed;
}
.primary,
.secondary,
.danger {
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.4;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #174735;
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: #3a5143;
}
.danger {
  background: #fff2ef;
  border-color: #eed1c9;
  color: #a24935;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  align-items: center;
}
.toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.toolbar button {
  white-space: nowrap;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.metric label {
  font-size: 12px;
  color: #718378;
}
.metric strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 16px 0 8px;
}
.metric small {
  font-size: 11px;
  color: #95a398;
}
.welcome {
  margin: 8px 0 28px;
}
.welcome h2 {
  font-size: 23px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.steps {
  display: grid;
  gap: 20px;
}
.step {
  display: flex;
  gap: 14px;
  padding: 4px 0;
}
.step .number {
  font-size: 12px;
  color: #849c8a;
  background: #f1f5ef;
  border: 1px solid #e0e8dd;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.step strong {
  font-size: 13px;
}
.step p {
  font-size: 12px;
  line-height: 1.7;
  color: #829087;
  margin: 5px 0 0;
}
.policy {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eef1ed;
  padding: 14px 0;
  font-size: 12px;
}
.policy:last-child {
  border: 0;
}
.policy span {
  color: #839087;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #839186;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 18px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  color: #536b5c;
  padding: 17px 18px;
  border-bottom: 1px solid #edf1eb;
}
tr:last-child td {
  border: 0;
}
td strong {
  color: #304c3c;
}
td small {
  display: block;
  font-size: 10px;
  color: #9aa59d;
  margin-top: 5px;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 1px;
}
.badge {
  display: inline-flex;
  border-radius: 4px;
  background: #edf4ec;
  color: #4d7b57;
  padding: 4px 7px;
  font-size: 10px;
}
.badge.warning {
  background: #fcf2df;
  color: #9e7932;
}
.badge.danger {
  background: #fbebe7;
  color: #a66a5e;
}
.row-actions {
  display: flex;
  gap: 4px;
}
.row-actions button {
  font-size: 11px;
  padding: 5px 7px;
  white-space: nowrap;
}
.empty {
  padding: 52px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d7e0d6;
  border-radius: 12px;
}
.empty h3 {
  color: #566f5c;
}
.empty p {
  color: #8c9c90;
  font-size: 13px;
  line-height: 1.7;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 20px;
}
.asset-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.asset-art {
  height: 175px;
  background: #edf1ea;
  display: grid;
  place-items: center;
  color: #9cafa0;
  font-size: 44px;
}
.asset-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-info {
  padding: 17px;
}
.asset-info h3 {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-info p {
  font-size: 11px;
  color: #8b9b8f;
}
.asset-info .row-actions {
  justify-content: flex-end;
  margin-top: 12px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #e9eee7;
  border-radius: 8px;
  padding: 4px;
}
.tabs button {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 7px 15px;
  color: #79917f;
}
.tabs button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 3px #00000008;
}
label {
  font-size: 12px;
  color: #536c5c;
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #dce5da;
  color: #304b39;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #a7b2a6;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
}
textarea {
  min-height: 86px;
  resize: vertical;
}
input[type="file"] {
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.help {
  font-size: 11px;
  line-height: 1.75;
  color: #899c8b;
  margin: 0 0 18px;
}
.error {
  font-size: 12px;
  line-height: 1.7;
  color: #a14a35;
  white-space: pre-wrap;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 26px 30px;
  max-height: 90vh;
  overflow: auto;
  color: #304a39;
}
dialog::backdrop {
  background: #183a2a55;
  backdrop-filter: blur(3px);
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.selection-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 8px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 24px 56px 1fr;
  gap: 10px;
  align-items: center;
}
.selection-item img {
  width: 56px;
  height: 45px;
  object-fit: contain;
  background: #edf1e9;
}
.selection-item .times {
  display: flex;
  gap: 8px;
  grid-column: 2/-1;
}
.selection-item .times input {
  font-size: 11px;
  padding: 6px;
}
.selection-item .item-name {
  font-size: 12px;
}
.selection-item small {
  font-size: 10px;
  color: #99a897;
}
.preview-image {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: #f1f4ef;
  border-radius: 8px;
}
.code-box {
  padding: 20px;
  background: #f2f6ef;
  word-break: break-all;
  font:
    14px/1.8 Consolas,
    monospace;
  border-radius: 8px;
  color: #345a3f;
  user-select: all;
}
.notice {
  background: #edf4ec;
  border: 1px solid #dce8d7;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: #587952;
}
.organization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.organization-grid .wide {
  grid-column: 1/-1;
}
#global-message {
  position: fixed;
  right: 30px;
  top: 20px;
  z-index: 20;
  max-width: 460px;
  border: 1px solid #d4e2d2;
  background: #fff;
  padding: 14px 20px;
  box-shadow: 0 6px 28px #254a2812;
  border-radius: 10px;
  font-size: 13px;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-brand {
  background: #e7ede3;
  padding: 10vh 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-brand .eyebrow {
  margin: 42px 0 20px;
}
.login-brand h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -2px;
}
.login-brand p:not(.eyebrow) {
  font-size: 14px;
  line-height: 2;
  color: #80907c;
  margin-top: 25px;
}
.brand-line {
  height: 1px;
  background: #ccd9c7;
  width: 75%;
  margin-top: auto;
  margin-bottom: 18px;
}
.login-brand small {
  color: #93a28d;
  font-size: 10px;
}
.login-card {
  align-self: center;
  margin: auto;
  width: 360px;
  max-width: calc(100% - 48px);
}
.login-card h2 {
  font-size: 28px;
  margin: 14px 0;
}
.login-card .muted {
  margin-bottom: 32px;
}
.login-card .primary {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
}
.login-card small {
  font-size: 11px;
  color: #a3aea0;
}
footer {
  color: #a3afa1;
  font-size: 10px;
  padding: 32px 0 22px;
  line-height: 1.7;
}
.mobile-only {
  display: none;
}
@media (max-width: 1150px) {
  main {
    padding: 28px 24px 0;
  }
  .workspace {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    padding: 30px 17px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .account {
    gap: 4px;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 10;
    width: 240px;
    box-shadow: 12px 0 30px #0001;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-only {
    display: block;
  }
  main {
    padding: 20px 16px 0;
  }
  .topbar {
    gap: 8px;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .account #account-name {
    display: none;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .toolbar > div {
    flex-wrap: wrap;
  }
  .form-grid,
  .organization-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide,
  .organization-grid .wide {
    grid-column: auto;
  }
  .login-shell {
    display: block;
  }
  .login-brand {
    display: none;
  }
  .login-card {
    padding-top: 15vh;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 18px;
  }
  .metric strong {
    font-size: 27px;
  }
  .tabs button {
    padding: 7px 10px;
  }
  dialog {
    padding: 22px 18px;
  }
  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
