:root {
  --bg-deep: #08090d;
  --bg: #0c0e14;
  --bg-soft: #111318;
  --bg-card: #16181f;
  --bg-elevated: #1a1d26;
  --bg-hover: #1e212a;
  --border: #22252f;
  --border-strong: #2d303c;
  --text: #e6e8ee;
  --text-soft: #9499a6;
  --text-muted: #5c6170;
  --accent: #6c5ce7;
  --accent-soft: #8b7cf7;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --accent-glow-strong: rgba(108, 92, 231, 0.25);
  --blue: #5b8def;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 35px 60px -15px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --max: 1200px;
  --nav-h: 68px;
  color-scheme: dark;
}

/* ===== OMNISAVER STUDIO RECORD SYSTEM ===== */
.hero-record-system {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  min-height: 720px;
}

.hero-copy .label,
.page-hero .label,
.concept-copy .label,
.tool-section-head .label,
.studio-band .label,
.boundary-grid .label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid rgba(139, 124, 247, 0.2);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.record-deck {
  position: relative;
  display: grid;
  min-height: 610px;
  align-items: center;
}

.record-deck .record-card {
  width: min(100%, 520px);
  margin-left: auto;
  box-shadow: var(--shadow);
}

.deck-card-1 {
  position: relative;
  z-index: 4;
}

.deck-card-2,
.deck-card-3,
.deck-card-4 {
  position: absolute;
  right: 0;
}

.deck-card-2 {
  top: 0;
  z-index: 3;
  transform: translate(-42px, 24px) rotate(-2deg);
}

.deck-card-3 {
  bottom: 34px;
  z-index: 2;
  transform: translate(8px, 0) rotate(1.5deg);
}

.deck-card-4 {
  bottom: 0;
  z-index: 1;
  opacity: 0.82;
  transform: translate(-70px, 36px) rotate(-1deg);
}

.record-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 42%),
    var(--bg-card);
}

.record-card.hero-record {
  align-self: center;
  box-shadow: var(--shadow);
}

.record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.record-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.record-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.04);
}

.record-field {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(13, 15, 22, 0.75);
}

.record-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.record-field strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.record-insight {
  padding: 16px 20px 20px;
  color: var(--text-soft);
  font-size: 14px;
}

.record-insight::before {
  content: "Insight";
  display: inline-flex;
  margin-right: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-live {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #63e6ad;
}

.badge-prototype,
.badge-beta {
  border-color: rgba(91, 141, 239, 0.28);
  background: rgba(91, 141, 239, 0.1);
  color: #9bbcff;
}

.badge-concept,
.badge-research {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
  color: #f8c471;
}

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

.scene-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.scene-card h3,
.loop-card h3,
.studio-band h3,
.lab-card h3,
.workflow-card h3,
.tool-card h3,
.moment-grid h2,
.boundary-grid h2 {
  margin: 0 0 8px;
  letter-spacing: 0;
}

.scene-card p,
.loop-card p,
.studio-band p,
.lab-card p,
.workflow-card p,
.tool-card p,
.boundary-grid p,
.moment-grid p,
.tool-section-head p,
.maturity-note {
  color: var(--text-soft);
}

.micro-record .record-grid,
.mini-record .record-grid {
  grid-template-columns: 1fr;
}

.micro-record .record-top,
.micro-record .record-field,
.micro-record .record-insight,
.mini-record .record-top,
.mini-record .record-field,
.mini-record .record-insight {
  padding-left: 14px;
  padding-right: 14px;
}

.work-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.loop-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), rgba(22, 24, 31, 0.68));
}

.loop-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent-soft);
  font-weight: 800;
}

.studio-bands {
  display: grid;
  gap: 14px;
}

.studio-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr) minmax(210px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 19, 24, 0.76);
}

.studio-band-main {
  display: block;
  padding: 6px;
}

.studio-band-main h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
}

.studio-band-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.studio-band-meta span,
.tool-meta-line span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.studio-tool-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.studio-tool-list a,
.context-tools a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.studio-tool-list a:hover,
.context-tools a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.record-showcase,
.example-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.lab-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.context-band.refined {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: start;
}

.context-tools {
  display: grid;
  gap: 8px;
}

.studio-principle,
.workflow-grid,
.moment-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-principle article,
.workflow-card,
.moment-grid article,
.boundary-grid article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.workflow-card ol {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.workflow-card li + li {
  margin-top: 8px;
}

.studio-page-hero,
.concept-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.group-heading {
  margin: 28px 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tools-directory-hero {
  padding-bottom: 36px;
}

.search-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.search-field input {
  min-height: 52px;
  font-size: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--text-soft);
  cursor: pointer;
}

.quick-filters button:hover,
.quick-filters button.is-active {
  border-color: var(--accent-soft);
  color: var(--text);
}

.result-count {
  margin: 14px 0 0;
  color: var(--text-muted);
}

.tool-section {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.tool-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.tool-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.tool-section-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.tool-section-head a {
  color: var(--accent-soft);
  font-weight: 800;
  white-space: nowrap;
}

.directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card.directory-card {
  min-height: 330px;
}

.tool-card-top {
  align-items: flex-start;
}

.tool-meta-line {
  margin-top: auto;
}

.moment-grid article span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.boundary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maturity-note {
  margin: 16px 0 0;
  font-size: 13px;
}

.article-entry-grid,
.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-entry-card,
.validation-grid article {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.article-entry-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-entry-card h3,
.validation-grid h2 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

.article-entry-card p,
.validation-grid p {
  margin: 0;
  color: var(--text-soft);
}

.event-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.event-table div {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.event-table div:last-child {
  border-bottom: 0;
}

.event-table code {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

.event-table span {
  color: var(--text-soft);
}

/* ===== BLOG INDEX ===== */

/* --- Hero section --- */
.blog-hero,
.blog-hub-hero {
  padding-bottom: 54px;
}

.blog-lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

/* Featured blog card */
.blog-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.blog-card.featured-blog-card {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(108, 92, 231, 0.14), transparent 48%),
    var(--bg-card);
}

.blog-card span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.featured-blog-card h3 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.blog-card p {
  margin: 0;
  color: var(--text-soft);
}

.blog-card strong {
  color: var(--accent-soft);
  font-size: 14px;
}

.complete-guide-card span {
  color: #bdb4ff;
}

/* Editor picks sidebar */
.editor-picks {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.editor-picks a {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.editor-picks a:first-of-type {
  border-top: 0;
}

.editor-picks a span {
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-picks a strong {
  color: var(--text);
  line-height: 1.3;
}

/* --- Article list (All Guides + Archive) --- */
.blog-index-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.blog-index-header h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
}

.blog-index-header p {
  margin: 0;
  color: var(--text-soft);
}

.blog-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.blog-topic-pills a,
.article-keywords span {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.article-list-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.article-list-item > div {
  flex: 1;
  min-width: 0;
}

.article-list-item > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-list-item h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-list-item p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list-item strong {
  flex-shrink: 0;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.article-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.article-list-tags em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 999px;
}

/* --- Topic clusters --- */
.studio-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-blog-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.studio-blog-card > span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-blog-card h3 {
  margin: 14px 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.studio-blog-card div {
  display: grid;
  gap: 8px;
}

.studio-blog-card a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.article-page {
  max-width: min(var(--max), calc(100% - 48px));
}

.article-hero {
  max-width: 820px;
  padding: 36px 0 20px;
}

.article-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing:0;
}

.article-hero p {
  color: var(--text-soft);
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text-soft);
}

.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.eyebrow-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px) 240px;
  gap: 24px;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.article-body section,
.article-cta,
.article-toc,
.sidebar-box {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.article-toc,
.article-sidebar {
  position: sticky;
  top: 96px;
}

.article-toc {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.article-toc strong,
.sidebar-box strong {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.article-toc a,
.sidebar-box a {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.article-sidebar {
  display: grid;
  gap: 14px;
}

.sidebar-box {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.article-body h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: 0;
}

.article-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.article-faq details {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.article-faq details:first-of-type {
  margin-top: 12px;
}

.article-faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.article-hero-redesign {
  max-width: 920px;
  padding-bottom: 42px;
}

.article-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 780px) 250px;
  gap: 28px;
  align-items: start;
}

.article-prose {
  padding: 0 0 24px;
}

.article-prose .article-section,
.article-summary-box,
.article-template-box,
.article-prose .article-faq,
.article-bottom-cta {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.article-prose .article-section + .article-section {
  padding-top: 16px;
}

.article-prose h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-prose p {
  margin: 0 0 18px;
  color: #c8ccd6;
  font-size: 18px;
  line-height: 1.85;
}

.article-summary-box {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.article-summary-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.article-summary-box li + li {
  margin-top: 10px;
}

.article-template-box div {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-template-box dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-card);
}

.article-template-box dt {
  color: var(--accent-soft);
  font-weight: 800;
}

.article-template-box dd {
  margin: 0;
  color: var(--text-soft);
}

.redesigned-toc,
.redesigned-sidebar {
  position: sticky;
  top: 92px;
}

@media (max-width: 1040px) {
  .hero-record-system,
  .studio-page-hero,
  .concept-hero,
  .context-band.refined,
  .article-layout,
  .article-shell,
  .blog-lead-layout {
    grid-template-columns: 1fr;
  }

  .article-toc,
  .article-sidebar,
  .redesigned-toc,
  .redesigned-sidebar {
    position: static;
  }

  .record-deck {
    min-height: auto;
    gap: 12px;
  }

  .deck-card-2,
  .deck-card-3,
  .deck-card-4 {
    position: relative;
    inset: auto;
    transform: none;
  }

  .studio-band {
    grid-template-columns: 1fr;
  }

  .scene-grid,
  .work-loop,
  .record-showcase,
  .example-record-grid,
  .lab-grid,
  .article-entry-grid,
  .validation-grid,
  .studio-blog-grid,
  .studio-principle,
  .workflow-grid,
  .moment-grid,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-record-system {
    min-height: auto;
  }

  .record-deck .record-card:nth-child(n+3) {
    display: none;
  }

  .scene-grid,
  .work-loop,
  .record-showcase,
  .example-record-grid,
  .lab-grid,
  .article-entry-grid,
  .validation-grid,
  .studio-blog-grid,
  .studio-principle,
  .workflow-grid,
  .moment-grid,
  .boundary-grid,
  .directory-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .tool-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-band,
  .search-panel {
    padding: 16px;
  }

  .event-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .blog-index-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-template-box dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent-glow-strong);
  color: var(--text);
}

.bg-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108, 92, 231, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(91, 141, 239, 0.05), transparent),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(16, 185, 129, 0.04), transparent);
}

.site-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  min-height: var(--nav-h);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing:0;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.15s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.button.primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.button.primary:hover {
  box-shadow: 0 0 32px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-soft);
}

.button.ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head .label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing:0;
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.6;
}

.section-head.center p {
  margin: 0 auto;
}

h1, h2, h3, p {
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero-copy {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing:0;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-soft) 50%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lede {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero .microcopy {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.preview-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.preview-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 280px;
}

.file-tree {
  padding: 14px;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
}

.file-tree .file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.file-tree .file-row.active {
  background: var(--accent-glow);
  color: var(--accent-soft);
}

.file-tree .file-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.file-tree .file-row.active .dot {
  background: var(--accent-soft);
}

.code-view {
  padding: 16px;
  background: #080a0e;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
}

.code-view .comment { color: #5c6170; }
.code-view .key { color: var(--accent-soft); }
.code-view .string { color: var(--green); }
.code-view .number { color: var(--amber); }
.code-view .punctuation { color: var(--text-muted); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.stat-item {
  padding: 16px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing:0;
  color: var(--accent-soft);
}

.stat-item span {
  color: var(--text-muted);
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.problem-stack {
  display: grid;
  gap: 12px;
}

.problem-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.problem-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

.problem-card p,
.card-body p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.statement {
  position: relative;
  padding: 24px;
  margin-top: 8px;
  border: 1px solid var(--accent-glow-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(108, 92, 231, 0.04));
}

.statement::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-glow-strong), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.statement strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing:0;
  color: var(--accent-soft);
}

.statement p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s;
}

.tool-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.tool-card.featured {
  border-color: var(--accent-glow-strong);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08), var(--bg-card) 60%);
}

.tool-card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.tool-card .status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tool-card.featured .status {
  background: var(--accent-glow);
  color: var(--accent-soft);
}

.tool-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.tool-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.tool-card .card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principle-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.principle-card .icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-glow);
  color: var(--accent-soft);
}

.principle-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.split-entry {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.split-entry h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing:0;
}

.token-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.token-cell {
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.token-cell small {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.token-cell strong {
  font-size: 15px;
  font-weight: 700;
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatches span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.form-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field textarea {
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239499a6'%3e%3cpath d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.form-message {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.article-card {
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s;
}

.article-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.article-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.article-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.article-card .card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(140px, 1fr));
  gap: 28px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-soft);
  font-size: 13px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 48px));
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-bottom div {
  display: flex;
  gap: 16px;
}

.footer-mini-record {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.footer-mini-record span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== BLOG REDESIGN OVERRIDES ===== */
.seo-article-page {
  width: min(var(--max), calc(100% - 48px));
  max-width: min(var(--max), calc(100% - 48px));
}

.seo-article-page .article-hero {
  max-width: 920px;
}

.seo-article-page .article-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px) 250px;
  gap: 28px;
  align-items: start;
}

.seo-article-page .article-prose,
.seo-article-page .article-body {
  width: 100%;
  max-width: 760px;
}

.seo-article-page .article-prose p {
  max-width: 72ch;
}

@media (max-width: 1040px) {
  .seo-article-page .article-shell {
    grid-template-columns: 1fr;
  }
}

/* ===== OMNISAVER STUDIO SYSTEM ===== */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-concept {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}

.badge-beta {
  background: rgba(91, 141, 239, 0.12);
  color: var(--blue);
}

.badge-research {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.record-stack {
  display: grid;
  gap: 14px;
}

.record-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.record-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing:0;
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.record-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.record-field span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.record-field strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.record-insight {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--accent-glow-strong);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.studio-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s;
}

.studio-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.studio-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
}

.studio-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.studio-card .examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.studio-card .examples span {
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.why-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.why-item h2,
.why-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 750;
}

.why-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.save-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.save-list li {
  color: var(--text-soft);
  font-size: 13px;
}

.save-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent-soft);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-card .tool-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

.context-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--accent-glow-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), var(--bg-card) 55%);
  box-shadow: var(--shadow);
}

.context-band p {
  color: var(--text-soft);
}

.context-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.context-tools a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.empty-state {
  display: none;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-soft);
}

.page-hero {
  padding-top: 80px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 48px;
  align-items: start;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: flow;
}

.flow-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.flow-card::before {
  counter-increment: flow;
  content: counter(flow);
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.flow-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.flow-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq details {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.faq p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-soft);
}

@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .context-band,
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .tools-grid,
  .why-grid,
  .flow-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .studio-grid,
  .context-tools,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .context-band,
  .form-panel {
    padding: 20px;
  }
}

.article-page {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.article-page h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing:0;
  margin-bottom: 20px;
}

.article-page p,
.article-page li {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.article-page a {
  color: var(--accent-soft);
  font-weight: 600;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.article-page h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing:0;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.article-page h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing:0;
  margin: 32px 0 12px;
  line-height: 1.4;
}

.article-page ul,
.article-page ol {
  padding-left: 24px;
  margin: 16px 0;
}

.article-page li {
  margin-bottom: 8px;
}

.article-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 24px 0;
}

.article-page th {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.article-page td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.article-page pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
}

.article-page code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-page hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.design-page .hero {
  padding-top: 60px;
}

.design-page .hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
}

.url-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.url-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.url-input-wrap .prefix {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.url-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}

.url-input-wrap input::placeholder {
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step-card {
  position: relative;
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.step-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1.25fr;
  gap: 24px;
}

.package-list {
  display: grid;
  gap: 8px;
}

.package-list .file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.package-list .file-row.active {
  border-color: var(--accent-glow-strong);
  background: var(--accent-glow);
  color: var(--accent-soft);
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.comparison-table th {
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.comparison-table .yes { color: var(--green); }
.comparison-table .no { color: var(--red); }
.comparison-table .planned { color: var(--amber); }

.user-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.user-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.user-card:hover {
  border-color: var(--border-strong);
}

.user-card h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.user-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.use-case {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.use-case h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.use-case p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.note-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.06);
}

.note-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== DEFINITION BLOCK ===== */
.definition-block {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.definition-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}
.definition-block p strong {
  color: var(--text);
}

/* ===== CONTRAST ROW ===== */
.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.contrast-card {
  border-radius: 12px;
  padding: 24px;
}
.contrast-card.muted {
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
.contrast-card.accent {
  background: rgba(108,92,231,0.08);
  border: 1px solid rgba(108,92,231,0.2);
}
.contrast-card h3 {
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 700;
}
.contrast-card.muted h3 { color: var(--text-muted); }
.contrast-card.accent h3 { color: var(--accent); }
.contrast-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contrast-card li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-soft);
}
.contrast-card li::before {
  content: "—";
  margin-right: 8px;
  color: var(--text-muted);
}
.contrast-card.accent li::before {
  color: var(--accent);
}

/* ===== FACTS GRID ===== */
.facts-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.fact-item {
  background: var(--surface-raised);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-item strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.fact-item span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ===== ALTERNATING SECTION ===== */
.section.alt {
  background: var(--bg-card);
  width: 100%;
  padding-left: max(calc((100% - var(--max)) / 2 + 24px), 24px);
  padding-right: max(calc((100% - var(--max)) / 2 + 24px), 24px);
  padding-top: 64px;
  padding-bottom: 64px;
}
.section.alt .section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.section.compact {
  padding: 64px 0;
}

/* ===== TOOL MATRIX GRID ===== */
.matrix-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tool-card-v2 {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  transition: all 0.2s;
}
.tool-card-v2:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.tool-card-v2 .cat-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg-card);
  color: var(--text-muted);
}
.tool-card-v2 .badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-featured {
  background: var(--accent-glow);
  color: var(--accent-soft);
}
.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
}
.badge-prototype {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}
.badge-researching {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.tool-card-v2 h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}
.tool-card-v2 p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

/* ===== LARGE TOOL CARDS (homepage) ===== */
.tools-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tool-card-lg {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.tool-card-lg:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.tool-card-lg .icon-wrap {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  flex-shrink: 0;
}
.tool-card-lg .icon-wrap svg {
  width: 28px;
  height: 28px;
}
.tool-card-lg .card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-card-lg .card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-card-lg .card-top h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.tool-card-lg .card-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}
.tool-card-lg .card-meta {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.tool-card-lg .card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-card-lg .card-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}

/* ===== TOOL ROW (tools listing page, single column) ===== */
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}
.tool-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.tool-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.tool-row-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  flex-shrink: 0;
}
.tool-row-icon svg {
  width: 32px;
  height: 32px;
}
.tool-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-row-top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.tool-row-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.tool-row-meta {
  display: flex;
  gap: 20px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}
.tool-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-row-cta {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
}

/* ===== COMPACT PIPELINE ===== */
.pipeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pipe-unit {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.pipe-unit h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}
.pipe-unit p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

/* ===== USE CASES ===== */
.use-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.use-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.use-card:hover {
  border-color: var(--border-strong);
}
.use-card .emoji-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-glow);
  font-size: 18px;
}
.use-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}
.use-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* ===== SPLIT HALF LAYOUT ===== */
.split-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.feat-bundle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feat-bundle span {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}
.feat-bundle span.active {
  border-color: var(--accent-glow-strong);
  background: var(--accent-glow);
  color: var(--accent-soft);
}

/* ===== COMPACT BLOG ===== */
.blog-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.blog-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  transition: all 0.15s;
}
.blog-item:hover {
  border-color: var(--border-strong);
}
.blog-item h4 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
}
.blog-item p {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}
.blog-item .card-link {
  font-size: 12px;
  color: var(--accent-soft);
  font-weight: 600;
}

/* ===== TIGHTEN SECTION SPACING ===== */
.section-head.compact {
  margin-bottom: 32px;
}
.micro-block {
  margin-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.micro-block a {
  color: var(--accent-soft);
  font-weight: 600;
}

/* ===== HERO TABBED PREVIEW ===== */
.mock-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow-x: auto;
}
.mock-tab {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: default;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.mock-tab.active {
  color: var(--accent-soft);
  border-bottom-color: var(--accent);
}

/* ===== STORAGE vs REUSE COMPARISON ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.compare-col {
  background: var(--bg-card);
}
.compare-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.compare-col.muted .compare-col-head {
  color: var(--text-muted);
}
.compare-col.accent .compare-col-head {
  color: var(--accent-soft);
}
.compare-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.compare-item:last-child {
  border-bottom: 0;
}
.compare-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compare-col.muted .compare-item .dot {
  background: var(--text-muted);
}
.compare-col.accent .compare-item .dot {
  background: var(--accent-soft);
}

/* ===== LOCAL-FIRST TRUST ===== */
.trust-list {
  display: grid;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.trust-item .check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1024px) {
  .use-quad {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-row,
  .blog-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .pipeline-row,
  .blog-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-half {
    grid-template-columns: 1fr;
  }
  .section.alt {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 640px) {
  .use-quad,
  .pipeline-row,
  .blog-mini-grid {
    grid-template-columns: 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
  margin-left: 12px;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  padding-right: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tool-grid,
  .user-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero,
  .two-col,
  .split-entry,
  .package-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .preview-body {
    grid-template-columns: 160px 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 24px);
    min-height: 60px;
  }

  .nav-actions .button.ghost {
    display: none;
  }

  .section {
    width: calc(100% - 24px);
    padding: 60px 0;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .file-tree {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .tool-grid,
  .user-grid,
  .steps-grid,
  .use-case-grid,
  .form-grid,
  .token-board,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .split-entry {
    padding: 20px;
  }

  .form-card {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-table table {
    min-width: 600px;
  }

  .tools-duo-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-lg {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .tool-card-lg .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .tool-card-lg .icon-wrap svg {
    width: 24px;
    height: 24px;
  }

  .tool-row {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px;
  }
  .tool-row-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .tool-row-icon svg {
    width: 24px;
    height: 24px;
  }
  .tool-row-meta {
    flex-direction: column;
    gap: 2px;
  }
  .tools-list {
    width: calc(100% - 24px);
    padding: 32px 0;
  }
}

/* Final scoped overrides for the generated SEO article template. */
body .seo-article-page {
  width: min(var(--max), calc(100% - 48px));
  max-width: min(var(--max), calc(100% - 48px));
}

body .seo-article-page .article-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px) 250px;
  gap: 28px;
  align-items: start;
}

body .seo-article-page .article-prose,
body .seo-article-page .article-body {
  width: 100%;
  max-width: 760px;
}

@media (max-width: 1040px) {
  body .seo-article-page .article-shell {
    grid-template-columns: 1fr;
  }
}

/* ===== RICH ARTICLE PROSE CONTENT ===== */
.article-prose h3 {
  margin: 32px 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  letter-spacing:0;
}

.article-prose h4 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing:0;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.85;
}

.article-prose li {
  margin-bottom: 6px;
}

.article-prose li > ul,
.article-prose li > ol {
  margin-bottom: 0;
  margin-top: 6px;
}

.article-prose blockquote {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
  font-style: italic;
}

.article-prose blockquote p {
  margin: 0;
  color: var(--text-soft);
}

.article-prose blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.article-prose img {
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.article-prose figure {
  margin: 28px 0;
}

.article-prose figure img {
  margin: 0;
}

.article-prose figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.article-prose pre {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #080a0e;
  overflow-x: auto;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #e4e6ed;
}

.article-prose code {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--accent-soft);
}

.article-prose pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.article-prose table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 15px;
}

.article-prose th {
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.article-prose td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.article-prose tr:last-child td {
  border-bottom: 0;
}

.article-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.article-prose .article-comparison-table {
  min-width: 720px;
  margin: 0;
}

.article-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-record-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-record-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.article-record-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.article-record-card dl {
  display: grid;
  grid-template-columns: minmax(82px, 0.38fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 16px;
}

.article-record-card dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-record-card dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.article-record-card span {
  margin-top: auto;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 800;
}

.article-prose hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-prose a {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-prose a:hover {
  color: var(--accent);
}

.article-prose .callout {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.article-prose .callout strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.article-prose .callout.tip {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.article-prose .callout.tip strong {
  color: var(--green);
}

.article-prose .callout.warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}

.article-prose .callout.warn strong {
  color: var(--amber);
}

.article-bottom-cta {
  margin-top: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), var(--bg-card) 50%);
  text-align: center;
}

.article-bottom-cta h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.article-bottom-cta p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 15px;
}

.article-bottom-cta .button.primary {
  display: inline-flex;
}

/* ===== HIGH-SIGNAL PRODUCT LANDING PAGES ===== */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 58px;
  align-items: center;
  min-height: 680px;
}

.product-copy h1 {
  margin: 0 0 22px;
  max-width: 820px;
  color: var(--text);
  font-size: 54px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing:0;
}

.product-copy .lede {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.75;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.product-breadcrumb a {
  color: var(--accent-soft);
}

.product-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

.product-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.product-mini-stats div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.026);
}

.product-mini-stats span,
.product-preview-grid span,
.product-timeline span,
.featured-product-top span,
.mini-product-preview span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-mini-stats strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.product-status-line {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.product-preview-panel {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.product-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.product-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.product-window-bar span:first-child {
  background: var(--red);
}

.product-window-bar span:nth-child(2) {
  background: var(--amber);
}

.product-window-bar span:nth-child(3) {
  background: var(--green);
}

.product-window-bar strong {
  margin-left: auto;
  color: var(--text-soft);
}

.product-preview-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.product-preview-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-preview-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.18;
}

.product-preview-panel > p {
  margin: 12px 24px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 24px 24px;
}

.product-preview-grid div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8,9,13,0.35);
}

.product-preview-grid strong,
.mini-product-preview strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.product-timeline {
  display: grid;
  gap: 1px;
  padding: 0 24px 24px;
}

.product-timeline div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.product-timeline p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.product-proof-section .section-head h2 {
  max-width: 860px;
  margin-inline: auto;
}

.product-benefit-grid,
.featured-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-benefit-card,
.featured-product-card,
.product-field-card,
.product-usecase-grid article,
.product-export-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.product-benefit-card {
  padding: 26px;
  min-height: 210px;
}

.product-benefit-card h3,
.product-usecase-grid h3,
.product-field-card h3,
.product-export-band h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.product-benefit-card p,
.product-usecase-grid p,
.product-export-band p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.product-fields-layout,
.product-use-layout,
.product-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: start;
}

.product-field-stack {
  display: grid;
  gap: 14px;
}

.product-field-card {
  padding: 24px;
}

.product-field-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.product-field-card li,
.product-export-band span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.product-workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-step {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
}

.product-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 38px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
}

.product-step h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
}

.product-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.product-use-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
}

.product-usecase-grid {
  display: grid;
  gap: 12px;
}

.product-usecase-grid article {
  padding: 22px;
}

.product-export-band {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(16,185,129,0.07), rgba(108,92,231,0.06)),
    var(--bg-card);
}

.product-export-band .label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid rgba(139, 124, 247, 0.2);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-export-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.product-faq-layout {
  grid-template-columns: minmax(0, 0.55fr) minmax(480px, 1fr);
}

.product-faq {
  max-width: none;
}

.featured-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-product-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  color: inherit;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.featured-product-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  transform: translateY(-3px);
}

.featured-product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.featured-product-top h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.featured-product-card > p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.mini-product-preview {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.mini-product-preview div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8,9,13,0.32);
}

.product-card-keyword {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.product-card-keyword span {
  color: var(--accent-soft);
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .product-hero,
  .product-fields-layout,
  .product-use-layout,
  .product-faq-layout {
    grid-template-columns: 1fr;
  }

  .product-workflow-strip,
  .featured-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-hero {
    min-height: auto;
    gap: 34px;
  }

  .product-copy h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .product-copy .lede {
    font-size: 16px;
  }

  .product-mini-stats,
  .product-benefit-grid,
  .product-workflow-strip,
  .featured-product-grid,
  .article-record-grid,
  .product-preview-grid {
    grid-template-columns: 1fr;
  }

  .product-timeline div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-preview-header {
    flex-direction: column;
  }

  .product-preview-panel,
  .product-benefit-card,
  .featured-product-card,
  .product-field-card,
  .product-export-band,
  .product-usecase-grid article {
    border-radius: var(--radius);
  }
}

/* ===== INTERACTIVE APP TOOL THEMES ===== */
[data-tool="brew-saver"] {
  --tool-accent: #c8834b;
  --tool-accent-soft: #e8a86a;
  --tool-bg: #1a1410;
  --tool-border: #2e221a;
  --tool-glow: rgba(200, 131, 75, 0.15);
}
[data-tool="tea-saver"] {
  --tool-accent: #5a9e6f;
  --tool-accent-soft: #7dba8e;
  --tool-bg: #0f1a13;
  --tool-border: #1a2e20;
  --tool-glow: rgba(90, 158, 111, 0.15);
}
[data-tool="plant-saver"] {
  --tool-accent: #6b8f4e;
  --tool-accent-soft: #8aad6a;
  --tool-bg: #11160e;
  --tool-border: #1e2616;
  --tool-glow: rgba(107, 143, 78, 0.15);
}
[data-tool="warranty-saver"] {
  --tool-accent: #4a80c8;
  --tool-accent-soft: #6a9fe8;
  --tool-bg: #0e131a;
  --tool-border: #161e2e;
  --tool-glow: rgba(74, 128, 200, 0.15);
}

/* ===== INTERACTIVE APP DEMO SECTION ===== */
.app-demo-section {
  padding: 80px 0;
  position: relative;
}
.app-demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tool-glow, var(--accent-glow));
  pointer-events: none;
}
.app-demo-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.app-demo-header {
  margin-bottom: 40px;
}
.app-demo-header .label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--tool-border, var(--border));
  border-radius: 999px;
  background: var(--tool-bg, var(--bg-soft));
  color: var(--tool-accent, var(--accent-soft));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.app-demo-header h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing:0;
  color: var(--text);
}
.app-demo-header p {
  margin-top: 10px;
  color: var(--text-soft);
  max-width: 560px;
}
.app-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) {
  .app-tool {
    grid-template-columns: 1fr;
  }
}
.app-form-wrap,
.app-list-wrap,
.app-export-wrap {
  background: var(--tool-bg, var(--bg-card));
  border: 1px solid var(--tool-border, var(--border));
  border-radius: var(--radius-lg);
  padding: 24px;
}
.app-form-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.app-field {
  margin-bottom: 16px;
}
.app-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.app-field input,
.app-field select,
.app-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-field input:focus,
.app-field select:focus,
.app-field textarea:focus {
  border-color: var(--tool-accent, var(--accent));
  box-shadow: 0 0 0 3px var(--tool-glow, var(--accent-glow));
}
.app-field textarea {
  min-height: 72px;
  resize: vertical;
}
.app-field select {
  cursor: pointer;
}
.app-form .button.primary {
  margin-top: 8px;
  background: var(--tool-accent, var(--accent));
  color: var(--bg-deep);
}
.app-form .button.primary:hover {
  filter: brightness(1.1);
}
.app-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.app-list-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.app-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.app-list-actions {
  display: flex;
  gap: 8px;
}
.app-list-actions .button.ghost {
  font-size: 12px;
  padding: 4px 12px;
  color: var(--text-soft);
}
.app-list-actions .button.ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.app-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 32px 0;
}
.app-record {
  border: 1px solid var(--tool-border, var(--border));
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.app-record:last-child {
  margin-bottom: 0;
}
.app-record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.app-record-head time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.app-record-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.app-record-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}
.app-record-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 500px) {
  .app-record-body {
    grid-template-columns: 1fr;
  }
}
.app-record-field span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.app-record-field strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.app-export-wrap {
  margin-top: 24px;
}
.app-export-panel h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.app-export-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.app-export-tab {
  padding: 4px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-mono);
}
.app-export-tab.active {
  background: var(--tool-accent, var(--accent));
  color: var(--bg-deep);
  border-color: var(--tool-accent, var(--accent));
}
.app-export-content {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.app-copy-btn {
  margin-top: 12px;
  font-size: 12px;
  padding: 6px 16px;
}

/* ===== APP ICON STYLES ===== */
.app-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-icon-svg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-icon-svg svg {
  width: 24px;
  height: 24px;
}
.app-icon-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

/* ===== FEATURED PRODUCT CARD WITH APP ICON (iOS-style) ===== */
.featured-product-card.app-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.featured-product-card.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tool-glow, transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.featured-product-card.app-card > * {
  position: relative;
  z-index: 1;
}
.featured-product-card.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--tool-accent, var(--border-strong));
}
.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--tool-accent, var(--accent)), var(--tool-accent-soft, var(--accent-soft)));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px var(--tool-glow, var(--accent-glow));
}
.app-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
}
.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-card-top h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing:0;
  color: var(--text);
  margin: 0;
}
.app-card-body > p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card-cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tool-accent, var(--accent-soft));
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-card-cta span {
  font-size: 14px;
  transition: transform 0.2s ease;
}
.featured-product-card.app-card:hover .app-card-cta span {
  transform: translateX(3px);
}

/* Per-tool themed cards on home (uses [data-app-tool] attribute) */
.featured-product-card[data-app-tool="brew-saver"] {
  --tool-accent: #c8834b;
  --tool-accent-soft: #e8a86a;
  --tool-glow: rgba(200, 131, 75, 0.18);
  border-color: rgba(200, 131, 75, 0.2);
}
.featured-product-card[data-app-tool="tea-saver"] {
  --tool-accent: #5a9e6f;
  --tool-accent-soft: #7dba8e;
  --tool-glow: rgba(90, 158, 111, 0.18);
  border-color: rgba(90, 158, 111, 0.2);
}
.featured-product-card[data-app-tool="plant-saver"] {
  --tool-accent: #6b8f4e;
  --tool-accent-soft: #8aad6a;
  --tool-glow: rgba(107, 143, 78, 0.18);
  border-color: rgba(107, 143, 78, 0.2);
}
.featured-product-card[data-app-tool="warranty-saver"] {
  --tool-accent: #4a80c8;
  --tool-accent-soft: #6a9fe8;
  --tool-glow: rgba(74, 128, 200, 0.18);
  border-color: rgba(74, 128, 200, 0.2);
}

/* ----- Home hero simplified ----- */
.hero-card-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.hero-card-wrap .record-card {
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), var(--shadow-lg);
}

/* ----- Studio pills (compact studios section on home) ----- */
.studio-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.studio-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.studio-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}
.studio-pill-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.studio-pill-count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* ----- Blog feed (home latest articles) ----- */
.blog-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.blog-feed-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.blog-feed-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.blog-feed-card h3 {
  margin: 4px 0 4px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}
.blog-feed-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  flex-grow: 1;
}
.blog-feed-meta {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.section-foot-link {
  margin: 24px 0 0;
  text-align: center;
}

/* ----- Product hero with live demo (form/list on right) ----- */
.product-hero-with-demo {
  align-items: start;
  min-height: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}
.product-hero-with-demo .product-copy {
  position: sticky;
  top: 90px;
}
.product-hero-with-demo h1 {
  font-size: 46px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.product-hero-with-demo .lede {
  font-size: 17px;
  line-height: 1.65;
}
.product-hero-with-demo .product-mini-stats {
  margin-top: 22px;
}
.product-hero-with-demo .product-mini-stats div {
  min-height: 70px;
  padding: 12px;
}
.product-trust-pills {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-trust-pills .pill {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.product-demo-wrap {
  position: relative;
  border: 1px solid var(--tool-border, var(--border-strong));
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    var(--tool-bg, var(--bg-card));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.product-demo-wrap .product-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--tool-border, var(--border));
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-demo-wrap .product-window-bar strong {
  margin-left: 4px;
  flex-grow: 1;
  color: var(--tool-accent, var(--accent));
}
.product-demo-wrap .product-window-bar .badge {
  font-size: 10px;
}
.product-demo-wrap .app-tool {
  padding: 20px;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-demo-wrap .app-form-wrap,
.product-demo-wrap .app-list-wrap {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 18px;
}
.product-demo-wrap .app-form-title {
  font-size: 14px;
  margin-bottom: 14px;
}
.product-demo-wrap .app-field {
  margin-bottom: 12px;
}
.product-demo-wrap .app-field input,
.product-demo-wrap .app-field select,
.product-demo-wrap .app-field textarea {
  padding: 9px 12px;
  font-size: 13px;
}
.product-demo-wrap .app-form-actions {
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .product-hero-with-demo {
    grid-template-columns: 1fr;
  }
  .product-hero-with-demo .product-copy {
    position: static;
  }
}
@media (max-width: 800px) {
  .product-demo-wrap .app-tool {
    grid-template-columns: 1fr;
  }
}

/* ----- App form actions (Save + Try with example) ----- */
.app-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.app-form-actions .button.primary {
  margin-top: 0;
}
.app-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}

/* ----- App export panel (head + download buttons) ----- */
.app-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.app-export-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.app-export-downloads {
  display: flex;
  gap: 6px;
}
.app-export-downloads .button {
  font-size: 12px;
  padding: 4px 10px;
}

/* ----- Comparison section ----- */
.product-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.product-comparison-grid article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.product-comparison-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tool-accent, var(--accent));
}
.product-comparison-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ----- Use case grid wide ----- */
.product-usecase-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ----- Related + Blog combined section ----- */
.product-more-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
.product-more-grid .tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.product-blog-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-glow), transparent 60%), var(--bg-card);
  transition: transform 0.2s, border-color 0.2s;
}
.product-blog-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.product-blog-link h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.product-blog-link p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  flex-grow: 1;
}
.product-blog-link .label {
  align-self: flex-start;
}
.product-blog-cta {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.product-export-line {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.product-export-line strong {
  color: var(--text-soft);
  font-weight: 700;
}
.product-export-line span {
  margin-left: 4px;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-soft);
}
@media (max-width: 800px) {
  .product-more-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== APP-FIRST SAVER PRODUCT SYSTEM ===== */
.saver-product-main {
  max-width: none;
}

.saver-product-stage {
  width: min(1480px, calc(100% - 24px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 16px 0 24px;
  display: grid;
}

.saver-product-frame {
  overflow: hidden;
  height: calc(100vh - 104px);
  min-height: calc(100vh - 104px);
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--tool-accent, var(--accent)) 18%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent, var(--accent)) 8%, transparent), transparent 42%),
    var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.saver-product-bar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 84%, var(--tool-accent, var(--accent)) 6%);
}

.saver-product-dots {
  display: flex;
  gap: 7px;
}

.saver-product-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.saver-product-dots span:nth-child(1) { background: #d9896c; }
.saver-product-dots span:nth-child(2) { background: #d7b46d; }
.saver-product-dots span:nth-child(3) { background: #84aa7a; }

.saver-product-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.saver-product-title span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.saver-product-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.saver-product-bar-actions span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.saver-product-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100% - 54px);
  min-height: 0;
  overflow: hidden;
}

.saver-product-body > * {
  min-height: 0;
}

.saver-product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tool-accent, var(--accent)) 9%, transparent), transparent 52%),
    color-mix(in srgb, var(--bg-soft) 82%, transparent);
}

.saver-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.saver-product-breadcrumb a {
  color: var(--tool-accent, var(--accent));
}

.saver-product-kicker {
  width: fit-content;
  margin-top: 12px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--tool-accent, var(--accent)) 28%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--tool-accent, var(--accent)) 10%, transparent);
  color: var(--tool-accent, var(--accent));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.saver-product-sidebar h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.saver-product-sidebar .lede {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.saver-product-claim {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-card) 74%, transparent);
}

.saver-product-claim span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.saver-product-claim strong {
  color: var(--text);
  line-height: 1.45;
}

.saver-product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.saver-product-meta div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-card) 76%, transparent);
}

.saver-product-meta span,
.saver-metrics span,
.saver-guide > span,
.saver-panel-head span,
.saver-best-card > span,
.saver-insight-stack article > span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.saver-product-meta strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.saver-product-app {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--tool-accent, var(--accent)) 9%, transparent), transparent 34%),
    var(--bg);
}

.saver-product-app > [data-app-tool],
.saver-product-app > astro-island {
  display: block;
  height: 100%;
  min-height: 0;
}

/* ===== WARRANTY SAVER RECEIPT WALLET ===== */
body:has(.warranty-wallet-main) .site-header,
body:has(.warranty-wallet-main) .site-footer {
  display: none;
}

.warranty-wallet-main {
  max-width: none;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(92, 128, 78, .12), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, #f5f2ea 100%);
}

.warranty-wallet-stage {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(420px, 560px);
  gap: 48px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 42px 28px;
}

.warranty-wallet-copy {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.warranty-wallet-copy .label {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid #d9e2d5;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: #356434;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.warranty-wallet-copy h1 {
  margin: 0;
  color: #10251d;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.warranty-wallet-copy p {
  margin: 0;
  max-width: 48ch;
  color: #56645b;
  font-size: 17px;
  line-height: 1.7;
}

.warranty-wallet-proof-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.warranty-wallet-proof-points span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e0ded6;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #2d3c34;
  font-size: 13px;
  font-weight: 800;
}

.warranty-phone-shell {
  width: min(390px, 100%);
  min-height: 844px;
  overflow: hidden;
  border: 1px solid rgba(29,42,35,.12);
  border-radius: 34px;
  background: #fbfaf6;
  box-shadow: 0 34px 90px -44px rgba(17, 37, 29, .42);
}

.wallet-app {
  --wallet-green: #35733f;
  --wallet-ink: #10251d;
  --wallet-muted: #6f776f;
  --wallet-line: #e3dfd5;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 844px;
  min-height: 844px;
  padding: 44px 22px 112px;
  background:
    radial-gradient(circle at 20% 0%, rgba(84, 122, 76, .1), transparent 34%),
    #fbfaf6;
  color: var(--wallet-ink);
  font-family: Inter, system-ui, sans-serif;
}

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

.wallet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.wallet-topbar span {
  display: block;
  margin-bottom: 4px;
  color: #738075;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.wallet-app-title {
  display: block;
  margin: 0;
  color: var(--wallet-ink);
  font-size: 31px;
  font-weight: 850;
  letter-spacing: 0;
}

.wallet-topbar button,
.wallet-section-head button,
.wallet-sheet-head button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #29352f;
  cursor: pointer;
}

.wallet-topbar svg,
.wallet-section-head svg,
.wallet-tabbar svg,
.wallet-search svg,
.wallet-sheet svg {
  width: 22px;
  height: 22px;
}

.wallet-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  margin-bottom: 18px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  color: #8a8e89;
}

.wallet-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wallet-ink);
  font: inherit;
  font-size: 15px;
}

.wallet-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
  border: 1px solid #e3ded3;
  border-radius: 8px;
  background: rgba(255,255,255,.68);
}

.wallet-metric {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 18px 8px 16px;
  text-align: center;
}

.wallet-metric + .wallet-metric {
  border-left: 1px solid #e8e2d7;
}

.wallet-metric-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
}

.wallet-metric-icon svg {
  width: 24px;
  height: 24px;
}

.wallet-metric span:not(.wallet-metric-icon) {
  min-height: 28px;
  color: #29352f;
  font-size: 13px;
  font-weight: 750;
}

.wallet-metric strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

.wallet-metric-covered .wallet-metric-icon {
  background: #eef5eb;
  color: #2e6b34;
}

.wallet-metric-covered strong { color: #2e6b34; }

.wallet-metric-warning .wallet-metric-icon {
  background: #fff4dd;
  color: #b47705;
}

.wallet-metric-warning strong { color: #b47705; }

.wallet-metric-missing .wallet-metric-icon {
  background: #fff0ee;
  color: #c54a45;
}

.wallet-metric-missing strong { color: #c54a45; }

.wallet-list-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.wallet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.wallet-section-head h2 {
  margin: 0;
  color: var(--wallet-ink);
  font-size: 20px;
  letter-spacing: 0;
}

.wallet-section-head button {
  width: auto;
  gap: 6px;
  padding: 0;
  color: var(--wallet-green);
  font-size: 13px;
  font-weight: 800;
}

.wallet-section-head button svg {
  width: 18px;
  height: 18px;
}

.wallet-products {
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid #e3ded3;
  border-radius: 8px;
  background: rgba(255,255,255,.74);
}

.wallet-product-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto 18px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid #eae4da;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.wallet-product-row:last-child {
  border-bottom: 0;
}

.wallet-product-row img {
  width: 104px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f3ef;
}

.wallet-product-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wallet-product-main > strong {
  overflow: hidden;
  color: #0b1712;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.wallet-status svg {
  width: 16px;
  height: 16px;
}

.wallet-status-covered {
  border-color: #dce8d8;
  background: #f1f7ee;
  color: #2e6b34;
}

.wallet-status-warning {
  border-color: #f2d7a1;
  background: #fff6e6;
  color: #a36700;
}

.wallet-status-missing,
.wallet-status-expired {
  border-color: #f1c6c1;
  background: #fff1ef;
  color: #b8433e;
}

.wallet-status-claim {
  border-color: #cad9ed;
  background: #eef4fb;
  color: #376797;
}

.wallet-date {
  display: grid;
  gap: 2px;
  color: #0f1814;
  font-size: 15px;
  font-weight: 800;
}

.wallet-date small,
.wallet-proof-block small {
  color: #777a75;
  font-size: 11px;
  font-weight: 650;
}

.wallet-proof-block {
  display: grid;
  gap: 8px;
  align-self: end;
  min-width: 82px;
}

.wallet-proof-block > span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wallet-proof-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #dfdbd2;
  border-radius: 999px;
  background: #f7f5f0;
  color: #83847f;
}

.wallet-proof-dot svg {
  width: 14px;
  height: 14px;
}

.wallet-proof-dot.is-ready {
  border-color: #3c7a40;
  background: #3c7a40;
  color: #fff;
}

.wallet-chevron {
  color: #6d716c;
}

.wallet-privacy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--wallet-green);
  font-size: 13px;
  font-weight: 750;
}

.wallet-privacy svg {
  width: 16px;
  height: 16px;
}

.wallet-tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: 88px;
  padding: 8px 12px 16px;
  border-top: 1px solid #e5e0d7;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}

.wallet-tabbar button {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #858985;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.wallet-tabbar button.is-active {
  color: var(--wallet-green);
}

.wallet-tabbar .is-add {
  position: relative;
  top: -20px;
}

.wallet-tabbar .is-add svg {
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 999px;
  background: var(--wallet-green);
  color: #fff;
  box-shadow: 0 12px 28px -18px #173b1d;
}

.wallet-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  background: rgba(16,37,29,.24);
}

.wallet-sheet {
  width: 100%;
  max-height: 86%;
  overflow: auto;
  padding: 18px 18px 24px;
  border-radius: 16px 16px 0 0;
  background: #fffdf8;
  box-shadow: 0 -24px 80px -42px rgba(16, 37, 29, .55);
}

.wallet-sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet-sheet-head span {
  display: block;
  margin-bottom: 4px;
  color: #718071;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.wallet-sheet-head h2 {
  margin: 0;
  color: var(--wallet-ink);
  font-size: 24px;
}

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

.wallet-field {
  display: grid;
  gap: 6px;
  color: #4f5a53;
  font-size: 12px;
  font-weight: 800;
}

.wallet-field-wide {
  grid-column: 1 / -1;
}

.wallet-field input,
.wallet-field textarea {
  width: 100%;
  border: 1px solid #dfd9cf;
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--wallet-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.wallet-field input {
  min-height: 42px;
  padding: 0 11px;
}

.wallet-field textarea {
  resize: vertical;
  padding: 10px 11px;
}

.wallet-primary,
.wallet-ghost {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.wallet-primary {
  grid-column: 1 / -1;
  border: 0;
  background: var(--wallet-green);
  color: #fff;
}

.wallet-ghost {
  border: 1px solid #dfd9cf;
  background: transparent;
  color: #5f6b62;
}

.wallet-detail-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.wallet-detail-hero img {
  width: 116px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f3ef;
}

.wallet-detail-hero div {
  display: grid;
  gap: 7px;
}

.wallet-detail-hero strong {
  color: #0d1813;
  font-size: 24px;
  line-height: 1;
}

.wallet-detail-hero small {
  color: #6f776f;
  font-size: 13px;
}

.wallet-proof-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.wallet-proof-checklist div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #e2ddd3;
  border-radius: 8px;
  color: #5e6860;
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.wallet-proof-checklist div.is-ready {
  border-color: #d8e6d5;
  background: #f2f8ef;
  color: #2e6b34;
}

.wallet-claim-packet {
  overflow: auto;
  max-height: 190px;
  padding: 13px;
  border: 1px solid #e1dbd1;
  border-radius: 8px;
  background: #fbfaf6;
  color: #26332b;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.wallet-detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.wallet-settings-list {
  display: grid;
  gap: 8px;
}

.wallet-settings-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #e1dbd1;
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--wallet-ink);
  text-align: left;
  cursor: pointer;
}

.wallet-settings-list small {
  display: block;
  margin-top: 2px;
  color: #6f776f;
}

.wallet-empty {
  padding: 24px 18px;
  color: #5f6a62;
}

.wallet-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--wallet-ink);
}

.wallet-sheet-note {
  margin: 14px 0 0;
  color: #6f776f;
  font-size: 13px;
  line-height: 1.5;
}

.warranty-wallet-seo {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

@media (max-width: 900px) {
  .warranty-wallet-stage {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .warranty-wallet-copy {
    display: none;
  }

  .warranty-phone-shell {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .wallet-app {
    height: 100vh;
    min-height: 100vh;
    padding-top: 34px;
  }
}

@media (max-width: 420px) {
  .wallet-app {
    overflow-x: hidden;
    padding-right: 14px;
    padding-left: 14px;
  }

  .wallet-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallet-metric {
    padding: 16px 4px 14px;
  }

  .wallet-metric-icon {
    width: 42px;
    height: 42px;
  }

  .wallet-metric span:not(.wallet-metric-icon) {
    font-size: 11px;
  }

  .wallet-metric strong {
    font-size: 29px;
  }

  .wallet-product-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding-right: 10px;
    padding-left: 10px;
    overflow: hidden;
  }

  .wallet-product-row img {
    width: 84px;
  }

  .wallet-proof-block {
    grid-column: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .wallet-proof-block > span {
    justify-content: flex-end;
  }

  .wallet-chevron {
    display: none;
  }

  .wallet-proof-dot {
    width: 22px;
    height: 22px;
  }

  .wallet-proof-dot svg {
    width: 12px;
    height: 12px;
  }

  .wallet-form {
    grid-template-columns: 1fr;
  }
}

.saver-app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, var(--tool-accent, var(--accent)) 5%), var(--bg-card)),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.saver-app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: 18px;
  align-items: end;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.saver-app-title > span {
  display: block;
  margin-bottom: 7px;
  color: var(--tool-accent, var(--accent));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.saver-app-title h2 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.saver-app-title p {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

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

.saver-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 76%, transparent);
}

.saver-metrics strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saver-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
}

.saver-tabs button,
.saver-export-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.saver-tabs button:hover,
.saver-tabs button.is-active,
.saver-export-tabs button:hover,
.saver-export-tabs button.is-active {
  border-color: var(--border);
  background: var(--bg-card);
  color: var(--tool-accent, var(--accent));
}

.saver-panels {
  min-height: 0;
  overflow: auto;
}

.saver-panel {
  display: none;
  padding: 20px;
}

.saver-panel.is-active {
  display: block;
}

.saver-capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 18px;
  align-items: start;
}

.saver-fieldset {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.saver-fieldset legend {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

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

.saver-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.saver-field-wide,
.saver-field-textarea {
  grid-column: 1 / -1;
}

.saver-field span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
}

.saver-field em {
  color: var(--red, #ef4444);
  font-style: normal;
}

.saver-field input,
.saver-field select,
.saver-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 86%, var(--bg-card) 14%);
  color: var(--text);
  outline: none;
}

.saver-field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.55;
}

.saver-field input:focus,
.saver-field select:focus,
.saver-field textarea:focus {
  border-color: var(--tool-accent, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tool-accent, var(--accent)) 15%, transparent);
}

.saver-field-error {
  border-color: var(--red, #ef4444) !important;
}

.saver-form-actions,
.saver-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.saver-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.saver-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.saver-primary {
  border-color: var(--tool-accent, var(--accent));
  background: var(--tool-accent, var(--accent));
  color: var(--tool-button-text, #fff);
}

.saver-ghost:hover,
.saver-button:hover:not(:disabled) {
  border-color: var(--tool-accent, var(--accent));
}

.saver-guide,
.saver-best-card,
.saver-insight-stack article,
.saver-record,
.saver-panel-head {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-soft) 76%, transparent);
}

.saver-guide {
  padding: 18px;
}

.saver-guide h3,
.saver-panel-head h3,
.saver-insight-stack h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.saver-guide p,
.saver-insight-stack p,
.saver-best-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.62;
}

.saver-template {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.saver-template div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: var(--bg-card);
}

.saver-template span,
.saver-record-grid span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.saver-template strong,
.saver-record-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  line-height: 1.42;
}

.saver-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.saver-panel-head h3 {
  margin-bottom: 0;
}

.saver-record-list {
  display: grid;
  gap: 10px;
}

.saver-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  text-align: center;
}

.saver-empty strong {
  color: var(--text);
}

.saver-empty p {
  max-width: 360px;
  margin: 8px 0 0;
  font-size: 14px;
}

.saver-record {
  padding: 14px;
}

.saver-record.is-favorite {
  border-color: color-mix(in srgb, var(--tool-accent, var(--accent)) 48%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent, var(--accent)) 10%, transparent), transparent 60%),
    color-mix(in srgb, var(--bg-soft) 72%, transparent);
}

.saver-record-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.saver-record-head h3 {
  margin: 3px 0 4px;
  color: var(--text);
  font-size: 17px;
}

.saver-record-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.saver-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.saver-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.saver-status small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}

.saver-status-ok {
  border-color: color-mix(in srgb, #3d8b5f 34%, var(--border));
  background: color-mix(in srgb, #3d8b5f 10%, #fff);
  color: #2f704d;
}

.saver-status-warn {
  border-color: color-mix(in srgb, #b7791f 36%, var(--border));
  background: color-mix(in srgb, #d69e2e 12%, #fff);
  color: #8a5a12;
}

.saver-status-danger {
  border-color: color-mix(in srgb, #b85c55 38%, var(--border));
  background: color-mix(in srgb, #b85c55 12%, #fff);
  color: #8f3d36;
}

.saver-status-neutral {
  border-color: var(--border);
  background: color-mix(in srgb, var(--tool-accent, var(--accent)) 5%, #fff);
  color: var(--text-soft);
}

.saver-record-actions button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.saver-record-actions button:hover {
  border-color: var(--tool-accent, var(--accent));
  color: var(--text);
}

.saver-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.saver-record-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--bg-card);
}

.saver-mode-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr);
  gap: 14px;
  padding: 14px;
  margin: 0 0 14px;
  border: 1px solid color-mix(in srgb, var(--tool-accent, var(--accent)) 14%, var(--border));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent, var(--accent)) 8%, transparent), transparent 55%),
    rgba(255,255,255,.62);
}

.saver-mode-dashboard.empty {
  display: block;
}

.saver-mode-dashboard > div:first-child span {
  display: block;
  margin-bottom: 7px;
  color: var(--tool-accent, var(--accent));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.saver-mode-dashboard > div:first-child strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.02em;
}

.saver-mode-dashboard > div:first-child p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.saver-dashboard-list {
  display: grid;
  gap: 8px;
}

.saver-dashboard-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.saver-dashboard-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saver-dashboard-list small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.saver-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.saver-filter-row button {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.saver-filter-row button span {
  color: var(--text-muted);
  font-weight: 850;
}

.saver-filter-row button:hover,
.saver-filter-row button.is-active {
  border-color: var(--tool-accent, var(--accent));
  background: color-mix(in srgb, var(--tool-accent, var(--accent)) 9%, #fff);
  color: var(--text);
}

.saver-insight-layout,
.saver-export-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.saver-best-card,
.saver-insight-stack article {
  padding: 16px;
}

.saver-insight-stack {
  display: grid;
  gap: 10px;
}

.saver-review-prompts ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
}

.saver-export-actions {
  align-content: start;
  margin: 0;
}

.saver-export-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.saver-export-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 76%, transparent);
}

.saver-export-preview pre {
  max-height: 430px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: var(--text-soft);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.saver-appendix {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.saver-appendix-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: start;
}

.saver-example-grid {
  display: grid;
  gap: 12px;
}

.saver-record-example {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.saver-record-example h3 {
  margin: 0 0 12px;
  color: var(--text);
}

.saver-record-example dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.saver-record-example dt,
.saver-record-example dd {
  margin: 0;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.saver-record-example dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.saver-record-example dd {
  color: var(--text);
  font-size: 13px;
}

.saver-record-example p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .saver-product-frame {
    height: auto;
    min-height: 0;
  }

  .saver-product-body {
    height: auto;
    min-height: 0;
  }

  .saver-app {
    height: auto;
  }

  .saver-panels {
    overflow: visible;
  }

  .saver-product-body,
  .saver-app-header,
  .saver-capture-layout,
  .saver-insight-layout,
  .saver-export-grid,
  .saver-appendix-grid {
    grid-template-columns: 1fr;
  }

  .saver-product-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .footer-bottom {
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .saver-product-stage {
    width: 100%;
    padding: 0;
  }

  .saver-product-frame {
    min-height: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .saver-product-bar {
    grid-template-columns: 1fr auto;
  }

  .saver-product-dots {
    display: none;
  }

  .saver-product-title {
    justify-content: flex-start;
  }

  .saver-product-bar-actions span:last-child {
    display: none;
  }

  .saver-product-sidebar,
  .saver-product-app,
  .saver-panel,
  .saver-app-header {
    padding: 16px;
  }

  .saver-product-app {
    order: -1;
    max-height: none;
  }

  .saver-product-sidebar {
    border-top: 1px solid var(--border);
    border-bottom: 0;
  }

  .saver-product-meta,
  .saver-metrics,
  .saver-field-grid,
  .saver-record-grid,
  .saver-mode-dashboard,
  .saver-dashboard-list article {
    grid-template-columns: 1fr;
  }

  .saver-tabs {
    overflow-x: auto;
  }

  .saver-tabs button {
    flex: 0 0 auto;
  }

  .saver-record-head,
  .saver-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .saver-appendix {
    width: min(100% - 28px, 1200px);
    padding: 48px 0;
  }
}

.labs-product-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--border, #e6dccd);
  border-radius: 20px;
  background: rgba(255, 253, 248, .8);
}

.labs-product-banner strong {
  display: block;
  color: var(--text, #26231f);
  font-size: 16px;
}

.labs-product-banner span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted, #6f685e);
  font-size: 14px;
}

@media (max-width: 720px) {
  .labs-product-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
