:root {
  --ink: #1c332e;
  --muted: #60716b;
  --green: #205e50;
  --green2: #e5f1ea;
  --border: #e0e8e3;
  --bg: #f3f6f4;
  --radius: 14px;
  --surface-shadow: 0 1px 2px #183d3010, 0 4px 12px #193a2c06;
  --focus-ring: #2c8d75;
}
body { background: var(--bg); }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
:where(input, select, textarea)::placeholder { color: #75857d; }

.shell { grid-template-columns: 216px minmax(0, 1fr); }
.shell .sidebar {
  padding: 23px 13px 14px;
  background: linear-gradient(155deg, #1d3e37 0%, #152f2a 54%, #122822 100%);
  height: 100dvh;
}
.workspace-brand { align-items: center; flex-shrink: 0; gap: 11px; }
.workspace-brand .brandmark {
  color: #173e31; background: linear-gradient(155deg, #dbedb0, #a3d0a4);
  border: 1px solid #e3f1cb80;
  box-shadow: 0 1px 6px #101e2030;
  font: 760 1.25rem/1 Inter, "Microsoft YaHei", sans-serif;
  flex: 0 0 auto;
}
.workspace-brand strong { display: block; line-height: 1.2; font-size: 1.07rem; letter-spacing: .035em; }
.workspace-brand small { margin-top: 5px; font-size: .74rem; letter-spacing: .09em; color: #b3ccbe; }
.sidebar > .workspace-brand { padding: 3px 9px 20px; }
.sidebar nav { min-height: 0; flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: #53796a transparent; }
.nav-group + .nav-group { border-top: 1px solid #e6f9ef22; padding-top: 7px; margin-top: 10px; }
.sidebar .navtitle {
  color: #a9c7b7; margin: 0 0 4px; padding: 5px 10px 2px;
  font-size: .71rem; font-weight: 650; letter-spacing: .04em;
}
.shell .navbutton {
  min-height: 41px; gap: 10px; margin: 0 0 3px; padding: 8px 9px; border-radius: 8px;
  color: #d4e5dd; font-size: .88rem; position: relative;
}
.shell .navbutton:hover { background: #ebfff115; color: #fff; }
.shell .navbutton.active { background: #dff0e6; color: #19493b; font-weight: 700; }
.shell .navbutton.active::before {
  content: ''; position: absolute; top: 9px; bottom: 9px; left: 0;
  width: 3px; border-radius: 0 4px 4px 0; background: #2d987b;
}
.shell .navicon {
  flex: 0 0 24px; width: 24px; height: 24px; line-height: 24px;
  text-align: center; font-family: "Segoe UI Symbol", "Microsoft YaHei", sans-serif;
  font-size: .9rem; color: #c0dece; opacity: 1;
  border-radius: 5px; background: #e5f8ee15;
}
.shell .navbutton.active .navicon { color: #286452; background: #bcdecd; }

.shell .sidebarfoot {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  margin: 9px 0 0; padding: 12px 3px 0; flex-shrink: 0; border-top-color: #e6f9ef22;
}
.sidebarfoot .profile { min-width: 0; gap: 8px; margin: 0; }
.sidebarfoot .avatar { width: 33px; height: 33px; font-size: .85rem; background: #dff0e7; }
.sidebarfoot .profile > div { min-width: 0; }
.sidebarfoot .profile strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .81rem; }
.sidebarfoot .profile small { color: #b3ccbe; }
.sidebarfoot .exit { padding: 3px; color: #bed3c7; font-size: .72rem; white-space: nowrap; text-decoration: none; }
.sidebarfoot .exit:hover { text-decoration: underline; color: white; }
.sidebar .navbutton:focus-visible, .sidebarfoot button:focus-visible { outline-color: #a4ddc6; outline-offset: -2px; }

.main { background: radial-gradient(ellipse at 20% 0, #eaf2ed 0, transparent 560px), var(--bg); }
.topbar {
  position: sticky; top: 0; z-index: 4; min-height: 62px;
  padding: 11px 28px; background: #fffffff2; border-bottom-color: #e3ebe6;
  backdrop-filter: blur(10px);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; font-size: .84rem; }
.breadcrumb b { color: #244035; font-weight: 680; }
.workspace-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.workspace-date { color: #536a60; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.topbar .btn { padding: 5px 10px; }
.topbar .mobile-exit { display: none; }
.topbar .demo-badge { color: #3d6250; background: #edf6ee; border-color: #d6e8da; }
.content { padding: 27px 28px 42px; }

.pagehead { align-items: center; gap: 14px 20px; margin-bottom: 20px; }
.pagehead h1 {
  color: #17372e; margin: 0;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 1.95rem);
  line-height: 1.25; font-weight: 750; letter-spacing: -.025em;
}
.pagehead p { margin: 7px 0 0; color: #53695f; font-size: .84rem; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.btn {
  border-radius: 8px; min-height: 37px; border-color: #dbe7df; color: #24443a;
  font-size: .85rem; font-weight: 650;
}
.btn.small { min-height: 31px; font-size: .79rem; }
.btn:hover { background: #edf5ef; border-color: #c8dfd0; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 1px 2px #123f322b; }
.btn.primary:hover { background: #16483c; border-color: #16483c; }

.panel, .statfilters { border-color: #e1ebe4; box-shadow: var(--surface-shadow); }
.panelhead { align-items: center; padding: 15px 18px; border-bottom-color: #e6eee9; }
.panelhead h2 { color: #244235; font-size: 1.02rem; }
.panelbody { padding: 18px; }
.kpi:not(.feature) { box-shadow: var(--surface-shadow); }

.filters {
  column-gap: 10px; row-gap: 11px;
  padding: 13px 16px; border-bottom-color: #e4ede7;
}
.filters label { color: #50685b; font-size: .78rem; }
:where(input:not([type=checkbox]), select, textarea) { border-color: #d6e4db; border-radius: 8px; }
:where(input:not([type=checkbox]), select, textarea):focus {
  outline: 2px solid #84b9a5; outline-offset: 0; border-color: #84b9a5;
}
input[type=file]::file-selector-button {
  margin-right: 9px; padding: 6px 10px; border: 1px solid #d7e7dd;
  border-radius: 6px; background: #eaf4ed; color: #245043; font: inherit; cursor: pointer;
}
.tablewrap { scrollbar-width: thin; scrollbar-color: #cadcd1 transparent; }
th { color: #48645a; background: #f3f7f4; font-weight: 650; border-bottom-color: #e0eae4; }
td { border-bottom-color: #edf2ef; }
:where(.content, .dialogbody) th { padding: 10px 14px; }
:where(.content, .dialogbody) td { padding: 12px 14px; }
tbody tr:hover { background: #f4f9f5; }
td .sub { color: #5e7569; }
.customer-name .avatar { border-radius: 9px; background: #e6f2e9; color: #2b604d; }
#customer-table .link { color: #21594a; }
.footerline { background: #fcfdfc; border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }

.ops-tabs, .tabs { gap: 7px; border-bottom-color: #dae7dd; }
.ops-tabs .tab, .tabs .tab {
  padding: 8px 11px; border-radius: 8px 8px 0 0;
  color: #4a655b; transition: background-color .14s ease-out;
}
.ops-tabs .tab:hover, .tabs .tab:hover { background: #e9f3ec; }
.ops-tabs .tab[aria-selected=true], .tabs .tab.active { background: #e3f0e8; color: #235748; border-bottom-color: #2d7d67; }
.settingssection { max-width: 1030px; }
.dropzone { background: #f4faf6; border-color: #aecbbb; }
.bulkbar { background: #f1f7f2; }
.empty { padding: 31px 17px; color: #5e7469; }
.empty strong { font-weight: 680; color: #39584b; }
.scriptcard { border-top: 3px solid #95b9aa; }

dialog { border-color: #dae8df; border-radius: 17px; box-shadow: 0 30px 80px #10261f44; }
dialog::backdrop { background: #132f2a68; }
.dialoghead {
  padding: 15px 21px; gap: 14px; border-bottom-color: #e4ede7;
  background: #f8fbf9;
}
.dialoghead h2 { color: #214438; font-size: 1.18rem; }
.dialoghead .close {
  padding: 0; width: 31px; height: 31px; display: grid; place-items: center;
  border: 1px solid #dbe7df; border-radius: 7px; background: #fff; color: #44665a;
}
.dialoghead .close:hover { background: #e5f1e9; }
.dialogbody { padding: 20px; }
.dialogbody label { color: #3d594e; }
.detailhero { gap: 13px; }
.detailhero .avatar { border-radius: 14px; background: linear-gradient(130deg, #d7ecde, #eaf5e9); }
.detailmeta { border: 1px solid #e4eee7; background: #f4f8f5; gap: 12px; }
.formactions { padding-top: 14px; margin-top: 18px; border-top: 1px solid #e8efe9; }
#toast { color: #f7fff8; background: #224f41; border: 1px solid #8eb7a440; }

.workspace-login {
  min-height: 100dvh; padding: clamp(18px,3vw,42px);
  grid-template-columns: minmax(0,1fr) minmax(330px,.84fr);
  gap: 0; background: #edf3ee;
}
.workspace-login .loginart {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 470px; padding: clamp(26px,4.5vw,65px); justify-content: center;
  border-radius: 24px 0 0 24px;
  background: radial-gradient(ellipse at 100% 100%, #367665, transparent 65%),
              linear-gradient(153deg, #173630, #204f42 71%, #29705d);
}
.workspace-login .loginart .workspace-brand {
  padding: 0; position: absolute; top: clamp(26px,4.5vw,65px); left: clamp(26px,4.5vw,65px); z-index: 1;
}
.workspace-login .login-heading { z-index: 1; position: relative; max-width: 100%; overflow-wrap: break-word; }
.workspace-login .login-heading h1 {
  color: #f4fff5; line-height: 1.18; margin: 0 0 13px;
  font-size: clamp(2rem,4vw,3.6rem); font-weight: 750;
}
.workspace-login .login-heading p { color: #c2dfd1; margin: 0; font-size: .9rem; }
.login-artwork { position: absolute; bottom: 0; right: 0; width: min(100%,420px); height: min(67%,390px); pointer-events: none; }
.login-artwork i {
  position: absolute; width: 77%; aspect-ratio: 1;
  right: -8%; bottom: -52%; border-radius: 14%;
  border: 1px solid #cfead058; background: linear-gradient(125deg, #d3f2c51d, transparent);
  transform: rotate(-38deg);
}
.login-artwork i:nth-child(2) { right: -2%; bottom: -38%; border-color: #cfead048; }
.login-artwork i:nth-child(3) { right: 3%; bottom: -24%; border-color: #cfead040; background: transparent; }
.workspace-login .loginform {
  background: #fff; border-radius: 0 24px 24px 0; border: 1px solid #dceae2;
  box-shadow: var(--surface-shadow); padding: clamp(25px,4vw,55px);
}
.workspace-login .loginbox h2 { margin: 0 0 5px; line-height: 1.25; font-size: 1.6rem; color: #214438; }
.workspace-login .login-help { margin: 9px 0 0; color: #546c60; font-size: .84rem; }
.workspace-login .loginbox form { margin-top: 25px; }
.workspace-login .loginbox label { color: #36594b; font-size: .86rem; margin-bottom: 15px; }
.workspace-login .loginbox input { background: #fafcfb; border-color: #d4e4da; min-height: 43px; }
.workspace-login .loginbox .primary { margin-top: 4px; }
.workspace-login .demo-login { color: #36594a; padding: 10px 12px; background: #edf6ef; border: 1px solid #dcebe0; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 188px minmax(0,1fr); }
  .shell .sidebar { padding-inline: 10px; }
  .topbar, .content { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .shell .sidebar { height: auto; padding: 10px 10px 7px; }
  .sidebar > .workspace-brand { padding: 3px 6px 9px; }
  .workspace-brand .brandmark { border-radius: 9px; }
  .sidebar nav { gap: 2px; overflow: auto; scrollbar-width: none; }
  .sidebar .nav-group { display: contents; }
  .sidebar .navtitle { display: none; }
  .shell .navbutton { flex-shrink: 0; min-height: 33px; margin: 0; padding: 5px 9px; }
  .shell .navicon { display: none; }
  .shell .sidebarfoot { display: none; }
  .topbar { min-height: 49px; padding: 8px 13px; gap: 8px; }
  .workspace-toolbar { gap: 5px; }
  .topbar .mobile-exit { display: inline-flex; }
  .workspace-date { display: none; }
  .content { padding: 18px 13px 32px; }
  .pagehead { align-items: flex-start; gap: 10px; }
  .pagehead h1 { font-size: 1.45rem; }
  .page-actions { justify-content: start; }
  .panelhead, .panelbody, .filters { padding-inline: 12px; }
  .workspace-login { display: block; padding: 12px; }
  .workspace-login .loginart { min-height: 145px; border-radius: 16px 16px 0 0; padding: 20px 19px; justify-content: flex-start; }
  .workspace-login .loginart .workspace-brand { position: relative; inset: auto; }
  .workspace-login .login-heading { padding: 17px 0 0; }
  .workspace-login .login-heading h1 { display: block; font-size: 1.5rem; margin-bottom: 4px; }
  .workspace-login .loginart .login-heading p { font-size: .77rem; }
  .login-artwork { width: 160px; height: 122px; }
  .workspace-login .loginform { border-radius: 0 0 16px 16px; min-height: min(65vh, 440px); padding: 24px 18px; }
  .workspace-login .loginbox h2 { font-size: 1.36rem; }
}
@media (max-width: 490px) {
  .pagehead { display: grid; }
  .workspace-toolbar .btn { padding: 4px 6px; }
  .topbar .demo-badge { padding: 3px 5px; font-size: .7rem; }
  .breadcrumb { font-size: .76rem; gap: 5px; }
  .dialoghead, .dialogbody { padding-inline: 13px; }
  .detailhero { display: grid; grid-template-columns: auto minmax(0,1fr); }
  .detailhero .spacer { display: none; }
  .detailhero .avatar { width: 44px; height: 44px; font-size: 1.08rem; }
}

