:root {
  --blue: #286ff0;
  --blue-2: #1eb4e9;
  --blue-dark: #183665;
  --ink: #17233c;
  --muted: #66748d;
  --line: #e2eaf5;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --soft: #eef6ff;
  --green: #16b86f;
  --orange: #d9861c;
  --red: #e65d55;
  --violet: #6d6fe8;
  --admin: #b95a51;
  --shadow: 0 18px 45px rgba(31, 72, 125, 0.1);
  --shadow-soft: 0 10px 28px rgba(31, 72, 125, 0.07);
  --focus: 0 0 0 3px rgba(40, 111, 240, 0.14);
  --radius: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.home-page {
  min-height: 100vh;
  background: #fff;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(20, 54, 105, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
}

.brand img {
  width: 130px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #1b2c4d;
}

.section {
  padding: 86px 24px;
  background: linear-gradient(180deg, #fff, #eef6ff);
}

.section.white {
  background: #fff;
}

.section.soft {
  background: #f3f8ff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.capability-card {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border: 1px solid #ecf2fb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.capability-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  color: var(--blue);
  font-weight: 700;
  border-radius: 999px;
  background: #edf5ff;
}

.capability-card h3 {
  margin: 22px 0 14px;
  font-size: 22px;
}

.capability-card p {
  margin: 0;
  color: #64718a;
  line-height: 1.65;
}

.compact-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: none;
}

.compact-grid .capability-card {
  min-height: auto;
  padding: 18px;
}

.support-card {
  padding: 22px;
  border: 1px solid #e8effa;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  box-shadow: var(--shadow-soft);
}

.support-card h3 {
  margin: 16px 0 8px;
}

.support-card p {
  color: #63708a;
  line-height: 1.7;
}

.stack-list {
  display: grid;
  gap: 16px;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.stack-item p {
  margin: 0;
  color: #64718a;
  line-height: 1.55;
}

.outline-btn,
.primary-btn,
.ghost-btn,
.danger-btn,
.plain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 7px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4092ff);
  box-shadow: 0 10px 20px rgba(40, 111, 240, 0.2);
}

.outline-btn {
  color: var(--blue);
  background: #fff;
  border: 1px solid #b7d3ff;
}

.ghost-btn {
  color: #3a4964;
  background: #f1f5fb;
  border: 1px solid transparent;
}

.danger-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #f07052);
}

.plain-btn {
  color: var(--blue);
  background: transparent;
}

.primary-btn:hover,
.outline-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.outline-btn:hover {
  background: var(--soft);
  border-color: #8dbdff;
}

.ghost-btn:hover {
  color: var(--blue-dark);
  background: #eaf1fb;
}

.app-shell {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% -8%, rgba(40, 111, 240, 0.1), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px 14px 20px;
  color: #fff;
  background: linear-gradient(180deg, #137ed8 0%, #286ff0 58%, #225fcf 100%);
  border-radius: 0 20px 20px 0;
  box-shadow: 8px 0 32px rgba(32, 82, 154, 0.16);
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.admin-sidebar {
  background: linear-gradient(180deg, #243a64 0%, #255a99 48%, var(--admin) 100%);
}

.admin-sidebar .side-menu a.active {
  color: #ad453d;
}

.side-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 34px;
  color: var(--blue);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(6, 44, 105, 0.18);
}

.side-menu {
  display: grid;
  gap: 7px;
}

.side-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  font-size: 14px;
  color: #eef6ff;
  border: 1px solid transparent;
  border-radius: 6px;
}

.side-menu a.active {
  color: #1c64c8;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 56, 140, 0.16);
}

.side-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.side-menu a.active:hover {
  background: #fff;
}

.side-spacer {
  flex: 1;
}

.side-back {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-left: 12px;
  color: #eaf4ff;
  font-size: 13px;
  opacity: 0.9;
}

.workspace {
  min-width: 0;
  padding: 32px 38px 48px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(226, 234, 245, 0.95);
}

.crumb {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.page-subtitle {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
}

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

.metric-card,
.panel,
.data-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.metric-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  content: "";
  background: radial-gradient(circle, rgba(40, 111, 240, 0.12), transparent 68%);
  pointer-events: none;
}

.metric-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.1;
}

.metric-card small {
  color: var(--green);
}

.panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  min-height: 40px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 22px;
}

.admin-shell {
  grid-template-columns: 132px minmax(0, 1fr);
  background: #f6f8fb;
}

.admin-shell .sidebar {
  padding: 22px 12px 18px;
  background: linear-gradient(180deg, #23344d 0%, #2d4261 100%);
  border-radius: 0 14px 14px 0;
  box-shadow: 5px 0 22px rgba(22, 39, 64, 0.12);
}

.admin-shell .side-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(6, 44, 105, 0.14);
}

.admin-shell .side-menu {
  gap: 5px;
}

.admin-shell .side-menu a {
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: #dbe5f4;
  font-size: 13px;
}

.admin-shell .side-menu a svg {
  width: 16px;
  height: 16px;
}

.admin-shell .side-menu a.active {
  color: #1f5edc;
  box-shadow: none;
}

.admin-shell .side-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-shell .side-menu a.active:hover {
  background: #fff;
}

.admin-shell .side-back {
  min-height: 34px;
  padding-left: 10px;
  color: #dce6f3;
  font-size: 12px;
}

.admin-shell .workspace {
  min-width: 0;
  padding: 24px 28px 34px;
}

.admin-shell .workspace-head {
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-color: #e2e8f2;
}

.admin-shell .crumb {
  margin-bottom: 5px;
  color: #5b75a6;
  font-size: 12px;
}

.admin-shell .page-title {
  font-size: 24px;
  line-height: 1.2;
}

.admin-shell .page-subtitle {
  max-width: 720px;
  margin-top: 6px;
  font-size: 13px;
}

.admin-shell .dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-shell .metric-card,
.admin-shell .panel,
.admin-shell .data-card {
  border-color: #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-shell .metric-card {
  min-height: 96px;
  padding: 14px 16px 13px;
}

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

.admin-shell .metric-card span {
  color: #627089;
  font-size: 13px;
}

.admin-shell .metric-card span svg {
  width: 16px;
  height: 16px;
}

.admin-shell .metric-card strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.admin-shell .metric-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.admin-shell .panel {
  min-width: 0;
  padding: 16px;
}

.admin-shell .panel-title {
  min-height: 32px;
  margin-bottom: 12px;
  gap: 12px;
}

.admin-shell .panel-title h2,
.admin-shell .panel-title h3 {
  font-size: 16px;
}

.admin-shell .two-col {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
}

.admin-shell .two-col > *,
.admin-shell .dashboard-grid > * {
  min-width: 0;
}

.admin-shell .table-tools {
  gap: 10px;
  margin-bottom: 12px;
}

.admin-shell .search {
  min-width: 260px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
}

.admin-shell .data-table {
  border-radius: 7px;
  font-size: 13px;
}

.admin-shell .data-table th,
.admin-shell .data-table td {
  padding: 10px 12px;
  border-color: #edf1f6;
}

.admin-shell .data-table th {
  color: #586a84;
  font-size: 12px;
  background: #f7f9fc;
}

.admin-shell .data-table td {
  color: #25344f;
}

.admin-shell .data-table strong {
  font-size: 14px;
}

.admin-shell .data-table small {
  color: #718099;
}

.admin-shell .status {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-shell .tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-shell .actions {
  gap: 6px;
}

.admin-shell .outline-btn,
.admin-shell .primary-btn,
.admin-shell .ghost-btn,
.admin-shell .danger-btn,
.admin-shell .plain-btn {
  min-height: 32px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 6px;
  font-size: 13px;
}

.admin-shell .primary-btn {
  box-shadow: 0 6px 14px rgba(40, 111, 240, 0.16);
}

.admin-shell .ghost-btn {
  background: #f3f6fb;
}

.admin-shell .admin-todo-table .plain-btn {
  justify-content: flex-start;
  min-height: 28px;
  padding: 0;
}

.admin-shell .form-grid {
  gap: 12px;
}

.admin-shell .field {
  gap: 6px;
}

.admin-shell .field label {
  font-size: 13px;
}

.admin-shell .field input:not([type="checkbox"]):not([type="radio"]),
.admin-shell .field select,
.admin-shell .field textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.admin-shell .field textarea {
  min-height: 76px;
}

.admin-shell .switch-row,
.admin-shell .option-row {
  gap: 8px;
}

.admin-shell .switch-row label,
.admin-shell .option-row label {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.admin-shell .support-card {
  padding: 14px 16px;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 7px;
  box-shadow: none;
}

.admin-shell .support-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.admin-shell .support-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.login-page {
  background: #f6f8fb;
}

.login-page .top-nav {
  height: 56px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5ebf4;
  box-shadow: none;
}

.login-page .brand img {
  width: 116px;
}

.login-page .nav-action {
  font-size: 14px;
}

.login-stage {
  padding: 24px;
  background: #f6f8fb !important;
}

.login-panel {
  padding: 22px;
  border-color: #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 72, 125, 0.08);
}

.login-panel .panel-title {
  min-height: 32px;
  margin-bottom: 16px;
}

.login-panel .panel-title h2 {
  font-size: 20px;
}

.login-panel .form-grid {
  gap: 12px;
}

.login-panel .field input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 38px;
}

.login-actions .primary-btn,
.login-actions .outline-btn,
.login-actions .ghost-btn {
  min-height: 36px;
}

.user-shell {
  grid-template-columns: 136px minmax(0, 1fr);
  background: #f6f8fb;
}

.user-shell .sidebar {
  padding: 22px 12px 18px;
  background: linear-gradient(180deg, #157bd6 0%, #2567dc 100%);
  border-radius: 0 14px 14px 0;
  box-shadow: 5px 0 22px rgba(32, 82, 154, 0.12);
}

.user-shell .side-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(6, 44, 105, 0.14);
}

.user-shell .side-menu {
  gap: 5px;
}

.user-shell .side-menu a {
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: #eaf4ff;
  font-size: 13px;
}

.user-shell .side-menu a svg {
  width: 16px;
  height: 16px;
}

.user-shell .side-menu a.active {
  color: #1763d5;
  box-shadow: none;
}

.user-shell .side-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-shell .side-menu a.active:hover {
  background: #fff;
}

.user-shell .side-back {
  min-height: 34px;
  padding-left: 10px;
  font-size: 12px;
}

.user-shell .workspace {
  min-width: 0;
  padding: 24px 28px 34px;
}

.user-shell .workspace-head {
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-color: #e2e8f2;
}

.user-shell .crumb {
  margin-bottom: 5px;
  color: #4f72b6;
  font-size: 12px;
}

.user-shell .page-title {
  font-size: 24px;
  line-height: 1.2;
}

.user-shell .page-subtitle {
  max-width: 720px;
  margin-top: 6px;
  font-size: 13px;
}

.user-shell .dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.user-shell .metric-card,
.user-shell .panel,
.user-shell .data-card {
  border-color: #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-shell .metric-card {
  min-height: 96px;
  padding: 14px 16px 13px;
}

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

.user-shell .metric-card span {
  color: #627089;
  font-size: 13px;
}

.user-shell .metric-card span svg {
  width: 16px;
  height: 16px;
}

.user-shell .metric-card strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.user-shell .metric-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.user-shell .panel {
  min-width: 0;
  padding: 16px;
}

.user-shell .panel-title {
  min-height: 32px;
  margin-bottom: 12px;
  gap: 12px;
}

.user-shell .panel-title h2,
.user-shell .panel-title h3 {
  font-size: 16px;
}

.user-shell .two-col {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
}

.user-shell .two-col > *,
.user-shell .dashboard-grid > *,
.user-shell .function-layout > *,
.user-shell .form-layout > * {
  min-width: 0;
}

.user-shell .table-tools {
  gap: 10px;
  margin-bottom: 12px;
}

.user-shell .search {
  min-width: 260px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .data-table {
  border-radius: 7px;
  font-size: 13px;
}

.user-shell .data-table th,
.user-shell .data-table td {
  padding: 10px 12px;
  border-color: #edf1f6;
}

.user-shell .data-table th {
  color: #586a84;
  font-size: 12px;
  background: #f7f9fc;
}

.user-shell .data-table td {
  color: #25344f;
}

.user-shell .data-table strong {
  font-size: 14px;
}

.user-shell .data-table small {
  color: #718099;
}

.user-shell .status {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.user-shell .tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.user-shell .actions {
  gap: 6px;
}

.user-shell .outline-btn,
.user-shell .primary-btn,
.user-shell .ghost-btn,
.user-shell .danger-btn,
.user-shell .plain-btn {
  min-height: 32px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .primary-btn {
  box-shadow: 0 6px 14px rgba(40, 111, 240, 0.16);
}

.user-shell .ghost-btn {
  background: #f3f6fb;
}

.user-shell .icon-btn {
  width: 30px;
  height: 30px;
}

.user-shell .chart {
  height: 150px;
  padding-top: 14px;
}

.user-shell .stack-list {
  gap: 10px;
}

.user-shell .stack-item {
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
}

.user-shell .stack-item strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.user-shell .stack-item p {
  font-size: 12px;
  line-height: 1.45;
}

.user-shell .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.user-shell .function-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.user-shell .function-section {
  margin-bottom: 16px;
}

.user-shell .function-section h3 {
  margin-bottom: 9px;
  color: #53627a;
  font-size: 13px;
  font-weight: 700;
}

.user-shell .choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}

.user-shell .choice-card,
.user-shell .small-choice {
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border-radius: 7px;
}

.user-shell .choice-card.active,
.user-shell .small-choice.active {
  background: #f2f7ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.user-shell .choice-card p {
  font-size: 12px;
  line-height: 1.42;
}

.user-shell .small-choice {
  min-height: 38px;
}

.user-shell .intro-box {
  min-height: 0;
  padding: 13px 14px;
  border-radius: 7px;
  line-height: 1.55;
}

.user-shell .function-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.user-shell .help-panel {
  top: 24px;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-shell .help-banner {
  height: auto;
  min-height: 82px;
  padding: 14px;
  border-radius: 7px;
}

.user-shell .help-card {
  padding: 12px;
  margin-top: 10px;
  border-radius: 7px;
}

.user-shell .form-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.user-shell .form-grid {
  gap: 12px;
}

.user-shell .field {
  gap: 6px;
}

.user-shell .field label {
  font-size: 13px;
}

.user-shell .field input:not([type="checkbox"]):not([type="radio"]),
.user-shell .field select,
.user-shell .field textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .field textarea {
  min-height: 72px;
}

.user-shell .switch-row,
.user-shell .option-row {
  gap: 8px;
}

.user-shell .switch-row label,
.user-shell .option-row label {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.user-shell .upload-drop {
  min-height: 90px;
  padding: 14px;
  border-radius: 7px;
}

.user-shell .upload-drop .icon {
  width: 24px;
  height: 24px;
}

.user-shell .preview-phone {
  width: 200px;
  min-height: 380px;
  padding: 12px;
  border-width: 8px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(29, 49, 93, 0.1);
}

.user-shell .phone-page {
  min-height: 340px;
  padding: 16px 12px;
}

.user-shell .qr-box {
  width: 126px;
  height: 126px;
  margin-bottom: 12px;
  box-shadow: none;
}

.user-shell .log-list {
  gap: 9px;
}

.user-shell .log-item {
  padding: 10px 12px;
}

.user-shell .setting-tabs {
  gap: 8px;
  margin-bottom: 12px;
}

.user-shell .setting-tabs button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .setting-tabs button.active {
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(40, 111, 240, 0.16);
}

.user-shell .capability-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: none;
}

.user-shell .capability-card {
  min-height: auto;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-shell .capability-card .badge {
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.user-shell .capability-card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.user-shell .capability-card p {
  font-size: 13px;
  line-height: 1.5;
}

.user-shell .support-card {
  padding: 14px;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 7px;
  box-shadow: none;
}

.user-shell .support-card h3 {
  margin: 10px 0 5px;
  font-size: 16px;
}

.user-shell .support-card p {
  font-size: 13px;
  line-height: 1.55;
}

.function-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}

.function-section {
  margin-bottom: 24px;
}

.function-section h3 {
  margin: 0 0 14px;
  color: #64718a;
  font-size: 15px;
  font-weight: 500;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 16px;
}

.choice-card,
.small-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  color: #5f6d84;
  background: var(--panel-soft);
  border: 1px solid #e5edf8;
  border-radius: var(--radius);
}

.choice-card.active,
.small-choice.active {
  color: var(--blue);
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  border-color: #aecaef;
  box-shadow: inset 3px 0 0 var(--blue);
}

.choice-card:hover,
.small-choice:hover {
  border-color: #bed8ff;
  background: #f6faff;
}

.choice-card strong,
.small-choice strong {
  display: block;
  margin-bottom: 6px;
  color: inherit;
}

.choice-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.small-choice {
  min-height: 50px;
  align-items: center;
  padding: 12px 16px;
}

.intro-box {
  min-height: 92px;
  padding: 18px;
  color: #43516d;
  line-height: 1.7;
  background: var(--panel-soft);
  border: 1px solid #e7eef8;
  border-radius: var(--radius);
}

.function-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.45fr);
  gap: 20px;
  margin-top: 80px;
}

.help-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.help-card {
  padding: 14px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid #e7eef8;
}

.help-card.red {
  color: #ff3654;
  background: #fff4f4;
}

.help-banner {
  height: 120px;
  padding: 20px;
  color: #1263de;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e3f1ff, #f8fbff);
  border: 1px solid #d8e8fb;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #42516a;
  font-weight: 700;
  font-size: 14px;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 7px;
  outline: none;
}

.field input[type="file"] {
  font: inherit;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: #86b9ff;
  box-shadow: var(--focus);
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.switch-row,
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.switch-row label,
.option-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  color: #43516d;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.image-upload {
  display: grid;
  gap: 14px;
}

.upload-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  color: #40516d;
  background: var(--panel-soft);
  border: 1px dashed #aecaef;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
}

.upload-drop:hover {
  color: var(--blue);
  background: #f6faff;
  border-color: #86b9ff;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  pointer-events: none;
}

.field .upload-drop input[type="file"] {
  width: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}

.upload-drop .icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.upload-drop strong,
.upload-drop small {
  display: block;
}

.upload-drop small {
  margin-top: 6px;
  color: var(--muted);
}

.cover-preview {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  align-items: center;
  gap: 14px;
}

.cover-preview img {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-phone {
  width: 230px;
  min-height: 440px;
  margin: 0 auto;
  padding: 16px;
  background: linear-gradient(180deg, #f9fbff, #eef4fb);
  border: 10px solid #1d315d;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(29, 49, 93, 0.14);
}

.phone-page {
  min-height: 390px;
  padding: 18px 14px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.phone-page h4 {
  margin: 0 0 8px;
}

.phone-page p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #75829a;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  padding: 8px;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(31, 72, 125, 0.06);
}

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

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 7px;
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid #eef2f8;
}

.data-table th {
  color: #607089;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #f8fbff, #f2f6fc);
}

.data-table td {
  color: #33425f;
  vertical-align: middle;
}

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

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
}

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

.status.on {
  color: #0f9c5a;
  background: #e8fbf1;
}

.status.off {
  color: #d95c32;
  background: #fff1e8;
}

.status.warn {
  color: #bd760f;
  background: #fff7dc;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #346ed0;
  background: var(--soft);
  border: 1px solid #dbeaff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #48607e;
  background: #f1f5fb;
  border: 1px solid transparent;
  border-radius: 6px;
}

.icon-btn:hover {
  color: var(--blue);
  background: var(--soft);
  border-color: #d8e8ff;
}

.icon-btn.danger-icon {
  color: #a0524d;
}

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

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 190px;
  padding: 20px 12px 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #4a90ff, #36c6ed);
}

.bar.alt {
  background: linear-gradient(180deg, #25c985, #9be86e);
}

.log-list {
  display: grid;
  gap: 12px;
}

.log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--panel-soft);
  border: 1px solid #edf2fb;
  border-radius: 6px;
}

.setting-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.setting-tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: #53627a;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.setting-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4092ff);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(40, 111, 240, 0.18);
}

.ops-tabs {
  margin-top: -4px;
}

.audit-list .log-item {
  align-items: flex-start;
}

.audit-list small {
  color: #73809a;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 31, 58, 0.42);
}

.modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(9, 31, 72, 0.25);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 24px;
}

.result-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
}

.copy-line {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.copy-line input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #dfe7f3;
  border-radius: 7px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  transform: translateY(20px);
  padding: 12px 16px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  background: #162b52;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.empty {
  padding: 40px;
  text-align: center;
  color: #7b879c;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .top-nav {
    padding: 0 22px;
  }

  .app-shell {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .user-shell {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .workspace {
    padding: 28px 24px 40px;
  }

  .user-shell .workspace {
    padding: 22px 22px 34px;
  }

  .user-shell .two-col,
  .user-shell .function-layout,
  .user-shell .form-layout {
    grid-template-columns: 1fr;
  }

  .user-shell .help-panel {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .admin-shell .workspace {
    padding: 22px 22px 34px;
  }

  .admin-shell .two-col {
    grid-template-columns: 1fr;
  }

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

  .function-layout,
  .form-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .help-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .top-nav {
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-action {
    margin-left: auto;
  }

  .function-actions,
  .copy-line {
    flex-direction: column;
    display: flex;
  }

  .capability-grid,
  .dashboard-grid,
  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .user-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    padding: 12px 12px 10px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 28px rgba(32, 82, 154, 0.14);
  }

  .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-shell .sidebar {
    position: static;
    min-height: auto;
    padding: 12px 12px 10px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 24px rgba(32, 82, 154, 0.12);
  }

  .user-shell .sidebar {
    position: static;
    min-height: auto;
    padding: 12px 12px 10px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 24px rgba(32, 82, 154, 0.12);
  }

  .user-shell .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-shell .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .side-menu a {
    flex: 0 0 46px;
    justify-content: center;
    min-height: 42px;
    padding: 8px;
    font-size: 12px;
  }

  .admin-shell .side-menu a {
    flex: 0 0 42px;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
  }

  .user-shell .side-menu a {
    flex: 0 0 42px;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
  }

  .side-menu::-webkit-scrollbar {
    display: none;
  }

  .user-shell .side-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-shell .side-menu::-webkit-scrollbar {
    display: none;
  }

  .side-menu span,
  .side-back,
  .side-logo,
  .side-spacer {
    display: none;
  }

  .admin-shell .side-menu span,
  .admin-shell .side-back,
  .admin-shell .side-logo,
  .admin-shell .side-spacer {
    display: none;
  }

  .user-shell .side-menu span,
  .user-shell .side-back,
  .user-shell .side-logo,
  .user-shell .side-spacer {
    display: none;
  }

  .workspace {
    padding: 20px 14px 34px;
  }

  .user-shell .workspace {
    padding: 18px 12px 30px;
  }

  .admin-shell .workspace {
    padding: 18px 12px 30px;
  }

  .workspace-head {
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .panel,
  .metric-card {
    padding: 18px;
  }

  .admin-shell .panel,
  .admin-shell .metric-card {
    padding: 14px;
  }

  .user-shell .panel,
  .user-shell .metric-card {
    padding: 14px;
  }

  .user-shell .function-actions {
    grid-template-columns: 1fr;
  }

  .user-shell .cover-preview {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
