:root {
  --primary: #1664ff;
  --primary-hover: #0f52d6;
  --primary-soft: #e8f1ff;
  --bg: #f5f6f7;
  --panel: #fff;
  --line: #e5e6eb;
  --line2: #f0f1f2;
  --text: #1d2129;
  --muted: #86909c;
  --muted2: #4e5969;
  --success: #00b42a;
  --warn: #ff7d00;
  --danger: #f53f3f;
  --side: #fff;
  --shadow: 0 8px 24px rgba(29, 33, 41, .06);
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}
body { overflow: hidden; }
button,
input,
select,
textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.login-screen {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.02fr) minmax(340px, 460px);
  align-items: center;
  gap: 34px;
  padding: 40px clamp(24px, 4vw, 64px);
  background:
    linear-gradient(135deg, rgba(255, 145, 0, .10), transparent 36%),
    linear-gradient(315deg, rgba(34, 197, 94, .12), transparent 34%),
    linear-gradient(135deg, #050d0b 0%, #0c1c18 42%, #0f352a 100%);
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(163, 255, 208, .08);
  border-radius: 28px;
  pointer-events: none;
}
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: .12;
  pointer-events: none;
}
.login-brand {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 36px;
  border: 1px solid rgba(163, 255, 208, .14);
  border-radius: 24px;
  color: #effaf3;
  background:
    linear-gradient(180deg, rgba(6, 18, 14, .92), rgba(11, 44, 31, .90)),
    linear-gradient(135deg, rgba(255, 145, 0, .08), transparent 55%),
    linear-gradient(315deg, rgba(34, 197, 94, .09), transparent 55%);
  box-shadow: 0 26px 64px rgba(2, 10, 8, .42);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(163, 255, 208, .12);
  border-radius: 28px;
  transform: rotate(14deg);
  opacity: .45;
}
.login-brand-top {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.login-brand-copy strong,
.login-brand-copy small {
  display: block;
}
.login-logo {
  width: 62px;
  height: 62px;
  display: block;
  flex: none;
  object-fit: contain;
}
.login-brand strong {
  color: #f5fff8;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.25;
}
.login-brand small {
  margin-top: 6px;
  color: rgba(228, 255, 236, .70);
  font-size: 14px;
}
.login-intro {
  display: grid;
  gap: 16px;
  max-width: 430px;
  position: relative;
  z-index: 1;
}
.login-intro p {
  margin: 0;
  color: rgba(241, 255, 244, .92);
  font-size: 17px;
  line-height: 1.75;
}
.login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.login-badges span {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(163, 255, 208, .18);
  border-radius: 999px;
  color: #c9ffe1;
  background: rgba(34, 197, 94, .08);
  font-size: 12px;
}
.login-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(228, 255, 236, .84);
  font-size: 14px;
  line-height: 1.7;
}
.login-points li::marker {
  color: #ffb84d;
}
.login-card-kicker {
  height: 24px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  color: #28d07f;
  background: rgba(34, 197, 94, .10);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.login-card {
  width: min(100%, 440px);
  justify-self: center;
  padding: 34px 32px 30px;
  border: 1px solid rgba(163, 255, 208, .14);
  border-top: 4px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(6, 18, 14, .84), rgba(9, 23, 18, .78)),
    linear-gradient(135deg, rgba(255, 145, 0, .07), rgba(34, 197, 94, .06));
  box-shadow: 0 24px 60px rgba(2, 10, 8, .34);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}
.login-card-head {
  margin-bottom: 24px;
}
.login-card-head h1 {
  margin: 0;
  color: #f6fff8;
  font-size: 26px;
  font-weight: 650;
}
.login-card-head p {
  margin: 8px 0 0;
  color: rgba(225, 242, 232, .74);
  line-height: 1.6;
}
.login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.login-field span {
  color: rgba(234, 248, 239, .78);
  font-size: 13px;
}
.login-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(163, 255, 208, .14);
  border-radius: 10px;
  color: #f4fff8;
  background: rgba(255, 255, 255, .04);
  outline: 0;
}
.login-field input::placeholder {
  color: rgba(228, 255, 236, .40);
}
.login-field input:focus {
  border-color: rgba(255, 184, 77, .72);
  box-shadow: 0 0 0 4px rgba(255, 145, 0, .10);
}
.login-error {
  min-height: 20px;
  margin: -2px 0 10px;
  color: #ff8f7c;
  font-size: 13px;
}
.login-submit {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a36 0%, #ffb84d 45%, #22c55e 100%);
  font-weight: 650;
  box-shadow: 0 12px 24px rgba(255, 145, 0, .22);
}
.login-submit:hover {
  background: linear-gradient(135deg, #ff7a17 0%, #ff9a1f 45%, #16a34a 100%);
}
.login-helper {
  margin-top: 14px;
  color: rgba(225, 242, 232, .62);
  text-align: center;
  font-size: 12px;
}
body.login-mode .app {
  display: none;
}
body.is-authenticated .login-screen {
  display: none;
}
body.is-authenticated .app {
  display: grid;
}

.app {
  height: 100vh;
  display: grid;
  grid-template-rows: 56px 1fr;
}

.topbar {
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted2);
  background: transparent;
}
.top-icon:hover { background: #f2f3f5; }
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 700;
}
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.user-name {
  color: var(--muted2);
  font-size: 13px;
}

.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 0;
  position: relative;
  transition: grid-template-columns .24s cubic-bezier(.2,.8,.2,1);
}
.shell.collapsed { grid-template-columns: 68px 1fr; }
.sidebar {
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: #fff;
  border-right: 1px solid var(--line);
}
.side-head {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line2);
}
.collapse-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted2);
  background: #f2f3f5;
}
.side-head span {
  color: var(--muted2);
  font-size: 13px;
  white-space: nowrap;
}
.menu {
  height: 100%;
  padding: 6px 8px;
  overflow-x: hidden;
  overflow-y: auto;
}
.menu-group { margin-bottom: 2px; }
.menu-parent {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #4e5969;
  text-align: left;
  background: transparent;
  font-weight: 400;
  transition: background .18s, color .18s, opacity .18s, transform .18s;
}
.menu-parent:hover {
  color: var(--primary);
  background: transparent;
}
.menu-parent.open {
  color: var(--text);
  font-weight: 600;
}
.menu-parent.direct.active,
.menu-parent.active {
  color: var(--primary);
  font-weight: 400;
}
.mi {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  transition: color .18s, transform .18s, filter .18s;
}
.mi-home { color: #1664ff; }
.mi-body { color: #ff7d00; }
.mi-study { color: #00a329; }
.mi-users { color: #722ed1; }
.mi-settings { color: #14a6a6; }
.menu-parent:hover .mi,
.menu-parent.active .mi {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 7px rgba(22, 100, 255, .18));
}
.menu-label {
  flex: 1;
  white-space: nowrap;
}
.chev {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: none;
  color: #8c93a3;
  background: transparent;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  transition: transform .22s ease, color .18s;
}
.menu-parent:hover .chev {
  color: var(--primary);
}
.menu-parent.open .chev {
  transform: rotate(90deg);
  color: var(--primary);
}
.submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0 0 30px;
  transition: max-height .24s ease, opacity .18s ease, padding .18s ease;
}
.menu-parent.open + .submenu {
  max-height: 240px;
  opacity: 1;
  padding: 0 0 2px 30px;
}
.submenu button {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #646a73;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
.submenu button:hover { background: transparent; color: var(--primary); }
.submenu button.active {
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--primary);
}
.collapsed .menu-group { margin-bottom: 4px; }
.collapsed .menu-label,
.collapsed .chev,
.collapsed .submenu { display: none; }
.collapsed .menu-parent {
  justify-content: center;
  padding: 0;
}
.collapsed .mi { font-size: 18px; }
.collapsed .menu-parent.open {
  background: transparent;
}

.workspace {
  min-width: 0;
  overflow: auto;
  padding: 18px 20px 32px;
}
.breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.page-title h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  white-space: nowrap;
  word-break: keep-all;
}
.btn:hover { background: #f7f8fa; }
.btn.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger {
  color: var(--danger);
  border-color: #ffd7d7;
  background: #fff;
}
.btn.link {
  height: auto;
  padding: 0 4px;
  border: 0;
  color: var(--primary);
  background: transparent;
}
.btn.action-edit,
.btn.action-stop,
.btn.action-enable {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.btn.action-edit {
  color: var(--primary);
  border-color: #bedaff;
  background: var(--primary-soft);
}
.btn.action-stop {
  color: var(--danger);
  border-color: #ffd7d7;
  background: #fff1f0;
}
.btn.action-enable {
  color: #00a329;
  border-color: #b7ebc2;
  background: #e8ffea;
}
.btn.small {
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
}
.filter-grid label {
  display: grid;
  gap: 6px;
}
.filter-grid label span {
  color: var(--muted2);
  font-size: 13px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
}
.user-filter-grid {
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(108px, 1fr)) minmax(142px, auto);
  gap: 12px;
}
.user-filter-actions {
  min-width: 142px;
  align-items: end;
  flex-wrap: nowrap;
}
.user-filter-actions .btn {
  flex: 0 0 66px;
  min-width: 66px;
  padding: 0 9px;
  text-align: center;
}
.input,
.select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  outline: 0;
}
.input { min-width: 220px; }
.input:focus,
.select:focus { border-color: #94bfff; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.panel + .panel { margin-top: 14px; }
.cards > .panel,
.grid-2 > .panel,
.grid-3 > .panel {
  margin-top: 0;
}
.panel-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line2);
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.panel-body { padding: 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.overview-cards {
  gap: 14px;
  margin-bottom: 14px;
}
.overview-cards .metric {
  min-width: 0;
}
.metric { padding: 16px; }
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-label {
  color: var(--muted2);
  font-size: 13px;
}
.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
}
.metric-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 650;
}
.metric-online .metric-value {
  color: var(--primary);
}
.metric-active .metric-value {
  color: var(--warn);
}
.metric-body .metric-value {
  color: var(--success);
}
.metric-study .metric-value {
  color: #722ed1;
}
.metric-foot {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.up { color: var(--success); }
.down { color: var(--danger); }
.study-analysis-page .overview-cards .metric:nth-child(1) .metric-value {
  color: var(--primary);
}
.study-analysis-page .overview-cards .metric:nth-child(2) .metric-value {
  color: var(--success);
}
.study-analysis-page .overview-cards .metric:nth-child(3) .metric-value {
  color: #ff7d00;
}
.study-analysis-page .overview-cards .metric:nth-child(4) .metric-value {
  color: #722ed1;
}
.body-analysis-page .overview-cards .metric:nth-child(1) .metric-value {
  color: var(--primary);
}
.body-analysis-page .overview-cards .metric:nth-child(2) .metric-value {
  color: #ff7d00;
}
.body-analysis-page .overview-cards .metric:nth-child(3) .metric-value {
  color: var(--success);
}
.body-analysis-page .overview-cards .metric:nth-child(4) .metric-value {
  color: #f53f3f;
}
.panel-link {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e4ff;
  border-radius: 6px;
  color: var(--primary);
  background: #f4f7ff;
  font-size: 12px;
}
.panel-link:hover {
  border-color: #94bfff;
  background: #eef4ff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 14px;
}
.chart-box { min-height: 280px; }
.bars {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 4px 22px;
  border-bottom: 1px solid var(--line2);
}
.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.bar {
  width: min(34px, 70%);
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #69a1ff, #1664ff);
}
.bar.green { background: linear-gradient(180deg, #69db8b, #00b42a); }
.bar.orange { background: linear-gradient(180deg, #ffb26b, #ff7d00); }
.bar-col b { font-size: 13px; }
.bar-col span {
  color: var(--muted);
  font-size: 11px;
}
.donut-wrap {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.structure-panel-body {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.structure-panel-body .donut-wrap {
  width: min(100%, 560px);
  min-height: 248px;
  justify-content: center;
  gap: 34px;
}
.structure-panel-body .donut {
  width: 170px;
  height: 170px;
  flex: 0 0 170px;
}
.structure-panel-body .donut::after {
  inset: 34px;
}
.structure-panel-body .legend {
  min-width: 190px;
}
.structure-panel-body .legend-row {
  min-height: 28px;
  font-size: 14px;
}
.donut {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
}
.legend {
  display: grid;
  gap: 9px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted2);
  font-size: 12px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.overview-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  background: #f7f8fa;
}
.overview-switch button {
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: var(--muted2);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}
.overview-switch button.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(22, 100, 255, .2);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 2px 8px 8px;
  color: var(--muted2);
  font-size: 12px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
}
.line-chart {
  height: 210px;
  position: relative;
  margin: 8px 8px 24px;
  border-left: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
}
.line-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 100, 255, .025), rgba(0, 180, 42, .055));
  opacity: 0;
  animation: chartGlow .9s .15s ease-out forwards;
}
.line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-grid-line {
  stroke: #edf1f7;
  stroke-width: 1;
}
.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawTrend .9s cubic-bezier(.3, .7, .2, 1) forwards;
}
.trend-line.body { stroke: #1664ff; }
.trend-line.study {
  stroke: #00b42a;
  animation-delay: .12s;
}
.trend-point {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: pointPop .45s ease-out forwards;
}
.trend-point-hit {
  fill: transparent;
  pointer-events: none;
}
.trend-hover-band {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
  transition: fill .16s;
}
.trend-hover-band:hover {
  fill: rgba(22, 100, 255, .05);
}
.trend-point-wrap:hover .trend-point {
  r: 5.5px;
  filter: drop-shadow(0 3px 6px rgba(22, 100, 255, .24));
}
.chart-tooltip {
  position: absolute;
  z-index: 80;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 100, 255, .15);
  border-radius: 6px;
  color: #1d2129;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(29, 33, 41, .14);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s, transform .14s;
}
.chart-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-right: 1px solid rgba(22, 100, 255, .15);
  border-bottom: 1px solid rgba(22, 100, 255, .15);
  background: rgba(255, 255, 255, .96);
  box-shadow: 4px 4px 10px rgba(29, 33, 41, .06);
  transform: translateX(-50%) rotate(45deg);
}
.chart-tooltip.below::after {
  top: -7px;
  bottom: auto;
  border: 0;
  border-left: 1px solid rgba(22, 100, 255, .15);
  border-top: 1px solid rgba(22, 100, 255, .15);
  box-shadow: -4px -4px 10px rgba(29, 33, 41, .04);
}
.chart-tooltip.center::after {
  display: none;
}
.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}
.chart-tooltip strong {
  margin-bottom: 2px;
  font-weight: 600;
}
.chart-tooltip span {
  color: var(--muted2);
}
.chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
.line-labels {
  display: grid;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.analysis-grid-panels {
  align-items: stretch;
}
.analysis-bars {
  display: grid;
  gap: 12px;
}
.analysis-bar-row {
  display: grid;
  grid-template-columns: 118px 1fr 46px;
  align-items: center;
  gap: 10px;
}
.analysis-bar-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.analysis-bar-meta span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analysis-bar-meta b,
.analysis-bar-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}
.analysis-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f7;
}
.analysis-bar-track i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  transition: width .3s ease;
}
.simple-chart-wrap {
  position: relative;
}
.simple-bars {
  height: 210px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 7px;
  align-items: end;
  padding: 8px 4px 22px;
  border-bottom: 1px solid var(--line2);
}
.simple-bars span {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.simple-bars i {
  width: min(22px, 78%);
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 8px 18px rgba(22, 100, 255, .12);
  animation: barGrow .62s ease both;
  transform-origin: bottom;
}
.simple-bars em {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
@keyframes barGrow {
  from { transform: scaleY(.08); opacity: .55; }
  to { transform: scaleY(1); opacity: 1; }
}
.legend-row b {
  margin-left: auto;
  color: var(--text);
  font-weight: 500;
}
.legend-row em {
  min-width: 34px;
  color: var(--muted);
  font-style: normal;
  text-align: right;
}
.interactive-donut {
  background: transparent;
  animation: donutEnter .72s cubic-bezier(.2, .8, .2, 1) both;
}
.interactive-donut::after {
  z-index: 2;
}
.donut-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.donut-track {
  opacity: .9;
}
.donut-segment {
  cursor: pointer;
  pointer-events: stroke;
  stroke-linecap: butt;
  stroke-dasharray: 0 calc(var(--dash-length) + var(--dash-gap));
  stroke-dashoffset: var(--dash-offset);
  animation: donutSegmentIn .72s cubic-bezier(.25, .75, .2, 1) forwards;
  transition: opacity .16s, stroke-width .16s;
}
.donut-segment:hover {
  opacity: .86;
  stroke-width: 44;
}
.structure-panel-body .legend-row {
  cursor: pointer;
  transition: color .16s, transform .16s;
}
.structure-panel-body .legend-row:hover {
  color: var(--text);
  transform: translateX(2px);
}
.analysis-donut-wrap {
  min-height: 238px;
  justify-content: center;
  gap: 28px;
}
.analysis-donut-wrap .donut {
  width: 166px;
  height: 166px;
  flex: 0 0 166px;
}
.analysis-donut-wrap .donut::after {
  inset: 34px;
}
.analysis-donut-center {
  position: absolute;
  inset: 43px;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  pointer-events: none;
}
.analysis-donut-center b {
  color: var(--text);
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
}
.analysis-donut-center span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.analysis-donut-legend {
  width: min(100%, 300px);
  max-height: 226px;
  overflow: auto;
}
.analysis-donut-legend.compact {
  width: min(100%, 390px);
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  align-content: start;
}
.analysis-donut-legend .legend-row {
  min-height: 28px;
  font-size: 13px;
}
.analysis-donut-legend.compact .legend-row {
  min-height: 24px;
}
.analysis-donut-legend.compact .legend-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.region-top-list {
  display: grid;
  gap: 10px;
}
.region-top-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 68px 46px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
}
.region-rank {
  color: var(--primary);
  font-size: 12px;
}
.region-name {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.region-name b {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.region-name i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}
.region-name i span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
}
.region-top-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}
.region-top-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}
.region-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}
.region-detail-summary span {
  padding: 5px 9px;
  border: 1px solid #d8e4ff;
  border-radius: 999px;
  color: var(--primary);
  background: #f4f7ff;
  font-size: 12px;
}

@keyframes drawTrend {
  to { stroke-dashoffset: 0; }
}
@keyframes pointPop {
  from {
    opacity: 0;
    transform: scale(.35);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes chartGlow {
  to { opacity: 1; }
}
@keyframes donutEnter {
  from {
    opacity: 0;
    transform: scale(.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes donutSegmentIn {
  to { stroke-dasharray: var(--dash-length) var(--dash-gap); }
}

.table-wrap { overflow: auto; }
.table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}
.table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted2);
  background: #f7f8fa;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line2);
  font-size: 13px;
  vertical-align: middle;
}
.points-table-cell b,
.points-table-cell small {
  display: block;
  white-space: nowrap;
}
.points-table-cell b {
  color: var(--warn);
  font-size: 14px;
  font-weight: 650;
}
.points-table-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.resource-table th {
  font-size: 13px;
  font-weight: 400;
}
.resource-table td {
  font-size: 14px;
}
.table-title-button {
  max-width: 320px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-weight: 400;
}
.table-title-button:hover {
  color: var(--primary);
}
.resource-subline {
  max-width: 320px;
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table tr:hover td { background: #fafcff; }
.table .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}
.table th:last-child,
.table td:last-child { text-align: right; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 12px;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.on,
.status.online {
  color: #00a329;
  background: #e8ffea;
}
.status.off,
.status.offline {
  color: #86909c;
  background: #f2f3f5;
}
.tag {
  display: inline-block;
  margin-right: 4px;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--muted2);
  background: #f2f3f5;
  font-size: 11px;
}
.tag.blue {
  color: var(--primary);
  background: var(--primary-soft);
}
.tag.green {
  color: #00a329;
  background: #e8ffea;
}
.tag.orange {
  color: #d25f00;
  background: #fff3e8;
}
.profile-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}
.gender-symbol {
  width: 31px;
  height: 31px;
  display: block;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 4.6;
}
.gender-symbol.male {
  stroke: #35aee8;
}
.gender-symbol.female {
  stroke: #e11792;
}
.profile-line b,
.profile-line small {
  display: block;
}
.profile-line small {
  margin-top: 2px;
  color: var(--muted);
}
.ellipsis {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 12px 0 0;
}
.page-info {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.page-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.page-btn.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.empty {
  padding: 60px;
  color: var(--muted);
  text-align: center;
}

.drawer-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  padding: 24px 0;
  background: rgba(29, 33, 41, .22);
  transition: opacity .2s;
}
.drawer-mask.show {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  width: 90vw;
  min-width: 0;
  max-width: 90vw;
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(29, 33, 41, .18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .2s, transform .2s;
}
.drawer-mask.show .drawer {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.drawer-head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.drawer-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted2);
  background: transparent;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
}
.drawer-body.profile-drawer-body {
  overflow: auto;
  padding: 12px;
}
.drawer-body.resource-drawer-body {
  padding: 14px;
  background: #fbfcff;
}
.drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px 18px;
  border-top: 1px solid var(--line);
}
.drawer-foot .btn {
  height: 32px;
}
.notice {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted2);
  background: #f7f8fa;
  font-size: 12px;
  line-height: 1.6;
}
.resource-detail-page {
  display: grid;
  gap: 14px;
}
.resource-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #dceaff;
  border-radius: 10px;
  background: #fff;
}
.resource-detail-page.recipe .resource-detail-hero {
  border-color: #ffe2bd;
  background: linear-gradient(135deg, #fffaf5, #fff);
}
.resource-detail-page.exercise .resource-detail-hero {
  border-color: #bfe6d0;
  background: linear-gradient(135deg, #f5fff8, #fff);
}
.resource-detail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.resource-eyebrow {
  color: var(--muted);
  font-size: 12px;
}
.resource-detail-copy h2 {
  margin: 6px 0 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
}
.resource-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.resource-detail-copy p,
.resource-detail-note {
  margin: 0;
  color: var(--muted2);
  line-height: 1.7;
}
.resource-detail-photo {
  min-height: 210px;
  display: grid;
  gap: 8px;
}
.resource-detail-photo img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: #f2f3f5;
}
.resource-detail-photo small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.resource-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.resource-detail-card {
  min-height: 142px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-top: 3px solid var(--primary);
  border-radius: 9px;
  background: #fff;
}
.resource-detail-page.recipe .resource-detail-card {
  border-top-color: var(--warn);
}
.resource-detail-page.exercise .resource-detail-card {
  border-top-color: var(--success);
}
.resource-detail-card.wide {
  grid-column: 1 / -1;
  min-height: 0;
}
.resource-detail-card h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.resource-detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted2);
  line-height: 1.8;
}
.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid #dceaff;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2f8ff, #fff7fb);
}
.profile-detail-page {
  display: grid;
  gap: 12px;
}
.profile-hero-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 13px;
}
.profile-hero-main strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}
.profile-hero-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted2);
  font-size: 13px;
}
.profile-hero-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
.profile-hero-icon .gender-symbol {
  width: 31px;
  height: 31px;
}
.profile-notice {
  margin-top: 10px;
  border: 1px solid var(--line2);
  background: #fbfcff;
}
.profile-drawer-body .profile-notice {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.4;
}
.profile-points-panel {
  overflow: hidden;
  border-color: #f0dfca;
  background: #fffdfa;
}
.profile-points-panel .panel-head {
  height: 44px;
}
.profile-points-panel .panel-body {
  padding: 12px 14px 14px;
}
.profile-points-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-points-summary > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #f2e7dc;
  border-radius: 7px;
  background: #fff;
}
.profile-points-summary small,
.profile-points-summary b {
  display: block;
}
.profile-points-summary small {
  color: var(--muted);
  font-size: 12px;
}
.profile-points-summary b {
  margin-top: 5px;
  color: var(--warn);
  font-size: 21px;
  font-weight: 650;
}
.profile-points-log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.profile-points-log-head strong {
  color: var(--text);
  font-size: 13px;
}
.profile-points-log-head span {
  color: var(--muted);
  font-size: 11px;
}
.profile-points-log-list {
  margin-top: 7px;
  border-top: 1px solid var(--line2);
}
.profile-points-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line2);
}
.profile-points-log-row > div {
  min-width: 0;
}
.profile-points-log-row b,
.profile-points-log-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-points-log-row b {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.profile-points-log-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.profile-points-log-row > strong {
  flex: none;
  font-size: 16px;
}
.profile-points-log-row > strong.earned {
  color: var(--success);
}
.profile-points-log-row > strong.redeemed {
  color: var(--danger);
}
.profile-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 12px;
}
.profile-top-grid > .detail-card {
  height: 100%;
}
.profile-dashboard-cards {
  margin: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.profile-dashboard-cards .metric {
  min-height: 128px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.profile-dashboard-cards .metric-value {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}
.profile-dashboard-cards .metric-foot {
  margin-top: auto;
}
.profile-dashboard-cards .metric:nth-child(1) .metric-value {
  color: var(--primary);
}
.profile-dashboard-cards .metric:nth-child(2) .metric-value {
  color: var(--warn);
}
.profile-dashboard-cards .metric:nth-child(3) .metric-value {
  color: var(--success);
}
.profile-dashboard-cards .metric:nth-child(4) .metric-value {
  color: #722ed1;
}
.profile-dashboard-cards .metric:nth-child(5) .metric-value {
  color: var(--warn);
}
.profile-dashboard-cards .metric:nth-child(1) .metric-icon {
  color: var(--primary);
  background: var(--primary-soft);
}
.profile-dashboard-cards .metric:nth-child(2) .metric-icon {
  color: var(--warn);
  background: #fff3e8;
}
.profile-dashboard-cards .metric:nth-child(3) .metric-icon {
  color: var(--success);
  background: #e8ffea;
}
.profile-dashboard-cards .metric:nth-child(4) .metric-icon {
  color: #722ed1;
  background: #f4edff;
}
.profile-dashboard-cards .metric:nth-child(5) .metric-icon {
  color: var(--warn);
  background: #fff3e8;
}
.profile-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 14px;
}
.profile-chart-grid > .panel {
  margin-top: 0;
}
.profile-chart-panel {
  min-height: 330px;
  overflow: hidden;
}
.profile-chart-panel.body-zone,
.profile-trend-panel.body-zone {
  border-color: #ffd7a6;
}
.profile-chart-panel.study-zone {
  border-color: #bfe6d0;
}
.profile-chart-panel.body-zone .panel-head h2 {
  color: var(--warn);
}
.profile-chart-panel.study-zone .panel-head h2 {
  color: var(--success);
}
.profile-donut-layout {
  position: relative;
  min-height: 210px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
}
.profile-donut {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(29,33,41,.04);
  animation: donutEnter .8s cubic-bezier(.2, .8, .2, 1) both;
}
.profile-donut::after {
  content: "";
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line2);
}
.profile-donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}
.profile-donut-center b {
  color: var(--text);
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
}
.profile-donut-center span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.profile-chart-legend {
  display: grid;
  gap: 8px;
}
.profile-chart-legend-row {
  display: grid;
  grid-template-columns: 1fr auto 52px;
  align-items: center;
  gap: 6px;
  color: var(--muted2);
  font-size: 13px;
  cursor: help;
  transition: color .14s, transform .14s;
}
.profile-chart-legend-row:hover,
.profile-chart-legend-row:focus-visible {
  color: var(--text);
  outline: none;
  transform: translateX(2px);
}
.profile-chart-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.profile-chart-legend-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.profile-chart-legend-row b {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.profile-chart-legend-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}
.profile-column-chart {
  position: relative;
  height: 214px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 12px 12px 0;
  border-bottom: 1px solid var(--line2);
}
.profile-column-item {
  height: 100%;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  cursor: help;
  outline: none;
}
.profile-column-item:focus-visible .profile-column-track {
  box-shadow: 0 0 0 3px rgba(22, 100, 255, .16);
}
.profile-column-track {
  width: 34px;
  height: 132px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: #f2f3f5;
}
.profile-column-track i {
  width: 100%;
  min-height: 8px;
  border-radius: inherit;
  transform-origin: center bottom;
  animation: barGrow .85s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--delay);
}
.profile-column-item b {
  margin-top: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}
.profile-column-item span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.profile-chart-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--muted2);
  background: #fbfcff;
  font-size: 13px;
  line-height: 1.6;
}
.profile-trend-panel {
  overflow: hidden;
}
.profile-trend-panel .panel-body {
  padding: 16px 20px 20px;
}
.profile-trend-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--muted2);
  font-size: 13px;
}
.profile-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-trend-legend i {
  width: 22px;
  height: 4px;
  border-radius: 99px;
}
.profile-trend-legend i.body { background: var(--warn); }
.profile-trend-legend i.study { background: var(--success); }
.profile-line-chart {
  height: 210px;
  position: relative;
  padding: 14px 0 0;
  border-left: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  background:
    linear-gradient(180deg, transparent 24%, var(--line2) 25%, transparent 26%),
    linear-gradient(180deg, transparent 49%, var(--line2) 50%, transparent 51%),
    linear-gradient(180deg, transparent 74%, var(--line2) 75%, transparent 76%);
}
.profile-line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.profile-trend-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawTrend 1s cubic-bezier(.3, .7, .2, 1) both;
}
.profile-trend-line.body {
  stroke: var(--warn);
}
.profile-trend-line.study {
  stroke: var(--success);
  animation-delay: .12s;
}
.profile-trend-point {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: pointPop .45s ease-out both;
  animation-delay: var(--delay);
  cursor: crosshair;
  outline: none;
}
.profile-trend-point-wrap {
  cursor: crosshair;
}
.profile-trend-point-hit {
  fill: transparent;
  pointer-events: all;
}
.profile-trend-point-wrap:hover .profile-trend-point,
.profile-trend-point-wrap:focus .profile-trend-point {
  r: 6px;
  filter: drop-shadow(0 3px 6px rgba(22, 100, 255, .24));
}
.profile-trend-axis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.profile-detail-page > .profile-analysis-grid {
  display: none;
}
.profile-analysis-grid {
  align-items: stretch;
  margin-top: 0;
}
.profile-analysis-panel {
  overflow: hidden;
  margin-top: 0;
}
.profile-analysis-panel.body-zone {
  border-color: #ffd7a6;
  border-left: 4px solid var(--warn);
}
.profile-analysis-panel.study-zone {
  border-color: #bfe6d0;
  border-left: 4px solid var(--success);
}
.profile-analysis-panel.body-zone .panel-head h2 {
  color: var(--warn);
}
.profile-analysis-panel.study-zone .panel-head h2 {
  color: var(--success);
}
.profile-analysis-panel .panel-body {
  padding: 16px;
}
.profile-analysis-panel .analysis-detail-grid {
  grid-template-columns: 1fr;
}
.profile-analysis-panel .analysis-kpi-list,
.profile-analysis-panel .body-record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.section-title {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.section-title:first-child { margin-top: 0; }
.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}
.profile-detail-layout {
  grid-template-columns: 1fr 1fr;
}
.compact-profile {
  gap: 12px;
}
.compact-profile .section-title {
  margin-bottom: 7px;
  font-size: 14px;
}
.compact-profile .profile-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}
.compact-profile .profile-info-list .desc:nth-child(2) {
  border-top: 0;
}
.compact-profile .desc {
  grid-template-columns: 82px minmax(0, 1fr);
}
.compact-profile .desc dt,
.compact-profile .desc dd {
  padding: 7px 0;
  font-size: 13px;
}
.profile-card-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: var(--line2);
}
.compact-title {
  margin-bottom: 8px;
}
.guardian-status-panel {
  padding: 10px;
  border: 1px solid #e1ecff;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.guardian-extra {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.guardian-extra div {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e1ecff;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.guardian-extra span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.guardian-extra b {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.detail-card {
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
}
.profile-detail-layout > .detail-card {
  min-height: 100%;
}
.detail-card .section-title {
  margin-top: 0;
}
.detail-card.wide-card {
  grid-column: 1 / -1;
}
.user-detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.user-detail-kpis div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fafcff;
}
.user-detail-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.user-detail-kpis b {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}
.user-detail-kpis b.orange { color: var(--warn); }
.user-detail-kpis b.blue { color: var(--primary); }
.analysis-detail-card {
  padding: 0 16px 16px;
  overflow: hidden;
  border-width: 1px;
  background: #fff;
}
.analysis-detail-card.body-zone {
  border-color: #ffd7a6;
  border-left: 4px solid var(--warn);
  background: #fff;
}
.analysis-detail-card.study-zone {
  border-color: #bfe6d0;
  border-left: 4px solid var(--success);
  background: #fff;
}
.analysis-detail-card > .section-title {
  height: 50px;
  display: flex;
  align-items: center;
  margin: 0 -16px 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line2);
  font-size: 15px;
}
.body-zone > .section-title {
  color: var(--warn);
}
.study-zone > .section-title {
  color: var(--success);
}
.analysis-detail-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.92fr;
  gap: 12px;
}
.analysis-score-card {
  min-height: 150px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #ffd7a6;
  border-top: 3px solid var(--warn);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.analysis-score-card.study {
  border-color: #bfe6d0;
  border-top-color: var(--success);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.analysis-score-card span {
  display: block;
  color: var(--warn);
  font-size: 13px;
}
.analysis-score-card.study span {
  color: var(--success);
}
.analysis-score-card strong {
  display: block;
  margin-top: 9px;
  color: var(--warn);
  font-size: 32px;
  font-weight: 650;
  line-height: 1;
}
.analysis-score-card.study strong {
  color: var(--primary);
}
.analysis-score-card p {
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.65;
}
.analysis-score-card.body .activity-track i {
  background: linear-gradient(90deg, #ffb66d, var(--warn));
}
.analysis-score-card.study .activity-track i {
  background: linear-gradient(90deg, #69db8b, var(--success));
}
.analysis-kpi-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.analysis-kpi-list div,
.body-record-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: #fff;
}
.body-zone .analysis-kpi-list div,
.body-zone .body-record-grid div {
  border-color: #ffe2bd;
  border-top: 3px solid var(--warn);
  background: #fff;
}
.study-zone .analysis-kpi-list div {
  border-color: #caebd8;
  border-top: 3px solid var(--success);
  background: #fff;
}
.analysis-kpi-list span,
.body-record-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.analysis-kpi-list b,
.body-record-grid b {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 650;
}
.body-zone .analysis-kpi-list b,
.body-zone .body-record-grid b {
  color: var(--warn);
}
.study-zone .analysis-kpi-list b {
  color: var(--success);
}
.body-record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.body-record-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.subject-analysis-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.subject-analysis-row {
  display: grid;
  grid-template-columns: 86px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #caebd8;
  border-radius: 9px;
  background: #fff;
}
.subject-analysis-row span {
  color: var(--success);
  font-size: 13px;
}
.subject-analysis-row b {
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}
.subject-analysis-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f7;
}
.subject-analysis-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8db8ff, var(--primary));
}
.detail-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-mini-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--muted2);
  background: #f2f6ff;
  font-size: 12px;
}
.status-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 12px;
}
.profile-chip.blue {
  color: var(--primary);
  background: var(--primary-soft);
}
.profile-chip.green {
  color: #00a329;
  background: #e8ffea;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.activity-card {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: #fff;
}
.activity-card span {
  display: block;
  color: var(--muted2);
  font-size: 13px;
}
.activity-card strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  font-weight: 650;
}
.activity-card.body strong {
  color: #ff7d00;
}
.activity-card.study strong {
  color: var(--primary);
}
.activity-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0f5;
}
.activity-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.activity-card.body .activity-track i {
  background: linear-gradient(90deg, #ffb66d, #ff7d00);
}
.activity-card.study .activity-track i {
  background: linear-gradient(90deg, #8db8ff, #1664ff);
}
.detail-task-list {
  display: grid;
  gap: 8px;
}
.detail-task-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: #fafcff;
}
.detail-task-item span {
  color: var(--text);
}
.detail-task-item em {
  color: var(--muted2);
  font-style: normal;
  white-space: nowrap;
}
.compact-empty {
  padding: 28px;
}
.desc {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid var(--line2);
}
.desc:first-child { border-top: 0; }
.desc dt,
.desc dd {
  margin: 0;
  padding: 10px 0;
  font-size: 13px;
}
.desc dt { color: var(--muted); }
.desc dd { color: var(--text); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}
.account-settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, .8fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
.account-avatar-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #f7fbff;
}
.avatar.large {
  width: 54px;
  height: 54px;
  font-size: 20px;
}
.account-avatar-box .avatar.large {
  flex: 0 0 auto;
}
.account-avatar-meta {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.account-avatar-box b,
.account-avatar-box small {
  display: block;
}
.account-avatar-box b {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}
.account-avatar-box small {
  color: var(--muted);
  font-size: 12px;
}
.account-avatar-box input[type="file"] {
  width: 100%;
  max-width: 260px;
}
.account-section-title {
  margin: 8px 0 14px;
}
.logout-card {
  max-width: 520px;
  margin: 26px auto;
  text-align: center;
}
.logout-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 28px;
}
.logout-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}
.logout-card p {
  margin: 0 0 18px;
  color: var(--muted2);
  line-height: 1.7;
}
.settings-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted2);
  background: #f7f8fa;
  font-size: 13px;
}
.field.full { grid-column: 1 / -1; }
.embedded-editor {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f6f7;
}
.embedded-editor-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.embedded-editor-tab {
  height: 52px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 400;
}
.embedded-editor-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.embedded-editor-separator {
  width: 1px;
  height: 22px;
  background: #c9cdd4;
}
.embedded-editor-tab-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.embedded-editor-close {
  width: 36px;
  height: 36px;
  margin-left: 14px;
  border: 0;
  border-radius: 50%;
  color: #9aa2af;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.embedded-editor-close:hover {
  color: var(--danger);
}
.embedded-editor-body {
  padding: 20px;
}
.form-section-title {
  margin-top: 2px;
  padding: 8px 10px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  background: #f7faff;
  font-size: 14px;
  font-weight: 600;
}
.inline-editor {
  margin-bottom: 0;
}
.inline-editor .panel-body {
  display: grid;
  gap: 14px;
}
.inline-basic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}
.inline-basic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 12px;
}
.inline-basic-grid .name-field {
  grid-column: span 3;
}
.exercise-basic-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "category name"
    "minutes kcal";
}
.exercise-basic-grid .field:nth-child(1) { grid-area: category; }
.exercise-basic-grid .field:nth-child(2) {
  grid-area: name;
  grid-column: auto;
}
.exercise-basic-grid .field:nth-child(3) { grid-area: minutes; }
.exercise-basic-grid .field:nth-child(4) { grid-area: kcal; }
.exercise-basic-grid .name-field {
  grid-column: auto;
}
.inline-content-grid {
  display: grid;
  gap: 12px;
}
.learning-editor .panel-body {
  gap: 16px;
}
.learning-basic-grid {
  display: grid;
  gap: 12px;
}
.subject-form-grid {
  grid-template-columns: minmax(220px, .86fr) minmax(0, 1.12fr) minmax(150px, .66fr);
  gap: 12px;
}
.subject-editor .form-section-title {
  font-size: 13px;
}
.subject-editor .field label {
  font-size: 15px;
}
.subject-editor .radio-option,
.subject-editor .status-radio-option,
.subject-editor .field input,
.subject-editor .field select,
.subject-editor .field textarea,
.subject-editor .readonly-field > div {
  font-size: 15px;
}
.subject-editor .field input[data-field="name"] {
  width: min(50%, 360px);
}
.subject-editor .radio-option,
.subject-editor .status-radio-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
  white-space: nowrap;
}
.subject-editor .radio-option,
.subject-editor .status-radio-option {
  min-height: 34px;
  line-height: 1;
}
.subject-editor .radio-option span,
.subject-editor .status-radio-option span {
  display: inline;
  line-height: 1;
}
.subject-intro-field {
  grid-column: 1 / -1;
}
.subject-intro-field textarea {
  min-height: 108px;
}
.homework-form-grid {
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 1fr) minmax(150px, .65fr) minmax(150px, .65fr);
}
.radio-group {
  min-height: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-option {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
}
.field .radio-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}
.radio-option:has(input:checked) {
  border-color: #94bfff;
  background: var(--primary-soft);
  color: var(--primary);
}
.subject-category-radio {
  min-height: 42px;
  gap: 18px;
}
.subject-category-radio .radio-option {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}
.field .subject-category-radio .radio-option input {
  width: 18px;
  height: 18px;
}
.subject-category-radio .radio-option:has(input:checked) {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}
.status-radio-group {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.status-radio-option {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
}
.field .status-radio-option input {
  width: 15px;
  height: 15px;
  margin: 0;
}
.status-radio-option.on {
  color: #15864a;
}
.status-radio-option.on input {
  accent-color: #19a45b;
}
.status-radio-option.off {
  color: #c76b00;
}
.status-radio-option.off input {
  accent-color: #f59e0b;
}
.status-radio-option:has(input:checked) {
  box-shadow: none;
}
.homework-content-field textarea {
  min-height: 190px;
}
.large-textarea {
  min-height: 150px;
}
.inline-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.side-image-field {
  display: grid;
  gap: 8px;
}
.side-image-field > label {
  display: block;
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
}
.exercise-editor .side-image-field .image-upload {
  min-height: 102px;
  grid-template-columns: 112px 1fr;
  padding: 8px 10px;
}
.exercise-editor .side-image-field > label {
  margin-bottom: 0;
}
.exercise-editor .side-image-field .image-preview {
  width: 112px;
  height: 78px;
}
.exercise-editor .side-image-field .image-actions {
  gap: 5px;
}
.exercise-editor .side-image-field .image-actions small {
  font-size: 12px;
  line-height: 1.35;
}
.exercise-editor .side-image-field .image-actions input[type="file"] {
  padding: 5px 8px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted2);
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  outline: 0;
}
.field input,
.field select {
  height: 36px;
  padding: 0 10px;
}
.field textarea {
  min-height: 84px;
  padding: 8px 10px;
  line-height: 1.55;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #94bfff; }
.readonly-field > div {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted2);
  background: #f7f8fa;
}
.image-upload {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px dashed #c9dfff;
  border-radius: 8px;
  background: #fbfdff;
}
.image-preview {
  width: 180px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: var(--muted);
  background: #f2f3f5;
  font-size: 13px;
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-actions {
  display: grid;
  gap: 8px;
}
.image-actions input[type="file"] {
  height: auto;
  padding: 7px 10px;
}
.image-actions small {
  color: var(--muted);
  line-height: 1.5;
}
.compact-image-field > .field {
  margin: 0;
}
.compact-image-field > .field > label {
  display: none;
}
.compact-image-field .image-upload {
  grid-template-columns: 96px 1fr;
  padding: 8px;
}
.compact-image-field .image-preview {
  width: 96px;
  height: 62px;
}
.compact-image-field .image-actions {
  gap: 6px;
}
.compact-image-field .image-actions small {
  font-size: 12px;
}
.edit-box-field {
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
}
.edit-box-field > label {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted2);
}
.edit-box-field textarea {
  min-height: 160px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.switch button {
  width: 38px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: 99px;
  background: #c9cdd4;
  transition: background .2s;
}
.switch button::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.switch button.on { background: var(--primary); }
.switch button.on::before { transform: translateX(18px); }
.kpi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi-mini {
  padding: 13px;
  border: 1px solid var(--line2);
  border-radius: 7px;
}
.kpi-mini b { font-size: 22px; }
.kpi-mini small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.toast-admin {
  position: fixed;
  top: 74px;
  left: 50%;
  z-index: 100;
  display: none;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: #1d2129;
  box-shadow: var(--shadow);
  font-size: 13px;
}

@media (max-width: 1050px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 34px 18px;
  }
  .login-brand {
    padding: 28px 22px;
  }
  .login-brand strong {
    font-size: 24px;
  }
  .login-card {
    justify-self: center;
    padding: 24px;
  }
  .login-intro {
    max-width: none;
  }
  .cards { grid-template-columns: 1fr 1fr; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .filter-grid,
  .profile-detail-grid,
  .profile-detail-layout,
  .activity-grid,
  .inline-basic-layout,
  .inline-basic-grid,
  .learning-basic-grid,
  .settings-form-grid,
  .image-upload,
  .resource-detail-hero,
  .resource-detail-grid { grid-template-columns: 1fr; }
  .user-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-filter-grid > label:first-child,
  .user-filter-actions {
    grid-column: 1 / -1;
  }
  .user-filter-actions {
    justify-content: flex-start;
  }
  .inline-basic-grid .name-field { grid-column: auto; }
  .image-preview {
    width: 100%;
    height: 160px;
  }
  .brand { min-width: 190px; }
}

/* Reference-style admin login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  background: #f8faf9;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.login-screen::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: #fff0d9;
  border-radius: 0 0 0 100%;
  pointer-events: none;
}
.login-screen::after {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -32px;
  width: 270px;
  height: 190px;
  background: #eff6dc;
  border-radius: 0 100% 0 0;
  pointer-events: none;
}
.login-shell {
  width: min(1320px, calc(100vw - 72px));
  min-height: min(900px, calc(100vh - 112px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  overflow: hidden;
  border: 1px solid #dfe4e2;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(43, 57, 51, .14);
  position: relative;
  z-index: 1;
}
.login-brand {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 58px 180px;
  color: #1d2129;
  background: #fffaf1;
  position: relative;
  overflow: hidden;
}
.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -2px;
  height: 105px;
  background: #e8f2b9;
  clip-path: ellipse(61% 86% at 24% 100%);
  pointer-events: none;
}
.login-brand::after {
  bottom: -25px;
  height: 110px;
  background: #f3f8d4;
  clip-path: ellipse(64% 84% at 67% 100%);
}
.login-brand-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  position: relative;
  z-index: 1;
}
.login-mascot-wrap {
  width: clamp(190px, 22vw, 292px);
  flex: none;
}
.login-mascot {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 14px rgba(171, 116, 22, .16));
}
.login-brand-copy {
  min-width: 0;
}
.login-brand-copy strong {
  display: grid;
  line-height: .98;
  letter-spacing: 0;
}
.login-brand-copy strong b,
.login-brand-copy strong span {
  display: block;
}
.login-brand-copy strong b {
  color: #ff6508;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 750;
  white-space: nowrap;
}
.login-brand-copy strong span {
  margin-top: 11px;
  color: #1d2129;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 700;
  white-space: nowrap;
}
.login-brand-copy small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: #4e5969;
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: .08em;
  white-space: nowrap;
}
.login-brand-copy small i,
.login-card-head p i {
  display: block;
  width: 17px;
  height: 9px;
  flex: none;
  background: #8ac63f;
  clip-path: ellipse(48% 58% at 50% 50%);
  transform: rotate(22deg);
}
.login-card-head p i {
  width: 42px;
  height: 1px;
  background: #ff8a16;
  clip-path: none;
  transform: none;
  position: relative;
}
.login-card-head p i::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff8a16;
}
.login-card-head p i:first-child {
  transform: scaleX(-1);
}
.login-stats {
  width: min(88%, 630px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-self: center;
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 110px;
  z-index: 2;
  padding: 20px 28px;
  border: 1px solid #f0f1ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 25px rgba(88, 96, 72, .10);
}
.login-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 10px;
  align-items: center;
  padding: 0 20px;
}
.login-stat + .login-stat {
  border-left: 1px solid #dfe4e2;
}
.login-stat-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 700;
}
.login-stat-icon.users { color: #47ad32; }
.login-stat-icon.body { color: #ff8a16; }
.login-stat-icon.study { color: #ffae12; }
.login-stat b {
  color: #1d2129;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.login-stat small {
  margin-top: 3px;
  color: #86909c;
  font-size: 13px;
  white-space: nowrap;
}
.login-card {
  width: min(100%, 430px);
  align-self: center;
  justify-self: center;
  margin: 0 36px;
  padding: 43px 31px 31px;
  border: 1px solid #edf0f3;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(29, 33, 41, .08);
  position: relative;
  z-index: 1;
}
.login-card-head {
  margin-bottom: 29px;
  text-align: center;
}
.login-card-head h1 {
  margin: 0;
  color: #172235;
  font-size: 39px;
  font-weight: 750;
  line-height: 1.1;
}
.login-card-head p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 14px 0 0;
  color: #86909c;
  font-size: 15px;
  line-height: 1.5;
}
.login-field {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
}
.login-field-label {
  color: #1d2129;
  font-size: 16px;
  font-weight: 650;
}
.login-control {
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  background: #fff;
  outline: 0;
  transition: border-color .16s, box-shadow .16s;
}
.login-control:focus-within {
  border-color: #ff8a16;
  box-shadow: 0 0 0 4px rgba(255, 138, 22, .10);
}
.login-field-icon {
  width: 47px;
  flex: none;
  color: #8993a6;
  font-size: 22px;
  text-align: center;
}
.login-control input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 13px 0 0;
  border: 0;
  outline: 0;
  color: #1d2129;
  background: transparent;
  font-size: 15px;
}
.login-control input::placeholder {
  color: #aab2c0;
}
.login-password-toggle {
  width: 42px;
  height: 100%;
  flex: none;
  padding: 0;
  border: 0;
  color: #8993a6;
  background: transparent;
  font-size: 18px;
}
.login-captcha-field {
  margin-bottom: 14px;
}
.login-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 14px;
}
.login-captcha {
  height: 56px;
  border: 1px dashed #d5dbe3;
  border-radius: 11px;
  color: #4f9660;
  background: #fbfdfb;
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: 6px;
}
.login-captcha:hover {
  border-color: #8bc999;
  background: #f3fbf4;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #86909c;
  font-size: 14px;
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ff8a16;
}
.login-forgot {
  padding: 0;
  border: 0;
  color: #1677ff;
  background: transparent;
  font-size: 14px;
}
.login-error {
  min-height: 21px;
  margin: 0 0 5px;
  color: #e34d59;
  font-size: 13px;
}
.login-submit {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #ff790d;
  font-size: 18px;
  font-weight: 650;
  box-shadow: 0 10px 20px rgba(255, 121, 13, .22);
}
.login-submit:hover {
  background: #f56800;
}
.login-demo {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 1px solid #ff790d;
  border-radius: 11px;
  color: #ff790d;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
}
.login-demo:hover {
  background: #fff7ef;
}
.login-footnote {
  margin: 23px 0 0;
  color: #9aa1ad;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.login-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.login-decor-top {
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: #fff0d9;
  border-radius: 0 0 0 100%;
}
.login-decor-side {
  left: 0;
  bottom: 26%;
  width: 90px;
  height: 170px;
  background-image: radial-gradient(#f8dcb6 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .62;
}
.login-decor-bottom {
  right: 12%;
  bottom: -10px;
  width: 110px;
  height: 170px;
}
.login-decor-bottom::before {
  content: "";
  position: absolute;
  left: 52px;
  bottom: 0;
  width: 7px;
  height: 132px;
  border-radius: 99px;
  background: #d9e9a6;
  transform: rotate(7deg);
}
.login-decor-bottom i {
  position: absolute;
  bottom: 38px;
  width: 31px;
  height: 72px;
  border-radius: 100% 0 100% 0;
  background: #dceca8;
  transform-origin: bottom;
}
.login-decor-bottom i:nth-child(1) { left: 7px; transform: rotate(-34deg); }
.login-decor-bottom i:nth-child(2) { left: 29px; bottom: 84px; transform: rotate(-8deg); }
.login-decor-bottom i:nth-child(3) { right: 1px; transform: rotate(35deg) scaleX(-1); }
.login-decor-bottom i:nth-child(4) { right: 22px; bottom: 91px; transform: rotate(12deg) scaleX(-1); }

@media (max-width: 1050px) {
  .login-shell {
    width: min(700px, calc(100vw - 36px));
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 430px;
    padding: 52px 26px 150px;
  }
  .login-brand-main {
    gap: 14px;
  }
  .login-mascot-wrap {
    width: min(230px, 37vw);
  }
  .login-stats {
    bottom: 55px;
  }
  .login-card {
    width: min(calc(100% - 36px), 430px);
    margin: 34px auto;
  }
  .login-decor-bottom {
    display: none;
  }
}

@media (max-width: 600px) {
  .login-screen {
    padding: 12px;
    overflow: auto;
  }
  .login-shell {
    width: 100%;
    border-radius: 18px;
  }
  .login-brand {
    min-height: 345px;
    padding: 34px 16px 120px;
  }
  .login-brand-main {
    gap: 8px;
  }
  .login-mascot-wrap {
    width: 38vw;
    max-width: 158px;
  }
  .login-brand-copy strong b {
    font-size: clamp(28px, 8vw, 43px);
  }
  .login-brand-copy strong span {
    margin-top: 7px;
    font-size: clamp(24px, 6.6vw, 36px);
  }
  .login-brand-copy small {
    gap: 6px;
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .login-brand-copy small i {
    width: 10px;
  }
  .login-stats {
    width: calc(100% - 26px);
    left: 13px;
    right: 13px;
    bottom: 30px;
    padding: 13px 4px;
  }
  .login-stat {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 2px;
    padding: 0 4px;
  }
  .login-stat-icon {
    grid-row: auto;
    width: auto;
    height: 23px;
    font-size: 20px;
  }
  .login-stat b {
    font-size: 14px;
  }
  .login-stat small {
    font-size: 10px;
  }
  .login-card {
    width: calc(100% - 24px);
    margin: 22px auto;
    padding: 31px 20px 24px;
  }
  .login-card-head h1 {
    font-size: 31px;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 9px;
  }
  .login-captcha {
    font-size: 20px;
    letter-spacing: 4px;
  }
  .login-decor-side {
    display: none;
  }
}

/* Final responsive login corrections */
.login-screen .login-field .login-field-label {
  display: block;
  color: #1d2129;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
.login-screen .login-field .login-control {
  color: #1d2129;
}
.login-screen .login-field .login-field-icon {
  color: #8993a6;
}
.login-screen .login-field .login-control input {
  color: #1d2129;
  background: transparent;
}
.login-screen .login-field .login-control input::placeholder {
  color: #aab2c0;
}
.login-screen input:-webkit-autofill,
.login-screen input:-webkit-autofill:hover,
.login-screen input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1d2129;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: #1d2129;
}

@media (max-width: 1050px) {
  .login-screen {
    height: 100vh;
    min-height: 100vh;
    display: block;
    padding: 18px;
    overflow: auto;
  }
  .login-shell {
    width: min(700px, 100%);
    min-height: 0;
    display: block;
    margin: 0 auto;
    overflow: visible;
  }
  .login-brand {
    min-height: 390px;
    padding: 42px 28px 138px;
  }
  .login-brand-main {
    min-height: 210px;
  }
  .login-card {
    width: min(calc(100% - 36px), 430px);
    margin: 28px auto 36px;
  }
}

@media (max-width: 600px) {
  .login-screen {
    padding: 10px;
  }
  .login-shell {
    border-radius: 18px;
  }
  .login-brand {
    min-height: 345px;
    padding: 28px 14px 116px;
  }
  .login-brand-main {
    min-height: 188px;
  }
  .login-card {
    width: calc(100% - 24px);
    margin: 22px auto 28px;
    padding: 30px 20px 24px;
  }
  .login-screen .login-field .login-field-label {
    font-size: 15px;
  }
}

/* Reference-matched login composition */
.login-screen {
  width: 100%;
  min-height: 100svh;
  display: block;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 236, 198, .78) 0 12%, rgba(255, 248, 233, .28) 12.2%, transparent 29%),
    linear-gradient(180deg, #fffefa 0%, #fffdf9 68%, #f8fbef 100%);
  isolation: isolate;
}
.login-screen::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -110px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 237, 202, .55);
  pointer-events: none;
}
.login-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 230px;
  background:
    radial-gradient(ellipse at 24% 100%, rgba(222, 239, 174, .72) 0 31%, transparent 31.5%),
    radial-gradient(ellipse at 68% 100%, rgba(239, 246, 211, .78) 0 33%, transparent 33.5%);
  pointer-events: none;
}
.login-shell {
  width: min(1450px, calc(100vw - 96px));
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 525px);
  align-items: center;
  gap: clamp(48px, 7vw, 125px);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 2;
}
.login-brand {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 70px;
  color: #1d2129;
  background: transparent;
  position: relative;
  overflow: visible;
}
.login-brand::before,
.login-brand::after {
  display: none;
}
.login-badge {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 42px;
  padding: 0 20px;
  border-radius: 24px;
  color: #4c963d;
  background: #eef6e8;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.login-badge-icon {
  width: 20px;
  height: 13px;
  display: inline-block;
  border-radius: 100% 0;
  background: #4b9c34;
  transform: rotate(-28deg);
  position: relative;
}
.login-badge-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 1px;
  width: 2px;
  height: 15px;
  background: #eef6e8;
  transform: rotate(28deg);
}
.login-brand-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin-top: 46px;
  position: relative;
  z-index: 1;
}
.login-mascot-wrap {
  width: 235px;
  flex: none;
}
.login-mascot {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 14px rgba(171, 116, 22, .16));
}
.login-brand-copy {
  min-width: 0;
}
.login-brand-copy strong {
  display: block;
  color: #172235;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.login-brand-copy strong b,
.login-brand-copy strong span {
  display: inline;
  font-size: 48px;
  font-weight: 750;
}
.login-brand-copy strong b {
  color: #ff6e0a;
}
.login-brand-copy strong span {
  margin-left: 8px;
  color: #172235;
}
.login-brand-copy small {
  display: block;
  width: max-content;
  margin-top: 26px;
  padding-bottom: 20px;
  color: #697386;
  font-size: 25px;
  letter-spacing: 0;
  white-space: nowrap;
  position: relative;
}
.login-brand-copy small::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 4px;
  border-radius: 3px;
  background: #55a749;
}
.login-card {
  width: 100%;
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 44px 50px 42px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(29, 33, 41, .09);
  position: relative;
  z-index: 3;
}
.login-card-head {
  margin-bottom: 30px;
  text-align: left;
}
.login-card-head h1 {
  margin: 0;
  color: #172235;
  font-size: 38px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
}
.login-card-head p {
  display: block;
  margin: 14px 0 0;
  color: #8a929f;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
.login-card-head p i {
  display: none;
}
.login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
  position: relative;
}
.login-screen .login-field .login-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.login-control {
  min-width: 0;
  height: 60px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe3eb;
  border-radius: 7px;
  background: #fff;
}
.login-field-icon {
  width: 49px;
  flex: none;
  color: #8993a1;
  font-size: 22px;
  text-align: center;
}
.login-control input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  color: #1d2129;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0;
}
.login-control input::placeholder {
  color: #9aa2af;
}
.login-control:focus-within {
  border-color: #ff8a16;
  box-shadow: 0 0 0 3px rgba(255, 138, 22, .09);
}
.login-password-toggle {
  width: 44px;
  height: 100%;
  flex: none;
  padding: 0;
  border: 0;
  color: #8993a1;
  background: transparent;
  font-size: 18px;
}
.login-captcha-field {
  margin-bottom: 15px;
}
.login-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 30px;
}
.login-captcha {
  height: 60px;
  border: 1px solid #dfe3eb;
  border-radius: 7px;
  color: #394356;
  background:
    linear-gradient(155deg, transparent 0 42%, rgba(255, 102, 102, .32) 43% 44%, transparent 45%),
    linear-gradient(28deg, transparent 0 60%, rgba(86, 173, 115, .28) 61% 62%, transparent 63%),
    #fbfcfb;
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: 7px;
}
.login-captcha:hover {
  border-color: #8bc999;
  background-color: #f6fbf5;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 17px;
  color: #8a929f;
  font-size: 14px;
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.login-remember input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #ff790d;
}
.login-forgot {
  padding: 0;
  border: 0;
  color: #ff790d;
  background: transparent;
  font-size: 14px;
}
.login-error {
  min-height: 21px;
  margin: 0 0 5px;
  color: #e34d59;
  font-size: 13px;
}
.login-submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #ff790d;
  font-size: 18px;
  font-weight: 650;
  box-shadow: none;
}
.login-submit:hover {
  background: #f56800;
}
.login-demo,
.login-footnote {
  display: none;
}
.login-decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.login-decor-top {
  top: -55px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: rgba(255, 237, 202, .62);
  border-radius: 50%;
}
.login-decor-side {
  left: -10px;
  bottom: 22px;
  width: 170px;
  height: 190px;
  opacity: .54;
  background:
    radial-gradient(ellipse at 19% 73%, #bdd68b 0 18%, transparent 19%),
    radial-gradient(ellipse at 36% 49%, #c7df92 0 20%, transparent 21%),
    radial-gradient(ellipse at 58% 76%, #b8d47f 0 19%, transparent 20%);
  transform: rotate(-10deg);
}
.login-decor-bottom {
  left: -5%;
  right: -5%;
  bottom: -4px;
  width: auto;
  height: 255px;
  overflow: hidden;
  opacity: .88;
}
.login-decor-bottom::before,
.login-decor-bottom::after {
  content: "";
  position: absolute;
  left: -4%;
  width: 108%;
  height: 255px;
  border-radius: 50% 50% 0 0 / 56% 56% 0 0;
}
.login-decor-bottom::before {
  bottom: -180px;
  background: #dceca8;
  transform: rotate(4deg);
}
.login-decor-bottom::after {
  bottom: -204px;
  background: #eef5d3;
  transform: rotate(-3deg);
}
.login-decor-bottom i {
  position: absolute;
  bottom: 21px;
  width: 30px;
  height: 82px;
  border-radius: 100% 0;
  background: #c3db88;
  transform-origin: bottom;
}
.login-decor-bottom i:nth-child(1) {
  left: 24px;
  height: 146px;
  transform: rotate(-28deg);
}
.login-decor-bottom i:nth-child(2) {
  left: 72px;
  bottom: 35px;
  height: 105px;
  transform: rotate(-8deg);
}
.login-decor-bottom i:nth-child(3) {
  left: 125px;
  bottom: 22px;
  height: 72px;
  transform: rotate(18deg);
}
.login-decor-bottom i:nth-child(4) {
  left: 166px;
  bottom: 30px;
  height: 92px;
  transform: rotate(31deg);
}

@media (max-width: 1050px) {
  .login-screen {
    height: auto;
    min-height: 100svh;
    overflow: auto;
    padding: 30px 0 48px;
  }
  .login-shell {
    width: min(700px, calc(100% - 36px));
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0 auto;
  }
  .login-brand {
    min-height: 360px;
    padding: 0 0 88px;
  }
  .login-badge {
    margin-left: 18px;
  }
  .login-brand-main {
    margin-top: 36px;
    gap: 20px;
  }
  .login-mascot-wrap {
    width: 190px;
  }
  .login-brand-copy strong b,
  .login-brand-copy strong span {
    font-size: 36px;
  }
  .login-brand-copy small {
    margin-top: 18px;
    font-size: 20px;
  }
  .login-card {
    width: min(100%, 525px);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .login-screen {
    padding: 18px 0 36px;
  }
  .login-shell {
    width: calc(100% - 24px);
  }
  .login-brand {
    min-height: 285px;
    padding-bottom: 56px;
  }
  .login-badge {
    height: 36px;
    margin-left: 4px;
    padding: 0 13px;
    font-size: 12px;
  }
  .login-brand-main {
    gap: 10px;
    margin-top: 30px;
  }
  .login-mascot-wrap {
    width: 125px;
  }
  .login-brand-copy strong b,
  .login-brand-copy strong span {
    font-size: 23px;
  }
  .login-brand-copy strong span {
    margin-left: 4px;
  }
  .login-brand-copy small {
    margin-top: 13px;
    padding-bottom: 12px;
    font-size: 14px;
  }
  .login-brand-copy small::after {
    width: 30px;
    height: 3px;
  }
  .login-card {
    padding: 31px 20px 28px;
  }
  .login-card-head h1 {
    font-size: 31px;
  }
  .login-card-head p {
    font-size: 14px;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }
  .login-captcha {
    font-size: 18px;
    letter-spacing: 4px;
  }
  .login-decor-top {
    width: 180px;
    height: 180px;
  }
  .login-decor-side {
    display: none;
  }
}

/* Login scale refinement */
.login-shell {
  width: min(1360px, calc(100vw - 120px));
  grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
  gap: clamp(36px, 6vw, 96px);
}
.login-brand {
  padding-bottom: 44px;
}
.login-badge {
  height: 38px;
  margin-left: 32px;
  padding: 0 16px;
  font-size: 14px;
}
.login-brand-main {
  gap: 26px;
  margin-top: 34px;
}
.login-mascot-wrap {
  width: 190px;
}
.login-brand-copy strong b,
.login-brand-copy strong span {
  font-size: 38px;
}
.login-brand-copy strong span {
  margin-left: 6px;
}
.login-brand-copy small {
  margin-top: 18px;
  padding-bottom: 14px;
  font-size: 20px;
}
.login-brand-copy small::after {
  width: 38px;
  height: 3px;
}
.login-card {
  width: 100%;
  padding: 35px 38px 32px;
}
.login-card-head {
  margin-bottom: 24px;
}
.login-card-head h1 {
  font-size: 32px;
}
.login-card-head p {
  margin-top: 10px;
  font-size: 14px;
}
.login-field {
  margin-bottom: 13px;
}
.login-control {
  height: 52px;
}
.login-field-icon {
  width: 43px;
  font-size: 19px;
}
.login-control input {
  font-size: 14px;
}
.login-password-toggle {
  width: 38px;
  font-size: 16px;
}
.login-captcha-row {
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 18px;
}
.login-captcha {
  height: 52px;
  font-size: 20px;
  letter-spacing: 5px;
}
.login-options {
  margin-bottom: 12px;
  font-size: 13px;
}
.login-remember input {
  width: 18px;
  height: 18px;
}
.login-forgot {
  font-size: 13px;
}
.login-submit {
  height: 50px;
  font-size: 16px;
}
.login-decor-top {
  width: 240px;
  height: 240px;
}
.login-decor-bottom {
  height: 215px;
}

@media (max-width: 1050px) {
  .login-shell {
    width: min(620px, calc(100% - 36px));
  }
  .login-brand {
    min-height: 320px;
    padding-bottom: 62px;
  }
  .login-badge {
    margin-left: 16px;
  }
  .login-brand-main {
    margin-top: 28px;
  }
  .login-mascot-wrap {
    width: 160px;
  }
  .login-brand-copy strong b,
  .login-brand-copy strong span {
    font-size: 31px;
  }
  .login-brand-copy small {
    font-size: 17px;
  }
  .login-card {
    width: min(100%, 480px);
  }
}

@media (max-width: 600px) {
  .login-shell {
    width: calc(100% - 24px);
  }
  .login-brand {
    min-height: 255px;
    padding-bottom: 42px;
  }
  .login-badge {
    height: 32px;
    margin-left: 3px;
    padding: 0 11px;
    font-size: 11px;
  }
  .login-badge-icon {
    width: 16px;
    height: 11px;
  }
  .login-brand-main {
    gap: 8px;
    margin-top: 24px;
  }
  .login-mascot-wrap {
    width: 112px;
  }
  .login-brand-copy strong b,
  .login-brand-copy strong span {
    font-size: 21px;
  }
  .login-brand-copy small {
    margin-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
  }
  .login-card {
    padding: 26px 18px 24px;
  }
  .login-card-head h1 {
    font-size: 28px;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 8px;
  }
  .login-captcha {
    font-size: 17px;
    letter-spacing: 3px;
  }
}

/* Final login proportion tuning */
.login-shell {
  width: min(1280px, calc(100vw - 104px));
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(32px, 5vw, 72px);
}
.login-brand {
  padding-bottom: 36px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.login-badge {
  height: 34px;
  margin-left: 26px;
  padding: 0 13px;
  gap: 9px;
  font-size: 13px;
}
.login-badge-icon {
  width: 17px;
  height: 11px;
}
.login-brand-main {
  gap: 22px;
  margin-top: 28px;
}
.login-mascot-wrap {
  width: 160px;
}
.login-brand-copy strong b,
.login-brand-copy strong span {
  font-size: 32px;
}
.login-brand-copy strong span {
  margin-left: 5px;
}
.login-brand-copy small {
  margin-top: 14px;
  padding-bottom: 12px;
  font-size: 17px;
}
.login-brand-copy small::after {
  width: 32px;
  height: 3px;
}
.login-card {
  padding: 30px 32px 28px;
}
.login-card-head {
  margin-bottom: 20px;
}
.login-card-head h1 {
  font-size: 28px;
}
.login-card-head p {
  margin-top: 8px;
  font-size: 13px;
}
.login-field {
  margin-bottom: 11px;
}
.login-control {
  height: 48px;
}
.login-field-icon {
  width: 39px;
  font-size: 17px;
}
.login-control input {
  font-size: 14px;
}
.login-password-toggle {
  width: 34px;
  font-size: 15px;
}
.login-captcha-row {
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
}
.login-captcha {
  height: 48px;
  font-size: 18px;
  letter-spacing: 4px;
}
.login-options {
  margin-bottom: 10px;
  font-size: 12px;
}
.login-remember input {
  width: 16px;
  height: 16px;
}
.login-forgot {
  font-size: 12px;
}
.login-submit {
  height: 48px;
  font-size: 15px;
}
.login-decor-top {
  width: 210px;
  height: 210px;
}
.login-decor-bottom {
  height: 190px;
}

@media (max-width: 1050px) {
  .login-shell {
    width: min(580px, calc(100% - 36px));
  }
  .login-brand {
    min-height: 292px;
    padding-bottom: 48px;
  }
  .login-badge {
    margin-left: 12px;
  }
  .login-brand-main {
    margin-top: 24px;
    gap: 16px;
  }
  .login-mascot-wrap {
    width: 142px;
  }
  .login-brand-copy strong b,
  .login-brand-copy strong span {
    font-size: 28px;
  }
  .login-brand-copy small {
    font-size: 16px;
  }
  .login-card {
    width: min(100%, 440px);
  }
}

@media (max-width: 600px) {
  .login-shell {
    width: calc(100% - 20px);
  }
  .login-brand {
    min-height: 250px;
    padding-bottom: 36px;
  }
  .login-badge {
    height: 30px;
    margin-left: 2px;
    padding: 0 10px;
    gap: 7px;
    font-size: 10px;
  }
  .login-badge-icon {
    width: 15px;
    height: 10px;
  }
  .login-brand-main {
    gap: 7px;
    margin-top: 20px;
  }
  .login-mascot-wrap {
    width: 102px;
  }
  .login-brand-copy strong b,
  .login-brand-copy strong span {
    font-size: 19px;
  }
  .login-brand-copy strong span {
    margin-left: 3px;
  }
  .login-brand-copy small {
    margin-top: 9px;
    padding-bottom: 9px;
    font-size: 12px;
  }
  .login-brand-copy small::after {
    width: 27px;
    height: 2px;
  }
  .login-card {
    padding: 24px 16px 22px;
  }
  .login-card-head {
    margin-bottom: 17px;
  }
  .login-card-head h1 {
    font-size: 25px;
  }
  .login-card-head p {
    font-size: 13px;
  }
  .login-control,
  .login-captcha {
    height: 46px;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 102px;
    gap: 8px;
  }
  .login-captcha {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .login-decor-top {
    width: 160px;
    height: 160px;
  }
  .login-decor-bottom {
    height: 160px;
  }
}

/* Reference image login recreation */
.login-screen {
  height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 44%, rgba(255, 255, 255, .95) 0 22%, rgba(255, 242, 230, .58) 48%, transparent 72%),
    linear-gradient(115deg, #fffdf9 0%, #fff9f2 43%, #fff2e4 100%);
}
.login-screen::before {
  display: none;
}
.login-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  height: clamp(118px, 17vh, 170px);
  background: linear-gradient(180deg, rgba(255, 244, 233, 0) 0%, rgba(255, 230, 207, .56) 58%, rgba(255, 210, 168, .9) 100%);
  pointer-events: none;
}
.login-shell {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  margin: 0;
  position: relative;
  z-index: 2;
}
.login-brand,
.login-decor {
  display: none;
}
.login-visual {
  position: absolute;
  left: clamp(42px, 7.2vw, 104px);
  top: 50%;
  z-index: 2;
  width: clamp(280px, 28vw, 392px);
  transform: translateY(-50%);
}
.login-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.login-card {
  position: absolute;
  top: 8.2%;
  right: 7%;
  width: 38.3%;
  height: 78.5%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(34px, 5.35vh, 52px) clamp(46px, 3.85vw, 66px) 16px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  z-index: 3;
}
.login-card-head {
  flex: none;
  margin: 0 0 clamp(18px, 2.9vh, 29px);
  text-align: center;
}
.login-card-head h1 {
  margin: 0;
  color: #111;
  font-size: clamp(27px, 2.3vw, 39px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}
.login-card-head p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(7px, 1.15vh, 12px) 0 0;
  color: #9b9b9b;
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.4;
  white-space: nowrap;
}
.login-card-head p::before,
.login-card-head p::after {
  content: "";
  width: clamp(22px, 2.3vw, 38px);
  height: 2px;
  display: block;
  border-radius: 99px;
  background: #ff9a45;
  box-shadow: 8px 0 0 -1px #ff9a45;
}
.login-card-head p::after {
  box-shadow: -8px 0 0 -1px #ff9a45;
}
.login-field {
  flex: none;
  display: grid;
  gap: 6px;
  margin: 0 0 clamp(10px, 1.55vh, 16px);
}
.login-screen .login-field .login-field-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: #151515;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.login-control {
  min-width: 0;
  height: clamp(40px, 4.9vh, 48px);
  display: flex;
  align-items: center;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  background: #fff;
}
.login-field-icon {
  width: clamp(38px, 3vw, 50px);
  flex: none;
  color: #8d939d;
  font-size: clamp(18px, 1.45vw, 24px);
  text-align: center;
}
.login-control input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: #34383e;
  background: transparent;
  font-size: clamp(15px, 1.12vw, 18px);
}
.login-control input::placeholder {
  color: #a2a5aa;
}
.login-control:focus-within {
  border-color: #ff8a16;
  box-shadow: 0 0 0 3px rgba(255, 138, 22, .1);
}
.login-password-toggle {
  width: clamp(38px, 3vw, 50px);
  height: 100%;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 0;
  color: #8d939d;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}
.login-password-toggle:hover {
  color: #ff790d;
}
.login-password-toggle:focus-visible {
  outline: 2px solid rgba(255, 138, 22, .28);
  outline-offset: -4px;
}
.login-eye {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}
.login-eye::before,
.login-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform .16s ease, opacity .16s ease, width .16s ease, height .16s ease, border-color .16s ease, background .16s ease;
}
.login-eye::before {
  width: 20px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 70% 70% 72% 72% / 58% 58% 52% 52%;
  transform: translate(-50%, -50%);
}
.login-eye::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.login-password-toggle:not(.is-visible) .login-eye::before {
  width: 19px;
  height: 9px;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 18px 18px;
  transform: translate(-50%, -66%) rotate(-4deg);
}
.login-password-toggle:not(.is-visible) .login-eye::after {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  opacity: .9;
  transform: translate(-50%, -50%) rotate(-35deg);
}
.login-captcha-field {
  margin-bottom: clamp(8px, 1.15vh, 12px);
}
.login-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 33.5%) clamp(20px, 2.2vw, 34px);
  gap: clamp(8px, 1vw, 16px);
}
.login-captcha {
  height: clamp(40px, 4.9vh, 48px);
  overflow: hidden;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  color: #f18a11;
  background:
    radial-gradient(circle at 14% 30%, rgba(56, 124, 237, .42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 68%, rgba(117, 57, 214, .35) 0 1px, transparent 1.5px),
    linear-gradient(28deg, transparent 0 48%, rgba(241, 138, 17, .2) 49% 50%, transparent 51%),
    #fbfcff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.85vw, 31px);
  letter-spacing: clamp(4px, .5vw, 8px);
  white-space: nowrap;
}
.login-captcha:hover {
  border-color: #ffb36b;
}
.login-captcha-refresh {
  height: clamp(40px, 4.9vh, 48px);
  padding: 0;
  border: 0;
  color: #676b72;
  background: transparent;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1;
}
.login-options {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 clamp(12px, 1.75vh, 18px);
  color: #9b9b9b;
  font-size: clamp(13px, .95vw, 16px);
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.login-remember input {
  width: clamp(15px, 1.3vw, 19px);
  height: clamp(15px, 1.3vw, 19px);
  margin: 0;
  accent-color: #ff790d;
}
.login-forgot {
  padding: 0;
  border: 0;
  color: #ff790d;
  background: transparent;
  font-size: inherit;
}
.login-error {
  min-height: 0;
  margin: 0;
  color: #e34d59;
  font-size: 13px;
}
.login-error:empty {
  display: none;
}
.login-error:not(:empty) {
  margin: -8px 0 10px;
}
.login-submit {
  flex: none;
  width: 100%;
  height: clamp(40px, 5vh, 49px);
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #ff790d;
  font-size: clamp(15px, 1.18vw, 19px);
  font-weight: 600;
  box-shadow: none;
}
.login-submit:hover {
  background: #f36f00;
}
.login-demo {
  width: clamp(40px, 3.35vw, 52px);
  height: clamp(40px, 3.35vw, 52px);
  display: grid;
  place-items: center;
  align-self: center;
  margin: clamp(10px, 1.5vh, 15px) auto 0;
  padding: 0;
  border: 1px solid #ffb36b;
  border-radius: 50%;
  background: #fff;
}
.login-demo:hover {
  background: #fff8f1;
}
.login-demo img {
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.login-other {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(13px, 2vh, 20px);
  color: #a6a6a6;
  font-size: clamp(12px, .9vw, 15px);
  white-space: nowrap;
}
.login-other::before,
.login-other::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e2e2;
}

@media (max-width: 1050px) {
  .login-screen {
    height: auto;
    min-height: 100svh;
    overflow: auto;
    padding: 28px 16px 36px;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 236, 198, .78) 0 18%, transparent 40%),
      linear-gradient(180deg, #fffefa 0%, #fffdf9 70%, #f8fbef 100%);
  }
  .login-shell {
    width: min(640px, 100%);
    height: auto;
    min-height: 0;
    display: grid;
    gap: 18px;
    margin: 0 auto;
  }
  .login-brand {
    display: none;
  }
  .login-visual {
    position: relative;
    left: auto;
    top: auto;
    width: min(420px, 88vw);
    margin: 0 auto;
    transform: none;
  }
  .login-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    padding: 30px clamp(22px, 6vw, 44px) 22px;
    border-radius: 16px;
    box-shadow: none;
  }
  .login-card-head h1 {
    font-size: clamp(27px, 5vw, 36px);
  }
  .login-card-head p {
    font-size: 15px;
  }
  .login-field .login-field-label {
    font-size: 15px;
  }
  .login-control,
  .login-captcha,
  .login-captcha-refresh {
    height: 46px;
  }
  .login-control input {
    font-size: 15px;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 135px 28px;
    gap: 10px;
  }
  .login-submit {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .login-screen {
    padding: 18px 12px 28px;
  }
  .login-shell {
    gap: 16px;
  }
  .login-brand {
    display: none;
  }
  .login-visual {
    width: min(320px, 90vw);
  }
  .login-card {
    padding: 24px 18px 18px;
  }
  .login-card-head {
    margin-bottom: 18px;
  }
  .login-card-head h1 {
    font-size: 26px;
  }
  .login-card-head p {
    gap: 9px;
    font-size: 13px;
  }
  .login-card-head p::before,
  .login-card-head p::after {
    width: 20px;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 106px 25px;
    gap: 7px;
  }
  .login-options {
    font-size: 13px;
  }
  .login-other {
    margin-top: 20px;
    font-size: 13px;
  }
}

/* Clean login reset */
body.login-mode {
  background: #f7f8fb;
}
body.login-mode .login-screen {
  min-height: 100svh;
  height: auto;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  overflow: auto;
  background: #f7f8fb;
}
body.login-mode .login-screen::before,
body.login-mode .login-screen::after,
body.login-mode .login-brand,
body.login-mode .login-visual,
body.login-mode .login-decor,
body.login-mode .login-other,
body.login-mode .login-demo {
  display: none;
}
body.login-mode .login-shell {
  width: min(430px, 100%);
  height: auto;
  min-height: 0;
  display: block;
  margin: 0;
  position: relative;
  z-index: 1;
}
body.login-mode .login-card {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 34px 34px 30px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
body.login-mode .login-card-head {
  margin: 0 0 26px;
  text-align: center;
}
body.login-mode .login-card-head h1 {
  margin: 0;
  color: #1d2129;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}
body.login-mode .login-card-head p {
  display: block;
  margin: 8px 0 0;
  color: #86909c;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}
body.login-mode .login-card-head p::before,
body.login-mode .login-card-head p::after {
  display: none;
}
body.login-mode .login-field {
  gap: 7px;
  margin: 0 0 17px;
}
body.login-mode .login-field .login-field-label {
  color: #1d2129;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
body.login-mode .login-control,
body.login-mode .login-captcha,
body.login-mode .login-captcha-refresh {
  height: 44px;
}
body.login-mode .login-control {
  border-color: #dfe3eb;
  border-radius: 8px;
}
body.login-mode .login-field-icon {
  width: 42px;
  font-size: 18px;
}
body.login-mode .login-control input {
  font-size: 14px;
}
body.login-mode .login-captcha-row {
  grid-template-columns: minmax(0, 1fr) 118px 34px;
  gap: 10px;
}
body.login-mode .login-captcha {
  font-size: 22px;
  letter-spacing: 5px;
}
body.login-mode .login-options {
  margin: 0 0 20px;
  font-size: 14px;
}
body.login-mode .login-submit {
  height: 44px;
  border-radius: 8px;
  font-size: 16px;
}

@media (max-width: 520px) {
  body.login-mode .login-card {
    padding: 28px 20px 24px;
  }
  body.login-mode .login-card-head h1 {
    font-size: 23px;
  }
  body.login-mode .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 104px 32px;
    gap: 8px;
  }
}

/* Reference login page */
body.login-mode {
  background: #fff;
}
body.login-mode .app {
  display: none;
}
body.is-authenticated .login-screen {
  display: none;
}
body.is-authenticated .app {
  display: grid;
}
body.login-mode .login-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100svh;
  height: 100vh;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff url("assets/login-full-reference.png") center center / cover no-repeat;
}
body.login-mode .login-screen::before,
body.login-mode .login-screen::after,
body.login-mode .login-brand,
body.login-mode .login-visual,
body.login-mode .login-decor {
  display: none;
}
body.login-mode .login-card {
  position: absolute;
  left: 55.02%;
  top: 6.25%;
  width: 39.24%;
  height: 86.18%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(47px, 7.35vh, 70px) 4.08% 24px;
  border: 0;
  border-radius: clamp(18px, 1.45vw, 24px);
  background: #fff;
  box-shadow: none;
  z-index: 2;
}
body.login-mode .login-card-head {
  flex: none;
  margin: 0 0 clamp(29px, 5.2vh, 49px);
  text-align: center;
}
body.login-mode .login-card-head h1 {
  margin: 0;
  color: #101010;
  font-size: clamp(30px, 2.58vw, 44px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
  white-space: nowrap;
}
body.login-mode .login-card-head p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(11px, .9vw, 15px);
  margin: clamp(9px, 1.55vh, 15px) 0 0;
  color: #969ba2;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.35;
  white-space: nowrap;
}
body.login-mode .login-card-head p::before,
body.login-mode .login-card-head p::after {
  content: "";
  width: clamp(27px, 2.5vw, 42px);
  height: 2px;
  display: block;
  border-radius: 99px;
  background: #ff8a22;
  box-shadow: 8px 0 0 -1px #ff8a22;
}
body.login-mode .login-card-head p::after {
  box-shadow: -8px 0 0 -1px #ff8a22;
}
body.login-mode .login-field {
  flex: none;
  display: grid;
  gap: clamp(8px, 1.05vh, 10px);
  margin: 0 0 clamp(21px, 3.2vh, 31px);
}
body.login-mode .login-captcha-field {
  margin-bottom: clamp(12px, 1.95vh, 19px);
}
body.login-mode .login-field .login-field-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: #111;
  font-size: clamp(15px, 1.12vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
body.login-mode .login-control,
body.login-mode .login-captcha,
body.login-mode .login-captcha-refresh {
  height: clamp(44px, 5.65vh, 54px);
}
body.login-mode .login-control {
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  background: #fff;
}
body.login-mode .login-control:focus-within {
  border-color: #ff8a16;
  box-shadow: 0 0 0 3px rgba(255, 138, 22, .1);
}
body.login-mode .login-field-icon {
  width: clamp(42px, 3.55vw, 58px);
  flex: none;
  color: #9299a3;
  font-size: clamp(17px, 1.3vw, 22px);
  text-align: center;
}
body.login-mode .login-control input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: #34383e;
  background: transparent;
  font-size: clamp(14px, 1.08vw, 18px);
}
body.login-mode .login-control input::placeholder {
  color: #a5acb8;
}
body.login-mode .login-password-toggle {
  width: clamp(42px, 3.2vw, 52px);
  height: 100%;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #8d939d;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}
body.login-mode .login-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 52.6%) minmax(126px, 32.7%) clamp(26px, 2.2vw, 36px);
  gap: clamp(10px, 1.35vw, 22px);
}
body.login-mode .login-captcha {
  overflow: hidden;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  color: #f18a11;
  background:
    radial-gradient(circle at 14% 30%, rgba(56, 124, 237, .42) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 68%, rgba(117, 57, 214, .35) 0 1.5px, transparent 2px),
    linear-gradient(28deg, transparent 0 48%, rgba(241, 138, 17, .22) 49% 50%, transparent 51%),
    #fbfcff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.6vw, 27px);
  font-weight: 400;
  letter-spacing: clamp(4px, .45vw, 8px);
  white-space: nowrap;
}
body.login-mode .login-captcha-refresh {
  padding: 0;
  border: 0;
  color: #676b72;
  background: transparent;
  font-size: clamp(24px, 1.95vw, 32px);
  line-height: 1;
}
body.login-mode .login-options {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 clamp(21px, 3.1vh, 30px);
  color: #9a9fa8;
  font-size: clamp(14px, 1.04vw, 18px);
}
body.login-mode .login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
body.login-mode .login-remember input {
  width: clamp(17px, 1.45vw, 22px);
  height: clamp(17px, 1.45vw, 22px);
  margin: 0;
  accent-color: #ff790d;
}
body.login-mode .login-forgot {
  padding: 0;
  border: 0;
  color: #ff790d;
  background: transparent;
  font-size: inherit;
}
body.login-mode .login-error {
  min-height: 0;
  margin: 0;
  color: #e34d59;
  font-size: 13px;
}
body.login-mode .login-error:empty {
  display: none;
}
body.login-mode .login-error:not(:empty) {
  margin: -8px 0 10px;
}
body.login-mode .login-submit {
  flex: none;
  width: 100%;
  height: clamp(45px, 5.8vh, 56px);
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #ff790d;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 600;
  box-shadow: none;
}
body.login-mode .login-submit:hover {
  background: #f36f00;
}
body.login-mode .login-other {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 17px);
  margin-top: clamp(29px, 4.65vh, 44px);
  color: #a6a6a6;
  font-size: clamp(13px, 1vw, 17px);
  white-space: nowrap;
}
body.login-mode .login-other::before,
body.login-mode .login-other::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e2e2;
}
body.login-mode .login-demo {
  width: clamp(48px, 4vw, 62px);
  height: clamp(48px, 4vw, 62px);
  display: grid;
  place-items: center;
  align-self: center;
  margin: clamp(14px, 2.1vh, 22px) auto 0;
  padding: 0;
  border: 1px solid #ffb36b;
  border-radius: 50%;
  background: #fff;
}
body.login-mode .login-demo img {
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

@media (max-aspect-ratio: 16 / 10), (max-width: 980px) {
  body.login-mode .login-screen {
    overflow: auto;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 236, 198, .78) 0 18%, transparent 40%),
      linear-gradient(180deg, #fffefa 0%, #fffdf9 70%, #f8fbef 100%);
  }
  body.login-mode .login-card {
    position: relative;
    left: auto;
    top: auto;
    width: min(520px, calc(100vw - 32px));
    height: auto;
    margin: 32px auto;
    padding: 38px clamp(24px, 7vw, 52px) 28px;
  }
}

/* Reference login recreation v2 */
body.login-mode {
  overflow: hidden;
  background: #fff;
}
body.login-mode .login-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
body.login-mode .login-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: none;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0 50%, rgba(255, 247, 238, .86) 60%, rgba(255, 245, 231, .96) 100%),
    url("assets/login-bg-left-clean.png") left center / auto 100% no-repeat,
    linear-gradient(112deg, #fff 0%, #fff7ee 68%, #ffeddb 100%);
  container-type: size;
}

@media (max-aspect-ratio: 4 / 3) {
  body.login-mode .login-frame {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .12) 0 42%, rgba(255, 247, 238, .9) 58%, rgba(255, 245, 231, .98) 100%),
      url("assets/login-bg-left-clean.png") left center / 62% 100% no-repeat,
      linear-gradient(112deg, #fff 0%, #fff7ee 68%, #ffeddb 100%);
  }
}
body.login-mode .login-screen::before,
body.login-mode .login-screen::after,
body.login-mode .login-brand,
body.login-mode .login-visual,
body.login-mode .login-decor {
  display: none;
}
body.login-mode .login-card {
  position: absolute;
  left: auto;
  right: 7.3%;
  top: 50%;
  width: clamp(320px, 39.15%, 560px);
  max-width: calc(100vw - 40px);
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  transform: translateY(-50%);
  padding: 5.35cqh 4.08cqw 2.25cqh;
  border: 0;
  border-radius: 1.45cqw;
  background: #fff;
  box-shadow: 0 14px 44px rgba(255, 121, 13, .11);
  z-index: 2;
}
body.login-mode .login-card-head {
  flex: none;
  margin: 0 0 3.65cqh;
  text-align: center;
}
body.login-mode .login-card-head h1 {
  margin: 0;
  color: #101010;
  font-size: 2.58cqw;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}
body.login-mode .login-card-head p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9cqw;
  margin: 1.35cqh 0 0;
  color: #969ba2;
  font-size: 1.22cqw;
  line-height: 1.35;
  white-space: nowrap;
}
body.login-mode .login-card-head p::before,
body.login-mode .login-card-head p::after {
  content: "";
  width: 2.48cqw;
  height: .21cqh;
  display: block;
  border-radius: 999px;
  background: #ff8a22;
  box-shadow: .47cqw 0 0 -.05cqw #ff8a22;
}
body.login-mode .login-card-head p::after {
  box-shadow: -.47cqw 0 0 -.05cqw #ff8a22;
}
body.login-mode .login-field {
  flex: none;
  display: grid;
  gap: .92cqh;
  margin: 0 0 2.15cqh;
}
body.login-mode .login-captcha-field {
  margin-bottom: 1.3cqh;
}
body.login-mode .login-field .login-field-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: #111;
  font-size: 1.08cqw;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
body.login-mode .login-control,
body.login-mode .login-captcha,
body.login-mode .login-captcha-refresh {
  height: 5.75cqh;
}
body.login-mode .login-control {
  min-width: 0;
  display: flex;
  align-items: center;
  border: .06cqw solid #dfe2e7;
  border-radius: .36cqw;
  background: #fff;
}
body.login-mode .login-control:focus-within {
  border-color: #ff8a16;
  box-shadow: 0 0 0 .18cqw rgba(255, 138, 22, .1);
}
body.login-mode .login-field-icon {
  width: 2.48cqw;
  height: 2.48cqw;
  flex: none;
  display: grid;
  place-items: center;
  margin-left: .55cqw;
  border: .06cqw solid #e4e6eb;
  border-radius: .18cqw;
  color: #9aa0a9;
  background: #fff;
  font-size: 0;
  overflow: hidden;
}
body.login-mode .login-field-icon svg {
  width: 1.16cqw;
  height: 1.16cqw;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.login-mode .login-icon-user svg {
  width: 1.02cqw;
  height: 1.02cqw;
}
body.login-mode .login-icon-lock svg {
  width: 1.08cqw;
  height: 1.08cqw;
}
body.login-mode .login-icon-shield svg {
  width: 1.1cqw;
  height: 1.1cqw;
}
body.login-mode .login-control input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 .72cqw 0 .78cqw;
  border: 0;
  outline: 0;
  color: #34383e;
  background: transparent;
  font-size: 1.08cqw;
  line-height: 1;
}
body.login-mode .login-control input::placeholder {
  color: #a5acb8;
}
body.login-mode .login-password-toggle {
  width: 3.08cqw;
  height: 100%;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}
body.login-mode .login-password-toggle:hover {
  color: #ff790d;
}
body.login-mode .login-eye {
  width: 1.22cqw;
  height: 1.22cqw;
  display: grid;
  place-items: center;
}
body.login-mode .login-eye svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.login-mode .login-eye-open {
  display: none;
}
body.login-mode .login-password-toggle.is-visible .login-eye-off {
  display: none;
}
body.login-mode .login-password-toggle.is-visible .login-eye-open {
  display: block;
}
body.login-mode .login-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 52.5%) minmax(0, 32.7%) 2.12cqw;
  gap: 1.28cqw;
}
body.login-mode .login-captcha {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .56cqw;
  padding: 0 .5cqw;
  border: .06cqw solid #dfe2e7;
  border-radius: .36cqw;
  background:
    radial-gradient(circle at 14% 30%, rgba(56, 124, 237, .42) 0 .08cqw, transparent .11cqw),
    radial-gradient(circle at 78% 68%, rgba(117, 57, 214, .35) 0 .08cqw, transparent .11cqw),
    linear-gradient(28deg, transparent 0 48%, rgba(241, 138, 17, .22) 49% 50%, transparent 51%),
    #fbfcff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62cqw;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
body.login-mode .login-captcha .login-captcha-num {
  font-size: 2.02cqw;
}
body.login-mode .login-captcha-num.num-1 { color: #f27b16; }
body.login-mode .login-captcha-num.num-2 { color: #1664ff; }
body.login-mode .login-captcha-num.num-3 { color: #18a957; }
body.login-mode .login-captcha-num.num-4 { color: #8b5cf6; }
body.login-mode .login-captcha .login-captcha-num {
  display: inline-block;
  color: var(--captcha-color, #ff7d00) !important;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 .08cqh .08cqh rgba(255, 255, 255, .65);
}
body.login-mode .login-captcha .login-captcha-num:nth-child(odd) {
  transform: rotate(-4deg);
}
body.login-mode .login-captcha .login-captcha-num:nth-child(even) {
  transform: rotate(5deg);
}
body.login-mode .login-captcha-refresh {
  padding: 0;
  border: 0;
  color: #676b72;
  background: transparent;
  font-size: 1.85cqw;
  line-height: 1;
}
body.login-mode .login-options {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7cqw;
  margin: 0 0 2.1cqh;
  color: #9a9fa8;
  font-size: 1.04cqw;
  line-height: 1.3;
}
body.login-mode .login-remember {
  display: inline-flex;
  align-items: center;
  gap: .52cqw;
  cursor: pointer;
}
body.login-mode .login-remember input {
  width: 1.18cqw;
  height: 1.18cqw;
  margin: 0;
  accent-color: #ff790d;
}
body.login-mode .login-forgot {
  padding: 0;
  border: 0;
  color: #ff790d;
  background: transparent;
  font-size: inherit;
}
body.login-mode .login-error {
  min-height: 0;
  margin: 0;
  color: #e34d59;
  font-size: .78cqw;
}
body.login-mode .login-error:empty {
  display: none;
}
body.login-mode .login-error:not(:empty) {
  margin: -.85cqh 0 1cqh;
}
body.login-mode .login-submit {
  flex: none;
  width: 100%;
  height: 5.95cqh;
  border: 0;
  border-radius: .36cqw;
  color: #fff;
  background: #ff790d;
  font-size: 1.3cqw;
  font-weight: 600;
  box-shadow: none;
}
body.login-mode .login-submit:hover {
  background: #f36f00;
}
body.login-mode .login-other {
  display: flex;
  align-items: center;
  gap: .98cqw;
  margin-top: 3cqh;
  color: #a6a6a6;
  font-size: 1cqw;
  line-height: 1.3;
  white-space: nowrap;
}
body.login-mode .login-other::before,
body.login-mode .login-other::after {
  content: "";
  height: .11cqh;
  flex: 1;
  background: #e2e2e2;
}
body.login-mode .login-demo {
  width: 3.55cqw;
  height: 3.55cqw;
  display: grid;
  place-items: center;
  align-self: center;
  margin: 1.1cqh auto 0;
  padding: 0;
  border: .06cqw solid #ffb36b;
  border-radius: 50%;
  background: #fff;
}
body.login-mode .login-demo img {
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

@supports not (font-size: 1cqw) {
  body.login-mode .login-card {
    padding: clamp(47px, 7.35vh, 70px) 4.08% 24px;
  }
  body.login-mode .login-card-head h1 {
    font-size: clamp(30px, 2.58vw, 44px);
  }
  body.login-mode .login-card-head p,
  body.login-mode .login-field .login-field-label,
  body.login-mode .login-control input {
    font-size: clamp(14px, 1.08vw, 18px);
  }
  body.login-mode .login-control,
  body.login-mode .login-captcha,
  body.login-mode .login-captcha-refresh {
    height: clamp(44px, 5.65vh, 54px);
  }
  body.login-mode .login-captcha .login-captcha-num {
    font-size: clamp(28px, 1.92vw, 40px);
  }
}

body.login-mode .login-remember input {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #ff790d;
  border-radius: 3px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78% 78%;
}

body.login-mode .login-remember input:checked {
  background-color: #ff790d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7.2L5.8 10L11 4.8' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
