/* Aquascape planner (private preview). Builds on stocking-calculator-v2.css
   for the shared look (bar, cards, chips, segments, buttons, toast). */

body.aq { background: radial-gradient(1200px 500px at 50% -120px, #e3f1f3 0%, var(--bg) 70%) var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aq-main { max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 28px) 72px; }
.aq-intro { padding: 26px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.aq-intro h1 { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 6px; }
.aq-intro p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 60em; }

.aq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 316px; grid-template-areas: "side center palette"; gap: 16px; align-items: start; }
.aq-side { grid-area: side; display: grid; gap: 14px; }
.aq-center { grid-area: center; display: grid; gap: 14px; min-width: 0; }
.aq-palette { grid-area: palette; position: sticky; top: calc(var(--bar-h) + 12px); max-height: calc(100vh - var(--bar-h) - 24px); display: flex; flex-direction: column; padding: 12px; }
.aq .sp-card { border-radius: 14px; border-color: #e3eaee; box-shadow: 0 1px 2px rgba(12, 30, 43, 0.04), 0 10px 30px -18px rgba(12, 30, 43, 0.18); }
.aq-card { padding: 16px; }
.aq .sp-label { font-size: 0.66rem; letter-spacing: 0.16em; margin-bottom: 10px; }

/* Setup */
.aq-field select { width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 34px 9px 11px; font: 600 0.86rem var(--sans); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23647787' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.aq-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.aq-custom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.aq-custom .sp-field input { width: 100%; padding: 7px 8px; }
.aq .sp-hint { font-size: 0.76rem; }
.aq-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.aq-opt-label { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.aq-opt .sp-seg button { padding: 5px 10px; font-size: 0.76rem; }
.aq-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.aq-style { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 10px; text-align: left; transition: border-color .15s, background .15s; }
.aq-style:hover { border-color: #b9d8de; background: #fbfefe; }
.aq-style-name { font: 700 0.84rem var(--sans); color: var(--ink); }
.aq-style-tag { font-size: 0.7rem; color: var(--muted); }
.aq-style.is-on { background: var(--ink); border-color: var(--ink); }
.aq-style.is-on .aq-style-name { color: #fff; }
.aq-style.is-on .aq-style-tag { color: #a9c3cc; }
.aq-style-guide { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.aq-blurb { margin: 0 0 8px; font-size: 0.84rem; line-height: 1.5; color: var(--ink-2); }
.aq-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.aq-tips li { position: relative; padding-left: 14px; }
.aq-tips li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.aq-tpl { width: 100%; margin-top: 14px !important; }
.aq-regions { margin: 6px 0 10px; }

/* The tank */
.aq-stage-card { padding: 12px 14px 14px; }
.aq-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.aq-age button { padding: 5px 11px; font-size: 0.76rem; }
.aq-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aq-tgroup { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 2px; gap: 2px; }
.aq-tool { border: 0; background: transparent; border-radius: 8px; height: 30px; padding: 0 10px; font: 700 0.74rem var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.aq-tool.aq-icon { width: 30px; padding: 0; }
.aq-tool:hover:not(:disabled) { background: var(--panel); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.aq-tool:disabled { opacity: 0.35; }
.aq-tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.aq-tool[aria-pressed="true"] { background: var(--panel); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.aq-tools > .aq-tool { border: 1px solid var(--line); background: var(--panel); }
.aq-danger:hover:not(:disabled) { color: var(--bad) !important; }
.aq-tank { position: relative; padding: 0 6px; }
.aq-stage { position: relative; width: 100%; aspect-ratio: 1.8; border-radius: 6px 6px 3px 3px; overflow: hidden; background: linear-gradient(180deg, var(--water-1), var(--water-2)); touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 1px rgba(20, 40, 46, 0.55), 0 18px 30px -18px rgba(12, 30, 43, 0.55); }
.aq-stage .sp-tank-cv { cursor: default; }
.aq-stage.is-drop { box-shadow: 0 0 0 2px var(--accent), 0 18px 30px -18px rgba(12, 30, 43, 0.55); }
.aq-cabinet { height: 14px; margin: 0 -6px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #2a3237 0%, #1b2125 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 18px -12px rgba(12, 30, 43, 0.6); }
.aq-stage-hint { margin: 10px 0 0; font-size: 0.74rem; color: var(--muted); text-align: center; }

/* Inspector */
.aq-inspector { margin-top: 12px; border: 1px solid #d5e7eb; border-radius: 12px; padding: 12px 14px; background: linear-gradient(180deg, #f7fbfc, #fff); }
.aq-ins-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.aq-ins-head > div { min-width: 0; }
.aq-ins-head .sp-x { flex: none; }
.aq-ins-title { margin: 0; font-weight: 800; font-size: 0.98rem; }
.aq-ins-meta { margin: 2px 0 0; font-size: 0.76rem; color: var(--muted); }
.aq-ins-advice { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.78rem; }
.aq-ins-advice li { padding: 5px 9px; border-radius: 8px; }
.aq-ins-advice .is-warn { background: var(--warn-soft); color: #7a4810; }
.aq-ins-advice .is-ok { background: var(--ok-soft); color: var(--ok); }
.aq-ins-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.aq-ins-controls .sp-seg button { padding: 5px 10px; font-size: 0.76rem; }
.aq-range { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; color: var(--ink-2); }
.aq-range input { width: 150px; accent-color: var(--accent); }
.aq-range output { min-width: 4.5em; font-weight: 600; color: var(--muted); }
.aq-ins-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.aq-ins-btns .sp-btn { padding: 6px 11px; font-size: 0.76rem; }
.aq-del { color: var(--bad); }
.aq-del:hover { background: var(--bad-soft); border-color: transparent; }

/* Style check and shopping list */
.aq-panels { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; align-items: start; }
.aq-check-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.aq-check-head .sp-label { margin-bottom: 3px; }
.aq-ring { position: relative; width: 60px; height: 60px; flex: none; }
.aq-ring svg { width: 100%; height: 100%; }
.aq-ring circle { fill: none; stroke-width: 6; }
.aq-ring-bg { stroke: var(--line-2); }
.aq-ring-fg { stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.aq-ring-ok .aq-ring-fg { stroke: var(--ok); }
.aq-ring-warn .aq-ring-fg { stroke: #d39b2c; }
.aq-ring-bad .aq-ring-fg { stroke: var(--bad); }
.aq-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.05rem var(--sans); color: var(--ink); }
.aq-score-word { margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.aq-rules { list-style: none; margin: 0; padding: 0; display: grid; }
.aq-rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 0.84rem; align-items: start; padding: 7px 0; border-top: 1px solid var(--line-2); }
.aq-rule-icon { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 0.64rem; font-weight: 800; }
.aq-rules .is-ok .aq-rule-icon { background: var(--ok-soft); color: var(--ok); }
.aq-rules .is-no .aq-rule-icon { background: var(--warn-soft); color: var(--warn); }
.aq-rules .is-ok strong { font-weight: 600; color: var(--ink-2); }
.aq-rule-tip { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.aq-warn-label { margin-top: 16px; }
.aq-warns { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.8rem; color: #6b4a14; }
.aq-warns li { background: var(--warn-soft); border-radius: 8px; padding: 6px 10px; }
.aq-shop-tank { margin: -4px 0 6px; font-size: 0.8rem; color: var(--muted); }
.aq-sub { margin: 14px 0 6px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.aq-shop-list { list-style: none; margin: 0; padding: 0; display: grid; }
.aq-shop-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 8px; font-size: 0.84rem; font-weight: 600; padding: 6px 0; border-top: 1px solid var(--line-2); }
.aq-shop-list small { display: block; font-weight: 400; font-size: 0.74rem; color: var(--muted); }
.aq-q { font-weight: 800; text-align: right; color: var(--accent-ink); }
.aq-shop-actions .sp-btn-primary { display: block; text-align: center; text-decoration: none; margin-top: 14px; }

/* Palette */
.aq-tabs { width: 100%; }
.aq-tabs button { flex: 1; padding: 7px 6px; font-size: 0.76rem; }
.aq-tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.aq-pane { margin-top: 12px; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.aq-pane[hidden] { display: none; }
.aq-groups { margin: 8px 0 4px; gap: 4px; }
.aq-groups .sp-chip { font-size: 0.7rem; padding: 3px 9px; }
.aq-suit { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--ink-2); margin: 4px 0 8px; }
.aq-suit input { accent-color: var(--accent); }
.aq-plist { list-style: none; margin: 0 -4px; padding: 0 4px; overflow-y: auto; flex: 1; min-height: 120px; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; }
.aq-pitem { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 10px; align-items: center; text-align: left; border: 1px solid transparent; background: none; border-radius: 10px; padding: 5px 6px; cursor: grab; touch-action: pan-y; transition: background .12s; }
.aq-pitem:hover { background: #f1f8f9; border-color: #dcebee; }
.aq-pitem img, .aq-pimg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--line-2); }
.aq-pmain { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.aq-pname { font-weight: 700; font-size: 0.82rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aq-pmeta { font-size: 0.7rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.aq-pmeta b { color: var(--warn); font-weight: 700; }
.aq-big { font-style: normal; font-weight: 700; font-size: 0.64rem; color: var(--bad); background: var(--bad-soft); border-radius: 999px; padding: 0 6px; }
.aq-space { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 0.76rem; color: var(--ink-2); font-weight: 600; margin: -4px 0 10px; }
.aq-space-bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.aq-space-bar i { display: block; height: 100%; border-radius: 999px; }
.aq-space-ok { background: var(--ok); }
.aq-space-warn { background: #d39b2c; }
.aq-space-bad { background: var(--bad); }
.aq-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.aq-l1 { background: #8fb7a1; }
.aq-l2 { background: #e2b440; }
.aq-l3 { background: #e07b39; }
.aq-padd { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--accent-ink); font-weight: 800; font-size: 0.9rem; transition: background .12s, color .12s; }
.aq-pitem:hover .aq-padd { background: var(--accent); color: #fff; }
.aq-empty { font-size: 0.8rem; color: var(--muted); padding: 10px 4px; }
.aq-hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.aq-htile { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px; font: 700 0.76rem var(--sans); color: var(--ink-2); text-align: left; cursor: grab; touch-action: pan-y; transition: border-color .12s; }
.aq-htile:hover { border-color: #b9d8de; }
.aq-hsw { width: 28px; height: 28px; border-radius: 7px; flex: none; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.18); }
.aq-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -130%); background: var(--ink); color: #fff; font: 700 0.76rem var(--sans); padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(12, 30, 43, 0.5); }

@media (max-width: 1280px) {
  .aq-layout { grid-template-columns: 288px minmax(0, 1fr); grid-template-areas: "side center" "palette center"; }
  .aq-palette { position: static; max-height: 620px; }
}
@media (max-width: 900px) {
  .aq-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "center" "palette"; }
  .aq-panels { grid-template-columns: minmax(0, 1fr); }
  .aq-palette { max-height: 70vh; }
  .aq-range input { width: 120px; }
  .aq-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-ins-btns { margin-left: 0; }
}
@media (max-width: 560px) {
  .aq-intro { padding: 18px 0 12px; }
  .aq-toolbar { flex-direction: column; align-items: stretch; }
  .aq-age { width: 100%; }
  .aq-age button { flex: 1; padding: 5px 4px; }
  .aq-tools { justify-content: space-between; }
  .aq-tool span { display: none; }
  .aq-tool { width: 34px; padding: 0; }
  .aq-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Phones ─────────────────────────────────────────────
   Setup folds to one line, the tank stays pinned under the bar, the add list
   is a bottom sheet behind a fixed button, and the selected item's controls
   take that button's place. Desktop keeps the three columns above. */
.aq-msum, .aq-mbar, .aq-backdrop, .aq-sheet-head, .aq-morebtn, .aq-short { display: none; }
.aq-moremenu { display: contents; }
#aq-clear span { display: none; }

@media (max-width: 900px) {
  .aq-main { padding-bottom: 104px; }
  .aq-intro { display: block; padding: 16px 0 10px; }
  .aq-intro p { font-size: 0.86rem; }
  .aq-msum { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main go" "sub go"; align-items: center; gap: 1px 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #e3eaee; border-radius: 14px; background: var(--panel); box-shadow: 0 1px 2px rgba(12, 30, 43, 0.04); font: inherit; color: var(--ink); }
  .aq-msum-main { grid-area: main; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aq-msum-sub { grid-area: sub; font-size: 0.74rem; color: var(--muted); }
  .aq-msum-go { grid-area: go; font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; }
  .aq-side { display: none; }
  .aq-side.is-open { display: grid; }

  .aq-stage-card { position: sticky; top: var(--bar-h); z-index: 30; padding: 10px 10px 12px; }
  .aq-stage-hint { display: none; }
  .aq-toolbar { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 10px; }
  .aq-age { flex: 1; min-width: 0; }
  .aq-age button { flex: 1; padding: 7px 4px; }
  .aq-long { display: none; }
  .aq-short { display: inline; }
  .aq-tools { flex-wrap: nowrap; gap: 6px; }
  .aq-tool, .aq-tool.aq-icon { height: 36px; width: 36px; padding: 0; }
  .aq-tool svg { width: 17px; height: 17px; }
  .aq-tool span { display: none; }
  .aq-morebtn { display: inline-flex; border: 1px solid var(--line) !important; background: var(--panel) !important; }
  .aq-moremenu { display: none; position: absolute; right: 10px; top: 54px; z-index: 40; flex-direction: column; gap: 2px; min-width: 200px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(12, 30, 43, 0.45); }
  .aq-moremenu.is-open { display: flex; }
  .aq-moremenu .aq-tgroup { display: flex; flex-direction: column; background: none; padding: 0; gap: 2px; }
  .aq-moremenu .aq-tool, .aq-moremenu .aq-tool.aq-icon { width: auto; height: 40px; justify-content: flex-start; padding: 0 12px; gap: 10px; border: 0 !important; background: none; box-shadow: none; font-size: 0.86rem; }
  .aq-moremenu .aq-tool span, .aq-moremenu #aq-clear span { display: inline; }
  .aq-moremenu .aq-tool[aria-pressed="true"]::after { content: "On"; margin-left: auto; font-size: 0.72rem; color: var(--ok); }

  .aq-palette { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 82vh; max-height: 82vh; z-index: 70; border-radius: 18px 18px 0 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .26s cubic-bezier(.3, .7, .2, 1); box-shadow: 0 -20px 50px -20px rgba(12, 30, 43, 0.45); }
  .aq-palette.is-open { transform: none; }
  .aq-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .aq-sheet-head p { margin: 0; font-weight: 800; font-size: 1rem; }
  .aq-sheet-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: var(--line); }
  .aq-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(12, 30, 43, 0.38); }
  .aq-backdrop[hidden] { display: none; }
  body.aq-lock { overflow: hidden; }
  .aq-pitem { grid-template-columns: 44px minmax(0, 1fr) 28px; padding: 7px 6px; }
  .aq-pitem img, .aq-pimg { width: 44px; height: 44px; }
  .aq-padd { width: 28px; height: 28px; }
  .aq-htile { padding: 9px; }

  .aq-mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .aq-madd { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 700 0.95rem var(--sans); display: flex; align-items: center; justify-content: center; gap: 8px; }
  .aq-madd span { font-size: 1.3rem; line-height: 1; }
  body.aq-has-sel .aq-mbar { display: none; }
  .aq-inspector { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; margin: 0; border-radius: 18px 18px 0 0; border: 0; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -16px 40px -18px rgba(12, 30, 43, 0.4); max-height: 46vh; overflow-y: auto; }
  .aq-ins-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aq-ins-advice li { padding: 4px 8px; }
  .aq-ins-controls { gap: 10px; }
  .aq-ins-controls .sp-seg { width: 100%; }
  .aq-ins-controls .sp-seg button { flex: 1; padding: 8px 4px; }
  .aq-range { width: 100%; }
  .aq-range input { flex: 1; width: auto; }
  .aq-ins-btns { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .aq-ins-btns .sp-btn { padding: 9px 6px; }
  .aq .sp-toast { top: calc(var(--bar-h) + 10px); bottom: auto; transform: translate(-50%, -12px); max-width: calc(100vw - 32px); text-align: center; }
  .aq .sp-toast.is-on { transform: translate(-50%, 0); }
}
/* Phones on their side: a bigger tank, not pinned */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .aq-stage-card { position: static; }
  .aq-stage { width: auto; height: 68vh; max-width: 100%; margin: 0 auto; }
}

/* ── Public pages: site links, breadcrumbs, the readable guide, footer ── */
.aq-navlinks { display: flex; gap: 18px; margin-left: 20px; }
.aq-navlinks a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.86rem; }
.aq-navlinks a:hover { color: var(--accent-ink); }
.aq-crumbs { padding-top: 18px; }
.aq-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.aq-crumbs a { color: var(--muted); text-decoration: none; }
.aq-crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.aq-crumbs + .aq-intro { padding-top: 10px; }
.aq-article { max-width: 760px; margin: 48px auto 0; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.aq-article h2 { font: 700 1.45rem/1.25 var(--serif); color: var(--ink); margin: 2.2rem 0 0.6rem; letter-spacing: -0.01em; }
.aq-article h2:first-child { margin-top: 0; }
.aq-article p { margin: 0 0 1rem; }
.aq-article ul, .aq-article ol { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.aq-article a { color: var(--accent-ink); }
.aq-style-links { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px !important; }
.aq-style-links li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); font-size: 0.9rem; line-height: 1.5; }
.aq-style-links a { text-decoration: none; }
.aq-faq { display: grid; gap: 8px; }
.aq-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 16px; }
.aq-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.aq-faq summary::-webkit-details-marker { display: none; }
.aq-faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.aq-faq details[open] summary::after { content: "−"; }
.aq-faq details p { margin: 0 0 14px; }
.aq-beta-note { margin-top: 2rem !important; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.9rem; }
.aq-footer { max-width: 1480px; margin: 40px auto 0; padding: 22px clamp(16px, 2.4vw, 28px) 120px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); text-align: center; }
.aq-footer p { margin: 0 0 6px; }
.aq-footer a { color: var(--ink-2); text-decoration: none; }
.aq-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (max-width: 1100px) { .aq-navlinks { display: none; } }
@media (max-width: 900px) { .aq-article { margin-top: 32px; font-size: 0.96rem; } .aq-crumbs { padding-top: 12px; } }
.aq-beta-pill { display: none; }
@media (max-width: 900px) { .aq-beta-pill { display: inline-block; margin-bottom: 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; } }
