:root {
  color-scheme: dark;
  --bg: #06101a;
  --panel: rgba(10, 18, 28, 0.92);
  --panel-border: rgba(141, 179, 212, 0.16);
  --text: #eaf3ff;
  --muted: rgba(234, 243, 255, 0.68);
  --accent: #72c7ff;
  --accent-strong: #4da8ff;
  --danger: #ff8fa3;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(114, 199, 255, 0.16), transparent 34%),
    radial-gradient(circle at 80% 15%, rgba(109, 234, 185, 0.12), transparent 24%),
    linear-gradient(180deg, #06101a 0%, #071421 100%);
}

body { min-height: 100vh; }

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 70% 25%, rgba(255,255,255,0.06), transparent 22%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: auto;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(8, 15, 24, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(180deg, #8ec7ff, #5f96ff);
  box-shadow: 0 16px 30px rgba(95, 150, 255, 0.34);
}

.login-brand .brand-mark {
  flex: 0 0 auto;
}

.login-brand .eyebrow {
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.lead {
  margin: 14px 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.panel {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.form-message {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 143, 163, 0.28);
  background: rgba(255, 143, 163, 0.08);
  color: #ffc7d1;
  font-size: 13px;
  line-height: 1.55;
}

.form-message-info {
  border-color: rgba(114, 199, 255, 0.28);
  background: rgba(114, 199, 255, 0.08);
  color: #b9e3ff;
}

.panel label {
  display: grid;
  gap: 8px;
}

.panel span {
  font-size: 13px;
  color: var(--muted);
}

.panel input,
.panel select {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(141, 179, 212, 0.22);
  background: rgba(4, 10, 17, 0.86);
  color: var(--text);
  caret-color: var(--accent);
  outline: none;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

.panel input:focus,
.panel select:focus {
  border-color: rgba(114, 199, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(114, 199, 255, 0.08);
}

select option {
  color: #06101c;
  background: #f8fbff;
}

select option:checked {
  color: #06101c;
  background: #8dd7ff;
}

select option:disabled {
  color: #667085;
  background: #eef3f8;
}

.switch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quick-login-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(141, 179, 212, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.quick-login-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  color: #05111e;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.hidden { display: none; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .login-card { padding: 28px; }
  h1 { font-size: 28px; }
  .footer { flex-direction: column; }
}

/* 2026-05 unified product polish. */
:root {
  --bg: #050914;
  --panel: rgba(12, 20, 34, 0.9);
  --panel-border: rgba(154, 169, 189, 0.16);
  --text: #f2f7ff;
  --muted: #9aa9bd;
  --accent: #8dd7ff;
  --accent-strong: #3f8cff;
  --gold: #f6c96f;
}

html,
body {
  font-family:
    "HarmonyOS Sans SC",
    "MiSans",
    "PingFang SC",
    "Microsoft YaHei UI",
    "Noto Sans SC",
    sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(141, 215, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(246, 201, 111, 0.13), transparent 28rem),
    linear-gradient(180deg, #050914 0%, #08111d 100%);
}

.login-bg {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 76%);
}

.login-shell {
  padding: clamp(18px, 3vw, 48px);
}

.login-card {
  width: min(620px, 100%);
  padding: clamp(30px, 4vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(246, 201, 111, 0.12), transparent 20rem),
    linear-gradient(145deg, rgba(14, 25, 43, 0.96), rgba(7, 13, 24, 0.98));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(145deg, #f6c96f, #8dd7ff 58%, #3f8cff);
  box-shadow: 0 16px 36px rgba(63, 140, 255, 0.28);
}

h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.panel {
  border-color: rgba(154, 169, 189, 0.14);
  background: rgba(3, 8, 16, 0.42);
}

.panel input,
.panel select {
  border-radius: 14px;
  border-color: rgba(154, 169, 189, 0.18);
  background: rgba(3, 8, 16, 0.72);
}

.btn {
  min-height: 46px;
  border-radius: 14px;
  color: #f2f7ff;
}

.btn-primary {
  color: #06101c;
  background: linear-gradient(135deg, #ffe09a, var(--accent) 62%, var(--accent-strong));
  box-shadow: 0 14px 30px rgba(63, 140, 255, 0.22);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

/* ZBD UI polish build: 20260905 */
/* Lucide 0.468.0
ISC License

Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

*/
/* Shared visual refinements, intentionally isolated from membership behavior. */
.auth-page, .catalog-page, .console-page {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
:is(.auth-page, .catalog-page, .console-page) :is(h1, h2, h3, p, small, span, strong, button, input, select, textarea) {
  letter-spacing: 0;
}
:is(.auth-page, .catalog-page, .console-page) :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid #168078;
  outline-offset: 3px;
}
.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.icon-search { --icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22m21%2021-4.3-4.3%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-refresh { --icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M3%2012a9%209%200%200%201%209-9%209.75%209.75%200%200%201%206.74%202.74L21%208%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M21%203v5h-5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M21%2012a9%209%200%200%201-9%209%209.75%209.75%200%200%201-6.74-2.74L3%2016%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2016H3v5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-logout { --icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4%22%20%2F%3E%0A%20%20%3Cpolyline%20points%3D%2216%2017%2021%2012%2016%207%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20x2%3D%229%22%20y1%3D%2212%22%20y2%3D%2212%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }

/* Login stays usable even when the initial status request is unavailable. */
.auth-page {
  color-scheme: light;
  --text: #202724;
  --muted: #65716c;
  --accent: #176f62;
  --accent-strong: #12584e;
  background: #f4f6f5;
}
.auth-page .login-bg { display: none; }
.auth-page .login-shell { padding: 32px 20px; }
.auth-page .login-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 32px #20272408;
  backdrop-filter: none;
}
.auth-page .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}
.auth-page .eyebrow { font-size: 10px; margin-bottom: 6px; }
.auth-page h1 { font-size: 22px; line-height: 1.45; }
.auth-page .lead { font-size: 14px; margin: 24px 0; }
.auth-page .panel {
  padding: 0;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.auth-page .panel h2 { font-size: 17px; font-weight: 600; }
.auth-page .panel :is(input, select) {
  min-height: 46px;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #ccd6d0;
  border-radius: 6px;
  background: #fff;
}
.auth-page .panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #176f6212; }
.auth-page .btn {
  border-radius: 6px;
  background: #176f62;
  color: #fff;
  box-shadow: none;
}
.auth-page .btn:hover:not(:disabled) { background: #12584e; }
.auth-page .form-message { border-radius: 6px; color: #a32d32; background: #fff4f3; border-color: #f0ccce; }
.auth-page .form-message-info { color: #176f62; background: #f0f8f5; border-color: #c6e2d6; }
.auth-page .footer { flex-wrap: wrap; gap: 12px; margin-top: 28px; line-height: 1.6; }
.auth-page #statusHint { flex-basis: 100%; font-size: 12px; }

/* Keep the gold catalog identity while allowing the content to determine width. */
.catalog-page {
  --paper: #f6f7f7;
  --ink: #222822;
  --muted: #686f67;
  --catalog-line: #e1e4df;
  --catalog-panel: #fff;
  --catalog-panel-strong: #fff;
  background: #f6f7f7;
}
.catalog-page::before, .catalog-page::after { display: none; }
.catalog-page .catalog-topbar {
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #e1e4df;
  box-shadow: none;
  backdrop-filter: none;
}
.catalog-page .catalog-shell { width: min(1760px, 100%); padding: 24px; }
.catalog-page .catalog-hero {
  display: block;
  min-height: 0;
  padding: 26px 28px;
  border: 0;
  border-left: 4px solid #c9a34c;
  border-radius: 0;
  background: #222720;
  box-shadow: none;
}
.catalog-page .catalog-hero::before, .catalog-page .catalog-hero::after { display: none; }
.catalog-page .catalog-hero h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #f7e8bc;
}
.catalog-page .catalog-hero p { font-size: 14px; line-height: 1.7; max-width: 960px; }
.catalog-page .mode-switch { margin-top: 16px; gap: 8px; }
.catalog-page .catalog-mode-bar { margin: 16px 0 0; }
.catalog-page .catalog-content-grid {
  grid-template-columns: 204px minmax(0, 1fr) 232px;
  gap: 20px;
}
.catalog-page :is(.catalog-sidebar, .catalog-contact-panel) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  top: 88px;
}
.catalog-page :is(.status-panel, .catalog-editor, .package-summary, .group-section) { backdrop-filter: none; }
.catalog-page .status-panel {
  padding: 12px 16px 12px 40px;
  border: 0;
  border-radius: 0;
  background: #edf2ed;
  box-shadow: none;
  font-weight: 400;
}
.catalog-page .package-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #e8dfc7;
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: none;
}
.catalog-page .package-summary::before { display: none; }
.catalog-page .package-summary .section-kicker { display: none; }
.catalog-page .package-summary-copy strong { font-size: 15px; margin: 0; }
.catalog-page .package-summary-note { justify-self: start; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.catalog-page .package-summary-tags .tag { min-height: 30px; padding: 6px 10px; border-radius: 4px; box-shadow: none; }
.catalog-page .brand-seal { box-shadow: none; }
.catalog-page .catalog-main-column { container-type: inline-size; container-name: catalog-list; }
.catalog-page .catalog-main-toolbar {
  position: static;
  grid-template-columns: minmax(160px, 1fr) 112px 104px auto;
  gap: 8px;
  padding: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.catalog-page :is(input, select, textarea) { min-width: 0; border-radius: 6px; background: #fff; }
.catalog-page .catalog-main-toolbar :is(input, select) { padding: 10px; height: 42px; }
.catalog-page .btn { border-radius: 6px; box-shadow: none; }
.catalog-page .btn.join-action { color: #332a17; background: #dfc27b; border-color: #c5a452; text-shadow: none; }
.catalog-page .btn.join-action:hover:not(:disabled) { background: #d6b568; transform: none; }
.catalog-page .btn.join-action.join-free { color: #fff; background: #28705a; border-color: #28705a; }
.catalog-page .btn.join-action.join-free:hover:not(:disabled) { background: #205d4b; }
.catalog-page .btn.join-action.join-disabled, .catalog-page .btn.join-action:disabled { color: #747b72; background: #e9ece6; border-color: #d7dcd2; text-shadow: none; }
.catalog-page .badge.emperor, .catalog-page .tag.tag-emperor { color: #79591c; background: #f4e6bb; box-shadow: none; text-shadow: none; }
.catalog-page .category-nav-item { border-color: transparent; border-radius: 6px; background: transparent; font-weight: 500; }
.catalog-page .category-nav-item.is-active { border-color: #d8bd7c; background: #f7efd9; }
.catalog-page .category-nav-icon { border-radius: 6px; }
.catalog-page .group-grid { margin-top: 0; gap: 20px; }
.catalog-page .group-section {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.catalog-page .group-section-head { min-height: 56px; padding: 12px 16px; background: #eef1ed; border-bottom: 1px solid #e1e4df; }
.catalog-page .group-section-head h2 { font-size: 18px; line-height: 1.45; margin: 0; }
.catalog-page .group-section-head .section-kicker { display: none; }
.catalog-page .catalog-table-head {
  grid-template-columns: minmax(0, 1fr) 106px 108px 120px;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 16px;
}
.catalog-page:not(.is-editing) .teacher-row {
  grid-template-columns: 36px minmax(180px, 1fr) 106px 108px 120px;
  gap: 12px 14px;
  min-height: 104px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  transition: background-color 120ms ease;
}
.catalog-page:not(.is-editing) .teacher-row:hover { transform: none; background: #f8faf8; box-shadow: none; }
.catalog-page:not(.is-editing) .teacher-row::before,
.catalog-page:not(.is-editing) .teacher-row::after { display: none; }
.catalog-page .teacher-orb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eaf1ed;
  color: #326454;
  box-shadow: none;
}
.catalog-page .teacher-orb.is-gold { background: #f7efd9; color: #87651e; }
.catalog-page .teacher-kicker { display: none; }
.catalog-page:not(.is-editing) .teacher-title-line h3 { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.catalog-page .teacher-title-line { flex-wrap: wrap; gap: 6px; }
.catalog-page .teacher-desc { font-size: 13px; line-height: 1.65; }
.catalog-page .teacher-row.is-emperor :is(.teacher-title-line h3, .teacher-desc, .price) { color: var(--ink); }
.catalog-page .teacher-row.is-emperor .desc-toggle { color: #88651c; }
.catalog-page .teacher-row.is-emperor .group-expire { color: #656e64; }
.catalog-page .teacher-row.is-emperor .meta-label { color: #72786d; }
.catalog-page .teacher-row.is-emperor .message-status { color: #676b63; border-color: #d8ded5; background: #f0f3ee; }
.catalog-page .teacher-row.is-emperor .message-status.active { color: #226f56; border-color: #b5dbca; background: #ebf5ef; }
.catalog-page .price { font-size: 14px; overflow-wrap: anywhere; }
.catalog-page:not(.is-editing) .group-actions .btn { min-width: 0; width: 100%; padding: 10px 8px; white-space: normal; }
.catalog-page :is(.contact-card-body, .usage-card) { border-radius: 6px; box-shadow: none; background: #fff; }
.catalog-page .contact-card-body p { overflow-wrap: anywhere; }
.catalog-page.is-editing .catalog-content-grid { grid-template-columns: minmax(0, 1fr); }
.catalog-page.is-editing .catalog-hero { min-height: 0; padding: 20px 24px; border-radius: 0; background: #222720; box-shadow: none; }
.catalog-page.is-editing .catalog-hero h1 { font-size: 24px; color: #f7e8bc; }
.catalog-page.is-editing .catalog-hero p { color: #d2d8cc; }
.catalog-page.is-editing .catalog-editor { border-radius: 6px; background: #fff; box-shadow: none; }
.catalog-page.is-editing .catalog-main-toolbar { background: transparent; border: 0; border-radius: 0; padding: 0 0 14px; }
.catalog-page.is-editing .group-section { border-radius: 0; box-shadow: none; }
.catalog-page.is-editing .teacher-row { grid-template-columns: 40px minmax(160px, .7fr) minmax(220px, 1.5fr) minmax(150px, .6fr); border-radius: 0; }
.catalog-page.is-editing .teacher-row:not(.is-dragging):not(.is-drag-armed):not(.drag-over) { background: #fff; }
.catalog-page.is-editing .teacher-row :is(input, textarea) { border-radius: 6px; }

@media (max-width: 1480px) {
  .catalog-page .catalog-content-grid { grid-template-columns: 192px minmax(0, 1fr); grid-template-rows: min-content 1fr; }
  .catalog-page .catalog-sidebar { grid-column: 1; grid-row: 1; position: static; }
  .catalog-page .catalog-main-column { grid-column: 2; grid-row: 1 / 3; }
  .catalog-page .catalog-contact-panel { grid-column: 1; grid-row: 2; position: static; }
  .catalog-page.is-editing .catalog-main-column { grid-column: 1; grid-row: auto; }
}
@container catalog-list (max-width: 740px) {
  .catalog-page .catalog-main-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog-page .catalog-main-toolbar input { grid-column: 1 / -1; }
  .catalog-page .catalog-table-head { display: none; }
  .catalog-page:not(.is-editing) .teacher-row { grid-template-columns: 36px minmax(0, 1fr) 120px; }
  .catalog-page:not(.is-editing) .teacher-main { grid-column: 2; grid-row: 1; }
  .catalog-page:not(.is-editing) .teacher-meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; }
  .catalog-page:not(.is-editing) .teacher-status { grid-column: 2; grid-row: 3; }
  .catalog-page:not(.is-editing) .group-actions { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .catalog-page.is-editing .teacher-row { grid-template-columns: 36px minmax(0, 1fr); }
  .catalog-page.is-editing .teacher-edit-fields label:first-child { grid-column: 2; grid-row: 2; }
  .catalog-page.is-editing .teacher-edit-fields label:last-child { grid-column: 2; grid-row: 3; }
}
@media (max-width: 920px) {
  .catalog-page .catalog-content-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog-page .catalog-sidebar { position: static; }
  .catalog-page .catalog-content-grid { grid-template-rows: auto; }
  .catalog-page :is(.catalog-sidebar, .catalog-main-column, .catalog-contact-panel) { grid-column: 1; grid-row: auto; }
  .catalog-page .catalog-contact-panel { grid-template-columns: 1fr; }
  .catalog-page .category-rail { display: flex; overflow-x: auto; gap: 6px; }
  .catalog-page .category-nav-item { flex: 0 0 auto; width: auto; max-width: 220px; }
}
@media (max-width: 520px) {
  .auth-page .login-card { padding: 26px 22px; }
  .auth-page h1 { font-size: 20px; }
  .catalog-page .catalog-topbar { padding: 12px 16px; }
  .catalog-page .catalog-topbar { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
  .catalog-page .catalog-brand { flex: 1; min-width: 0; }
  .catalog-page .catalog-brand strong { font-size: 16px; }
  .catalog-page .catalog-brand small { font-size: 10px; }
  .catalog-page .topbar-tools { display: flex; width: auto; flex: 0 0 auto; }
  .catalog-page .top-search { display: none; }
  .catalog-page .account-chip { width: auto; padding: 8px 12px; min-height: 36px; border-radius: 6px; }
  .catalog-page .package-summary-copy p, .catalog-page .package-summary-note { display: none; }
  .catalog-page .catalog-shell { padding: 16px 12px; }
  .catalog-page .catalog-hero, .catalog-page.is-editing .catalog-hero { padding: 20px; border-radius: 0; }
  .catalog-page .catalog-hero h1 { font-size: 26px; }
  .catalog-page :is(input, select, textarea) { font-size: 16px; }
  .catalog-page:not(.is-editing) .teacher-row { grid-template-columns: 32px minmax(0, 1fr); padding: 14px 12px; gap: 8px 10px; }
  .catalog-page:not(.is-editing) .group-actions { grid-column: 2; grid-row: 4; }
  .catalog-page .teacher-orb { width: 32px; height: 32px; }
}

/* Compact, neutral console shell; legacy business-specific views retain their rules. */
.console-page {
  color-scheme: dark;
  --bg: #181b1a;
  --surface: #222624;
  --surface-strong: #292e2b;
  --line: #ffffff17;
  --line-strong: #a5c8bc55;
  --text: #edf1ee;
  --muted: #abb5af;
  --gold: #dfc37c;
  --blue: #90c9ba;
  --radius: 8px;
  --radius-sm: 6px;
  background: #181b1a;
}
.console-page .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.console-page .side { padding: 18px 12px; background: #1d211f; backdrop-filter: none; }
.console-page .brand { padding: 6px 8px 22px; }
.console-page .brand-mark { width: 36px; height: 36px; border-radius: 8px; background: #dec688; box-shadow: none; }
.console-page .brand strong { font-size: 15px; }
.console-page .side-nav { gap: 4px; }
.console-page .side-nav button { padding: 10px 12px; min-height: 42px; border-radius: 6px; color: #bdc6c0; border-color: transparent; }
.console-page .side-nav button.active { color: #f4e3b6; background: #d8bb7320; border-color: #d8bb7330; }
.console-page .side-foot { padding: 16px 8px 0; margin-top: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.console-page .main { padding: 20px 24px 48px; }
.console-page .topbar { margin: -20px -24px 20px; padding: 16px 24px; background: #1d211f; backdrop-filter: none; gap: 16px; }
.console-page .topbar h1 { font-size: 22px; line-height: 1.4; }
.console-page .topbar .eyebrow { display: none; }
.console-page .global-search { min-width: 0; width: 300px; max-width: 100%; border-radius: 6px; background: #161a18; }
.console-page .global-search input { padding: 10px; font-size: 13px; }
.console-page button { border-radius: 6px; box-shadow: none; }
.console-page button:hover:not(:disabled) { transform: none; }
.console-page button.primary { color: #192b23; background: #a5d2bb; box-shadow: none; }
.console-page .icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; }
.console-page :is(input, select, textarea) { border-radius: 6px; background: #191e1b; padding: 10px 12px; }
.console-page .hero-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.console-page .hero-card::after { display: none; }
.console-page .hero-card h2 { font-size: 20px; line-height: 1.5; }
.console-page .hero-card .eyebrow { font-size: 11px; margin-bottom: 4px; }
.console-page .metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); border: 0; border-radius: 0; background: transparent; }
.console-page .metrics article { padding: 6px 16px; text-align: left; min-width: 0; background: transparent; border-radius: 0; box-shadow: none; }
.console-page .metrics article:first-child { padding-left: 0; }
.console-page .metrics strong { font-size: 26px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.console-page .metrics span { color: var(--muted); font-size: 12px; }
.console-page .panel { border-radius: 8px; background: var(--surface); box-shadow: none; }
.console-page .panel-head { padding: 18px 20px; }
.console-page .panel-head h3 { font-size: 17px; line-height: 1.5; }
.console-page .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 16px 20px; }
.console-page .side-nav { scrollbar-width: thin; scrollbar-color: #566159 transparent; }
.console-page .drawer-mask { backdrop-filter: none; }
.console-page .drawer { padding: 24px; background: #222624; box-shadow: -8px 0 32px #0003; }
.console-page .drawer h2 { padding-right: 42px; font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.console-page .account-form-banner { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.console-page .form-grid label { color: #c1cbc4; font-weight: 500; }
.console-page .avatar { border-radius: 8px; background: #a7c8b7; box-shadow: none; }
.console-page .avatar.crown { background: #dfc780; }
.console-page .row-main strong { font-size: 15px; font-weight: 600; }
.console-page .check input:checked + span { background: #a7c8b7; }
.console-page .page-grid { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr); }
.console-page :is(th, td) { font-size: 13px; }
@media (max-width: 1100px) {
  .console-page .app-shell { grid-template-columns: minmax(0, 1fr); }
  .console-page .side { position: static; height: auto; padding: 12px 16px; }
  .console-page .side-nav { display: flex; overflow-x: auto; padding: 0 0 4px; }
  .console-page .side-nav button { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .console-page .side-foot { display: none; }
  .console-page .brand { padding: 0 0 12px; }
}
@media (max-width: 760px) {
  .console-page .main { padding: 16px 12px 32px; }
  .console-page .topbar { position: static; margin: -16px -12px 16px; padding: 16px 12px; flex-wrap: wrap; }
  .console-page .top-actions { display: flex; width: 100%; }
  .console-page .global-search { flex: 1; width: auto; }
  .console-page .hero-card h2 { font-size: 18px; }
  .console-page .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 0; }
  .console-page .metrics article { padding: 4px 12px; }
  .console-page .metrics article:nth-child(3) { border-right: 0; }
  .console-page .metrics article:nth-child(4) { padding-left: 0; }
  .console-page .metrics strong { font-size: 22px; }
  .console-page .page-grid { grid-template-columns: minmax(0, 1fr); }
  .console-page .panel-head { padding: 14px; flex-wrap: wrap; }
  .console-page .drawer { width: 100%; padding: 22px 16px; }
  .console-page .drawer h2 { font-size: 20px; }
  .console-page :is(input, select, textarea) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.auth-page, .catalog-page, .console-page) *,
  :is(.auth-page, .catalog-page, .console-page) *::before,
  :is(.auth-page, .catalog-page, .console-page) *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


