.pod { width: min(880px, 100%); display: grid; justify-items: center; min-width: 0; }
.pod-shell {
  width: 100%;
  padding: 5px;
  border-radius: calc(var(--r-panel) + 5px);
  background: var(--shell-fill);
  color: var(--ink);
  border: 2px solid var(--shell-line);
  box-shadow: 0 56px 96px -34px var(--shade-deep), 0 20px 44px -24px var(--shade-soft);
}
.pod-card {
  height: 248px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 26px 22px 20px 30px;
  border-radius: var(--r-panel);
  background: var(--composer);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--shell-inner), inset 0 -1px 0 var(--ink-line);
  text-align: left;
  min-width: 0;
}
.rule-lines { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 16px; line-height: 1.8; }
.rule-lines li { overflow-wrap: anywhere; }
.rule-lines .dash, .rule-lines .comma { color: var(--ink); opacity: .65; }
.rule-lines .dash { margin-right: 10px; }
.rule-lines .policy {
  display: inline-block;
  margin-left: 2px;
  padding: 0 8px;
  border-radius: var(--r-tag);
  background: var(--composer-chip);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-line);
  font-size: 14px;
  line-height: 1.6;
}
.pod-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px 7px 16px;
  border-radius: var(--r-pill);
  background: var(--composer-chip);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-line);
  font-size: 14px;
}
.type-pill .mono { font-size: 13px; }
.type-pill svg { width: 12px; height: 12px; }
.submit {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-round);
  background: var(--accent);
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--accent-dark), 0 6px 14px -6px var(--accent-dark);
}
.submit svg { width: 20px; height: 20px; }
.pod-pills { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pod-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--r-pill);
  background: var(--pill-fill);
  color: var(--ink);
  border: 1px solid var(--pill-line);
  font-size: 14px;
}
.pod-pill .chev { width: 12px; height: 12px; }
.glyphs { display: flex; flex-shrink: 0; }
.glyph {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--r-round);
  background: var(--bg-panel);
  color: var(--composer);
  box-shadow: 0 0 0 2px var(--composer);
}
.glyph + .glyph { margin-left: -6px; }
.glyph svg { width: 14px; height: 14px; }
.g-bone { fill: var(--composer); }
.g-line { fill: none; stroke: var(--composer); stroke-width: 1.6; }
.corner-link {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px 6px 18px;
  border-radius: var(--r-pill);
  background: var(--veil-fill-strong);
  color: var(--text);
  border: 1px solid var(--veil-line);
  font-size: 14px;
}
.corner-link .arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-round); background: var(--text); color: var(--bg); }
.corner-link:hover { color: var(--accent); border-color: var(--accent-dark); }
.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
[role="tab"] {
  position: relative;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
}
[role="tab"]:hover { color: var(--accent); }
[role="tab"][aria-selected="true"] { background: var(--bg-panel-2); color: var(--text); }
[role="tabpanel"] { min-width: 0; }
.feature-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 60px; }
.feature-title { margin: 0 0 40px; font-size: clamp(32px, 4.5vw, 64px); }
.feature-tabs [role="tablist"] { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.feature-tabs [role="tab"] {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--clear);
  color: var(--text-muted);
  padding: 14px 0 16px 28px;
  text-align: left;
  font-size: 20px;
}
.feature-tabs [role="tab"]::before { content: "_"; position: absolute; left: 0; color: var(--clear); }
.feature-tabs [role="tab"][aria-selected="true"] { color: var(--text); }
.feature-tabs [role="tab"][aria-selected="true"]::before { color: var(--accent); }
.tab-progress { position: absolute; inset: auto 0 0 28px; height: 1px; background: var(--accent); color: var(--text); transform: scaleX(0); transform-origin: left; }
.tabs.is-playing [aria-selected="true"] .tab-progress { animation: tab-meter var(--tab-cycle) linear forwards; }
@keyframes tab-meter { to { transform: scaleX(1); } }
.window { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); overflow: hidden; }
.window-chrome { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 24px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; }
.window-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.window-dots i { width: 7px; height: 7px; border-radius: var(--r-round); background: var(--text-muted); }
.window pre { background: var(--bg-panel); color: var(--text); border: 0; border-radius: 0; }
.window-copy { padding: 0 24px 24px; color: var(--text-soft); font-size: 15px; }
.window-copy p:last-child { margin-bottom: 0; }
.config-gallery { overflow-x: clip; padding-top: 56px; padding-bottom: 16px; }
.gallery-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.gallery-row:nth-child(2) { margin-left: 40px; }
.gallery-row pre { font-size: 12px; padding: 20px; }
.gallery-action { text-align: center; margin-top: 30px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; border-block: 1px solid var(--border); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text-soft); }
.toc a:hover, .toc a[aria-current="location"] { color: var(--accent); }
.toc-sticky { position: sticky; top: 0; z-index: 10; background: var(--bg); color: var(--text); }
.faq-item { padding: 0 24px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { display: block; position: relative; padding: 22px 32px 22px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 22px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-answer { padding-bottom: 22px; color: var(--text-soft); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { border-top: 2px solid var(--veil-line-strong); }
.term-card dt { font-size: 24px; margin-bottom: 8px; }
.term-card dd { margin: 0; color: var(--text-soft); }
.term-en { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.client-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.client-heading h3 { margin: 0; }
.client-logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-card p { color: var(--text-soft); }
.client-card.is-primary { border-color: var(--veil-line-strong); background: var(--bg-panel-2); color: var(--text); }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.client-meta { font-size: 13px; color: var(--text-muted); }
[data-rev]:empty { display: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.badge-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.badge-recommended { color: var(--success); }
.badge-archived { color: var(--warn); }
.post-card { display: flex; flex-direction: column; gap: 18px; }
.post-card h3 { margin: 0; font-size: 24px; }
.post-card p { margin: 0; color: var(--text-soft); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--text-muted); }
.post-card .post-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; min-height: 44px; }
.callout {
  margin: 24px 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-soft);
  border-radius: var(--r-small);
  background: var(--bg-panel);
  color: var(--text-soft);
}
.callout strong { color: var(--text); }
.callout > :last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-small); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg-panel); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}
.data-table th, .prose table th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose table td { color: var(--text-soft); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code, .data-table code { overflow-wrap: anywhere; }
.article-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; }
.article-download > div { min-width: 0; flex: 1 1 280px; }
.article-download > .client-actions { flex: 0 1 auto; max-width: 100%; }
.article-download .client-actions .btn { max-width: 100%; white-space: normal; }
.article-download h2 { font-size: 28px; margin: 0 0 12px; }
.article-download p { margin: 0; color: var(--text-soft); }
.article-download .btn { flex-shrink: 0; }
.dl-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  border: 1px solid var(--veil-line-strong);
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: var(--weight-medium);
}
.dl-fab svg { width: 20px; height: 20px; }
.dl-fab:hover { background: var(--composer); color: var(--bg); }
.preview-mobile { display: none; }
.preview-section-title { margin: 0 0 32px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatch { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-small); overflow: hidden; }
.swatch span { display: block; height: 68px; }
.swatch figcaption { padding: 12px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-text { background: var(--text); }
.sw-soft { background: var(--text-soft); }
.sw-muted { background: var(--text-muted); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-cool { background: var(--field-cool); }
.sw-clay { background: var(--field-clay); }
.sw-composer { background: var(--composer); }
.sw-chip { background: var(--composer-chip); }
.sw-ink { background: var(--ink); }
.sw-ink-muted { background: var(--ink-muted); }
.sw-white { background: var(--white); }
.sw-clear { background: var(--clear); }
.sw-veil-line { background: var(--veil-line); }
.sw-veil-strong { background: var(--veil-line-strong); }
.sw-veil-fill { background: var(--veil-fill); }
.sw-veil-fill-strong { background: var(--veil-fill-strong); }
.sw-shell { background: var(--shell-fill); }
.sw-shell-line { background: var(--shell-line); }
.sw-shell-inner { background: var(--shell-inner); }
.sw-ink-line { background: var(--ink-line); }
.sw-deep { background: var(--shade-deep); }
.sw-shadow { background: var(--shade-soft); }
.sw-cool-a { background: var(--cool-a); }
.sw-cool-b { background: var(--cool-b); }
.sw-clay-a { background: var(--clay-a); }
.sw-apricot { background: var(--apricot-a); }
.sw-mist { background: var(--mist-a); }
.sw-glint { background: var(--glint); }
.sw-pill { background: var(--pill-fill); }
.sw-pill-line { background: var(--pill-line); }
.sw-success-glow { background: var(--success-glow); }
@media (max-width: 860px) {
  .pod-card { height: auto; min-height: 220px; gap: 22px; padding: 22px 18px 18px 20px; }
  .rule-lines { font-size: 13px; }
  .rule-lines .policy { font-size: 12px; }
  .type-pill { font-size: 12px; }
  .type-pill .mono { font-size: 11px; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-title { font-size: 36px; margin-bottom: 24px; }
  .gallery-row { grid-template-columns: minmax(0, 1fr); }
  .gallery-row:nth-child(2) { margin-left: 0; }
}
@media (max-width: 640px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-download { flex-direction: column; align-items: flex-start; }
  .article-download > div { flex-basis: auto; }
  .window-chrome { padding-inline: 18px; }
  .window-copy { padding-inline: 18px; }
  .callout { padding: 20px; }
}
@media (max-width: 520px) {
  .pod-pill { font-size: 12px; gap: 6px; }
  .type-pill .lbl, .type-pill .sep { display: none; }
  .pod-card { padding-inline: 14px; }
  .rule-lines { font-size: 11px; }
  .rule-lines .dash { margin-right: 4px; }
  .rule-lines .policy { padding-inline: 4px; font-size: 10px; }
}