:root {
  --bg: #e8f1fc;
  --bg-deep: #0a6ed1;
  --surface: #ffffff;
  --text: #0b1f3a;
  --muted: #5a7194;
  --border: #c9dbf0;
  --border-soft: #e2eef9;
  --brand: #0b5fff;
  --brand-deep: #0a6ed1;
  --accent: #1e8cff;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #f4f8fd;
}

/* Soft ambient hero backdrop behind every console/account page — fixed +
   behind everything, purely decorative, no layout impact. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #f4f8fd;
  background-image: url("../../assets/site/img/bg-hero.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  gap: 20px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 auto 14px;
}
.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.login-plans {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.login-plans-h {
  text-align: center;
  margin-bottom: 16px;
}
.login-plans-h h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}
.login-plans-h p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.login-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.login-plan-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 14px;
  background: #f8fbff;
}
.login-plan-card.plan-pro {
  background: #eef5ff;
  border-color: #c9dbf0;
}
.login-plan-card.plan-pro_plus {
  background: #e8f8ef;
  border-color: #c6e6d2;
}
.login-plan-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-deep);
  margin-bottom: 6px;
}
.login-plan-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.badge-plan-free { background: #eef2f7; color: #475569; }
.badge-plan-pro { background: #e8f3ff; color: var(--brand-deep); }
.badge-plan-pro_plus { background: var(--success-soft); color: var(--success); }
@media (max-width: 720px) {
  .login-plan-grid { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  margin-bottom: 14px;
}
textarea {
  resize: vertical;
}
.password-field {
  position: relative;
  margin-bottom: 14px;
}
.password-field input {
  margin-bottom: 0;
  padding-right: 68px;
}
.password-field [data-password-toggle] {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}
.password-field [data-password-toggle]:hover {
  text-decoration: underline;
}
input:focus, select:focus {
  outline: 2px solid rgba(11, 95, 255, 0.25);
  border-color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}
.btn-sm {
  width: auto;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
  padding: 12px;
}
.btn-ghost {
  background: var(--border-soft);
  color: var(--brand-deep);
}
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.btn-link {
  background: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}
.login-forgot {
  text-align: right;
  margin: -6px 0 14px;
  font-size: 0.85rem;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.resend-verification {
  text-align: center;
  margin-top: 4px;
}
.login-register-hint {
  text-align: center;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.flash {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-info { background: #e8f3ff; color: var(--brand-deep); }

/* Shell */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0b1f3a;
  color: #dbe7f7;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand strong { display: block; color: #fff; }
.brand small { color: #8fa3bf; }

/* Download-app interstitial */
.download-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.download-card .download-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: block;
}
.download-card .download-wordmark {
  max-width: 170px;
  height: auto;
  margin: 0 auto 22px;
  display: block;
}
.download-card h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--brand-deep);
}
.download-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.download-card .btn-block { margin-bottom: 14px; }
.nav-link {
  display: block;
  color: #c5d5ea;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { background: rgba(255,255,255,0.06); text-decoration: none; color: #fff; }
.nav-link.active { background: rgba(30, 140, 255, 0.22); color: #fff; }
.nav-link.logout { color: #fca5a5; }
.sidebar-foot { margin-top: auto; }
.operator-chip {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 8px;
}
.operator-chip span { display: block; color: #fff; font-weight: 600; font-size: 0.9rem; }
.operator-chip small { color: #8fa3bf; word-break: break-all; }

.main { padding: 20px 24px 40px; min-width: 0; width: 100%; }
.topbar h1 { margin: 0 0 16px; font-size: 1.45rem; }
.content { width: 100%; max-width: none; }

/* Mobile/tablet topbar — hidden on desktop, shown (with hamburger) below 900px */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #0b1f3a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}
.mobile-topbar-title {
  font-weight: 700;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.stat .value { font-size: 1.6rem; font-weight: 800; color: var(--brand-deep); margin-top: 4px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.panel-h h2 { margin: 0; font-size: 1.05rem; }
.panel-b { padding: 14px 16px; overflow-x: auto; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.toolbar .field { min-width: 160px; flex: 1; }
.toolbar label { margin-bottom: 4px; }
.toolbar input, .toolbar select { margin-bottom: 0; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th,
table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
table.data th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f7fbff;
}
table.data tr:hover td { background: #fafcff; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: #e8f3ff; color: var(--brand-deep); }

.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.dl dt { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.dl dd { margin: 0; }

.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-inline input, .form-inline select { margin: 0; width: auto; min-width: 140px; }

.form-grid {
  display: grid;
  grid-template-columns: 110px 1fr 110px 1fr;
  gap: 14px 16px;
  align-items: center;
  margin-bottom: 20px;
}
.form-grid > * {
  min-width: 0;
  overflow-wrap: break-word;
}
.form-grid code {
  word-break: break-all;
}
.form-grid label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid input[type="password"],
.form-grid input[type="url"],
.form-grid textarea,
.form-grid select {
  margin: 0;
  width: 100%;
}
.form-grid .password-field {
  margin: 0;
}
.form-grid .form-grid-span {
  grid-column: 2 / span 3;
}
.form-grid .form-grid-full {
  grid-column: 1 / -1;
}
.form-grid .form-grid-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-grid .form-grid-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .mobile-topbar { display: flex; }
  .sidebar-backdrop.open { display: block; opacity: 1; pointer-events: auto; }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    max-width: 82vw;
    z-index: 50;
    overflow-y: auto;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .grid-2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 110px 1fr; }
  .form-grid .form-grid-span { grid-column: 2 / span 1; }
}

@media (max-width: 480px) {
  .main { padding: 16px 12px 32px; }
  .panel-b { padding: 12px; }
}

/* —— Plan / module editors —— */
.main:has(.plan-page) .topbar h1,
.main:has(.module-page) .topbar h1 {
  display: none;
}
.plan-page,
.module-page {
  width: 100%;
  padding-bottom: 96px;
}
.plan-page-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.plan-page-back:hover {
  color: var(--brand);
  text-decoration: none;
}
.plan-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.plan-page-title {
  margin: 0 0 6px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.plan-page-sub {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.plan-code-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0b1f3a;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.plan-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan-card-modules {
  margin-bottom: 16px;
}
.plan-card-head {
  padding: 18px 20px 0;
}
.plan-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text);
}
.plan-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.plan-card-body {
  padding: 18px 20px 20px;
}
.plan-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.plan-field-grid-compact {
  grid-template-columns: 1fr;
  gap: 18px;
}
.plan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.plan-field-span {
  grid-column: 1 / -1;
}
.plan-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-field input[type="text"],
.plan-field input[type="number"],
.plan-field select,
.plan-field textarea {
  width: 100%;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.plan-field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
}
.plan-field input:focus,
.plan-field select:focus,
.plan-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}
.plan-field input[readonly] {
  background: #f3f7fc;
  color: var(--muted);
}
.plan-field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.plan-price-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.plan-price-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}
.plan-price-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f3f7fc;
  color: var(--muted);
  font-weight: 700;
  border-right: 1px solid var(--border-soft);
}
.plan-price-input input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.plan-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
  color: var(--text);
}
.plan-field.is-dimmed {
  opacity: 0.55;
}
.plan-switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #f8fbff;
  cursor: pointer;
}
.plan-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #c9dbf0;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.plan-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.2);
  transition: transform 0.15s ease;
}
.plan-switch input:checked + .plan-switch-ui {
  background: var(--brand);
}
.plan-switch input:checked + .plan-switch-ui::after {
  transform: translateX(18px);
}
.plan-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-switch-copy strong {
  font-size: 0.95rem;
}
.plan-switch-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.plan-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f8fbff;
}
.plan-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plan-module {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.plan-module.is-on {
  border-color: #9ec2f5;
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(11, 95, 255, 0.06);
}
.plan-module-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}
.plan-module-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-module-check-ui {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.plan-module-check-ui::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}
.plan-module-check:checked + .plan-module-check-ui {
  background: var(--brand);
  border-color: var(--brand);
}
.plan-module-check:checked + .plan-module-check-ui::after {
  transform: rotate(45deg) scale(1);
}
.plan-module-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.plan-module-text strong {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.25;
}
.plan-module-text small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #8fa3bf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-module-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.module-catalog-card {
  margin-top: 8px;
}
.module-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.module-catalog-table tr.is-editing {
  background: #e8f3ff;
}
.module-catalog-desc {
  max-width: 320px;
  line-height: 1.4;
}
.plan-module-quota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.plan-module-quota label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  flex: 1;
}
.plan-module-quota label span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.plan-module-quota input {
  width: 100%;
  max-width: 120px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.plan-module-quota em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.plan-page-footer {
  position: fixed;
  left: 240px;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(11, 31, 58, 0.06);
}
.plan-page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  padding: 14px 24px;
}
.plan-page-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-page-footer .btn {
  min-width: 110px;
  justify-content: center;
  text-align: center;
}
.plan-save-btn {
  min-width: 140px;
}
.plan-delete-form {
  display: none !important;
}
@media (max-width: 1100px) {
  .plan-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .plan-layout {
    grid-template-columns: 1fr;
  }
  .plan-page-footer {
    left: 0;
  }
}
@media (max-width: 720px) {
  .plan-field-grid {
    grid-template-columns: 1fr;
  }
  .plan-module-grid {
    grid-template-columns: 1fr;
  }
  .plan-page-header {
    flex-direction: column;
  }
  .plan-page-footer-inner {
    padding: 12px 16px;
  }
  .plan-page-footer .btn {
    min-width: 0;
  }
}
