/* Feedwrk components — static renditions of the prototype's Tailwind classes.
   Source: Lovable project "Modernize & Shine" (src/styles.css, src/components, design-kit/ui).
   Every colour, radius and shadow reads a token from tokens.css. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

.fw-root{font-family:var(--font-sans);color:var(--foreground);background:var(--background);-webkit-font-smoothing:antialiased;font-size:14px;line-height:20px}
.fw-root *{box-sizing:border-box;border-color:var(--border)}
.fw-ico{width:16px;height:16px;flex:none}
.fw-ico-sm{width:14px;height:14px;flex:none}
.fw-num{font-variant-numeric:tabular-nums}
.fw-mono{font-family:var(--font-mono)}
.fw-muted{color:var(--muted-foreground)}
.fw-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.fw-stack{display:flex;flex-direction:column;gap:var(--space-3)}

/* utilities from src/styles.css */
.fw-page-title{font-size:24px;line-height:1.15;font-weight:600;letter-spacing:-0.02em;text-wrap:balance;margin:0}
@media (min-width:768px){.fw-page-title{font-size:28px}}
.fw-eyebrow{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground)}
.fw-panel{background:var(--surface);border-radius:var(--radius-panel);box-shadow:var(--shadow-panel);outline:1px solid var(--border);outline-offset:-1px}
.fw-field{width:100%;height:36px;border-radius:var(--radius-lg);background:var(--surface-muted);border:1px solid var(--border);padding:0 16px;font:inherit;font-size:14px;color:var(--foreground);outline:none;transition:box-shadow 150ms ease,border-color 150ms ease}
.fw-field::placeholder{color:var(--muted-foreground)}
.fw-field:focus,.fw-field.is-focus{border-color:color-mix(in oklab,var(--primary) 45%,transparent);box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 18%,transparent)}
.fw-field.sm{height:var(--size-control);border-radius:var(--radius-md);font-size:12px;padding:0 10px}
.fw-field-wrap{position:relative;display:block}
.fw-field-wrap>.fw-ico-sm{position:absolute;top:50%;transform:translateY(-50%);color:var(--muted-foreground);pointer-events:none}
.fw-field-wrap>.lead{left:10px}.fw-field-wrap>.trail{right:8px}
.fw-field-wrap>.fw-field.has-lead{padding-left:32px}
.fw-label{display:block;font-size:12px;font-weight:500;margin-bottom:6px}
.fw-help{font-size:11px;color:var(--muted-foreground);margin-top:4px}

/* Button — design-kit/ui/button.tsx */
.fw-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);white-space:nowrap;border-radius:var(--radius-md);font:inherit;font-size:14px;font-weight:500;height:var(--size-button);padding:0 16px;border:0;cursor:pointer;transition:background-color .15s,color .15s;text-decoration:none}
.fw-btn:focus-visible,.fw-btn.is-focus{outline:2px solid var(--ring);outline-offset:2px}
.fw-btn:disabled,.fw-btn.is-disabled{opacity:.5;pointer-events:none}
.fw-btn svg{width:16px;height:16px;flex:none}
.fw-btn.default{background:var(--primary);color:var(--primary-foreground);box-shadow:0 1px 3px 0 rgb(0 0 0 / .1),0 1px 2px -1px rgb(0 0 0 / .1)}
.fw-btn.default:hover{background:color-mix(in oklab,var(--primary) 90%,transparent)}
.fw-btn.destructive{background:var(--destructive);color:var(--destructive-foreground);box-shadow:var(--shadow-sm)}
.fw-btn.outline{background:var(--background);color:var(--foreground);border:1px solid var(--input);box-shadow:var(--shadow-sm)}
.fw-btn.outline:hover,.fw-btn.ghost:hover{background:var(--accent);color:var(--accent-foreground)}
.fw-btn.secondary{background:var(--secondary);color:var(--secondary-foreground);box-shadow:var(--shadow-sm)}
.fw-btn.ghost{background:transparent;color:var(--foreground)}
.fw-btn.link{background:transparent;color:var(--primary);padding:0;height:auto;text-underline-offset:4px}
.fw-btn.link:hover{text-decoration:underline}
.fw-btn.sm{height:var(--size-control);padding:0 12px;font-size:12px}
.fw-btn.lg{height:40px;padding:0 32px}
.fw-btn.icon{width:var(--size-button);padding:0}

/* Status badge — Workflow guidelines: dot + one word */
.fw-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500;line-height:16px;padding:2px 8px;border-radius:var(--radius-full);background:var(--surface-muted);color:var(--muted-foreground);white-space:nowrap}
.fw-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.fw-status.ok{background:color-mix(in oklab,var(--success) 10%,transparent);color:var(--success)}
.fw-status.warn{background:color-mix(in oklab,var(--warning) 18%,transparent);color:var(--warning)}
.fw-status.bad{background:color-mix(in oklab,var(--destructive) 13%,transparent);color:var(--destructive)}
.fw-status.info{background:color-mix(in oklab,var(--primary) 12%,transparent);color:var(--primary)}
.fw-count{border-radius:4px;padding:2px 6px;font-size:10px;font-weight:500;line-height:12px;font-variant-numeric:tabular-nums;background:var(--surface-muted);color:var(--muted-foreground)}
.fw-count.warn{background:color-mix(in oklab,var(--warning) 15%,transparent);color:var(--warning)}
.fw-count.primary{border-radius:var(--radius-full);background:var(--primary);color:var(--primary-foreground)}
.fw-kbd{font-family:var(--font-mono);font-size:11px;line-height:14px;padding:2px 6px;border-radius:4px;border:1px solid var(--border-strong);color:var(--muted-foreground)}

/* Tabs — src/components/tabs-nav.tsx */
.fw-pagetabs{display:flex;align-items:center;gap:var(--space-1);border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}
.fw-pagetab{margin-bottom:-1px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-bottom:2px solid transparent;padding:6px 12px 10px;font-size:14px;font-weight:500;color:var(--muted-foreground);text-decoration:none;background:none;border-top:0;border-left:0;border-right:0;font-family:inherit;cursor:pointer}
.fw-pagetab:hover{color:var(--foreground)}
.fw-pagetab.on{border-bottom-color:var(--primary);color:var(--foreground)}
.fw-segtabs{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-1);border-radius:var(--radius-panel);border:1px solid var(--border);background:color-mix(in oklab,var(--muted) 40%,transparent);padding:4px}
.fw-segtab{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:var(--radius-tab);padding:6px 12px;font-size:14px;font-weight:500;color:var(--muted-foreground);background:none;border:0;font-family:inherit;cursor:pointer}
.fw-segtab.on{background:var(--background);color:var(--foreground);box-shadow:var(--shadow-sm)}
.fw-segtabs.sm .fw-segtab{padding:4px 10px;font-size:12px}

/* Breadcrumbs — app-shell.tsx */
.fw-crumbs{display:flex;align-items:center;gap:var(--space-2);font-size:12px;color:var(--muted-foreground);min-width:0}
.fw-crumbs a{color:inherit;text-decoration:none}.fw-crumbs a:hover{color:var(--foreground)}
.fw-crumbs .sep{color:var(--border-strong)}
.fw-crumbs .here{font-weight:500;color:var(--foreground)}
.fw-crumbs>*{white-space:nowrap}
.fw-backbtn{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--radius-md);border:1px solid var(--border);color:var(--muted-foreground)}

/* Sidebar — app-shell.tsx */
.fw-sidebar{width:var(--size-sidebar);background:var(--sidebar);border-right:1px solid var(--sidebar-border);display:flex;flex-direction:column}
.fw-sidebar .brand{height:var(--size-header);display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid var(--sidebar-border)}
.fw-sidebar nav{padding:6px;display:flex;flex-direction:column;gap:2px}
.fw-sidebar .group{margin:6px 8px 4px}
.fw-navitem{display:flex;align-items:center;gap:6px;border-radius:var(--radius-lg);padding:4px 10px;font-size:12px;font-weight:500;line-height:16px;color:var(--muted-foreground);text-decoration:none}
.fw-navitem:hover{background:var(--sidebar-accent);color:var(--foreground)}
.fw-navitem.open{background:var(--sidebar-accent);color:var(--foreground)}
.fw-navitem.open>.fw-ico-sm:first-child{color:var(--primary)}
.fw-navitem.active{background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary)}
.fw-navitem .chev{margin-left:auto;opacity:.5}
.fw-subnav{padding-left:32px;display:flex;flex-direction:column;gap:2px}
.fw-subitem{display:flex;justify-content:space-between;border-radius:var(--radius-md);padding:4px 10px;font-size:12px;font-weight:500;line-height:16px;color:var(--muted-foreground);text-decoration:none}
.fw-subitem.active{background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary)}

/* Top bar — app-shell.tsx */
.fw-topbar{height:var(--size-header);display:grid;grid-template-columns:minmax(0,1fr) minmax(10rem,22rem) minmax(0,1fr);align-items:center;gap:var(--space-4);padding:0 var(--space-4);border-bottom:1px solid var(--border);background:color-mix(in oklab,var(--background) 80%,transparent)}
.fw-search{position:relative}
.fw-search .fw-field{height:36px;font-size:12px;padding-left:36px;color:var(--muted-foreground);display:flex;align-items:center}
.fw-search>.fw-ico-sm{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted-foreground)}
.fw-search>.fw-kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%)}

/* Data table — @utility data-table / data-table-mini */
.fw-table{width:100%;border-collapse:collapse;font-size:13px;color:var(--foreground)}
.fw-table thead tr{border-bottom:1px solid var(--border);background:color-mix(in oklab,var(--surface-muted) 60%,transparent)}
.fw-table th{padding:10px 16px;font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;color:var(--muted-foreground);text-align:left}
.fw-table tbody tr+tr{border-top:1px solid var(--border)}
.fw-table tbody tr:hover{background:color-mix(in oklab,var(--surface-muted) 55%,transparent)}
.fw-table td{padding:10px 16px;vertical-align:middle}
.fw-table.mini{font-size:12px}
.fw-table.mini thead tr{background:none}
.fw-table.mini th{padding:6px 10px;font-size:10px}
.fw-table.mini td{padding:6px 10px}
.fw-check{width:14px;height:14px;border-radius:4px;border:1px solid var(--border-strong);display:inline-block;vertical-align:middle;background:var(--surface)}
.fw-check.on{background:var(--primary);border-color:var(--primary)}

/* Table toolbar — src/components/table-toolbar.tsx */
.fw-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.fw-toolbar .group{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fw-tool{height:var(--size-control);flex:none;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface);font:inherit;font-size:12px;font-weight:500;color:var(--foreground);display:inline-flex;align-items:center;gap:6px;padding:0 10px;cursor:pointer}
.fw-tool:hover,.fw-tool.on{background:var(--accent)}
.fw-tool.iconly{width:var(--size-control);padding:0;justify-content:center}
.fw-seg{height:var(--size-control);border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface);color:var(--muted-foreground);font:inherit;font-size:12px;font-weight:500;display:inline-flex;align-items:center;gap:6px;padding:0 10px;white-space:nowrap}
.fw-seg.on{border-color:color-mix(in oklab,var(--foreground) 35%,transparent);background:color-mix(in oklab,var(--foreground) 7%,var(--surface));color:var(--foreground)}
.fw-seg .n{font-variant-numeric:tabular-nums;opacity:.7}
.fw-divider-v{width:1px;height:20px;background:var(--border);margin:0 2px}

/* Selection bar — src/components/selection-bar.tsx */
.fw-selbar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;border-radius:var(--radius-panel);border:1px solid var(--border-strong);background:var(--surface);padding:8px 12px;box-shadow:var(--shadow-panel);max-width:100%}
.fw-selbar .count{padding:0 4px;font-size:12px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.fw-selact{height:var(--size-control-sm);display:inline-flex;align-items:center;gap:6px;border-radius:var(--radius-md);padding:0 10px;font:inherit;font-size:12px;font-weight:500;white-space:nowrap;border:0;background:none;color:var(--muted-foreground);cursor:pointer}
.fw-selact:hover{background:var(--accent);color:var(--foreground)}
.fw-selact.primary{color:var(--primary)}
.fw-selact.destructive{color:var(--destructive)}
.fw-selbar .x{width:28px;height:28px;display:grid;place-items:center;border-radius:var(--radius-md);color:var(--muted-foreground)}

/* Spine bar — src/components/spine-bar.tsx */
.fw-spine{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;border-radius:var(--radius-xl);border:1px solid var(--border);background:var(--card);padding:4px}
.fw-spine .stopwrap{display:flex;flex:1;min-width:200px;align-items:center;gap:4px}
.fw-stop{display:flex;flex:1;align-items:center;gap:var(--space-3);border-radius:var(--radius-lg);padding:10px 12px;color:inherit;text-decoration:none}
.fw-stop:hover,.fw-stop.on{background:var(--accent)}
.fw-stop .tile{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:var(--radius-tab);background:var(--surface-muted);color:var(--muted-foreground)}
.fw-stop.attn .tile{background:color-mix(in oklab,var(--warning) 22%,transparent);color:var(--warning-foreground)}
.fw-stop.attn .m{color:var(--warning-text,var(--warning-foreground));font-weight:500}
.fw-stop .v{font-size:26px;line-height:1;font-weight:600;letter-spacing:-0.02em;font-variant-numeric:tabular-nums}
.fw-stop .l{font-size:12px;font-weight:500}
.fw-stop .m{display:block;margin-top:4px;font-size:11px;color:var(--muted-foreground)}

/* Count tile — a filter button with its count (same look as TableToolbar segments) */
.fw-tile{height:var(--size-control);display:inline-flex;align-items:center;gap:6px;padding:0 10px;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface);color:var(--muted-foreground);font:inherit;font-size:12px;font-weight:500;line-height:16px;white-space:nowrap;cursor:pointer;transition:background-color .15s,color .15s}
.fw-tile:hover{background:var(--accent);color:var(--foreground)}
.fw-tile .n{font-variant-numeric:tabular-nums;opacity:.7}
.fw-tile.on{border-color:color-mix(in oklab,var(--foreground) 35%,transparent);background:color-mix(in oklab,var(--foreground) 7%,var(--surface));color:var(--foreground)}
.fw-tile.on .n{opacity:.7}
.fw-tile:focus-visible{outline:2px solid var(--ring);outline-offset:2px}

/* Confirm dialog — src/components/confirm-dialog.tsx */
.fw-scrim{position:relative;padding:24px;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;background:color-mix(in oklab,var(--foreground) 25%,transparent)}
.fw-dialog{width:100%;max-width:var(--size-dialog);border-radius:var(--radius-xl);border:1px solid var(--border);background:var(--card);color:var(--card-foreground);padding:20px;box-shadow:var(--shadow-dialog)}
.fw-dialog .head{display:flex;align-items:flex-start;gap:var(--space-3)}
.fw-dialog .icon{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:var(--radius-lg);background:color-mix(in oklab,var(--destructive) 10%,transparent);color:var(--destructive)}
.fw-dialog.primary .icon{background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary)}
.fw-dialog h2{margin:0;font-size:14px;font-weight:600;line-height:20px}
.fw-dialog p{margin:4px 0 0;font-size:12px;line-height:1.625;color:var(--muted-foreground)}
.fw-dialog .foot{margin-top:20px;display:flex;justify-content:flex-end;gap:var(--space-2)}
.fw-dbtn{border-radius:var(--radius-lg);padding:8px 12px;font:inherit;font-size:12px;font-weight:500;line-height:16px;border:1px solid var(--border);background:var(--card);color:var(--foreground);cursor:pointer}
.fw-dbtn.destructive{border-color:transparent;background:var(--destructive);color:var(--destructive-foreground)}
.fw-dbtn.primary{border-color:transparent;background:var(--primary);color:var(--primary-foreground)}

/* Amber note, credit banner, meter — src/components/credits-ui.tsx */
.fw-note{display:flex;align-items:flex-start;gap:var(--space-2);border-radius:var(--radius-lg);border:1px solid color-mix(in oklab,var(--warning) 40%,transparent);background:color-mix(in oklab,var(--warning) 10%,transparent);padding:8px 12px;font-size:12px;line-height:1.625;color:var(--foreground)}
.fw-note .fw-ico-sm{margin-top:2px;color:var(--warning)}
.fw-banner{border-bottom:1px solid color-mix(in oklab,var(--warning) 40%,transparent);background:color-mix(in oklab,var(--warning) 10%,transparent);display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 16px}
.fw-banner>.fw-ico{color:var(--warning)}
.fw-banner p{flex:1;min-width:0;margin:0;font-size:12px;line-height:1.625}
.fw-banner .b1{height:var(--size-control-sm);display:inline-flex;align-items:center;border-radius:var(--radius-md);background:var(--primary);color:var(--primary-foreground);padding:0 10px;font-size:11px;font-weight:500;text-decoration:none}
.fw-banner .b2{height:var(--size-control-sm);display:inline-flex;align-items:center;padding:0 8px;font-size:11px;font-weight:500;color:var(--muted-foreground);text-decoration:none}
.fw-meter{height:8px;width:100%;overflow:hidden;border-radius:var(--radius-full);background:var(--muted)}
.fw-meter>i{display:block;height:100%;border-radius:var(--radius-full);background:color-mix(in oklab,var(--foreground) 70%,transparent)}
.fw-meter.amber>i{background:var(--warning)}

/* Page action bar — src/components/page-action-bar.tsx */
.fw-actionbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);border-top:1px solid var(--border);background:color-mix(in oklab,var(--background) 90%,transparent);padding:12px 16px}
.fw-backlink{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--muted-foreground);text-decoration:none}

/* Empty state — Workflow guidelines */
.fw-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);text-align:center;padding:32px 16px}
.fw-empty .t{font-size:14px;font-weight:600}

/* ---------- Page layouts ---------- */
/* App frame — app-shell.tsx: sidebar + 64px top bar + content (max 1280px, 32px padding) */
.fw-frame{display:flex;min-height:100%;background:var(--background);border:1px solid var(--border);border-radius:var(--radius-panel);overflow:hidden}
.fw-frame>.fw-sidebar{flex:none}
.fw-frame-main{flex:1;min-width:0;display:flex;flex-direction:column}
.fw-content{width:100%;max-width:var(--size-content);margin:0 auto;padding:var(--space-8);display:flex;flex-direction:column;gap:var(--space-6)}
.fw-pagehead{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
.fw-pagehead .grow{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-3)}
.fw-mark{width:36px;height:36px;border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;flex:none}
.fw-mark img{width:22px;height:22px}
.fw-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
.fw-card{padding:var(--space-4) 20px;display:flex;flex-direction:column;gap:var(--space-3)}
.fw-card .h{display:flex;align-items:center;gap:var(--space-2);font-size:14px;font-weight:600}
.fw-card .h .fw-btn{margin-left:auto}
.fw-list{display:flex;flex-direction:column}
.fw-list>div{display:flex;align-items:center;gap:var(--space-2);padding:8px 0;font-size:13px}
.fw-list>div+div{border-top:1px solid var(--border)}
.fw-list .r{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted-foreground);font-size:12px}
.fw-linkr{color:var(--primary);font-size:12px;font-weight:500;text-decoration:none;display:inline-flex;align-items:center;gap:4px}

/* Wizard step — in-app guided task */
.fw-wizard{width:100%;max-width:672px;margin:0 auto;padding:40px var(--space-8);display:flex;flex-direction:column;gap:var(--space-6)}
.fw-steps{display:flex;gap:4px;font-size:12px}
.fw-steps span{flex:1;padding:6px 8px 0;border-top:3px solid var(--border-strong);color:var(--muted-foreground);font-weight:500}
.fw-steps span.on,.fw-steps span.done{border-color:var(--primary);color:var(--foreground)}
.fw-step-eyebrow{font-size:11px;font-weight:500;letter-spacing:.025em;text-transform:uppercase;color:var(--primary)}
.fw-wizard h1{margin:6px 0 0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-0.025em}
.fw-wizard .lede{margin:6px 0 0;font-size:13px;color:var(--muted-foreground)}
.fw-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3)}
.fw-choice{display:flex;align-items:center;gap:var(--space-3);padding:12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);font-size:13px;font-weight:500}
.fw-choice.on{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 18%,transparent)}
.fw-choice img{width:24px;height:24px}
.fw-wizfoot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);padding-top:var(--space-4);border-top:1px solid var(--border)}

/* Settings — settings-shell.tsx: 240px rail, 56px header, content max 768px */
.fw-srail{width:240px;flex:none;background:var(--sidebar);border-right:1px solid var(--sidebar-border);display:flex;flex-direction:column}
.fw-srail .top{height:56px;display:flex;align-items:center;padding:0 12px;border-bottom:1px solid var(--sidebar-border)}
.fw-srail .grp{padding:0 8px;display:flex;flex-direction:column;gap:2px;margin-top:12px}
.fw-srail .grp .fw-eyebrow{padding:0 8px 4px}
.fw-sitem{display:flex;align-items:center;gap:8px;border-radius:var(--radius-lg);padding:6px 10px;font-size:12px;font-weight:500;color:var(--muted-foreground)}
.fw-sitem.active{background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary)}
.fw-sheader{height:56px;display:flex;align-items:center;padding:0 var(--space-8);border-bottom:1px solid var(--border);font-size:14px;font-weight:500}
.fw-scontent{width:100%;max-width:768px;margin:0 auto;padding:var(--space-8);display:flex;flex-direction:column}
.fw-scontent .lede{margin:6px 0 0;max-width:576px;font-size:14px;line-height:1.625;color:var(--muted-foreground)}
.fw-scard{overflow:hidden;margin-top:var(--space-6)}
.fw-scard .hd{padding:var(--space-4) 20px;border-bottom:1px solid var(--border)}
.fw-scard .hd h2{margin:0;font-size:14px;font-weight:600}
.fw-scard .hd p{margin:4px 0 0;font-size:12px;color:var(--muted-foreground)}
.fw-scard .bd{padding:20px;display:flex;flex-direction:column;gap:var(--space-4)}
.fw-scard .ft{display:flex;justify-content:flex-end;gap:var(--space-2);padding:12px 20px;border-top:1px solid var(--border);background:color-mix(in oklab,var(--surface-muted) 50%,transparent)}
.fw-sbtn{display:inline-flex;align-items:center;gap:6px;border-radius:var(--radius-lg);padding:6px 12px;font:inherit;font-size:12px;font-weight:500;line-height:16px;border:1px solid var(--border);background:none;color:var(--muted-foreground)}
.fw-sbtn.primary{border-color:transparent;background:var(--primary);color:var(--primary-foreground)}

/* InfoTip — radix Tooltip (src/components/ui/tooltip.tsx) behind an info icon */
.fw-infotip{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:var(--radius-sm);color:var(--muted-foreground);background:none;border:0;padding:0;cursor:help;vertical-align:middle}
.fw-infotip:hover,.fw-infotip:focus-visible{color:var(--foreground);outline:none}
.fw-infotip:focus-visible{outline:2px solid var(--ring);outline-offset:1px}
.fw-tooltip{display:inline-block;max-width:240px;border-radius:var(--radius-md);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border-strong);box-shadow:var(--shadow-panel);padding:6px 12px;font-size:12px;line-height:16px}

/* TextLink — the one link look. Navigates only; actions are buttons. */
.fw-link{display:inline-flex;align-items:center;gap:4px;color:var(--primary);font:inherit;font-size:14px;font-weight:500;line-height:20px;text-decoration:none;text-underline-offset:4px;border-radius:var(--radius-sm);cursor:pointer}
.fw-link:hover{text-decoration:underline}
.fw-link:focus-visible,.fw-link.is-focus{outline:2px solid var(--ring);outline-offset:3px;border-radius:4px;text-decoration:none}
.fw-link.sm{font-size:12px;line-height:16px}
.fw-link svg{width:14px;height:14px;flex:none}
.fw-link.sm svg{width:12px;height:12px}
.fw-link.quiet{color:var(--muted-foreground)}
.fw-link.quiet:hover{color:var(--foreground)}
.fw-link.inline{display:inline;font-size:inherit;font-weight:inherit;line-height:inherit;text-decoration:underline}

/* Clickable rows — the whole row opens the object. The name cell holds the real link,
   stretched over the row; checkbox and row menu sit above it. */
.fw-table.rowlinks tbody tr{position:relative;cursor:pointer}
.fw-table.rowlinks tbody tr:has(.fw-rowlink:focus-visible),.fw-table tbody tr.is-focus{background:var(--accent);box-shadow:inset 2px 0 0 var(--primary)}
@media (forced-colors:active){.fw-table.rowlinks tbody tr:has(.fw-rowlink:focus-visible),.fw-table tbody tr.is-focus{outline:2px solid Highlight;outline-offset:-2px}}
.fw-rowlink{color:inherit;font-weight:500;text-decoration:none;outline:none}
.fw-rowlink::after{content:"";position:absolute;inset:0}
.fw-table.rowlinks .fw-check,.fw-table.rowlinks .fw-btn,.fw-table.rowlinks .fw-link{position:relative;z-index:1}

/* Skeleton — settings-shell.tsx SettingsSkeleton: surface-muted blocks that pulse */
@keyframes fw-pulse{50%{opacity:.5}}
.fw-skel{display:block;border-radius:var(--radius-lg);background:var(--surface-muted);animation:fw-pulse 2s cubic-bezier(.4,0,.6,1) infinite}
.fw-skel.line{height:12px;border-radius:var(--radius-sm)}
.fw-skel.row{height:36px}
@media (prefers-reduced-motion:reduce){.fw-skel{animation:none}}

/* ProgressBar — design-kit/ui/progress.tsx (radix Progress): 8px, full radius, primary on primary/20 */
.fw-progress{display:flex;flex-direction:column;gap:6px;min-width:0}
.fw-progress .top{display:flex;align-items:baseline;gap:var(--space-2);font-size:12px;line-height:16px}
.fw-progress .top b{font-weight:500;color:var(--foreground)}
.fw-progress .top .n{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted-foreground)}
.fw-progress .foot{display:flex;align-items:center;gap:var(--space-2);font-size:12px;color:var(--muted-foreground)}
.fw-bar{position:relative;height:8px;width:100%;overflow:hidden;border-radius:var(--radius-full);background:color-mix(in oklab,var(--primary) 20%,transparent)}
.fw-bar>i{display:block;height:100%;border-radius:var(--radius-full);background:var(--primary);transition:width .3s ease}
.fw-bar.sm{height:6px}
.fw-progress.done .fw-bar{background:color-mix(in oklab,var(--success) 20%,transparent)}
.fw-progress.done .fw-bar>i{background:var(--success)}
.fw-progress.failed .fw-bar{background:color-mix(in oklab,var(--destructive) 15%,transparent)}
.fw-progress.failed .fw-bar>i{background:var(--destructive)}
.fw-progress.done .top .fw-ico-sm{color:var(--success)}
.fw-progress.failed .top .fw-ico-sm{color:var(--destructive)}
@keyframes fw-indet{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
.fw-bar.indet>i{width:40%;animation:fw-indet 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.fw-bar>i{transition:none}.fw-bar.indet>i{animation:none;width:100%;opacity:.35}}

/* RunStrip — stage progress across a run (src/components/run-strip.tsx), drawn as a segmented track */
.fw-runstrip{display:flex;flex-direction:column;gap:12px;border-radius:var(--radius-panel);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-panel);padding:12px 16px}
.fw-runstrip .head{display:flex;align-items:center;gap:var(--space-3);min-width:0}
.fw-runstrip .head .t{display:flex;flex-direction:column;min-width:0;flex:1}
.fw-runstrip .head .t b{font-size:14px;font-weight:600;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fw-runstrip .head .t span{font-size:12px;line-height:16px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
.fw-runstrip .head .dot{width:8px;height:8px;border-radius:50%;background:var(--primary);flex:none;animation:fw-pulse 2.4s ease-in-out infinite}
.fw-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none}
.fw-track li{display:flex;flex-direction:column;gap:6px;min-width:0}
.fw-track li::before{content:"";height:4px;border-radius:var(--radius-full);background:var(--border-strong)}
.fw-track li.done::before{background:var(--success)}
.fw-track li.current::before{background:var(--primary)}
.fw-track a{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;line-height:16px;color:var(--muted-foreground);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:4px}
.fw-track a:hover{color:var(--foreground)}
.fw-track a:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.fw-track li.done a svg{width:12px;height:12px;color:var(--success);flex:none}
.fw-track li.current a{color:var(--foreground);font-weight:600}
.fw-track li.todo span{font-size:12px;font-weight:500;line-height:16px;color:var(--muted-foreground);opacity:.7}
.fw-runstrip.complete .head .dot{background:var(--success);animation:none}
@media (prefers-reduced-motion:reduce){.fw-runstrip .head .dot{animation:none}}
@media (max-width:560px){.fw-track span.lbl,.fw-track a span.lbl{display:none}}

/* Nav count — actions waiting on that page (sidebar item or sub-item) */
.fw-navcount{margin-left:auto;min-width:18px;height:16px;padding:0 5px;border-radius:var(--radius-full);background:var(--surface);color:var(--foreground);box-shadow:inset 0 0 0 1px var(--border-strong);font-size:10px;font-weight:600;line-height:16px;text-align:center;font-variant-numeric:tabular-nums;flex:none}
.fw-subitem.active .fw-navcount{box-shadow:inset 0 0 0 1px color-mix(in oklab,var(--primary) 40%,transparent)}
.fw-navitem .fw-navcount+.chev{margin-left:4px}
.fw-subitem .fw-navcount{margin-left:8px}
.fw-navdot{position:relative}
.fw-navdot::after{content:"";position:absolute;top:-2px;right:-3px;width:6px;height:6px;border-radius:50%;background:var(--muted-foreground);box-shadow:0 0 0 2px var(--sidebar)}
.fw-railmini{width:var(--size-sidebar-collapsed);background:var(--sidebar);border-right:1px solid var(--sidebar-border);display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 0}
.fw-railmini a{width:28px;height:28px;display:grid;place-items:center;border-radius:var(--radius-lg);color:var(--muted-foreground)}
.fw-railmini a.on{background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary)}

/* Full-screen grid — src/components/data-grid.tsx */
.fw-fs{display:flex;flex-direction:column;background:var(--background);border:1px solid var(--border);border-radius:var(--radius-panel);overflow:hidden}
.fw-fs-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border)}
.fw-fs-head .t{margin-right:auto;min-width:0}
.fw-fs-head .t b{display:block;font-size:14px;font-weight:600;line-height:20px}
.fw-fs-head .t span{display:block;font-size:11px;line-height:16px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
.fw-exit{height:var(--size-control);display:inline-flex;align-items:center;gap:6px;padding:0 10px;border-radius:var(--radius-md);border:0;background:var(--foreground);color:var(--background);font:inherit;font-size:12px;font-weight:500}
.fw-fs-body{display:flex;min-height:0;flex:1}
.fw-grid{flex:1;min-width:0;overflow:auto}
.fw-grid table{border-collapse:separate;border-spacing:0;font-size:13px;width:max-content;min-width:100%}
.fw-grid th{position:sticky;top:0;z-index:2;background:var(--surface-muted);height:34px;padding:0 12px;text-align:left;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);border-bottom:1px solid var(--border);border-right:1px solid color-mix(in oklab,var(--border) 60%,transparent);white-space:nowrap}
.fw-grid td{height:34px;padding:0 12px;border-bottom:1px solid color-mix(in oklab,var(--border) 60%,transparent);white-space:nowrap;background:var(--surface)}
.fw-grid .fz1{position:sticky;left:0;z-index:1;width:40px}
.fw-grid .fz2{position:sticky;left:40px;z-index:1;box-shadow:8px 0 12px -12px rgb(0 0 0 / .45)}
.fw-grid th.fz1,.fw-grid th.fz2{z-index:3}
.fw-grid tr.sel td{background:color-mix(in oklab,var(--primary) 5%,var(--surface))}
.fw-grid tr.cur td{background:color-mix(in oklab,var(--accent) 60%,var(--surface))}
.fw-grid td.cell{outline:2px solid var(--primary);outline-offset:-2px}
.fw-grid .r{text-align:right;font-variant-numeric:tabular-nums}
.fw-grid .sku{font-family:var(--font-mono);font-size:11px;color:var(--muted-foreground);margin-left:8px}
.fw-grid .sort{display:inline-block;vertical-align:-2px;color:var(--primary)}
.fw-grid .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);margin-left:6px;vertical-align:1px}
.fw-rail{width:280px;flex:none;border-left:1px solid var(--border);background:var(--surface);padding:16px;display:flex;flex-direction:column;gap:10px}
.fw-rail .rh{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600}
.fw-rail label{display:flex;align-items:center;gap:8px;font-size:12px}
.fw-fs-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 12px;border-top:1px solid var(--border);background:var(--surface);font-size:12px}
.fw-fs-foot .m{font-variant-numeric:tabular-nums;color:var(--muted-foreground)}
.fw-fs-foot .selp{border-radius:var(--radius-full);padding:2px 8px;font-weight:500;background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary);font-variant-numeric:tabular-nums}
.fw-fs-foot .keys{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted-foreground)}
.fw-fs-foot kbd{font-family:var(--font-mono);font-size:10px;border:1px solid var(--border);background:var(--surface-muted);border-radius:5px;padding:1px 5px}

/* Review editor — Enrich / Translate review workspace */
.fw-rv{display:flex;flex-direction:column}
.fw-rv-head{height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--border);background:var(--surface)}
.fw-rv-head .name{font-size:14px;font-weight:600}
.fw-rv-head .pos{font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
.fw-rv-head .sp{flex:1}
.fw-rv-doc{padding:0 0 16px;display:flex;flex-direction:column;gap:12px}
.fw-rv-filters{display:flex;align-items:center;gap:8px}
.fw-rv-table{width:100%;border-collapse:collapse;font-size:13px}
.fw-rv-table th{padding:10px 12px;text-align:left;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);border-bottom:1px solid var(--border);background:color-mix(in oklab,var(--surface-muted) 60%,transparent)}
.fw-rv-table td{padding:12px;vertical-align:top;border-bottom:1px solid var(--border);line-height:20px}
.fw-rv-table td.f{width:150px;font-weight:500}
.fw-rv-table td.cur{color:var(--muted-foreground);width:34%}
.fw-rv-table td.sug .box{border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);padding:8px 10px}
.fw-rv-table td.sug mark{background:color-mix(in oklab,var(--success) 16%,transparent);color:inherit;border-radius:3px;padding:0 2px}
.fw-rv-table td.act{width:150px;white-space:nowrap;text-align:right}
.fw-rv-table tr.decided td{opacity:.7}
.fw-rv-bar{display:flex;align-items:center;gap:8px;padding:12px 0;border-top:1px solid var(--border);background:color-mix(in oklab,var(--background) 90%,transparent)}
.fw-rv-bar .m{font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums;margin-right:auto}

/* ---- Audit fixes, 7 Oct 2026 ---- */
/* Status text that reaches 4.5:1 on its tint */
.fw-status.ok{color:var(--success-text)}
.fw-status.warn{color:var(--warning-text)}
.fw-status.bad{color:var(--destructive-text)}
.fw-status.info{color:var(--info-text)}
/* InfoTip: 24px target, 44px on touch, opens on tap */
.fw-infotip{width:24px;height:24px}
@media (pointer:coarse){.fw-infotip{width:44px;height:44px;margin:-10px}}
/* Column menu button: visible on hover and focus, always on touch */
.fw-table th .fw-colmenu{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:4px;vertical-align:middle;border:0;background:none;border-radius:var(--radius-sm);color:var(--muted-foreground);opacity:0;cursor:pointer;padding:0}
.fw-table th:hover .fw-colmenu,.fw-table th:focus-within .fw-colmenu,.fw-table th .fw-colmenu.is-shown{opacity:1}
.fw-colmenu:hover{background:var(--accent);color:var(--foreground)}
.fw-colmenu:focus-visible{outline:2px solid var(--ring);outline-offset:1px}
@media (pointer:coarse){.fw-table th .fw-colmenu{opacity:1}}
/* Field error */
.fw-field.is-error{border-color:var(--destructive-text)}
.fw-field.is-error:focus,.fw-field.is-error.is-focus{box-shadow:0 0 0 3px color-mix(in oklab,var(--destructive) 18%,transparent)}
.fw-error{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;line-height:16px;color:var(--destructive-text)}
.fw-error svg{width:14px;height:14px;flex:none}
/* ErrorAlert */
.fw-alert{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-radius:var(--radius-lg);border:1px solid color-mix(in oklab,var(--destructive) 35%,transparent);background:color-mix(in oklab,var(--destructive) 6%,var(--surface));color:var(--foreground)}
.fw-alert>svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--destructive-text)}
.fw-alert .t{font-size:13px;font-weight:600;line-height:20px}
.fw-alert .d{font-size:12px;line-height:18px;color:var(--muted-foreground)}
.fw-alert .act{margin-left:auto;display:flex;gap:8px;flex:none}
/* Toast */
.fw-toast{display:flex;align-items:center;gap:10px;width:100%;max-width:var(--size-toast);padding:8px 8px 8px 14px;border-radius:var(--radius-lg);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border-strong);box-shadow:var(--shadow-dialog);font-size:13px;line-height:18px}
.fw-toast>svg{width:16px;height:16px;flex:none}
.fw-toast .ok{color:var(--success-text)}
.fw-toast .bad{color:var(--destructive-text)}
.fw-toast .msg{flex:1;min-width:0}
.fw-toast .x{width:28px;height:28px;display:grid;place-items:center;border:0;background:none;border-radius:var(--radius-md);color:var(--muted-foreground);cursor:pointer}
.fw-toast .x:hover{background:var(--accent);color:var(--foreground)}
.fw-toast .x svg{width:14px;height:14px}
.fw-toasts{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
/* Drawer */
.fw-drawer{width:var(--size-drawer);max-width:100%;background:var(--surface);border-left:1px solid var(--border);box-shadow:var(--shadow-dialog);display:flex;flex-direction:column}
.fw-drawer .dh{height:56px;display:flex;align-items:center;gap:8px;padding:0 8px 0 20px;border-bottom:1px solid var(--border)}
.fw-drawer .dh h2{margin:0;font-size:14px;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-drawer .db{flex:1;padding:20px;display:flex;flex-direction:column;gap:16px;overflow:auto}
.fw-drawer .df{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--border)}
.fw-drawer.rail{width:var(--size-rail);box-shadow:none}
/* More menu */
.fw-menu{min-width:200px;padding:4px;border-radius:var(--radius-lg);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border-strong);box-shadow:var(--shadow-panel);display:flex;flex-direction:column}
.fw-menu .mi{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px;border-radius:var(--radius-md);font-size:13px;cursor:pointer;border:0;background:none;color:inherit;text-align:left;font-family:inherit}
.fw-menu .mi svg{width:14px;height:14px;flex:none;color:var(--muted-foreground)}
.fw-menu .mi:hover,.fw-menu .mi.cur{background:var(--accent);color:var(--accent-foreground)}
.fw-menu .mi.danger,.fw-menu .mi.danger svg{color:var(--destructive-text)}
.fw-menu .mi[aria-disabled=true]{opacity:.5;cursor:default}
.fw-menu .mi .k{margin-left:auto;font-family:var(--font-mono,ui-monospace),monospace;font-size:11px;color:var(--muted-foreground)}
.fw-menu .sep{height:1px;background:var(--border);margin:4px -4px}
/* Checkbox */
.fw-check{display:inline-grid;place-items:center;width:16px;height:16px;border-color:var(--border-control);flex:none}
.fw-check svg{width:12px;height:12px;color:var(--primary-foreground);stroke-width:3}
.fw-check.on,.fw-check.mixed{background:var(--primary);border-color:var(--primary)}
.fw-check.is-focus{outline:2px solid var(--ring);outline-offset:2px}
.fw-check.is-disabled{opacity:.5}
.fw-cbrow{display:inline-flex;align-items:center;gap:8px;min-height:32px;font-size:13px;cursor:pointer}
@media (pointer:coarse){.fw-cbrow{min-height:var(--size-touch)}}
/* Disabled reason */
.fw-why{font-size:12px}
/* Sidebar footer */
.fw-sidebar .foot{margin-top:auto;padding:6px;border-top:1px solid var(--sidebar-border);display:flex;flex-direction:column;gap:2px}

/* Icons: 1.5px stroke to match Inter at 12–14px (overrides the SVG attribute). */
.fw-ico,.fw-ico-sm{stroke-width:1.5}
/* Section heading inside a page. */
.fw-section-title{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-0.01em;margin:0}
/* Disabled: grey, not a faded brand colour. */
.fw-btn.fw-btn:disabled,.fw-btn.fw-btn.is-disabled{opacity:1;background:var(--muted);color:var(--muted-foreground);border-color:transparent;box-shadow:none;pointer-events:none}

/* ---- Subtle pass, 8 Oct 2026 ---- */
.fw-page-title{font-size:20px;letter-spacing:-0.015em}
@media (min-width:768px){.fw-page-title{font-size:22px}}
.fw-table th{font-size:11px;font-weight:600;line-height:16px;letter-spacing:.08em;text-transform:uppercase}
.fw-table thead tr{background:transparent}
.fw-table tbody tr+tr{border-top-color:color-mix(in oklab,var(--border) 70%,transparent)}
.fw-table td.fw-num,.fw-table td[style*="text-align:right"],.fw-table .fw-num{font-variant-numeric:tabular-nums}
.fw-status{background:transparent;box-shadow:inset 0 0 0 1px var(--border-strong)}
.fw-status.ok,.fw-status.warn,.fw-status.bad,.fw-status.info{background:transparent;box-shadow:inset 0 0 0 1px color-mix(in oklab,currentColor 25%,transparent)}
.fw-navitem{border-radius:var(--radius-md)}
.fw-navitem.active{background:var(--surface);color:var(--foreground);box-shadow:0 0 0 1px var(--border),var(--shadow-sm)}
.fw-navitem.active>.fw-ico-sm:first-child{color:var(--primary)}
.fw-subitem{border-radius:var(--radius-md)}
.fw-subitem.active{background:transparent;color:var(--primary);font-weight:600}
.fw-btn.default{box-shadow:inset 0 1px 0 rgb(255 255 255 / .14),0 0 0 1px color-mix(in oklab,var(--primary) 80%,black),0 1px 2px rgb(0 0 0 / .08)}
.fw-btn.outline{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.fw-btn.default:disabled,.fw-btn.default.is-disabled{box-shadow:none}

.fw-seg:hover{background:var(--accent);color:var(--foreground)}
.fw-seg.on:hover{background:color-mix(in oklab,var(--foreground) 10%,var(--surface))}

/* Page actions in the page head, 8 Oct 2026 */
.fw-pagehead{min-height:var(--size-control)}
.fw-pagehead .acts{display:flex;align-items:center;gap:var(--space-2);margin-left:auto;flex:none}
.fw-pagehead .meta{font-size:12px;color:var(--muted-foreground);white-space:nowrap}

/* Word families next to status, 8 Oct 2026 */
.fw-sev{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;line-height:16px;white-space:nowrap}
.fw-sev svg{width:14px;height:14px;flex:none}
.fw-sev.crit{color:var(--destructive-text)}
.fw-sev.warn{color:var(--warning-text)}
.fw-sev.imp{color:var(--muted-foreground)}
.fw-dec{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;color:var(--muted-foreground);white-space:nowrap}
.fw-dec svg{width:14px;height:14px;flex:none}
.fw-dec.acc{color:var(--success-text)}
.fw-delta{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.fw-delta.plus{color:var(--success-text)}
.fw-delta.minus{color:var(--destructive-text)}
.fw-delta.zero{color:var(--muted-foreground)}
.fw-fam{display:grid;grid-template-columns:110px 1fr;gap:12px 16px;align-items:center}
.fw-fam .k{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground)}

/* SettingsList, 8 Oct 2026 */
.fw-slist{display:flex;flex-direction:column}
.fw-slist .sl-h{display:flex;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid var(--border);font-size:14px;font-weight:600}
.fw-slist .sl-h .n{font-size:12px;font-weight:400;color:var(--muted-foreground)}
.fw-srow{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 16px}
.fw-srow+.fw-srow,.fw-srow+.fw-sbody,.fw-sbody+.fw-srow{border-top:1px solid color-mix(in oklab,var(--border) 70%,transparent)}
.fw-srow .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fw-srow .lbl{font-size:13px;font-weight:500;color:var(--foreground)}
.fw-srow .clar{font-size:12px;color:var(--muted-foreground)}
.fw-srow .val{font-size:13px;color:var(--muted-foreground);white-space:nowrap}
.fw-srow .meta{font-size:12px;color:var(--muted-foreground);white-space:nowrap}
.fw-srow.off .lbl{color:var(--muted-foreground)}
.fw-srow .chev{width:16px;height:16px;color:var(--muted-foreground);flex:none}
.fw-srow.link{cursor:pointer}.fw-srow.link:hover{background:var(--accent)}
.fw-sbody{padding:12px 16px 16px 60px;background:color-mix(in oklab,var(--surface-muted) 50%,var(--surface));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fw-switch{width:32px;height:18px;border-radius:9999px;background:var(--border-control);position:relative;flex:none;border:0;padding:0;cursor:pointer}
.fw-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgb(0 0 0/.2);transition:left .15s}
.fw-switch.on{background:var(--primary)}.fw-switch.on::after{left:16px}
.fw-switch.is-disabled{opacity:.5}
.fw-radiorow{display:inline-flex;gap:4px}
.fw-sel{height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);font-size:12px;font-weight:500;color:var(--foreground);white-space:nowrap}
.fw-sel svg{width:14px;height:14px;color:var(--muted-foreground)}
/* Grouped rows — one centre line for every cell */
.fw-table tr.grp td{height:40px;padding-top:0;padding-bottom:0;vertical-align:middle;line-height:16px;background:color-mix(in oklab,var(--surface-muted) 60%,var(--surface));font-size:12px;font-weight:600;color:var(--foreground)}
.fw-table tr.grp td>*{vertical-align:middle}
.fw-table tr.grp .g{display:inline-flex;align-items:center;gap:8px;height:16px}
.fw-table tr.grp .g img,.fw-table tr.grp .g .mk{width:16px;height:16px;flex:none;display:block}
.fw-table tr.grp .g svg.c{width:14px;height:14px;color:var(--muted-foreground);flex:none;display:block}
.fw-table tr.grp .cnt{font-weight:400;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
.fw-table tr.grp .sum{float:right;line-height:16px;font-weight:400;color:var(--muted-foreground)}
.fw-table tr.grp.sub td{background:transparent;font-weight:500}
.fw-table tr.grp.sub td.gl{padding-left:calc(var(--space-4,16px) + 24px)}
.fw-table tr.var td{color:var(--muted-foreground)}
.fw-table tr.var td.ind{padding-left:40px}

/* Sort = click the header itself, 8 Oct 2026 */
.fw-table th.sortable{cursor:pointer;user-select:none}
.fw-table th.sortable:hover{color:var(--foreground)}
.fw-table th .fw-sortarrow{display:inline-block;width:12px;height:12px;margin-left:4px;vertical-align:-1px;color:var(--primary)}
.fw-table th[aria-sort="none"] .fw-sortarrow{display:none}
.fw-table th.sortable[aria-sort="none"]:hover .fw-sortarrow{display:inline-block;color:var(--muted-foreground)}
.fw-table th[style*="text-align:right"] .fw-sortarrow{margin-left:0;margin-right:4px}

/* Table toolbar v2 — one left group, count in the table foot, 8 Oct 2026 */
.fw-tbar{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:12px}
.fw-tbar .row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fw-tbar .row .fw-field-wrap{flex:0 1 240px;min-width:160px}
.fw-tbar .row .fw-field-wrap input{width:100%}
.fw-tbar .vt{display:inline-flex;gap:6px;flex:none}
.fw-tool:disabled,.fw-tool.is-disabled{background:var(--surface);color:var(--muted-foreground);opacity:.6;cursor:not-allowed}
.fw-tablefoot{display:flex;align-items:center;gap:12px;min-height:36px;padding:0 16px;border-top:1px solid var(--border);font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums;white-space:nowrap}
.fw-tablefoot .act{color:var(--foreground);font-weight:500;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.fw-tablefoot .act:hover{text-decoration:underline}

/* App scroll area — the layout never shifts when a scrollbar appears, 8 Oct 2026 */
.fw-app{height:100dvh;overflow:hidden;display:grid;grid-template-columns:auto 1fr}
.fw-scroll{height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;overscroll-behavior:contain}
.fw-scroll:hover{scrollbar-color:var(--muted-foreground) transparent}
.fw-scroll::-webkit-scrollbar{width:8px;height:8px}
.fw-scroll::-webkit-scrollbar-track{background:transparent}
.fw-scroll::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:9999px;border:2px solid transparent;background-clip:padding-box}
.fw-scroll::-webkit-scrollbar-thumb:hover{background:var(--muted-foreground);background-clip:padding-box}
.fw-scroll::-webkit-scrollbar-button{display:none}

/* SettingsList form rows — label column + aligned control column, 8 Oct 2026 */
.fw-slist.form .fw-srow{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:center}
.fw-slist.form .fw-srow .ctl{display:flex;align-items:center;gap:8px;min-width:0}
.fw-slist.form .fw-srow .lblw{display:inline-flex;align-items:center;gap:4px}
.fw-slist.form .fw-srow.link{grid-template-columns:200px minmax(0,1fr) auto}
.fw-slist .fw-field.w-text{width:320px;max-width:100%}
.fw-slist .fw-sel.w-sel{width:240px;justify-content:space-between}
.fw-infotip{display:inline-grid;place-items:center;width:24px;height:24px;border:0;background:none;color:var(--muted-foreground);border-radius:var(--radius-sm);padding:0;cursor:help}
.fw-infotip svg{width:14px;height:14px}
.fw-valuemark{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--foreground)}
.fw-valuemark img{width:16px;height:16px}
.fw-slist .sl-f{display:flex;align-items:center;gap:6px;padding:10px 16px;border-top:1px solid var(--border);font-size:12px;color:var(--muted-foreground)}

/* Sidebar: a count takes the chevron's place, one right column, 8 Oct 2026 */
.fw-navitem .fw-navcount~.chev{display:none}
.fw-navitem .fw-navcount,.fw-navitem .chev{margin-left:auto}
.fw-navitem .chev{width:18px;flex:none}
.fw-subitem .fw-navcount{margin-left:auto}

/* Paused status, 8 Oct 2026 */
.fw-status.paused::before{width:6px;height:7px;border-radius:0;background:linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px,currentColor 4px 6px)}
/* Group header action */
.fw-table tr.grp .gact{float:right;margin-left:12px}
.fw-table tr.grp .gact .fw-btn{height:24px;padding:0 8px;font-size:12px}
/* CodeBlock */
.fw-code{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-muted);overflow:hidden}
.fw-code .ch{display:flex;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted-foreground)}
.fw-code .ch .t{font-weight:500;color:var(--foreground)}
.fw-code .ch .fw-btn{margin-left:auto}
.fw-code pre{margin:0;padding:12px 0;max-height:360px;overflow:auto;font-family:var(--font-mono,"IBM Plex Mono",ui-monospace,monospace);font-size:12px;line-height:20px;color:var(--foreground);counter-reset:ln;tab-size:2;white-space:pre}
.fw-code pre code{display:block}
.fw-code pre .l{display:block;padding:0 16px 0 0}
.fw-code pre .l::before{counter-increment:ln;content:counter(ln);display:inline-block;width:40px;padding-right:12px;text-align:right;color:var(--muted-foreground);opacity:.7;user-select:none}
.fw-code .tg{color:var(--muted-foreground)}
.fw-code .cf{display:flex;align-items:center;gap:12px;height:36px;padding:0 12px;border-top:1px solid var(--border);font-size:12px;color:var(--muted-foreground)}
/* AppFrame preview: fixed-height shell, only content scrolls */
.fw-frame.fixed{height:520px;min-height:0}
.fw-frame.fixed .fw-frame-main{min-height:0}
.fw-frame.fixed .fw-scroll{flex:1;height:auto;min-height:0}


/* Runtime placement, Radio and phone rules, 8 Oct 2026 (gaps found building Output channels) */
.fw-root [hidden]{display:none!important}
/* Overlays: the components above are drawn in place; these modifiers place them in the window */
.fw-scrim.fixed{position:fixed;inset:0;z-index:40}
.fw-drawer.fixed{position:fixed;top:0;right:0;bottom:0;z-index:40}
.fw-menu.floating{position:fixed;z-index:41}
.fw-tooltip.floating{position:fixed;z-index:70}
.fw-toasts.fixed{position:fixed;right:var(--space-4);bottom:var(--space-4);z-index:60}
.fw-selbar-dock{position:fixed;left:0;right:0;bottom:var(--space-6);z-index:30;display:flex;justify-content:center;pointer-events:none}
.fw-selbar-dock>.fw-selbar{pointer-events:auto}
.fw-actionbar.sticky{position:sticky;bottom:0;z-index:5}
/* AppFrame in a real window: sidebar + a column of top bar and the one scroll area */
.fw-app>.fw-sidebar{height:100dvh;overflow-y:auto}
.fw-app>.fw-frame-main{height:100dvh;min-height:0}
.fw-app>.fw-frame-main>.fw-scroll{flex:1;height:auto;min-height:0}
.fw-menubtn,.fw-searchbtn{display:none}
.fw-crumbs .here{overflow:hidden;text-overflow:ellipsis}
/* Mini tables use the one header style */
.fw-table.mini th{font-size:11px}
/* Choice cards: one size in a set — equal rows, a fixed minimum height, label left-aligned (also when the card is a <button>) */
.fw-choices{grid-auto-rows:1fr}
.fw-choice{min-height:56px;height:100%;width:100%;text-align:left;font-family:inherit;color:inherit;cursor:pointer;line-height:18px}
.fw-choice img{flex:none}
/* Product thumbnail (product tables, drawers): 32px comfortable, 20px compact; placeholder icon when there is no image */
.fw-thumb{width:32px;height:32px;flex:none;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-muted);display:inline-grid;place-items:center;overflow:hidden;vertical-align:middle;color:var(--muted-foreground)}
.fw-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.fw-thumb svg{width:14px;height:14px}
.fw-thumb.sm{width:20px;height:20px}
.fw-thumb.sm svg{width:12px;height:12px}
.fw-thumb.lg{width:64px;height:64px}
.fw-thumb.lg svg{width:20px;height:20px}
/* The 40px row More column: an icon-only cell drops to 6px side padding so the 28px button fits */
.fw-table td:has(>.fw-btn.icon:only-child),.fw-table th:empty{padding-left:6px;padding-right:6px}
/* A table inside a SettingsList card: a row after it gets the hairline divider */
.fw-slist>.fw-table+.fw-srow,.fw-slist>div:has(>.fw-table)+.fw-srow{border-top:1px solid color-mix(in oklab,var(--border) 70%,transparent)}
/* Radio: one of a list of 4+ objects (a market, a store); 2-3 short options use the Choice segments */
.fw-radio{width:16px;height:16px;border-radius:var(--radius-full);border:1px solid var(--border-control);background:var(--surface);display:inline-grid;place-items:center;flex:none;cursor:pointer}
.fw-radio.on{border-color:var(--primary)}
.fw-radio.on::after{content:"";width:8px;height:8px;border-radius:var(--radius-full);background:var(--primary)}
.fw-radio:focus-visible,.fw-radio.is-focus{outline:2px solid var(--ring);outline-offset:2px}
.fw-radio.is-disabled{opacity:.5;cursor:default}
@media (max-width:1023px){
  .fw-app{grid-template-columns:1fr}
  .fw-app>.fw-sidebar{display:none}
  .fw-menubtn{display:inline-grid}
}
@media (max-width:639px){
  .fw-content{padding:var(--space-4)}
  .fw-wizard{padding:var(--space-6) var(--space-4)}
  .fw-pagehead .grow{flex-wrap:wrap}
  .fw-pagehead .acts{flex-basis:100%;margin-left:0;flex-wrap:wrap}
  .fw-pagetabs{overflow-x:auto;scrollbar-width:none}
  .fw-alert{flex-wrap:wrap}
  .fw-topbar{grid-template-columns:minmax(0,1fr) auto auto}
  .fw-topbar .fw-search{display:none}
  .fw-searchbtn{display:inline-grid}
  .fw-crumbs>:not(.here){display:none}
  .fw-slist.form .fw-srow,.fw-slist.form .fw-srow.link{grid-template-columns:1fr;gap:6px}
  .fw-sbody{grid-template-columns:1fr;padding-left:var(--space-4)}
  .fw-slist.form .fw-srow.link{grid-template-columns:minmax(0,1fr) auto}
  .fw-slist.form .fw-srow.link .chev{grid-column:2;grid-row:1 / span 2;align-self:center}
  .fw-slist .fw-sel.w-sel,.fw-slist .fw-field.w-text{width:100%}
  .fw-choices{grid-template-columns:1fr}
  .fw-toasts.fixed{left:var(--space-4)}
  .fw-drawer.fixed{width:100%}
}

/* ChannelMark, 8 Oct 2026: a channel's brand mark, plain or in an outline circle. The mark file is never changed; the circle is a wrapper. */
.fw-chmark{display:inline-grid;place-items:center;flex:none;width:20px;height:20px}
.fw-chmark img{width:100%;height:100%;display:block}
.fw-chmark.circle{width:32px;height:32px;border-radius:var(--radius-full);border:1px solid var(--border-strong);background:var(--surface)}
.fw-chmark.circle img{width:60%;height:60%}
.fw-chmark.circle.sm{width:24px;height:24px}
.fw-chmark.circle.lg{width:40px;height:40px}
.fw-chmark.circle.xl{width:56px;height:56px}

/* ChannelMark stack, 8 Oct 2026: several channels in one table cell. Up to 4 circles, then "+N". */
.fw-chmark-stack{display:inline-flex;align-items:center;vertical-align:middle}
.fw-chmark-stack .fw-chmark.circle{box-shadow:0 0 0 2px var(--surface)}
.fw-chmark-stack .fw-chmark+.fw-chmark{margin-left:-6px}
.fw-chmark-stack .more{margin-left:6px;font-size:12px;font-weight:500;color:var(--muted-foreground);font-variant-numeric:tabular-nums}

/* Short-task dialog width (ConfirmDialog › Short task, ExportDialog), 8 Oct 2026. */
.fw-dialog.task{max-width:560px}
.fw-dialog .body{margin-top:16px;display:flex;flex-direction:column;gap:var(--space-4)}
.fw-dialog .field-h{font-size:12px;font-weight:500;color:var(--foreground);margin-bottom:6px;display:flex;align-items:center;gap:4px}
.fw-dialog .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--space-4);max-height:200px;overflow:auto}
@media (max-width:639px){.fw-dialog .fields{grid-template-columns:1fr}}

/* ProductTile, 8 Oct 2026: the tile view of a product table (TableToolbar › view). */
.fw-ptiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--space-3)}
.fw-ptile{position:relative;display:flex;flex-direction:column;gap:6px;padding:8px;background:var(--surface);border-radius:var(--radius-panel);box-shadow:var(--shadow-panel);outline:1px solid var(--border);outline-offset:-1px;min-width:0}
.fw-ptile:hover{background:var(--accent)}
.fw-ptile.is-selected{background:color-mix(in oklab,var(--primary) 5%,var(--surface));outline-color:color-mix(in oklab,var(--primary) 40%,transparent)}
.fw-ptile .img{aspect-ratio:1/1;width:100%;max-width:100%;border-radius:var(--radius-md);background:var(--surface-muted);display:grid;place-items:center;overflow:hidden;color:var(--muted-foreground)}
.fw-ptile .img img{width:100%;height:100%;object-fit:cover;display:block}
.fw-ptile .img svg{width:20px;height:20px}
.fw-ptile .sel{position:absolute;top:14px;left:14px}
.fw-ptile .more{position:absolute;top:12px;right:12px}
.fw-ptile .fw-rowlink{font-size:13px;font-weight:500;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.fw-ptile .sel,.fw-ptile .more{z-index:1}
.fw-ptile .sku{font-family:var(--font-mono);font-size:12px;color:var(--muted-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fw-ptile .meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-variant-numeric:tabular-nums}

/* SettingsList options area, 8 Oct 2026: the grey well under a row (Switch + options, a choice that needs a value). Aligned with the control column. */
.fw-sopts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:-4px 16px 12px 220px;padding:12px;border-radius:var(--radius-lg);background:var(--surface-muted);font-size:12px;color:var(--muted-foreground)}
@media (max-width:639px){.fw-sopts{margin-left:16px}}

/* 9 Oct 2026, from the Catalogues build: disabled dialog confirm, compact table rows, SelectionBar meta, ProductTile on phones. */
.fw-dbtn.is-disabled,.fw-dbtn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.fw-table.compact tbody td{padding-top:6px;padding-bottom:6px;font-size:13px}
.fw-table.compact .fw-thumb{width:20px;height:20px}
.fw-selbar .meta{font-size:12px;color:var(--muted-foreground);white-space:nowrap}
@media (max-width:639px){.fw-ptiles{grid-template-columns:repeat(2,minmax(0,1fr))}.fw-ptile .meta{flex-wrap:wrap}}

/* 9 Oct 2026, Catalogue v2: detail pager, product page parts, table extras, filter groups. */
/* DetailPage pager: Previous / Next through the list the object was opened from ("3 of 48"). */
.fw-pager{display:inline-flex;align-items:center;gap:4px;flex:none}
.fw-pager .pos{font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums;padding:0 4px;white-space:nowrap}
/* Tag: a neutral label chip (product tags). Never a status. */
.fw-tags{display:flex;flex-wrap:wrap;gap:6px}
.fw-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--radius-full);border:1px solid var(--border);background:var(--surface);font-size:12px;color:var(--muted-foreground);white-space:nowrap}
/* Figures: a row of labelled numbers in a card (pricing). */
.fw-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--space-3)}
.fw-kpi{display:flex;flex-direction:column;gap:2px;min-width:0}
.fw-kpi .l{font-size:12px;color:var(--muted-foreground)}
.fw-kpi .v{font-size:20px;line-height:28px;font-weight:600;letter-spacing:-0.01em;font-variant-numeric:tabular-nums}
.fw-kpi .s{font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
/* Gallery: the product's images, one large and a strip of thumbnails. */
.fw-gallery{display:flex;flex-direction:column;gap:8px;max-width:100%}
.fw-gallery .main{aspect-ratio:1/1;width:100%;max-width:100%;border-radius:var(--radius-panel);background:var(--surface-muted);border:1px solid var(--border);display:grid;place-items:center;overflow:hidden;color:var(--muted-foreground)}
.fw-gallery .main img{width:100%;height:100%;object-fit:cover}
.fw-gallery .main svg{width:28px;height:28px}
.fw-gallery .strip{display:flex;gap:6px;flex-wrap:wrap}
/* Product page layout: gallery column + content column; one column below 768px. */
.fw-pgrid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:var(--space-6);align-items:start}
@media (max-width:767px){.fw-pgrid{grid-template-columns:minmax(0,1fr)}.fw-pgrid .fw-gallery{max-width:240px}}
/* Table extras: variant rows, expand toggle, gap marks, edited dot, editable header. */
.fw-table tr.variant td{color:var(--muted-foreground);background:color-mix(in oklab,var(--surface-muted) 45%,var(--surface))}
.fw-table tr.variant td.vname{padding-left:56px}
.fw-expand{width:20px;height:20px;display:inline-grid;place-items:center;border:0;background:none;border-radius:var(--radius-sm);color:var(--muted-foreground);cursor:pointer;padding:0;flex:none}
.fw-expand:hover{background:var(--accent);color:var(--foreground)}
.fw-expand svg{width:14px;height:14px}
.fw-gap{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:500;color:var(--warning-text);white-space:nowrap}
.fw-gap svg{width:12px;height:12px}
.fw-edited{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);margin-left:6px;vertical-align:1px}
.fw-table th .edit{width:12px;height:12px;vertical-align:-1px;margin-left:4px;color:var(--muted-foreground)}
.fw-table td.editing{padding:4px 8px}
.fw-table td.editing .fw-field{width:100%}
/* Filter groups in the Filter rail: a group label with its selected count, checkbox rows with counts, ranges. */
.fw-facet{display:flex;flex-direction:column;gap:2px;padding:12px 0;border-top:1px solid var(--border)}
.fw-facet:first-child{border-top:0;padding-top:0}
.fw-facet .fh{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;margin-bottom:4px}
.fw-facet .fh .fw-count{margin-left:auto}
.fw-facet .fw-cbrow{width:100%}
.fw-facet .fw-cbrow .n{margin-left:auto;font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
.fw-range{display:flex;align-items:center;gap:6px}
.fw-range .fw-field{width:96px}

/* 9 Oct 2026, Catalogue v2 build gaps: review editor tiers and phones, grid rows, rail width, page head with a pager. */
.fw-rv-table tr.tier td{padding:8px 12px;background:var(--surface-muted);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground)}
@media (max-width:639px){.fw-rv-table thead{display:none}.fw-rv-table tr{display:block;border-bottom:1px solid var(--border)}.fw-rv-table td{display:block;border:0;padding:6px 12px}.fw-rv-table td.f{width:auto;padding-top:12px}}
.fw-rail{width:320px}
.fw-grid th{position:sticky}
.fw-grid th .rz{position:absolute;top:0;right:-3px;bottom:0;width:6px;cursor:col-resize}
.fw-grid th .rz:hover{background:color-mix(in oklab,var(--primary) 35%,transparent)}
.fw-grid tr.grp td{height:34px;background:var(--surface-muted);font-size:12px;font-weight:600}
.fw-grid tr.variant td{color:var(--muted-foreground);background:color-mix(in oklab,var(--surface-muted) 45%,var(--surface))}
.fw-grid tr.variant td.vname{padding-left:40px}
.fw-grid td.editing{padding:0 4px}
.fw-grid td.editing .fw-field{width:100%;height:28px}
.fw-pagehead:has(.fw-pager){flex-wrap:wrap}
.fw-pagehead:has(.fw-pager) .grow{flex:1 1 480px;min-width:0}

/* Sidebar, 9 Oct 2026 (owner): every menu item stays on one line. */
.fw-subnav{padding-left:24px}
.fw-navitem,.fw-subitem{white-space:nowrap;align-items:center;min-width:0}
.fw-navitem>span:not(.fw-navcount),.fw-subitem{overflow:hidden;text-overflow:ellipsis}
.fw-subitem .fw-navcount{flex:none}

/* Product tables, 9 Oct 2026 (owner): when the chosen columns don't fit, the table scrolls sideways; checkbox, Product and SKU stay pinned. Set --stk3 (40px + the Product column width) on the table. */
.fw-table.scrollx{border-collapse:separate;border-spacing:0}
.fw-table.scrollx th,.fw-table.scrollx td{border-bottom:1px solid var(--border)}
.fw-table.scrollx tr:not(.grp)>:nth-child(-n+3){position:sticky;z-index:1;background:var(--surface)}
.fw-table.scrollx thead tr>:nth-child(-n+3){z-index:2;background:color-mix(in oklab,var(--surface-muted) 60%,var(--surface))}
.fw-table.scrollx tr:not(.grp)>:nth-child(1){left:0}
.fw-table.scrollx tr:not(.grp)>:nth-child(2){left:var(--stk2,40px)}
.fw-table.scrollx tr:not(.grp)>:nth-child(3){left:var(--stk3);box-shadow:8px 0 12px -12px rgb(0 0 0 / .45)}
.fw-table.scrollx tbody tr:not(.grp):hover>:nth-child(-n+3){background:color-mix(in oklab,var(--surface-muted) 55%,var(--surface))}
.fw-table.scrollx tbody tr:has(.fw-rowlink:focus-visible)>:nth-child(-n+3),.fw-table.scrollx tbody tr.is-focus>:nth-child(-n+3){background:var(--accent)}
.fw-table.scrollx tr.variant>:nth-child(-n+3){background:color-mix(in oklab,var(--surface-muted) 45%,var(--surface))}
.fw-table.scrollx tr.grp td{position:sticky;left:0}

/* DataTable linked row, 9 Oct 2026: the row a link from another place points at ("Waiting: Latvian…" → this change). */
.fw-table tr.is-target td{background:color-mix(in oklab,var(--warning) 12%,var(--surface))}
.fw-table tr.is-target:focus{outline:2px solid var(--ring);outline-offset:-2px}

/* RuleList, 9 Oct 2026: catalogue rules (field · operator · value), with a live match preview. */
.fw-rules{display:flex;flex-direction:column;gap:var(--space-2)}
.fw-rule{display:grid;grid-template-columns:160px 120px minmax(0,1fr) 32px;gap:var(--space-2);align-items:center}
.fw-rule .fw-sel,.fw-rule .fw-field{width:100%;min-width:0}
@media (max-width:639px){.fw-rule{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.fw-rule>:nth-child(3){grid-column:1/3}}
.fw-match{border-radius:var(--radius-lg);background:var(--surface-muted);padding:12px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.fw-match .t{font-weight:600;font-variant-numeric:tabular-nums}
.fw-match .s{font-size:12px;color:var(--muted-foreground)}
.fw-match ul{margin:0;padding-left:18px;color:var(--muted-foreground);font-size:12px}

/* 9 Oct 2026, Catalogues v3 build gaps: pipeline steps, a blocked step, a disabled SelectionBar action. */
.fw-pipe{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.fw-pipe .sep{color:var(--muted-foreground);display:inline-grid}
.fw-pipe .sep svg{width:12px;height:12px}
.fw-dec.blocked{color:var(--destructive-text)}
.fw-selact[aria-disabled="true"]{opacity:.5;cursor:not-allowed}

/* 12 Oct 2026, DS 1.1.0 · LanguageFlag: a round flag for a language, the same sizes as ChannelMark circles. */
.fw-flag{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:var(--radius-full);border:1px solid var(--border-strong);background:var(--surface);color:var(--muted-foreground);font-size:10px;font-weight:600;line-height:1;vertical-align:middle}
.fw-flag img{width:60%;height:60%;display:block;border-radius:var(--radius-full)}
.fw-flag.sm{width:24px;height:24px;font-size:9px}
.fw-flag.lg{width:40px;height:40px;font-size:12px}
.fw-flag.xl{width:56px;height:56px;font-size:14px}
.fw-lang{display:inline-flex;align-items:center;gap:var(--space-2);min-width:0}
.fw-lang .code{font-family:var(--font-mono);font-size:12px;color:var(--muted-foreground)}

/* ── 1.2.0 · 12 Oct 2026 · Settings section parts (Claude Code) ── */
/* Avatar: initials of a person; 24 / 32 / 48px */
.fw-avatar{width:32px;height:32px;flex:none;border-radius:var(--radius-full);display:inline-grid;place-items:center;background:var(--surface-muted);border:1px solid var(--border);color:var(--muted-foreground);font-size:12px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.fw-avatar.sm{width:24px;height:24px;font-size:10px}
.fw-avatar.lg{width:48px;height:48px;font-size:16px}
.fw-person{display:flex;align-items:center;gap:var(--space-3);min-width:0}
.fw-person .who{display:flex;flex-direction:column;min-width:0}
.fw-person .who .nm{font-weight:500;color:var(--foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-person .who .em{font-size:12px;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* LookChoice: tiles with a picture of how the app will look */
.fw-looks{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:var(--space-3);width:100%}
.fw-look{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);color:var(--foreground);font:inherit;font-size:12px;font-weight:500;text-align:left;cursor:pointer;min-height:44px}
.fw-look:hover{background:var(--accent)}
.fw-look:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.fw-look.on{border-color:color-mix(in oklab,var(--foreground) 35%,transparent);background:color-mix(in oklab,var(--foreground) 7%,var(--surface))}
.fw-look .lbl{display:flex;align-items:center;gap:6px}
.fw-look .lbl svg{width:14px;height:14px;margin-left:auto;color:var(--foreground);visibility:hidden}
.fw-look.on .lbl svg{visibility:visible}
.fw-look .pic{height:56px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--background);display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px;overflow:hidden}
.fw-look .pic i{display:block;height:6px;border-radius:var(--radius-full);background:var(--border-strong)}
.fw-look .pic i.s{width:60%}
.fw-look .pic.rows i{height:var(--h,6px)}
.fw-look .pic[data-theme]{background:var(--background);border-color:var(--border-strong)}
.fw-look .pic[data-theme] i{background:var(--border-strong)}
.fw-look .pic.split{flex-direction:row;padding:0;gap:0}
.fw-look .pic.split>span{flex:1;min-width:0;background:var(--background);padding:8px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.fw-look .pic.split>span i{background:var(--border-strong)}
.fw-look .pic .aa{font-size:var(--fs,13px);line-height:1;font-weight:600;color:var(--foreground)}
.fw-look .pic.c i:nth-child(1){background:color-mix(in oklab,var(--foreground) var(--mix,60%),transparent)}
.fw-look .pic.c i:nth-child(2){background:color-mix(in oklab,var(--foreground) calc(var(--mix,60%) - 20%),transparent)}
/* ColourChoice: preset swatches, a hex field, a picker */
.fw-swatches{display:flex;flex-wrap:wrap;gap:8px}
.fw-swatch{width:32px;height:32px;border-radius:var(--radius-full);border:1px solid var(--border-strong);background:var(--surface);display:inline-grid;place-items:center;padding:0;cursor:pointer;position:relative}
.fw-swatch::before{content:"";width:22px;height:22px;border-radius:var(--radius-full);background:var(--sw,var(--muted))}
.fw-swatch svg{position:absolute;width:14px;height:14px;color:var(--primary-foreground);visibility:hidden}
.fw-swatch.on{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--foreground)}
.fw-swatch.on svg{visibility:visible}
.fw-swatch.custom::before{background:conic-gradient(var(--accent-option-rose),var(--accent-option-amber),var(--accent-option-emerald),var(--accent-option-sky),var(--accent-option-violet),var(--accent-option-rose))}
.fw-swatch:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
.fw-hex{display:inline-flex;align-items:center;gap:8px}
.fw-hex .chip{width:32px;height:32px;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface);display:inline-grid;place-items:center;padding:0;cursor:pointer}
.fw-hex .chip::before{content:"";width:20px;height:20px;border-radius:var(--radius-sm);background:var(--sw,var(--muted))}
.fw-hex .fw-field{width:120px;font-family:var(--font-mono);text-transform:uppercase}
.fw-cpick{width:248px;padding:12px;display:flex;flex-direction:column;gap:10px;background:var(--popover);border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-dialog)}
.fw-cpick .sv{height:128px;border-radius:var(--radius-md);position:relative;background:linear-gradient(to top,var(--foreground),transparent),linear-gradient(to right,var(--surface),var(--sw,var(--primary)))}
.fw-cpick .sv b{position:absolute;width:14px;height:14px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--border-strong);transform:translate(-50%,-50%)}
.fw-cpick .hue{display:flex;align-items:center;gap:8px}
.fw-cpick .hue input{flex:1;accent-color:var(--foreground)}
.fw-cpick .presets{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.fw-cpick .presets .fw-swatch{width:28px;height:28px}
.fw-cpick .presets .fw-swatch::before{width:20px;height:20px}
/* SettingsList › Matrix: one row per event, one switch column per way of telling */
.fw-slist.matrix .fw-srow{display:grid;grid-template-columns:minmax(0,1fr) repeat(var(--cols,2),72px);align-items:center}
.fw-slist.matrix .fw-srow .fw-switch{justify-self:center}
.fw-slist.matrix .mh{display:grid;grid-template-columns:minmax(0,1fr) repeat(var(--cols,2),72px);align-items:center;padding:8px 16px;border-bottom:1px solid color-mix(in oklab,var(--border) 70%,transparent);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground)}
.fw-slist.matrix .mh span+span{text-align:center}
/* UsageChart: bars per period against an allowance */
.fw-chart{display:flex;flex-direction:column;gap:8px;width:100%}
.fw-chart .plot{position:relative;height:160px;display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr));gap:12px;align-items:end;border-bottom:1px solid var(--border-strong);margin-top:16px}
.fw-chart .bar{position:relative;height:var(--v,0%);min-height:2px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:color-mix(in oklab,var(--foreground) 70%,transparent);border:0;padding:0;cursor:default}
.fw-chart .bar.over{background:var(--warning)}
.fw-chart .bar.now{background:transparent;border:1px dashed color-mix(in oklab,var(--foreground) 55%,transparent);border-bottom:0}
.fw-chart .bar:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.fw-chart .limit{position:absolute;left:0;right:0;bottom:var(--at,80%);border-top:1px dashed var(--muted-foreground);pointer-events:none}
.fw-chart .limit span{position:absolute;right:0;top:-18px;font-size:11px;color:var(--muted-foreground);background:var(--surface);padding:0 4px}
.fw-chart .axis{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr));gap:12px;font-size:11px;color:var(--muted-foreground);text-align:center;font-variant-numeric:tabular-nums}
/* Dialog summary line (a purchase): label left, amount right */
.fw-dialog .sum{display:flex;justify-content:space-between;align-items:baseline;padding-top:12px;border-top:1px solid var(--border);font-weight:600;font-variant-numeric:tabular-nums}
/* Field › long text */
textarea.fw-field{height:auto;min-height:160px;padding:8px 12px;line-height:20px;resize:vertical;width:100%;max-width:560px}
textarea.fw-field.mono{font-family:var(--font-mono);font-size:12px}
/* File picker › image chosen */
.fw-imgprev{width:40px;height:40px;flex:none;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface-muted);object-fit:contain;display:inline-grid;place-items:center;font-size:12px;font-weight:600;color:var(--muted-foreground)}
/* Settings rail foot (Sign out) and search with no match */
.fw-srail .foot{margin-top:auto;padding:8px;border-top:1px solid var(--sidebar-border)}
.fw-srail .nomatch{padding:8px 16px;font-size:12px;color:var(--muted-foreground)}
@media (max-width:640px){.fw-slist.matrix .fw-srow,.fw-slist.matrix .mh{grid-template-columns:minmax(0,1fr) repeat(var(--cols,2),56px)}.fw-chart .plot,.fw-chart .axis{gap:6px}}

/* 1.4.0 · 12 Oct 2026 · Enrich rework fixes (Claude Code) */
@media (max-width:767px){.fw-cards{grid-template-columns:minmax(0,1fr)}}
@media (max-width:639px){.fw-pagehead .meta{white-space:normal;min-width:0}}
.fw-table tbody tr.sel>td{background:color-mix(in oklab,var(--primary) 5%,var(--surface))}
.fw-note + .fw-row{margin-top:var(--space-2)}

/* Sidebar footer (DS 1.5.0): credits row, Help, Settings, workspace row. */
.fw-sidebar .brand .fw-collapse{margin-left:auto;width:28px;height:28px;display:grid;place-items:center;border:0;background:none;border-radius:var(--radius-md);color:var(--muted-foreground);cursor:pointer}
.fw-sidebar .brand .fw-collapse:hover{background:var(--sidebar-accent);color:var(--foreground)}
.fw-sidebar .brand .fw-collapse:focus-visible,.fw-credits:focus-visible,.fw-account:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.fw-credits{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border-radius:var(--radius-md);color:var(--muted-foreground);text-decoration:none;font-size:12px;font-weight:500;line-height:16px}
.fw-credits:hover{background:var(--sidebar-accent);color:var(--foreground)}
.fw-credits .top{display:flex;align-items:center;gap:6px;white-space:nowrap}
.fw-credits .left{margin-left:auto;color:var(--foreground);font-variant-numeric:tabular-nums}
.fw-credits .fw-meter{height:4px}
.fw-credits.low .left{color:var(--warning-text)}
.fw-account{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--radius-md);text-decoration:none;color:var(--foreground);border:0;background:none;width:100%;text-align:left;font:inherit;cursor:pointer}
.fw-account:hover{background:var(--sidebar-accent)}
.fw-account .who{display:flex;flex-direction:column;min-width:0;flex:1}
.fw-account .nm{font-size:12px;font-weight:500;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-account .org{font-size:11px;line-height:14px;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-account>.fw-ico-sm{flex:none;color:var(--muted-foreground)}
.fw-sidebar .foot .sep{height:1px;background:var(--sidebar-border);margin:4px 2px}
.fw-railmini .end{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:4px}
