:root {
  --ink: #183b33;
  --green: #195848;
  --lime: #d5e9b4;
  --orange: #e8a559;
  --paper: #f5f6f0;
  --line: #e3e7dc;
  --muted: #788077;
  --red: #ac4237;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft JhengHei", sans-serif;
  background: var(--paper);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button,
a {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.secondary {
  background: var(--lime);
  border-color: var(--lime);
}
.danger {
  color: var(--red);
  background: #fff2ee;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 8px;
}
.button:hover,
button:hover {
  filter: brightness(0.96);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
.brand-mark {
  background: var(--lime);
  border-radius: 13px;
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #163d33;
  color: white;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}
.brand b {
  display: block;
  font-size: 17px;
}
.brand .small {
  color: #aac4b3;
  font-size: 10px;
  letter-spacing: 1.4px;
  margin-top: 7px;
}
.nav-label {
  color: #92ada0;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 0 14px;
  margin-bottom: 12px;
}
.nav-button {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 6px;
  border: 0;
  background: transparent;
  color: #c4d5cb;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 500;
}
.nav-button.active {
  background: #2b5142;
  color: var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #36564a;
  padding: 20px 10px 0;
  color: #aac4b3;
}
.account-dot {
  width: 32px;
  height: 32px;
  background: #426250;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e4eedd;
}
.main {
  margin-left: 240px;
}
.topbar {
  height: 82px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbf6;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #679f67;
  display: inline-block;
  margin-right: 7px;
}
.content {
  padding: 34px 42px 50px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.page-heading p {
  margin: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.hero {
  background: var(--green);
  border-radius: 20px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  min-height: 172px;
  margin-bottom: 24px;
  overflow: hidden;
}
.hero h2 {
  font-size: 27px;
  margin: 12px 0;
}
.hero p {
  color: #c5d8c7;
  margin: 8px 0;
}
.hero .eyebrow {
  color: var(--lime);
}
.hero-orbit {
  border: 1px solid #578064;
  border-radius: 50%;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 30px;
}
.hero-orbit:before {
  content: "";
  position: absolute;
  inset: -23px;
  border: 1px solid #578064;
  border-radius: 50%;
}
.hero-orbit svg {
  height: 55px;
  width: 55px;
  color: var(--lime);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 14px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.stat-top svg {
  color: #578b62;
}
.stat strong {
  font-size: 34px;
  display: block;
  font-weight: 650;
  margin: 18px 0 8px;
  letter-spacing: -1px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.panel-body {
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 16px;
  margin: 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.check-row:last-child {
  border-bottom: 0;
}
.check-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5e9;
  color: var(--green);
  display: grid;
  place-items: center;
}
.check-row strong {
  display: block;
  margin-bottom: 6px;
}
.check-row .badge {
  margin-left: auto;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f0f2ec;
  color: #747e6f;
}
.badge.green {
  background: #e8f2de;
  color: #527238;
}
.badge.orange {
  background: #fff0dd;
  color: #a46b28;
}
.badge.red {
  background: #ffebe5;
  color: var(--red);
}
.audit-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.audit-row:last-child {
  border: 0;
}
.audit-row p {
  margin: 6px 0 0;
}
.toolbar {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.search {
  position: relative;
}
.search input {
  padding-left: 40px;
  min-width: 270px;
  background: #f8f9f5;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
}
input,
select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  width: 100%;
}
input:focus,
select:focus {
  border-color: var(--green);
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.filter-tabs {
  display: flex;
  gap: 4px;
}
.filter-tabs button {
  border: 0;
  background: #f7f8f2;
  font-size: 12px;
}
.filter-tabs button.active {
  background: var(--lime);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: #f9faf6;
  color: #8b9286;
  font-size: 11px;
  letter-spacing: 0.5px;
}
th {
  padding: 16px 20px;
  font-weight: 600;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #edf0e7;
}
td.name {
  white-space: normal;
  min-width: 245px;
  max-width: 350px;
  line-height: 1.5;
}
.sku {
  display: block;
  color: #8a9283;
  font-size: 11px;
  margin-top: 5px;
  font-family: monospace;
}
.price {
  font-weight: 700;
  color: var(--green);
}
.old-price {
  color: #9a9f95;
  font-size: 12px;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 55px 30px;
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}
.notice {
  background: #fff1de;
  color: #8c612d;
  border: 1px solid #ecd9bb;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ad-card {
  padding: 25px;
}
.ad-preview {
  background: #eef4e5;
  border: 1px dashed #b0c89b;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px;
  gap: 12px;
  margin: 18px 0;
  color: #648647;
  font-size: 12px;
}
.field {
  display: block;
  margin: 16px 0;
}
.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.plan {
  padding: 25px;
}
.plan h2 {
  margin: 13px 0;
}
.plan ul {
  padding-left: 18px;
  line-height: 2.2;
  color: var(--muted);
  font-size: 12px;
}
.plan .brand-mark {
  font-size: 15px;
  width: 38px;
  height: 38px;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at top right, #d7e3be, transparent 50%),
    var(--paper);
  padding: 30px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 42px;
  width: 450px;
  box-shadow: 0 25px 100px #183b3310;
}
.login-card h1 {
  font-size: 27px;
}
.login-card .primary {
  width: 100%;
  margin-top: 12px;
}
.login-card .eyebrow {
  color: #879977;
  margin-top: 28px;
}
.error {
  color: var(--red);
  line-height: 1.6;
  font-size: 13px;
}
.footer-note {
  color: #99a08e;
  font-size: 11px;
  margin-top: 32px;
}
.modal {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: 600px;
  max-width: calc(100% - 32px);
  box-shadow: 0 24px 100px #001b2850;
}
.modal::backdrop {
  background: #19352bb3;
}
.modal .panel-body {
  max-height: 75vh;
  overflow: auto;
}
.modal h2 {
  margin: 0;
  font-size: 20px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.modal-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.full {
  grid-column: 1/-1;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 40px #0002;
  max-width: 90%;
  z-index: 20;
  display: none;
}
#toast.visible {
  display: block;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
  }
  .main {
    margin-left: 200px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px;
  }
  .brand {
    margin-bottom: 14px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav-button {
    width: auto;
    white-space: nowrap;
    margin: 0;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 60px;
  }
  .content {
    padding: 23px 16px;
  }
  .hero {
    padding: 25px;
  }
  .hero-orbit {
    display: none;
  }
  .hero h2 {
    font-size: 23px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 30px;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 15px;
  }
  .search {
    width: 100%;
  }
  .search input {
    min-width: 0;
  }
  .ad-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 28px;
  }
  .top-actions .small {
    display: none;
  }
}
