:root {
  --bg: #f3f8ff;
  --bg-soft: #eef6ff;
  --sidebar: rgba(255, 255, 255, 0.9);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-2: #ffffff;
  --text: #18324d;
  --text-soft: #5f7690;
  --accent: #4f8ef7;
  --accent-2: #57c9b5;
  --accent-3: #eef5ff;
  --line: rgba(127, 163, 211, 0.28);
  --shadow: 0 22px 60px rgba(69, 116, 174, 0.14);
  --shadow-soft: 0 12px 28px rgba(96, 129, 177, 0.12);
  --success-bg: #eaf8f3;
  --success-text: #187a58;
  --success-line: #8fd3b8;
  --warn-bg: #fff5e8;
  --warn-text: #a96a18;
  --warn-line: #f0c98f;
  --danger-bg: #feeeee;
  --danger-text: #b24545;
  --danger-line: #efb1b1;
  --info-bg: #edf5ff;
  --info-text: #3f76d6;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(115, 170, 255, 0.26), transparent 34%),
    radial-gradient(circle at bottom right, rgba(87, 201, 181, 0.18), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f1f7ff 48%, #edf5ff 100%);
}
img, svg, video, canvas { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  min-width: 0; padding: 24px 18px; border-right: 1px solid var(--line);
  background: var(--sidebar); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; min-width: 0; }
.brand-mark {
  width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, #77aefd, #5c8dff); color: #fff; font-weight: 800; letter-spacing: 0.06em;
  box-shadow: 0 16px 32px rgba(92, 141, 255, 0.28);
}
.brand > div:last-child { min-width: 0; flex: 1; }
.eyebrow, .toolbar-label, .mini-label {
  margin: 0; color: var(--text-soft); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.brand h1, .toolbar h2, .hero h3, .panel h4, .focus-card h4, .compare-card h4, .path-step h4, .deliverable h4, .scene-title { margin: 0; }
.brand h1 { font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.slide-nav { display: flex; flex-direction: column; gap: 10px; }
.nav-item {
  width: 100%; min-width: 0; padding: 14px 14px 14px 16px; border: 1px solid transparent; border-radius: 16px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: 0.2s ease;
}
.nav-item span { display: block; }
.nav-item .nav-index { margin-bottom: 6px; color: var(--text-soft); font-size: 12px; }
.nav-item .nav-name { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.nav-item:hover, .nav-item.active { background: #edf5ff; border-color: #c9dbfa; transform: translateX(2px); }
.sidebar-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.stage { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 24px 24px 18px; }
.toolbar, .pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.toolbar h2 { margin-top: 6px; font-size: clamp(1.5rem, 2.5vw, 1.875rem); color: #16314c; }
.toolbar-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
button { border: 0; border-radius: 12px; padding: 11px 18px; font-size: 14px; cursor: pointer; }
.primary-btn { color: #fff; background: linear-gradient(135deg, #6aa4ff, #4f8ef7); box-shadow: 0 12px 24px rgba(79, 142, 247, 0.22); }
.ghost-btn { color: var(--text); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); }
.slide-viewport { padding: 20px 0; }
.slide-card {
  min-height: calc(100vh - 180px); min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,251,255,0.96)); box-shadow: var(--shadow); overflow: hidden;
}
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 22px; height: 100%; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-title { margin: 10px 0 18px; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.1; color: #14324e; }
.hero-desc, .panel p, .focus-card p, .compare-card p, .path-step p, .deliverable p, .bullet-list li, .metric span, .scene-subtitle, .scene-note, .rec-text, .dim-note, .mock-note, .mock-item, .mock-value, .mock-text, .saas-subtext {
  color: #54708a; line-height: 1.75; overflow-wrap: anywhere;
}
.hero-metrics, .grid-2, .grid-3, .path-grid, .deliverables-grid, .compare-grid, .scene-grid, .dim-grid, .mock-grid, .mock-panel-grid, .saas-grid, .saas-stat-grid, .saas-action-grid {
  display: grid; gap: 18px;
}
.hero-metrics, .grid-3, .compare-grid, .deliverables-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2, .path-grid, .dim-grid, .mock-panel-grid, .saas-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scene-grid, .mock-grid, .saas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.saas-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric, .panel, .focus-card, .compare-card, .path-step, .deliverable, .scene-card, .recommend-box, .saas-shell, .saas-card, .saas-stat, .saas-side-card, .saas-mini-card {
  min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel);
}
.metric strong { display: block; margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 1.75rem); color: #16314c; }
.hero-visual {
  position: relative; min-width: 0; overflow: hidden; border-radius: 28px; border: 1px solid #d5e4fa;
  background: linear-gradient(180deg, rgba(111,164,255,0.12), rgba(87,201,181,0.08)), #f9fbff;
}
.visual-stack { position: absolute; inset: 22px; display: grid; gap: 14px; align-content: center; }
.glow-chip, .tag, .score, .mock-chip, .mock-badge, .mock-tab, .saas-pill, .saas-nav-link, .saas-chip {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%; border-radius: 999px; padding: 8px 14px; overflow-wrap: anywhere;
}
.glow-chip { background: #eaf2ff; color: #3c70cc; }
.tag { background: #ecf7f3; color: #1d8461; font-size: 13px; }
.section-title { margin: 0 0 18px; font-size: clamp(1.5rem, 3vw, 1.75rem); color: #16314c; }
.bullet-list { margin: 0; padding-left: 20px; }
.bullet-list li + li { margin-top: 8px; }
.focus-card h4, .compare-card h4, .path-step h4, .deliverable h4, .panel h4, .scene-title, .mock-title, .saas-title {
  margin-bottom: 10px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #16314c;
}
.compare-card .score, .score { margin-top: 12px; background: #edf5ff; color: #4174cc; font-size: 13px; }
.path-step { position: relative; }
.path-step::before {
  content: attr(data-step); position: absolute; top: 18px; right: 18px; color: rgba(61, 118, 195, 0.12); font-size: 36px; font-weight: 800;
}
.dots { display: flex; gap: 10px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(79, 142, 247, 0.2); }
.dot.active { width: 28px; background: linear-gradient(90deg, var(--accent), #57c9b5); }
.scene-section-header { margin: 10px 0 14px; color: var(--text-soft); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.scene-card { background: var(--panel-2); }
.scene-card.recommended { border: 1.5px solid var(--success-line); box-shadow: 0 16px 36px rgba(24,122,88,0.08); }
.scene-card.phase-b { border-left: 4px solid var(--danger-line); }
.scene-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.rank-badge { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.rank-1, .rank-2 { background: var(--success-bg); color: var(--success-text); }
.rank-3, .rank-4 { background: var(--warn-bg); color: var(--warn-text); }
.rank-5b { background: var(--danger-bg); color: var(--danger-text); }
.scene-subtitle { margin-top: 4px; font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tag-easy { background: var(--success-bg); color: var(--success-text); }
.tag-mid { background: var(--warn-bg); color: var(--warn-text); }
.tag-hard { background: var(--danger-bg); color: var(--danger-text); }
.tag-info { background: var(--info-bg); color: var(--info-text); }
.tag-gray { background: #f2f5f9; color: #697d92; }
.dim-item { background: #f8fbff; border: 1px solid #e4edf9; border-radius: 18px; padding: 12px; min-width: 0; }
.dim-label { font-size: 12px; color: var(--text-soft); margin-bottom: 6px; }
.bar-bg { background: #e7eef8; border-radius: 999px; height: 8px; }
.bar-fill { height: 8px; border-radius: 999px; }
.dim-note { margin-top: 6px; font-size: 12px; }
.recommend-box { margin-top: 18px; background: #f5f9ff; border-color: #d6e5fc; }
.rec-title { margin-bottom: 8px; color: #406fca; font-size: 14px; font-weight: 700; }

.saas-shell {
  padding: 0; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); box-shadow: var(--shadow-soft);
}
.saas-topbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid #e5eefb; background: linear-gradient(90deg, #f9fbff, #eef6ff);
}
.saas-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.saas-logo {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6fa8ff, #57c9b5); color: #fff; font-weight: 800; box-shadow: 0 10px 22px rgba(83,147,241,0.24);
}
.saas-brand-text { min-width: 0; }
.saas-brand-text strong { display: block; color: #16314c; font-size: 15px; }
.saas-brand-text span { color: #6a8198; font-size: 12px; }
.saas-nav { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.saas-nav-link { padding: 8px 12px; background: transparent; color: #6c82a0; font-size: 13px; }
.saas-nav-link.active { background: #e8f1ff; color: #376fd0; }
.saas-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.saas-search {
  min-width: 220px; padding: 10px 14px; border-radius: 999px; border: 1px solid #d9e7fb; background: #fff; color: #6a8098;
}
.saas-icon-row { display: flex; gap: 8px; align-items: center; }
.saas-icon {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid #dce8f9; color: #4c76c9;
}
.saas-avatar-stack { display: flex; align-items: center; }
.saas-avatar {
  width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; border: 2px solid #fff;
  display: grid; place-items: center; background: linear-gradient(135deg, #9cc0ff, #63d0ba); color: #fff; font-size: 12px; font-weight: 700;
}
.saas-avatar:first-child { margin-left: 0; }
.saas-body { padding: 18px; }
.saas-hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 18px; margin-bottom: 18px;
}
.saas-hero-card {
  padding: 22px; border-radius: 24px; border: 1px solid #dce9fb;
  background: linear-gradient(135deg, #f7fbff, #eef6ff 60%, #f5fcfa); box-shadow: 0 12px 28px rgba(96,129,177,0.1);
}
.saas-hero-card h4 { margin: 0 0 10px; color: #16314c; font-size: 24px; }
.saas-subtext { margin: 0; }
.saas-pill { padding: 6px 10px; background: #edf5ff; color: #4375cd; font-size: 12px; }
.saas-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.saas-btn {
  padding: 10px 14px; border-radius: 14px; border: 0; cursor: pointer; font-size: 13px;
}
.saas-btn.primary { background: linear-gradient(135deg, #6da5ff, #4f8ef7); color: #fff; }
.saas-btn.secondary { background: #ffffff; color: #4a6f99; border: 1px solid #dbe8fa; }
.saas-patient-card {
  padding: 18px; border-radius: 24px; border: 1px solid #dce9fb; background: #fff; box-shadow: 0 10px 24px rgba(105,134,179,0.1);
}
.saas-patient-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.saas-patient-meta { display: flex; gap: 12px; align-items: center; min-width: 0; }
.saas-patient-avatar {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #89b6ff, #63d0ba); color: #fff; font-size: 20px; font-weight: 800;
}
.saas-patient-name strong { display: block; color: #17324d; }
.saas-patient-name span { color: #6d829b; font-size: 12px; }
.saas-chip { padding: 6px 10px; font-size: 12px; background: #eef5ff; color: #3c74d0; }
.saas-chip.success { background: var(--success-bg); color: var(--success-text); }
.saas-chip.warn { background: var(--warn-bg); color: var(--warn-text); }
.saas-chip.danger { background: var(--danger-bg); color: var(--danger-text); }
.saas-stat { background: #fff; border: 1px solid #e4edf9; box-shadow: 0 8px 18px rgba(118,145,181,0.08); }
.saas-stat strong { display: block; color: #16314c; font-size: 24px; margin-bottom: 6px; }
.saas-card, .saas-side-card, .saas-mini-card { background: #fff; border: 1px solid #e4edf9; box-shadow: 0 8px 18px rgba(118,145,181,0.08); }
.saas-card-head, .saas-row-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px;
}
.saas-card-title { color: #17324d; font-size: 15px; font-weight: 700; }
.saas-card-sub { color: #6e839c; font-size: 12px; }
.saas-list { display: grid; gap: 10px; }
.saas-list-item {
  padding: 12px 14px; border-radius: 16px; background: #f8fbff; border: 1px solid #e6eef9;
}
.saas-list-item strong { display: block; color: #17324d; margin-bottom: 6px; font-size: 14px; }
.saas-kv { display: grid; gap: 10px; }
.saas-kv-item {
  padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, #fafdff, #f4f9ff); border: 1px solid #e0ebfa;
}
.saas-kv-item strong { display: block; margin-bottom: 6px; color: #16314c; font-size: 14px; }
.saas-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.saas-tab {
  padding: 8px 12px; border-radius: 999px; background: #f0f5ff; color: #6080a8; font-size: 12px;
}
.saas-tab.active { background: #dfeeff; color: #356dcb; }
.saas-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.saas-time-card {
  padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e3edf9;
}
.saas-time-card strong { display: block; color: #17324d; margin-bottom: 4px; }
.saas-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.saas-info-box {
  padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e3edf9; text-align: center;
}
.saas-info-box strong { display: block; color: #17324d; margin-bottom: 4px; }
.saas-side-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) 320px; gap: 18px; }
.saas-side-card { padding: 18px; }
.saas-avatar-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #f1f7ff, #f6fcfb); border: 1px solid #dbe9fa;
}
.saas-mini-avatar {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #8cb8ff, #61d0bb); color: #fff; font-weight: 800;
}
.saas-icon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.saas-icon-card {
  padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e4edf9; text-align: center;
}
.saas-icon-symbol {
  width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 14px; display: grid; place-items: center; background: #eef5ff; color: #3d74cf; font-weight: 700;
}
.saas-icon-card strong { display: block; color: #17324d; font-size: 13px; margin-bottom: 4px; }
.saas-action-grid .saas-mini-card { padding: 16px; }
.saas-footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #dbe7f7; flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .hero-metrics, .compare-grid, .deliverables-grid, .saas-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .slide-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .hero-metrics, .grid-2, .grid-3, .path-grid, .compare-grid, .deliverables-grid, .scene-grid, .dim-grid, .mock-grid, .mock-panel-grid, .saas-grid, .saas-action-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .visual-stack { position: relative; inset: auto; padding: 22px; }
  .saas-topbar { grid-template-columns: 1fr; }
  .saas-hero, .saas-side-layout { grid-template-columns: 1fr; }
  .saas-timeline, .saas-info-grid, .saas-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { font-size: 15px; }
  .sidebar { padding: 18px 14px; }
  .brand { align-items: flex-start; }
  .brand h1 { font-size: 1.05rem; word-break: break-word; }
  .slide-nav { grid-template-columns: 1fr; }
  .stage { padding: 14px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-actions { width: 100%; justify-content: flex-start; }
  .slide-card { min-height: auto; padding: 18px; border-radius: 22px; }
  .metric, .panel, .focus-card, .compare-card, .path-step, .deliverable, .scene-card, .recommend-box, .saas-shell, .saas-card, .saas-stat, .saas-side-card, .saas-mini-card { padding: 16px; }
  .scene-header { gap: 10px; }
  .rank-badge { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .pager { flex-direction: column; align-items: flex-start; }
  .saas-stat-grid, .saas-info-grid, .saas-timeline, .saas-icon-grid { grid-template-columns: 1fr; }
  .saas-search { min-width: 0; width: 100%; }
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 18px;
}
.overview-intro,
.overview-card,
.subpage-wrap,
.phone-shell,
.subpage-explain {
  min-width: 0;
}
.overview-intro {
  padding: 24px;
  border: 1px solid #dce8fb;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff 60%, #f5fcfa);
  box-shadow: var(--shadow-soft);
}
.overview-intro h4 {
  margin: 12px 0 10px;
  font-size: 28px;
  color: #16314c;
}
.overview-links {
  display: grid;
  gap: 12px;
  align-content: start;
}
.subpage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d7e5fb;
  background: #ffffff;
  color: #356dcb;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(118,145,181,0.08);
}
.subpage-link.primary {
  background: linear-gradient(135deg, #6da5ff, #4f8ef7);
  color: #ffffff;
  border-color: transparent;
}
.subpage-link.small {
  margin-top: 16px;
  justify-content: flex-start;
  padding: 12px 14px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.overview-card {
  padding: 22px;
  border: 1px solid #deebfb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.overview-card.patient { border-top: 5px solid #58a6ff; }
.overview-card.pharmacist { border-top: 5px solid #57c9b5; }
.overview-card.admin { border-top: 5px solid #f0b35a; }
.overview-head {
  margin-bottom: 14px;
}
.overview-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #3f76d6;
  font-size: 12px;
  margin-bottom: 10px;
}
.overview-head h4 {
  margin: 0;
  color: #17324d;
  font-size: 22px;
}
.overview-list {
  margin: 0;
  padding-left: 20px;
  color: #54708a;
  line-height: 1.8;
}
.overview-list li + li { margin-top: 8px; }

.subpage-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}
.subpage-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.subpage-back {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbe7f9;
  color: #3f76d6;
  text-decoration: none;
  font-weight: 700;
}
.subpage-title {
  margin: 4px 0 0;
  color: #16314c;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.subpage-shell {
  padding: 0;
}
.mobile-demo {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.phone-shell {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: #11243b;
  box-shadow: 0 22px 50px rgba(25, 49, 80, 0.28);
}
.phone-notch {
  width: 120px;
  height: 18px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #0a1524;
}
.phone-screen {
  min-height: 720px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f9fbff, #eef6ff);
}
.mobile-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.mobile-header strong {
  display: block;
  color: #17324d;
}
.mobile-header p {
  margin: 4px 0 0;
  color: #6a8198;
  font-size: 13px;
}
.mobile-card {
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e3edf9;
  box-shadow: 0 8px 18px rgba(118,145,181,0.08);
  margin-bottom: 14px;
}
.mobile-card strong {
  display: block;
  margin-bottom: 10px;
  color: #17324d;
}
.mobile-card p {
  margin: 0;
  color: #54708a;
  line-height: 1.75;
}
.hero-card {
  background: linear-gradient(135deg, #eef5ff, #f4fbf8);
}
.mobile-timeline,
.mobile-info-grid {
  display: grid;
  gap: 10px;
}
.mobile-timeline div,
.mobile-info-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e3edf9;
  color: #54708a;
}
.mobile-timeline span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #7a8ea7;
}
.mobile-timeline b {
  color: #17324d;
}
.mobile-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mobile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subpage-explain {
  display: grid;
  gap: 18px;
}

@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-hero,
  .mobile-demo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .subpage-wrap { padding: 14px; }
  .phone-screen { min-height: auto; }
  .mobile-info-grid { grid-template-columns: 1fr; }
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 320px;
  gap: 18px;
}
.admin-hero-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #dce8fb;
  background: linear-gradient(135deg, #f8fbff, #eef6ff 65%, #f5fcfa);
  box-shadow: var(--shadow-soft);
}
.admin-hero-card.main h2 {
  margin: 12px 0 10px;
  color: #16314c;
  font-size: 30px;
}
.admin-hero-card.main p,
.admin-hero-card.side p,
.admin-panel-head p,
.admin-metric-item span,
.admin-quote-list div,
.admin-stat-card span {
  color: #5a7690;
  line-height: 1.75;
}
.admin-hero-card.side {
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}
.admin-hero-card.side strong {
  display: block;
  margin-bottom: 10px;
  color: #17324d;
  font-size: 18px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-stat-card {
  padding: 20px;
  border-radius: 22px;
  color: #17324d;
  box-shadow: var(--shadow-soft);
}
.admin-stat-card strong {
  display: block;
  font-size: 32px;
  margin-bottom: 6px;
}
.admin-stat-card.blue { background: linear-gradient(135deg, #eaf2ff, #f5f9ff); border: 1px solid #d7e6ff; }
.admin-stat-card.green { background: linear-gradient(135deg, #eaf8f3, #f5fcf8); border: 1px solid #caebdc; }
.admin-stat-card.gold { background: linear-gradient(135deg, #fff5e8, #fffaf2); border: 1px solid #f4d9ab; }
.admin-stat-card.purple { background: linear-gradient(135deg, #f3eeff, #faf7ff); border: 1px solid #ddd0ff; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-panel {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e1ebf9;
  box-shadow: var(--shadow-soft);
}
.admin-panel.wide {
  grid-column: 1 / -1;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-panel-head h3 {
  margin: 0 0 6px;
  color: #17324d;
  font-size: 20px;
}
.admin-metric-list,
.admin-quote-list {
  display: grid;
  gap: 12px;
}
.admin-metric-item,
.admin-quote-list div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e4edf9;
}
.admin-metric-item strong {
  display: block;
  margin-bottom: 6px;
  color: #17324d;
}
.admin-simple-bars {
  display: grid;
  gap: 12px;
}
.admin-simple-bars div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.admin-simple-bars span {
  color: #5f7690;
  font-size: 14px;
}
.admin-simple-bars b {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f9eff, #68d1bb);
}
.admin-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-tag-cloud span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #3d74cf;
  font-size: 13px;
}
.refined-mobile-demo {
  align-items: start;
}
.premium-phone {
  background: linear-gradient(180deg, #16253b, #0e1a2d);
}
.refined-explain {
  grid-template-columns: 1fr;
}
.refined-shell {
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .admin-hero,
  .admin-stats-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}


.mobile-tabs {
  display: none;
}

.mobile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe7f9;
  color: #5f7690;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(118,145,181,0.08);
}

.mobile-tab.active {
  background: linear-gradient(135deg, #6da5ff, #4f8ef7);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 980px) {
  .sidebar .slide-nav {
    display: none;
  }

  .mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 14px;
    margin-bottom: 4px;
    background: linear-gradient(180deg, rgba(243,248,255,0.98), rgba(243,248,255,0.92));
    backdrop-filter: blur(10px);
    scrollbar-width: none;
  }

  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }
}


@media (max-width: 980px) {
  .sidebar-footer {
    display: none;
  }

  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 6px 0 14px;
  }

  .mobile-tab {
    width: 100%;
    min-height: 42px;
    padding: 8px 8px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .mobile-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


.output-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.output-card {
  padding: 26px;
  border-radius: 28px;
  border: 1px solid #dfeaf9;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.output-card.research {
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}
.output-card.application {
  background: linear-gradient(180deg, #fffaf4, #fff5ea);
}
.output-top {
  margin-bottom: 16px;
}
.output-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #3e74d0;
  font-size: 12px;
  font-weight: 700;
}
.output-card.application .output-badge {
  background: #fff0db;
  color: #b17016;
}
.output-top h4 {
  margin: 14px 0 8px;
  color: #16314c;
  font-size: 30px;
  line-height: 1.18;
}
.output-subtitle {
  margin: 0;
  color: #70839a;
  font-size: 13px;
}
.output-highlight {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid #deebfb;
  margin-bottom: 16px;
}
.output-highlight strong {
  display: block;
  margin-bottom: 8px;
  color: #17324d;
  font-size: 16px;
}
.output-highlight p {
  margin: 0;
  color: #56718a;
  line-height: 1.75;
}
.output-list {
  margin: 0;
  padding-left: 20px;
  color: #4f6b86;
}
.output-list li {
  line-height: 1.85;
}
.output-list li + li {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .output-compare {
    grid-template-columns: 1fr;
  }
  .output-top h4 {
    font-size: 24px;
  }
}


.output-badge-big {
  font-size: 26px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 18px;
}
.output-analogy {
  margin: 14px 0 8px;
  color: #6a8097;
  font-size: 14px;
  line-height: 1.7;
}
.output-subtitle-strong {
  font-size: 18px;
  font-weight: 700;
  color: #355f93;
}
.output-card.application .output-subtitle-strong {
  color: #9a6617;
}
.output-top h4 {
  display: none;
}
@media (max-width: 980px) {
  .output-badge-big {
    font-size: 22px;
  }
  .output-subtitle-strong {
    font-size: 16px;
  }
}


@media (max-width: 980px) {
  .brand {
    margin-bottom: 10px;
  }

  .brand-mark {
    display: none;
  }

  .brand > div:last-child {
    width: 100%;
  }

  .brand h1 {
    margin-top: 2px;
  }

  .sidebar {
    padding-bottom: 10px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding-top: 14px;
    padding-bottom: 8px;
  }

  .brand {
    margin-bottom: 6px;
  }

  .eyebrow {
    display: none;
  }

  .brand h1 {
    font-size: 1rem;
    margin: 0;
  }
}
