/* ============================================================
   SCROLLWORTHY STUDIO — design system
   deep purple canvas · hot pink · buttery yellow · teal
   ============================================================ */

:root {
  --ink-900: #07030F;
  --ink-850: #0B0518;
  --ink-800: #100826;
  --ink-750: #150C30;
  --ink-700: #1B1039;
  --ink-600: #241552;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --line-strong: rgba(255, 255, 255, 0.16);

  --pink: #FF2E93;
  --pink-hot: #FF5CAE;
  --pink-dim: rgba(255, 46, 147, 0.14);
  --yellow: #FFE05C;
  --yellow-dim: rgba(255, 224, 92, 0.13);
  --teal: #2BE8C8;
  --teal-dim: rgba(43, 232, 200, 0.13);
  --violet: #9B5CFF;
  --violet-dim: rgba(155, 92, 255, 0.15);

  --text: #F5F1FF;
  --text-2: #BDB3D6;
  --text-3: #8B80A8;
  --text-4: #6B6188;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -32px rgba(0, 0, 0, 0.8);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01';
}

/* ambient background -------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0;
}
.glow-a {
  width: 620px; height: 620px; top: -280px; left: 18%;
  background: radial-gradient(circle, rgba(255, 46, 147, 0.30), transparent 68%);
}
.glow-b {
  width: 700px; height: 700px; bottom: -380px; right: -140px;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.26), transparent 70%);
}

/* ============================ SHELL ============================ */
.app-shell {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 274px minmax(0, 1fr);
  min-height: 100vh;
}

/* ============================ SIDEBAR ============================ */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, rgba(19, 10, 40, 0.92), rgba(9, 4, 20, 0.96));
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  z-index: 40;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: inherit;
  padding: 4px 8px 22px;
}
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 46, 147, 0.22), rgba(155, 92, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px -6px rgba(255, 46, 147, 0.5);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700; letter-spacing: -0.025em;
}
.brand-text em {
  font-style: normal; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-4); font-weight: 600; margin-top: 2px;
}

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-4); font-weight: 700; padding: 0 10px 9px;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; color: var(--text-2); cursor: pointer;
  font-family: inherit; text-align: left; transition: all 0.16s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.nav-icon { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-copy { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nav-copy b { font-size: 13.4px; font-weight: 600; letter-spacing: -0.01em; }
.nav-copy i { font-style: normal; font-size: 10.6px; color: var(--text-4); margin-top: 2px; font-weight: 500; }
.nav-item.is-active {
  background: linear-gradient(100deg, rgba(255, 46, 147, 0.16), rgba(155, 92, 255, 0.09));
  border-color: rgba(255, 46, 147, 0.30);
  color: #fff;
}
.nav-item.is-active .nav-icon { color: var(--pink-hot); }
.nav-item.is-active .nav-copy i { color: rgba(255, 255, 255, 0.52); }
.nav-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--pink);
  margin-left: auto; box-shadow: 0 0 10px 1px rgba(255, 46, 147, 0.9);
  opacity: 0; transition: opacity 0.2s;
}
.nav-item.is-active .nav-dot { opacity: 1; }
.nav-lock { width: 14px; height: 14px; margin-left: auto; color: var(--yellow); opacity: 0.85; }
.nav-lock svg { width: 14px; height: 14px; }
.nav-lock.is-hidden { display: none; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }

.plan-card {
  position: relative; overflow: hidden;
  padding: 14px; border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255, 46, 147, 0.13), rgba(155, 92, 255, 0.07));
  border: 1px solid rgba(255, 46, 147, 0.22);
}
.plan-card::after {
  content: ''; position: absolute; top: -30px; right: -30px; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255, 224, 92, 0.22), transparent 70%);
}
.plan-eyebrow {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-hot); font-weight: 700;
}
.plan-title { font-size: 12.8px; font-weight: 600; margin: 5px 0 9px; line-height: 1.35; }
.meter {
  height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.10); overflow: hidden; margin-bottom: 11px;
}
.meter span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-plan {
  width: 100%; padding: 8px 10px; font-size: 11.8px; font-weight: 700;
  border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(100deg, var(--pink), #C93BFF);
  color: #fff; font-family: inherit; letter-spacing: 0.01em;
  box-shadow: 0 8px 22px -10px rgba(255, 46, 147, 0.9);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-plan:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(255, 46, 147, 1); }

.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 8px 8px 2px;
  border-top: 1px solid var(--line-soft); padding-top: 13px;
}
.avatar {
  width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: #10061F;
  background: linear-gradient(140deg, var(--yellow), var(--teal));
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-meta b { font-size: 12.4px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta i { font-style: normal; font-size: 10.4px; color: var(--text-4); }

/* ============================ MAIN ============================ */
.main { min-width: 0; padding: 0 34px 80px; max-width: 1180px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0 14px;
  background: linear-gradient(180deg, rgba(7, 3, 15, 0.94) 55%, rgba(7, 3, 15, 0));
  backdrop-filter: blur(10px);
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-4); font-weight: 500;
}
.crumbs b { color: var(--text-2); font-weight: 600; }
.crumbs .sep { opacity: 0.4; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  font-size: 10.4px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text-2);
}
.pill-live { color: var(--teal); border-color: rgba(43, 232, 200, 0.28); background: rgba(43, 232, 200, 0.08); }
/* "sample data" — deliberately NOT pulsing: nothing here is real-time or connected. */
.pill-sample { color: var(--text-3); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.045); }
.sample-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-4); flex: 0 0 5px; }
.live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(43, 232, 200, 0.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 232, 200, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(43, 232, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 232, 200, 0); }
}
.pill-plan { color: var(--yellow); border-color: rgba(255, 224, 92, 0.3); background: var(--yellow-dim); font-weight: 700; }
.pill-plan.is-pro { color: #10061F; background: linear-gradient(100deg, var(--yellow), var(--teal)); border-color: transparent; }

.icon-btn {
  display: none; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text); cursor: pointer; place-items: center;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ============================ PAGE HEAD ============================ */
.view { display: none; animation: fade 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.view.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.page-head { padding: 26px 0 26px; max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.19em; text-transform: uppercase;
  font-weight: 700; color: var(--pink-hot); margin-bottom: 13px;
}
.eyebrow-sm { font-size: 9px; margin-bottom: 7px; color: var(--text-4); }
.eyebrow-center { justify-content: center; }
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 9px 1px rgba(255, 46, 147, 0.8);
}
.eyebrow-dot.tone-yellow { background: var(--yellow); box-shadow: 0 0 9px 1px rgba(255, 224, 92, 0.7); }
.eyebrow-dot.tone-teal { background: var(--teal); box-shadow: 0 0 9px 1px rgba(43, 232, 200, 0.7); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 700;
  margin-bottom: 13px;
}
.grad {
  background: linear-gradient(100deg, var(--pink) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-yellow {
  background: linear-gradient(100deg, var(--yellow) 5%, var(--pink) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-teal {
  background: linear-gradient(100deg, var(--teal) 5%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 14.4px; color: var(--text-2); line-height: 1.66; max-width: 660px; }
.muted { color: var(--text-3); font-size: 12.8px; line-height: 1.6; }

/* ============================ CARDS ============================ */
.card {
  background: linear-gradient(170deg, rgba(28, 17, 58, 0.72), rgba(13, 7, 28, 0.82));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.input-card { padding: 22px 22px 20px; }
.card-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 14px;
}

/* ============================ FIELDS ============================ */
.field { display: block; margin-bottom: 15px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid-2 { align-items: start; }
.field-label {
  display: block; font-size: 11.4px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-2); margin-bottom: 7px;
}
.field-label .opt { color: var(--text-4); font-weight: 500; }

.text-input, .text-area, .select {
  width: 100%; font-family: inherit; font-size: 13.8px; color: var(--text);
  background: rgba(6, 3, 14, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.text-input::placeholder, .text-area::placeholder { color: #5A5175; }
.text-input:hover, .text-area:hover, .select:hover { border-color: var(--line-strong); }
.text-input:focus, .text-area:focus, .select:focus {
  outline: none; border-color: rgba(255, 46, 147, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 46, 147, 0.13);
  background: rgba(6, 3, 14, 0.9);
}
.text-area { resize: vertical; min-height: 74px; line-height: 1.55; }
.select { appearance: none; cursor: pointer; padding-right: 34px; }
.select option { background: #150C30; color: var(--text); }
.select-wrap { position: relative; }
.select-caret {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-3); pointer-events: none;
}

.input-with-icon { position: relative; }
.input-with-icon svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-4);
}
.input-with-icon .text-input { padding-left: 34px; font-family: var(--font-mono); font-size: 12.4px; }

/* ============================ FOCUS SELECTOR ============================ */
.selector-block {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.selector-title {
  font-family: var(--font-display); font-size: 13.4px; font-weight: 600;
  letter-spacing: -0.015em; margin-bottom: 12px;
}
.focus-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.focus-card {
  position: relative; text-align: left; cursor: pointer;
  padding: 14px 14px 15px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  font-family: inherit; color: var(--text-2);
  transition: all 0.17s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.focus-card:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); transform: translateY(-2px); }
.focus-card b { font-size: 13.2px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.focus-card i { font-style: normal; font-size: 11.2px; line-height: 1.5; color: var(--text-3); }
.focus-badge {
  align-self: flex-start; font-size: 8.6px; font-weight: 800; letter-spacing: 0.14em;
  padding: 2.5px 7px; border-radius: 5px; margin-bottom: 1px;
}
.tone-pink { background: var(--pink-dim); color: var(--pink-hot); }
.tone-yellow { background: var(--yellow-dim); color: var(--yellow); }
.tone-teal { background: var(--teal-dim); color: var(--teal); }
.tone-purple { background: var(--violet-dim); color: #B98CFF; }

.focus-tick {
  position: absolute; top: 12px; right: 12px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.18);
  transition: all 0.17s;
}
.focus-tick::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: transparent; transition: background 0.17s;
}
.focus-card.is-selected {
  background: linear-gradient(150deg, rgba(255, 46, 147, 0.15), rgba(155, 92, 255, 0.07));
  border-color: rgba(255, 46, 147, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 46, 147, 0.18), 0 14px 34px -22px rgba(255, 46, 147, 0.9);
}
.focus-card.is-selected .focus-tick { border-color: var(--pink); }
.focus-card.is-selected .focus-tick::after { background: var(--pink); }

/* affiliate panel */
.affiliate-panel {
  margin-top: 13px; overflow: hidden;
  animation: slideDown 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.affiliate-inner {
  padding: 14px; border-radius: var(--r-md);
  background: rgba(43, 232, 200, 0.045);
  border: 1px dashed rgba(43, 232, 200, 0.28);
}
.affiliate-head { margin-bottom: 11px; }
.affiliate-head b { display: block; font-size: 12.4px; font-weight: 600; margin-bottom: 3px; }
.affiliate-head span { font-size: 11.3px; color: var(--text-3); line-height: 1.5; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6.5px 12px; border-radius: 99px; cursor: pointer;
  font-family: inherit; font-size: 11.6px; font-weight: 600;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--text-2); transition: all 0.15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-selected {
  background: rgba(43, 232, 200, 0.14); border-color: rgba(43, 232, 200, 0.5); color: var(--teal);
}
.field-inline { margin-top: 12px; margin-bottom: 0; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; cursor: pointer;
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: all 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 13px; padding: 10px 16px; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn-primary {
  background: linear-gradient(100deg, var(--pink) 0%, #B43CFF 100%);
  color: #fff; border: none;
  box-shadow: 0 14px 34px -14px rgba(255, 46, 147, 0.85), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 18px 42px -14px rgba(255, 46, 147, 1), 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.btn-primary:active { transform: translateY(0); }
.btn-lg { font-size: 14px; padding: 13px 22px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.045); border-color: var(--line); color: var(--text-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--line-strong); }
.btn-danger {
  background: rgba(255, 46, 147, 0.08); border-color: rgba(255, 46, 147, 0.3); color: #FF7BBE;
}
.btn-danger:hover { background: rgba(255, 46, 147, 0.16); }
.btn-yellow {
  background: var(--yellow); color: #150C2E; border: none;
  box-shadow: 0 12px 28px -14px rgba(255, 224, 92, 0.9);
}
.btn-yellow:hover { transform: translateY(-1.5px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.link-btn {
  background: none; border: none; color: var(--text-4); cursor: pointer;
  font-family: inherit; font-size: 11px; text-decoration: underline; padding: 0;
}
.link-btn:hover { color: var(--pink-hot); }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }

.action-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.action-note { font-size: 11.4px; color: var(--text-4); line-height: 1.5; flex: 1; min-width: 180px; }

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading svg { animation: spin 0.85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ RESULTS ============================ */
#results, #beatsheet { margin-top: 24px; }

.report {
  display: flex; flex-direction: column; gap: 18px;
  animation: fade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.report-head {
  position: relative; overflow: hidden;
  padding: 24px; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 46, 147, 0.17), transparent 55%),
    radial-gradient(100% 130% at 100% 10%, rgba(155, 92, 255, 0.16), transparent 60%),
    linear-gradient(170deg, rgba(28, 17, 58, 0.9), rgba(12, 6, 26, 0.94));
  border: 1px solid rgba(255, 46, 147, 0.22);
  box-shadow: var(--shadow-card);
}
.report-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 147, 0.7), rgba(255, 224, 92, 0.5), transparent);
}
.report-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.tag {
  font-size: 9.6px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid var(--line);
}
.tag-pink { background: var(--pink-dim); color: var(--pink-hot); border-color: rgba(255, 46, 147, 0.28); }
.tag-teal { background: var(--teal-dim); color: var(--teal); border-color: rgba(43, 232, 200, 0.28); }
.tag-yellow { background: var(--yellow-dim); color: var(--yellow); border-color: rgba(255, 224, 92, 0.3); }
.tag-mono { font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: none; }

.report-head h2 {
  font-family: var(--font-display); font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.22; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 10px;
}
.report-head p { font-size: 13px; color: var(--text-2); line-height: 1.62; max-width: 740px; }
.report-head .focus-note {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 11.6px; color: var(--text-3); font-style: italic;
}

.section-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
}
.section-head h3 {
  font-family: var(--font-display); font-size: 14.6px; font-weight: 600; letter-spacing: -0.02em;
}
.section-head span { font-size: 11px; color: var(--text-4); }
.section-head .spacer { flex: 1; }

/* patterns */
.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pattern {
  padding: 13px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line-soft);
  transition: all 0.16s;
}
.pattern:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.pattern-label {
  font-size: 9.4px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 7px;
}
.pattern-value {
  font-family: var(--font-display); font-size: 14.6px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 6px;
}
.pattern-value.tone-pink-t { color: var(--pink-hot); }
.pattern-value.tone-yellow-t { color: var(--yellow); }
.pattern-value.tone-teal-t { color: var(--teal); }
.pattern-value.tone-purple-t { color: #B98CFF; }
.pattern-note { font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* angles */
.angle-list { display: flex; flex-direction: column; gap: 10px; }
.angle {
  position: relative; overflow: hidden;
  padding: 16px 17px; border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(30, 18, 62, 0.6), rgba(12, 6, 26, 0.75));
  border: 1px solid var(--line-soft);
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.angle:hover { border-color: rgba(255, 46, 147, 0.3); transform: translateX(2px); }
.angle.is-primary {
  border-color: rgba(255, 224, 92, 0.4);
  background: linear-gradient(160deg, rgba(255, 224, 92, 0.07), rgba(12, 6, 26, 0.8));
}
.angle.is-primary::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px;
  background: linear-gradient(180deg, var(--yellow), var(--pink));
}
.angle-top { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 9px; }
.angle-rank {
  font-family: var(--font-mono); font-size: 10.4px; font-weight: 600;
  color: var(--text-4); padding-top: 3px; flex: 0 0 22px;
}
.angle.is-primary .angle-rank { color: var(--yellow); }
.angle-name {
  font-family: var(--font-display); font-size: 14.6px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.3; flex: 1;
}
.angle-score {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 7px; border-radius: 6px; flex: 0 0 auto;
  background: rgba(43, 232, 200, 0.12); color: var(--teal); border: 1px solid rgba(43, 232, 200, 0.22);
}
.angle-thesis { font-size: 12.8px; color: var(--text-2); line-height: 1.6; margin-bottom: 11px; padding-left: 33px; }
.angle-hook {
  margin-left: 33px; margin-bottom: 11px;
  padding: 11px 13px; border-radius: 9px;
  background: rgba(0, 0, 0, 0.36);
  border-left: 2px solid var(--pink);
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  line-height: 1.5; color: #fff; letter-spacing: -0.01em;
}
.angle-hook span {
  display: block; font-family: var(--font-body); font-size: 9.2px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--pink-hot); margin-bottom: 5px;
}
.angle-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; padding-left: 33px; }
.angle-detail > div { min-width: 0; }
.angle-detail dt {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 3px;
}
.angle-detail dd { font-size: 11.4px; color: var(--text-2); line-height: 1.5; }
.angle-actions { margin-top: 13px; padding-left: 33px; display: flex; gap: 8px; flex-wrap: wrap; }
.angle-actions .btn { font-size: 11.8px; padding: 8px 13px; }

/* hooks table */
.hook-table {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-soft);
}
.hook-row {
  display: grid; grid-template-columns: 130px 1fr 92px;
  gap: 12px; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.4px;
  transition: background 0.14s;
}
.hook-row:last-child { border-bottom: none; }
.hook-row:hover { background: rgba(255, 255, 255, 0.028); }
.hook-row.is-head {
  background: rgba(255, 255, 255, 0.035);
  font-size: 9.4px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4);
}
.hook-kind { font-weight: 600; color: var(--yellow); font-size: 11.6px; }
.hook-line { color: var(--text-2); line-height: 1.5; font-family: var(--font-display); font-size: 12.6px; }
.hook-secs { font-family: var(--font-mono); font-size: 10.6px; color: var(--text-4); text-align: right; }

/* two-col split */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }

/* guardrail list */
.rule-list { display: flex; flex-direction: column; gap: 9px; }
.rule {
  display: flex; gap: 9px; font-size: 12.2px; line-height: 1.55; color: var(--text-2);
}
.rule::before {
  content: ''; flex: 0 0 4px; height: 4px; border-radius: 50%; margin-top: 8px;
  background: var(--pink); box-shadow: 0 0 8px rgba(255, 46, 147, 0.8);
}
.rule-teal::before { background: var(--teal); box-shadow: 0 0 8px rgba(43, 232, 200, 0.8); }

/* ============================ TRACKER LOG ============================ */
.tracker-card { padding: 0; overflow: hidden; }
.tracker-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.022);
}
.tracker-head h3 {
  font-family: var(--font-display); font-size: 13.4px; font-weight: 600; letter-spacing: -0.015em;
}
.tracker-head .spacer { flex: 1; }
/* Static dot: this log is illustrative, so it should not pulse like a live feed. */
.stream-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-4);
}
.log {
  max-height: 340px; overflow-y: auto; padding: 6px 0;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.log::-webkit-scrollbar { width: 6px; }
.log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 9px; }
.log-row {
  display: grid; grid-template-columns: 62px 1fr 62px;
  gap: 11px; align-items: start;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  animation: rowIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-7px); background: rgba(43, 232, 200, 0.07); }
  to { opacity: 1; transform: none; background: transparent; }
}
.log-row:last-child { border-bottom: none; }
.log-t {
  font-family: var(--font-mono); font-size: 10.2px; color: var(--text-4); padding-top: 2px;
}
.log-main { min-width: 0; }
.log-event {
  font-size: 12.2px; font-weight: 600; color: var(--text); margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.log-event .badge {
  font-size: 8.4px; font-weight: 800; letter-spacing: 0.1em; padding: 1.5px 5px; border-radius: 4px;
  text-transform: uppercase;
}
.badge-live { background: rgba(43, 232, 200, 0.14); color: var(--teal); }
.badge-won { background: rgba(255, 224, 92, 0.16); color: var(--yellow); }
.badge-watch { background: rgba(255, 46, 147, 0.14); color: var(--pink-hot); }
.badge-flat { background: rgba(255, 255, 255, 0.07); color: var(--text-4); }
.log-detail { font-size: 11.2px; color: var(--text-3); line-height: 1.45; }
.log-ch {
  display: block; font-size: 9.4px; color: var(--text-4); margin-top: 3px;
  letter-spacing: 0.02em;
}
.log-val {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-2);
  text-align: right; padding-top: 1px;
}
.log-val.up { color: var(--teal); }
.log-val.down { color: var(--pink-hot); }

/* ============================ BEAT SHEET ============================ */
.sheet-head {
  position: relative; overflow: hidden;
  padding: 22px; border-radius: var(--r-lg); margin-bottom: 16px;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(255, 224, 92, 0.14), transparent 60%),
    linear-gradient(170deg, rgba(30, 18, 62, 0.9), rgba(12, 6, 26, 0.94));
  border: 1px solid rgba(255, 224, 92, 0.24);
  box-shadow: var(--shadow-card);
}
.sheet-head h2 {
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 23px);
  letter-spacing: -0.03em; line-height: 1.22; margin-bottom: 8px; font-weight: 700;
}
.sheet-head p { font-size: 12.6px; color: var(--text-2); line-height: 1.6; max-width: 680px; }
.sheet-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.sheet-stat {
  padding: 7px 11px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line-soft);
}
.sheet-stat b {
  display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--yellow); letter-spacing: -0.02em;
}
.sheet-stat span { font-size: 9.2px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-4); font-weight: 600; }

/* the two column timeline */
.timeline {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(10, 5, 22, 0.6);
}
.tl-head {
  display: grid; grid-template-columns: 78px 1fr 1.25fr;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid var(--line);
}
.tl-head > div {
  padding: 11px 15px;
  font-size: 9.4px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-4);
}
.tl-head > div:nth-child(2) { color: var(--pink-hot); border-left: 1px solid var(--line-soft); }
.tl-head > div:nth-child(3) { color: var(--teal); border-left: 1px solid var(--line-soft); }

.tl-row {
  display: grid; grid-template-columns: 78px 1fr 1.25fr;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: rgba(255, 255, 255, 0.022); }
.tl-row.is-hook { background: rgba(255, 46, 147, 0.055); }
.tl-row.is-hook:hover { background: rgba(255, 46, 147, 0.08); }

.tl-time {
  padding: 15px 13px;
  font-family: var(--font-mono); font-size: 10.4px; color: var(--text-4);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 3px;
}
.tl-time b { color: var(--text-2); font-weight: 600; font-size: 11px; }
.tl-time i {
  font-style: normal; font-size: 8.6px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-4);
}
.tl-row.is-hook .tl-time { color: var(--pink-hot); }
.tl-row.is-hook .tl-time b { color: var(--pink-hot); }

.tl-audio {
  padding: 15px; border-right: 1px solid var(--line-soft);
  font-size: 12.6px; line-height: 1.55; color: var(--text-2);
}
.tl-row.is-hook .tl-audio { font-weight: 700; color: #fff; font-family: var(--font-display); font-size: 13.4px; letter-spacing: -0.01em; }
.tl-audio .hook-tag {
  display: inline-block; font-family: var(--font-body);
  font-size: 8.6px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: #10061F; background: var(--pink); padding: 2px 6px; border-radius: 4px;
  margin-bottom: 7px; vertical-align: 1px;
}

.tl-visual { padding: 15px; font-size: 12.2px; line-height: 1.58; color: var(--text-2); }
.tl-shot {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9.2px; letter-spacing: 0.03em;
  color: var(--teal); background: rgba(43, 232, 200, 0.10);
  padding: 2.5px 7px; border-radius: 4px; margin-bottom: 7px;
  border: 1px solid rgba(43, 232, 200, 0.2);
}
.tl-roll {
  display: inline-block; font-size: 8.6px; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; padding: 2.5px 6px; border-radius: 4px;
  margin-left: 5px; margin-bottom: 7px;
  background: rgba(155, 92, 255, 0.16); color: #B98CFF;
  border: 1px solid rgba(155, 92, 255, 0.26);
}
.tl-visual .cues { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tl-cue {
  display: flex; gap: 7px; font-size: 11.2px; line-height: 1.45; color: var(--text-3);
}
.tl-cue b {
  font-family: var(--font-mono); font-size: 8.8px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-4); flex: 0 0 46px; padding-top: 1px;
}
.tl-row.is-hook .tl-cue b { color: rgba(255, 255, 255, 0.4); }

/* notes grid */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.note-card {
  padding: 15px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line-soft);
}
.note-card h4 {
  font-family: var(--font-display); font-size: 11.6px; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.note-card h4 span { width: 5px; height: 5px; border-radius: 50%; }
.note-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.note-card li {
  font-size: 11.4px; line-height: 1.5; color: var(--text-2);
  padding-left: 12px; position: relative;
}
.note-card li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 3px; height: 3px;
  border-radius: 50%; background: var(--text-4);
}

.sheet-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }

/* ============================ CARRY STRIP ============================ */
.carry-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; margin-bottom: 16px; border-radius: var(--r-sm);
  background: rgba(255, 224, 92, 0.07); border: 1px solid rgba(255, 224, 92, 0.24);
  animation: slideDown 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carry-tag {
  font-size: 8.8px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #150C2E; background: var(--yellow); padding: 2.5px 7px; border-radius: 4px;
}
.carry-strip p { flex: 1; font-size: 12px; color: var(--text-2); min-width: 200px; }

/* ============================ SETTINGS ============================ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.plan-panel { grid-row: span 2; }
.plan-panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.plan-panel-head h2 {
  font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.035em;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 16px 0; }
.feature-list li { display: flex; align-items: center; gap: 9px; font-size: 12.6px; color: var(--text-2); }
.tick {
  width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%;
  background: rgba(43, 232, 200, 0.15); position: relative;
}
.tick::after {
  content: ''; position: absolute; left: 4.5px; top: 5.5px;
  width: 5px; height: 2.5px; border-left: 1.6px solid var(--teal); border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg);
}
.tick-dim { background: rgba(255, 255, 255, 0.08); }
.tick-dim::after { border-color: var(--text-4); }
.feature-list li.is-unlocked .tick-dim { background: rgba(43, 232, 200, 0.15); }
.feature-list li.is-unlocked .tick-dim::after { border-color: var(--teal); }
.fine-print { font-size: 10.4px; color: var(--text-4); margin-top: 10px; line-height: 1.5; }
.fine-print code {
  font-family: var(--font-mono); font-size: 9.8px; padding: 1.5px 4px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.07); color: var(--yellow);
}
.fine-center { text-align: center; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat {
  padding: 12px; border-radius: var(--r-sm); text-align: center;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft);
}
.stat b {
  display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--teal);
}
.stat span { font-size: 9.4px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-4); font-weight: 600; }

.toggle-row {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.toggle-row b { display: block; font-size: 12.6px; font-weight: 600; margin-bottom: 2px; }
.toggle-row i { font-style: normal; font-size: 11px; color: var(--text-4); line-height: 1.45; display: block; }
.toggle {
  width: 40px; height: 23px; flex: 0 0 40px; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, 0.10); border: 1px solid var(--line);
  position: relative; transition: all 0.2s;
}
.toggle span {
  position: absolute; top: 2.5px; left: 2.5px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--text-3); transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toggle.is-on { background: linear-gradient(100deg, var(--pink), var(--violet)); border-color: transparent; }
.toggle.is-on span { left: 20px; background: #fff; }

/* ============================ MODAL ============================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 22px;
  background: rgba(4, 2, 10, 0.82);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.22s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative; overflow: hidden;
  width: 100%; max-width: 470px;
  padding: 30px 28px 26px; border-radius: var(--r-xl);
  background: linear-gradient(170deg, #22123F 0%, #12081F 100%);
  border: 1px solid rgba(255, 224, 92, 0.22);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: modalIn 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
  text-align: center;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-glow {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 92, 0.20), transparent 68%);
  pointer-events: none;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text-3); display: grid; place-items: center;
  transition: all 0.15s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.modal-close svg { width: 14px; height: 14px; }

.lock-badge {
  position: relative; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255, 224, 92, 0.2), rgba(255, 46, 147, 0.16));
  border: 1px solid rgba(255, 224, 92, 0.4);
  box-shadow: 0 0 34px -8px rgba(255, 224, 92, 0.55);
}
.lock-badge svg { width: 25px; height: 25px; color: var(--yellow); }
.modal h2 {
  position: relative;
  font-family: var(--font-display); font-size: 25px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 12px;
}
.modal-copy {
  position: relative;
  font-size: 13.2px; line-height: 1.65; color: var(--text-2);
  margin-bottom: 18px; max-width: 390px; margin-inline: auto;
}
.modal-list {
  position: relative; list-style: none; text-align: left;
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 22px; padding: 15px 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-soft);
}
.modal-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.modal-list .tick { margin-top: 1px; }

/* ============================ TOAST ============================ */
.toast-wrap {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: linear-gradient(150deg, #251545, #150B29);
  border: 1px solid rgba(43, 232, 200, 0.32);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.9);
  font-size: 12.4px; font-weight: 500; color: var(--text);
  animation: toastIn 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
  max-width: 330px;
}
.toast.is-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(22px); } }
.toast .t-icon {
  width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(43, 232, 200, 0.16); color: var(--teal);
  font-size: 11px; font-weight: 800;
}
.toast.tone-pink { border-color: rgba(255, 46, 147, 0.35); }
.toast.tone-pink .t-icon { background: rgba(255, 46, 147, 0.18); color: var(--pink-hot); }
.toast.tone-yellow { border-color: rgba(255, 224, 92, 0.35); }
.toast.tone-yellow .t-icon { background: rgba(255, 224, 92, 0.18); color: var(--yellow); }

/* ============================ EMPTY / SKELETON ============================ */
.empty {
  padding: 34px 22px; text-align: center;
  border-radius: var(--r-lg); border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.014);
}
.empty-ico {
  width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 46, 147, 0.1); border: 1px solid rgba(255, 46, 147, 0.22);
  color: var(--pink-hot);
}
.empty-ico svg { width: 19px; height: 19px; }
.empty b { display: block; font-family: var(--font-display); font-size: 13.6px; margin-bottom: 4px; }
.empty p { font-size: 11.8px; color: var(--text-4); max-width: 320px; margin: 0 auto; line-height: 1.55; }

.skel { border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04); position: relative; overflow: hidden; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel-line { height: 11px; margin-bottom: 9px; }
.skel-block { height: 76px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .main { padding: 0 22px 70px; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 274px;
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 24px 0 60px -20px rgba(0, 0, 0, 0.9);
  }
  .sidebar.is-open { transform: none; }
  .icon-btn.menu-btn { display: grid; }
  .main { padding: 0 18px 70px; }
  .crumbs { font-size: 11px; }
  .crumbs span:first-child, .crumbs .sep { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .plan-panel { grid-row: auto; }
  .field-grid { grid-template-columns: 1fr; }
  .focus-row { grid-template-columns: 1fr; }
  .angle-detail { grid-template-columns: 1fr; gap: 8px; }
  .hook-row { grid-template-columns: 1fr; gap: 4px; }
  .hook-row.is-head { display: none; }
  .hook-secs { text-align: left; }
  .notes-grid { grid-template-columns: 1fr; }
  .tl-head { display: none; }
  .tl-row { grid-template-columns: 58px 1fr; }
  .tl-visual { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 11px; }
  .tl-audio { border-right: none; }
  .tl-time { padding: 13px 9px; }
  .angle-hook, .angle-thesis, .angle-detail, .angle-actions { margin-left: 0; padding-left: 0; }
  .pattern-grid { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .pill-sample { display: none; }
}

@media (max-width: 560px) {
  .main { padding: 0 13px 60px; }
  .card { padding: 16px; }
  .report-head, .sheet-head { padding: 18px; }
  .modal { padding: 26px 20px 22px; border-radius: 22px; }
  .modal h2 { font-size: 21px; }
  .stat-row { grid-template-columns: 1fr; }
  .action-row { gap: 12px; }
  .btn-lg { width: 100%; }
  .toast-wrap { left: 13px; right: 13px; align-items: stretch; }
  .toast { max-width: none; }
  .log-row { grid-template-columns: 52px 1fr; }
  .log-val { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* report export actions */
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-sm { font-size: 11.6px; padding: 7px 12px; border-radius: 8px; }
