:root {
  --color-primary: #DC2626;
  --color-primary-light: #FEF2F2;
  --color-primary-dark: #B91C1C;
  --color-text-title: #0F172A;
  --color-text-main: #334155;
  --color-text-sub: #64748B;
  --color-text-muted: #94A3B8;
  --color-bg-page: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-skeleton: #E2E8F0;
  --color-vip-dark: #1E293B;
  --color-vip-gold: #D4AF37;
  --color-vip-bg: #FEF3C7;
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-error: #DC2626;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  --gradient-vip: linear-gradient(135deg, #1E293B, #2D3A4F);
  --font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --text-hero: 32px;
  --text-h1: 22px;
  --text-h2: 18px;
  --text-h3: 16px;
  --text-body: 14px;
  --text-sm: 12px;
  --text-xs: 10px;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.8;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08);
  --shadow-primary: 0 8px 16px -4px rgba(220,38,38,0.2);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --size-touch-min: 44px;
  --red-1: var(--color-primary-dark);
  --red-2: var(--color-primary);
  --red-3: var(--color-primary);
  --gold-1: var(--color-warning);
  --gold-2: var(--color-vip-bg);
  --ink: var(--color-text-title);
  --ink-soft: var(--color-text-sub);
  --line: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: var(--color-primary-light);
}

.admin-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.admin-checkbox-list label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-family);
  font-size: var(--text-body);
  line-height: var(--line-height-normal);
}

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

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

button,
input,
textarea,
select {
  font-family: var(--font-family);
  font-size: var(--text-body);
}

h1,
.page-title,
.hero-title,
.mp-page-title,
.mp-section-hero-title {
  font-size: var(--text-h1);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}

h2,
.section-title,
.panel h2,
.card-title,
.module-title,
.mp-section-title,
.mp-block-title {
  font-size: var(--text-h2);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}

h3,
.list-title,
.school-title,
.item-title,
.slot-title,
.mp-school-name,
.mp-card-title {
  font-size: var(--text-h3);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}

p,
li,
.btn,
.chip,
.link-btn,
.menu-link,
.mp-body-text,
.mp-desc,
.mp-content,
.mp-rich-text {
  font-size: var(--text-body);
  line-height: var(--line-height-normal);
}

small,
.muted,
.badge,
.helper,
.subtext,
.tip,
.meta,
.mp-meta,
.mp-caption,
.mp-helper,
.mp-subtext {
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
}

.tabular-nums,
.is-tabular-num,
.hero-number,
.score-value,
.big-number,
.stat-value,
.metric-value,
.mp-score-value,
.mp-number-hero {
  font-variant-numeric: tabular-nums;
}

.hero-number,
.score-value,
.big-number,
.stat-value,
.metric-value,
.mp-score-value,
.mp-number-hero {
  font-size: var(--text-hero);
  line-height: 1;
  font-weight: var(--font-weight-extrabold);
}

.badge,
.chip,
.tag,
.pill,
.btn,
.link-btn,
.menu-link,
.mp-tabbar a span,
.mp-chip,
.mp-pill {
  font-weight: var(--font-weight-semibold);
}

button {
  cursor: pointer;
}

.container {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.front-body {
  background:
    radial-gradient(circle at top right, rgba(247, 185, 72, 0.2), transparent 32%),
    linear-gradient(180deg, #fff8f4 0%, #fff 30%, #fff6f2 100%);
}

.top-shell {
  padding: 14px 0 0;
}

.top-shell-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link,
.admin-link {
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-2), var(--red-3));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.admin-link {
  color: var(--red-1);
}

.fusion-header {
  padding: 20px 0 0;
}

.fusion-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.fusion-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fusion-brand-mark {
  min-width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--red-2), #7c0d1d);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  box-shadow: var(--shadow-xl);
}

.fusion-brand h1,
.section-title-row h2,
.detail-module-card h2,
.admin-card h2,
.login-card h1,
.hero-card h1 {
  margin: 0;
}

.fusion-brand p,
.admin-card p,
.hero-card p,
.muted {
  color: var(--ink-soft);
}

.notify-bell {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

.notify-dot {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red-2);
  box-shadow: 0 0 0 4px rgba(207, 31, 56, 0.12);
}

.search-hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #fff2e8);
  box-shadow: var(--shadow-xl);
}

.search-hero input,
.search-hero button,
.icon-card,
.filter-inline select,
.filter-inline button,
.toolbar-grid input,
.toolbar-grid button,
.toolbar-grid a,
.import-row input,
.import-row button,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-detail,
.btn-lite,
.form-item input,
.form-item textarea,
.form-item select {
  border-radius: 14px;
  border: 1px solid rgba(159, 16, 38, 0.12);
}

.search-hero input,
.filter-inline select,
.toolbar-grid input,
.form-item input,
.form-item textarea,
.form-item select {
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  color: var(--ink);
}

.search-hero button,
.btn-primary,
.filter-inline button,
.import-row button {
  background: linear-gradient(135deg, var(--red-2), var(--red-3));
  color: #fff;
  border: 0;
  padding: 14px 18px;
  box-shadow: 0 14px 28px rgba(207, 31, 56, 0.28);
}

.icon-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

.icon-card:hover,
.featured-card:hover,
.stream-card:hover,
.admin-card:hover,
.module-editor-card:hover {
  transform: translateY(-2px);
}

.icon-card.active {
  background: linear-gradient(145deg, #fff3ef, #fff);
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--red-2), #7f0c1d);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 14px 28px rgba(159, 16, 38, 0.22);
}

.headline-bar {
  padding: 18px 0 0;
}

.headline-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

.headline-tag {
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red-2), var(--red-3));
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.headline-marquee {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(90deg, #b3122d, #e33e48);
  color: #fff;
  padding: 16px 0;
}

.headline-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.featured-board,
.planner-panel,
.filter-strip,
.school-stream,
.detail-shell {
  padding-top: 24px;
}

.featured-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-card,
.planner-card,
.stream-card,
.detail-hero-card,
.detail-module-card,
.admin-card,
.login-card,
.module-editor-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,248,241,0.96));
  border: 1px solid rgba(177, 41, 63, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.featured-card {
  padding: 20px;
}

.featured-card-head,
.section-head,
.section-title-row,
.module-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.featured-card-head span,
.module-type-badge,
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-1);
}

.featured-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.featured-list a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(183, 32, 55, 0.06);
}

.planner-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.planner-stats {
  display: grid;
  gap: 12px;
}

.planner-stats span {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 185, 72, 0.16);
  font-weight: 700;
}

.filter-inline,
.toolbar-grid,
.import-row,
.batch-actions,
.form-actions,
.stream-actions,
.action-cell,
.guide-list,
.stats-grid,
.admin-sidebar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-inline {
  padding: 16px 0 0;
}

.filter-inline select,
.filter-inline button,
.toolbar-grid input,
.toolbar-grid button,
.toolbar-grid a,
.import-row input,
.import-row button,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-lite,
.btn-detail {
  padding: 11px 16px;
}

.stream-grid,
.stats-grid,
.detail-facility-grid,
.detail-kv-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

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

.stream-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  padding: 16px;
}

.mp-score-mode-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 248, 0.98), rgba(255, 241, 242, 0.96));
  border: 1px solid rgba(159, 18, 57, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mp-score-mode-switch span {
  color: #9f1239;
  font-weight: 700;
}

.mp-score-mode-switch div {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(159, 18, 57, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(148, 163, 184, 0.12);
}

.mp-score-mode-switch a {
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: #7f1d1d;
  font-weight: 700;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.mp-score-mode-switch a.active {
  background: linear-gradient(135deg, #be123c, #ef4444);
  color: #fff;
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.22);
}

.mp-profile-pro-page {
  padding-top: 16px;
}

.mp-profile-hero-3d {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #fff4ed);
  border: 1px solid rgba(185, 28, 28, 0.12);
  box-shadow: 0 24px 48px rgba(127, 29, 29, 0.16);
}

.mp-profile-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.24), transparent 70%);
  pointer-events: none;
}

.mp-profile-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.mp-profile-head h1 {
  margin: 6px 0;
}

.mp-profile-head-actions {
  display: flex;
  gap: 10px;
}

.mp-profile-kpi-grid {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(185, 28, 28, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 12px 24px rgba(127, 29, 29, 0.08);
}

.kpi-card span {
  color: #6b7280;
  font-size: 12px;
}

.kpi-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #111827;
}

.mp-profile-body-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.profile-kv-list {
  display: grid;
  gap: 10px;
}

.profile-kv-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
}

.profile-kv-list span {
  color: #6b7280;
}

.profile-kv-list strong {
  color: #111827;
}

.mp-profile-head small {
  color: #9a3412;
  font-weight: 700;
}

.mp-profile-points {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  font-weight: 700;
}

.mp-history-timeline {
  display: grid;
  gap: 10px;
}

.mp-history-item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.12);
}

.mp-history-item time {
  color: #6b7280;
  font-size: 12px;
}

.mp-history-item strong {
  color: #111827;
}

.mp-history-item p {
  margin: 4px 0 0;
  color: #374151;
}

@media (max-width: 980px) {
  .mp-profile-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mp-profile-body-grid {
    grid-template-columns: 1fr;
  }
  .mp-profile-head {
    flex-direction: column;
  }
}

.stream-hidden {
  display: none;
}

.stream-thumb-wrap {
  position: relative;
}

.stream-thumb,
.thumb-48,
.thumb-80,
.thumb-120,
.detail-logo,
.detail-custom-image {
  object-fit: cover;
  border-radius: 18px;
}

.stream-thumb {
  width: 100%;
  height: 160px;
  background: linear-gradient(145deg, #ffe8d1, #fff5ef);
}

.stream-thumb-empty,
.detail-logo-empty {
  display: block;
  background: linear-gradient(145deg, #ffe8d1, #fff5ef);
}

.stream-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(159, 16, 38, 0.88);
  color: #fff;
  font-size: 12px;
}

.stream-content h3,
.detail-hero-card h1 {
  margin: 0 0 8px;
}

.stream-meta,
.stream-score {
  color: var(--ink-soft);
  margin-top: 8px;
}

.btn-detail,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-lite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.btn-secondary,
.btn-lite {
  background: #fff;
  color: var(--red-1);
  box-shadow: inset 0 0 0 1px rgba(159, 16, 38, 0.12);
}

.btn-danger {
  background: linear-gradient(135deg, #91152a, #d92e47);
  color: #fff;
}

.load-more-row,
.pager {
  padding: 20px 0 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(159, 16, 38, 0.08);
}

.pager .active {
  background: linear-gradient(135deg, var(--red-2), var(--red-3));
  color: #fff;
}

.pager-meta {
  color: #6b7280;
  font-size: 13px;
  padding: 0 8px;
}

.detail-hero-card,
.detail-module-card,
.admin-card,
.module-editor-card,
.login-card {
  padding: 24px;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 1.6fr 320px;
  gap: 18px;
}

.detail-hero-main {
  display: flex;
  gap: 16px;
}

.detail-logo {
  width: 118px;
  height: 118px;
}

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

.score-pod {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(159,16,38,0.9), rgba(246,79,79,0.84));
  color: #fff;
  box-shadow: 0 16px 32px rgba(159, 16, 38, 0.25);
}

.score-pod strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

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

.detail-kv-grid > div,
.facility-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(183, 32, 55, 0.05);
}

.detail-kv-grid span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.detail-kv-grid strong {
  display: block;
  margin-top: 8px;
}

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

.rich-output {
  line-height: 1.8;
}

.rich-output img,
.detail-custom-image {
  max-width: 100%;
}

.detail-custom-image {
  width: 100%;
  max-height: 460px;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(183, 32, 55, 0.08);
  color: var(--red-1);
  font-size: 13px;
}

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

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(159, 16, 38, 0.08);
  vertical-align: top;
}

.data-table th {
  color: var(--red-1);
  background: rgba(183, 32, 55, 0.04);
}

.thumb-48 {
  width: 48px;
  height: 48px;
}

.thumb-80 {
  width: 80px;
  height: 80px;
  margin-top: 10px;
}

.thumb-120 {
  width: 120px;
  height: 120px;
  margin-top: 10px;
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(247,185,72,0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(246,79,79,0.15), transparent 22%),
    linear-gradient(180deg, #fff7f1 0%, #fff 55%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, #6f0c1e 0%, #a8162d 36%, #7b0e1d 100%);
  color: #fff;
  box-shadow: 24px 0 60px rgba(111, 12, 30, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.36) transparent;
}

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

.admin-brand-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold-1), #fff0b6);
  color: #7b0e1d;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(0,0,0,0.22);
}

.admin-brand-title {
  font-size: 22px;
  font-weight: 700;
}

.admin-brand-sub {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  flex: 1;
  overflow: visible;
  min-height: 0;
  padding-right: 4px;
  padding-bottom: 14px;
}

.admin-nav-group {
  margin-top: 10px;
}

.admin-nav-group-title {
  padding: 8px 12px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.admin-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-nav-link.active {
  background: linear-gradient(135deg, #ef4444, #be123c);
  box-shadow: 0 8px 22px rgba(190, 18, 60, 0.35);
}

.admin-sidebar-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.admin-nav-group-fold {
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.admin-nav-group-fold summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav-group-fold summary::after {
  content: "+";
  opacity: 0.78;
}

.admin-nav-group-fold[open] summary::after {
  content: "-";
}

.admin-nav-group-fold.has-active > summary {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.admin-nav-group-content {
  padding: 0 8px 8px;
  display: grid;
  gap: 6px;
}

.admin-nav-empty {
  display: block;
  padding: 8px 10px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}

.admin-main-panel {
  padding: 24px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-topbar-title {
  font-size: 32px;
  font-weight: 800;
}

.admin-topbar-sub {
  color: var(--ink-soft);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 320px;
  gap: 18px;
}

.hero-card-orb {
  justify-self: end;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.92), rgba(255,255,255,0.16) 28%, transparent 42%),
    linear-gradient(145deg, rgba(246,79,79,0.9), rgba(247,185,72,0.82));
  box-shadow: inset 0 18px 28px rgba(255,255,255,0.28), 0 36px 60px rgba(159, 16, 38, 0.2);
  transform: rotate(-18deg);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(247,185,72,0.16), rgba(246,79,79,0.15));
  transform: rotate(20deg);
}

.stat-label {
  color: var(--ink-soft);
  font-size: 14px;
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 42px;
  font-weight: 800;
}

.guide-list {
  display: grid;
}

.guide-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(183, 32, 55, 0.05);
}

.toolbar-grid {
  margin-top: 18px;
}

.toolbar-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.import-row {
  margin-top: 14px;
  align-items: center;
}

.batch-actions {
  margin: 18px 0 12px;
}

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

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-item.full,
.form-actions.full {
  grid-column: 1 / -1;
}

.form-item textarea {
  min-height: 120px;
  resize: vertical;
}

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

.editor-toolbar button {
  border: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(183, 32, 55, 0.08);
  color: var(--red-1);
}

.rich-editor {
  min-height: 220px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(159, 16, 38, 0.08);
  line-height: 1.8;
}

.editor-source {
  display: none;
}

.module-editor-card {
  margin-bottom: 16px;
}

.module-system-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 185, 72, 0.18);
}

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
}

.alert-ok {
  background: #ecfdf3;
  color: #166534;
}

.alert-error {
  background: #fff1f2;
  color: #9f1239;
}

.login-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(520px, calc(100vw - 32px));
}

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

.btn-large {
  min-height: 54px;
}

.simple-page {
  padding: 48px 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .icon-grid,
  .featured-board,
  .stats-grid,
  .stream-grid,
  .detail-facility-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell,
  .planner-card,
  .hero-card,
  .detail-hero-card {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100vw - 20px, 1240px);
  }

  .fusion-topbar,
  .headline-inner,
  .stream-card,
  .detail-hero-main {
    grid-template-columns: 1fr;
    display: grid;
  }

  .icon-grid,
  .featured-board,
  .stats-grid,
  .stream-grid,
  .detail-facility-grid,
  .detail-kv-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-hero {
    grid-template-columns: 1fr;
  }

  .stream-card {
    grid-template-columns: 1fr;
  }

  .stream-thumb {
    height: 200px;
  }
}

/* Mini Program Style - Frontend */
.front-body {
  background: #f5f6f8;
  color: #1f2937;
}

.front-body .top-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0;
  backdrop-filter: blur(8px);
  background: rgba(245, 246, 248, 0.9);
}

.front-body .brand-mark {
  background: linear-gradient(135deg, #c71629, #e13d31);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 16px rgba(199, 22, 41, 0.22);
}

.mp-home-wrap {
  padding: 10px 0 0;
}

.mp-header-card,
.mp-feature-card,
.mp-school-card,
.mp-detail-hero,
.mp-detail-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
}

.mp-header-card {
  padding: 14px;
}

.mp-brand-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
}

.mp-brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #c71629, #ee5555);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.mp-brand-meta h1 {
  margin: 0;
  font-size: 20px;
}

.mp-brand-meta p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.mp-notice-btn {
  border: 0;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 999px;
  padding: 10px 12px;
  position: relative;
}

.mp-notice-btn i {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #ef4444;
}

.mp-search {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
  margin-top: 12px;
}

.mp-search input,
.mp-filter select {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fafb;
}

.mp-search button,
.mp-btn,
.mp-filter button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #c71629, #e13d31);
  color: var(--color-on-primary, #fff);
  padding: 11px 14px;
  font-weight: 600;
}

.mp-grid-entrance {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mp-grid-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1px solid #fee2e2;
  background: #fff8f8;
}

.mp-grid-item b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #d4242f;
  color: #fff;
  margin-bottom: 6px;
}

.mp-grid-item span {
  display: block;
  color: #b91c1c;
  font-size: 12px;
}

.mp-grid-item.is-active {
  background: #fee2e2;
}

.mp-ticker {
  margin-top: 12px;
}

.mp-ticker-inner {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
}

.mp-ticker-inner strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 5px 10px;
  font-size: 12px;
}

.mp-ticker-window {
  overflow: hidden;
}

.mp-ticker-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.mp-feature {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mp-feature-card {
  padding: 14px;
}

.mp-feature-card h2 {
  margin: 0;
  font-size: 16px;
}

.mp-feature-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.mp-feature-list a {
  background: #f9fafb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

.mp-filter-panel {
  margin-top: 6px;
}

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

.mp-stream {
  margin-top: 8px;
  padding-bottom: 20px;
}

.mp-stream-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mp-stream-head small {
  color: #6b7280;
}

.mp-stream-head h2 {
  margin: 2px 0 0;
}

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

.mp-school-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px;
}

.mp-school-thumb-wrap {
  position: relative;
}

.mp-school-thumb {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}

.mp-school-thumb-empty {
  display: block;
  background: #f3f4f6;
}

.mp-corner-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 11px;
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
  border-radius: 999px;
  padding: 3px 8px;
}

.mp-school-main h3 {
  margin: 0;
}

.mp-school-main p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mp-tags span {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.mp-score-line {
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}

.mp-score-line em {
  margin-left: 8px;
  color: #6b7280;
  font-style: normal;
}

.mp-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.mp-btn.ghost {
  background: #fff;
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.mp-loadmore {
  text-align: center;
  margin-top: 12px;
}

.mp-detail-wrap {
  padding: 10px 0 20px;
}

.mp-detail-hero,
.mp-detail-card {
  padding: 14px;
  margin-bottom: 10px;
}

.mp-detail-top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.mp-detail-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f4f6;
}

.mp-detail-top h1 {
  margin: 0;
  font-size: 22px;
}

.mp-detail-top p {
  margin: 6px 0 0;
  color: #6b7280;
}

.mp-kpi-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mp-kpi-row div,
.mp-kv-grid > div {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
}

.mp-kpi-row small,
.mp-kv-grid span {
  color: #6b7280;
}

.mp-kpi-row strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.mp-detail-card h2 {
  margin: 0 0 10px;
}

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

.mp-detail-bottom {
  position: sticky;
  bottom: 8px;
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

@media (max-width: 1100px) {
  .mp-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mp-brand-row {
    grid-template-columns: 56px 1fr auto;
  }

  .mp-brand-mark {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }

  .mp-brand-meta h1 {
    font-size: 18px;
  }

  .mp-search {
    grid-template-columns: 1fr 76px;
  }

  .mp-school-card,
  .mp-detail-top,
  .mp-kv-grid,
  .mp-kpi-row {
    grid-template-columns: 1fr;
  }

  .mp-school-thumb {
    height: 170px;
  }

  .mp-ticker-inner {
    grid-template-columns: 70px 1fr;
  }
}

.mp-filter-full {
  margin-bottom: 12px;
}

.mp-filter-full input {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  min-width: 220px;
  flex: 1;
}

.mp-list-page,
.mp-compare-page,
.mp-profile-page {
  padding: 16px 0 24px;
}

.mp-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mp-list-top h1 {
  margin: 0;
}

.compare-table td:first-child,
.compare-table th:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  min-width: 140px;
}

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

.mp-profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.mp-profile-form input,
.mp-profile-form textarea {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f9fafb;
}

.mp-profile-form .full {
  grid-column: 1 / -1;
}

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

.mp-fav-card {
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.mp-fav-card span {
  color: #6b7280;
  font-size: 13px;
}

.mp-fav-card.is-best {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 1px solid #fecdd3;
}

.mp-float-dock {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  gap: 8px;
}

.mp-float-dock a {
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.2);
}

.mp-float-dock em {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (max-width: 720px) {
  .mp-profile-form,
  .mp-fav-grid {
    grid-template-columns: 1fr;
  }

  .mp-list-top {
    gap: 8px;
  }

  .mp-filter-full input {
    min-width: 100%;
  }
}

/* ---- App-like Bottom Tab ---- */
.front-body {
  padding-bottom: 88px;
}

.mp-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
}

.mp-tabbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  position: relative;
  font-weight: 600;
  min-width: 0;
}

.mp-tabbar a.active {
  color: #c71629;
}

.mp-tabbar a em {
  position: absolute;
  top: 12px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---- Home polish ---- */
.mp-header-card {
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.mp-header-soft {
  background: linear-gradient(180deg, #ffffff, #fff7f3);
  border: 1px solid #f3e8e5;
}

.mp-updated {
  display: inline-block;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
}

.mp-search-sticky {
  position: sticky;
  top: 8px;
  z-index: 25;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.mp-grid-entrance-lite .mp-grid-item {
  border-color: #f3f4f6;
  background: #fff;
}

.mp-grid-entrance-lite .mp-grid-item b {
  background: linear-gradient(135deg, #f43f5e, #ef4444);
}

.mp-feature-carousel {
  margin-top: 12px;
}

.mp-feature-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mp-feature-carousel-card {
  min-height: 190px;
}

.mp-feature-carousel-card .mp-feature-list a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-feature-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
}

.mp-feature-carousel-card .mp-feature-list a em {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #be123c;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.mp-feature-meta {
  display: grid;
  gap: 2px;
}

.mp-feature-meta strong {
  font-size: 14px;
}

.mp-feature-meta small {
  font-size: 12px;
  color: #6b7280;
}

.mp-trend {
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
}

.mp-trend.is-up {
  background: #fee2e2;
  color: #b91c1c;
}

.mp-trend.is-down {
  background: #dcfce7;
  color: #166534;
}

.mp-trend.is-flat {
  background: #f3f4f6;
  color: #4b5563;
}

.mp-stream-list {
  gap: 14px;
}

.mp-school-card {
  border: 1px solid #eef0f3;
}

.mp-loadmore .mp-btn {
  min-width: 220px;
}

/* ---- Detail professional + 3D ---- */
.mp-hero-3d {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, #fee2e2 100%);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid #f1f5f9;
}

.mp-card-3d {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border: 1px solid #eef2f7;
}

.mp-detail-hero h1 {
  letter-spacing: 0.4px;
}

.mp-cert-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #991b1b;
  background: #fee2e2;
  vertical-align: middle;
}

.mp-kpi-row div {
  background: linear-gradient(145deg, #fff, #fef2f2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(220,38,38,0.08);
}

.mp-detail-bottom {
  bottom: 78px;
}

.mp-detail-hero {
  position: relative;
  overflow: hidden;
}

.mp-cover-stage {
  position: relative;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(135deg, #a91a2a, #d53b34 52%, #f4a63f);
}

.mp-cover-stage:not(.no-image) {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.48), transparent 35%),
    linear-gradient(135deg, rgba(84, 9, 22, 0.72), rgba(117, 19, 28, 0.58)),
    var(--cover-image);
  background-size: auto, auto, cover;
  background-position: center;
}

.mp-cover-layer {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.mp-cover-layer.layer-a {
  width: 260px;
  height: 260px;
  left: -80px;
  top: -90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06));
  animation: coverFloatA 7.2s ease-in-out infinite;
}

.mp-cover-layer.layer-b {
  width: 190px;
  height: 190px;
  right: -40px;
  bottom: -80px;
  background: linear-gradient(180deg, rgba(255, 208, 120, 0.45), rgba(255, 208, 120, 0.05));
  animation: coverFloatB 6.5s ease-in-out infinite;
}

.mp-cover-layer.layer-c {
  width: 140px;
  height: 140px;
  right: 22%;
  top: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  animation: coverFloatC 5.8s ease-in-out infinite;
}

.mp-data-board {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mp-data-tile {
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(145deg, #ffffff, #fef2f2);
  border: 1px solid #fee2e2;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.09);
}

.mp-data-tile small {
  color: #6b7280;
}

.mp-data-tile strong {
  margin-top: 5px;
  display: block;
  font-size: 24px;
  color: #991b1b;
}

.mp-core-metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mp-core-metric-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #fee2e2;
  background: #fff;
}

.mp-core-metric-card small {
  color: #6b7280;
}

.mp-core-metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  color: #b91c1c;
}

.mp-core-metric-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.mp-anchor-nav {
  position: sticky;
  top: 64px;
  z-index: 22;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mp-anchor-nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.mp-anchor-nav a.active {
  background: linear-gradient(135deg, #c71629, #e13d31);
  color: #fff;
  box-shadow: 0 8px 18px rgba(199, 22, 41, 0.25);
}

.mp-detail-card .table-wrap .data-table th:first-child,
.mp-detail-card .table-wrap .data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.plan-accordion {
  display: grid;
  gap: 10px;
}

.plan-year-card {
  border: 1px solid #fee2e2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.plan-year-card summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff7f7;
}

.plan-year-card summary::-webkit-details-marker {
  display: none;
}

.score-chart-wrap {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff7f7;
  border: 1px solid #fee2e2;
}

.score-line-chart {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes coverFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, 10px, 0) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes coverFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, -10px, 0) scale(1.04); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes coverFloatC {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(4px, 8px, 0) rotate(8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* Compare page */
.compare-table th,
.compare-table td {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .front-body {
    padding-bottom: 80px;
  }
  .mp-tabbar {
    height: 64px;
  }
  .mp-tabbar a em {
    right: 10px;
  }

  .mp-cover-stage {
    height: 150px;
  }

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

  .mp-core-metrics {
    grid-template-columns: 1fr;
  }

  .mp-anchor-nav {
    top: 58px;
  }
}

/* Admin visual rule builder */
.rule-builder {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
}

.rule-rows {
  display: grid;
  gap: 8px;
}

.rule-row {
  display: grid;
  grid-template-columns: 190px 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}

.rule-row input,
.rule-row select {
  min-height: 42px;
}

.rule-actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 768px) {
  .rule-row {
    grid-template-columns: 1fr;
  }
}

/* Compare floating dock */
.mp-float-dock {
  position: fixed;
  right: 14px;
  bottom: 98px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.mp-float-bubble {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  background: radial-gradient(circle at 30% 30%, #ff6f6f, #d7263d 58%, #8f1025 100%);
  box-shadow: 0 16px 36px rgba(167, 20, 43, 0.45);
  display: grid;
  place-items: center;
  position: relative;
  animation: bubble-float 2.8s ease-in-out infinite;
}

.mp-float-bubble em {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #b91c1c;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.mp-compare-panel {
  width: min(300px, calc(100vw - 28px));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(185, 28, 28, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 48px rgba(125, 16, 30, 0.24);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: all 0.2s ease;
}

.mp-float-dock.open .mp-compare-panel,
.mp-compare-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mp-compare-school-copy strong a {
  background: transparent !important;
  color: inherit !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.mp-compare-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mp-compare-panel-head small {
  color: #6b7280;
}

.mp-compare-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.mp-compare-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff3f3;
}

.mp-compare-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-compare-chip button {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 600;
}

.mp-compare-actions {
  margin-top: 10px;
  display: grid;
}

.mp-compare-actions .mp-btn {
  width: 100%;
  text-align: center;
}

/* Home/detail enhancement */
.mp-header-card {
  position: relative;
  overflow: hidden;
}

.mp-header-card::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 151, 117, 0.22), transparent 70%);
  pointer-events: none;
}

.mp-feature-card,
.mp-school-card,
.mp-detail-card {
  transition: transform .22s ease, box-shadow .22s ease;
}

.mp-feature-card:hover,
.mp-school-card:hover,
.mp-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(99, 20, 34, 0.18);
}

.mp-cover-stage {
  animation: hero-shift 8s ease-in-out infinite alternate;
}

.mp-cover-layer {
  animation: layer-glow 5s ease-in-out infinite;
}

.mp-cover-layer.layer-b {
  animation-delay: 1s;
}

.mp-cover-layer.layer-c {
  animation-delay: 2s;
}

.mp-data-tile {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,239,239,.9));
  border: 1px solid rgba(185, 28, 28, 0.16);
}

/* Compare page pro */
.mp-compare-pro .cmp-hero-card {
  background: linear-gradient(145deg, #fff, #fff4f4);
}

.cmp-school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.cmp-school-item {
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.14);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.cmp-school-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cmp-school-title img,
.cmp-school-dot {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.cmp-school-dot {
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
}

.cmp-school-title small {
  color: #6b7280;
}

.cmp-mini-kv {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 13px;
}

.cmp-vs-head {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 10px;
}

.cmp-vs-school {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.14);
}

.cmp-vs-school img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.cmp-vs-badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.28);
  margin: 0 auto;
}

.cmp-bar-compare {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 10px;
  align-items: center;
}

.cmp-bar-compare > span {
  font-weight: 800;
  color: #991b1b;
  text-align: center;
}

.cmp-bar-compare > div {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #fee2e2;
  display: flex;
}

.cmp-bar-compare i {
  display: block;
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.cmp-bar-compare b {
  display: block;
  background: linear-gradient(90deg, #fb7185, #f43f5e);
}

@media (max-width: 760px) {
  .cmp-vs-head {
    grid-template-columns: 1fr;
  }
  .cmp-vs-badge {
    width: 52px;
    height: 52px;
  }
  .mp-history-item {
    grid-template-columns: 1fr;
  }
}

@keyframes bubble-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes hero-shift {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.02); }
}

@keyframes layer-glow {
  0%,100% { opacity: .55; }
  50% { opacity: .9; }
}

@media (max-width: 768px) {
  .mp-float-bubble {
    width: 66px;
    height: 66px;
    font-size: 13px;
  }
}

/* Home trend mini-chart */
.mp-mini-trend {
  margin: 6px 0 4px;
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid rgba(185, 28, 28, 0.12);
}

.mp-mini-trend span {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.mp-mini-trend i {
  width: 9px;
  min-height: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f87171, #b91c1c);
  display: block;
}

.mp-mini-trend small {
  font-size: 10px;
  color: #6b7280;
}

/* Reveal animation */
.is-reveal {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  animation: rise-in .45s ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Compare toolbar */
.cmp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmp-scroll-tip {
  color: #6b7280;
  font-size: 13px;
}

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

@media print {
  .mp-tabbar,
  .mp-float-dock,
  .cmp-toolbar,
  .mp-list-top a,
  .mp-actions,
  .mp-detail-bottom {
    display: none !important;
  }

  body.front-body {
    background: #fff !important;
    padding: 0 !important;
  }

  .container {
    width: 100% !important;
    margin: 0 !important;
  }
}

.mp-feature-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-feature-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.compare-table td.max-cell {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}

.compare-table td.min-cell {
  background: #fff1f2;
  color: #9f1239;
  font-weight: 700;
}

.cmp-sort-select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(185, 28, 28, 0.18);
  background: #fff;
  padding: 6px 10px;
}

.cmp-diff-only {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  white-space: nowrap;
}

/* Lazy media skeleton */
.lazy-media {
  opacity: 0;
  transition: opacity .35s ease;
}

.lazy-media.media-loaded {
  opacity: 1;
}

.mp-school-thumb-wrap,
.mp-feature-list a,
.cmp-school-title {
  position: relative;
  overflow: hidden;
}

.mp-school-thumb-wrap::before,
.mp-feature-list a::before,
.cmp-school-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .58) 18%, rgba(255, 255, 255, 0) 33%), #f3f4f6;
  animation: sk 1.4s linear infinite;
  z-index: 0;
}

.mp-school-thumb-wrap.media-ready::before,
.mp-feature-list a.media-ready::before,
.cmp-school-title.media-ready::before {
  display: none;
}

.mp-school-thumb-wrap > *,
.mp-feature-list a > *,
.cmp-school-title > * {
  position: relative;
  z-index: 1;
}

@keyframes sk {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* Compare table sticky header + shadow hint */
.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}

.compare-table thead th:first-child {
  z-index: 6;
}

.cmp-scroll-wrap {
  position: relative;
}

.cmp-scroll-wrap.is-scrolled .compare-table td:first-child,
.cmp-scroll-wrap.is-scrolled .compare-table th:first-child {
  box-shadow: 8px 0 12px -10px rgba(0,0,0,0.32);
}

.cmp-toolbar-actions {
  flex-wrap: wrap;
}

.cmp-pinch-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.cmp-school-sticky {
  position: sticky;
  top: 10px;
  z-index: 12;
  margin: 8px 0 12px;
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(185, 28, 28, 0.14);
  backdrop-filter: blur(6px);
}

.cmp-school-sticky button {
  border: 1px solid rgba(185, 28, 28, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  color: #374151;
}

.cmp-school-sticky button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.cmp-row-icon {
  display: inline-flex;
  width: 18px;
  margin-right: 6px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .cmp-school-sticky {
    top: 4px;
  }
}

.login-card-pro .login-link-row {
  margin-top: 14px;
}

.login-card-pro .login-link-row a {
  color: #b91c1c;
  font-weight: 700;
}

.auth-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at top left, rgba(205, 62, 58, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(22, 39, 72, 0.18), transparent 28%),
    linear-gradient(180deg, #f6f7fb 0%, #eef1f8 100%);
  padding: 24px 16px 108px;
}

.auth-shell {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 62, 58, 0.12);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(23, 31, 56, 0.14), 0 10px 24px rgba(205, 62, 58, 0.08);
  backdrop-filter: blur(16px);
}

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #162748 0%, #314876 100%);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
}

.auth-card h1 {
  margin: 16px 0 6px;
  font-size: 32px;
  font-weight: 800;
  color: #141d32;
}

.auth-subtitle {
  margin: 0 0 20px;
  color: #667187;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span {
  font-size: 13px;
  font-weight: 700;
  color: #32405d;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background: rgba(247, 249, 252, 0.95);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  color: #182033;
  box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(205, 62, 58, 0.35);
  box-shadow: 0 0 0 4px rgba(205, 62, 58, 0.08);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
}

.auth-code-btn {
  padding: 0 10px;
  white-space: nowrap;
}

.auth-send-status {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  transition: color .2s ease;
}

.auth-send-status.is-info {
  color: #64748b;
}

.auth-send-status.is-success {
  color: #0f8a5f;
}

.auth-send-status.is-error {
  color: #cf3d37;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
}

.auth-links a {
  color: #cb3b37;
  font-weight: 700;
}

.profile-setup-page,
.profile-center-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at top left, rgba(205, 62, 58, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(22, 39, 72, 0.18), transparent 24%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
  padding: 18px 16px 110px;
}

.profile-setup-shell,
.profile-center-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.profile-setup-hero,
.profile-center-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 18px;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(16, 28, 54, 0.98) 0%, rgba(35, 57, 95, 0.94) 52%, rgba(205, 62, 58, 0.9) 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.profile-setup-hero::before,
.profile-center-hero::before {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 68%);
}

.profile-setup-badge,
.profile-center-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  letter-spacing: .08em;
}

.profile-setup-hero h1,
.profile-center-hero h1 {
  margin: 12px 0 8px;
  font-size: 34px;
  font-weight: 800;
}

.profile-setup-hero p,
.profile-center-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.profile-setup-hero__stats,
.profile-center-stats {
  display: grid;
  gap: 12px;
}

.profile-setup-stat,
.profile-center-stats > div {
  border-radius: 24px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.profile-setup-stat small,
.profile-center-stats small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.profile-setup-stat strong,
.profile-center-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
}

.profile-setup-card,
.profile-center-card {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(205, 62, 58, 0.09);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 20px 55px rgba(31, 41, 55, 0.08), 0 10px 20px rgba(205, 62, 58, 0.05);
}

.profile-center-card--target {
  background: linear-gradient(135deg, rgba(24, 32, 51, 0.98) 0%, rgba(40, 58, 90, 0.96) 70%, rgba(205, 62, 58, 0.86) 100%);
  color: #fff;
}

.profile-center-card--target p,
.profile-center-card--target span {
  color: rgba(255,255,255,.78);
}

.profile-setup-card__head,
.profile-center-card__head,
.profile-setup-target__head,
.profile-setup-target__card,
.profile-setup-footer,
.profile-center-card__head,
.profile-center-target__meta,
.profile-center-actions,
.profile-school-sheet__head,
.profile-school-sheet__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.profile-setup-grid,
.profile-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-setup-grid__full {
  grid-column: 1 / -1;
}

.profile-setup-grid label {
  display: grid;
  gap: 8px;
}

.profile-setup-grid label span {
  font-size: 13px;
  font-weight: 700;
  color: #33405d;
}

.profile-setup-grid input,
.profile-setup-grid select,
.profile-school-sheet__tools input,
.profile-school-sheet__tools select {
  width: 100%;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-sizing: border-box;
  background: #f7f9fd;
  font-size: 15px;
}

.profile-setup-target {
  margin: 18px 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 28, 52, 0.98), rgba(43, 63, 100, 0.95));
  color: #fff;
}

.profile-setup-target__card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

.profile-setup-target__actions {
  display: flex;
  gap: 10px;
}

.profile-setup-target__tips {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.profile-school-sheet[hidden] { display: none; }
.profile-school-sheet { position: fixed; inset: 0; z-index: 120; }
.profile-school-sheet__mask { position: absolute; inset: 0; background: rgba(8, 13, 24, 0.42); backdrop-filter: blur(3px); }
.profile-school-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; background: #fff;
  border-radius: 28px 28px 0 0; padding: 18px 16px 24px; box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0;
}
.profile-school-sheet__close {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(31, 41, 55, 0.12);
  background: #f6f8fc; font-size: 24px; line-height: 1; cursor: pointer;
}
.profile-school-sheet__tools { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 10px; }
.profile-school-sheet__list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(78vh - 190px);
  display: grid;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}
.profile-school-option {
  text-align: left; border: 1px solid rgba(31, 41, 55, 0.12); background: #fff; border-radius: 18px;
  padding: 14px 16px; cursor: pointer;
}
.profile-school-option strong { display: block; color: #182033; }
.profile-school-option span { display: block; margin-top: 6px; color: #667187; font-size: 13px; }
.profile-school-option.is-selected { border-color: rgba(205, 62, 58, 0.42); background: rgba(205, 62, 58, 0.06); box-shadow: 0 10px 20px rgba(205, 62, 58, 0.08); }

.profile-center-hero__main,
.profile-center-actions,
.profile-center-list,
.profile-center-timeline {
  display: flex;
}

.profile-center-hero__main { align-items: center; gap: 16px; }
.profile-center-avatar {
  width: 84px; height: 84px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.16);
  font-size: 32px; font-weight: 800;
}
.profile-center-vip {
  display: block; margin-top: 16px; padding: 14px 16px; border-radius: 20px; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
}
.profile-center-vip span { display: block; font-size: 12px; opacity: .75; }
.profile-center-vip strong { display: block; margin-top: 6px; font-size: 16px; }
.profile-center-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-center-archive > div,
.profile-center-target {
  padding: 16px; border-radius: 20px; background: #f7f9fd;
}
.profile-center-archive strong,
.profile-center-target strong { display: block; margin-top: 6px; font-size: 19px; color: inherit; }
.profile-center-perms { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-center-perm { min-width: 150px; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(31, 41, 55, 0.1); background: #f8fafc; }
.profile-center-perm.is-on { border-color: rgba(42, 163, 104, 0.16); background: rgba(42, 163, 104, 0.08); }
.profile-center-list,
.profile-center-timeline { flex-direction: column; gap: 10px; }
.profile-center-list a,
.profile-center-timeline div {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #f8fafc; color: #152038;
}

body.sheet-open { overflow: hidden; }

@media (max-width: 768px) {
  .profile-setup-hero,
  .profile-center-hero,
  .profile-setup-grid,
  .profile-center-grid,
  .profile-school-sheet__tools,
  .profile-center-archive {
    grid-template-columns: 1fr;
  }

  .profile-setup-card__head,
  .profile-center-card__head,
  .profile-setup-target__head,
  .profile-setup-target__card,
  .profile-setup-footer,
  .profile-center-actions,
  .profile-school-sheet__head,
  .profile-school-sheet__foot {
    flex-direction: column;
    align-items: stretch;
  }

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

.mp-profile-hero-app .mp-profile-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp-profile-hero-app .mp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #be123c);
  box-shadow: 0 14px 26px rgba(190, 18, 60, 0.28);
}

.mp-profile-perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mp-profile-perm-grid .perm-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.mp-profile-perm-grid .perm-item.on {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 242, 242, 0.7);
}

.mp-profile-perm-grid .perm-item.off {
  opacity: 0.72;
}

.mp-profile-perm-grid .perm-item span {
  display: block;
  font-size: 13px;
  color: #64748b;
}

.mp-profile-perm-grid .perm-item strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
}

.mp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mp-timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.mp-timeline time {
  color: #64748b;
  font-size: 13px;
}

.mp-timeline p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 14px;
}

.mp-profile-app-page {
  padding: 18px 0 110px;
}

.mp-profile-app-hero {
  border-radius: 26px;
  background: linear-gradient(155deg, #cb2437 0%, #b61b34 52%, #f3d5cd 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.mp-profile-app-top {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
}

.mp-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  font-size: 26px;
}

.mp-profile-user-meta h1 {
  margin: 0;
  font-size: 24px;
}

.mp-profile-user-meta p {
  margin: 6px 0 0;
  opacity: 0.95;
}

.mp-member-badge {
  margin-top: 8px;
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #1f2937;
  background: linear-gradient(140deg, #ffe7ad, #f6c95e);
}

.mp-profile-pro-card {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #121d37, #26365c);
}

.mp-profile-pro-card strong {
  font-size: 22px;
}

.mp-profile-pro-card p {
  margin: 6px 0 0;
  opacity: 0.9;
}

.mp-profile-pro-card span {
  min-width: 94px;
  text-align: center;
  border-radius: 999px;
  background: #f9d978;
  color: #5b3900;
  font-weight: 700;
  padding: 10px 12px;
}

.mp-profile-app-kpis {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  color: #1f2937;
  padding: 12px 8px;
}

.mp-profile-app-kpis div,
.mp-profile-app-kpis a {
  text-align: center;
}

.mp-profile-app-kpis strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.mp-profile-app-kpis span {
  font-size: 13px;
  color: #6b7280;
}

.mp-profile-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,248,241,0.95));
  border: 1px solid rgba(177, 41, 63, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.mp-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mp-panel-head h2,
.mp-profile-panel h2 {
  margin: 0;
}

.mp-profile-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-profile-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(207, 31, 56, 0.12);
  color: #7f1d1d;
  font-size: 13px;
}

.mp-profile-archive-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mp-profile-archive-grid div {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(159, 16, 38, 0.1);
  padding: 10px 12px;
}

.mp-profile-archive-grid small {
  display: block;
  color: #6b7280;
}

.mp-profile-archive-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.mp-profile-perm-grid-app {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.perm-app-item {
  border-radius: 14px;
  border: 1px solid rgba(159, 16, 38, 0.1);
  background: #fff;
  padding: 10px 12px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.perm-app-item b {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(207, 31, 56, 0.1);
  color: #7f1d1d;
  margin-bottom: 8px;
}

.perm-app-item strong {
  display: block;
}

.perm-app-item span {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.perm-app-item.on {
  box-shadow: inset 0 0 0 1px rgba(207, 31, 56, 0.28);
}

.perm-app-item.off {
  opacity: 0.72;
}

.mp-profile-fav-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mp-profile-fav-item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(159, 16, 38, 0.1);
  padding: 12px;
  display: block;
}

.mp-profile-fav-item strong {
  display: block;
}

.mp-profile-fav-item small {
  color: #6b7280;
}

.mp-profile-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mp-profile-timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(159, 16, 38, 0.08);
  padding: 10px 12px;
}

.mp-profile-timeline time {
  color: #6b7280;
  font-size: 12px;
}

.mp-profile-timeline p {
  margin: 4px 0 0;
  color: #374151;
}

.mp-profile-bottom-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mp-profile-menu-list {
  display: grid;
  gap: 8px;
}

.mp-profile-menu-list a {
  border-radius: 14px;
  border: 1px solid rgba(159, 16, 38, 0.1);
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 10px;
  align-items: center;
}

.mp-profile-menu-list .menu-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(207, 31, 56, 0.09);
  color: #7f1d1d;
  font-weight: 700;
}

.mp-profile-menu-list strong {
  display: block;
}

.mp-profile-menu-list small {
  display: block;
  color: #6b7280;
  margin-top: 4px;
}

.mp-profile-menu-list em {
  color: #9ca3af;
  font-style: normal;
  text-align: right;
}

.mp-dorm-wrap {
  border-radius: 16px;
  border: 1px solid rgba(159, 16, 38, 0.1);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.mp-detail-anchor-nav {
  position: sticky;
  top: 8px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(159, 16, 38, 0.1);
  backdrop-filter: blur(8px);
}

.mp-detail-anchor-nav a {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(207, 31, 56, 0.1);
  color: #7f1d1d;
  font-size: 13px;
}

.mp-dorm-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.mp-dorm-head h3 {
  margin: 0;
}

.mp-dorm-head span {
  color: #6b7280;
  font-size: 12px;
}

.mp-dorm-gallery {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mp-dorm-thumb {
  border: 0;
  background: #fff;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.mp-dorm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-dorm-summary {
  margin: 10px 0 0;
  color: #374151;
}

.mp-facility-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mp-facility-grid article {
  border-radius: 14px;
  border: 1px solid rgba(159, 16, 38, 0.1);
  background: #fff;
  padding: 12px;
}

.mp-facility-grid h3 {
  margin: 0 0 8px;
}

.mp-peer-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mp-peer-card {
  border-radius: 14px;
  border: 1px solid rgba(159, 16, 38, 0.1);
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.mp-peer-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mp-peer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-peer-card strong,
.mp-peer-card small,
.mp-peer-card em {
  display: block;
}

.mp-peer-card small {
  color: #6b7280;
  margin-top: 4px;
}

.mp-peer-card em {
  margin-top: 6px;
  color: #b91c1c;
  font-style: normal;
  font-size: 12px;
}

.mp-consult-float {
  position: fixed;
  right: 16px;
  bottom: 98px;
  z-index: 40;
  border-radius: 999px;
  padding: 12px 14px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #e11d48, #b91c1c);
  box-shadow: 0 14px 32px rgba(185, 28, 28, 0.36);
  font-weight: 700;
  line-height: 1.35;
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 98;
  padding: 16px;
}

.mp-lightbox.open {
  display: flex;
}

.mp-lightbox img {
  max-width: min(960px, 100%);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mp-lightbox-close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
}

/* --- Nav Builder (Admin) --- */
.admin-list-builder {
  display: grid;
  gap: 8px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 2fr auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.admin-list-row input[type="text"] {
  min-width: 0;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

/* --- Home First Screen Upgrade --- */
.mp-home-wrap .mp-header-soft {
  background: #f8f9fa;
  color: #0f172a;
}

.mp-home-wrap .mp-brand-meta h1,
.mp-home-wrap .mp-brand-meta p,
.mp-home-wrap .mp-updated {
  color: #333;
}

.mp-home-wrap .mp-search {
  background: #fff;
  border-color: #e2e8f0;
}

.mp-home-wrap .mp-search input {
  color: #0f172a;
}

.mp-home-wrap .mp-search input::placeholder {
  color: #94a3b8;
}

.mp-home-wrap .mp-search button {
  background: #cd3e3a;
  color: #fff;
  border-left: 1px solid #cd3e3a;
  padding: 0 16px;
  border-radius: 10px;
  margin: 4px;
  font-weight: 700;
}

.mp-war-board {
  margin-top: 10px;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(205, 62, 58, 0.15);
  box-shadow: 0 4px 16px rgba(205, 62, 58, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mp-war-board .wb-col {
  color: #333;
  min-width: 0;
  padding: 2px 10px;
}

.mp-war-board .wb-col small {
  color: #999;
  font-size: 13px;
}

.mp-war-board .wb-col strong {
  display: block;
  margin-top: 6px;
  font-size: 40px;
  line-height: 1.05;
  color: #cd3e3a;
}

.mp-war-board .wb-col strong b {
  font-size: 40px;
}

.mp-war-board .wb-col strong em {
  font-style: normal;
  font-size: 24px;
  margin-left: 4px;
}

.mp-war-board .wb-col.right .school {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-war-board .wb-col .gap {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
}

.mp-war-board .wb-col .gap.is-up {
  color: #cd3e3a;
}

.mp-war-board .wb-col .gap.is-down {
  color: #cd3e3a;
}

.mp-war-board .wb-col.right {
  border-left: 1px solid #eee;
}

.mp-war-board .wb-col .set-link {
  display: block;
  margin-top: 4px;
  color: #cd3e3a;
  font-size: 12px;
}

.mp-home-nav {
  margin-top: 12px;
}

.mp-home-wrap .mp-grid-entrance-lite .mp-grid-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.mp-home-nav .mp-grid-item b {
  border-radius: 12px;
  color: #0f172a;
  font-weight: 800;
}

.mp-home-nav .mp-grid-item:nth-child(4n+1) b { background: linear-gradient(145deg, #fee2e2, #fecaca); }
.mp-home-nav .mp-grid-item:nth-child(4n+2) b { background: linear-gradient(145deg, #dbeafe, #bfdbfe); }
.mp-home-nav .mp-grid-item:nth-child(4n+3) b { background: linear-gradient(145deg, #dcfce7, #bbf7d0); }
.mp-home-nav .mp-grid-item:nth-child(4n+4) b { background: linear-gradient(145deg, #fef3c7, #fde68a); }

.mp-home-nav .mp-grid-item span {
  color: #334155;
}

.mp-home-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mp-home-actions .mp-btn {
  border-radius: 10px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.mp-home-actions .mp-btn:not(.ghost) {
  background: #cd3e3a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(205, 62, 58, 0.3);
}

.mp-home-actions .mp-btn.ghost {
  background: #fff;
  color: #cd3e3a;
  border: 1px solid #cd3e3a;
  box-shadow: none;
}

.mp-sim-banner {
  margin-top: 12px;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(130deg, #fff7ed, #fee2e2);
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-sim-banner strong {
  display: block;
  color: #7f1d1d;
  font-size: 18px;
}

.mp-sim-banner p {
  margin: 4px 0 0;
  color: #7c2d12;
  font-size: 13px;
}

.mp-search-global {
  margin: 8px 0 12px;
}

.mp-search-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.mp-search-item strong {
  display: block;
  color: #0f172a;
}

.mp-search-item span {
  color: #64748b;
  font-size: 13px;
}

/* --- Calendar --- */
.mp-calendar-hero {
  background: linear-gradient(145deg, #d43a3a, #b91c1c);
  color: #fff;
  text-align: center;
}

.mp-calendar-hero small {
  display: block;
  opacity: 0.88;
}

.mp-calendar-hero strong {
  display: block;
  font-size: 56px;
  line-height: 1.1;
  margin: 8px 0;
}

.mp-calendar-hero span {
  opacity: 0.92;
}

.mp-cal-months {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
}

.mp-cal-months a {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fff;
  padding: 6px 10px;
  color: #b91c1c;
}

.mp-cal-months a.active {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.mp-cal-list {
  display: grid;
  gap: 10px;
}

.mp-cal-item {
  border-radius: 12px;
  border: 1px solid #fecaca;
  padding: 10px;
  background: #fff;
}

.mp-cal-item .head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9f1239;
}

.mp-cal-item h4 {
  margin: 6px 0 4px;
  font-size: 18px;
}

.mp-cal-item p {
  margin: 0;
  color: #64748b;
}

.mp-cal-item .ops {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mp-cal-item .ops a {
  text-align: center;
  border-radius: 10px;
  padding: 10px;
}

.mp-cal-item .ops .btn-primary {
  background: #c81e1e;
  color: #fff;
}

.mp-cal-item .ops .btn-lite {
  border: 1px solid #fecaca;
  color: #b91c1c;
}

@media (max-width: 860px) {
  .admin-list-row {
    grid-template-columns: 1fr 1fr;
  }

  .mp-war-board .wb-col strong {
    font-size: 30px;
  }

  .mp-war-board .wb-col.right .school {
    font-size: 15px;
  }

  .mp-war-board .wb-col .gap {
    font-size: 24px;
  }
}

.mp-detail-inline-image {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(159, 16, 38, 0.1);
}

.mp-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  background: rgba(15, 23, 42, 0.08);
}

/* === Home KingKong Final Polish === */
.mp-home-wrap .mp-header-soft {
  background: #fff;
}

.mp-home-nav-scroll {
  margin-top: 12px;
  overflow: visible;
}

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

.mp-home-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  width: 100%;
  padding: 2px 2px 4px;
}

.mp-home-wrap .mp-grid-entrance-lite .mp-grid-item {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mp-home-nav .mp-grid-item {
  text-align: center;
  transform-origin: center;
  transition: transform .15s ease;
  width: 100%;
}

.mp-home-nav .mp-grid-item:active {
  transform: scale(.92);
}

.mp-home-nav .mp-grid-item b {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}

.mp-home-nav .mp-grid-item b img {
  width: 40px;
  height: 40px;
  display: block;
}

.mp-home-nav .mp-grid-item b i {
  font-style: normal;
  font-weight: 700;
  color: #1e293b;
}

.mp-home-nav .mp-grid-item span {
  margin-top: 6px;
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  font-weight: 400;
}

.mp-home-nav .mp-grid-item.is-vip b {
  background: linear-gradient(160deg, #111827, #1f2937);
  border-color: #374151;
  animation: vipBreath 2.8s ease-in-out infinite;
}

@keyframes vipBreath {
  0%, 100% { box-shadow: 0 6px 14px rgba(15, 23, 42, .08), 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 8px 18px rgba(15, 23, 42, .12), 0 0 14px rgba(212, 175, 55, .24); }
}

/* === Compact School Stream + Sticky Filter === */
.mp-school-card.mp-school-card-compact {
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px 10px 9px;
  border: 1px solid #e7ecf4;
  border-radius: 14px;
  background: #fff;
}

.mp-school-card-compact .mp-school-thumb-wrap {
  display: grid;
  justify-items: center;
}

.mp-school-card-compact .mp-school-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.mp-school-card-compact .mp-mini-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mp-school-card-compact .mp-mini-ico {
  width: 22px;
  height: 22px;
  border: 1px solid #d7dde8;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.mp-school-card-compact .mp-school-main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.mp-school-card-compact .mp-school-main h3 a {
  color: #0f172a;
}

.mp-school-card-compact .mp-school-main h3 a:hover {
  color: #be123c;
}

.mp-school-card-compact .mp-school-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-school-card-compact .mp-school-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.mp-school-card-compact .mp-school-summary {
  min-width: 0;
}

.mp-school-card-compact .mp-card-side {
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.mp-school-card-compact .mp-score-big {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: #be123c;
}

.mp-school-card-compact .mp-tags {
  margin-top: 4px;
  gap: 4px;
}

.mp-school-card-compact .mp-tags span {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.mp-school-card-compact .mp-score-line {
  margin-top: 4px;
}

.mp-school-card-compact .mp-score-line strong {
  font-size: 13px;
  color: #111827;
}

.mp-school-card-compact .mp-score-line small {
  color: #6b7280;
  font-size: 12px;
}

.mp-school-card-compact .mp-trend {
  margin-left: 6px;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 7px;
}

.mp-school-card-compact .mp-sub-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.mp-school-card-compact .mp-sub-action {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  padding: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.mp-school-card-compact .mp-btn.mini,
.mp-school-card-compact .mp-card-cta {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  background: linear-gradient(135deg, #be123c, #dc2626);
  color: #fff;
  box-shadow: 0 8px 16px rgba(190, 24, 93, 0.18);
}

.mp-school-card-compact .mp-detail-link {
  font-size: 12px;
  color: #64748b;
}

.mp-school-card-compact .mp-corner-tag,
.mp-school-card-compact .mp-actions {
  display: none;
}

.mp-school-card-compact .mp-trend.is-up {
  background: #fee2e2;
  color: #b91c1c;
}

.mp-school-card-compact .mp-trend.is-down {
  background: #dcfce7;
  color: #15803d;
}

.mp-school-card-compact .mp-trend.is-flat {
  background: #e2e8f0;
  color: #475569;
}

.mp-filter-panel {
  position: sticky;
  top: 8px;
  z-index: 22;
}

.mp-smart-filter {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.mp-smart-filter .mp-smart-hidden-select {
  display: none;
}

.mp-smart-filter .mp-smart-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
}

.mp-smart-filter .mp-smart-tab,
.mp-smart-filter .mp-smart-apply {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  padding: 0 10px;
}

.mp-smart-filter .mp-smart-tab em {
  font-style: normal;
  color: #0f172a;
  font-weight: 600;
}

.mp-smart-filter .mp-smart-apply {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  border: 0;
  font-weight: 700;
}

.mp-smart-filter .mp-smart-full-list {
  margin-top: 8px;
  min-height: 32px;
  border-radius: 999px;
}

.mp-smart-filter .mp-smart-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 58vh;
  overflow: auto;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, .18);
  padding: 12px;
  z-index: 80;
}

.mp-smart-filter .mp-smart-panel.is-open {
  display: block;
}

.mp-smart-filter .mp-smart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mp-smart-filter .mp-smart-panel-head button {
  border: 0;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 6px 10px;
  color: #334155;
}

.mp-smart-filter .mp-smart-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mp-smart-filter .mp-smart-options button {
  border: 1px solid #dbe3ef;
  background: #fff;
  border-radius: 10px;
  min-height: 34px;
  font-size: 12px;
  color: #334155;
}

.mp-smart-filter .mp-smart-options button.is-active {
  border-color: #dc2626;
  color: #b91c1c;
  background: #fff1f2;
}

.mp-smart-filter .mp-smart-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mp-smart-filter .mp-smart-more-grid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
}

.mp-smart-filter .mp-smart-more-grid select {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 10px;
  background: #fff;
}

.mp-smart-filter .mp-smart-panel-foot {
  margin-top: 12px;
}

.mp-smart-filter .mp-smart-panel-foot button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  font-weight: 700;
}

.mp-home-nav .mp-grid-item b {
  background: linear-gradient(145deg, #e53935, #c81e1e);
  border: 1px solid #b91c1c;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 14px rgba(185, 28, 28, .28);
}
.mp-home-nav .mp-grid-item:nth-child(4n+1) b,
.mp-home-nav .mp-grid-item:nth-child(4n+2) b,
.mp-home-nav .mp-grid-item:nth-child(4n+3) b,
.mp-home-nav .mp-grid-item:nth-child(4n+4) b {
  background: linear-gradient(145deg, #e53935, #c81e1e);
}

.mp-home-nav .mp-grid-item b i {
  color: #f8fafc;
}

.mp-home-nav .mp-grid-item span {
  color: #0f172a;
  font-weight: 600;
}

.mp-home-nav .mp-grid-item.is-vip b {
  background: linear-gradient(160deg, #111214, #272a30);
  border-color: #6e5a2d;
  box-shadow: inset 0 1px 0 rgba(255,214,143,.24), 0 10px 18px rgba(15,23,42,.28);
}

.mp-nav-card {
  margin-top: 12px;
  border: 1px solid #f3c8c8;
  border-radius: 18px;
  padding: 14px 12px 10px;
  background: #fff;
}

.mp-nav-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mp-nav-card-head h3 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
  font-weight: 700;
}

.mp-nav-card-head span {
  min-width: 54px;
  text-align: center;
  font-size: 13px;
  color: #c24141;
  border: 1px solid #f1d0d0;
  border-radius: 999px;
  padding: 2px 10px;
  background: #fff7f7;
}

.mp-home-nav .mp-grid-item {
  position: relative;
}

.mp-grid-badge {
  position: absolute;
  right: 8px;
  top: -6px;
  z-index: 2;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  border-radius: 999px;
  padding: 3px 6px;
  color: #fff;
  font-weight: 700;
}

.mp-grid-badge.is-hot {
  background: #ff7a00;
}

.mp-grid-badge.is-new {
  background: #20a6e8;
}

@media (max-width: 720px) {
  .mp-school-card.mp-school-card-compact {
    grid-template-columns: 64px 1fr;
    gap: 8px;
    padding: 9px;
  }

  .mp-school-card-compact .mp-school-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .mp-school-card-compact .mp-school-main h3 {
    font-size: 15px;
  }

  .mp-school-card-compact .mp-school-head {
    gap: 8px;
  }

  .mp-school-card-compact .mp-card-side {
    min-width: 88px;
    gap: 4px;
  }

  .mp-school-card-compact .mp-sub-action {
    font-size: 10px;
  }

  .mp-school-card-compact .mp-btn.mini,
  .mp-school-card-compact .mp-card-cta {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mp-nav-card-head h3 {
    font-size: 18px;
  }

  .mp-nav-card-head span {
    font-size: 12px;
    min-width: 44px;
  }

  .mp-smart-filter .mp-smart-filter-bar {
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 6px;
  }

  .mp-smart-filter .mp-smart-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-score-mode-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-score-mode-switch div {
    justify-content: space-between;
  }

  .mp-score-mode-switch a {
    flex: 1;
    text-align: center;
  }
}

/* compact top filter (v2) */
.mp-filter-compact-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.mp-filter-compact-top select {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid #e5e7eb;
  background: transparent;
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
  padding: 0 4px;
}

.mp-filter-compact-top select:focus {
  outline: none;
  border-bottom-color: #dc2626;
}

.mp-filter-compact-top .mp-btn.ghost {
  min-height: 34px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .mp-filter-compact-top {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .mp-filter-compact-top input[type="text"] {
    grid-column: 1 / -1;
    min-height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
  }

  .mp-filter-compact-top select {
    font-size: 14px;
    min-height: 34px;
  }

  .mp-filter-compact-top .mp-btn.ghost {
    grid-column: 1 / -1;
  }
}

/* === Search App Card Groups === */
.search-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.search-group-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.search-group-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1f2937;
}

.search-app-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.search-app-item:last-child {
  border-bottom: 0;
}

.search-app-item .thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.search-app-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-app-item .thumb.school { background: #e0f2fe; color: #075985; }
.search-app-item .thumb.material { background: #fee2e2; color: #991b1b; }
.search-app-item .thumb.article { background: #ede9fe; color: #5b21b6; }

.search-app-item .meta {
  min-width: 0;
}

.search-app-item .meta strong {
  display: block;
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-app-item .meta span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Admin list visual upgrade === */
.admin-list-row-home {
  grid-template-columns: 1fr .8fr 1.4fr 1.6fr auto 72px auto auto auto auto;
}

.admin-list-row-event {
  grid-template-columns: 150px 1fr 1fr 1.5fr auto auto auto;
}

.admin-nav-icon-preview-wrap {
  width: 72px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-nav-icon-preview {
  max-width: 38px;
  max-height: 38px;
}

.admin-nav-icon-preview.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .search-group-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .admin-list-row-home,
  .admin-list-row-event {
    grid-template-columns: 1fr;
  }
}

.mp-scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #dc2626, #f97316);
  transition: width 0.08s linear;
}

.mp-detail-anchor-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f43f5e);
}

#detailCoverStage {
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
}

@media (max-width: 900px) {
  .mp-profile-app-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-profile-perm-grid-app {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-profile-archive-grid {
    grid-template-columns: 1fr;
  }

  .mp-facility-grid,
  .mp-peer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mp-profile-app-page {
    padding-bottom: 118px;
  }

  .mp-profile-app-top {
    grid-template-columns: 52px 1fr;
  }

  .mp-profile-app-top .mp-btn {
    grid-column: 1 / -1;
  }

  .mp-profile-timeline li {
    grid-template-columns: 1fr;
  }

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

.mp-estimate-page {
  padding: 14px 0 100px;
}
.mp-estimate-head {
  margin-bottom: 14px;
}
.mp-estimate-head-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mp-estimate-head-top h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.mp-estimate-head-top p {
  margin: 0 0 4px;
  font-weight: 700;
}
.mp-estimate-head-top small {
  color: #64748b;
}
.mp-estimate-form {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.mp-estimate-form label {
  font-weight: 700;
}
.mp-estimate-form input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #f3c2c7;
  padding: 0 12px;
}
.mp-estimate-tips {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #475569;
}
.mp-estimate-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.mp-estimate-tabs button {
  border: 1px solid #f3c2c7;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-weight: 700;
  height: 42px;
  cursor: pointer;
}
.mp-estimate-tabs button.active {
  background: linear-gradient(140deg, #dc2626, #ef4444);
  color: #fff;
  border-color: transparent;
}
.mp-estimate-panel {
  display: none;
  margin-bottom: 10px;
}
.mp-estimate-panel.active {
  display: block;
}
.mp-estimate-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.mp-estimate-panel-head h2 {
  margin: 0;
}
.mp-estimate-list {
  display: grid;
  gap: 10px;
}
.mp-estimate-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  padding: 12px;
}
.mp-estimate-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mp-estimate-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mp-estimate-logo span {
  font-size: 24px;
  font-weight: 800;
  color: #b91c1c;
}
.mp-estimate-main h3 {
  margin: 0;
  font-size: 20px;
}
.mp-estimate-main p {
  margin: 4px 0 8px;
  color: #475569;
}
.mp-estimate-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mp-estimate-line strong {
  color: #991b1b;
}
.mp-estimate-line .level {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
}
.mp-estimate-line em {
  color: #047857;
  font-style: normal;
  font-weight: 700;
}
.mp-estimate-actions {
  display: grid;
  gap: 8px;
}
.mp-estimate-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.mp-estimate-disclaimer {
  margin: 6px 4px 0;
}

@media (max-width: 900px) {
  .mp-estimate-head-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .mp-estimate-form {
    grid-template-columns: 1fr;
  }
  .mp-estimate-tips {
    flex-direction: column;
    align-items: flex-start;
  }
  .mp-estimate-item {
    grid-template-columns: 56px 1fr;
  }
  .mp-estimate-logo {
    width: 56px;
    height: 56px;
  }
  .mp-estimate-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

.mp-estimate-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
}
.mp-first-switch {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
  flex-wrap: wrap;
}
.mp-first-switch button {
  border: 1px solid #f3c2c7;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
}
.mp-first-switch button.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.mp-level-switch {
  display: inline-flex;
  border: 1px solid #f3c2c7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.mp-level-switch button {
  border: 0;
  background: transparent;
  color: #374151;
  height: 40px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}
.mp-level-switch button.active {
  background: linear-gradient(140deg, #dc2626, #ef4444);
  color: #fff;
}
.mp-estimate-filter select,
.mp-estimate-filter input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #f3c2c7;
  padding: 0 10px;
  background: #fff;
}
@media (max-width: 1100px) {
  .mp-estimate-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mp-level-switch {
    grid-column: 1 / -1;
  }
  .mp-estimate-filter .mp-btn {
    width: 100%;
  }
}

.estimate-preset-actions {
  margin: 6px 0 10px;
}
.estimate-setting-preview {
  margin-top: 10px;
  border: 1px dashed #f3c2c7;
  border-radius: 12px;
  background: #fff7f7;
  padding: 10px 12px;
}
.estimate-setting-preview strong {
  color: #991b1b;
  font-size: 14px;
}
.estimate-setting-preview p {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.6;
}

.estimate-threshold-editor {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
}
.estimate-threshold-editor input[type="range"] {
  width: 100%;
  accent-color: #dc2626;
}

.estimate-simulator-form {
  margin-top: 10px;
}
.estimate-sim-result {
  margin-top: 12px;
}
.sim-batch-block {
  margin-top: 10px;
  border: 1px solid #f3d7da;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.sim-batch-block h4 {
  margin: 0 0 8px;
  color: #7f1d1d;
}
.sim-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.sim-pager span {
  color: #475569;
  font-size: 13px;
}

.mp-sim-entry {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(215, 38, 61, .12), rgba(127, 29, 29, .06));
  border: 1px solid rgba(220, 38, 38, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mp-sim-entry strong { display:block; font-size:18px; color:#0f172a; }
.mp-sim-entry p { margin:4px 0 0; color:#64748b; }
.mp-sim-page { padding: 24px 0 110px; }
.mp-sim-hero,
.mp-sim-report-hero,
.mp-sim-submit-card,
.mp-sim-history-card,
.mp-sim-group { margin-bottom: 18px; }
.mp-sim-hero-top,
.mp-sim-group-head,
.mp-sim-report-banner,
.mp-sim-year-switch,
.mp-sim-report-footer {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.mp-sim-profile-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.mp-sim-stat {
  padding:18px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 12px 30px rgba(15,23,42,.05);
}
.mp-sim-stat small { display:block; color:#94a3b8; margin-bottom:6px; }
.mp-sim-stat strong { font-size:18px; color:#0f172a; }
.mp-sim-oldthree-tip {
  margin-top:14px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(250,204,21,.18), rgba(251,191,36,.08));
  color:#92400e;
  border:1px solid rgba(251,191,36,.24);
}
.mp-sim-year-switch select,
.mp-sim-choice select {
  width:100%;
  min-height:48px;
  border-radius:16px;
  border:1px solid rgba(203,213,225,.9);
  background:#fff;
  padding:0 14px;
}
.mp-sim-choice-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.mp-sim-choice {
  display:block;
  padding:16px;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fff8f7);
  border:1px solid rgba(244,63,94,.10);
}
.mp-sim-choice span { display:block; margin-bottom:8px; font-weight:700; color:#0f172a; }
.mp-sim-choice small { display:block; margin-top:8px; line-height:1.6; }
.mp-sim-school-table { margin-top:16px; }
.mp-sim-submit-card { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mp-sim-history-list { display:grid; gap:12px; margin-top:12px; }
.mp-sim-history-item {
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:16px 18px; border-radius:18px; background:#fff; border:1px solid rgba(226,232,240,.9);
}
.mp-sim-history-item strong { color:#0f172a; }
.mp-sim-history-item p { margin:6px 0 0; color:#64748b; }
.mp-sim-report-banner {
  padding:24px;
  border-radius:26px;
  margin-bottom:18px;
  box-shadow:0 22px 48px rgba(15,23,42,.08);
}
.mp-sim-report-banner.success { background:linear-gradient(135deg, rgba(220,252,231,.92), rgba(240,253,244,.98)); }
.mp-sim-report-banner.risk { background:linear-gradient(135deg, rgba(254,242,242,.98), rgba(255,237,213,.92)); }
.mp-sim-timeline { display:grid; gap:12px; margin-top:12px; }
.mp-sim-timeline-item {
  position:relative; padding:16px 18px 16px 22px; border-radius:18px; background:#fff; border:1px solid rgba(226,232,240,.9);
}
.mp-sim-timeline-item::before {
  content:''; position:absolute; left:10px; top:18px; width:6px; height:6px; border-radius:999px; background:#cbd5e1;
}
.mp-sim-timeline-item.admitted::before { background:#16a34a; }
.mp-sim-timeline-item.rejected::before { background:#ef4444; }
.mp-sim-timeline-item.skipped::before { background:#f59e0b; }
.mp-sim-timeline-item strong { display:block; color:#0f172a; margin-bottom:6px; }
.mp-sim-timeline-item p { margin:0; color:#64748b; }
.mp-sim-report-footer { margin-bottom:40px; }

@media (max-width: 900px) {
  .mp-sim-profile-grid,
  .mp-sim-choice-grid { grid-template-columns:1fr; }
  .mp-sim-entry,
  .mp-sim-hero-top,
  .mp-sim-group-head,
  .mp-sim-submit-card,
  .mp-sim-report-banner,
  .mp-sim-report-footer { flex-direction:column; }
}

.mp-sim-plan-header,
.mp-sim-identity-card {
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,246,244,.96));
}
.mp-sim-identity-row {
  display:grid;
  grid-template-columns: 1.4fr .8fr .9fr;
  gap:14px;
  margin-top:18px;
}
.mp-sim-identity-main,
.mp-sim-identity-score,
.mp-sim-identity-gradient {
  border-radius:22px;
  padding:18px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 14px 38px rgba(15,23,42,.06);
}
.mp-sim-identity-main strong,
.mp-sim-identity-score b,
.mp-sim-identity-gradient b { display:block; color:#0f172a; font-size:20px; }
.mp-sim-identity-main span,
.mp-sim-identity-score small,
.mp-sim-identity-gradient small { display:block; margin-top:6px; color:#64748b; }
.mp-sim-plan-name { display:grid; gap:8px; min-width:320px; }
.mp-sim-plan-name input {
  height:48px; border-radius:16px; border:1px solid rgba(203,213,225,.9); padding:0 14px; background:#fff;
}
.mp-sim-tabs {
  display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:10px; margin-bottom:16px;
  position:sticky; top:16px; z-index:20;
  background:rgba(248,250,252,.86); backdrop-filter:blur(16px); padding:10px; border-radius:22px; border:1px solid rgba(226,232,240,.9);
}
.mp-sim-tabs button {
  border:0; border-radius:18px; padding:14px 12px; background:#fff; color:#475569; cursor:pointer; text-align:left;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.mp-sim-tabs button span { display:block; font-weight:800; color:#0f172a; }
.mp-sim-tabs button em { display:block; margin-top:4px; font-style:normal; color:#94a3b8; }
.mp-sim-tabs button.active { background:linear-gradient(135deg, #dc2626, #ef4444); color:#fff; }
.mp-sim-tabs button.active span,.mp-sim-tabs button.active em { color:#fff; }
.mp-sim-group { display:none; }
.mp-sim-group.is-active { display:block; }
.mp-sim-toolbar {
  display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:12px; margin:16px 0;
}
.mp-sim-toolbar label { display:grid; gap:6px; }
.mp-sim-toolbar label span { font-size:13px; color:#64748b; }
.mp-sim-toolbar input,.mp-sim-toolbar select {
  height:44px; border-radius:14px; border:1px solid rgba(203,213,225,.9); padding:0 12px; background:#fff;
}
.mp-sim-slot-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.mp-sim-slot {
  position:relative; min-height:132px; border-radius:24px; background:linear-gradient(160deg,#fff,#fff6f5); border:1px solid rgba(244,63,94,.10); overflow:hidden;
}
.mp-sim-slot-button {
  width:100%; min-height:132px; border:0; background:transparent; text-align:left; padding:18px 18px 18px 20px; cursor:pointer;
}
.mp-sim-slot-button .slot-order { display:block; font-size:13px; color:#94a3b8; margin-bottom:10px; }
.mp-sim-slot-button .slot-title { display:block; font-size:19px; color:#0f172a; margin-bottom:8px; }
.mp-sim-slot-button .slot-meta { display:block; color:#64748b; line-height:1.6; max-width:80%; }
.mp-sim-slot-button i {
  position:absolute; right:18px; top:18px; width:36px; height:36px; border-radius:999px; display:grid; place-items:center; font-style:normal;
  color:#fff; background:linear-gradient(135deg,#dc2626,#ef4444); font-size:22px;
}
.mp-sim-slot-clear {
  position:absolute; right:16px; bottom:16px; border:0; background:#fff; color:#dc2626; font-weight:700; cursor:pointer;
}
.mp-sim-dataset { margin-top:16px; }
.mp-sim-dataset summary { cursor:pointer; color:#7f1d1d; font-weight:700; }
.mp-sim-sticky-submit {
  position:sticky; bottom:18px; z-index:25; margin-top:18px; display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:16px 18px; border-radius:24px; background:rgba(255,255,255,.94); border:1px solid rgba(226,232,240,.95); box-shadow:0 18px 48px rgba(15,23,42,.10);
}
.mp-sim-sticky-submit strong { display:block; color:#0f172a; }
.mp-sim-sticky-submit span { color:#64748b; }
.mp-sim-picker[hidden] { display:none !important; }
.mp-sim-picker { position:fixed; inset:0; z-index:60; }
.mp-sim-picker-mask { position:absolute; inset:0; background:rgba(15,23,42,.45); }
.mp-sim-picker-sheet {
  position:absolute; left:0; right:0; top:clamp(56px, 10vh, 120px); bottom:0; border-radius:28px 28px 0 0; background:#fff; padding:18px;
  display:flex; flex-direction:column; overflow:hidden; padding-bottom:calc(18px + env(safe-area-inset-bottom));
  box-shadow:0 -20px 50px rgba(15,23,42,.18);
}
.mp-sim-picker-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:12px; }
.mp-sim-picker-head strong { display:block; color:#0f172a; font-size:20px; }
.mp-sim-picker-head small { color:#64748b; }
.mp-sim-picker-count { display:inline-flex; align-items:center; margin-top:8px; padding:4px 10px; border-radius:999px; background:#fff2f2; color:#d63b36; font-size:12px; font-weight:700; }
.mp-sim-picker-list { display:grid; gap:10px; overflow:auto; flex:1; -webkit-overflow-scrolling:touch; }
.mp-sim-school-item {
  width:100%; border:1px solid rgba(226,232,240,.9); border-radius:18px; background:#fff; padding:14px 16px; text-align:left; cursor:pointer;
  display:flex; justify-content:space-between; gap:14px; align-items:flex-start;
}
.mp-sim-school-item strong { display:block; color:#0f172a; }
.mp-sim-school-tag {
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:#fff1f1;
  color:#d63b36;
  font-size:12px;
  font-style:normal;
  font-weight:700;
}
.mp-sim-school-item small { display:block; margin-top:6px; color:#64748b; }
.mp-sim-school-side { text-align:right; display:grid; gap:4px; }
.mp-sim-school-side b { color:#dc2626; font-size:20px; }
.mp-sim-school-side span { color:#334155; font-size:13px; }
.mp-sim-school-side em { color:#16a34a; font-style:normal; font-size:12px; }
.mp-sim-school-item.is-disabled { opacity:.48; cursor:not-allowed; }
body.sim-picker-open { overflow:hidden; }
.mp-sim-report-page .mp-sim-report-banner {
  background-size:cover; border-radius:30px; padding:28px; overflow:hidden;
}
.mp-sim-report-banner.success { background:linear-gradient(135deg,#064e3b,#0f766e); color:#fff; }
.mp-sim-report-banner.risk { background:linear-gradient(135deg,#9a3412,#dc2626); color:#fff; }
.mp-sim-report-banner.success .mp-chip,.mp-sim-report-banner.risk .mp-chip { background:rgba(255,255,255,.16); color:#fff; }
.mp-sim-report-side { display:grid; gap:14px; align-items:start; }
.mp-sim-result-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.mp-sim-result-tags span { padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; }
.mp-sim-score-strip { display:flex; flex-wrap:wrap; gap:8px; }
.mp-sim-score-strip span { padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.14); color:#fff; }
.mp-sim-waterfall { position:relative; padding-left:26px; display:grid; gap:14px; }
.mp-sim-waterfall::before { content:''; position:absolute; left:10px; top:8px; bottom:8px; width:2px; background:linear-gradient(180deg,#fecaca,#fca5a5); }
.mp-sim-timeline-item { opacity:0; transform:translateY(18px); animation:simWaterfallIn .45s ease forwards; }
.mp-sim-node {
  position:absolute; left:-14px; top:18px; width:28px; height:28px; border-radius:999px; display:grid; place-items:center; font-weight:800;
  background:#cbd5e1; color:#fff;
}
.mp-sim-timeline-item.admitted .mp-sim-node { background:#16a34a; }
.mp-sim-timeline-item.rejected .mp-sim-node { background:#ef4444; }
.mp-sim-timeline-item.skipped .mp-sim-node { background:#94a3b8; }
.mp-sim-timeline-item.is-final { box-shadow:0 18px 40px rgba(34,197,94,.18); border-color:rgba(34,197,94,.35); }
.mp-sim-report-cta-box { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.mp-sim-report-detail summary {
  display:flex; justify-content:space-between; gap:16px; align-items:center; cursor:pointer; font-weight:800; color:#0f172a;
}
.mp-sim-report-page .mp-list-top {
  margin-bottom: 16px;
}

.mp-sim-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.mp-sim-report-kpi {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fff5f4);
  border: 1px solid rgba(217, 65, 58, .08);
  box-shadow: 0 14px 28px rgba(217, 65, 58, .06);
}

.mp-sim-report-kpi small {
  display: block;
  color: #8b94a7;
  margin-bottom: 8px;
}

.mp-sim-report-kpi strong {
  display: block;
  color: #172033;
  font-size: 28px;
}

.mp-sim-report-kpi span {
  display: block;
  margin-top: 8px;
  color: #5b6475;
  line-height: 1.6;
}

.mp-sim-report-detail {
  overflow: hidden;
  border: 1px solid rgba(217,65,58,.08);
  box-shadow: 0 16px 36px rgba(217,65,58,.05);
}

.mp-sim-report-detail summary {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,242,.94));
}

.mp-sim-report-detail summary span {
  color: #172033;
}

.mp-sim-report-detail summary small {
  color: #d9413a;
  font-weight: 700;
}

.mp-sim-report-detail .table-wrap {
  padding: 0 18px 18px;
}

.mp-sim-report-detail .data-table thead th {
  background: rgba(217, 65, 58, .06);
  color: #475569;
}

.mp-sim-report-detail .data-table tbody td {
  background: #fff;
}

.mp-sim-report-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mp-sim-rule-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff6f5);
  border: 1px solid rgba(217,65,58,.08);
  box-shadow: 0 16px 30px rgba(217,65,58,.05);
}

.mp-sim-rule-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.mp-sim-rule-top strong {
  color: #172033;
  font-size: 18px;
}

.mp-sim-rule-block {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(217,65,58,.08);
}

.mp-sim-rule-block small {
  display: block;
  color: #d9413a;
  font-weight: 800;
  margin-bottom: 6px;
}

.mp-sim-rule-block p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.mp-sim-row-rule-hint {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(217,65,58,.06);
  color: #b42318;
  font-size: 12px;
  line-height: 1.6;
}

.mp-sim-report-footer {
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(217,65,58,.08), rgba(255,255,255,.98));
  border: 1px solid rgba(217,65,58,.08);
}
.mp-chip.warn { background:#fef3c7; color:#92400e; }
.mp-chip.danger { background:#fee2e2; color:#b91c1c; }
@keyframes simWaterfallIn {
  from { opacity:0; transform:translateY(18px); }
  to { opacity:1; transform:translateY(0); }
}
@media (max-width: 900px) {
  .mp-sim-identity-row,
  .mp-sim-tabs,
  .mp-sim-toolbar,
  .mp-sim-slot-grid { grid-template-columns:1fr; }
  .mp-sim-report-cta-box,
  .mp-sim-sticky-submit { flex-direction:column; align-items:flex-start; }
  .mp-sim-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-sim-report-rules { grid-template-columns: 1fr; }
  .mp-sim-plan-name { min-width:0; width:100%; }
}

@media (max-width: 768px) {
  .mp-school-plan-batch-list {
    grid-template-columns: 1fr;
  }

  .mp-school-plan-year-card__head,
  .mp-school-plan-batch-card__top,
  .mp-school-plan-batch-card__meta {
    flex-direction: column;
  }

  .mp-school-plan-year-card__stats,
  .mp-school-plan-batch-card__chips {
    width: 100%;
  }

  .mp-school-competition-highlight {
    grid-template-columns: 1fr;
  }

  .mp-school-competition-topbadges {
    justify-content: flex-start;
  }

  .mp-school-competition-year-detail__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-sim-report-kpis {
    grid-template-columns: 1fr;
  }
}

/* simulate: mobile-first compact rebuild */
.mp-sim-page {
  padding-bottom: 180px;
}
.mp-sim-top {
  align-items: flex-start;
}
.mp-sim-compact-card {
  margin: 10px 0 16px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(140deg, #111827, #7f1d1d);
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.mp-sim-compact-main {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}
.mp-sim-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  background: rgba(255, 255, 255, .2);
  flex: 0 0 auto;
}
.mp-sim-compact-meta {
  min-width: 0;
}
.mp-sim-name-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.mp-sim-name-row strong {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
}
.mp-sim-name-row b {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.mp-sim-tag-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mp-sim-tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #f8fafc;
  font-size: 12px;
}
.mp-sim-compact-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.mp-sim-year-inline select {
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  padding: 0 10px;
}
.mp-sim-edit-mini {
  color: #fff;
  font-size: 13px;
  opacity: .92;
}
.mp-sim-tabs-slim {
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  gap: 16px;
  margin: 4px 0 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.mp-sim-tabs-slim::-webkit-scrollbar {
  display: none;
}
.mp-sim-tabs-slim button {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 2px;
  font-size: 15px;
  color: #64748b;
  flex: 0 0 auto;
}
.mp-sim-tabs-slim button span {
  color: inherit;
  font-weight: 600;
}
.mp-sim-tabs-slim button.active {
  background: transparent;
  color: #0f172a;
}
.mp-sim-tabs-slim button.active span {
  color: #0f172a;
  font-weight: 800;
}
.mp-sim-tabs-slim button.active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.mp-sim-group-head h2 {
  margin-bottom: 4px;
}
.mp-sim-first-split {
  display: grid;
  gap: 14px;
}
.mp-sim-first-module {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fff7f6);
  border: 1px solid rgba(220, 38, 38, .08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .05);
}
.mp-sim-first-module.is-hkmt {
  background: linear-gradient(180deg, #fffaf5, #fff5ec);
}
.mp-sim-first-module.is-locked {
  opacity: .92;
}
.mp-sim-first-module__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.mp-sim-first-module__head h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 18px;
}
.mp-sim-first-module__head p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}
.mp-sim-first-locked-tip {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  border: 1px dashed rgba(220, 38, 38, .24);
  color: #9f1239;
  font-weight: 700;
}
.mp-sim-slot-grid {
  grid-template-columns: 1fr;
}
.mp-sim-slot {
  min-height: 108px;
  border-radius: 18px;
}
.mp-sim-slot[draggable="true"] {
  cursor: grab;
}
.mp-sim-slot.dragging {
  opacity: .55;
}
.mp-sim-slot.filled {
  border-color: rgba(22, 163, 74, .26);
  background: linear-gradient(165deg, #ffffff, #f0fdf4);
}
.mp-sim-slot-button {
  min-height: 108px;
  padding: 14px 16px 14px 14px;
}
.slot-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slot-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: #dc2626;
  font-weight: 800;
  flex: 0 0 auto;
}
.slot-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot-info {
  min-width: 0;
  flex: 1;
}
.mp-sim-slot-button .slot-title {
  margin-bottom: 4px;
  font-size: 17px;
}
.mp-sim-slot-button .slot-meta {
  max-width: none;
  margin-bottom: 8px;
}
.slot-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.slot-tags em {
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  background: #e2e8f0;
  color: #334155;
}
.slot-tags .slot-risk {
  background: #fef9c3;
  color: #854d0e;
}
.slot-tags .slot-risk.rush {
  background: #ffedd5;
  color: #9a3412;
}
.slot-tags .slot-risk.steady {
  background: #dcfce7;
  color: #166534;
}
.slot-tags .slot-risk.safe {
  background: #dbeafe;
  color: #1d4ed8;
}
.mp-sim-slot-clear {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}
.mp-sim-picker-filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
.mp-sim-picker-filters input,
.mp-sim-picker-filters select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, .9);
  padding: 0 10px;
  background: #fff;
}
@media (max-width: 768px) {
  .mp-sim-first-module {
    padding: 14px;
    border-radius: 18px;
  }
  .mp-sim-first-module__head {
    flex-direction: column;
  }
}
.mp-sim-school-side em {
  justify-self: end;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
}
.mp-sim-school-side em.rush {
  background: #ffedd5;
  color: #9a3412;
}
.mp-sim-school-side em.steady {
  background: #dcfce7;
  color: #166534;
}
.mp-sim-school-side em.safe {
  background: #dbeafe;
  color: #1d4ed8;
}
.mp-sim-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, .95) 35%, rgba(248, 250, 252, .97) 100%);
}
.mp-sim-action-bar .mp-btn {
  width: min(980px, 100%);
  margin: 0 auto;
  display: block;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

/* simulate report: final mobile card tune */
.mp-sim-report-page {
  padding-bottom: 96px;
}
.mp-sim-report-app .container {
  width: min(760px, calc(100vw - 28px));
}
.mp-sim-report-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 18px;
}
.mp-sim-report-titlebox h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  color: #b91c1c;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.mp-sim-report-titlebox p {
  margin: 6px 0 0;
  color: #7a879a;
  font-size: 13px;
}
.mp-sim-report-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.mp-sim-report-notice {
  border-radius: 28px;
  padding: 22px;
  border: 1px solid rgba(248, 113, 113, .18);
  background: linear-gradient(135deg, #fff5f5, #ffe7e7);
  box-shadow: 0 18px 40px rgba(220, 38, 38, .08);
  max-width: 680px;
}
.mp-sim-report-page.is-basic-report .mp-sim-report-notice {
  max-width: none;
}
.mp-sim-report-notice.risk {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}
.mp-sim-report-notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.mp-sim-report-notice.risk .mp-sim-report-notice__badge {
  background: #f59e0b;
}
.mp-sim-report-notice h2 {
  margin: 12px 0 8px;
  color: #b91c1c;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}
.mp-sim-report-notice p {
  color: #7f1d1d;
  line-height: 1.7;
}
.mp-sim-report-waterfall-card,
.mp-sim-report-efficiency,
.mp-sim-report-detail,
.mp-sim-report-svip {
  border-radius: 24px;
}
.mp-sim-report-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mp-sim-waterfall {
  padding-left: 24px;
}
.mp-sim-waterfall::before {
  left: 10px;
  top: 10px;
  bottom: 10px;
}
.mp-sim-timeline-item {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fff9f8);
  border: 1px solid rgba(241, 215, 215, .92);
  box-shadow: 0 10px 22px rgba(220, 38, 38, .05);
}
.mp-sim-timeline-item.is-final {
  border-color: rgba(16, 185, 129, .24);
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}
.mp-sim-node {
  position: absolute;
  left: -24px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  background: #fff;
  border: 1px solid #fecaca;
  color: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .12);
}
.mp-sim-timeline-item.admitted .mp-sim-node {
  color: #059669;
  border-color: rgba(16, 185, 129, .22);
  background: #ecfdf5;
}
.mp-sim-timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.mp-sim-timeline-status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}
.mp-sim-timeline-status.admitted {
  background: #d1fae5;
  color: #166534;
}
.mp-sim-timeline-status.rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.mp-sim-timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mp-sim-report-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.mp-sim-report-detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .95);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.mp-sim-report-detail-meta span.is-hit {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, .2);
  color: #166534;
}
.mp-sim-report-detail summary {
  padding: 16px 18px;
}
.mp-sim-report-detail-inner {
  padding: 0 16px 16px;
}
.mp-sim-report-detail .data-table {
  min-width: 920px;
}
.mp-sim-report-detail .data-table tbody tr {
  background: linear-gradient(180deg, #ffffff, #fffdfd);
}
.mp-sim-report-detail .data-table tbody tr:hover {
  background: #fff7f7;
}
.mp-sim-school-cell strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.mp-sim-school-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.mp-sim-row-rule-hint {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}
.mp-sim-report-footer-actions {
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .mp-sim-report-app .container {
    width: calc(100vw - 24px);
  }
  .mp-sim-report-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .mp-sim-report-titlebox h1 {
    font-size: 28px;
  }
  .mp-sim-report-notice {
    padding: 18px;
  }
  .mp-sim-report-notice h2 {
    font-size: 24px;
  }
  .mp-sim-timeline-top {
    flex-direction: column;
  }
  .mp-sim-report-detail-meta {
    margin-top: 12px;
  }
  .mp-sim-report-notice {
    max-width: none;
  }
}
@media (max-width: 560px) {
  .mp-sim-report-result-tags span {
    font-size: 12px;
    padding: 5px 10px;
  }
  .mp-sim-report-stat strong {
    font-size: 22px;
  }
  .mp-sim-report-detail summary span {
    font-size: 17px;
  }
  .mp-sim-report-detail summary small {
    font-size: 11px;
  }
  .mp-sim-report-detail .table-wrap {
    margin: 0 -6px;
  }
  .mp-sim-report-detail .data-table,
  .mp-sim-report-detail .data-table tbody,
  .mp-sim-report-detail .data-table tr,
  .mp-sim-report-detail .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .mp-sim-report-detail .data-table thead {
    display: none;
  }
  .mp-sim-report-detail .data-table tbody {
    display: grid;
    gap: 10px;
  }
  .mp-sim-report-detail .data-table tbody tr {
    border: 1px solid rgba(248, 113, 113, .12);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .04);
  }
  .mp-sim-report-detail .data-table tbody td {
    padding: 6px 0;
    border: 0;
    font-size: 12px;
  }
  .mp-sim-report-detail .data-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
  }
  .mp-sim-report-detail .data-table tbody td:nth-child(1)::before { content: "志愿"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(2)::before { content: "学校"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(3)::before { content: "最低分"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(4)::before { content: "梯度"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(5)::before { content: "末位志愿"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(6)::before { content: "末位考生分"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(7)::before { content: "结果"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(8)::before { content: "说明"; }
}
.mp-sim-history-item {
  align-items: center;
}
.mp-sim-history-link {
  flex: 1;
  min-width: 0;
}
.mp-sim-history-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mp-status-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.mp-status-badge.ok {
  background: #dcfce7;
  color: #166534;
}

/* simulate report: final polish */
.mp-sim-report-stats {
  gap: 10px;
}
.mp-sim-report-stat {
  min-height: 118px;
  padding: 14px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 16px 26px rgba(220, 38, 38, .06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mp-sim-report-stat strong {
  font-size: 26px;
}
.mp-sim-timeline-item {
  box-shadow: 0 12px 24px rgba(220, 38, 38, .05);
}
.mp-sim-node {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.mp-sim-timeline-item.admitted .mp-sim-timeline-status {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .12);
}
.mp-sim-timeline-item.rejected .mp-sim-timeline-status {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .08);
}
@media (max-width: 560px) {
  .mp-sim-report-stats {
    gap: 8px;
  }
  .mp-sim-report-stat {
    min-height: 102px;
    padding: 12px 8px 10px;
    border-radius: 18px;
  }
  .mp-sim-report-stat strong {
    font-size: 23px;
  }
  .mp-sim-report-detail .data-table tbody td:nth-child(1)::before { content: "志愿"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(2)::before { content: "学校"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(3)::before { content: "最低分"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(4)::before { content: "梯度"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(5)::before { content: "末位志愿"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(6)::before { content: "末位考生分"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(7)::before { content: "结果"; }
  .mp-sim-report-detail .data-table tbody td:nth-child(8)::before { content: "说明"; }
}
.mp-status-badge.risk {
  background: #fee2e2;
  color: #b91c1c;
}
.mp-history-copy {
  color: #334155;
  font-size: 13px;
}
.mp-history-copy:hover {
  color: #dc2626;
}
.mp-modal[hidden] {
  display: none !important;
}
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.mp-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
}
.mp-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 28px));
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .26);
}
.mp-modal-card h3 {
  margin: 0 0 8px;
}
.mp-modal-card p {
  margin: 0 0 12px;
  color: #64748b;
}
.mp-modal-card input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, .95);
  padding: 0 12px;
}
.mp-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 900px) {
  .mp-sim-picker-filters {
    grid-template-columns: 1fr 1fr;
  }
  .mp-sim-picker-filters .mp-btn {
    grid-column: span 2;
  }
  .mp-sim-action-bar {
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 10px;
  }
  .mp-sim-history-item {
    align-items: flex-start;
  }
  .mp-sim-history-right {
    margin-top: 8px;
  }
}

.mp-lead-card {
  margin-top: 14px;
  border: 1px solid rgba(14, 116, 144, .18);
  background: linear-gradient(160deg, #f8fafc, #ecfeff);
}
.mp-lead-head h3 {
  margin: 0 0 6px;
  color: #0f172a;
}
.mp-lead-head p {
  margin: 0 0 10px;
  color: #475569;
}
.mp-lead-qr-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mp-lead-qr-img {
  width: 108px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #fff;
  display: grid;
  place-items: center;
}
.mp-lead-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-lead-qr-meta strong {
  display: block;
  margin-bottom: 4px;
}
.mp-lead-qr-meta p {
  margin: 0 0 6px;
  color: #334155;
}
.mp-lead-qr-meta span {
  color: #0f766e;
  font-size: 13px;
}
.mp-lead-form {
  margin-top: 8px;
}
.mp-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.mp-lead-item {
  display: grid;
  gap: 6px;
}
.mp-lead-item.full {
  grid-column: 1 / -1;
}
.mp-lead-item span {
  color: #475569;
  font-size: 13px;
}
.mp-lead-item input,
.mp-lead-item select,
.mp-lead-item textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}
.mp-lead-item textarea {
  min-height: 84px;
  resize: vertical;
}
.mp-lead-radio {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mp-lead-radio label {
  font-size: 13px;
  color: #334155;
}
@media (max-width: 900px) {
  .mp-lead-grid {
    grid-template-columns: 1fr;
  }
  .mp-lead-qr-wrap {
    align-items: flex-start;
  }
}

/* admin cms refresh */
.admin-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 116, 144, 0.08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(2, 132, 199, 0.08), transparent 24%),
    #f8fafc;
}
.admin-shell {
  grid-template-columns: 300px 1fr;
}
.admin-sidebar {
  background: linear-gradient(180deg, #0f172a, #1e293b 45%, #0f172a);
  box-shadow: 16px 0 34px rgba(15, 23, 42, 0.24);
}
.admin-brand-mark {
  background: linear-gradient(145deg, #bae6fd, #e0f2fe);
  color: #0f172a;
}
.admin-brand-title {
  font-size: 20px;
}
.admin-brand-sub {
  color: rgba(226, 232, 240, 0.78);
}
.admin-nav-link {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.admin-nav-link:hover {
  background: rgba(148, 163, 184, 0.24);
}
.admin-nav-link.active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
}
.admin-nav-group-fold {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
}
.admin-main-panel {
  padding: 22px;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -8px -8px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.admin-topbar-title {
  font-size: 26px;
}
.admin-card,
.module-editor-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.section-head h2 {
  color: #0f172a;
}
.muted {
  color: #64748b;
}
.toolbar-grid input,
.toolbar-grid select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}
.btn-secondary {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #fff;
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.data-table {
  border-collapse: separate;
  border-spacing: 0;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}
.data-table td,
.data-table th {
  border-bottom: 1px solid #edf2f7;
}
.data-table tbody tr:hover td {
  background: #f8fbff;
}
.table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: auto;
}
@media (max-width: 1200px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    max-height: 48vh;
  }
}

/* admin hard-scroll fix */
html,
body {
  height: 100%;
}
body.admin-body {
  overflow: hidden;
}
.admin-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  align-items: stretch;
}
.admin-sidebar {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.admin-main-panel {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}
.admin-nav {
  min-height: 0;
}
@media (max-width: 1200px) {
  body.admin-body {
    overflow: auto;
  }
  .admin-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .admin-main-panel {
    height: auto;
    overflow: visible;
  }
}

/* target gap */
.mp-target-gap-page {
  padding: 12px 0 110px;
  display: grid;
  gap: 12px;
}

.mp-target-gap-select {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  padding: 10px;
}

.mp-target-gap-select label {
  display: grid;
  gap: 6px;
}

.mp-target-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-target-current strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 18px;
}

.mp-target-gap-select span {
  color: #64748b;
  font-size: 13px;
}

.mp-target-gap-select select {
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  height: 40px;
  padding: 0 10px;
  background: #f8fafc;
}

.mp-target-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 16px;
  color: #fff;
}

.mp-target-hero .mp-target-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 10%, rgba(255,255,255,.18), transparent 38%), linear-gradient(135deg, #0f172a, #1e293b);
  z-index: 0;
}

.mp-target-hero .mp-target-hero-mark {
  position: absolute;
  right: -14px;
  top: -8px;
  width: 120px;
  height: 120px;
  background-image: var(--hero-logo);
  background-size: cover;
  background-position: center;
  opacity: .16;
  filter: grayscale(100%);
  z-index: 0;
}

.mp-target-hero.is-lead .mp-target-hero-bg {
  background: radial-gradient(circle at 18% 10%, rgba(255,255,255,.18), transparent 38%), linear-gradient(135deg, #14532d, #166534);
}

.mp-target-hero.is-sprint .mp-target-hero-bg {
  background: radial-gradient(circle at 18% 10%, rgba(255,255,255,.18), transparent 38%), linear-gradient(135deg, #9a3412, #c2410c);
}

.mp-target-hero.is-risk .mp-target-hero-bg {
  background: radial-gradient(circle at 18% 10%, rgba(255,255,255,.18), transparent 38%), linear-gradient(135deg, #7f1d1d, #b91c1c);
}

.mp-target-hero > * {
  position: relative;
  z-index: 1;
}

.mp-target-hero p {
  margin: 0;
  opacity: .9;
  font-size: 13px;
}

.mp-target-hero h2 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.mp-target-gap-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mp-target-gap-value strong {
  font-size: 40px;
  line-height: 1;
  letter-spacing: .5px;
}

.mp-target-gap-value.level-lead strong {
  animation: gapLeadGlow 2.6s ease-in-out infinite;
}

.mp-target-gap-value.level-sprint strong {
  animation: gapSprintBeat 1.8s ease-in-out infinite;
}

.mp-target-gap-value.level-risk strong {
  animation: gapRiskPulse 1.2s ease-in-out infinite;
}

.mp-target-gap-value span {
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.26);
  padding: 4px 10px;
  font-size: 12px;
}

.mp-target-hero small {
  margin-top: 8px;
  display: block;
  opacity: .95;
}

.mp-target-runway {
  padding: 14px;
}

.mp-target-runway-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.mp-target-runway-head h3 {
  margin: 0;
}

.mp-target-runway-head span {
  color: #64748b;
  font-size: 13px;
}

.mp-runway-track {
  position: relative;
  margin-top: 26px;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
}

.mp-runway-gap {
  position: absolute;
  top: 31px;
  height: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, rgba(239,68,68,.22), rgba(239,68,68,.22) 6px, rgba(239,68,68,.08) 6px, rgba(239,68,68,.08) 12px);
}

.mp-runway-gap em {
  position: absolute;
  top: -22px;
  left: 0;
  font-style: normal;
  font-size: 12px;
  color: #b91c1c;
  white-space: nowrap;
}

.mp-runway-user,
.mp-runway-line {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.mp-runway-user i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #0ea5e9;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, .35);
}

.mp-runway-line i {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

.mp-runway-user span,
.mp-runway-line span {
  font-size: 12px;
  color: #334155;
  font-weight: 700;
}

.mp-target-trend {
  padding: 14px;
}

.mp-target-year-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-target-year-pills button {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 10px;
}

.mp-target-year-pills button.active {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fff1f2;
}

.mp-trend-svg {
  width: 100%;
  height: 180px;
  margin-top: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.mp-trend-svg .axis {
  stroke: #cbd5e1;
  stroke-width: 1;
}

.mp-trend-svg .estimate-line {
  stroke: #0ea5e9;
  stroke-width: 2;
  stroke-dasharray: 6 4;
  opacity: .8;
}

.mp-trend-svg .score-line {
  fill: none;
  stroke: #ef4444;
  stroke-width: 3;
}

.mp-trend-svg .score-dot {
  fill: #fff;
  stroke: #dc2626;
  stroke-width: 2;
}

.mp-trend-tip {
  position: absolute;
  transform: translate(-50%, -140%);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 4;
}

.mp-target-trend {
  position: relative;
}

.mp-target-cta {
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.mp-target-cta.is-warn {
  border-color: #fecaca;
  background: #fff1f2;
}

.mp-target-cta h3 {
  margin: 0 0 6px;
}

.mp-target-cta p {
  margin: 0;
  color: #64748b;
}

/* === 2026-03-22 Estimate / Target Gap pro visual sync === */
.mp-estimate-pro-page,
.mp-target-gap-pro-page {
  padding-top: 16px;
}

.mp-estimate-pro-top,
.mp-target-gap-pro-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mp-estimate-pro-top__main,
.mp-target-gap-pro-top > :first-child {
  min-width: 0;
}

.mp-estimate-pro-top h1,
.mp-target-gap-pro-top h1 {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 4px;
  color: #162033;
}

.mp-estimate-pro-top .muted,
.mp-target-gap-pro-top .muted {
  color: #7b8798;
  font-size: 14px;
}

.mp-estimate-pro-hero,
.mp-target-pro-current-card,
.mp-target-pro-hero,
.mp-target-pro-runway,
.mp-target-pro-trend,
.mp-target-pro-cta {
  border-radius: 28px;
  border: 1px solid rgba(217, 65, 58, 0.1);
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,247,0.98));
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.07);
}

.mp-estimate-pro-hero {
  padding: 22px 18px 18px;
}

.mp-estimate-pro-hero__top {
  align-items: flex-start;
  margin-bottom: 14px;
}

.mp-estimate-pro-identity h2 {
  font-size: 28px;
  color: #182235;
  margin-bottom: 8px;
}

.mp-estimate-pro-identity p {
  color: #2f3a4f;
  font-size: 16px;
  font-weight: 800;
}

.mp-estimate-pro-identity small {
  display: block;
  margin-top: 4px;
  color: #7b8798;
  line-height: 1.5;
}

.mp-estimate-pro-scorebox {
  grid-template-columns: 110px 1fr auto;
  margin: 16px 0 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
  border: 1px solid rgba(217, 65, 58, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.mp-estimate-pro-scorebox label {
  color: #475467;
  font-size: 15px;
}

.mp-estimate-pro-scorebox input {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(217, 65, 58, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  font-size: 15px;
}

.mp-estimate-pro-actions {
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.mp-estimate-pro-actions > span {
  flex: 1 1 240px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
  border: 1px solid rgba(217, 65, 58, 0.1);
  color: #5c6678;
}

.mp-estimate-pro-actions .mp-btn {
  min-height: 46px;
  padding: 0 18px;
}

.mp-estimate-pro-filterbar {
  gap: 12px;
  margin-bottom: 14px;
}

.mp-estimate-pro-filterbar .mp-btn {
  min-height: 44px;
  padding: 0 18px;
}

.mp-estimate-page .mp-estimate-tabs {
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,248,250,0.98));
  border: 1px solid rgba(217, 65, 58, 0.08);
}

.mp-estimate-page .mp-estimate-tabs button {
  min-height: 54px;
  border-radius: 16px;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.mp-estimate-page .mp-estimate-tabs button.active {
  background: linear-gradient(135deg, #d9413a, #bf2e2a);
  color: #fff;
  box-shadow: 0 16px 30px rgba(217, 65, 58, 0.18);
}

.mp-estimate-panel.mp-front-tone-card {
  border-radius: 28px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.07);
}

.mp-estimate-panel-head {
  margin-bottom: 14px;
}

.mp-estimate-panel-head h2 {
  font-size: 28px;
  color: #182235;
}

.mp-estimate-panel-head span {
  color: #7b8798;
  font-size: 14px;
  font-weight: 700;
}

.mp-estimate-item-mobile {
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.mp-estimate-item-mobile .mp-estimate-logo {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 22px rgba(148, 163, 184, .16);
}

.mp-estimate-item-mobile .mp-estimate-main h3 {
  font-size: 17px;
  color: #182235;
}

.mp-estimate-item-mobile .mp-estimate-main p,
.mp-estimate-item-mobile .mp-estimate-main small {
  color: #7b8798;
}

.mp-estimate-item-mobile .mp-estimate-actions .mp-btn.mini {
  min-height: 38px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.mp-target-gap-pro-page {
  display: grid;
  gap: 14px;
}

.mp-target-pro-current-card {
  padding: 16px 18px;
}

.mp-target-pro-current strong {
  font-size: 22px;
  color: #182235;
}

.mp-target-pro-hero {
  padding: 24px 20px;
  min-height: 220px;
}

.mp-target-pro-hero p {
  font-size: 14px;
}

.mp-target-pro-hero h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.mp-target-gap-value {
  margin-bottom: 8px;
}

.mp-target-gap-value strong {
  font-size: 52px;
}

.mp-target-gap-value span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.mp-target-pro-runway,
.mp-target-pro-trend {
  padding: 18px;
}

.mp-target-runway-head h3 {
  font-size: 24px;
  color: #182235;
}

.mp-target-runway-head span {
  font-size: 14px;
  color: #7b8798;
}

.mp-runway-track {
  height: 84px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.mp-runway-user i {
  width: 18px;
  height: 18px;
}

.mp-runway-user span,
.mp-runway-line span {
  font-size: 13px;
}

.mp-target-year-pills button {
  min-height: 38px;
  padding: 0 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.mp-target-year-pills button.active {
  background: linear-gradient(135deg, rgba(217,65,58,.12), rgba(217,65,58,.06));
}

.mp-target-pro-cta {
  align-items: center;
  padding: 18px;
}

.mp-target-pro-cta .mp-btn {
  min-height: 48px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .mp-estimate-pro-top,
  .mp-target-gap-pro-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-estimate-pro-top h1,
  .mp-target-gap-pro-top h1 {
    font-size: 32px;
  }

  .mp-estimate-pro-scorebox {
    grid-template-columns: 1fr;
  }

  .mp-estimate-page .mp-estimate-tabs {
    grid-template-columns: 1fr;
  }

  .mp-estimate-panel-head h2 {
    font-size: 22px;
  }

  .mp-target-pro-hero h2 {
    font-size: 26px;
  }

  .mp-target-gap-value strong {
    font-size: 42px;
  }
}

.mp-btn.warn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: 0;
}

.mp-btn.pulse {
  animation: targetPulse 1.8s ease-in-out infinite;
}

@keyframes targetPulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.28); transform: translateY(0); }
  60% { box-shadow: 0 0 0 12px rgba(239,68,68,0); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); transform: translateY(0); }
}

@keyframes gapLeadGlow {
  0% { text-shadow: 0 0 0 rgba(34,197,94,0); transform: scale(1); }
  50% { text-shadow: 0 0 14px rgba(34,197,94,.5); transform: scale(1.02); }
  100% { text-shadow: 0 0 0 rgba(34,197,94,0); transform: scale(1); }
}

@keyframes gapSprintBeat {
  0% { transform: translateY(0); }
  35% { transform: translateY(-1px) scale(1.02); }
  70% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@keyframes gapRiskPulse {
  0% { text-shadow: 0 0 0 rgba(239,68,68,0); transform: scale(1); }
  45% { text-shadow: 0 0 18px rgba(239,68,68,.55); transform: scale(1.04); }
  100% { text-shadow: 0 0 0 rgba(239,68,68,0); transform: scale(1); }
}

@media (max-width: 760px) {
  .mp-target-runway-head,
  .mp-target-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .mp-target-gap-value strong {
    font-size: 34px;
  }
  .mp-target-current {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mp-target-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.mp-target-picker.show {
  display: block;
}

.mp-target-picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .45);
}

.mp-target-picker-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78vh;
  border-radius: 18px 18px 0 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.mp-target-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-target-picker-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0 12px;
  background: #f8fafc;
}

.mp-target-picker-list {
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-bottom: 6px;
}

.mp-target-picker-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.mp-target-picker-item.active {
  border-color: #fca5a5;
  background: #fff1f2;
}

.mp-target-picker-item .title {
  font-weight: 700;
  color: #0f172a;
}

.mp-target-picker-item .meta {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.mp-target-picker-item .gap {
  margin-top: 4px;
  font-size: 12px;
}

.mp-target-picker-item .gap.lead { color: #15803d; }
.mp-target-picker-item .gap.sprint { color: #c2410c; }
.mp-target-picker-item .gap.risk { color: #b91c1c; }

/* news polish v3 */
.mp-news-page {
  background: #f5f6f8;
  padding-top: 10px;
}

.mp-news-head.mp-news-head-compact {
  position: sticky;
  top: 8px;
  z-index: 28;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e8ebf2;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.mp-news-head-compact .mp-news-search {
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.mp-news-head-compact .mp-news-search input {
  height: 40px;
  border-radius: 999px;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.mp-news-head-compact .mp-news-search button {
  height: 40px;
  width: 44px;
  padding: 0;
  border-radius: 999px;
}

.mp-news-carousel.mp-news-carousel-compact {
  margin-top: 10px;
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 10px;
  display: flex;
  -webkit-overflow-scrolling: touch;
}

.mp-news-carousel.mp-news-carousel-compact::-webkit-scrollbar {
  display: none;
}

.mp-news-carousel.mp-news-carousel-compact .mp-news-carousel-item {
  min-width: 100%;
  scroll-snap-align: start;
  min-height: 142px;
}

.mp-news-carousel.mp-news-carousel-compact .mp-news-banner img {
  min-height: 142px;
}

.mp-news-carousel.mp-news-carousel-standard .mp-news-carousel-item {
  min-width: 100%;
  scroll-snap-align: start;
  min-height: 178px;
}

.mp-news-carousel.mp-news-carousel-standard .mp-news-banner img {
  min-height: 178px;
}

.mp-news-carousel-dots {
  margin-top: 8px;
}

.mp-news-tabs-sticky {
  position: sticky;
  top: 72px;
  z-index: 24;
  margin-top: 10px;
  padding: 8px 2px 6px;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0.96) 72%, rgba(245, 246, 248, 0));
}

.mp-news-tabs-sticky .mp-news-tabs {
  margin-top: 0;
  gap: 14px;
}

.mp-news-tabs-sticky .mp-news-tabs::-webkit-scrollbar {
  display: none;
}

.mp-news-tabs-sticky .mp-news-tabs a {
  font-size: 14px;
  color: #64748b;
}

.mp-news-tabs-sticky .mp-news-tabs a.active {
  font-size: 15px;
  color: #111827;
}

.mp-news-list {
  gap: 12px;
}

.mp-news-item.mp-news-item-left-thumb {
  grid-template-columns: 106px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border-radius: 14px;
  border-color: #e5eaf3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.mp-news-item.mp-news-item-left-thumb .thumb {
  min-height: 88px;
  height: 100%;
}

.mp-news-item.mp-news-item-left-thumb .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-news-item.mp-news-item-left-thumb .main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mp-news-item.mp-news-item-left-thumb .main h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-news-item.mp-news-item-left-thumb .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 760px) {
  .mp-news-tabs-sticky {
    top: 66px;
  }
  .mp-news-item.mp-news-item-left-thumb {
    grid-template-columns: 96px 1fr;
  }
  .mp-news-carousel.mp-news-carousel-standard .mp-news-carousel-item,
  .mp-news-carousel.mp-news-carousel-standard .mp-news-banner img {
    min-height: 160px;
  }
}

/* article progress + share highlight */
.mp-reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 70;
  background: rgba(148, 163, 184, 0.2);
  pointer-events: none;
}

.mp-reading-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
  transition: width .1s linear;
}

.mp-article-bottom-lite .is-share-hot {
  position: relative;
  animation: sharePulse 2.2s ease-in-out infinite;
}

@keyframes sharePulse {
  0% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25); }
  55% { transform: translateY(-1px); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* news v2 */
.mp-news-page {
  padding: 14px 0 104px;
  background: #f5f6f8;
}
.mp-news-head {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8edf6;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.mp-news-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.mp-news-search input {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 11px 14px;
  background: #f8fafc;
}
.mp-news-search button {
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 10px 20px rgba(185, 28, 28, 0.28);
  font-size: 16px;
  padding: 0;
}
.mp-news-tabs {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mp-news-tabs::-webkit-scrollbar {
  display: none;
}
.mp-news-tabs a {
  white-space: nowrap;
  font-size: 14px;
  padding: 8px 1px;
}
.mp-news-banners {
  margin-top: 14px;
  gap: 12px;
}
.mp-news-banner {
  border-radius: 16px;
  min-height: 152px;
  background: linear-gradient(135deg, #991b1b, #ef4444 55%, #f97316);
  box-shadow: 0 14px 28px rgba(127, 29, 29, 0.3);
}
.mp-news-banner img {
  min-height: 152px;
  opacity: 0.66;
}
.mp-news-banner strong {
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-size: 17px;
}
.mp-news-list {
  margin-top: 14px;
  gap: 12px;
}
.mp-news-item {
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  padding: 11px;
  grid-template-columns: 104px 1fr;
  gap: 11px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.mp-news-item .thumb {
  border-radius: 12px;
  min-height: 128px;
  background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
  display: grid;
  place-items: center;
  color: #475569;
  font-weight: 700;
}
.mp-news-item .main h3 {
  font-size: 17px;
  max-height: 46px;
  overflow: hidden;
}
.mp-news-item .main p {
  margin: 8px 0 10px;
  line-height: 1.5;
  max-height: 39px;
  overflow: hidden;
}
.mp-news-item .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-news-item .meta .badge {
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 1px 8px;
}

/* article v2 */
.mp-article-page {
  padding: 0 0 110px;
}
.mp-article-head-rich {
  position: relative;
  min-height: 260px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  background-position: center;
  background-size: cover;
}
.mp-article-head-rich .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.78));
  backdrop-filter: blur(8px);
}
.mp-article-head-rich .inner {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: end;
}
.mp-article-head-rich .cover {
  width: 118px;
  aspect-ratio: 1 / 1.41;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}
.mp-article-head-rich .text h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: #fff;
}
.mp-article-head-rich .text p {
  margin: 8px 0 4px;
  color: rgba(248, 250, 252, 0.86);
}
.mp-article-head-rich .text small {
  color: #fcd34d;
}
.mp-article-content {
  margin: 12px 12px 0;
  border-radius: 16px;
}
.mp-article-related {
  margin: 12px 12px 0;
  border-radius: 16px;
}
.mp-article-bottom {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 74px;
  border-radius: 16px;
  z-index: 20;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

/* admin editor v2 */
.editor-shell {
  border: 1px solid #dbe2ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.editor-toolbar-advanced {
  padding: 8px;
  gap: 6px;
  border-bottom: 1px solid #e5eaf3;
  background: #f8fafc;
}
.editor-toolbar-advanced button,
.editor-toolbar-advanced select {
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
}
.editor-toolbar-advanced button:hover {
  border-color: #f97316;
}
.editor-color {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #fff;
  padding: 3px 6px;
  font-size: 12px;
}
.editor-color input[type="color"] {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  padding: 0;
}
.editor-shell .rich-editor {
  border: 0;
  border-radius: 0;
  min-height: 300px;
}
.editor-shell .editor-source {
  width: 100%;
  min-height: 300px;
  border: 0;
  outline: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  display: none;
  padding: 14px;
}
.editor-shell.is-source .editor-source {
  display: block;
}
.admin-image-uploader {
  border: 1px dashed #dbe2ef;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
}
.admin-image-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-image-preview-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.thumb-120 {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.thumb-120.is-hidden {
  display: none;
}
.admin-image-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

/* article conversion modal */
.mp-article-teaser {
  margin: 12px 12px 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.mp-article-teaser-inner {
  padding: 14px;
  color: #334155;
  line-height: 1.8;
  position: relative;
  max-height: 240px;
}
.mp-article-teaser-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 42%);
  text-align: center;
}
.mp-article-teaser-mask button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 700;
}
.mp-unlock-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}
.mp-unlock-modal.show {
  display: flex;
}
.mp-unlock-modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}
.mp-unlock-modal-card h3 {
  margin: 0 0 8px;
}
.mp-unlock-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mp-unlock-actions .mp-btn {
  text-decoration: none;
}

/* news ui refine */
.mp-news-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.mp-news-carousel::-webkit-scrollbar {
  display: none;
}
.mp-news-carousel-item {
  flex: 0 0 86%;
  scroll-snap-align: start;
}
.mp-news-carousel-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.mp-news-carousel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: all .2s ease;
}
.mp-news-carousel-dots i.active {
  width: 18px;
  background: #ef4444;
}
.mp-news-item {
  grid-template-columns: 1fr 132px;
  align-items: center;
}
.mp-news-item .thumb {
  min-height: 92px;
  aspect-ratio: 4 / 3;
}
.mp-news-item .main h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
  max-height: 46px;
  overflow: hidden;
}
.mp-news-item .main .meta {
  font-size: 12px;
  color: #94a3b8;
}
.mp-news-item .main .meta .tag-hot {
  background: #ef4444;
  color: #fff;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
}
.mp-news-list.is-loading .mp-news-item {
  position: relative;
  overflow: hidden;
}
.mp-news-list.is-loading .mp-news-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
  transform: translateX(-100%);
  animation: newsShimmer 1.1s linear infinite;
}
@keyframes newsShimmer {
  to { transform: translateX(100%); }
}

/* article ui refine */
.mp-article-cover-full {
  width: 100%;
  margin: 0;
}
.mp-article-cover-full img {
  width: 100%;
  display: block;
  border-radius: 0;
}
.mp-article-head-clean {
  padding: 16px 16px 8px;
  background: #fff;
}
.mp-article-head-clean h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.28;
  color: #111827;
  font-weight: 700;
}
.mp-article-head-clean .meta {
  color: #94a3b8;
  font-size: 13px;
}
.mp-article-head-clean .author {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}
.mp-article-head-clean .logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.mp-article-content {
  margin: 10px 0 0;
  border: 0;
  border-radius: 0;
  padding: 0 16px 6px;
  background: #fff;
}
.mp-article-content p {
  font-size: var(--article-font-size, 16px);
  line-height: 1.75;
  color: #333;
  margin: 0 0 16px;
}
.mp-article-font-tools {
  margin-top: 10px;
  display: inline-flex;
  gap: 6px;
}
.mp-article-font-tools button {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  padding: 4px 10px;
  font-size: 12px;
}
.mp-article-font-tools button.active {
  border-color: #ef4444;
  color: #ef4444;
  font-weight: 700;
}
.mp-article-convert-card {
  margin: 14px 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f7, #fff1f2);
  border: 1px solid #fecdd3;
  text-decoration: none;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.mp-article-convert-card strong {
  color: #9f1239;
  display: block;
}
.mp-article-convert-card p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}
.mp-article-convert-card .cta {
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #be123c);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.mp-article-bottom-lite {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 74px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 22;
}
.mp-article-bottom-lite button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #334155;
}
.mp-article-bottom-lite button em {
  font-size: 12px;
  font-style: normal;
}

.mp-lib-focus-banner {
  display: block;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(130deg, #d0252d, #ef5535);
}

.mp-lib-ticker {
  margin-top: 10px;
  border: 1px solid #f3dbdb;
  background: #fff6f6;
  color: #cc3a3a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.mp-lib-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #bd1f2f;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-lib-topbar a,
.mp-lib-topbar button {
  color: #fff;
  font-size: 14px;
  background: transparent;
  border: 0;
}

.mp-share-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 23, 0.62);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.mp-share-modal[hidden] {
  display: none !important;
}

.mp-share-panel {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.mp-share-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: #f2f4f8;
  color: #3b4250;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 18px;
}

.mp-share-preview {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f4f8;
}

.mp-share-preview img {
  width: 100%;
  display: block;
}

.mp-share-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.mp-lib-recommend {
  margin-top: 14px;
}

.mp-lib-recommend h3,
.mp-lib-feed h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mp-lib-recommend-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mp-lib-recommend-card {
  min-width: 220px;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff, #f4f6fa);
  border: 1px solid #e7ecf3;
}

.mp-lib-recommend-card b {
  display: block;
  color: #1d2430;
}

.mp-lib-recommend-card span {
  color: #7a8292;
  font-size: 13px;
}

.mp-lib-feed {
  margin-top: 16px;
}

.mp-lib-feed-list {
  display: grid;
  gap: 12px;
}

.mp-lib-feed-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #fff;
  padding: 10px;
}

.mp-lib-feed-cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 122px;
  background: #f2f4f8;
}

.mp-lib-feed-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-lib-feed-cover span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #8b92a0;
}

.mp-lib-feed-cover em {
  position: absolute;
  left: 6px;
  top: 6px;
  font-style: normal;
  font-size: 11px;
  color: #fff;
  background: rgba(188, 35, 44, 0.88);
  padding: 2px 6px;
  border-radius: 999px;
}

.mp-lib-feed-main h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.mp-lib-feed-main p {
  margin: 8px 0;
  color: #8a93a3;
  font-size: 13px;
}

.mp-lib-feed-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-lib-feed-tags span {
  border: 1px solid #f4c3c3;
  color: #bf3131;
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 8px;
}

.mp-lib-feed-foot {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-lib-feed-foot strong {
  color: #e17d10;
  font-size: 16px;
}

.mp-lib-feed-foot small {
  display: block;
  color: #f08a24;
  font-size: 12px;
}

.mp-lib-load-state {
  color: #8e96a5;
  font-size: 13px;
  text-align: center;
  padding: 10px 0 4px;
}

.mp-lib-load-sentinel {
  width: 100%;
  height: 2px;
}

.mp-lib-badge {
  background: linear-gradient(135deg, #b68f43, #f2d48f);
  color: #4a3410;
  border: 0 !important;
}

/* materials ui refresh 20260314 */
.mp-materials-refresh {
  background: #f5f6f8;
  border-radius: 16px;
  padding: 12px;
}

.mp-mat-head {
  display: grid;
  gap: 12px;
}

.mp-mat-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}

.mp-mat-search {
  position: relative;
  width: 100%;
}

.mp-mat-search input[type="text"] {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #eef1f5;
  padding: 0 14px 0 38px;
  color: #1f2937;
}

.mp-mat-search input[type="text"]:focus {
  outline: 2px solid #c7d2fe;
}

.mp-mat-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a93a3;
  font-size: 14px;
}

.mp-mat-filter-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #d7dde8;
  background: #fff;
  color: #4b5563;
  font-size: 16px;
}

.mp-mat-tool {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #d7dde8;
  background: #fff;
  display: grid;
  place-items: center;
  color: #111827;
  text-decoration: none;
  position: relative;
  font-size: 16px;
}

.mp-mat-tool em {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  background: #111827;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.mp-mat-banner {
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.18), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 8px, rgba(255,255,255,0) 8px 16px),
    linear-gradient(130deg, #7f1018, #bd1f2f 54%, #de2e3f);
}

.mp-mat-banner strong {
  display: block;
  font-size: 15px;
}

.mp-mat-banner span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.9;
}

.mp-mat-tabs {
  gap: 18px;
  margin-top: 2px;
  padding-bottom: 2px;
}

.mp-mat-tabs::-webkit-scrollbar,
.mp-mat-rec-scroll::-webkit-scrollbar {
  display: none;
}

.mp-mat-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mp-mat-tabs a {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9aa3b2;
  padding: 8px 0;
  font-size: 14px;
  position: relative;
  font-weight: 500;
}

.mp-mat-tabs a.active {
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.mp-mat-tabs a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #cb2532;
}

.mp-mat-recommend,
.mp-mat-feed {
  margin-top: 12px;
}

.mp-mat-recommend h3,
.mp-mat-feed h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.mp-mat-rec-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.mp-mat-rec-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mp-mat-collection-card {
  display: block;
  border-radius: 14px;
  border: 1px solid #e8edf6;
  background: #fff;
  padding: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(24, 38, 66, 0.05);
}

.mp-mat-folder-ico {
  width: 28px;
  height: 20px;
  position: relative;
  margin-bottom: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7c94a, #efb526);
}

.mp-mat-folder-ico::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -6px;
  width: 14px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #f9d86f;
}

.mp-mat-collection-card b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.mp-mat-collection-card span {
  display: block;
  margin-top: 6px;
  color: #7f8798;
  font-size: 13px;
}

.mp-mat-rec-card {
  width: 108px;
  min-width: 108px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: var(--cover-bg);
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: grid;
  align-content: space-between;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.mp-mat-rec-card b {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
}

.mp-mat-rec-card span {
  font-size: 11px;
  opacity: 0.9;
}

.mp-mat-list {
  display: grid;
  gap: 10px;
}

.mp-mat-item {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #eceff4;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  align-items: center;
}

.mp-mat-cover {
  width: 80px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f4f8;
  position: relative;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.mp-mat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-mat-cover span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8b93a2;
  font-size: 12px;
}

.mp-mat-cover em {
  position: absolute;
  left: 6px;
  top: 6px;
  font-style: normal;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(130deg, #a21620, #d62839);
  padding: 2px 6px;
  border-radius: 999px;
}

.mp-mat-main h4 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mp-mat-main h4 a {
  color: inherit;
  text-decoration: none;
}

.mp-mat-tags {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-mat-tags span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #5c6678;
}

.mp-mat-tags span:nth-child(1) {
  background: #ffe8e8;
  color: #b32727;
}

.mp-mat-tags span:nth-child(2) {
  background: #ebf5ff;
  color: #2663b3;
}

.mp-mat-tags span:nth-child(3) {
  background: #ecf8ef;
  color: #2a7b4b;
}

.mp-mat-meta-line {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8d97a8;
}

.mp-mat-act-wrap {
  align-self: center;
}

.mp-mat-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 36px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
}

.mp-mat-act.free {
  background: #eceff3;
  color: #263040;
}

.mp-mat-act.points,
.mp-mat-act.svip {
  color: #fff;
  background: linear-gradient(130deg, #b41f2b, #df2f3f);
  box-shadow: 0 8px 16px rgba(201, 38, 51, 0.25);
}

.mp-mat-act.consult {
  color: #4b3410;
  background: linear-gradient(130deg, #d8b46c, #f4dca0);
}

@media (max-width: 640px) {
  .mp-materials-refresh {
    padding: 10px;
  }
  .mp-mat-search-row {
    grid-template-columns: 1fr auto auto auto;
    gap: 6px;
  }
  .mp-mat-item {
    grid-template-columns: 76px 1fr;
  }
  .mp-mat-act-wrap {
    grid-column: 2;
    justify-self: end;
  }
  .mp-mat-rec-grid {
    gap: 10px;
  }
  .mp-mat-collection-card b {
    font-size: 16px;
  }
}

/* detail ui refresh 20260314 */
.mp-detail-refresh {
  background: #f5f6f8;
  border-radius: 16px;
  padding: 10px 10px 110px;
}

.mp-det-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  color: #fff;
  background: #131a2a;
}

.mp-det-hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.15);
  opacity: 0.62;
}

.mp-det-hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.45);
}

.mp-det-hero-inner {
  position: relative;
  z-index: 2;
  padding: 18px 14px 20px;
  text-align: center;
}

.mp-det-cover {
  width: min(220px, 62%);
  aspect-ratio: 1 / 1.414;
  border-radius: 6px 10px 10px 6px;
  margin: 0 auto 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    inset 5px 0 10px rgba(0, 0, 0, 0.12),
    -2px 0 2px rgba(255, 255, 255, 0.9),
    14px 18px 30px rgba(0, 0, 0, 0.48);
}

.mp-det-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-det-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #b32631;
  font-weight: 700;
}

.mp-det-hero-inner h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.mp-det-hero-inner p {
  margin: 8px auto 10px;
  opacity: 0.92;
  max-width: 96%;
}

.mp-det-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.mp-det-meta span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
}

.mp-det-meta .hot {
  color: #ffd49c;
  font-weight: 700;
}

.mp-det-preview {
  margin-top: 12px;
}

.mp-det-preview h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #111827;
}

.mp-det-docs {
  display: grid;
  gap: 10px;
}

.mp-det-page {
  position: relative;
  border-radius: 6px;
  border: 1px solid #dde3ec;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.mp-det-page img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  background: #fff;
}

.mp-det-page em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-style: normal;
  font-size: 11px;
  color: #fff;
  background: rgba(18, 21, 28, 0.6);
  border-radius: 999px;
  padding: 2px 8px;
}

.mp-det-page.is-locked .mp-det-lock-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  background: linear-gradient(to bottom, rgba(245,246,248,0) 0%, rgba(245,246,248,0.92) 48%, #f5f6f8 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.mp-det-lock-box {
  width: min(82%, 420px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #f0d6d8;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(186, 38, 52, 0.15);
  padding: 16px 14px;
}

.mp-det-lock-box span {
  font-size: 28px;
}

.mp-det-lock-box strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: #1f2937;
}

.mp-det-lock-box p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #596174;
}

.mp-det-sticky {
  position: sticky;
  bottom: 76px;
  z-index: 40;
  margin-top: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e3e8f0;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.mp-det-left {
  display: flex;
  gap: 8px;
}

.mp-det-icon {
  width: 58px;
  border: 0;
  background: #f3f5f8;
  border-radius: 10px;
  color: #5a6375;
  text-decoration: none;
  display: grid;
  place-items: center;
  padding: 6px 0;
  font-size: 18px;
}

.mp-det-icon small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.mp-det-right {
  flex: 1;
}

.mp-det-right form {
  margin: 0;
}

.mp-det-cta {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.mp-det-cta.points {
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
}

.mp-det-cta.consult {
  background: linear-gradient(135deg, #dbb36f 0%, #f0d59f 100%);
  color: #4f3510;
  box-shadow: 0 4px 12px rgba(173, 132, 63, 0.28);
}

@media (max-width: 640px) {
  .mp-det-hero {
    min-height: 380px;
  }
  .mp-det-cover {
    width: min(210px, 66%);
  }
  .mp-det-meta {
    gap: 8px;
  }
  .mp-det-sticky {
    gap: 8px;
  }
}

/* materials */
.mp-material-page,
.mp-material-detail-page,
.mp-material-my-page {
  padding-top: 18px;
  padding-bottom: 110px;
}

/* news */
.mp-news-page {
  padding: 12px 0 100px;
}

.mp-news-head {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9edf5;
  padding: 12px;
}

.mp-news-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mp-news-search input {
  border: 1px solid #d9e0eb;
  border-radius: 10px;
  padding: 10px 12px;
}

.mp-news-search button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(135deg, #d73535, #b91c1c);
}

.mp-news-tabs {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.mp-news-tabs a {
  text-decoration: none;
  color: #64748b;
  white-space: nowrap;
  padding: 6px 2px;
  position: relative;
}

.mp-news-tabs a.active {
  color: #111827;
  font-weight: 700;
}

.mp-news-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: #d73535;
}

.mp-news-banners {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.mp-news-banner {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-height: 140px;
  background: #1f2937;
}

.mp-news-banner img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

.mp-news-banner strong {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: 16px;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.mp-news-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.mp-news-item {
  border: 1px solid #e8edf6;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
}

.mp-news-item .thumb {
  border-radius: 10px;
  overflow: hidden;
  min-height: 84px;
  background: #f1f5f9;
}

.mp-news-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-news-item .main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.mp-news-item .main h3 em {
  display: inline-block;
  font-style: normal;
  color: #b91c1c;
  margin-right: 4px;
}

.mp-news-item .main h3 a {
  text-decoration: none;
  color: #111827;
}

.mp-news-item .main p {
  margin: 6px 0;
  color: #64748b;
  font-size: 13px;
}

.mp-news-item .meta {
  color: #94a3b8;
  font-size: 12px;
}

.mp-article-page {
  padding: 12px 0 110px;
}

.mp-article-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
}

.mp-article-head .meta {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.mp-article-cover {
  margin-top: 10px;
  width: 100%;
  border-radius: 12px;
  display: block;
}

.mp-article-content {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e8edf6;
  border-radius: 14px;
  padding: 14px;
}

.mp-article-content p {
  line-height: 1.8;
}

.mp-article-lock {
  margin-top: 10px;
  border: 1px dashed #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  padding: 12px;
}

.mp-article-related {
  margin-top: 12px;
  display: block;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fff7d6, #fff1b9);
  padding: 12px;
  color: #7c2d12;
}

.mp-article-related strong {
  display: block;
  color: #7c2d12;
}

.mp-article-related span {
  display: block;
  margin-top: 4px;
  color: #92400e;
  font-size: 13px;
}

.mp-article-bottom {
  position: sticky;
  bottom: 76px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e8edf6;
  border-radius: 14px;
  padding: 8px;
}

.mp-article-bottom button {
  border: 0;
  border-radius: 10px;
  padding: 10px;
  color: #374151;
  background: #f3f4f6;
}
.mp-material-hero,
.mp-material-my-hero,
.mp-material-detail-hero {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.mp-material-points {
  min-width: 138px;
  text-align: right;
}
.mp-material-points strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin: 4px 0 10px;
}
.mp-material-filter {
  display: grid;
  grid-template-columns: 1.2fr .9fr .8fr auto;
  gap: 10px;
  margin: 14px 0;
}
.mp-material-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.mp-material-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.mp-material-cover {
  position: relative;
  display: block;
  height: 150px;
  background: linear-gradient(135deg, #0ea5e9, #1e293b);
}
.mp-material-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-material-cover span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-weight: 700;
}
.mp-material-cover em {
  position: absolute;
  top: 8px;
  right: 8px;
  font-style: normal;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 3px 10px;
  font-size: 12px;
}
.mp-material-body {
  padding: 12px;
}
.mp-material-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.mp-material-body p {
  margin: 0 0 4px;
  color: #475569;
}
.mp-material-body small {
  color: #64748b;
}
.mp-material-detail-cover {
  width: 180px;
  min-width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}
.mp-material-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-material-detail-cover span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #475569;
  font-weight: 700;
}
.mp-material-kvs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
  color: #475569;
  font-size: 13px;
}
.mp-material-detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.mp-material-preview {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.mp-material-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.mp-material-preview-grid img {
  width: 100%;
  border-radius: 10px;
}
.mp-material-my-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  grid-template-columns: 1.3fr .9fr;
}
.mp-material-list-simple {
  display: grid;
  gap: 8px;
}
.mp-material-list-simple a {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  color: inherit;
  text-decoration: none;
}
.mp-material-list-simple small {
  color: #64748b;
}
.mp-material-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mp-material-ledger li {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}
.mp-material-ledger em {
  font-style: normal;
  font-weight: 700;
}
.mp-material-ledger em.plus {
  color: #16a34a;
}
.mp-material-ledger em.minus {
  color: #dc2626;
}
.mp-material-ledger small {
  grid-column: 1 / -1;
  color: #64748b;
}
@media (max-width: 860px) {
  .mp-material-filter {
    grid-template-columns: 1fr;
  }
  .mp-material-detail-hero {
    flex-direction: column;
  }
  .mp-material-detail-cover {
    width: 100%;
    min-width: 0;
    max-width: 260px;
  }
  .mp-material-my-grid {
    grid-template-columns: 1fr;
  }
}

/* library v2 */
.mp-library-page,
.mp-library-detail-page {
  padding-top: 18px;
  padding-bottom: 110px;
}
.mp-library-hero {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 14px;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #d6e2ff;
  background:
    radial-gradient(640px 180px at 0% 0%, rgba(37, 99, 235, .18), transparent 60%),
    radial-gradient(380px 200px at 100% 100%, rgba(14, 165, 233, .12), transparent 65%),
    #fff;
}
.mp-library-hero-main small {
  display: inline-block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 700;
}
.mp-library-hero-main h1 {
  margin: 0;
  font-size: 34px;
  color: #0f172a;
}
.mp-library-hero-main p {
  margin: 8px 0 0;
  color: #334155;
}
.mp-library-scoreboard {
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, .86);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.mp-library-scoreboard span {
  color: #64748b;
}
.mp-library-scoreboard strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #0f172a;
}
.mp-library-filter {
  margin: 14px 0;
  display: grid;
  grid-template-columns: 1.6fr .9fr .8fr auto;
  gap: 10px;
}
.mp-library-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.mp-library-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.mp-library-cover {
  position: relative;
  display: block;
  height: 162px;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}
.mp-library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-library-cover span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-weight: 700;
}
.mp-library-cover em {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(2, 6, 23, .75);
  color: #fff;
  font-style: normal;
  font-size: 12px;
}
.mp-library-body {
  padding: 12px;
}
.mp-library-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.mp-library-body h3 a {
  color: #0f172a;
  text-decoration: none;
}
.mp-library-body p {
  margin: 0 0 8px;
  color: #475569;
  min-height: 38px;
}
.mp-library-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-library-meta span {
  background: #eef2ff;
  color: #334155;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}
.mp-library-detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background:
    radial-gradient(380px 140px at 0 0, rgba(59, 130, 246, .16), transparent 60%),
    #fff;
  padding: 16px;
}
.mp-library-detail-cover {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f8fafc;
}
.mp-library-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-library-detail-cover span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #64748b;
  font-weight: 700;
}
.mp-library-detail-meta h1 {
  margin: 0;
  color: #0f172a;
}
.mp-library-detail-meta p {
  margin: 8px 0;
  color: #334155;
}
.mp-library-detail-kv {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.mp-library-detail-kv span {
  background: #eff6ff;
  border-radius: 999px;
  padding: 4px 10px;
  color: #1e293b;
  font-size: 13px;
}
.mp-library-detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.mp-library-preview {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #fff;
  padding: 14px;
}
.mp-library-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.mp-library-preview-grid img {
  width: 100%;
  border-radius: 10px;
}
.mp-library-preview-mask {
  margin-top: 10px;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(30, 41, 59, .04), rgba(30, 41, 59, .10));
  color: #0f172a;
}
@media (max-width: 920px) {
  .mp-library-hero {
    grid-template-columns: 1fr;
  }
  .mp-library-filter {
    grid-template-columns: 1fr;
  }
  .mp-library-detail-hero {
    grid-template-columns: 1fr;
  }
}

/* library mobile-first refresh */
.mp-lib-pill-wrap {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
}
.mp-lib-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  text-decoration: none;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(15, 23, 42, 0.9);
}
.mp-lib-pill.ghost {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}
.mp-lib-tabbar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}
.mp-lib-tabbar a {
  white-space: nowrap;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.mp-lib-tabbar a.active {
  color: #0f172a;
  font-weight: 700;
  border-color: #93c5fd;
  background: #dbeafe;
}
.mp-lib-searchbar {
  margin: 8px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.mp-lib-filter-btn {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 600;
}
.mp-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mp-library-cover {
  height: auto;
  aspect-ratio: 3 / 4;
}
.mp-library-body p {
  min-height: 36px;
  font-size: 13px;
}
.mp-library-meta span {
  font-size: 11px;
}
.mp-lib-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  z-index: 75;
  opacity: 0;
  visibility: hidden;
  transition: .2s;
}
.mp-lib-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(320px, 88vw);
  height: 100vh;
  z-index: 80;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -20px 0 40px rgba(15, 23, 42, .2);
  transition: right .22s;
  padding: 14px;
}
.mp-lib-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.mp-lib-drawer-head button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
}
.mp-lib-drawer-form {
  display: grid;
  gap: 10px;
}
.mp-lib-drawer-actions {
  display: flex;
  gap: 8px;
}
.mp-library-page.is-drawer-open .mp-lib-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}
.mp-library-page.is-drawer-open .mp-lib-drawer {
  right: 0;
}
.mp-lib-focus-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background: #0f172a;
  margin-bottom: 14px;
}
.mp-lib-focus-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.15);
  opacity: .42;
}
.mp-lib-focus-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, .28), rgba(2, 6, 23, .72));
}
.mp-lib-focus-inner {
  position: relative;
  z-index: 1;
  padding: 18px 14px;
  color: #fff;
  text-align: center;
}
.mp-lib-focus-cover {
  width: 170px;
  margin: 0 auto 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .5);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, .15);
}
.mp-lib-focus-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-lib-focus-cover span {
  display: grid;
  place-items: center;
  height: 100%;
}
.mp-lib-focus-meta h1 {
  margin: 0;
  font-size: 24px;
}
.mp-lib-focus-meta p {
  margin: 8px 0;
  opacity: .95;
}
.mp-lib-focus-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.mp-lib-focus-tags span {
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}
.mp-lib-doc-preview {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px;
}
.mp-lib-doc-stack {
  display: grid;
  gap: 12px;
}
.mp-lib-doc-page {
  position: relative;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}
.mp-lib-doc-page img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}
.mp-lib-doc-page.is-locked figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 48%;
  display: grid;
  align-content: center;
  text-align: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.78) 44%, rgba(15,23,42,.92));
}
.mp-lib-sticky-bar {
  position: sticky;
  bottom: 76px;
  z-index: 45;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.mp-lib-sticky-left {
  display: flex;
  gap: 8px;
}
.mp-lib-icon-btn {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  font-size: 12px;
  text-decoration: none;
  color: #0f172a;
}
.mp-lib-sticky-right .mp-btn {
  min-width: 210px;
}
@media (min-width: 1100px) {
  .mp-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .mp-library-hero {
    grid-template-columns: 1fr;
  }
  .mp-lib-pill-wrap {
    justify-content: flex-start;
  }
  .mp-lib-sticky-right .mp-btn {
    min-width: 0;
  }
}

/* admin v2 pro */
body.admin-body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at -20% -10%, rgba(14, 165, 233, 0.20), transparent 50%),
    radial-gradient(920px 360px at 120% -15%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}
.admin-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.admin-sidebar {
  position: relative;
  top: auto;
  height: 100%;
  max-height: 100%;
  padding: 16px 14px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(14,165,233,.20), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 45%, #0b1220 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.20);
}
.admin-brand {
  margin-bottom: 12px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.admin-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.admin-brand-title {
  font-size: 18px;
}
.admin-brand-sub {
  font-size: 12px;
}
.admin-nav-tree {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.admin-nav-tree::-webkit-scrollbar {
  width: 8px;
}
.admin-nav-tree::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.38);
  border-radius: 999px;
}
.admin-nav {
  display: grid;
  gap: 8px;
}
.admin-nav-link.level1,
.admin-nav-group-fold.level1 > summary {
  font-weight: 700;
  font-size: 15px;
}
.admin-nav-link.level2,
.admin-nav-group-fold.level2 > summary {
  margin-left: 6px;
  font-size: 14px;
  background: rgba(148, 163, 184, 0.06);
}
.admin-nav-link.level3 {
  margin-left: 14px;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(241, 245, 249, .92);
}
.admin-nav-group-fold {
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
}
.admin-nav-group-fold summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e2e8f0;
}
.admin-nav-group-fold summary::after {
  content: "+";
  opacity: 0.8;
}
.admin-nav-group-fold[open] > summary::after {
  content: "-";
}
.admin-nav-group-content {
  display: grid;
  gap: 6px;
  padding: 0 6px 8px;
}
.admin-nav-link {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.admin-nav-link:hover {
  background: rgba(56, 189, 248, 0.16);
}
.admin-nav-link.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.36);
}
.admin-sidebar-actions {
  flex: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: grid;
  gap: 8px;
}
.admin-main-panel {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(203, 213, 225, 0.9);
  backdrop-filter: blur(10px);
}
.admin-card,
.module-editor-card {
  background:
    radial-gradient(360px 120px at 100% 0%, rgba(14,165,233,.10), transparent 60%),
    #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
@media (max-width: 1200px) {
  body.admin-body {
    overflow: auto;
  }
  .admin-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }
  .admin-sidebar {
    height: auto;
    max-height: 52vh;
  }
  .admin-main-panel {
    height: auto;
    overflow: visible;
  }
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card::before,
.profile-setup-hero--pro::after,
.profile-center-hero--pro::after,
.profile-center-card--target3d::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-card::before {
  inset: -30% auto auto -10%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(205, 62, 58, 0.16), transparent 68%);
}

.profile-setup-hero--pro::after,
.profile-center-hero--pro::after {
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 32px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}

.profile-setup-target--pro,
.profile-center-card--target3d {
  position: relative;
  overflow: hidden;
}

.profile-center-card--target3d {
  box-shadow: 0 32px 80px rgba(12, 18, 34, 0.28), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateZ(0);
}

.profile-center-card--target3d::after {
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 66%);
}

.profile-setup-lock {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(205, 62, 58, 0.08);
  color: #b43331;
  font-size: 13px;
  font-weight: 700;
}

.profile-setup-footer__note,
.profile-center-target__meta,
.profile-center-list span,
.profile-center-timeline span,
.profile-center-timeline small,
.muted {
  color: #667187;
}

.profile-setup-footer__note p,
.profile-center-target p,
.profile-center-perm span,
.profile-center-list span,
.profile-center-timeline span,
.profile-center-timeline small,
.muted {
  margin: 0;
  line-height: 1.7;
}

.profile-school-sheet__panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,253,0.98)),
    radial-gradient(circle at top right, rgba(205,62,58,.08), transparent 28%);
}

.profile-school-option {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile-school-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.profile-setup-target__card,
.profile-center-target,
.profile-center-perm,
.profile-center-list a,
.profile-center-timeline div {
  backdrop-filter: blur(10px);
}

/* App-like refinements for profile center + setup */
.mp-profile-app-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 12px 110px;
}

.mp-profile-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 0 0 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #c32635 0%, #bf2838 78%);
}

.mp-profile-app-header h1 {
  margin: 0;
  font-size: 28px;
  color: #ffffff;
}

.mp-profile-app-header-btn {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.mp-profile-app-hero {
  border-radius: 24px;
  background: linear-gradient(156deg, #c32635 0%, #bf2838 58%, #d95e63 100%);
}

.mp-profile-app-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.mp-profile-app-kpis a {
  display: block;
  text-decoration: none;
}

.mp-panel-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.profile-setup-page {
  max-width: 1040px;
  margin: 0 auto;
}

.profile-setup-app-header h1 {
  color: #ffffff;
  font-size: 26px;
}

.profile-setup-app-header .mp-profile-app-header-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
}

.profile-setup-hero {
  border-radius: 24px;
  padding: 18px;
}

.profile-setup-card {
  border-radius: 24px;
}

.profile-consult-modal[hidden] {
  display: none;
}
.profile-consult-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
}
.profile-consult-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.48);
}
.profile-consult-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}
.profile-consult-modal__panel h3 {
  margin: 0 0 8px;
}
.profile-consult-modal__panel p {
  margin: 0 0 12px;
  color: #606b80;
}
.profile-consult-modal__panel img {
  width: min(68vw, 280px);
  height: auto;
  border-radius: 10px;
  border: 1px solid #e7eaf0;
  margin-bottom: 12px;
}
.profile-consult-modal__empty {
  border: 1px dashed #d4dbe6;
  border-radius: 10px;
  padding: 24px 12px;
  color: #7b8798;
  margin-bottom: 12px;
}

.mp-material-sheet-actions .ghost.is-active,
.mp-det-icon.is-active {
  color: #c83033;
  border-color: rgba(200, 48, 51, 0.22);
  background: rgba(200, 48, 51, 0.08);
}

.mp-material-related-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mp-material-related-strip::-webkit-scrollbar {
  display: none;
}

.mp-material-related-item.is-carousel {
  flex: 0 0 220px;
  min-width: 220px;
}

.mp-material-related-item.is-carousel em {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff2f2;
  color: #c83033;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.mp-school-competition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mp-school-competition-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff6f4);
  border: 1px solid rgba(217, 65, 58, 0.08);
}

.mp-school-competition-card small {
  display: block;
  color: #8b94a7;
  margin-bottom: 8px;
}

.mp-school-competition-card strong {
  font-size: 30px;
  color: #111827;
}

.mp-school-competition-subjects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mp-school-competition-subject {
  padding: 16px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.mp-school-competition-subject strong {
  display: block;
  font-size: 26px;
  color: #c83033;
}

.mp-school-competition-subject span {
  display: block;
  margin-top: 4px;
  color: #5f6b80;
  font-size: 13px;
}

.mp-school-competition-years {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mp-school-competition-highlight {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(217,65,58,.12), rgba(255,255,255,.96));
  border: 1px solid rgba(217,65,58,.12);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: center;
}

.mp-school-competition-highlight__main small {
  display: block;
  color: #d9413a;
  font-weight: 800;
}

.mp-school-competition-highlight__main h3 {
  margin: 6px 0 8px;
  color: #172033;
}

.mp-school-competition-highlight__main p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.mp-school-competition-topbadges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mp-school-competition-copybar {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(23,32,51,.96), rgba(49,69,109,.92));
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 32, 51, .18);
}

.mp-school-competition-copybar small {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.mp-school-competition-copybar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-school-competition-copybar__badges span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mp-school-competition-topbadge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #172033, #31456d);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(23, 32, 51, .18);
}

.mp-school-competition-year-table {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mp-school-competition-divider {
  margin-top: 18px;
  padding: 0 2px;
  display: grid;
  gap: 4px;
}

.mp-school-competition-divider strong {
  color: #172033;
  font-size: 17px;
}

.mp-school-competition-divider span {
  color: #64748b;
  line-height: 1.6;
}

.mp-school-competition-divider.is-secondary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(148,163,184,.32);
}

.mp-school-competition-year-detail {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,246,246,.96));
  border: 1px solid rgba(217, 65, 58, .1);
  box-shadow: 0 14px 26px rgba(217,65,58,.06);
}

.mp-school-competition-year-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mp-school-competition-year-detail__head strong {
  color: #172033;
  font-size: 18px;
}

.mp-school-competition-year-detail__head span {
  color: #d9413a;
  font-weight: 800;
}

.mp-school-competition-year-detail__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mp-school-competition-year-detail__item {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148,163,184,.14);
  text-align: center;
}

.mp-school-competition-year-detail__item small {
  display: block;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 700;
}

.mp-school-competition-year-detail__item strong {
  color: #172033;
  font-size: 20px;
}

.mp-school-competition-year {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mp-school-competition-year strong {
  color: #111827;
}

.mp-school-competition-year span {
  color: #5f6b80;
  font-size: 14px;
}

@media (max-width: 768px) {
  .mp-profile-app-page {
    padding: 0 0 110px;
  }

  .mp-profile-app-hero {
    border-radius: 0 0 22px 22px;
    margin: 0 -12px 14px;
    padding: 16px 14px;
  }

  .mp-profile-app-header {
    margin: 0 -12px;
    padding: 14px 14px 10px;
    background: linear-gradient(180deg, #c32635 0%, #bf2838 78%);
  }

  .mp-profile-app-header h1 {
    font-size: 22px;
  }

  .mp-profile-app-top {
    grid-template-columns: 52px 1fr;
  }

  .mp-profile-app-top .mp-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mp-profile-app-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-setup-page {
    padding: 0 10px 106px;
  }

  .profile-setup-shell {
    gap: 10px;
  }

  .profile-setup-app-header {
    margin: 0;
    padding: 4px 0 2px;
    background: transparent;
  }

  .profile-setup-hero {
    border-radius: 16px;
    padding: 14px;
  }

  .profile-setup-card {
    border-radius: 18px;
    padding: 14px;
  }

  .profile-setup-save-btn {
    position: sticky;
    bottom: 74px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(205, 62, 58, 0.28);
  }

  .profile-school-sheet__panel {
    max-height: 90vh;
    height: 90vh;
    padding-bottom: 14px;
  }

  .profile-school-sheet__list {
    max-height: none;
    min-height: 0;
  }

  .mp-material-related-item.is-carousel {
    flex-basis: 188px;
    min-width: 188px;
  }

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

  .mp-school-competition-subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-school-score-card__meta {
    grid-template-columns: 1fr;
  }

  .mp-school-score-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-school-score-card__identity {
    min-height: 30px;
    padding: 0 12px;
  }

  .mp-school-competition-year {
    flex-direction: column;
  }
}

.admin-plan-beds {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #f8fafc;
}

.admin-plan-beds-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-plan-beds-list {
  display: grid;
  gap: 12px;
}

.admin-plan-bed-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-plan-bed-row label {
  display: grid;
  gap: 8px;
}

.admin-plan-bed-row label span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.admin-batch-school-editor {
  margin-top: 12px;
}

.admin-batch-school-tip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 14px;
}

.admin-batch-school-tip strong {
  color: #0f172a;
}

.admin-batch-school-list {
  gap: 14px;
}

.admin-batch-school-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-batch-school-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-batch-school-row-head strong {
  font-size: 15px;
  color: #0f172a;
}

.admin-batch-school-grid {
  display: grid;
  gap: 12px;
}

.admin-batch-school-grid--gaokao {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-batch-school-grid--class {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-batch-school-grid--textarea {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-batch-school-grid label,
.admin-batch-school-full {
  display: grid;
  gap: 8px;
}

.admin-batch-school-grid label span,
.admin-batch-school-full span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.admin-batch-school-full textarea {
  min-height: 110px;
  resize: vertical;
}

.mp-school-detail-page {
  padding: 18px 0 110px;
  background:
    radial-gradient(circle at top left, rgba(217, 65, 58, 0.1), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
}

.mp-school-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(18, 28, 52, 0.98) 0%, rgba(35, 53, 87, 0.94) 58%, rgba(217, 65, 58, 0.88) 100%);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.mp-school-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--school-hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.24;
}

.mp-school-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.2) 0%, rgba(8, 13, 24, 0.55) 100%);
}

.mp-school-hero__top,
.mp-school-hero__content,
.mp-school-hero__metrics,
.mp-school-status-board,
.mp-school-status-board__actions,
.mp-school-panel__head,
.mp-school-sticky-bar,
.mp-school-sticky-bar__minor {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mp-school-hero__quick,
.mp-school-hero__tags,
.mp-school-life-tags,
.mp-school-plan-data__grid,
.mp-school-chart-foot,
.mp-school-score-links,
.mp-school-class-node__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-school-hero__content {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  margin-top: 58px;
  align-items: end;
}

.mp-school-hero__logo {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.mp-school-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-school-hero__logo span {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.mp-school-hero__meta h1 {
  margin: 6px 0 10px;
  color: #fff;
  font-size: 38px;
  line-height: 1.15;
}

.mp-school-hero__eyebrow,
.mp-school-hero__summary,
.mp-school-hero__metrics small,
.mp-school-status-board__card small,
.mp-school-status-board__card span,
.mp-school-panel__head small,
.mp-school-panel__head p,
.mp-school-chart-foot span {
  color: rgba(255, 255, 255, 0.78);
}

.mp-school-hero__tags span,
.mp-school-life-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #c3322d;
  font-size: 13px;
  font-weight: 700;
}

.mp-school-hero__summary {
  margin: 12px 0 0;
  line-height: 1.8;
}

.mp-school-hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.mp-school-hero__metrics div,
.mp-school-status-board__card,
.mp-school-outcome-card,
.mp-school-overview-card,
.mp-school-plan-row,
.mp-school-annual-card,
.mp-school-score-card,
.mp-school-peer-card,
.mp-school-class-node {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.mp-school-hero__metrics div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.mp-school-hero__metrics strong {
  display: block;
  margin-top: 6px;
  color: #172033 !important;
  font-size: 24px;
}

.mp-school-hero__metrics small {
  color: #475569 !important;
  font-weight: 700;
}

.mp-school-status-board {
  align-items: stretch;
  margin: -42px 0 18px;
  z-index: 3;
}

.mp-school-status-board__card {
  flex: 1;
  padding: 18px;
  background: #fff;
}

.mp-school-status-board__card strong {
  display: block;
  margin: 8px 0 6px;
  color: #172033;
  font-size: 28px;
}

.mp-school-status-board__card small,
.mp-school-status-board__card span {
  color: #64748b;
}

.mp-school-status-board__card.is-safe strong { color: #15803d; }
.mp-school-status-board__card.is-steady strong { color: #b45309; }
.mp-school-status-board__card.is-sprint strong { color: #c2410c; }
.mp-school-status-board__card.is-risk strong { color: #dc2626; }

.mp-school-status-board__actions {
  min-width: 220px;
  flex-direction: column;
  justify-content: center;
}

.mp-school-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
}

.mp-school-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 65, 58, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  overflow: visible;
}

.mp-school-tabs button.is-active {
  background: linear-gradient(135deg, #da413a, #b9242d);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 65, 58, 0.22);
}

.mp-school-tabs button.is-locked {
  padding-right: 56px;
}

.mp-school-tab-label {
  display: inline-flex;
  align-items: center;
}

.mp-school-tab-corner-badge {
  position: absolute;
  top: -6px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  height: 22px;
  padding: 0 8px 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  z-index: 2;
}

.mp-school-tab-corner-badge::before {
  content: "♛";
  font-size: 10px;
  line-height: 1;
}

.mp-school-tab-corner-badge.is-vip {
  background: linear-gradient(135deg, #172033, #36445f);
  color: #f6d36a;
}

.mp-school-tab-corner-badge.is-svip {
  background: linear-gradient(135deg, #3b1020, #111827);
  color: #ffd98a;
}

.mp-school-tab-lock {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(217, 65, 58, 0.12);
  color: #d9413a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.mp-school-panel {
  display: none;
  margin-top: 12px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 65, 58, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.mp-school-panel.is-active { display: block; }

.mp-school-permission-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,244,244,0.98));
  border: 1px solid rgba(217, 65, 58, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 16px 34px rgba(217, 65, 58, 0.08);
}

.mp-school-permission-card small {
  color: #d9413a;
  font-weight: 700;
}

.mp-school-permission-card h3 {
  margin: 0;
  color: #172033;
}

.mp-school-permission-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.mp-school-access-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,243,243,0.98));
  border: 1px solid rgba(217, 65, 58, 0.12);
  box-shadow: 0 14px 30px rgba(217, 65, 58, 0.08);
}

.mp-school-access-tip small {
  display: block;
  margin-bottom: 4px;
  color: #d9413a;
  font-weight: 700;
}

.mp-school-access-tip strong {
  display: block;
  color: #172033;
}

.mp-school-access-tip span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.6;
}

.mp-school-panel__head h2,
.mp-school-overview-card h3,
.mp-school-life-grid h3 {
  margin: 4px 0 8px;
  color: #172033;
}

.mp-school-chart-card,
.mp-school-score-cards,
.mp-school-outcome-grid,
.mp-school-annual-list,
.mp-school-plan-timeline,
.mp-school-plan-stack,
.mp-school-gallery,
.mp-school-life-grid,
.mp-school-class-tree,
.mp-school-overview-grid,
.mp-school-peer-grid {
  margin-top: 16px;
}

.mp-school-chart-card {
  padding: 16px;
  border-radius: 24px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.mp-school-chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.mp-school-chart-card text {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.mp-school-chart-foot { justify-content: space-between; }

.mp-school-panel__head small,
.mp-school-panel__head p,
.mp-school-chart-foot span {
  color: #64748b;
}

.mp-school-score-links .mp-btn.is-active {
  background: linear-gradient(135deg, #da413a, #b9242d);
  border-color: transparent;
  color: #fff;
}

.mp-school-outcome-grid,
.mp-school-overview-grid,
.mp-school-life-grid,
.mp-school-score-cards,
.mp-school-peer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mp-school-outcome-card,
.mp-school-score-card,
.mp-school-plan-row,
.mp-school-annual-card,
.mp-school-overview-card,
.mp-school-life-grid article {
  padding: 18px;
}

.mp-school-score-card__head,
.mp-school-annual-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mp-school-score-card__head {
  align-items: flex-start;
}

.mp-school-score-card__title {
  display: grid;
  gap: 4px;
}

.mp-school-score-card__title small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a6f6b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mp-school-score-card__title small::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9413a 0%, #f97316 100%);
  box-shadow: 0 0 0 4px rgba(217, 65, 58, 0.10);
  flex-shrink: 0;
}

.mp-school-score-card__title strong {
  color: #162033;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.mp-school-score-card__identity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,247,246,0.98) 0%, rgba(255,255,255,0.98) 100%);
  border: 1px solid rgba(217, 65, 58, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 20px rgba(217, 65, 58, 0.08);
  color: #b53a31;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.mp-school-score-card__identity.is-outside {
  position: relative;
  padding-left: 30px;
  background: linear-gradient(180deg, rgba(255,244,231,0.98) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 20px rgba(245, 158, 11, 0.10);
  color: #b45309;
}

.mp-school-score-card__identity.is-outside::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.mp-school-score-card__value {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #d9413a;
}

.mp-school-score-card__value small {
  margin-left: 4px;
  font-size: 14px;
  color: #64748b;
}

.mp-school-score-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mp-school-score-card__meta-item {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,250,252,0.94) 100%);
  border: 1px solid rgba(217, 65, 58, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 22px rgba(15, 23, 42, 0.05);
}

.mp-school-score-card__meta-item.is-soft {
  background:
    linear-gradient(180deg, rgba(255,247,246,0.96) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(217, 65, 58, 0.16);
}

.mp-school-score-card__meta-item.is-filled {
  border-color: rgba(217, 65, 58, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 12px 26px rgba(217, 65, 58, 0.08);
}

.mp-school-score-card__meta-item.is-empty {
  background: linear-gradient(180deg, rgba(248,250,252,0.9) 0%, rgba(255,255,255,0.95) 100%);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 8px 18px rgba(15, 23, 42, 0.03);
}

.mp-school-score-card__meta-item::after {
  content: '';
  position: absolute;
  inset: auto -20% -28px auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 65, 58, 0.12) 0%, rgba(217, 65, 58, 0) 70%);
  pointer-events: none;
}

.mp-school-score-card__meta-item small {
  position: relative;
  display: block;
  margin-bottom: 6px;
  color: #8b5e5a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mp-school-score-card__meta-item small::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(217, 65, 58, 0.12);
  color: #c23a32;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.mp-school-score-card__meta-item small.is-order::before {
  content: '#';
}

.mp-school-score-card__meta-item small.is-score::before {
  content: '分';
}

.mp-school-score-card__meta-item strong {
  position: relative;
  display: block;
  color: #162033;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.mp-school-score-card__meta-item.is-soft strong {
  color: #8a2f29;
}

.mp-school-score-card__meta-item.is-empty small {
  color: #7b8798;
}

.mp-school-score-card__meta-item.is-empty small::before {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}

.mp-school-score-card__meta-item.is-empty strong {
  color: #94a3b8;
  font-weight: 700;
}

.mp-plan-tag-badge.is-plan-tag,
.mp-school-score-card__chips .is-plan-tag,
.mp-school-plan-batch-card__chips .is-plan-tag,
.mp-estimate-inline-tags .is-plan-tag {
  background: linear-gradient(135deg, #c81e1e, #ef4444) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 22px rgba(217, 65, 58, 0.18);
}

.mp-plan-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.mp-plan-tag-badge.is-plan-tag::before,
.mp-school-score-card__chips .is-plan-tag::before,
.mp-school-plan-batch-card__chips .is-plan-tag::before,
.mp-estimate-inline-tags .is-plan-tag::before {
  content: '公';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.mp-estimate-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.mp-school-plan-data__grid article {
  flex: 1;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
}

.mp-school-plan-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.mp-school-plan-timeline article {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d2945, #31456d);
  color: #fff;
}

.mp-school-plan-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mp-school-plan-switch button {
  border: 1px solid rgba(217, 65, 58, 0.18);
  background: #fff;
  color: #c3322d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.mp-school-plan-switch button.active {
  background: linear-gradient(135deg, #d9413a, #b91c1c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(217, 65, 58, 0.18);
}

.mp-estimate-plan-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.mp-estimate-plan-switch button {
  border: 1px solid rgba(217, 65, 58, 0.18);
  background: #fff;
  color: #c3322d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.mp-estimate-plan-switch button.active {
  background: linear-gradient(135deg, #d9413a, #b91c1c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(217, 65, 58, 0.18);
}

.mp-school-plan-stack {
  display: grid;
  gap: 16px;
}

.mp-school-plan-year-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,245,245,0.94));
  border: 1px solid rgba(217, 65, 58, 0.1);
  box-shadow: 0 16px 32px rgba(217, 65, 58, 0.08);
}

.mp-school-plan-year-card summary {
  list-style: none;
  cursor: pointer;
}

.mp-school-plan-year-card summary::-webkit-details-marker {
  display: none;
}

.mp-school-plan-year-card__head,
.mp-school-plan-batch-card__top,
.mp-school-plan-batch-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mp-school-plan-year-card__head h3 {
  margin: 6px 0 0;
  color: #172033;
  font-size: 22px;
}

.mp-school-plan-year-card__head small,
.mp-school-plan-batch-card__meta small {
  color: #64748b;
  font-weight: 700;
}

.mp-school-plan-year-card__stats,
.mp-school-plan-batch-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-school-plan-year-card__stats span,
.mp-school-plan-batch-card__chips em {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 65, 58, 0.08);
  color: #c3322d;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.mp-school-plan-batch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mp-school-plan-batch-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.mp-school-plan-batch-card.is-first {
  background: linear-gradient(145deg, #fff7f7, #fff0ef);
  border-color: rgba(217, 65, 58, 0.18);
  box-shadow: 0 18px 32px rgba(217, 65, 58, 0.08);
}

.mp-school-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #64748b, #475569);
}

.mp-school-plan-badge.is-second,
.mp-school-plan-batch-card.is-second .mp-school-plan-batch-card__chips em {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

.mp-school-plan-badge.is-first,
.mp-school-plan-batch-card.is-first .mp-school-plan-batch-card__chips em {
  background: linear-gradient(135deg, #d9413a, #b91c1c);
  color: #fff;
}

.mp-school-plan-badge.is-first,
.mp-school-plan-badge.is-first * {
  color: #fff !important;
}

.mp-school-plan-badge.is-third,
.mp-school-plan-batch-card.is-third .mp-school-plan-batch-card__chips em {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.mp-school-plan-badge.is-fourth,
.mp-school-plan-batch-card.is-fourth .mp-school-plan-batch-card__chips em {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: #fff;
}

.mp-school-plan-batch-card__top strong {
  color: #172033;
  font-size: 17px;
}

.mp-school-plan-batch-card__top span,
.mp-school-plan-batch-card__meta span {
  color: #475569;
  font-weight: 600;
}

.mp-school-plan-batch-card.is-first .mp-school-plan-batch-card__top span,
.mp-school-plan-batch-card.is-first .mp-school-plan-batch-card__meta span {
  color: #172033;
  font-weight: 700;
}

.mp-school-plan-year-card[open] {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,244,243,.96));
}

.mp-school-plan-batch-card__meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mp-school-plan-batch-card__meta > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mp-school-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 12px;
  overflow-x: auto;
}

.mp-school-gallery figure {
  margin: 0;
  height: 148px;
  border-radius: 22px;
  overflow: hidden;
  background: #e2e8f0;
}

.mp-school-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-school-class-tree {
  display: grid;
  gap: 14px;
}

.mp-school-class-node {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
}

.mp-school-class-node__year {
  padding: 18px;
  background: linear-gradient(180deg, #d9413a, #b72730);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-school-class-node__content {
  padding: 18px;
}

.mp-school-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mp-school-outcome-card strong,
.mp-school-meta-list strong {
  display: block;
  margin-top: 6px;
  color: #172033;
  font-size: 24px;
}

.mp-school-peer-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  color: #172033;
}

.mp-school-peer-card__logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

.mp-school-peer-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-school-empty {
  padding: 24px;
  border-radius: 20px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.mp-school-sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  z-index: 80;
}

.mp-school-sticky-action {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  cursor: pointer;
}

.mp-school-sticky-bar__cta {
  min-width: 280px;
  justify-content: center;
}

.mp-compare-page {
  padding-bottom: 220px;
}

.mp-profile-pro-page .mp-detail-card,
.mp-material-my-page .mp-profile-panel,
.mp-profile-page .mp-detail-card {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.mp-profile-pro-page .mp-list-top h1,
.mp-material-my-hero h1,
.mp-profile-page .mp-list-top h1 {
  letter-spacing: 0.5px;
}

.mp-material-my-hero,
.mp-profile-pro-page .mp-detail-card .mp-profile-body-grid > article:first-child,
.mp-profile-pro-page .mp-detail-card .mp-profile-body-grid > article:last-child {
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.14), transparent 44%),
    linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
}

.mp-material-ledger li,
.mp-material-list-simple a {
  border-color: #e6edf7;
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 768px) {
  .admin-plan-bed-row,
  .admin-batch-school-grid--gaokao,
  .admin-batch-school-grid--class,
  .admin-batch-school-grid--textarea,
  .mp-school-hero__content,
  .mp-school-hero__metrics,
  .mp-school-status-board,
  .mp-school-outcome-grid,
  .mp-school-overview-grid,
  .mp-school-life-grid,
  .mp-school-score-cards,
  .mp-school-peer-grid,
  .mp-school-class-node,
  .mp-school-meta-list {
    grid-template-columns: 1fr;
  }

  .mp-school-hero__top,
  .admin-plan-beds-head,
  .admin-batch-school-row-head,
  .mp-school-sticky-bar,
  .mp-school-status-board__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-school-hero {
    min-height: auto;
    padding: 18px;
  }

  .mp-school-hero__meta h1 {
    font-size: 28px;
  }

  .mp-school-hero__logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .mp-school-status-board {
    margin-top: -22px;
  }

  .mp-school-sticky-bar__cta {
    min-width: 0;
    width: 100%;
  }

  .mp-compare-page {
    padding-bottom: 250px;
  }
}

/* === 2026-03-19 Home/List Mobile Polish === */
.mp-home-hero-shell {
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 247, 246, 0.98) 0%, rgba(255, 255, 255, 0.98) 58%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(217, 65, 58, 0.08);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.08);
}

.mp-home-wrap .mp-search {
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.mp-home-wrap .mp-search button {
  min-width: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d9413a, #b92f2a);
  box-shadow: 0 12px 24px rgba(217, 65, 58, 0.18);
}

.mp-score-mode-switch-home {
  align-items: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(217, 65, 58, 0.08);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.mp-score-mode-switch-home > span {
  color: #182235;
  font-weight: 800;
  font-size: 14px;
}

.mp-score-mode-switch-home a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mp-score-mode-switch-home a i {
  font-style: normal;
  font-size: 10px;
  opacity: .72;
}

.mp-war-board {
  border: 1px solid rgba(217, 65, 58, 0.1);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.mp-war-board .wb-col {
  min-height: 154px;
}

.mp-war-board .wb-col strong b {
  font-size: clamp(46px, 7vw, 64px);
  font-weight: 900;
  color: #d9413a;
}

.mp-war-board .wb-col.right .gap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: #111827;
}

.mp-gap-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.mp-gap-badge.is-safe {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.mp-gap-badge.is-steady {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.mp-gap-badge.is-sprint,
.mp-gap-badge.is-risk {
  background: rgba(217, 65, 58, 0.12);
  color: #c53030;
}

.mp-home-actions .mp-btn {
  min-height: 58px;
  border-radius: 22px;
  font-size: 18px;
  font-weight: 800;
}

.mp-home-actions .mp-btn.ghost {
  background: rgba(255,255,255,.98);
  border: 2px solid rgba(217,65,58,.18);
  color: #c23b35;
}

.mp-nav-card-elevated {
  border: 1px solid rgba(217, 65, 58, 0.14);
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.22), transparent 34%),
    linear-gradient(145deg, #162235 0%, #1e293b 56%, #212f46 100%);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.mp-home-nav .mp-grid-item {
  background: transparent;
}

.mp-home-nav .mp-grid-item b {
  background: #fff;
  border: 1px solid #eef1f6;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.mp-home-nav .mp-grid-item b i,
.mp-home-nav .mp-grid-item span {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,.16);
}

.mp-home-nav .mp-grid-item.is-vip span {
  color: #c9a227;
  font-weight: 800;
}

.mp-nav-card-head h3,
.mp-nav-card-head span {
  color: #ffffff;
}

.mp-sim-banner-pro {
  background:
    linear-gradient(135deg, rgba(255, 246, 245, 0.98), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(217, 65, 58, 0.06), transparent 55%);
  border: 1px solid rgba(217, 65, 58, 0.14);
  box-shadow: 0 20px 40px rgba(217, 65, 58, 0.08);
}

.mp-sim-banner-pro strong {
  font-size: 34px;
  line-height: 1.1;
  color: #d9413a;
}

.mp-sim-banner-pro .mp-btn {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 26px;
  box-shadow: 0 16px 30px rgba(217, 65, 58, 0.18);
}

.mp-filter-compact-top {
  border-top: 1px solid #eef1f6;
  padding-top: 14px;
  gap: 10px;
}

.mp-filter-compact-top select,
.mp-filter-compact-top input[type="text"] {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid #e4e8f0;
  background: rgba(255,255,255,.96);
  font-weight: 700;
  color: #334155;
}

.mp-filter-compact-top select {
  padding-right: 34px;
}

.mp-filter-compact-top .mp-btn.ghost {
  border-radius: 999px;
}

.mp-list-top-pro {
  margin-bottom: 16px;
}

.mp-school-card-mobile {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid #edf1f6;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.mp-school-card-mobile .mp-school-thumb {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.mp-school-card-mobile .mp-school-head {
  align-items: center;
  gap: 12px;
}

.mp-school-card-mobile .mp-school-main h3 {
  font-size: 15px;
  line-height: 1.35;
}

.mp-school-card-mobile .mp-tags {
  margin-top: 6px;
  gap: 6px;
}

.mp-school-card-mobile .mp-tags span {
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.mp-school-card-mobile .mp-tags span:nth-child(1) {
  background: #eaf2ff;
  color: #2c65d8;
}

.mp-school-card-mobile .mp-tags span:nth-child(2) {
  background: #fff0ee;
  color: #d9413a;
}

.mp-school-card-mobile .mp-tags span:nth-child(3) {
  background: #f2f4f8;
  color: #4b5563;
}

.mp-school-card-mobile .mp-card-side {
  min-width: 104px;
  justify-content: flex-end;
  gap: 8px;
}

.mp-school-card-mobile .mp-score-line {
  margin-top: 7px;
}

.mp-school-card-mobile .mp-score-line strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  font-weight: 800;
}

.mp-school-card-mobile .mp-score-big {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.mp-school-card-mobile .mp-trend {
  font-size: 12px;
  padding: 4px 10px;
  margin-left: 8px;
  border-radius: 999px;
  font-weight: 700;
}

.mp-school-card-mobile .mp-sub-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.mp-school-card-mobile .mp-sub-action {
  color: #8b909a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.mp-school-card-mobile .mp-card-cta {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

.mp-front-tone-page {
  position: relative;
}

.mp-front-tone-card,
.mp-mat-head,
.mp-sim-compact-card,
.mp-estimate-head {
  border: 1px solid rgba(217, 65, 58, 0.08);
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,250,252,0.98));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.mp-estimate-page .mp-list-top,
.mp-sim-page .mp-list-top,
.mp-library-page .mp-mat-head {
  margin-bottom: 16px;
}

.mp-estimate-page .mp-estimate-tabs,
.mp-sim-page .mp-sim-tabs-slim,
.mp-library-page .mp-lib-tabbar {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.mp-estimate-page .mp-estimate-item,
.mp-sim-page .mp-sim-slot,
.mp-library-page .mp-mat-item,
.mp-library-page .mp-mat-collection-card {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  border-color: #edf1f6;
}

.mp-library-page .mp-mat-banner {
  border: 1px solid rgba(217, 65, 58, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 244, 242, 0.98), rgba(255,255,255,0.98)),
    linear-gradient(90deg, rgba(217,65,58,0.06), transparent 60%);
  box-shadow: 0 20px 40px rgba(217, 65, 58, 0.08);
}

.mp-library-page .mp-mat-act {
  border-radius: 999px;
}

.mp-stream-list > article,
.mp-estimate-item,
.mp-mat-item,
.mp-sim-slot {
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

@media (max-width: 768px) {
  .mp-home-wrap .mp-header-soft {
    padding: 18px 16px 22px;
  }

  .mp-score-mode-switch-home {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .mp-score-mode-switch-home div {
    justify-content: space-between;
  }

  .mp-war-board {
    grid-template-columns: 1fr;
  }

  .mp-war-board .wb-col {
    min-height: auto;
  }

  .mp-war-board .wb-col.right {
    border-top: 1px solid #eef1f6;
    padding-top: 16px;
  }

  .mp-sim-banner-pro {
    padding: 18px 16px;
  }

  .mp-sim-banner-pro strong {
    font-size: 20px;
  }

  .mp-filter-compact-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: sticky;
    top: 0;
    z-index: 18;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(12px);
  }

  .mp-filter-compact-top input[type="text"],
  .mp-filter-compact-top .mp-btn.ghost {
    grid-column: 1 / -1;
  }

  .mp-school-card-mobile {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .mp-school-card-mobile .mp-school-thumb {
    width: 56px;
    height: 56px;
  }

  .mp-school-card-mobile .mp-school-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .mp-school-card-mobile .mp-school-main h3 {
    font-size: 14px;
  }

  .mp-school-card-mobile .mp-card-side {
    min-width: 90px;
  }

  .mp-school-card-mobile .mp-card-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* === 2026-03-19 Front UI polish: materials / detail share / news / profile === */
.mp-library-page .mp-mat-banner {
  color: #fff !important;
  border: 1px solid rgba(191, 31, 47, 0.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #8f111f 0%, #bf1f2f 54%, #df3c46 100%) !important;
  box-shadow: 0 20px 40px rgba(191, 31, 47, 0.16);
}

.mp-library-page .mp-mat-banner strong,
.mp-library-page .mp-mat-banner span {
  color: #fff !important;
}

.mp-nav-card-elevated {
  border: 1px solid rgba(217, 65, 58, 0.1);
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8f7 100%) !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.mp-nav-card-head h3 {
  color: #182235 !important;
}

.mp-nav-card-head span {
  color: #d9413a !important;
  background: rgba(217, 65, 58, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
}

.mp-home-nav .mp-grid-item {
  background: transparent;
}

.mp-home-nav .mp-grid-item b {
  background: linear-gradient(145deg, #da413a, #bf2e2a) !important;
  border: none;
  box-shadow: 0 16px 28px rgba(217, 65, 58, 0.18);
}

.mp-home-nav .mp-grid-item b i,
.mp-home-nav .mp-grid-item b img {
  filter: brightness(0) invert(1);
}

.mp-home-nav .mp-grid-item span {
  color: #182235 !important;
  text-shadow: none !important;
  font-weight: 700;
}

.mp-home-nav .mp-grid-item.is-vip b {
  background: linear-gradient(145deg, #111111, #272727) !important;
}

.mp-home-nav .mp-grid-item.is-vip span {
  color: #c9a227 !important;
}

.mp-news-carousel.mp-news-carousel-compact .mp-news-carousel-item,
.mp-news-carousel.mp-news-carousel-compact .mp-news-banner img {
  min-height: 108px;
}

.mp-news-carousel.mp-news-carousel-standard .mp-news-carousel-item,
.mp-news-carousel.mp-news-carousel-standard .mp-news-banner img {
  min-height: 132px;
}

.mp-news-banner {
  border-radius: 20px;
  overflow: hidden;
}

.mp-news-banner img,
.mp-news-item-left-thumb .thumb img,
.mp-article-cover-full img {
  object-fit: cover;
}

.mp-article-cover-full img {
  max-height: 220px;
}

.profile-setup-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px 110px;
}

.profile-setup-app-header {
  background: linear-gradient(135deg, #d9413a, #bd2d2a);
  border-radius: 0 0 26px 26px;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 36px rgba(217, 65, 58, 0.16);
}

.profile-setup-app-header .mp-profile-app-header-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
}

.profile-setup-hero,
.profile-setup-hero--pro {
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #d9413a 0%, #c02f2c 48%, #f5a2a0 100%) !important;
  box-shadow: 0 22px 44px rgba(217, 65, 58, 0.16);
}

.profile-setup-badge {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.profile-setup-card {
  border: 1px solid rgba(217, 65, 58, 0.08);
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff9f8 100%) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.profile-setup-card__head h2,
.profile-setup-target__head h3,
.profile-setup-footer__note strong {
  color: #182235;
}

.profile-setup-grid input,
.profile-setup-grid select {
  background: #fff;
  border: 1px solid rgba(217, 65, 58, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.profile-junior-select {
  position: relative;
}

.profile-junior-picker {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(217, 65, 58, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,246,0.96));
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(217, 65, 58, 0.04);
  font-size: 16px;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.profile-junior-picker strong {
  color: #d9413a;
  font-size: 16px;
  transition: transform .2s ease;
}

.profile-junior-select.is-open .profile-junior-picker strong {
  transform: rotate(180deg);
}

.profile-junior-mask {
  position: fixed;
  inset: 0;
  z-index: 129;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.profile-junior-mask[hidden],
.profile-junior-panel[hidden] {
  display: none !important;
}

.profile-junior-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  z-index: 130;
  background: #fff;
  border: 1px solid rgba(217, 65, 58, 0.12);
  border-radius: 28px 28px 0 0;
  box-shadow:
    0 -18px 48px rgba(15, 23, 42, 0.18),
    0 -4px 12px rgba(15, 23, 42, 0.08);
  padding: 14px 14px 18px;
  max-height: min(72vh, 760px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.08), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}

.profile-junior-mask.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-junior-panel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-junior-panel__grabber {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 65, 58, 0.22), rgba(217, 65, 58, 0.42));
  margin: 2px auto 12px;
}

.profile-junior-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.profile-junior-panel__head strong {
  display: block;
  font-size: 20px;
  color: #111827;
  letter-spacing: .02em;
}

.profile-junior-panel__head span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.profile-junior-panel__close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(217, 65, 58, 0.16);
  background: linear-gradient(180deg, #fff, #fff5f4);
  color: #d9413a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.profile-junior-panel input {
  margin: 0 0 12px;
  background: #fff !important;
  border-radius: 16px !important;
  min-height: 54px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 18px rgba(15, 23, 42, 0.04);
}

.profile-junior-options {
  max-height: none;
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.profile-junior-option {
  width: 100%;
  border: 1px solid rgba(217, 65, 58, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,246,0.96));
  color: #1f2937;
  border-radius: 18px;
  padding: 16px 16px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255,255,255,.82);
}

.profile-junior-option span {
  font-weight: 700;
  line-height: 1.45;
}

.profile-junior-option i {
  font-style: normal;
  font-size: 12px;
  color: #d9413a;
  background: rgba(217, 65, 58, 0.08);
  border: 1px solid rgba(217, 65, 58, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.profile-junior-option.is-selected {
  background: linear-gradient(135deg, #d9413a, #ef4444);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(217, 65, 58, 0.24);
}

.profile-junior-option.is-selected span {
  color: #fff;
}

.profile-junior-option.is-selected i {
  color: rgba(255,255,255,0.96);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
}

.profile-junior-empty {
  border: 1px dashed rgba(217, 65, 58, 0.2);
  border-radius: 16px;
  padding: 18px;
  color: #64748b;
  background: rgba(255,255,255,0.92);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 768px) {
  .profile-junior-panel {
    width: calc(100vw - 10px);
    max-height: 78vh;
    border-radius: 26px 26px 0 0;
    padding: 12px 12px 16px;
  }

  .profile-junior-picker {
    min-height: 56px;
    padding: 15px 16px;
  }

  .profile-junior-panel__head strong {
    font-size: 18px;
  }
}

.profile-setup-target,
.profile-setup-target--pro {
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.08), transparent 24%),
    linear-gradient(180deg, #fff4f3 0%, #fffafb 100%) !important;
  border: 1px solid rgba(217, 65, 58, 0.12);
}

.profile-setup-target__card {
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(217, 65, 58, 0.12);
  box-shadow: 0 12px 28px rgba(217, 65, 58, 0.06);
}

.profile-setup-target__tips {
  color: #d9413a;
  font-weight: 700;
}

.profile-setup-footer__note {
  background: rgba(255, 244, 243, 0.96);
  border: 1px solid rgba(217, 65, 58, 0.08);
}

.profile-setup-save-btn,
.profile-school-sheet__foot .mp-btn,
.profile-setup-target__actions .mp-btn:not(.ghost) {
  background: linear-gradient(135deg, #d9413a, #bf2e2a);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(217, 65, 58, 0.18);
}

.profile-setup-target__actions .mp-btn.ghost,
.profile-school-option.is-selected {
  border-color: rgba(217, 65, 58, 0.24);
  color: #d9413a;
}

.profile-school-sheet__panel {
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.05), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}

.profile-school-option {
  border: 1px solid rgba(217, 65, 58, 0.1);
  background: #fff;
}

.profile-school-option.is-selected {
  background: rgba(255, 244, 243, 0.98);
  box-shadow: 0 12px 24px rgba(217, 65, 58, 0.08);
}

.mp-school-sticky-action {
  transition: color .2s ease, transform .2s ease;
}

.mp-school-sticky-action:hover {
  color: #d9413a;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .mp-school-chart-card {
    padding: 12px 10px;
    border-radius: 18px;
    margin-top: 12px;
  }

  .mp-school-chart-card svg {
    transform: translateZ(0);
  }

  .mp-school-chart-foot {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .mp-school-plan-year-card {
    padding: 14px;
    border-radius: 18px;
  }

  .mp-school-plan-year-card__head,
  .mp-school-plan-batch-card__top,
  .mp-school-plan-batch-card__meta {
    flex-direction: column;
  }

  .mp-school-plan-batch-list {
    grid-template-columns: 1fr;
  }

  .mp-news-carousel.mp-news-carousel-compact .mp-news-carousel-item,
  .mp-news-carousel.mp-news-carousel-compact .mp-news-banner img {
    min-height: 96px;
  }

  .mp-news-carousel.mp-news-carousel-standard .mp-news-carousel-item,
  .mp-news-carousel.mp-news-carousel-standard .mp-news-banner img {
    min-height: 116px;
  }

  .mp-article-cover-full img {
    max-height: 168px;
  }

  .profile-setup-page {
    padding: 0 10px 106px;
  }

  .profile-setup-app-header {
    border-radius: 0 0 20px 20px;
    padding: 16px 14px 18px;
  }

  .profile-setup-hero,
  .profile-setup-card,
  .profile-setup-target {
    border-radius: 18px;
  }
}

/* === 2026-03-19 Estimate / Sim mobile compression === */
.mp-estimate-item-mobile {
  grid-template-columns: 58px minmax(0, 1fr) 96px;
  gap: 12px;
  padding: 13px;
  border-radius: 22px;
  border-color: #edf1f6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.mp-estimate-item-mobile .mp-estimate-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f8fafc;
}

.mp-estimate-item-mobile .mp-estimate-logo img {
  object-fit: cover;
}

.mp-estimate-item-mobile .mp-estimate-main h3 {
  font-size: 15px;
  line-height: 1.35;
}

.mp-estimate-item-mobile .mp-estimate-main p {
  margin: 4px 0 6px;
  font-size: 13px;
  color: #64748b;
}

.mp-estimate-item-mobile .mp-estimate-line {
  gap: 6px;
  margin-bottom: 4px;
}

.mp-estimate-item-mobile .mp-estimate-line strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 25px;
  line-height: 1;
  color: #d9413a;
  font-weight: 900;
}

.mp-estimate-item-mobile .mp-estimate-line strong::before {
  content: "最低线";
  margin-right: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #182235;
}

.mp-estimate-item-mobile .mp-estimate-line strong::after {
  content: "分";
  margin-left: 1px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.mp-estimate-item-mobile .mp-estimate-line .level,
.mp-estimate-item-mobile .mp-estimate-line em {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-style: normal;
}

.mp-estimate-item-mobile .mp-estimate-line .level {
  background: rgba(217, 65, 58, 0.1);
  color: #c53030;
}

.mp-estimate-item-mobile .mp-estimate-line em {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-weight: 700;
}

.mp-estimate-item-mobile .mp-estimate-main small {
  display: block;
  color: #8b909a;
  line-height: 1.45;
}

.mp-estimate-item-mobile .mp-estimate-actions {
  justify-self: end;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.mp-estimate-item-mobile .mp-estimate-actions .mp-btn.mini {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mp-sim-slot {
  min-height: 94px;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.mp-sim-slot-button {
  min-height: 94px;
  padding: 12px 14px 12px 12px;
}

.mp-sim-slot-button .slot-order {
  margin-bottom: 8px;
  font-size: 12px;
}

.slot-body {
  gap: 10px;
}

.slot-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.slot-info {
  min-width: 0;
}

.mp-sim-slot-button .slot-title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-sim-slot-button .slot-meta {
  display: -webkit-box;
  margin-bottom: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #64748b;
  line-height: 1.45;
  font-size: 12px;
}

.slot-tags {
  gap: 5px;
}

.slot-tags em {
  padding: 3px 8px;
  font-size: 11px;
}

.mp-sim-slot-clear {
  width: 26px;
  height: 26px;
}

.mp-sim-school-item {
  border-radius: 18px;
  border-color: #edf1f6;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.mp-sim-school-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.mp-sim-school-item small {
  color: #64748b;
  line-height: 1.35;
}

.mp-sim-school-side b {
  font-size: 24px;
  color: #d9413a;
}

.mp-sim-school-side span,
.mp-sim-school-side em {
  font-size: 11px;
}

@media (max-width: 900px) {
  .mp-estimate-item-mobile {
    grid-template-columns: 56px minmax(0, 1fr) 90px;
    gap: 10px;
    padding: 12px;
  }

  .mp-estimate-item-mobile .mp-estimate-actions {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .mp-estimate-item-mobile {
    grid-template-columns: 54px minmax(0, 1fr) 84px;
    gap: 10px;
    padding: 12px;
  }

  .mp-estimate-item-mobile .mp-estimate-logo {
    width: 52px;
    height: 52px;
  }

  .mp-estimate-item-mobile .mp-estimate-main h3 {
    font-size: 14px;
  }

  .mp-estimate-item-mobile .mp-estimate-main p {
    font-size: 12px;
  }

  .mp-estimate-item-mobile .mp-estimate-line strong {
    font-size: 22px;
  }

  .mp-estimate-item-mobile .mp-estimate-line strong::before,
  .mp-estimate-item-mobile .mp-estimate-line strong::after {
    font-size: 12px;
  }

  .mp-estimate-item-mobile .mp-estimate-actions .mp-btn.mini {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mp-sim-slot {
    min-height: 88px;
  }

  .mp-sim-slot-button {
    min-height: 88px;
    padding: 11px 12px;
  }

  .slot-logo {
    width: 38px;
    height: 38px;
  }

  .mp-sim-slot-button .slot-title {
    font-size: 14px;
  }
}

/* === 2026-03-19 Unified front tune and sheet polish === */
.mp-estimate-filter-bar {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}

.mp-estimate-filter-head {
  display: none;
}

.mp-sim-compact-card {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #d9413a 0%, #bc2f2b 56%, #ef8f87 100%) !important;
  border: 1px solid rgba(217, 65, 58, 0.16);
  box-shadow: 0 22px 42px rgba(217, 65, 58, 0.16);
}

.mp-sim-compact-card,
.mp-sim-compact-card .mp-sim-name-row strong,
.mp-sim-compact-card .mp-sim-name-row b,
.mp-sim-compact-card .mp-sim-tag-row span,
.mp-sim-compact-card .mp-sim-edit-mini {
  color: #fff !important;
}

.mp-sim-compact-card .mp-sim-year-inline select,
.mp-sim-compact-card .mp-sim-edit-mini {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.mp-quota-hero {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #d9413a 0%, #bc2f2b 56%, #ef8f87 100%) !important;
  border: 1px solid rgba(217, 65, 58, 0.16);
}

.mp-quota-hero,
.mp-quota-hero .mp-quota-kicker,
.mp-quota-hero h2,
.mp-quota-hero p,
.mp-quota-hero small,
.mp-quota-hero strong,
.mp-quota-hero em,
.mp-quota-hero b {
  color: #fff !important;
}

.mp-grid-badge {
  top: -6px;
  right: 14px;
}

.mp-home-nav {
  gap: 18px 12px;
}

.mp-home-nav .mp-grid-item {
  position: relative;
  gap: 10px;
}

.mp-home-nav .mp-grid-item b {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #fff !important;
  border: 1px solid #eef2f7;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.mp-home-nav .mp-grid-item b i,
.mp-home-nav .mp-grid-item b img {
  filter: none !important;
}

.mp-home-nav .mp-grid-item b img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.mp-home-nav .mp-grid-item b i {
  color: #1f2937;
  font-size: 34px;
  font-style: normal;
}

.mp-home-nav .mp-grid-item span {
  color: #1f2937 !important;
  font-weight: 700;
  font-size: 15px;
}

.mp-home-nav .mp-grid-item.is-vip b {
  background: #111111 !important;
  border-color: #111111;
}

.mp-home-nav .mp-grid-item.is-vip span {
  color: #c9a227 !important;
}

.mp-grid-badge {
  top: -3px;
  right: 18px;
  min-width: 42px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.mp-home-wrap .mp-btn,
.mp-stream-list .mp-card-cta,
.mp-estimate-item-mobile .mp-btn.mini,
.mp-sim-page .mp-btn,
.mp-profile-favorites-page .mp-card-cta {
  border-radius: 999px;
  font-weight: 800;
}

.mp-stream-list .mp-card-cta,
.mp-profile-favorites-page .mp-card-cta {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.mp-news-page .mp-news-banners,
.mp-news-page .mp-news-banner,
.mp-news-page .mp-news-banner img {
  min-height: 168px;
  height: 168px;
  max-height: 168px;
}

.mp-news-page .mp-news-banner strong {
  font-size: 16px;
}

.profile-setup-target,
.profile-setup-target--pro,
.profile-setup-target h3,
.profile-setup-target p,
.profile-setup-target strong,
.profile-setup-target small,
.profile-setup-target__card strong,
.profile-setup-target__card p {
  color: #172033 !important;
}

.profile-setup-target__head p {
  opacity: .88;
}

.mp-profile-favorites-page {
  padding-bottom: 110px;
}

@media (max-width: 768px) {
  .mp-estimate-filter-bar {
    position: sticky;
    top: 68px;
    z-index: 18;
    padding: 8px 0 10px;
    background: linear-gradient(180deg, rgba(248,250,252,.97) 72%, rgba(248,250,252,0));
  }

  .mp-estimate-filter-shell {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .mp-estimate-filter-backdrop {
    display: none;
  }

  .mp-estimate-filter-shell.is-open .mp-estimate-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 20, 0.42);
    z-index: 119;
  }

  .mp-estimate-filter {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 14px 20px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
    box-shadow: 0 -20px 48px rgba(15, 23, 42, 0.16);
    transform: translateY(104%);
    transition: transform .24s ease;
  }

  .mp-estimate-filter-shell.is-open .mp-estimate-filter {
    transform: translateY(0);
  }

  .mp-estimate-filter-head {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
  }

  .mp-estimate-filter input[type="text"],
  .mp-estimate-filter .mp-btn.ghost {
    grid-column: 1 / -1;
  }

  .mp-sim-picker-sheet {
    max-height: 82vh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 48px rgba(15, 23, 42, 0.18);
  }

  .mp-sim-picker-head,
  .mp-sim-picker-filters {
    position: sticky;
    z-index: 2;
    background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
  }

  .mp-sim-picker-head {
    top: 0;
  }

  .mp-sim-picker-filters {
    top: 72px;
    padding-bottom: 10px;
  }

  .mp-sim-picker-list {
    max-height: calc(82vh - 164px);
    overflow-y: auto;
  }

  .mp-news-page .mp-news-banners,
  .mp-news-page .mp-news-banner,
  .mp-news-page .mp-news-banner img {
    min-height: 148px;
    height: 148px;
    max-height: 148px;
  }
}

/* === 2026-03-19 Materials App Refresh === */
.mp-library-app-page .mp-mat-list {
  gap: 12px;
}

.mp-library-app-page .mp-mat-item-app {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(217, 65, 58, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.mp-library-app-page .mp-mat-cover-app {
  position: relative;
  width: 72px;
  height: 92px;
  border-radius: 16px;
  border: 1px solid rgba(217, 65, 58, 0.16);
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-library-app-page .mp-mat-cover-app img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
}

.mp-library-app-page .mp-mat-cover-app span {
  position: relative;
  z-index: 1;
  color: #c73934;
  font-size: 16px;
  font-weight: 800;
}

.mp-library-app-page .mp-mat-cover-app em {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd4d1, #f6b1ad);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.mp-library-app-page .mp-mat-main-app h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
}

.mp-library-app-page .mp-mat-main-app h4 a {
  color: #1b2433;
}

.mp-library-app-page .mp-mat-tags-app {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mp-library-app-page .mp-mat-tags-app span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 65, 58, 0.68);
  color: #d9413a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mp-library-app-page .mp-mat-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #7b8797;
  font-size: 13px;
}

.mp-library-app-page .mp-mat-stat-row .star {
  color: #f1a300;
  font-weight: 700;
}

.mp-library-app-page .mp-mat-act-wrap-app {
  display: flex;
  justify-content: flex-end;
}

.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act {
  min-width: 96px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(217, 65, 58, 0.28);
  background: #fff;
  color: #d9413a;
  box-shadow: none;
  font-size: 16px;
  font-weight: 800;
}

.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.free {
  background: #fff;
  border-color: rgba(217, 65, 58, 0.28);
  color: #d9413a;
}

.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.points,
.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.svip,
.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.consult {
  color: #fff;
}

.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.points {
  background: linear-gradient(135deg, #ff8a00, #ff5c35);
  border-color: transparent;
}

.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.svip {
  background: linear-gradient(135deg, #111111, #3b3b3b);
  border-color: transparent;
  color: #d9b32c;
}

.mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act.consult {
  background: linear-gradient(135deg, #d9413a, #bf2e2a);
  border-color: transparent;
}

.mp-library-detail-page-app {
  max-width: 760px;
  padding-bottom: 110px;
}

.mp-lib-topbar-app {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px 1fr 52px;
  align-items: center;
  gap: 8px;
  margin: 0 -12px 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #c92f2b, #b32320);
  color: #fff;
}

.mp-lib-topbar-app a,
.mp-lib-topbar-app button,
.mp-lib-topbar-app strong {
  color: #fff;
}

.mp-lib-topbar-app a,
.mp-lib-topbar-app button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 18px;
}

.mp-lib-topbar-app strong {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.mp-material-sheet-card,
.mp-material-section-card {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(217, 65, 58, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fff9f8 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.mp-material-sheet-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
}

.mp-material-sheet-cover {
  position: relative;
  width: 74px;
  height: 96px;
  border-radius: 16px;
  border: 1px solid rgba(217, 65, 58, 0.16);
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-material-sheet-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
}

.mp-material-sheet-cover span {
  position: relative;
  z-index: 1;
  color: #c73934;
  font-size: 16px;
  font-weight: 800;
}

.mp-material-sheet-cover em {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd4d1, #f6b1ad);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.mp-material-sheet-main h1 {
  margin: 0 0 8px;
  color: #151d2c;
  font-size: 18px;
  line-height: 1.45;
}

.mp-material-sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mp-material-sheet-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 65, 58, 0.68);
  color: #d9413a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mp-material-sheet-rating {
  margin: 0;
  color: #737b88;
  font-size: 13px;
}

.mp-material-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.mp-material-sheet-actions .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 65, 58, 0.18);
  background: #fff;
  color: #d9413a;
  font-size: 13px;
  font-weight: 700;
}

.mp-material-section-card h2 {
  margin: 0 0 12px;
  color: #151d2c;
  font-size: 17px;
}

.mp-material-preview-pages {
  display: grid;
  gap: 10px;
}

.mp-material-preview-page {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0d8d4;
  background: #fff;
}

.mp-material-preview-page img {
  width: 100%;
  display: block;
}

.mp-material-preview-empty {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(217, 65, 58, 0.26);
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
  color: #6b7280;
}

.mp-material-preview-empty strong {
  color: #172033;
  font-size: 15px;
}

.mp-material-preview-empty span {
  line-height: 1.7;
  font-size: 13px;
}

.mp-material-desc-list {
  display: grid;
  gap: 12px;
}

.mp-material-desc-list p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
  font-size: 15px;
}

.mp-material-desc-list strong {
  margin-right: 6px;
  color: #d9413a;
}

.mp-material-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mp-material-related-item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(217, 65, 58, 0.14);
  background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}

.mp-material-related-item strong {
  display: block;
  margin-bottom: 6px;
  color: #182235;
  line-height: 1.4;
  font-size: 14px;
}

.mp-material-related-item span {
  color: #7b8797;
  font-size: 12px;
}

@media (max-width: 768px) {
  .mp-library-app-page .mp-mat-item-app {
    grid-template-columns: 62px minmax(0, 1fr) 92px;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .mp-library-app-page .mp-mat-cover-app {
    width: 62px;
    height: 82px;
    border-radius: 14px;
  }

  .mp-library-app-page .mp-mat-main-app h4 {
    font-size: 14px;
  }

  .mp-library-app-page .mp-mat-tags-app span {
    padding: 3px 8px;
    font-size: 11px;
  }

  .mp-library-app-page .mp-mat-act-wrap-app .mp-mat-act {
    min-width: 84px;
    min-height: 40px;
    font-size: 15px;
  }

  .mp-lib-topbar-app {
    margin: 0 -10px 12px;
    padding: 10px 12px;
  }

  .mp-material-sheet-card,
  .mp-material-section-card {
    padding: 12px;
    border-radius: 18px;
  }

  .mp-material-sheet-card {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
  }

  .mp-material-sheet-cover {
    width: 66px;
    height: 88px;
    border-radius: 14px;
  }

  .mp-material-sheet-main h1 {
    font-size: 16px;
  }

  .mp-material-sheet-tags span {
    padding: 3px 8px;
    font-size: 11px;
  }
}
.mp-school-specialty-block {
  margin-top: 28px;
}
.mp-school-specialty-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.mp-school-specialty-kpi {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,246,.96));
  border: 1px solid rgba(232, 63, 63, .12);
  box-shadow: 0 18px 36px rgba(217, 65, 58, .08);
}
.mp-school-specialty-kpi small {
  display: block;
  color: #8b5f5b;
  font-size: 13px;
  margin-bottom: 8px;
}
.mp-school-specialty-kpi strong {
  font-size: 28px;
  color: #c7342f;
  font-weight: 800;
}
.mp-school-specialty-year-tip {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(217, 65, 58, .08), rgba(255,255,255,.92));
  color: #7f4b48;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid rgba(217, 65, 58, .10);
}
.mp-school-specialty-years {
  display: grid;
  gap: 16px;
}
.mp-school-specialty-year-card {
  border-radius: 24px;
  border: 1px solid rgba(232, 63, 63, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,247,.96));
  box-shadow: 0 22px 40px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.mp-school-specialty-year-card summary {
  list-style: none;
  cursor: pointer;
}
.mp-school-specialty-year-card summary::-webkit-details-marker {
  display: none;
}
.mp-school-specialty-year-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
}
.mp-school-specialty-year-card__head h3 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  color: #13233f;
}
.mp-school-specialty-year-card__head small {
  color: #7d6b67;
  font-size: 13px;
}
.mp-school-specialty-year-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.mp-school-specialty-year-card__stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(217, 65, 58, .08);
  color: #c7342f;
  font-weight: 700;
  font-size: 13px;
}
.mp-school-specialty-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}
.mp-school-specialty-category {
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
}
.mp-school-specialty-category__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(90deg, #d9413a, #ef6b64);
  color: #fff;
}
.mp-school-specialty-category__head strong {
  font-size: 18px;
  font-weight: 800;
}
.mp-school-specialty-category__head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 700;
}
.mp-school-specialty-projects {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.mp-school-specialty-project {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7f6);
  border: 1px solid rgba(217, 65, 58, .10);
  box-shadow: 0 10px 20px rgba(217, 65, 58, .06);
}
.mp-school-specialty-project__main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.mp-school-specialty-project__main strong {
  color: #16243f;
  font-size: 16px;
  font-weight: 800;
}
.mp-school-specialty-project__main span {
  color: #8b5f5b;
  font-size: 12px;
}
.mp-school-specialty-project__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 65, 58, .08);
  color: #c7342f;
  font-size: 14px;
  font-weight: 800;
}
.mp-school-specialty-project__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mp-school-specialty-project__note span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8edea;
  color: #9d5e4f;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .mp-school-specialty-kpis,
  .mp-school-specialty-category-grid {
    grid-template-columns: 1fr;
  }
  .mp-school-specialty-year-card__head {
    flex-direction: column;
  }
  .mp-school-specialty-year-card__stats {
    justify-content: flex-start;
  }
}

.mp-school-destination-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.mp-school-destination-kpi {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,246,.96));
  border: 1px solid rgba(232, 63, 63, .12);
  box-shadow: 0 18px 36px rgba(217, 65, 58, .08);
}
.mp-school-destination-kpi small {
  display: block;
  color: #8b5f5b;
  font-size: 13px;
  margin-bottom: 8px;
}
.mp-school-destination-kpi strong {
  font-size: 28px;
  color: #c7342f;
  font-weight: 800;
}
.mp-school-destination-tip {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(217, 65, 58, .08), rgba(255,255,255,.92));
  color: #7f4b48;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid rgba(217, 65, 58, .10);
}
.mp-school-destination-trend {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.96));
  border: 1px solid rgba(37, 99, 235, .10);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .06);
}
.mp-school-destination-trend__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.mp-school-destination-trend__head strong {
  color: #13233f;
  font-size: 16px;
  font-weight: 800;
}
.mp-school-destination-trend__head span {
  color: #64748b;
  font-size: 12px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.mp-school-destination-trend__head i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}
.mp-school-destination-trend__head i.is-red { background: #d9413a; }
.mp-school-destination-trend__head i.is-blue { background: #2563eb; }
.mp-school-destination-trend svg {
  width: 100%;
  height: auto;
  display: block;
}
.mp-school-destination-years {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.mp-school-destination-year-card {
  border-radius: 24px;
  border: 1px solid rgba(232, 63, 63, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,247,.96));
  box-shadow: 0 22px 40px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.mp-school-destination-year-card summary {
  list-style: none;
  cursor: pointer;
}
.mp-school-destination-year-card summary::-webkit-details-marker {
  display: none;
}
.mp-school-destination-year-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
}
.mp-school-destination-year-card__head h3 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  color: #13233f;
}
.mp-school-destination-year-card__head small {
  color: #7d6b67;
  font-size: 13px;
}
.mp-school-destination-year-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.mp-school-destination-year-card__stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(217, 65, 58, .08);
  color: #c7342f;
  font-weight: 700;
  font-size: 13px;
}
.mp-school-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}
.mp-school-destination-class-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff7f6);
  border: 1px solid rgba(217, 65, 58, .10);
  box-shadow: 0 10px 20px rgba(217, 65, 58, .06);
}
.mp-school-destination-class-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.mp-school-destination-class-card__head strong {
  color: #16243f;
  font-size: 18px;
  font-weight: 800;
}
.mp-school-destination-class-card__head span {
  color: #c7342f;
  font-size: 13px;
  font-weight: 700;
}
.mp-school-destination-class-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.mp-school-destination-class-card__stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, .96);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.mp-school-destination-rate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mp-school-destination-rate-list em {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.mp-school-destination-class-card__meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 65, 58, .12);
}
.mp-school-destination-class-card__meta small {
  display: block;
  color: #7f4b48;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .mp-school-destination-kpis,
  .mp-school-destination-grid {
    grid-template-columns: 1fr;
  }
  .mp-school-destination-year-card__head {
    flex-direction: column;
  }
  .mp-school-destination-year-card__stats {
    justify-content: flex-start;
  }
  .mp-school-destination-trend__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mp-school-destination-class-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mp-sim-app {
  padding: 12px 0 108px;
  background:
    radial-gradient(circle at top center, rgba(239, 68, 68, .08), transparent 38%),
    linear-gradient(180deg, #fff2f2 0%, #fff8f7 48%, #ffffff 100%);
}

.mp-sim-app .container {
  max-width: 760px;
}

.mp-sim-topbar {
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.mp-sim-title-block h1 {
  margin: 0;
  color: #c81e1e;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.mp-sim-title-block p {
  margin: 10px 0 0;
  color: #7f4b48;
  font-size: 15px;
}

.mp-sim-top-actions {
  margin-left: auto;
}

.mp-sim-back-btn {
  min-width: 144px;
  border-radius: 999px;
  border-width: 2px;
}

.mp-sim-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 30px;
  border: 1px solid rgba(248, 113, 113, .25);
  box-shadow: 0 26px 46px rgba(220, 38, 38, .10);
  background:
    linear-gradient(90deg, #ffffff 0 92%, rgba(254, 226, 226, .58) 100%);
  position: relative;
  overflow: hidden;
}

.mp-sim-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border-radius: 30px 0 0 30px;
}

.mp-sim-compact-main {
  gap: 18px;
  min-width: 0;
}

.mp-sim-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef4444, #c81e1e);
  box-shadow: 0 16px 28px rgba(239, 68, 68, .22);
  font-size: 34px;
}

.mp-sim-name-row strong {
  font-size: 28px;
  font-weight: 900;
  color: #14233f;
}

.mp-sim-name-row b {
  font-size: 24px;
  color: #c81e1e;
}

.mp-sim-tag-row {
  gap: 8px;
}

.mp-sim-tag-row span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8fafc;
  color: #51627d;
  border: 1px solid rgba(148, 163, 184, .18);
}

.mp-sim-compact-actions {
  align-items: flex-end;
}

.mp-sim-year-inline select {
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, .25);
  background: rgba(255,255,255,.96);
}

.mp-sim-edit-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #dc2626;
  font-weight: 800;
}

.mp-sim-app-tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0 18px;
  padding-bottom: 2px;
}

.mp-sim-tabs-slim button {
  min-width: 132px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #edf2f7;
  border: none;
  box-shadow: none;
}

.mp-sim-tabs-slim button span {
  color: #3f5272;
  font-size: 22px;
  font-weight: 900;
}

.mp-sim-tabs-slim button.active {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: 0 18px 30px rgba(239, 68, 68, .22);
}

.mp-sim-tabs-slim button.active::after {
  display: none;
}

.mp-sim-panel {
  border-radius: 34px;
  border: 1px solid rgba(248, 113, 113, .16);
  box-shadow: 0 26px 44px rgba(220, 38, 38, .08);
  padding: 26px;
}

.mp-sim-group-head {
  align-items: center;
  margin-bottom: 18px;
}

.mp-sim-group-head h2 {
  color: #c81e1e;
  font-size: 24px;
  font-weight: 900;
}

.mp-sim-group-head p {
  margin-top: 8px;
  color: #6b7b93;
}

.mp-chip.soft {
  background: #fee2e2;
  color: #c81e1e;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.mp-sim-first-split {
  gap: 18px;
}

.mp-sim-first-module {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #fffafa);
  border: 1px solid rgba(248, 113, 113, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.mp-sim-first-module__head {
  margin-bottom: 16px;
}

.mp-sim-first-module__head h3 {
  color: #d92525;
  font-size: 22px;
  font-weight: 900;
}

.mp-sim-first-module__head p {
  color: #60718d;
  line-height: 1.7;
}

.mp-sim-first-locked-tip {
  border-radius: 18px;
  border: none;
  padding: 14px 16px;
  background: #edf2f7;
  color: #44556f;
  font-weight: 700;
}

.mp-sim-slot-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mp-sim-slot {
  position: relative;
  border-radius: 24px;
  border: 2px dashed #cbd5e1;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.mp-sim-slot.filled {
  border-style: solid;
  border-color: rgba(248, 113, 113, .18);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, .06);
}

.mp-sim-slot-button {
  padding: 18px 20px;
  min-height: 124px;
  align-items: center;
}

.mp-sim-slot-button .slot-order {
  width: 96px;
  margin: 0;
  font-size: 16px;
  color: #60718d;
  font-weight: 700;
}

.mp-sim-slot-button .slot-body {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.mp-sim-slot-button .slot-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #e2e8f0;
  color: #64748b;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.55);
}

.mp-sim-slot.filled .slot-logo {
  background: linear-gradient(180deg, #f1f5f9, #dbe4ee);
}

.mp-sim-slot-button .slot-title {
  font-size: 26px;
  font-weight: 900;
  color: #14233f;
}

.mp-sim-slot-button .slot-meta {
  max-width: 100%;
  margin-top: 4px;
  color: #6b7b93;
  line-height: 1.6;
  font-size: 15px;
}

.slot-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.slot-tags em {
  font-style: normal;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.slot-tags .slot-risk.rush { background: #fee2e2; color: #b91c1c; }
.slot-tags .slot-risk.steady { background: #fef3c7; color: #b45309; }
.slot-tags .slot-risk.safe { background: #d1fae5; color: #065f46; }

.mp-sim-slot-clear {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(248, 113, 113, .20);
  box-shadow: 0 10px 18px rgba(220, 38, 38, .10);
  color: #ef4444;
}

.mp-sim-action-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 26px;
}

.mp-sim-action-bar .mp-btn {
  min-height: 56px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
}

.mp-sim-history-card,
.mp-sim-page .mp-lead-card {
  border-radius: 32px;
  border: 1px solid rgba(248, 113, 113, .16);
  box-shadow: 0 24px 42px rgba(220, 38, 38, .08);
}

.mp-sim-history-item {
  padding: 18px 0;
}

.mp-sim-history-link strong {
  font-size: 18px;
  font-weight: 900;
}

.mp-sim-history-link p {
  margin-top: 4px;
}

.mp-history-copy {
  color: #ef4444;
  font-weight: 800;
}

.mp-sim-picker-sheet {
  border-radius: 34px 34px 0 0;
  padding: 22px;
  background: linear-gradient(180deg, #fffafa, #ffffff);
  box-shadow: 0 -24px 48px rgba(15, 23, 42, .18);
}

.mp-sim-picker-head {
  margin-bottom: 16px;
}

.mp-sim-picker-head strong {
  font-size: 24px;
  font-weight: 900;
  color: #14233f;
}

.mp-sim-picker-head small {
  display: block;
  margin-top: 6px;
  color: #6b7b93;
}

.mp-sim-picker-count {
  margin-top: 10px;
}

.mp-sim-picker-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.mp-sim-picker-filters input,
.mp-sim-picker-filters select {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .8);
  background: #f8fafc;
}

.mp-sim-picker-list {
  gap: 12px;
  max-height: 52vh;
}

.mp-sim-school-item {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(248, 113, 113, .12);
  background: linear-gradient(180deg, #ffffff, #fff9f8);
  box-shadow: 0 12px 22px rgba(220, 38, 38, .06);
}

.mp-sim-school-item strong {
  font-size: 16px;
  font-weight: 900;
}

.mp-sim-school-side b {
  font-size: 24px;
}

.mp-sim-school-side em {
  padding: 4px 8px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.mp-sim-school-side em.rush { background: #fee2e2; color: #b91c1c; }
.mp-sim-school-side em.steady { background: #fef3c7; color: #b45309; }
.mp-sim-school-side em.safe { background: #d1fae5; color: #065f46; }

.mp-sim-page .mp-lead-card .mp-lead-head h3 {
  color: #14233f;
  font-size: 32px;
  font-weight: 900;
}

.mp-sim-page .mp-lead-card .mp-lead-head p {
  color: #6b7b93;
}

.mp-sim-page .mp-lead-form .mp-lead-grid {
  gap: 16px;
}

.mp-sim-page .mp-lead-item span {
  color: #41516d;
  font-weight: 700;
}

.mp-sim-page .mp-lead-item input,
.mp-sim-page .mp-lead-item select,
.mp-sim-page .mp-lead-item textarea {
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, .8);
  background: #f8fafc;
  min-height: 48px;
}

.mp-sim-page .mp-lead-item textarea {
  min-height: 120px;
}

.mp-sim-page .mp-lead-form .mp-btn {
  min-height: 56px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .mp-sim-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-sim-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-sim-tabs-slim button {
    min-width: 116px;
    padding: 12px 18px;
  }

  .mp-sim-tabs-slim button span {
    font-size: 18px;
  }

  .mp-sim-panel {
    padding: 20px;
  }

  .mp-sim-picker-filters {
    grid-template-columns: 1fr;
  }

  .mp-sim-action-bar {
    grid-template-columns: 1fr;
  }

  .mp-sim-slot-button {
    min-height: 110px;
    padding: 16px;
  }

  .mp-sim-slot-button .slot-order {
    width: 72px;
    font-size: 14px;
  }

  .mp-sim-slot-button .slot-logo {
    width: 54px;
    height: 54px;
  }

  .mp-sim-slot-button .slot-title {
    font-size: 20px;
  }
}

/* 模拟填报页最终覆盖：优先压过旧样式，保持与站内 H5 宽度一致 */
.mp-sim-app .container {
  width: min(1240px, calc(100vw - 32px));
  max-width: none;
}

.mp-sim-app .mp-sim-compact-card {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff8f7 45%, #ffe6e2 100%) !important;
  border: 1px solid rgba(248, 113, 113, .18) !important;
  box-shadow: 0 24px 42px rgba(220, 38, 38, .08) !important;
}

.mp-sim-app .mp-sim-compact-card,
.mp-sim-app .mp-sim-compact-card .mp-sim-name-row strong,
.mp-sim-app .mp-sim-compact-card .mp-sim-name-row b,
.mp-sim-app .mp-sim-compact-card .mp-sim-edit-mini {
  color: #17304d !important;
}

.mp-sim-app .mp-sim-avatar {
  color: #fff !important;
}

.mp-sim-app .mp-sim-name-row b {
  color: #c81e1e !important;
}

.mp-sim-app .mp-sim-tag-row span {
  background: rgba(255,255,255,.94) !important;
  color: #5f7088 !important;
  border: 1px solid rgba(248, 113, 113, .16) !important;
  box-shadow: 0 8px 16px rgba(220, 38, 38, .05);
}

.mp-sim-app .mp-sim-year-inline select,
.mp-sim-app .mp-sim-edit-mini {
  background: #fff !important;
  color: #dc2626 !important;
  border: 1px solid rgba(248, 113, 113, .22) !important;
  box-shadow: 0 10px 18px rgba(220, 38, 38, .08);
}

.mp-sim-app .mp-sim-year-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #8a5b5b;
  font-size: 13px;
  font-weight: 700;
}

.mp-sim-app .mp-sim-edit-mini {
  position: relative;
  font-size: 0 !important;
  min-width: 112px;
}

.mp-sim-app .mp-sim-edit-mini::after {
  content: "修改个人资料";
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.mp-sim-app .mp-sim-tabs-slim button {
  background: #edf2f7 !important;
}

.mp-sim-app .mp-sim-tabs-slim button span {
  color: #3f5272 !important;
}

.mp-sim-app .mp-sim-tabs-slim button.active {
  background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  box-shadow: 0 18px 30px rgba(239, 68, 68, .22) !important;
}

.mp-sim-app .mp-sim-tabs-slim button.active span,
.mp-sim-app .mp-sim-tabs-slim button.active {
  color: #fff !important;
}

.mp-sim-app .mp-sim-action-bar {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  background: none !important;
}

.mp-sim-app .mp-sim-action-bar .mp-btn {
  width: 100% !important;
}

.mp-sim-app .mp-sim-picker-sheet {
  position: relative;
  border-radius: 30px 30px 0 0 !important;
  padding: 18px 18px 22px !important;
  background: linear-gradient(180deg, #fff, #fff7f7) !important;
  box-shadow: 0 -18px 36px rgba(15, 23, 42, .18) !important;
}

.mp-sim-app .mp-sim-picker-sheet::before {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #f2b4b4;
}

.mp-sim-app .mp-sim-picker-head {
  margin-bottom: 14px;
}

.mp-sim-app .mp-sim-picker-head strong {
  font-size: 22px;
}

.mp-sim-app .mp-sim-picker-head small {
  margin-top: 4px;
  color: #6b7b93;
}

.mp-sim-app .mp-sim-picker-count {
  margin-top: 8px;
  font-weight: 700;
  color: #dc2626;
}

.mp-sim-app .mp-sim-picker-filters input,
.mp-sim-app .mp-sim-picker-filters select {
  min-height: 48px;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.mp-sim-app .mp-sim-picker-list {
  max-height: min(54vh, 520px);
  padding-right: 2px;
}

.mp-sim-app .mp-sim-school-item {
  border-radius: 20px !important;
  padding: 14px 16px !important;
}

.mp-sim-app .mp-sim-history-card,
.mp-sim-app .mp-lead-card {
  padding: 22px !important;
  border-radius: 28px !important;
}

.mp-sim-app .mp-lead-card {
  margin-bottom: 24px;
}

.mp-sim-app .mp-sim-history-item {
  padding: 14px 0 !important;
}

.mp-sim-app .mp-sim-history-link strong {
  font-size: 17px !important;
}

.mp-sim-app .mp-sim-history-link p {
  font-size: 14px;
  color: #6b7b93;
}

.mp-sim-app .mp-lead-card .mp-lead-head h3 {
  font-size: 26px !important;
}

.mp-sim-app .mp-lead-card .mp-lead-head p {
  font-size: 15px;
}

.mp-sim-app .mp-lead-form .mp-lead-grid {
  gap: 14px !important;
}

.mp-sim-app .mp-lead-item input,
.mp-sim-app .mp-lead-item select,
.mp-sim-app .mp-lead-item textarea {
  min-height: 46px !important;
}

.mp-sim-app .mp-lead-item textarea {
  min-height: 104px !important;
}

.mp-sim-app .mp-lead-form .mp-btn {
  min-height: 52px !important;
  font-size: 20px !important;
}

@media (max-width: 768px) {
  .mp-sim-app .container {
    width: calc(100vw - 24px);
  }

  .mp-sim-app .mp-sim-compact-card {
    padding: 18px !important;
  }

  .mp-sim-app .mp-sim-tag-row {
    gap: 6px;
    flex-wrap: wrap;
  }

  .mp-sim-app .mp-sim-tag-row span {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }

  .mp-sim-app .mp-sim-picker-sheet {
    padding: 16px 14px 18px !important;
  }

  .mp-sim-app .mp-sim-history-card,
  .mp-sim-app .mp-lead-card {
    padding: 18px !important;
    border-radius: 24px !important;
  }
}

/* 模拟填报结果页 App 化重构 */
.mp-sim-report-app .container {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
}

.mp-sim-report-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}

.mp-sim-report-titlebox h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  line-height: 1.1;
  color: #c81e1e;
}

.mp-sim-report-titlebox p {
  margin-top: 8px;
  color: #6b7b93;
  font-size: 12px;
}

.mp-sim-report-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mp-sim-report-notice {
  border-radius: 30px;
  padding: 20px;
  border: 1px solid rgba(248, 113, 113, .18);
  background: linear-gradient(135deg, #fff6f5 0%, #ffe8e5 100%);
  box-shadow: 0 20px 36px rgba(220, 38, 38, .08);
  width: 100%;
  max-width: none;
}

.mp-sim-report-notice.risk {
  background: linear-gradient(135deg, #fff3f2 0%, #ffe4dd 100%);
}

.mp-sim-report-notice__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mp-sim-report-notice h2 {
  margin-top: 14px;
  color: #b91c1c;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.mp-sim-report-notice > p {
  margin-top: 10px;
  color: #7f1d1d;
  font-size: 14px;
}

.mp-sim-report-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mp-sim-report-result-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

.mp-sim-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mp-sim-report-stat {
  background: #fff;
  border-radius: 18px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 14px 24px rgba(220, 38, 38, .06);
}

.mp-sim-report-stat small {
  display: block;
  color: #7a879a;
  font-size: 12px;
}

.mp-sim-report-stat strong {
  display: block;
  margin-top: 6px;
  color: #c81e1e;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.mp-sim-report-stat span {
  display: block;
  margin-top: 5px;
  color: #66758d;
  font-size: 12px;
}

.mp-sim-report-efficiency {
  border-radius: 28px;
}

.mp-sim-report-block-head h2 {
  color: #16243d;
  font-size: 22px;
  font-weight: 900;
}

.mp-sim-report-block-head p {
  margin-top: 8px;
  color: #6b7b93;
}

.mp-sim-report-efficiency__text {
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.mp-sim-report-progress {
  height: 10px;
  margin: 14px 0 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.mp-sim-report-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.mp-sim-report-suggestion {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7d6, #ffefbc);
  color: #92400e;
}

.mp-sim-report-suggestion strong {
  display: block;
  margin-bottom: 6px;
  color: #b45309;
}

.mp-sim-report-suggestion p {
  margin: 0;
  line-height: 1.75;
}

.mp-sim-report-efficiency .mp-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mp-sim-report-waterfall-card {
  overflow: hidden;
}

.mp-sim-waterfall {
  position: relative;
  padding-left: 30px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mp-sim-waterfall::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #fecaca, #fca5a5);
}

.mp-sim-timeline-item {
  position: relative;
  display: block;
  padding-left: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff9f8);
  border: 1px solid rgba(241, 215, 215, .92);
  box-shadow: 0 10px 18px rgba(220, 38, 38, .04);
}

.mp-sim-timeline-content {
  padding: 12px 14px;
}

.mp-sim-timeline-content strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.mp-sim-timeline-content p {
  margin-top: 6px;
  color: #6b7280;
  line-height: 1.55;
  font-size: 13px;
}

.mp-sim-timeline-content .mp-plan-tag-badge {
  margin-top: 8px;
}

.mp-sim-report-detail {
  overflow: hidden;
  border: 1px solid rgba(248, 113, 113, .12);
  box-shadow: 0 16px 30px rgba(220, 38, 38, .05);
}

.mp-sim-report-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,242,.94));
  cursor: pointer;
}

.mp-sim-report-detail summary span {
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.mp-sim-report-detail summary small {
  color: #d9413a;
  font-size: 12px;
  font-weight: 800;
}

.mp-sim-report-detail-inner {
  padding: 0 14px 14px;
}

.mp-sim-report-detail-note {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(217, 65, 58, .05);
  border: 1px solid rgba(217, 65, 58, .08);
}

.mp-sim-report-detail-note strong {
  display: block;
  margin-bottom: 6px;
  color: #c81e1e;
}

.mp-sim-report-detail-note p {
  margin: 0;
  color: #5b6475;
  line-height: 1.7;
}

.mp-sim-report-detail .table-wrap {
  overflow-x: auto;
}

.mp-sim-report-detail .data-table {
  min-width: 980px;
}

.mp-sim-report-detail .data-table thead th {
  background: rgba(217, 65, 58, .06);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.mp-sim-report-detail .data-table tbody td {
  vertical-align: top;
  font-size: 12px;
}

.mp-sim-report-reason {
  color: #475569;
  line-height: 1.65;
}

.mp-chip.safe {
  background: #d1fae5;
  color: #166534;
}

.mp-sim-report-svip {
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff5d7, #ffe8c4);
  border: 1px solid #fed7aa;
}

.mp-sim-report-svip h3 {
  color: #b45309;
  font-size: 20px;
  font-weight: 900;
}

.mp-sim-report-svip p {
  margin: 10px 0 16px;
  color: #92400e;
}

.mp-sim-report-footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

@media (max-width: 768px) {
  .mp-sim-report-app .container {
    width: calc(100vw - 24px);
  }

  .mp-sim-report-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-sim-report-titlebox h1 {
    font-size: 32px;
    flex-wrap: wrap;
  }

  .mp-sim-report-stats,
  .mp-sim-report-efficiency .mp-actions,
  .mp-sim-report-footer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-sim-report-detail summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .mp-sim-report-stats,
  .mp-sim-report-efficiency .mp-actions,
  .mp-sim-report-footer-actions {
    grid-template-columns: 1fr;
  }

  .mp-sim-report-notice h2 {
    font-size: 28px;
  }

  .mp-sim-report-detail summary span {
    font-size: 19px;
  }
}

/* simulate report member split */
.mp-sim-report-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}

.mp-sim-report-level.is-vip {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
}

.mp-sim-report-level.is-basic {
  background: #e2e8f0;
  color: #475569;
}

.mp-sim-report-stats-card {
  margin-bottom: 18px;
}

.mp-sim-report-basic-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mp-sim-report-basic-stat {
  background: #fff;
  border: 1px solid #fee2e2;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.08);
  border-radius: 20px;
  text-align: center;
  padding: 16px 12px;
}

.mp-sim-report-basic-stat small,
.mp-sim-report-basic-stat span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}

.mp-sim-report-basic-stat strong {
  display: block;
  margin: 4px 0;
  color: #b91c1c;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.mp-sim-report-upgrade-card {
  border: 1px dashed #fecaca;
  background: linear-gradient(180deg, #fff, #f8fafc);
  text-align: center;
}

.mp-sim-report-upgrade-card__icon,
.mp-sim-report-upgrade-icon {
  font-size: 2.3rem;
  line-height: 1;
  margin-bottom: 8px;
  color: #dc2626;
}

.mp-sim-report-upgrade-card h3 {
  color: #b91c1c;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.mp-sim-report-upgrade-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.8;
}

.mp-sim-report-upgrade-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  margin: 18px 0 20px;
}

.mp-sim-report-upgrade-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
}

.mp-sim-report-upgrade-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  margin: 18px 0 20px;
}

.mp-sim-report-upgrade-card__features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
}

.mp-sim-report-upgrade-card small {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mp-sim-report-upgrade-card .mp-actions {
  justify-content: center;
}

.badge-tag.ok {
  background: #d1fae5;
  color: #065f46;
}

.badge-tag.risk {
  background: #fee2e2;
  color: #b91c1c;
}

.mp-sim-row-basis {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.74rem;
}

.mp-sim-report-upgrade-features i {
  color: #dc2626;
}

.mp-sim-report-upgrade-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mp-sim-report-footer-actions.is-basic {
  margin-top: 22px;
}

@media (max-width: 768px) {
  .mp-sim-report-basic-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mp-sim-report-basic-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.mp-compare-vs-page {
  padding: 12px 0 140px;
}

.cmp-vs-hero {
  position: relative;
  padding: 18px 18px 42px;
  margin-bottom: -20px;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.85), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(160deg, #fff9f9 0%, #ffe7e7 34%, #ffd4d7 68%, #fff3f3 100%);
  box-shadow: 0 20px 40px rgba(188, 27, 43, 0.12);
}

.cmp-vs-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cmp-vs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(181, 31, 49, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #b51f31;
  font-size: 14px;
  font-weight: 700;
}

.cmp-vs-mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(181, 31, 49, 0.1);
}

.cmp-vs-mode-switch a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.cmp-vs-mode-switch a.active {
  background: linear-gradient(135deg, #df2d35, #b7162f);
  color: #fff;
  box-shadow: 0 8px 18px rgba(223, 45, 53, 0.2);
}

.cmp-vs-showcase {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cmp-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.cmp-fighter-logo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.16);
}

.cmp-fighter-left .cmp-fighter-logo {
  border: 3px solid #df2d35;
}

.cmp-fighter-right .cmp-fighter-logo {
  border: 3px solid #2856c5;
}

.cmp-fighter-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-fighter-logo span {
  font-size: 24px;
  font-weight: 900;
  color: #1f2937;
}

.cmp-fighter-name {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.cmp-fighter-tags {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.cmp-vs-badge {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbf59, #f18a00);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  box-shadow: 0 0 22px rgba(241, 138, 0, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.cmp-vs-card {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  padding: 22px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,250,0.98));
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.08);
}

.cmp-vs-card-primary {
  margin-top: 0;
}

.cmp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cmp-section-head .cmp-card-title {
  margin-bottom: 0;
}

.cmp-access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-access-badge-vip {
  background: linear-gradient(135deg, #172033, #3b4964);
  color: #f5d37c;
  box-shadow: 0 10px 20px rgba(23, 32, 51, 0.18);
}

.cmp-simple-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmp-simple-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f9fafc);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.cmp-simple-card-left {
  border: 1px solid rgba(223, 45, 53, 0.16);
}

.cmp-simple-card-right {
  border: 1px solid rgba(40, 86, 197, 0.16);
}

.cmp-simple-card small {
  display: block;
  margin-bottom: 10px;
  color: #8b5e5a;
  font-size: 12px;
  font-weight: 800;
}

.cmp-simple-card strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
}

.cmp-simple-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.cmp-upgrade-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 245, 228, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #b45309;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.cmp-upgrade-card {
  text-align: center;
}

.cmp-upgrade-card h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 24px;
}

.cmp-upgrade-card p,
.cmp-upgrade-card small {
  color: #64748b;
  line-height: 1.8;
}

.cmp-upgrade-card small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.cmp-upgrade-card__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cmp-upgrade-card-inline {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,242,0.98));
  border-color: rgba(245, 158, 11, 0.16);
}

.cmp-compare-upgrade-card {
  padding: 28px 22px;
  background: linear-gradient(180deg, #fff 0%, #fff8f5 100%);
  border: 1px dashed rgba(223, 45, 53, 0.2);
}

.cmp-compare-upgrade-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: #df2d35;
  font-size: 32px;
  box-shadow: 0 12px 24px rgba(223, 45, 53, 0.12);
}

.cmp-compare-upgrade-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cmp-compare-upgrade-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #5b6474;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.cmp-vs-summary-hint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.cmp-vs-summary-hint .left,
.cmp-vs-summary-hint .right {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.cmp-vs-summary-hint .left {
  background: linear-gradient(180deg, #fff3f4, #fff);
  color: #b91c1c;
  border: 1px solid rgba(223, 45, 53, 0.12);
}

.cmp-vs-summary-hint .right {
  background: linear-gradient(180deg, #eef5ff, #fff);
  color: #1d4ed8;
  border: 1px solid rgba(40, 86, 197, 0.12);
}

.cmp-vs-hero-redwhite {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(155deg, #fff7f7 0%, #ffe6e6 32%, #ffd5d8 65%, #fffefe 100%);
}

.cmp-vs-back-dark {
  color: #991b1b;
}

.cmp-vs-mode-switch-light {
  background: rgba(255,255,255,0.84);
}

.cmp-mini-trend {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff8f8, #fff);
  border: 1px solid rgba(223, 45, 53, 0.08);
}

.cmp-mini-trend-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
}

.cmp-mini-trend-head h4 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.cmp-mini-trend-head span {
  color: #6b7280;
  font-size: 11px;
}

.cmp-mini-trend-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 150px;
}

.cmp-mini-trend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cmp-mini-trend-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 120px;
}

.cmp-mini-bar {
  position: relative;
  width: 24px;
  min-height: 18px;
  border-radius: 14px 14px 8px 8px;
}

.cmp-mini-bar em {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  color: #111827;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-mini-bar-left {
  background: linear-gradient(180deg, #f07d87, #df2d35);
}

.cmp-mini-bar-right {
  background: linear-gradient(180deg, #7da9ff, #2856c5);
}

.cmp-mini-trend-item label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.cmp-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.cmp-card-title::before,
.cmp-card-title::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.cmp-pk-row {
  margin-bottom: 16px;
}

.cmp-pk-metric-name {
  margin-bottom: 6px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.cmp-pk-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmp-pk-value {
  width: 56px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.cmp-pk-value.val-left {
  color: #df2d35;
  text-align: right;
}

.cmp-pk-value.val-right {
  color: #2856c5;
  text-align: left;
}

.cmp-pk-value.winner::after {
  content: "👑";
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  vertical-align: top;
}

.cmp-pk-track-wrapper {
  flex: 1;
  display: flex;
  gap: 4px;
}

.cmp-pk-track {
  position: relative;
  flex: 1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eff1f5;
}

.cmp-fill-left,
.cmp-fill-right {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

.cmp-fill-left {
  right: 0;
  background: linear-gradient(90deg, #f9a1a8 0%, #df2d35 100%);
}

.cmp-fill-right {
  left: 0;
  background: linear-gradient(90deg, #2856c5 0%, #8fb6ff 100%);
}

.cmp-vs-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cmp-year-item {
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff, #fff);
  border: 1px solid #edf0f6;
  text-align: center;
}

.cmp-year-item .cmp-year-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.cmp-year-item strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}

.cmp-year-item .v-left {
  color: #df2d35;
}

.cmp-year-item .v-right {
  color: #2856c5;
}

.cmp-year-item em {
  display: block;
  color: #9ca3af;
  font-style: normal;
  font-size: 11px;
}

.cmp-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmp-matrix-compact .cmp-matrix-item {
  min-height: 66px;
}

.cmp-subject-badge-grid {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  gap: 10px;
  align-items: stretch;
  margin: 16px 0;
}

.cmp-subject-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmp-subject-center-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
  border-radius: 16px;
  background: #f1f5f9;
  padding: 12px 8px;
}

.cmp-subject-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
}

.cmp-subject-badge-left {
  border: 1px solid rgba(223, 45, 53, 0.1);
}

.cmp-subject-badge-right {
  border: 1px solid rgba(40, 86, 197, 0.1);
}

.cmp-subject-badge strong {
  font-size: 16px;
  font-weight: 900;
}

.cmp-subject-badge-left strong {
  color: #df2d35;
}

.cmp-subject-badge-right strong {
  color: #2856c5;
}

.cmp-subject-name {
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.cmp-subject-medal-grid {
  align-items: start;
}

.cmp-subject-medal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fafb);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.06);
}

.cmp-subject-medal::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cmp-subject-medal-left {
  border: 1px solid rgba(223, 45, 53, 0.14);
}

.cmp-subject-medal-left::before {
  background: linear-gradient(180deg, #ff9aa6, #df2d35);
  box-shadow: 0 0 0 4px rgba(223, 45, 53, 0.08);
}

.cmp-subject-medal-right {
  border: 1px solid rgba(40, 86, 197, 0.14);
}

.cmp-subject-medal-right::before {
  background: linear-gradient(180deg, #8fb6ff, #2856c5);
  box-shadow: 0 0 0 4px rgba(40, 86, 197, 0.08);
}

.cmp-subject-medal-name {
  flex: 1;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.cmp-subject-medal strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.cmp-subject-medal em {
  color: #9ca3af;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.cmp-ecology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cmp-destination-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmp-destination-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmp-destination-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cmp-destination-head h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.cmp-destination-head span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-destination-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fafb);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.cmp-destination-card-left {
  border: 1px solid rgba(223, 45, 53, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 221, 0.62), transparent 28%),
    linear-gradient(180deg, #fff, #fff8f8);
  box-shadow: 0 16px 28px rgba(223, 45, 53, 0.10);
}

.cmp-destination-card-right {
  border: 1px solid rgba(40, 86, 197, 0.18);
  background:
    radial-gradient(circle at top right, rgba(210, 226, 255, 0.7), transparent 28%),
    linear-gradient(180deg, #fff, #f7faff);
  box-shadow: 0 16px 28px rgba(40, 86, 197, 0.10);
}

.cmp-destination-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cmp-destination-title {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.cmp-destination-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #df2d35, #b7162f);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(223, 45, 53, 0.18);
}

.cmp-destination-crown.is-blue {
  background: linear-gradient(135deg, #2856c5, #173d96);
  box-shadow: 0 8px 18px rgba(40, 86, 197, 0.18);
}

.cmp-destination-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmp-destination-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.cmp-destination-card-left .cmp-destination-badges span {
  background: rgba(223, 45, 53, 0.08);
  color: #b91c1c;
}

.cmp-destination-card-right .cmp-destination-badges span {
  background: rgba(40, 86, 197, 0.08);
  color: #1d4ed8;
}

.cmp-destination-empty {
  padding: 18px 14px;
  border-radius: 18px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  border: 1px dashed #e5e7eb;
}

.cmp-eco-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fafb);
}

.cmp-eco-card-left {
  border: 1px solid rgba(223, 45, 53, 0.12);
}

.cmp-eco-card-right {
  border: 1px solid rgba(40, 86, 197, 0.12);
}

.cmp-eco-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.cmp-eco-top h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.cmp-eco-top span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-eco-highlight {
  margin-bottom: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.cmp-eco-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
}

.cmp-ecology-battle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmp-eco-battle-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f9fafc);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
}

.cmp-eco-battle-card-left {
  border: 1px solid rgba(223, 45, 53, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 220, 224, 0.62), transparent 28%),
    linear-gradient(180deg, #fff, #fff8f8);
}

.cmp-eco-battle-card-right {
  border: 1px solid rgba(40, 86, 197, 0.18);
  background:
    radial-gradient(circle at top right, rgba(219, 231, 255, 0.7), transparent 28%),
    linear-gradient(180deg, #fff, #f7faff);
}

.cmp-eco-battle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cmp-eco-battle-head h4 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.cmp-eco-battle-head span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-eco-battle-highlight {
  margin-bottom: 10px;
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 900;
}

.cmp-eco-battle-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cmp-eco-battle-stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.cmp-eco-battle-card-left .cmp-eco-battle-stats span {
  background: rgba(223, 45, 53, 0.08);
  color: #b91c1c;
}

.cmp-eco-battle-card-right .cmp-eco-battle-stats span {
  background: rgba(40, 86, 197, 0.08);
  color: #1d4ed8;
}

.cmp-eco-battle-card p,
.cmp-eco-battle-card small {
  display: block;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.cmp-eco-battle-card small {
  margin-top: 8px;
  font-size: 12px;
}

.cmp-matrix-item {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  background: #f9fafb;
}

.cmp-matrix-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 14px 12px;
  text-align: center;
}

.cmp-matrix-left {
  border-right: 1px solid #fff;
}

.cmp-matrix-right {
  border-left: 1px solid #fff;
}

.cmp-matrix-label {
  width: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: #f1f5f9;
}

.cmp-m-val {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}

.cmp-m-sub {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.4;
}

.cmp-vs-bottom-actions {
  position: sticky;
  bottom: 76px;
  z-index: 10;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.08);
}

.cmp-share-btn,
.cmp-report-btn {
  height: 48px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.cmp-share-btn {
  flex: 1;
  background: #f3f4f6;
  color: #111827;
}

.cmp-report-btn {
  flex: 2;
  background: linear-gradient(135deg, #d72235, #7d152b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(215, 34, 53, 0.2);
}

.compare-poster-page {
  padding: 18px 0 60px;
}

.compare-poster-card {
  padding: 22px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff 0%, #fff8f6 100%);
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
  border: 1px solid rgba(223, 45, 53, 0.1);
}

.compare-poster-top {
  text-align: center;
}

.compare-poster-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #df2d35, #b7162f);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.compare-poster-top h1 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}

.compare-poster-top p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.compare-poster-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.compare-poster-school {
  padding: 16px 12px;
  border-radius: 22px;
  text-align: center;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.compare-poster-school-left {
  border: 1px solid rgba(223, 45, 53, 0.16);
}

.compare-poster-school-right {
  border: 1px solid rgba(40, 86, 197, 0.16);
}

.compare-poster-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.compare-poster-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-poster-logo span {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.compare-poster-school strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
}

.compare-poster-school small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
}

.compare-poster-vs-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbf59, #f18a00);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  box-shadow: 0 0 22px rgba(241, 138, 0, 0.35), inset 0 2px 6px rgba(255,255,255,0.4);
}

.compare-poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.compare-poster-metric {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffafa);
  border: 1px solid rgba(223, 45, 53, 0.08);
}

.compare-poster-metric label {
  display: block;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.compare-poster-metric .duo {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
}

.compare-poster-metric .duo .left {
  color: #df2d35;
}

.compare-poster-metric .duo .right {
  color: #2856c5;
}

.compare-poster-trend {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8f8, #fff);
  border: 1px solid rgba(223, 45, 53, 0.08);
}

.compare-poster-trend h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.compare-poster-years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compare-poster-year {
  padding: 14px 10px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.compare-poster-year span {
  display: block;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.compare-poster-year-bars {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.compare-poster-year .bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.compare-poster-year .bar-group i {
  display: block;
  width: 100%;
  min-height: 18px;
  border-radius: 12px 12px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
}

.compare-poster-year .bar-group.left i {
  background: linear-gradient(180deg, #ff989b, #df2d35);
}

.compare-poster-year .bar-group.right i {
  background: linear-gradient(180deg, #8eb2ff, #2856c5);
}

.compare-poster-year em {
  display: block;
  width: 100%;
  padding: 8px 0;
  border-radius: 12px;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.compare-poster-year em.left {
  background: #fff1f2;
  color: #df2d35;
}

.compare-poster-year em.right {
  background: #eef5ff;
  color: #2856c5;
}

.compare-poster-year small {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.compare-poster-bottom {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.compare-poster-qr {
  width: 140px;
  height: 140px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.compare-poster-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-poster-copy h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.compare-poster-copy p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
}

.compare-poster-share-head {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  border: 1px solid rgba(223, 45, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-poster-share-head__meta {
  display: grid;
  gap: 4px;
}

.compare-poster-share-head__meta strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.compare-poster-share-head__meta span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.compare-poster-share-head__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.compare-poster-spread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.compare-poster-spread-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fff8f8);
  border: 1px solid rgba(223, 45, 53, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.compare-poster-spread-card label {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.compare-poster-spread-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.compare-poster-spread-card span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.compare-poster-copy-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.compare-poster-copy-bullets span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(223, 45, 53, 0.12);
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.compare-poster-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.compare-poster-scene-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border: 1px solid rgba(223, 45, 53, 0.12);
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.06);
}

.compare-poster-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.compare-poster-scene-head strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.compare-poster-scene-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff1f2;
  color: #df2d35;
  font-size: 12px;
  font-weight: 800;
}

.compare-poster-scene-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.compare-poster-scene-success,
.compare-poster-scene-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.compare-poster-scene-success {
  background: #ecfdf5;
  color: #047857;
}

.compare-poster-scene-tip {
  background: #fff7ed;
  color: #c2410c;
}

.compare-poster-scene-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.compare-poster-scene-steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(223, 45, 53, 0.08);
}

.compare-poster-scene-steps .step b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #df2d35, #b7162f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.compare-poster-scene-steps .step span {
  color: #475569;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.compare-poster-scene-steps .step.reward {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.compare-poster-scene-steps .step.reward b {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

@media (max-width: 768px) {
  .cmp-vs-hero {
    padding: 16px 14px 36px;
    border-radius: 0 0 26px 26px;
  }

  .cmp-vs-hero-top {
    flex-direction: column;
    align-items: stretch;
  }

  .cmp-vs-back,
  .cmp-vs-mode-switch {
    justify-content: center;
  }

  .cmp-vs-showcase {
    gap: 10px;
  }

  .cmp-fighter-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .cmp-fighter-name {
    font-size: 14px;
  }

  .cmp-fighter-tags {
    font-size: 11px;
  }

  .cmp-vs-badge {
    top: 10px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .cmp-vs-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .cmp-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cmp-card-title {
    font-size: 16px;
  }

  .cmp-pk-value {
    width: 48px;
    font-size: 18px;
  }

  .cmp-vs-year-grid {
    grid-template-columns: 1fr;
  }

  .cmp-mini-trend-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cmp-subject-badge-grid {
    grid-template-columns: 1fr;
  }

  .cmp-subject-center-label {
    order: -1;
  }

  .cmp-destination-grid {
    grid-template-columns: 1fr;
  }

  .cmp-ecology-grid {
    grid-template-columns: 1fr;
  }

  .cmp-simple-dual-grid,
  .cmp-ecology-battle-grid {
    grid-template-columns: 1fr;
  }

  .cmp-matrix-label {
    width: 74px;
    font-size: 11px;
  }

  .cmp-m-val {
    font-size: 13px;
  }

  .cmp-vs-bottom-actions {
    bottom: 74px;
  }

  .compare-poster-grid,
  .compare-poster-years,
  .compare-poster-bottom,
  .compare-poster-spread-grid {
    grid-template-columns: 1fr;
  }

  .compare-poster-scene-steps {
    grid-template-columns: 1fr;
  }

  .compare-poster-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .compare-poster-top h1 {
    font-size: 24px;
  }
}
