/* Final navigation geometry: floating glass with rounded inner controls. */
.topbar {
  top: 12px;
  width: calc(100% - 32px);
  max-width: 1320px;
  height: 58px;
  margin: 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(32,32,34,.64);
  box-shadow: inset 0 1px rgba(255,255,255,.15), 0 14px 44px rgba(0,0,0,.28);
}

/* Curated synthesis guide with a quiet grouped-list hierarchy. */
.guides-layout { max-width:1180px; margin:18px auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.synthesis-guide {
  max-width: none;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  background: rgba(28,28,30,.82);
  box-shadow: inset 0 1px rgba(255,255,255,.075),0 16px 38px rgba(0,0,0,.16);
}
.guide-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.guide-heading h3 { margin:0 0 5px; font-size:24px; letter-spacing:-.035em; }
.guide-heading p { margin:0; color:#8e8e93; font-size:13px; line-height:1.5; }
.guide-heading > span { flex:0 0 auto; color:#c9ff45; font-size:12px; font-weight:650; }
.guide-picker { display:grid; grid-template-columns:auto minmax(180px,1fr) auto; align-items:center; gap:12px; padding:12px; border-radius:16px; background:#2c2c2e; }
.guide-picker label { color:#a1a1a6; font-size:12px; }
.guide-picker select { min-height:42px; padding:0 36px 0 12px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:#3a3a3c; color:#f5f5f7; font:560 14px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.guide-picker button { min-height:42px; padding:0 17px; border:1px solid rgba(255,255,255,.35); border-radius:12px; background:linear-gradient(145deg,#dcff69,#a9e92a); color:#111; font-weight:650; cursor:pointer; box-shadow:inset 0 1px rgba(255,255,255,.65); }
.guide-picker button:active { transform:scale(.97); }
.guide-detail { margin-top:14px; padding:18px; border-radius:17px; background:#242426; }
.guide-summary { display:flex; align-items:center; gap:14px; }
.guide-formula { min-width:76px; padding:10px 12px; border-radius:13px; background:rgba(201,255,69,.12); color:#d7ff74; text-align:center; font-size:21px; font-weight:680; letter-spacing:-.03em; }
.guide-summary h4 { margin:0 0 4px; font-size:17px; }
.guide-summary p { margin:0; color:#8e8e93; font-size:12px; }
.guide-route { display:grid; gap:8px; margin:16px 0 0; padding:0; list-style:none; counter-reset:route; }
.guide-route li { counter-increment:route; display:grid; grid-template-columns:25px 1fr; gap:10px; align-items:start; color:#d1d1d6; font-size:13px; line-height:1.55; }
.guide-route li::before { content:counter(route); display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:#3a3a3c; color:#c9ff45; font-size:11px; font-weight:700; }
.guide-equation { display:block; margin-top:3px; color:#f5f5f7; font-family:ui-monospace,"SFMono-Regular",Menlo,monospace; font-size:12px; }
.guide-condition { display:flex; justify-content:space-between; gap:14px; margin:13px 0 0; padding:11px 12px; border-radius:12px; background:rgba(201,255,69,.075); color:#8e8e93; font-size:12px; }
.guide-condition strong { color:#d7ff74; font-weight:650; text-align:right; }
.guide-warning { margin:15px 0 0; padding-top:13px; border-top:1px solid rgba(255,255,255,.075); color:#8e8e93; font-size:11px; line-height:1.55; }
.guide-source { color:#c9ff45; text-decoration:none; }
.danger-guide { border-color:rgba(255,69,58,.18); background:linear-gradient(145deg,rgba(48,27,28,.88),rgba(28,28,30,.86)); }
.danger-guide .guide-heading > span,.danger-guide .guide-source { color:#ff6961; }
.danger-guide .guide-picker button { border-color:rgba(255,255,255,.22); background:linear-gradient(145deg,#ff766e,#e6423a); color:white; box-shadow:inset 0 1px rgba(255,255,255,.4); }
.danger-guide .guide-formula { background:rgba(255,69,58,.12); color:#ff8a84; }
.danger-guide .guide-route li::before { color:#ff6961; }
.danger-guide .radiation-note { color:#ff9f99; }
.vessel.condition-blocked .liquid { height:18%; filter:saturate(.45) brightness(.7); }
.vessel.condition-slow .liquid { height:30%; filter:saturate(.7); }
.vessel.condition-decompose .liquid { height:62%; background:linear-gradient(#ffad72,#8f312a); }
.vessel.electric-field { box-shadow:0 0 18px rgba(187,164,255,.32),inset 0 0 20px rgba(187,164,255,.12); }
.vessel.electric-field .liquid { background:linear-gradient(#cbbcff,#765ec4); }

@media (max-width:700px) {
  .guides-layout { margin:14px 0; grid-template-columns:1fr; }
  .guides-layout .synthesis-guide { margin:0; padding:16px; border-radius:20px; }
  .guide-heading h3 { font-size:21px; }
  .guide-picker { grid-template-columns:1fr; }
  .guide-picker label { display:none; }
  .guide-picker button,.guide-picker select { width:100%; }
  .guide-detail { padding:15px; }
  .guide-formula { min-width:66px; font-size:18px; }
}
.topbar::after {
  display: block;
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -13px;
  height: 13px;
  background: linear-gradient(#050506 12%,rgba(5,5,6,.76),transparent);
  pointer-events: none;
}
.topbar nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(145deg,rgba(118,118,128,.18),rgba(60,60,64,.12));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 5px 18px rgba(0,0,0,.12);
}
.topbar .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  border-radius: 999px;
  padding-inline: 17px;
}
.topbar .nav-link.active {
  box-shadow: inset 0 1px rgba(255,255,255,.18),
    inset 0 -1px rgba(255,255,255,.04), 0 3px 10px rgba(0,0,0,.22);
}

/* Quiet in-page title hierarchy; the top bar remains unchanged. */
.hero h1 {
  max-width: none;
  margin: 25px auto 22px;
  font-size: clamp(50px,6vw,78px);
  line-height: 1.02;
  font-weight: 630;
  letter-spacing: -.048em;
}
.section-head h2,.about-view h2,.experiment-heading h2 {
  font-size: clamp(38px,4.5vw,58px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -.042em;
}

@media (max-width:700px) {
  .hero h1 { font-size: 43px; letter-spacing: -.042em; }
  .catalog .section-head h2,.about-view h2,.experiment-heading h2 {
    font-size: 34px;
    letter-spacing: -.035em;
  }
}

/* Refined app icon and stable category guidance rail. */
.hero-app-icon {
  background: linear-gradient(155deg,#d8fb67 0%,#9be447 48%,#36b987 100%);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.64),
    inset 0 -8px 16px rgba(9,88,64,.15),0 14px 32px rgba(0,0,0,.2);
}
.hero-app-icon::before {
  background: radial-gradient(circle at 30% 20%,rgba(255,255,255,.45),transparent 34%);
  mix-blend-mode: screen;
}
.hero-app-icon::after { opacity: .22; height: 15%; }
.hero-app-icon svg { width: 74px; height: 74px; filter: drop-shadow(0 5px 7px rgba(14,80,58,.18)); }
.hero-app-icon .flask-body {
  fill: url(#flaskGlass);
  stroke: rgba(255,255,255,.92);
  stroke-width: 2.2;
}
.hero-app-icon .flask-rim-solid { fill: url(#flaskRim); }
.hero-app-icon .flask-liquid { fill: url(#flaskLiquid); opacity: .9; }
.hero-app-icon .flask-shine {
  fill: none; stroke: rgba(255,255,255,.82); stroke-width: 4.5; stroke-linecap: round;
}
.hero-app-icon .flask-glint { fill: rgba(255,255,255,.78); }
.hero-app-icon {
  background: transparent;
  border: 0;
  box-shadow: 0 16px 34px rgba(115,220,32,.16);
}
.hero-app-icon::before,.hero-app-icon::after { display: none; }
.hero-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.catalog .filters {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 60px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right,transparent 0,#000 12px,#000 calc(100% - 12px),transparent 100%);
-webkit-mask-image: linear-gradient(to right,transparent 0,#000 12px,#000 calc(100% - 12px),transparent 100%);
}
.catalog .filters::-webkit-scrollbar { display: none; }
.catalog .filter { flex: 0 0 auto; scroll-snap-align: start; }

/* Native welcome features and compact category menu. */
.hero .stats { display: none; }
.welcome-features {
  --glass-x: 50%;
  --glass-y: 35%;
  --glass-energy: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(520px,100%);
  margin: 50px auto 0;
  padding: 8px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(150px circle at var(--glass-x) var(--glass-y),rgba(235,255,195,calc(.035 * var(--glass-energy))),transparent 76%),
    rgba(28,28,30,.78);
  box-shadow: inset 0 1px rgba(255,255,255,.085),0 10px 28px rgba(0,0,0,.14);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  text-align: left;
  transition: border-color .28s ease,box-shadow .28s ease;
}
.welcome-features::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,rgba(255,255,255,.035),transparent 28%);
  pointer-events: none;
}
.welcome-features.glass-engaged {
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px rgba(255,255,255,.1),0 11px 30px rgba(0,0,0,.16);
}
.welcome-features > div {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(84,84,88,.48);
}
.welcome-features > div:last-child { border-bottom: 0; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.32);
  color: #111;
  background: linear-gradient(145deg,#dcff69,#a9e92a);
  box-shadow: inset 0 1px rgba(255,255,255,.7),0 6px 16px rgba(183,239,48,.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon .icon-fill { fill: currentColor; stroke: none; }
.welcome-features p { margin: 0; display: grid; gap: 3px; }
.welcome-features strong { font-size: 15px; font-weight: 620; }
.welcome-features small { color: #8e8e93; font-size: 12px; }

.catalog .filters {
  position: static;
  display: flex;
  justify-content: flex-end;
  min-height: 48px;
  margin: 14px 0 24px;
  padding: 0;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.filter-menu {
  width: 210px;
  min-height: 44px;
  padding: 0 12px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 13px;
  color: #8e8e93;
  background: #1c1c1e;
  font-size: 13px;
}
.filter-menu select {
  max-width: 132px;
  border: 0;
  outline: 0;
  color: #f5f5f7;
  background: transparent;
  text-align: right;
  font-size: 14px;
  font-weight: 570;
}

@media (max-width:700px) {
  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero { min-height: auto; }
  .welcome-features {
    margin-top: 38px;
    padding-inline: 16px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }
  .welcome-features > div { min-height: 68px; }
  .catalog .filters { margin-inline: 0; justify-content: stretch; }
  .filter-menu { width: 100%; }
  .topbar nav {
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
}

.glass-engaged { will-change: box-shadow; }

/* 内容卡片以实体材质承载信息，避免多层实时模糊争抢合成资源。 */
.lab-console > .console-block,.console-options,.extra-reactant,.selected-element,.result-panel,.experiment-log {
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.card,.about-grid article,.welcome-features,.account-group,.account-stats {
  contain: paint;
}

@media (max-width: 700px) {
  .topbar {
    top: 0;
    width: 100%;
    height: 54px;
    margin: 0;
    padding-inline: 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar::after { display: none; }
  .topbar nav {
    position: fixed;
    transform: none;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    height: 66px;
    border-radius: 25px;
  }
  .topbar nav::before { border-radius: 24px; }
  .topbar .nav-link { border-radius: 19px; }
  .topbar nav .nav-link,
  .topbar nav .nav-link.lab-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.05;
    text-align: center;
  }
  .topbar nav .nav-link::before {
    display: grid;
    place-items: center;
    width: 22px;
    height: 20px;
    margin: 0 auto;
    line-height: 20px;
    text-align: center;
  }
  .topbar.nav-compact nav { left: 38px; right: 38px; height: 54px; border-radius: 22px; }
}

/* Local mock account sheet. */
.account-sheet {
  width: min(430px,calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  color: #f5f5f7;
  background: rgba(26,26,28,.82);
  box-shadow: inset 0 1px rgba(255,255,255,.13),0 36px 110px rgba(0,0,0,.7);
  backdrop-filter: blur(42px) saturate(180%);
  -webkit-backdrop-filter: blur(42px) saturate(180%);
}
.account-sheet::backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(10px); }
.account-close { top: 16px; right: 16px; }
.account-hero { padding: 42px 24px 22px; text-align: center; }
.account-large-avatar {
  display: grid; place-items: center;
  width: 82px; height: 82px;
  margin: 0 auto 17px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #102016;
  background: linear-gradient(145deg,#dfff69,#72f2c1);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.7),0 13px 34px rgba(114,242,193,.2);
  font-size: 32px; font-weight: 700;
}
.account-hero h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.account-hero p { margin: 7px 0 0; color: #98989d; font-size: 13px; }
.account-form { padding: 0 18px 22px; }
.account-group {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(44,44,46,.82);
}
.account-group label,.account-row {
  min-height: 52px; padding: 0 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  border-bottom: 1px solid rgba(84,84,88,.48);
  font-size: 14px;
}
.account-group > :last-child { border-bottom: 0; }
.account-group input {
  width: 58%; border: 0; outline: 0;
  color: #c9ff45; background: transparent;
  text-align: right; font-size: 16px;
}
.account-row strong { font-size: 14px; font-weight: 500; color: #c9ff45; }
.account-row .account-muted { color: #8e8e93; }
.account-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #72f2c1; box-shadow: 0 0 10px rgba(114,242,193,.65); }
.account-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 14px; border-radius: 16px; background: rgba(44,44,46,.82); overflow: hidden; }
.account-stats div { min-height: 72px; display: grid; place-content: center; text-align: center; border-right: 1px solid rgba(84,84,88,.48); }
.account-stats div:last-child { border-right: 0; }
.account-stats strong { font-size: 22px; letter-spacing: -.04em; }
.account-stats span { margin-top: 3px; color: #8e8e93; font-size: 11px; }
.account-save { width: 100%; min-height: 50px; border: 0; border-radius: 999px; color: #111; background: #c9ff45; font-size: 16px; font-weight: 650; cursor: pointer; }
.account-note { margin: 12px 8px 0; color: #77777d; font-size: 11px; line-height: 1.45; text-align: center; }

@media (max-width:700px) {
  .account-sheet { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 30px 30px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* Final simplification pass: consistent glyphs, quieter cards, native sheet. */
.card {
  border-color: transparent !important;
  background: #1c1c1e !important;
  box-shadow: none !important;
}
.card:hover {
  background: #242426 !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.24) !important;
}
.about-grid article,.experiment-log,.result-panel,.fact-grid,.source-box {
  border-color: rgba(255,255,255,.065) !important;
  box-shadow: none;
}
.lab-console > .console-block,.extra-reactant,.console-options {
  border-color: transparent !important;
  box-shadow: none !important;
}
.selected-element { border-color: rgba(114,242,193,.075) !important; }

.account-sheet {
  width: min(390px,calc(100vw - 32px));
  border-color: rgba(255,255,255,.11);
  background: rgba(28,28,30,.9);
}
.account-grabber {
  position: absolute; top: 8px; left: 50%; z-index: 3;
  width: 36px; height: 5px; border-radius: 99px;
  background: rgba(235,235,245,.28);
  transform: translateX(-50%);
}
.account-cancel,.account-done {
  position: absolute; top: 17px; z-index: 4;
  min-height: 32px; padding: 0 8px;
  border: 0; background: transparent;
  color: #c9ff45; font-size: 15px; font-weight: 520;
  cursor: pointer;
}
.account-cancel { left: 14px; color: #a1a1a6; }
.account-done { right: 14px; font-weight: 650; }
.account-hero { padding-top: 55px; }
.account-group { border: 0; background: #2c2c2e; }
.account-stats { background: #2c2c2e; }
.account-row strong,.account-group input { color: #f5f5f7; }
.account-row:first-child strong { color: #c9ff45; }
.account-save { display: none; }
.account-large-avatar {
  background: linear-gradient(145deg,#d8ff71,#83e8c1);
  box-shadow: inset 0 1px rgba(255,255,255,.62),0 10px 28px rgba(0,0,0,.2);
}

@media (max-width:700px) {
  .topbar nav .nav-link::before {
    content: "" !important;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 19px 19px;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 19px 19px;
  }
  .topbar nav .nav-link:nth-child(1)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h6v6H4V3Zm10 0h6v6h-6V3ZM4 13h6v8H4v-8Zm10 0h6v8h-6v-8Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h6v6H4V3Zm10 0h6v6h-6V3ZM4 13h6v8H4v-8Zm10 0h6v8h-6v-8Z'/%3E%3C/svg%3E");
  }
  .topbar nav .nav-link:nth-child(2)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8v2h-1v5.2l4.7 8.1A3.1 3.1 0 0 1 17 22H7a3.1 3.1 0 0 1-2.7-4.7L9 9.2V4H8V2Zm3 2v5.7l-5 8.6c-.4.8.1 1.7 1 1.7h10c.9 0 1.4-.9 1-1.7l-5-8.6V4h-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8v2h-1v5.2l4.7 8.1A3.1 3.1 0 0 1 17 22H7a3.1 3.1 0 0 1-2.7-4.7L9 9.2V4H8V2Zm3 2v5.7l-5 8.6c-.4.8.1 1.7 1 1.7h10c.9 0 1.4-.9 1-1.7l-5-8.6V4h-2Z'/%3E%3C/svg%3E");
  }
  .topbar nav .nav-link:nth-child(3)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10v2h-2v5.3l4.5 7.8A3.3 3.3 0 0 1 16.7 22H7.3a3.3 3.3 0 0 1-2.8-4.9L9 9.3V4H7V2Zm4 2v5.8l-4.8 8.3c-.5.9.1 1.9 1.1 1.9h9.4c1 0 1.6-1 1.1-1.9L13 9.8V4h-2Z'/%3E%3Ccircle cx='10' cy='16' r='1.4'/%3E%3Ccircle cx='14.5' cy='17.5' r='1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10v2h-2v5.3l4.5 7.8A3.3 3.3 0 0 1 16.7 22H7.3a3.3 3.3 0 0 1-2.8-4.9L9 9.3V4H7V2Zm4 2v5.8l-4.8 8.3c-.5.9.1 1.9 1.1 1.9h9.4c1 0 1.6-1 1.1-1.9L13 9.8V4h-2Z'/%3E%3Ccircle cx='10' cy='16' r='1.4'/%3E%3Ccircle cx='14.5' cy='17.5' r='1'/%3E%3C/svg%3E");
  }
  .topbar nav .nav-link:nth-child(4)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 22a7.5 7.5 0 0 1 15 0h-2a5.5 5.5 0 0 0-11 0h-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 22a7.5 7.5 0 0 1 15 0h-2a5.5 5.5 0 0 0-11 0h-2Z'/%3E%3C/svg%3E");
  }
  .account-sheet { border-radius: 30px 30px 0 0; }
}

/* Experiment workspace: quiet grouped controls instead of dashboard cards. */
.experiment-view { max-width: 1440px; margin-inline: auto; }
.brand-mark img { width: 28px; height: 28px; display: block; border-radius: 8px; object-fit: cover; }
.experiment-heading { max-width: 1180px; margin: 0 auto 28px; align-items: flex-end; }
.experiment-heading .eyebrow { display: none; }
.experiment-heading h2 { margin: 0 0 7px; font-size: 42px; line-height: 1.05; }
.run-counter {
  min-width: 82px; padding: 10px 15px;
  border: 0; border-radius: 18px;
  background: rgba(44,44,46,.72);
  text-align: center;
}
.run-counter strong { display: inline; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.run-counter span { display: block; margin-top: 2px; color: #8e8e93; font-size: 10px; letter-spacing: 0; }
.lab-layout {
  max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(360px,.82fr) minmax(470px,1.18fr); gap: 18px; align-items: start;
  overflow: visible; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; backdrop-filter: none !important;
}
.lab-console {
  padding: 0 0 2px; border: 0 !important; background: transparent !important;
}
.lab-console > .console-block,.lab-console .extra-reactant,.lab-console .console-options {
  margin: 0 0 12px; padding: 0 16px;
  overflow: hidden; border: 0 !important; border-radius: 18px !important;
  background: #1c1c1e !important; box-shadow: none !important;
}
.lab-console > .console-block::after,.lab-console .extra-reactant::after,.lab-console .console-options::after { display: none !important; }
.step-no { display: block; padding: 14px 0 2px; color: #8e8e93; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.console-block > label { margin: 0; padding: 2px 0 8px; color: #f5f5f7 !important; font-size: 15px !important; font-weight: 600 !important; }
.lab-console select,.lab-console input[type="number"] {
  border: 0 !important; outline: 0; border-radius: 11px !important;
  background: rgba(118,118,128,.16) !important; box-shadow: none !important;
}
.console-block > select { height: 44px; }
.selected-element {
  min-height: 52px; margin: 9px 0 0; padding: 9px 0;
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
}
.selected-element strong { width: 40px; color: #c9ff45 !important; font-size: 27px; }
.selected-element span { color: #8e8e93 !important; }
.reactant-settings { display: block; margin: 0; border-top: 1px solid rgba(84,84,88,.48); }
.reactant-settings .amount-control,.reactant-settings .phase-control {
  min-height: 54px; margin: 0; padding: 6px 0;
  display: grid !important; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(84,84,88,.48); color: #f5f5f7 !important;
  font-size: 14px !important; font-weight: 450 !important;
}
.reactant-settings > :last-child { border-bottom: 0; }
.reactant-settings input,.reactant-settings select { height: 36px !important; text-align: right; }
.console-plus { height: 28px !important; margin: 2px 0 12px !important; color: #8e8e93 !important; font-size: 20px; opacity: .72; }
.add-reactant {
  min-height: 48px; margin: 14px 0 12px; padding: 0 16px;
  align-items: center; line-height: 1;
  border: 0 !important; border-radius: 18px; background: #1c1c1e !important;
  color: #c9ff45; font-size: 14px; font-weight: 500;
}
.add-reactant span { display: inline-flex; align-items: center; align-self: center; height: 20px; color: #8e8e93 !important; font-size: 12px; line-height: 20px; }
.console-options { display: block; }
.console-options label {
  min-height: 58px; margin: 0; padding: 8px 0;
  display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(84,84,88,.48) !important;
  color: #f5f5f7 !important; font-size: 14px !important; font-weight: 450 !important;
}
.console-options > :last-child { border-bottom: 0 !important; }
.console-options select { height: 38px; margin: 0; text-align: right; }
.console-options output { justify-self: end; color: #c9ff45 !important; font-size: 13px; }
.console-options label:last-child { grid-template-columns: 1fr auto; padding-bottom: 13px; }
.console-options input[type="range"] { grid-column: 1 / -1; margin-top: 1px; }
.run-button { min-height: 52px; margin-top: 14px; justify-content: center; border: 0 !important; border-radius: 15px; font-size: 16px; }
.run-button span { position: absolute; right: 19px; }
.lab-disclaimer { margin: 12px 12px 0; color: #6f6f74 !important; text-align: center; }
.lab-stage {
  min-height: 640px; padding: 24px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 26px !important;
  background: radial-gradient(circle at 50% 31%,rgba(114,242,193,.055),transparent 34%),#111113;
}
.stage-status { color: #8e8e93; font-family: inherit; font-size: 11px; letter-spacing: 0; }
.stage-actions { display: flex; align-items: center; gap: 8px; }
.stage-actions button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(118,118,128,.18); color: #d1d1d6; font: 550 11px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; cursor: pointer; }
.stage-actions button:last-child { background: rgba(201,255,69,.13); color: #d7ff74; }
.stage-actions button:disabled { opacity: .38; cursor: default; }
.vessel { margin-top: 52px; filter: drop-shadow(0 16px 28px rgba(0,0,0,.32)); }
#particleCanvas { cursor: grab; touch-action: none; }
#particleCanvas:active { cursor: grabbing; }
.vessel.danger { box-shadow: 0 0 30px rgba(255,107,53,.18); }
.result-panel {
  padding: 19px; border: 0 !important; border-radius: 18px;
  background: #1c1c1e !important; box-shadow: none !important; backdrop-filter: none !important;
}
.result-panel h3 { font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.result-panel .risk { margin-bottom: 8px; }
.result-panel .effect-row { margin: 8px 0 12px; }
.risk,.effect-badge,.model-name {
  border: 0 !important; box-shadow: none !important; backdrop-filter: none !important;
  font-family: inherit !important; font-size: 10px; letter-spacing: 0;
}
.effect-badge { background: rgba(118,118,128,.2); color: #d1d1d6; }
.effect-radiation,.effect-light,.effect-heat,.effect-electric,.effect-unstable { background: rgba(201,255,69,.12); color: #d7ff74; }
.result-panel .state-summary { padding: 12px 13px !important; border-radius: 12px; background: #2c2c2e; font-family: inherit; }
.viewer-active { overflow: hidden; }
.lab-stage.viewer-open {
  position: fixed; inset: 0; z-index: 3000;
  width: 100vw; height: 100dvh; min-height: 0; padding: max(18px,env(safe-area-inset-top)) 22px max(18px,env(safe-area-inset-bottom));
  display: grid; grid-template-rows: auto minmax(0,1fr); gap: 12px;
  border: 0; border-radius: 0 !important; background: radial-gradient(circle at 50% 45%,#18372e 0,#0b1110 36%,#050606 78%);
}
.lab-stage.viewer-open .stage-status { color: #d1d1d6; }
.lab-stage.viewer-open .vessel {
  width: min(100%,1100px); height: 100%; min-height: 0; margin: 0 auto;
  border: 0; border-radius: 30px; background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); filter: none;
}
.lab-stage.viewer-open .vessel::before,.lab-stage.viewer-open .vessel::after,.lab-stage.viewer-open .liquid,.lab-stage.viewer-open .vessel-label,.lab-stage.viewer-open .result-panel { display: none; }
.lab-stage.viewer-open #particleCanvas { inset: 0; width: 100%; height: 100%; }
.lab-stage.viewer-open #expand3D { background: #c9ff45; color: #111; }
.guides-layout,.experiment-log { max-width: 1180px; }
.report-actions {
  max-width: 1180px; min-height: 72px; margin: 14px auto 0; padding: 12px 14px 12px 18px;
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px;
  border-radius: 20px; background: #1c1c1e;
}
.report-actions div { display: grid; gap: 2px; }
.report-actions strong { color: #f5f5f7; font-size: 15px; font-weight: 600; }
.report-actions span { color: #8e8e93; font-size: 11px; }
.report-actions button,.report-download-primary {
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 13px;
  background: rgba(118,118,128,.2); color: #f5f5f7; font: 550 13px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}
.report-actions button:last-child,.report-download-primary { background: #c9ff45; color: #111; font-weight: 650; }
.report-actions button:disabled { opacity: .35; cursor: default; }
.report-sheet {
  width: min(760px,calc(100vw - 32px)); max-height: min(88vh,920px); padding: 0 28px 28px;
  border-radius: 30px; background: #111113; color: #f5f5f7;
}
.report-sheet-bar { position: sticky; top: 0; z-index: 2; height: 54px; display: flex; justify-content: flex-end; align-items: center; background: rgba(17,17,19,.88); backdrop-filter: blur(20px); }
.report-sheet-bar button { border: 0; background: transparent; color: #c9ff45; font: 600 15px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.report-sheet-heading { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; }
.report-sheet-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg,#e5ff9c,#9be823); color: #152006; box-shadow: inset 0 1px rgba(255,255,255,.75); font-size: 25px; }
.report-sheet-heading small { color: #8e8e93; font-size: 9px; letter-spacing: .12em; }
.report-sheet-heading h2 { margin: 2px 0 0; font-size: 27px; letter-spacing: -.035em; }
.report-preview { overflow: hidden; border-radius: 20px; background: #1c1c1e; }
.report-preview .report-document-head { padding: 24px; background: linear-gradient(145deg,#26372c,#172019); }
.report-document-head span,.report-document-head p { color: #a9aaa9; font-size: 11px; }
.report-document-head strong { display: block; margin: 14px 0 3px; color: #fff; font-size: 25px; letter-spacing: -.03em; }
.report-preview section,.report-preview footer { margin: 0; padding: 20px 24px; border-top: 1px solid rgba(84,84,88,.45); }
.report-preview h3 { margin: 0 0 14px; font-size: 17px; }
.report-preview dl { display: grid; grid-template-columns: 92px 1fr; margin: 0; }
.report-preview dt,.report-preview dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(84,84,88,.38); }
.report-preview dt { color: #8e8e93; }
.report-preview dd { color: #e5e5ea; }
.report-preview .report-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 0; }
.report-preview .report-summary div,.report-preview .report-equation { padding: 13px; border-radius: 12px; background: #2c2c2e; }
.report-preview .report-summary small { display: block; color: #8e8e93; font-size: 10px; }
.report-preview .report-summary b { display: block; margin-top: 4px; font-size: 12px; }
.report-preview .report-equation { color: #d7ff74; font: 600 13px ui-monospace,"SFMono-Regular",monospace; }
.report-preview p { color: #a9a9ae; font-size: 12px; line-height: 1.65; }
.report-download-primary { width: 100%; margin-top: 16px; min-height: 50px; font-size: 15px; }

@media (max-width:900px) {
  .lab-layout { grid-template-columns: 1fr; }
  .lab-stage { min-height: 590px; }
}
@media (max-width:700px) {
  .experiment-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-bottom: 20px; }
  .experiment-heading h2 { font-size: 36px; }
  .run-counter { width: auto; min-width: 70px; margin: 0; padding: 8px 12px; border-radius: 16px; }
  .lab-layout { gap: 12px; }
  .lab-stage { min-height: 560px; padding: 18px; border-radius: 22px !important; }
  .reactant-settings .amount-control,.reactant-settings .phase-control { grid-template-columns: minmax(0,1fr) 132px; }
  .console-options label { grid-template-columns: minmax(0,1fr) 155px; }
  .report-actions { grid-template-columns: 1fr 1fr; padding: 14px; }
  .report-actions div { grid-column: 1 / -1; }
  .report-actions button { padding-inline: 9px; }
  .report-sheet { width: 100vw; max-width: none; max-height: 92vh; margin: auto 0 0; padding: 0 16px max(18px,env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; }
  .report-preview .report-summary { grid-template-columns: 1fr; }
}
