:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-muted: #ececef;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #d2d2d7;
  --line-strong: #b8b8bf;
  --green: #1d1d1f;
  --green-2: #0071e3;
  --green-soft: #eef5ff;
  --orange: #bf5b28;
  --orange-soft: #fff2e8;
  --gold: #a66f00;
  --gold-soft: #fff7e0;
  --blue: #0071e3;
  --blue-soft: #eef5ff;
  --red: #d70015;
  --red-soft: #fff0f1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.025);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --sidebar-width: 224px;
  --header-height: 68px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42rem),
    var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  color: #fff;
  background: var(--green-2);
}

:focus-visible {
  outline: 2px solid rgba(45, 103, 87, 0.72);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 24px;
  background: var(--bg);
}

.boot-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.boot-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.boot-loader {
  width: 44px;
  height: 2px;
  overflow: hidden;
  margin-left: 12px;
  background: #dfe4de;
}

.boot-loader i {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--green-2);
  animation: boot-slide 1s ease-in-out infinite alternate;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  min-height: 100vh;
  background: var(--surface-soft);
}

.auth-context {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(32px, 5vw, 66px);
  color: #edf4ef;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--green);
  background-size: 48px 48px;
}

.auth-context::before {
  position: absolute;
  right: -130px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 54px rgba(255, 255, 255, 0.025),
    0 0 0 108px rgba(255, 255, 255, 0.015);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-brand .brand-mark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 0.09em;
}

.auth-brand span {
  display: block;
  margin-top: 3px;
  color: rgba(238, 246, 241, 0.55);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.auth-context-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: clamp(54px, 10vh, 108px);
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9c58c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.auth-kicker::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.auth-context-body h1 {
  max-width: 560px;
  margin: 17px 0 0;
  font-size: clamp(31px, 3.5vw, 52px);
  font-weight: 590;
  line-height: 1.26;
  letter-spacing: 0;
}

.auth-context-body p {
  max-width: 470px;
  margin: 20px 0 0;
  color: rgba(237, 245, 240, 0.62);
  font-size: 12px;
  line-height: 1.85;
}

.auth-media {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(440px, 100%);
  grid-template-columns: 1fr 0.82fr 0.7fr;
  gap: 8px;
  margin-top: clamp(36px, 7vh, 70px);
}

.auth-media img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  filter: saturate(0.82) contrast(1.03);
}

.auth-media img:nth-child(2) {
  margin-top: 14px;
}

.auth-media img:nth-child(3) {
  margin-top: -8px;
}

.auth-media img:nth-child(4) {
  display: none;
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  margin-top: auto;
  padding-top: 38px;
}

.auth-proof strong {
  display: block;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 590;
}

.auth-proof span {
  display: block;
  margin-top: 4px;
  color: rgba(237, 245, 240, 0.48);
  font-size: 8px;
}

.auth-security {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  color: rgba(237, 245, 240, 0.56);
  font-size: 9px;
}

.auth-panel {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 38px;
  background:
    radial-gradient(circle at 100% 0%, rgba(218, 227, 218, 0.56), transparent 28rem),
    var(--surface-soft);
}

.auth-card {
  width: min(430px, 100%);
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(31, 48, 41, 0.09);
}

.auth-card-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 660;
  line-height: 1.28;
}

.auth-card-head p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 24px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.auth-tabs button {
  min-height: 32px;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.auth-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(28, 40, 34, 0.08);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.55;
}

.auth-alert svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-alert.error {
  color: #a74845;
  border: 1px solid #f0d3d1;
  background: var(--red-soft);
}

.auth-alert.success {
  color: var(--green-2);
  border: 1px solid #cddcd3;
  background: var(--green-soft);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form .field-control {
  min-height: 41px;
  font-size: 11px;
}

.auth-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 3px;
}

.auth-help {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.auth-footer {
  margin: 21px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  text-align: center;
}

@keyframes boot-slide {
  from { transform: translateX(-50%); }
  to { transform: translateX(180%); }
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px 16px;
  border-right: 1px solid var(--line);
  background: rgba(249, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 0 8px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #1d1d1f;
  border-radius: 8px;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.brand-word {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.workspace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.workspace-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 7px;
}

.workspace-copy {
  min-width: 0;
}

.workspace-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-scroll {
  flex: 1;
  min-height: 0;
  margin-top: 22px;
  overflow-y: auto;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-group + .nav-group {
  margin-top: 22px;
}

.nav-label {
  padding: 0 10px 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  gap: 11px;
  padding: 0 10px;
  color: #59625e;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.nav-item + .nav-item {
  margin-top: 3px;
}

.nav-item svg {
  flex: 0 0 auto;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(31, 75, 64, 0.06);
}

.nav-item.active {
  color: var(--green);
  background: var(--green-soft);
  font-weight: 650;
}

.nav-item.active::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -14px;
  width: 3px;
  background: var(--green);
  border-radius: 0 3px 3px 0;
  content: "";
}

.nav-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 5px;
  place-items: center;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-foot {
  padding: 14px 8px 2px;
  border-top: 1px solid var(--line);
}

.scope-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.scope-status svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--green-2);
}

.scope-status strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(227, 230, 223, 0.86);
  background: rgba(243, 244, 240, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.icon-btn.mobile-menu-btn {
  display: none;
}

.page-location {
  min-width: 0;
}

.page-location span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}

.page-location strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.command-trigger {
  display: flex;
  align-items: center;
  width: 230px;
  height: 36px;
  gap: 8px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-align: left;
  transition: border 160ms ease, background 160ms ease;
}

.command-trigger:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.command-key {
  margin-left: auto;
  padding: 2px 5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 9px;
  line-height: 1.4;
}

.icon-btn {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  transition: border 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-btn:hover {
  color: var(--green);
  border-color: #cbd3cd;
  background: #fff;
}

.icon-btn.notification {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--bg);
  border-radius: 999px;
  background: var(--orange);
}

.account-wrap {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 9px;
  padding: 3px 8px 3px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--surface);
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.avatar.small {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  font-size: 10px;
}

.avatar.tiny {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 9px;
}

.account-copy {
  min-width: 0;
}

.account-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.account-copy span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 270px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: menu-in 140ms ease-out;
}

.menu-title {
  padding: 9px 10px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.user-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.user-option:hover,
.user-option.active {
  background: var(--surface-soft);
}

.user-option.active {
  box-shadow: inset 0 0 0 1px var(--line);
}

.user-option-copy {
  min-width: 0;
  flex: 1;
}

.user-option-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.user-option-copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-option .check {
  color: var(--green);
}

.content {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 28px 48px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--green-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 15px;
  height: 1px;
  background: currentColor;
  content: "";
}

.page-head h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 680;
  line-height: 1.23;
  letter-spacing: 0;
}

.page-description {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 120ms ease, background 160ms ease, border 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(31, 75, 64, 0.14);
}

.btn-primary:hover {
  background: #183f35;
}

.btn-secondary {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(31, 75, 64, 0.06);
}

.btn-danger {
  color: var(--red);
  border-color: #f0d4d2;
  background: var(--red-soft);
}

.select-control,
.field-control {
  min-height: 36px;
  padding: 0 30px 0 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23727b76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  font-size: 12px;
}

.field-control {
  width: 100%;
  padding-right: 11px;
  background-image: none;
}

.select-control:hover,
.field-control:hover {
  border-color: var(--line-strong);
}

.field-control::placeholder {
  color: var(--muted-2);
}

.field-control:focus,
.select-control:focus {
  border-color: var(--green-2);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(45, 103, 87, 0.1);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  position: relative;
  width: min(280px, 100%);
}

.search-box > svg {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box .field-control {
  padding-left: 34px;
}

.scope-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.scope-note svg {
  color: var(--green-2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  position: absolute;
  right: -25px;
  bottom: -32px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--metric-wash, var(--green-soft));
  content: "";
  opacity: 0.72;
}

.metric-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--metric-color, var(--green-2));
  border-radius: 7px;
  background: var(--metric-wash, var(--green-soft));
}

.metric-value {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.05;
}

.metric-value .unit {
  margin-left: 3px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.metric-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green-2);
  font-weight: 650;
}

.delta.down {
  color: var(--red);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 0;
}

.panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.4;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.panel-body {
  padding: 16px 18px 18px;
}

.panel-body.flush {
  padding: 12px 0 0;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  color: var(--green-2);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.segment {
  min-height: 27px;
  padding: 0 9px;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.segment.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 38, 33, 0.09);
}

.chart-summary {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 15px;
}

.chart-summary strong {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
}

.chart-summary span {
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green-2);
}

.legend-dot.compare {
  background: var(--muted-2);
}

.chart-shell {
  position: relative;
  width: 100%;
  min-height: 208px;
  margin-top: 6px;
}

.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: #eceee9;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart-axis-label {
  fill: #929b96;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
}

.chart-line {
  fill: none;
  stroke: var(--green-2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.compare {
  stroke: #a7b0aa;
  stroke-width: 1.3;
  stroke-dasharray: 4 5;
}

.chart-area {
  fill: url("#sales-area");
}

.chart-dot {
  fill: #fff;
  stroke: var(--green-2);
  stroke-width: 2;
}

.goal-panel {
  display: flex;
  flex-direction: column;
}

.goal-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.progress-ring {
  --progress: 72;
  display: grid;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green-2) calc(var(--progress) * 1%), #e9ede8 0);
}

.progress-ring-inner {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
}

.progress-ring-inner strong {
  display: block;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 19px;
  line-height: 1;
}

.progress-ring-inner span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.goal-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.goal-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.goal-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.goal-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}

.goal-row > span:first-child {
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef0ec;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green-2);
}

.goal-row strong {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  text-align: right;
}

.goal-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.work-list {
  display: grid;
}

.work-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.work-item:first-child {
  border-top: 0;
}

.task-check {
  display: grid;
  width: 21px;
  height: 21px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid #d4d9d2;
  border-radius: 6px;
  background: #fff;
}

.task-check:hover {
  border-color: var(--green-2);
}

.task-check.done {
  border-color: var(--green-2);
  background: var(--green-2);
}

.work-item-copy {
  min-width: 0;
}

.work-item-copy strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-item.done .work-item-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.priority::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
  content: "";
}

.priority.high::before {
  background: var(--orange);
}

.priority.medium::before {
  background: var(--gold);
}

.priority.low::before {
  background: #7e9b8d;
}

.mini-avatar-stack {
  display: flex;
  margin-left: 2px;
}

.mini-avatar-stack .avatar {
  margin-left: -5px;
  border: 2px solid #fff;
}

.mini-avatar-stack .avatar:first-child {
  margin-left: 0;
}

.product-mini-list {
  display: grid;
}

.product-mini-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.product-mini-row:first-child {
  border-top: 0;
}

.product-thumb {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-muted);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-mini-copy {
  min-width: 0;
}

.product-mini-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-mini-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.product-mini-value {
  text-align: right;
}

.product-mini-value strong {
  display: block;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 11px;
}

.product-mini-value span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.activity-list {
  display: grid;
}

.activity-row {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 15px;
}

.activity-row:not(:last-child)::before {
  position: absolute;
  top: 26px;
  bottom: 2px;
  left: 12px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-copy {
  padding-top: 2px;
  font-size: 10px;
  line-height: 1.55;
}

.activity-copy strong {
  font-weight: 650;
}

.activity-copy span {
  color: var(--muted);
}

.activity-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  min-height: 39px;
  padding: 0 13px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--green);
}

.tab.active::after {
  position: absolute;
  right: 9px;
  bottom: -1px;
  left: 9px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  content: "";
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.75fr);
  gap: 12px;
}

.analytics-side {
  display: grid;
  gap: 12px;
}

.chart-legend-inline {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.funnel {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.funnel-bar {
  height: 21px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-muted);
}

.funnel-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-2);
}

.funnel-row:nth-child(2) .funnel-bar i {
  background: #5f8477;
}

.funnel-row:nth-child(3) .funnel-bar i {
  background: #91aa9f;
}

.funnel-row:nth-child(4) .funnel-bar i {
  background: #d2aa57;
}

.funnel-value {
  color: var(--ink-soft);
  font-weight: 650;
  text-align: right;
}

.efficiency-list {
  display: grid;
}

.efficiency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.efficiency-row:first-child {
  border-top: 0;
}

.channel-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-dot {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 650;
}

.channel-name strong {
  font-weight: 620;
}

.efficiency-value {
  min-width: 60px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  text-align: right;
}

.efficiency-copy {
  color: var(--muted);
  font-size: 9px;
}

.data-panel {
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: #fafbf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 650;
  text-align: left;
}

.data-table td {
  height: 60px;
  padding: 9px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid #eef0ec;
  font-size: 10px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 140ms ease;
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: #fbfcfa;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.table-product .product-thumb {
  width: 42px;
  height: 42px;
}

.table-product-copy strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 620;
}

.table-product-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.order-id {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
}

.buyer-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.store-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 9px;
}

.store-mini {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: #fff;
  border-radius: 3px;
  font-size: 6px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pending {
  color: #a66e2f;
  background: var(--gold-soft);
}

.status-shipped {
  color: #426f8d;
  background: var(--blue-soft);
}

.status-complete {
  color: var(--green-2);
  background: var(--green-soft);
}

.status-refund {
  color: var(--red);
  background: var(--red-soft);
}

.status-warning {
  color: var(--orange);
  background: var(--orange-soft);
}

.status-selling {
  color: var(--green-2);
  background: var(--green-soft);
}

.row-action {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.row-action:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.row-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  background: var(--surface-muted);
}

.empty-state strong {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.empty-state span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.page-buttons {
  display: flex;
  gap: 5px;
}

.page-button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 9px;
}

.page-button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-cell {
  padding: 14px 16px;
}

.summary-cell + .summary-cell {
  border-left: 1px solid var(--line);
}

.summary-cell span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.summary-cell strong {
  display: block;
  margin-top: 6px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 650;
}

.summary-cell small {
  margin-left: 4px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 8px;
  font-weight: 500;
}

.work-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.work-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-summary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--summary-color, var(--green-2));
  border-radius: 8px;
  background: var(--summary-bg, var(--green-soft));
}

.work-summary-copy span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.work-summary-copy strong {
  display: block;
  margin-top: 4px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 650;
}

.kanban-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  min-width: 940px;
  gap: 10px;
}

.kanban-column {
  min-height: 430px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(239, 241, 236, 0.72);
}

.kanban-column.drag-over {
  border-color: #9fb5aa;
  background: #e9eeea;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 11px;
}

.kanban-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 650;
}

.kanban-title-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--column-color, var(--muted-2));
}

.kanban-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: var(--muted);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 8px;
}

.kanban-cards {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 365px;
}

.task-card {
  padding: 12px;
  border: 1px solid #e1e4de;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 41, 35, 0.03);
  cursor: grab;
  transition: border 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.task-card:hover {
  border-color: #ccd3cd;
  box-shadow: 0 6px 16px rgba(28, 41, 35, 0.06);
  transform: translateY(-1px);
}

.task-card.dragging {
  opacity: 0.5;
}

.task-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.task-tag {
  display: inline-block;
  padding: 3px 6px;
  color: var(--green-2);
  border-radius: 4px;
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 600;
}

.task-card h3 {
  margin: 9px 0 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.task-card p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}

.task-progress .progress-track {
  flex: 1;
}

.task-progress span {
  width: 24px;
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f1ed;
}

.task-due {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
}

.task-owner {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.permission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 12px;
}

.invite-panel {
  overflow: hidden;
  margin-bottom: 12px;
}

.invite-table td {
  height: 62px;
}

.invite-code-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.invite-code {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: var(--green);
  border: 1px dashed #b9cbbf;
  border-radius: 5px;
  background: var(--green-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.invite-use {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.invite-revoke {
  min-height: 28px;
  padding: 0 7px;
  color: var(--red);
  font-size: 8px;
}

.invite-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.invite-empty svg {
  color: var(--green-2);
}

.invite-empty strong {
  color: var(--ink-soft);
  font-size: 11px;
}

.invite-empty span {
  font-size: 9px;
}

.invite-result-code {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1px dashed #b9cbbf;
  border-radius: 8px;
  background: var(--green-soft);
  text-align: center;
}

.invite-result-code span {
  color: var(--muted);
  font-size: 9px;
}

.invite-result-code strong {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  letter-spacing: 0.05em;
}

.invite-result-code .btn {
  margin-top: 3px;
}

.member-list {
  display: grid;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(110px, 0.7fr) minmax(180px, 1.2fr) 70px 30px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.member-row:first-child {
  border-top: 0;
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.member-profile-copy {
  min-width: 0;
}

.member-profile-copy strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
}

.member-profile-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5a9379;
}

.member-role {
  color: var(--ink-soft);
  font-size: 10px;
}

.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.scope-tag {
  padding: 3px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 8px;
}

.member-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-2);
  font-size: 8px;
}

.permission-note {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #e9f1ec;
  background: var(--green);
}

.permission-note::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.035), 0 0 0 45px rgba(255, 255, 255, 0.02);
}

.permission-note-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #f4dfaa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.permission-note h3 {
  margin: 18px 0 7px;
  font-size: 14px;
  font-weight: 650;
}

.permission-note p {
  max-width: 270px;
  margin: 0;
  color: rgba(238, 245, 240, 0.68);
  font-size: 9px;
  line-height: 1.7;
}

.role-matrix {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.role-matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 46px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
}

.role-matrix-row strong {
  color: #fff;
  font-weight: 600;
}

.mini-lock {
  color: #f1c96f;
}

.matrix-scroll {
  margin-top: 14px;
  overflow-x: auto;
}

.matrix {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  text-align: left;
}

.matrix th {
  color: var(--muted);
  background: #fafbf8;
  border-top: 0;
  font-weight: 650;
}

.matrix td:not(:first-child),
.matrix th:not(:first-child) {
  text-align: center;
}

.matrix-yes {
  color: var(--green-2);
}

.matrix-no {
  color: #b9bfbb;
}

.settings-stack {
  display: grid;
  gap: 12px;
}

.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.setting-row:first-child {
  border-top: 0;
}

.setting-copy strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.setting-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.toggle {
  position: relative;
  width: 32px;
  height: 18px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #cfd5d0;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.toggle.on {
  background: var(--green-2);
}

.toggle.on::after {
  transform: translateX(14px);
}

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 29, 25, 0.48);
  backdrop-filter: blur(4px);
  animation: fade-in 140ms ease-out;
}

.modal {
  width: min(460px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(17, 28, 23, 0.24);
  animation: modal-in 180ms ease-out;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 680;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.modal-body {
  padding: 18px 20px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 20px;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.field textarea.field-control {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.check-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.check-option {
  position: relative;
}

.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-option span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 9px;
  cursor: pointer;
}

.check-option input:checked + span {
  color: var(--green);
  border-color: #b9cbbf;
  background: var(--green-soft);
  font-weight: 600;
}

.command-modal {
  align-self: start;
  width: min(590px, 100%);
  margin-top: min(12vh, 110px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(17, 28, 23, 0.24);
  animation: modal-in 180ms ease-out;
}

.command-input-wrap {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.command-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}

.command-input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 46px;
  color: var(--ink);
  border: 0;
  background: transparent;
  font-size: 13px;
  outline: 0;
}

.command-input::placeholder {
  color: var(--muted-2);
}

.command-esc {
  position: absolute;
  top: 16px;
  right: 14px;
  padding: 3px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 8px;
}

.command-results {
  max-height: 410px;
  overflow-y: auto;
  padding: 8px;
}

.command-group-label {
  padding: 9px 9px 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.command-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.command-result:hover {
  background: var(--surface-soft);
}

.command-result-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-2);
  border-radius: 6px;
  background: var(--green-soft);
}

.command-result-copy {
  min-width: 0;
  flex: 1;
}

.command-result-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-result-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.command-empty {
  padding: 42px 20px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.drawer-backdrop {
  align-items: stretch;
  justify-items: end;
  padding: 0;
}

.drawer {
  width: min(430px, 100%);
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(17, 28, 23, 0.16);
  animation: drawer-in 200ms ease-out;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.drawer-head strong {
  font-size: 13px;
}

.drawer-body {
  padding: 20px;
}

.drawer-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-product-image {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-muted);
}

.drawer-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-hero h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.drawer-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.drawer-metric {
  padding: 13px;
  background: var(--surface);
}

.drawer-metric span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.drawer-metric strong {
  display: block;
  margin-top: 6px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 17px;
}

.detail-list {
  display: grid;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.detail-row:first-child {
  border-top: 0;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  max-width: 65%;
  font-weight: 600;
  text-align: right;
}

.timeline {
  margin-top: 20px;
}

.timeline-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 650;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 16px;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-dot {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 1px var(--green-2);
}

.timeline-copy {
  font-size: 9px;
  line-height: 1.6;
}

.timeline-copy strong {
  display: block;
  color: var(--ink-soft);
  font-weight: 600;
}

.timeline-copy span {
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #26332e;
  box-shadow: 0 12px 40px rgba(20, 29, 25, 0.25);
  font-size: 10px;
  transform: translateX(-50%);
  animation: toast-in 180ms ease-out;
}

.mobile-scrim {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drawer-in {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 7px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1260px) {
  :root {
    --sidebar-width: 78px;
  }

  .sidebar {
    padding-inline: 10px;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .brand-word,
  .workspace-copy,
  .nav-label,
  .nav-item > span:not(.nav-count),
  .scope-status span,
  .scope-status strong {
    display: none;
  }

  .workspace-card {
    justify-content: center;
    padding: 7px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item.active::before {
    left: -10px;
  }

  .nav-count {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 7px;
  }

  .sidebar-foot {
    display: flex;
    justify-content: center;
    padding-inline: 0;
  }

  .scope-status {
    justify-content: center;
    padding: 4px;
  }

  .scope-status span,
  .scope-status strong {
    display: none;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.8fr);
  }

  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .insight-grid > :last-child {
    grid-column: span 2;
  }

  .activity-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .activity-row:nth-child(3)::before {
    display: none;
  }

  .permission-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-context {
    min-height: auto;
    padding: 30px 28px;
  }

  .auth-context-body {
    max-width: 720px;
    margin-top: 42px;
  }

  .auth-context-body h1 {
    font-size: 32px;
  }

  .auth-context-body p {
    max-width: 620px;
  }

  .auth-media,
  .auth-proof,
  .auth-security {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    padding: 36px 24px 48px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .goal-panel {
    min-height: auto;
  }

  .goal-list {
    grid-template-columns: 1fr 1fr;
  }

  .goal-foot {
    margin-top: 18px;
  }

  .command-trigger {
    width: 190px;
  }
}

@media (max-width: 820px) {
  .command-trigger {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .command-trigger span,
  .command-key {
    display: none;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-grid > :last-child {
    grid-column: auto;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .activity-row:nth-child(3)::before {
    display: block;
  }

  .summary-strip,
  .work-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-cell:nth-child(3) {
    border-left: 0;
  }

  .summary-cell:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .member-row {
    grid-template-columns: minmax(170px, 1fr) 100px 30px;
  }

  .member-row .scope-tags,
  .member-state {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }

  .app-shell {
    display: block;
  }

  .auth-context {
    padding: 22px 18px 25px;
  }

  .auth-context-body {
    margin-top: 28px;
  }

  .auth-context-body h1 {
    margin-top: 12px;
    font-size: 25px;
  }

  .auth-context-body p {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.65;
  }

  .auth-panel {
    padding: 24px 16px 36px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-card-head h2 {
    font-size: 22px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: 232px;
    padding: 18px 14px 16px;
    transform: translateX(-102%);
    transition: transform 200ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .brand {
    justify-content: flex-start;
    padding: 0 8px;
  }

  .brand-word,
  .workspace-copy,
  .nav-label,
  .nav-item > span:not(.nav-count) {
    display: block;
  }

  .workspace-card {
    justify-content: flex-start;
    padding: 10px;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0 10px;
  }

  .nav-item.active::before {
    left: -14px;
  }

  .nav-count {
    position: static;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 5px;
    font-size: 10px;
  }

  .sidebar-foot {
    display: block;
    padding: 14px 8px 2px;
  }

  .scope-status {
    justify-content: flex-start;
    padding: 4px 2px;
  }

  .scope-status span,
  .scope-status strong {
    display: block;
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(20, 29, 25, 0.32);
    backdrop-filter: blur(2px);
  }

  .icon-btn.mobile-menu-btn {
    display: inline-grid;
  }

  .topbar {
    padding: 0 16px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .account-copy,
  .account-trigger > svg {
    display: none;
  }

  .account-trigger {
    padding: 2px;
  }

  .account-menu {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .content {
    padding: 20px 16px 36px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 18px;
  }

  .page-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .page-actions .select-control {
    width: 100%;
    grid-column: 1 / -1;
  }

  .page-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .page-actions .select-control + .btn:last-child,
  .page-actions .btn:only-child {
    grid-column: 1 / -1;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .metric-card {
    min-height: 128px;
    padding: 13px;
  }

  .metric-value {
    font-size: 23px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

  .goal-list {
    grid-template-columns: 1fr;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .work-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .work-summary-card {
    min-height: 72px;
    padding: 11px;
  }

  .work-summary-icon {
    width: 33px;
    height: 33px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .member-role {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 12px 12px 0 0;
  }

  .command-backdrop {
    align-items: start;
    padding: 12px;
  }

  .command-modal {
    margin-top: 6vh;
  }

  .drawer {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 116px;
  }

  .summary-strip,
  .work-summary {
    grid-template-columns: 1fr;
  }

  .summary-cell + .summary-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .panel-head {
    padding-inline: 14px;
  }

  .panel-body {
    padding-inline: 14px;
  }

  .chart-summary strong {
    font-size: 22px;
  }

  .page-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Apple-inspired visual language */
.sidebar {
  border-right-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.workspace-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.workspace-icon {
  color: var(--blue);
  background: #eef5ff;
}

.nav-item {
  color: var(--ink-soft);
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
  color: var(--ink);
  background: #eef5ff;
}

.nav-item.active::before {
  display: none;
}

.nav-item.active svg {
  color: var(--blue);
}

.nav-count {
  color: #fff;
  background: #ff3b30;
}

.topbar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.78);
}

.command-trigger,
.icon-btn {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.command-trigger:hover,
.icon-btn:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: #fff;
}

.eyebrow {
  color: var(--muted);
}

.eyebrow::before {
  background: #a1a1a6;
}

.page-head h1 {
  font-weight: 650;
  letter-spacing: 0;
}

.btn {
  border-radius: 7px;
}

.btn-primary {
  color: #fff;
  border-color: #1d1d1f;
  background: #1d1d1f;
  box-shadow: none;
}

.btn-primary:hover {
  border-color: #333336;
  background: #333336;
}

.btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
}

.select-control,
.field-control {
  border-color: #d2d2d7;
  background-color: #fff;
}

.field-control:focus,
.select-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.metric-card {
  min-height: 134px;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.metric-card::after {
  display: none;
}

.metric-icon {
  background: #f5f5f7;
}

.metric-value {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 620;
}

.panel {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.panel-link {
  color: var(--blue);
}

.segment.active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab {
  color: var(--muted);
}

.tab.active {
  color: var(--ink);
}

.tab.active::after {
  background: var(--blue);
}

.chart-line {
  stroke: var(--blue);
}

.chart-dot {
  stroke: var(--blue);
}

.chart-line.compare {
  stroke: #b8b8bf;
}

.chart-grid-line {
  stroke: #e5e5ea;
}

.progress-fill {
  background: var(--blue);
}

.avatar {
  border-radius: 50%;
}

.data-table th {
  color: var(--muted);
  background: #fafafa;
  border-color: #e5e5ea;
}

.data-table td {
  border-bottom-color: #efeff1;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.task-card {
  border-color: #e1e1e5;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.kanban-column {
  border-color: #e1e1e5;
  background: #f5f5f7;
}

.permission-note {
  color: #f5f5f7;
  background: #1d1d1f;
}

.auth-page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 58%, #f1f1f3 100%);
}

.auth-nav {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(22px, 5vw, 64px);
}

.auth-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-lockup .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.auth-lockup strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
}

.auth-lockup span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.auth-stage {
  display: flex;
  width: min(500px, 100%);
  flex: 1;
  align-self: center;
  justify-content: center;
  flex-direction: column;
  padding: 44px 20px 56px;
}

.auth-stage-head {
  margin-bottom: 26px;
  text-align: center;
}

.auth-kicker {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.auth-stage-head h1 {
  margin: 11px 0 0;
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-stage-head p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-card {
  width: 100%;
  padding: 26px 28px 24px;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.07);
}

.auth-card .auth-tabs {
  margin-top: 0;
  border: 0;
  background: #f5f5f7;
}

.auth-card .auth-tabs button {
  min-height: 34px;
}

.auth-card .auth-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.auth-form {
  margin-top: 18px;
}

.auth-form .field {
  gap: 8px;
}

.auth-form .field label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 550;
}

.auth-form .field-control {
  min-height: 44px;
  border-radius: 7px;
  font-size: 12px;
}

.auth-submit {
  min-height: 44px;
  margin-top: 2px;
  font-size: 12px;
}

.auth-alert {
  margin-top: 14px;
}

.auth-help {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 10px;
}

.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 23px;
  color: var(--muted-2);
  font-size: 9px;
}

.auth-footer {
  padding: 20px;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 720px) {
  .auth-nav {
    min-height: 72px;
    padding: 16px 18px;
  }

  .auth-secure {
    font-size: 0;
  }

  .auth-secure svg {
    width: 15px;
    height: 15px;
  }

  .auth-stage {
    padding: 28px 16px 40px;
  }

  .auth-stage-head {
    margin-bottom: 21px;
  }

  .auth-stage-head h1 {
    font-size: 34px;
  }

  .auth-card {
    padding: 20px 18px;
  }

  .auth-card .form-row {
    grid-template-columns: 1fr;
  }
}
