/* Subscription workbench: fixed-size artwork, proportionally scaled as one object. */
.stage { position: relative; display: flex; justify-content: center; border-radius: var(--r-panel); border: 1px solid var(--c-accent-line); background: linear-gradient(150deg,var(--c-accent-wash),var(--c-accent-wash-2)); color: var(--c-text); overflow: hidden; }
.geo { position: absolute; pointer-events: none; }
.geo-a { width: 380px; height: 380px; top: -170px; right: -120px; border-radius: var(--r-geo-a); background: var(--c-accent-blob); opacity: .55; transform: rotate(24deg); }
.geo-b { width: 440px; height: 300px; bottom: -150px; left: -110px; border-radius: var(--r-geo-b); background: var(--c-veil); transform: rotate(-12deg); }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arc path { fill: none; stroke: var(--c-arc); stroke-width: 1.5; }
.rig { position: relative; width: 672px; height: 652px; flex: none; }
.win { position: absolute; left: 34px; top: 40px; width: 532px; background: var(--c-panel); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r-win); box-shadow: var(--sh-window); overflow: hidden; }
.win-bar { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; background: var(--c-panel-2); color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.win-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: var(--weight-semibold); }
.win-title i { width: 12px; height: 12px; border-radius: var(--r-small); border: 1.5px solid var(--c-text-muted); }
.win-ctrl { display: flex; gap: 2px; color: var(--c-text-muted); }
.win-ctrl span { width: 30px; height: 24px; display: grid; place-items: center; border-radius: var(--r-focus); }
.win-ctrl svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.win-body { display: grid; grid-template-columns: 120px minmax(0,1fr); }
.win-side { padding: 14px 8px; border-right: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-text-muted); }
.win-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.win-side li { position: relative; padding: 7px 10px 7px 14px; font-size: 12.5px; border-radius: var(--r-field); line-height: 1.4; }
.win-side li.is-on { background: var(--c-accent-soft); color: var(--c-accent-dark); font-weight: var(--weight-semibold); }
.win-side li.is-on::before { content: ""; position: absolute; left: 5px; top: 9px; bottom: 9px; width: 3px; border-radius: var(--r-tiny); background: var(--c-accent); }
.win-main { padding: 22px 20px; }
.win-h { margin: 0; font-size: 15px; font-weight: var(--weight-bold); line-height: 20px; letter-spacing: -.01em; }
.win-sub { margin: 4px 0 0; font-size: 11.5px; line-height: 16px; color: var(--c-text-muted); }
.grp { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: var(--weight-semibold); color: var(--c-text-muted); letter-spacing: .04em; line-height: 14px; }
.grp::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.grp + .rows { margin-top: 10px; }
.win-main > .rows + .grp { margin-top: 20px; }
.rows { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 10px; align-items: center; height: 34px; }
.row > .lbl { font-size: 11.5px; color: var(--c-text-muted); white-space: nowrap; }
.fld { display: block; height: 34px; line-height: 32px; padding: 0 9px; border: 1px solid var(--c-border); border-radius: var(--r-field); background: var(--c-panel); color: var(--c-text); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld.mono { font-size: 10.5px; letter-spacing: -.01em; }
.fld.short { width: 84px; }
.fld.hint { color: var(--c-text-muted); }
.sw { position: relative; display: inline-block; width: 32px; height: 18px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--c-switch-off); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--r-circle); background: var(--c-panel); box-shadow: var(--sh-knob); }
.sw.on { background: var(--c-accent); }
.sw.on::after { left: 16px; }
.win-status { height: 32px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-top: 1px solid var(--c-border); background: var(--c-panel-2); color: var(--c-text-muted); font-family: var(--f-mono); font-size: 10.5px; }
.win-status em { font-style: normal; display: inline-flex; align-items: center; gap: 7px; }
.win-status b { width: 1px; height: 12px; background: var(--c-border-strong); }
.live-dot { width: 7px; height: 7px; flex: none; border-radius: var(--r-circle); background: var(--c-success); animation: workbench-status 2.8s ease-in-out infinite; }
@keyframes workbench-status { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.phone { position: absolute; right: 30px; top: 292px; width: 200px; padding: 7px; border-radius: var(--r-phone); background: var(--c-device); color: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-device-edge),var(--sh-phone); transform: rotate(6deg); }
.screen { position: relative; height: 330px; border-radius: var(--r-screen); background: var(--c-panel); color: var(--c-text); overflow: hidden; }
.p-status { position: relative; height: 22px; display: flex; align-items: center; justify-content: center; }
.p-cam { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--c-device); }
.p-icons { position: absolute; right: 13px; top: 6px; display: flex; gap: 4px; }
.p-icons svg { height: 9px; fill: currentColor; }
.p-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--c-border); }
.p-bar svg { width: 15px; height: 15px; fill: none; stroke: var(--c-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-bar strong { font-size: 13.5px; font-weight: var(--weight-bold); letter-spacing: -.01em; }
.p-item { padding: 9px 14px; border-bottom: 1px solid var(--c-border); }
.p-lbl { display: block; font-size: 10px; line-height: 14px; color: var(--c-text-muted); }
.p-val { display: block; margin-top: 3px; padding-bottom: 3px; border-bottom: 1.5px solid var(--c-accent); font-size: 12.5px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-val.mono { font-size: 10px; border-bottom-color: var(--c-border-strong); }
.p-tog { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--c-border); font-size: 12px; }
.p-ok { position: absolute; right: 14px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-confirm); background: var(--c-accent); color: var(--c-panel); box-shadow: var(--sh-confirm); }
.p-ok svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
[role="tab"] { min-height: 44px; padding: 10px 18px; border: 1px solid var(--c-border); border-radius: var(--r-btn); background: var(--c-panel); color: var(--c-text-muted); font-weight: var(--weight-semibold); }
[role="tab"]:hover { border-color: var(--c-accent-line); color: var(--c-accent-dark); }
[role="tab"][aria-selected="true"] { border-color: var(--c-accent-line); background: var(--c-accent-wash); color: var(--c-accent-dark); }
[role="tabpanel"] { min-width: 0; }
.toc { position: sticky; top: 16px; z-index: 10; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-win); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-hair); }
.toc ul { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 10px 12px; font-size: 14px; text-decoration: none; border-radius: var(--r-field); }
.toc a:hover { background: var(--c-accent-wash); color: var(--c-accent-dark); }
.faq-item { border-bottom: 1px solid var(--c-border); padding-block: 20px; }
.faq-item summary { position: relative; list-style: none; min-height: 44px; padding: 10px 40px 10px 0; font-size: 18px; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 8px; color: var(--c-accent-dark); font-family: var(--f-mono); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-top: 12px; padding-right: 28px; color: var(--c-text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-card); }
.term-card h3 { margin-top: 16px; font-size: 24px; }
.term-card p { color: var(--c-text-muted); }
.term-card p:last-child { margin-bottom: 0; }
.badge { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-accent-wash); color: var(--c-accent-dark); font-size: 12px; font-weight: var(--weight-semibold); line-height: 1.5; overflow-wrap: anywhere; vertical-align: middle; }
.badge-recommended { background: var(--c-success-wash); color: var(--c-success-ink); }
.badge-retired { background: var(--c-panel-2); color: var(--c-text-muted); border: 1px solid var(--c-border); }
.badge-amber { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.tag { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: var(--r-field); background: var(--c-panel-2); color: var(--c-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.client-card { border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 32px; background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-card); }
.client-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-head h3 { margin: 0 0 6px; font-size: 26px; }
.client-rev { font-family: var(--f-mono); font-size: 12px; color: var(--c-text-muted); }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.client-note { margin-top: 20px; color: var(--c-text-muted); font-size: 14px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-card); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--c-text-muted); }
.article-card h3 { margin-top: 22px; font-size: 24px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--c-accent-dark); }
.article-card p { color: var(--c-text-muted); }
.article-card > .text-link { margin-top: auto; padding-top: 8px; }
.callout { margin: 28px 0; padding: 22px 24px; border: 1px solid var(--c-accent-line); border-left: 4px solid var(--c-accent); border-radius: var(--r-win); background: var(--c-accent-wash-2); color: var(--c-text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-bold); }
.callout-note { border-color: var(--c-border); border-left-color: var(--c-success); background: var(--c-success-wash); color: var(--c-text); }
.callout-warning { border-color: var(--c-border); border-left-color: var(--c-warn); background: var(--c-warn-wash); color: var(--c-text); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: var(--r-win); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table th, .data-table td,
.prose table th, .prose table td,
.article-body table th, .article-body table td {
  min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--c-border);
  overflow-wrap: normal; word-break: normal; vertical-align: top;
}
.data-table th, .prose table th, .article-body table th { background: var(--c-panel-2); color: var(--c-text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td, .article-body table td { background: var(--c-panel); color: var(--c-text); }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; }
.download-endcap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 56px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-card); }
.download-endcap h2 { font-size: 24px; margin-bottom: 8px; }
.download-endcap p { margin-bottom: 0; color: var(--c-text-muted); }
.dl-fab { position: fixed; right: 24px; bottom: max(24px,env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 8px; border-radius: var(--r-win); border: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-card); text-decoration: none; font-size: 14px; font-weight: var(--weight-bold); }
.dl-fab span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-platform); background: var(--c-accent-wash); color: var(--c-accent-dark); }
.dl-fab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-fab:hover { border-color: var(--c-accent-line); }
.feature-list { display: grid; gap: var(--feature-space); }
.feature-row { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 80px; align-items: center; }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-copy h3 { margin-top: 22px; font-size: clamp(26px,3vw,38px); }
.feature-copy p { color: var(--c-text-muted); line-height: 1.85; }
.feature-window { padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-win); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-window); }
.settings-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.settings-line:last-child { border-bottom: 0; }
.settings-choice { border: 1px solid var(--c-border); border-radius: var(--r-field); padding: 8px 12px; background: var(--c-panel); color: var(--c-text); }

/* Preview furniture shares the same design tokens as production components. */
.preview-section { padding-top: 96px; padding-bottom: 24px; }
.preview-label { margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--c-text-muted); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 16px; }
.swatch { margin: 0; border: 1px solid var(--c-border); border-radius: var(--r-win); overflow: hidden; background: var(--c-panel); color: var(--c-text); }
.swatch-color { height: 74px; border-bottom: 1px solid var(--c-border); }
.swatch figcaption { padding: 12px; font-family: var(--f-mono); font-size: 11px; overflow-wrap: anywhere; }
.sw-bg { background: var(--c-bg); }
.sw-panel { background: var(--c-panel); }
.sw-panel-2 { background: var(--c-panel-2); }
.sw-border { background: var(--c-border); }
.sw-border-strong { background: var(--c-border-strong); }
.sw-accent { background: var(--c-accent); }
.sw-accent-dark { background: var(--c-accent-dark); }
.sw-accent-wash { background: var(--c-accent-wash); }
.sw-accent-wash-2 { background: var(--c-accent-wash-2); }
.sw-accent-soft { background: var(--c-accent-soft); }
.sw-accent-blob { background: var(--c-accent-blob); }
.sw-accent-line { background: var(--c-accent-line); }
.sw-mark { background: var(--c-mark); }
.sw-text { background: var(--c-text); }
.sw-muted { background: var(--c-text-muted); }
.sw-faint { background: var(--c-text-faint); }
.sw-success { background: var(--c-success); }
.sw-success-ink { background: var(--c-success-ink); }
.sw-success-wash { background: var(--c-success-wash); }
.sw-warn { background: var(--c-warn); }
.sw-warn-ink { background: var(--c-warn-ink); }
.sw-warn-wash { background: var(--c-warn-wash); }
.sw-error { background: var(--c-error); }
.sw-device { background: var(--c-device); }
.sw-device-edge { background: var(--c-device-edge); }
.sw-switch { background: var(--c-switch-off); }
.sw-veil { background: var(--c-veil); }
.sw-arc { background: var(--c-arc); }
.sw-overlay { background: var(--c-overlay); }
.sw-clear { background: var(--c-clear); }
.type-display { font-size: clamp(34px,3.2vw,48px); font-weight: var(--weight-display); line-height: 1.17; letter-spacing: -.02em; }
.preview-mobile { display: none; }
.preview-mobile summary { min-height: 44px; padding: 10px; }
.preview-mobile nav { position: absolute; top: var(--header-height); left: 0; right: 0; padding: 20px var(--gutter); background: var(--c-panel); color: var(--c-text); border-bottom: 1px solid var(--c-border); z-index: 5; }
.preview-mobile nav a { display: block; min-height: 44px; padding: 10px 12px; text-decoration: none; }
@media (max-width: 1400px) { .rig { zoom: .92; } }
@media (max-width: 1280px) { .rig { zoom: .84; } .preview-mobile { display: block; } }
@media (max-width: 1140px) {
  .stage { max-width: 760px; width: 100%; margin-inline: auto; }
  .rig { zoom: 1; }
  .feature-row { gap: 40px; }
}
@media (max-width: 760px) {
  .rig { zoom: .78; }
  .feature-row { grid-template-columns: minmax(0,1fr); }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
}
@media (max-width: 640px) {
  .rig { zoom: .6; }
  .geo { transform: none; }
  .client-card { padding: 24px; }
  .client-head { align-items: flex-start; }
  .client-actions { align-items: stretch; }
  .dl-fab { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); }
  .toc { position: static; }
  .toc ul { flex-wrap: nowrap; overflow-x: auto; }
  .toc li { flex-shrink: 0; }
  .toc a { white-space: nowrap; }
  .type-display { font-size: clamp(24px,7vw,30px); }
  .preview-section { padding-top: 64px; }
}
@media (max-width: 440px) { .rig { zoom: .5; } }
@media (max-width: 360px) { .rig { zoom: .4; } }