/* GTA 6 Money — Leonida Cash Ledger Design System */
:root {
  --bg: #f3f6f1;
  --card: #ffffff;
  --surface: #edf2ea;
  --ink: #14221a;
  --muted: #516358;
  --border: #d5dfd2;
  --accent: #15803d;
  --accent-dark: #116631;
  --gold: #7c4f05;
  --gold-soft: #fdf6e4;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 34, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 34, 26, 0.06);
  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.g6m-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
body.g6m-has-dock { padding-bottom: 76px; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.g6m-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.g6m-skip:focus { left: 16px; }

.g6m-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.g6m-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.g6m-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.g6m-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.g6m-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.g6m-brand-copy strong { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: 0.01em; }
.g6m-brand-copy small { font-size: 12px; color: var(--muted); font-weight: 500; }

.g6m-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.g6m-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.g6m-nav a:hover { background: var(--surface); color: var(--accent-dark); }
.g6m-nav a[aria-current="page"] { background: var(--accent); color: #ffffff; }

/* Hero & Banknote Ticker */
.g6m-hero, .g6m-sub-hero {
  padding: 16px 0 12px;
}
.g6m-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.g6m-ticker strong { color: var(--ink); }
.g6m-ticker-serial {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 6px;
}

.g6m-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.g6m-crumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.g6m-crumbs a:hover { color: var(--accent); }

h1 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.14;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
  max-width: 26ch;
}
h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--ink);
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.g6m-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 68ch;
}
.g6m-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* Visual Payout Bar Chart */
.g6m-chart {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.g6m-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.g6m-chart-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.g6m-chart-row:last-child { margin-bottom: 0; }
.g6m-chart-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g6m-chart-track { height: 14px; background: var(--surface); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.g6m-chart-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.25s ease; }
.g6m-chart-fill.is-top { background: var(--accent); }
.g6m-chart-val { text-align: right; font-weight: 700; color: var(--accent-dark); }

/* Play-Along Session Run-Sheet (Dwell-Time Engine) */
.g6m-plan {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.g6m-plan-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.g6m-plan-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.g6m-plan-bar { height: 10px; background: var(--surface); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.g6m-plan-fill { height: 100%; background: var(--accent); transition: width 0.2s ease; }
.g6m-plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g6m-plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.g6m-plan-item.is-done { background: var(--surface); border-color: var(--accent); text-decoration: line-through; color: var(--muted); }
.g6m-plan-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g6m-plan-left input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

.g6m-ad-mid {
  margin: 22px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.g6m-ad-mid .g6m-ad-placeholder { width: 728px; max-width: 100%; height: 90px; }
.g6m-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.g6m-kicker.is-danger { color: var(--danger); }

/* Lean 2-Slot High-CPM Centered Layout (Slot 1 Top 728x90 / Mobile 320x50 + Slot 2 NativeBanner) */
.g6m-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.g6m-rail-left, .g6m-rail-right, .g6m-ad-dock, [data-g6m-ad-slot="inline-result"], [data-g6m-ad-slot="mid-728"] { display: none !important; }
.g6m-rail-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.g6m-main-col { min-width: 0; }

/* Interactive Tool Card */
.g6m-tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
}
.g6m-tool-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.g6m-tool-title { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; }
.g6m-tool-sub { font-size: 14px; color: var(--muted); margin: 0; }

.g6m-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.g6m-field { display: flex; flex-direction: column; gap: 6px; }
.g6m-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.g6m-select, .g6m-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.g6m-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.g6m-pill {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.g6m-pill:hover { border-color: var(--accent); color: var(--accent); }
.g6m-pill.is-active { background: var(--accent); border-color: var(--accent); color: #ffffff; }

.g6m-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
.g6m-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}
.g6m-toggle input { width: 17px; height: 17px; accent-color: var(--accent); }

/* Summary Verdict KPI Row */
.g6m-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.g6m-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
}
.g6m-kpi.is-primary {
  background: var(--surface);
  border-color: var(--accent);
}
.g6m-kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.g6m-kpi-val { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.g6m-kpi.is-primary .g6m-kpi-val { color: var(--accent-dark); }
.g6m-kpi-sub { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

/* Ledger Table */
.g6m-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.g6m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.g6m-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.g6m-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.g6m-table tbody tr:last-child td { border-bottom: 0; }
.g6m-table tbody tr:hover { background: var(--bg); }
.g6m-method-name { font-weight: 700; color: var(--ink); display: block; }
.g6m-method-meta { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.g6m-rate { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

.g6m-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.g6m-tag.is-green { background: var(--surface); color: var(--accent-dark); }
.g6m-tag.is-gold { background: var(--gold-soft); color: var(--gold); }
.g6m-tag.is-red { background: var(--danger-soft); color: var(--danger); }
.g6m-tag.is-gray { background: var(--surface); color: var(--muted); }

.g6m-alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.g6m-alert.is-danger {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
}
.g6m-alert.is-gold {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* Sections */
.g6m-section { margin: 48px 0; }

/* Asymmetric Wipe Warning Grid */
.g6m-wipe-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--danger);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.g6m-wipe-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.g6m-mini-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.g6m-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--border);
}
.g6m-status-row.is-safe strong { color: var(--accent-dark); }
.g6m-status-row.is-lost strong { color: var(--danger); }

.g6m-wipe-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.g6m-wipe-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Numbered Progression Timeline */
.g6m-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.g6m-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.g6m-step-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g6m-step-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* 2x2 Utility Hub Grid */
.g6m-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.g6m-hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.g6m-hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.g6m-hub-card p { margin: 0; font-size: 14px; color: var(--muted); }
.g6m-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.g6m-badge.is-gold { background: var(--gold-soft); color: var(--gold); }

/* Safe Codes Widget */
.g6m-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.g6m-code-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g6m-code-card.is-done { opacity: 0.72; background: var(--surface); }
.g6m-code-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g6m-code-digits {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}
.g6m-code-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }

/* Buttons */
.g6m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.g6m-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff; }
.g6m-btn.is-outline { background: var(--card); color: var(--accent); }
.g6m-btn.is-outline:hover { background: var(--surface); color: var(--accent-dark); }
.g6m-btn.is-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* Prose Article */
.g6m-prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.g6m-prose > * { max-width: 70ch; }
.g6m-prose h2 { margin-top: 32px; }
.g6m-prose h2:first-child { margin-top: 0; }
.g6m-prose h3 { margin-top: 22px; }
.g6m-prose ul, .g6m-prose ol { padding-left: 22px; }
.g6m-prose li { margin-bottom: 8px; }
.g6m-prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.g6m-prose th, .g6m-prose td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.g6m-prose th { background: var(--surface); font-weight: 700; }
.g6m-prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 8px 8px 0;
}

/* FAQ Accordion */
.g6m-faq-list { display: flex; flex-direction: column; gap: 10px; }
.g6m-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.g6m-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
}
.g6m-faq-item summary::-webkit-details-marker { display: none; }
.g6m-faq-icon { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.g6m-faq-item[open] .g6m-faq-icon { transform: rotate(45deg); }
.g6m-faq-item p { margin: 12px 0 0; color: var(--muted); max-width: 68ch; }

/* Comments & Like */
.g6m-comments {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.g6m-comments-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.g6m-engage-bar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.g6m-like-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.g6m-like-btn[data-gf-liked], .g6m-like-btn[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.g6m-comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.g6m-comment-form input, .g6m-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
}
.g6m-comment-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.g6m-form-msg { font-size: 13px; color: var(--muted); }
.g6m-comment-list { display: flex; flex-direction: column; gap: 10px; }
.g6m-comment-list[data-gf-empty]::after {
  content: "No player reports yet — share a verified payout or patch update above.";
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.g6m-comment-item {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.g6m-comment-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.g6m-comment-meta strong { color: var(--ink); }
.g6m-owner-tag { display: none; font-size: 12px; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #ffffff; }
.g6m-comment-item[data-gf-owner] .g6m-owner-tag { display: inline-block; }

/* Right Rail Card */
.g6m-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.g6m-side-title { font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.g6m-side-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.g6m-side-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.g6m-side-links a:hover { color: var(--accent); text-decoration: underline; }

/* High-RPM Zero-Overlap Ad Slots */
.g6m-ad-top {
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.g6m-ad-box, .g6m-ad-native, .g6m-ad-inline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.g6m-ad-native { margin: 20px 0; }
.g6m-ad-native > div[id^="container-"] { width: 100%; max-width: 100%; min-width: 0; }
.g6m-ad-inline { margin: 16px 0 18px; }
[data-g6m-ad-slot="right-300-2"] { display: none !important; }
.g6m-ad-top.is-pending,
.g6m-ad-box.is-pending,
.g6m-ad-native.is-pending,
.g6m-ad-inline.is-pending,
.g6m-ad-mid.is-pending {
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}
.g6m-ad-top.is-filled,
.g6m-ad-native.is-filled,
.g6m-ad-inline.is-filled,
.g6m-ad-mid.is-filled {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 12px 10px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.g6m-ad-label {
  display: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.is-filled > .g6m-ad-label { display: block; }
.g6m-ad-placeholder {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px dashed var(--accent);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g6m-ad-top .g6m-ad-placeholder { width: 728px; max-width: 100%; height: 90px; }
.g6m-ad-160 .g6m-ad-placeholder { width: 160px; height: 600px; }
.g6m-ad-300 .g6m-ad-placeholder { width: 300px; height: 250px; }

.g6m-ad-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(20, 34, 26, 0.06);
  padding: 6px 36px 6px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.g6m-ad-dock.is-visible { transform: translateY(0); }
.g6m-ad-dock-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.g6m-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.g6m-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.g6m-footer-logo { font-family: var(--font-display); font-size: 24px; color: var(--ink); text-decoration: none; }
.g6m-footer-brand p { font-size: 14px; color: var(--muted); max-width: 44ch; }
.g6m-footer-note { font-size: 12px; }
.g6m-footer-head { font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.g6m-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.g6m-footer-col a { color: var(--muted); text-decoration: none; }
.g6m-footer-col a:hover { color: var(--accent); }
.g6m-footer-actions { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.g6m-share-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.g6m-share-msg { font-size: 13px; color: var(--accent-dark); }
.g6m-footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* 404 */
.g6m-notfound { padding: 64px 20px; }
.g6m-404-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.g6m-noscript {
  padding: 16px;
  border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  font-size: 14px;
}

/* Responsive Breakpoints */
@media (min-width: 1024px) {
  body.g6m-no-left-rail .g6m-shell { grid-template-columns: minmax(0, 1fr) 300px; max-width: 1180px; }
  body.g6m-no-left-rail .g6m-rail-left { display: none; }
  .g6m-ad-dock { display: none !important; }
  body.g6m-has-dock { padding-bottom: 0; }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  .g6m-shell { grid-template-columns: minmax(0, 1fr) 300px; max-width: 1180px; }
  .g6m-rail-left { display: none; }
}
@media (max-width: 1023px) {
  .g6m-shell,
  body.g6m-no-left-rail .g6m-shell { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
  .g6m-rail-left,
  .g6m-rail-right { display: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .g6m-container, .g6m-shell { padding-left: 16px; padding-right: 16px; }
  .g6m-header-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; gap: 8px; }
  .g6m-nav { gap: 4px; }
  .g6m-nav a { padding: 6px 9px; font-size: 13px; }
  .g6m-tool-card, .g6m-prose, .g6m-wipe-grid { padding: 18px 16px; min-width: 0; max-width: 100%; }
  .g6m-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .g6m-code-card { min-width: 0; }
  .g6m-controls-grid, .g6m-kpi-row, .g6m-wipe-grid, .g6m-grid-2, .g6m-code-grid, .g6m-footer-grid, .g6m-wipe-calc, .g6m-plan-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .g6m-chart-row { grid-template-columns: 112px minmax(0, 1fr) 78px; font-size: 12px; }
  .g6m-btn { width: 100%; }
  .g6m-step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
