:root {
  --bg1: #081316;
  --bg2: #10272f;
  --panel: rgba(13, 29, 35, 0.88);
  --accent: #ffb703;
  --accent2: #7ee8fa;
  --text: #edf6f9;
  --muted: #a5bcc2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(126, 232, 250, 0.12), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 183, 3, 0.18), transparent 30%),
    linear-gradient(145deg, var(--bg1), var(--bg2));
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.hero, .panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero { padding: 1.35rem; }
.panel { padding: 1.35rem; display: grid; place-items: center; }

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.lede {
  margin: 0.9rem 0 1rem;
  max-width: 55ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.artifact-card {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(126, 232, 250, 0.24);
  background: linear-gradient(135deg, rgba(126, 232, 250, 0.12), rgba(255, 183, 3, 0.08));
}

.artifact-label {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

.artifact-link {
  display: inline-block;
  color: #fff8e5;
  font-weight: 800;
  text-decoration: none;
}

.artifact-copy {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #fb8500);
  color: #201000;
  text-decoration: none;
  font-weight: 800;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.device {
  width: min(360px, 80vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 10px solid rgba(126, 232, 250, 0.42);
  box-shadow: 0 0 24px rgba(126, 232, 250, 0.2), inset 0 0 18px rgba(255, 183, 3, 0.18);
}

.core {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff8e5;
  background: radial-gradient(circle at 35% 35%, #ffcf71, #bb6b1a 65%, #6d3507);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }
}:root {
  --bg1: #0a1618;
  --bg2: #11313a;
  --panel: #10272f;
  --accent: #ffb703;
  --accent2: #7ee8fa;
  --text: #edf6f9;
  --muted: #9fb6bc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #1f4f5a, transparent 35%),
              radial-gradient(circle at 80% 0%, #5d3c1d, transparent 32%),
              linear-gradient(140deg, var(--bg1), var(--bg2));
  min-height: 100vh;
}

.app-shell {
  max-width: 1100px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.panel {
  background: color-mix(in oklab, var(--panel), black 18%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

h1 { margin-top: 0; letter-spacing: 0.03em; }
.sub { color: var(--muted); }

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}

input, select {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8, 20, 25, 0.72);
  color: var(--text);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

.controls {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), #fb8500);
  color: #1d1005;
  font-weight: 700;
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.32);
  color: var(--text);
}

.status-card {
  background: rgba(3, 10, 14, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem;
}

.panel-right { display: grid; align-content: center; }

.device-mock {
  --mist-rgb: 126, 232, 250;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 10px solid rgba(126, 232, 250, 0.4);
  box-shadow: 0 0 25px rgba(126,232,250,0.2), inset 0 0 20px rgba(255,183,3,0.18);
  transition: 0.4s ease;
}

.core {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff8e5;
  background: radial-gradient(circle at 35% 35%, #ffcf71, #bb6b1a 65%, #6d3507);
  box-shadow: 0 8px 28px rgba(0,0,0,0.42);
}

.mist {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(var(--mist-rgb), 0.32) 0%, rgba(var(--mist-rgb), 0.08) 55%, transparent 72%);
}

.mist.active {
  animation: mistPulse 1.25s ease-out infinite;
}

@keyframes mistPulse {
  0% { opacity: 0.55; box-shadow: 0 0 10px rgba(255,255,255,0.2), 0 0 0 0 rgba(var(--mist-rgb), 0.4); }
  100% { opacity: 0; box-shadow: 0 0 24px rgba(255,255,255,0.08), 0 0 0 36px rgba(var(--mist-rgb), 0); }
}

/* flavor card — what the current vapor profile actually is */
.flavor-card {
  --note-rgb: 126, 232, 250;
  margin: 0.75rem 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--note-rgb), 0.35);
  background: rgba(3, 10, 14, 0.5);
  transition: border-color 0.4s ease;
}
.flavor-title {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}
.flavor-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.swatch {
  flex: 0 0 auto;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: rgb(var(--note-rgb));
  box-shadow: 0 0 8px rgba(var(--note-rgb), 0.6);
}

.note { text-align: center; color: var(--muted); }
footer { text-align: center; padding: 1rem; color: #d7e4e7; }

/* share card — pass the smoke on */
.share-card {
  margin-top: 0.85rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(126, 232, 250, 0.24);
  background: linear-gradient(135deg, rgba(126, 232, 250, 0.12), rgba(255, 183, 3, 0.08));
}
.share-title {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}
.share-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.share-row #btnShare { flex: 0 0 auto; white-space: nowrap; }
.share-row #shareLink {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
  cursor: pointer;
}
.share-hint {
  margin: 0.55rem 0 0;
  min-height: 1.1em;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .share-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .mist.active { animation: none; opacity: 0.55; }
}
