/* Best of Must Have · /workflow-diagnostic/ · Free 60-Second AI & Desk Workflow Bottleneck Diagnostic (Zero inline styles) */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --soft: #f2efe8;
  --code-bg: #f5f2eb;
  --accent-tint: rgba(138, 114, 76, 0.08);
  --ink: #1c1a17;
  --ink-soft: #555861;
  --line: rgba(28, 26, 23, 0.13);
  --hair: rgba(28, 26, 23, 0.10);
  --glass: rgba(255, 255, 255, 0.88);
  --action: #16171b;
  --on-action: #faf8f4;
  --link: #2b3248;
  --gold: #8a724c;
  --ok-bg: #eef5f0;
  --ok-ink: #1d5938;
  --err-bg: rgba(168, 42, 42, 0.10);
  --err-ink: #9e2626;
  --shadow: rgba(21, 22, 25, 0.11);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'SFMono-Regular', ui-monospace, monospace;
  --radius-card: 20px;
  --radius-btn: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 56px -30px var(--shadow), 0 6px 18px -10px var(--shadow);
}

html[data-mode="dark"] {
  --bg: #0f1116;
  --surface: #171a22;
  --soft: #202430;
  --code-bg: #13161e;
  --accent-tint: rgba(194, 168, 123, 0.11);
  --ink: #f4f2ec;
  --ink-soft: #a5a9b5;
  --line: rgba(244, 242, 236, 0.15);
  --hair: rgba(244, 242, 236, 0.11);
  --glass: rgba(23, 26, 34, 0.88);
  --action: #f4f2ec;
  --on-action: #0f1116;
  --link: #d8c7a6;
  --gold: #c2a87b;
  --ok-bg: rgba(44, 128, 82, 0.18);
  --ok-ink: #9be0b8;
  --err-bg: rgba(220, 80, 80, 0.16);
  --err-ink: #ffb3b3;
  --shadow: rgba(0, 0, 0, 0.58);
  --lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 64px -28px var(--shadow);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#ee-app, .ee-app, #ee-listen, .ee-listen, #listen, [data-ee-app], section.ee-app, #ee-hdr-theme-btn {
  display: none !important;
}

a { color: var(--link); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aura { position: absolute; width: 64vmax; height: 64vmax; border-radius: 50%; filter: blur(56px); opacity: 0.34; }
.a1 { left: -22vmax; top: -24vmax; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 15%, transparent), transparent 65%); }
.a2 { right: -22vmax; bottom: -26vmax; background: radial-gradient(circle, color-mix(in srgb, var(--link) 12%, transparent), transparent 65%); }
.grain { position: absolute; inset: 0; opacity: 0.028; background-image: radial-gradient(var(--ink) 0.55px, transparent 0.65px); background-size: 3px 3px; }

/* ---------- Single 1-Row Header (0.0px Vertical Spread Across All Viewports) ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
  padding: 0 clamp(14px, 2.5vw, 34px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 38px;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
  overflow: visible;
}
.mark .mk-ring { fill: none; stroke: var(--ink); stroke-width: 1.7; opacity: 0.85; }
.mark .mk-ring2 { fill: none; stroke: var(--gold); stroke-width: 0.75; stroke-dasharray: 1.5 3; opacity: 0.8; }
.mark .mk-seed circle { fill: none; stroke: var(--gold); stroke-width: 1.05; opacity: 0.82; }
.mark .mk-core { fill: var(--ink); }
.mark .mk-north { fill: var(--gold); }

.wm {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.44rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.links {
  display: inline-flex;
  align-items: center;
  height: 38px;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
  white-space: nowrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.links a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 3px 12px -5px var(--shadow);
}
.links a:hover { color: var(--ink); }

.right {
  display: inline-flex;
  align-items: center;
  height: 38px;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--action);
  color: var(--on-action);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.012em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), opacity 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:disabled { opacity: 0.58; cursor: wait; transform: none; }

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--gold); opacity: 1; }

.btn.hdr-btn {
  min-height: 38px;
  height: 38px;
  padding: 0 15px;
  font-size: 13px;
  line-height: 1;
}

.btn.sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.btn.full {
  width: 100%;
  white-space: normal;
  text-align: center;
  padding: 10px 18px;
}

.menu-btn {
  display: none;
  align-items: center;
  height: 38px;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.menu-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- Mobile Drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: color-mix(in srgb, var(--bg) 68%, rgba(0, 0, 0, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-end;
}

.drawer-in {
  width: min(320px, 86vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  box-shadow: var(--lift);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hair);
}

.close-x {
  border: 0;
  background: var(--soft);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.drawer-in a.v {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.drawer-in a.v:hover, .drawer-in a.v[aria-current="page"] {
  background: var(--soft);
  font-weight: 600;
}

/* ---------- Main Page Shell ---------- */
.page {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: clamp(22px, 3.4vw, 42px) clamp(14px, 2.5vw, 34px) 54px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
}

.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 3.4vw, 3.15rem); line-height: 1.05; max-width: 24ch; }
h2 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); line-height: 1.1; }
h3 { font-size: clamp(1.28rem, 1.75vw, 1.56rem); line-height: 1.16; }

.lead {
  margin: 0;
  font-size: 15.2px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ---------- 3-Tap Bottleneck Listener Shell ---------- */
.listener-card {
  padding: clamp(20px, 2.8vw, 32px);
  border-radius: var(--radius-card);
  background: var(--glass);
  border: 1px solid var(--hair);
  box-shadow: var(--lift);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listener-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.listener-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zero-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.zero-gate-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.tap-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.tap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tap-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}

.tap-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
}

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

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

.opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s var(--ease);
}
.opt-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.opt-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--soft);
  box-shadow: 0 10px 24px -18px var(--shadow);
}
.opt-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.opt-btn strong {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.opt-btn span {
  font-size: 12.5px;
  line-height: 1.38;
  color: var(--ink-soft);
}

/* ---------- Instant Prescription + Matched Paid Edition Split ---------- */
.prescription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.88fr);
  gap: 20px;
  align-items: start;
}

.rx-card {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1.5px solid var(--gold);
  box-shadow: var(--lift);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rx-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}

.hours-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--hair);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--action);
  color: var(--on-action);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-body strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 3px;
}
.step-body p {
  margin: 0;
  font-size: 13.4px;
  line-height: 1.46;
  color: var(--ink-soft);
}

.snippet-box {
  padding: 13px 15px;
  border-radius: 13px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.snippet-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.snippet-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.48;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.rx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.copy-toast {
  font-size: 12px;
  font-weight: 600;
  color: var(--ok-ink);
}

.pdf-shelf {
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Right Column: Matched Paid Upgrade + Inbox Blueprint ---------- */
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.upgrade-card, .inbox-card {
  padding: clamp(20px, 2.3vw, 26px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.price-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--hair);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.upgrade-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.upgrade-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 13.2px;
  line-height: 1.42;
  color: var(--ink-soft);
}
.upgrade-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field,
input.field,
.nl-form input.field {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.field:focus,
input.field:focus,
.nl-form input.field:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 12%, transparent);
}

.fine-note {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.44;
  color: var(--ink-soft);
}
.fine-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nl-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 13px;
  font-weight: 500;
}
.nl-status.err {
  background: var(--err-bg);
  color: var(--err-ink);
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px clamp(14px, 2.5vw, 34px) max(14px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.foot-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.foot-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.foot-btn:hover { border-color: var(--ink); color: var(--ink); }

.foot-link {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.foot-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Print Stylesheet (Print My 3-Step Fix) ---------- */
@media print {
  .sky, .top, .overlay, .listener-card, .inbox-card, .rx-actions, .foot {
    display: none !important;
  }
  body, .page, .prescription-layout, .rx-card, .upgrade-card {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
  }
  .upgrade-card {
    margin-top: 16px;
    border: 1px solid #888888;
  }
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1060px) {
  .links, .signin-top { display: none; }
  .menu-btn { display: inline-flex; }
  .prescription-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .opt-grid-4, .opt-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .top { height: 54px; padding: 0 12px; gap: 6px; }
  .brand { height: 34px; gap: 6px; }
  .mark { width: 25px; height: 25px; }
  .wm { font-size: 1.05rem; }
  .right { height: 34px; gap: 5px; }
  .btn.hdr-btn { min-height: 34px; height: 34px; padding: 0 10px; font-size: 11.5px; }
  .menu-btn { height: 34px; padding: 0 9px; font-size: 11.5px; gap: 5px; }
  .page { padding: 16px 12px 40px; gap: 20px; }
  .foot { padding: 12px; }
}
