.stack-tight { display: grid; gap: 10px; min-width: 0; } .fw-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; align-items: end; } .fw-form label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: var(--fs-sm); } .fw-form .field { width: 100%; min-width: 0; } .fw-path { overflow-wrap: anywhere; } .fw-patterns code { overflow-wrap: anywhere; } .fw-rules { grid-template-columns: minmax(0, 1fr); } .fw-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; } .fw-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--fs-sm); } .fw-table th, .fw-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .fw-table thead th { background: var(--sunken); color: var(--muted); font-weight: 650; white-space: nowrap; } .fw-table td { overflow-wrap: anywhere; } .fw-table td .pill { margin: 0 4px 2px 0; } .fw-source > th { background: var(--sunken); font-weight: 560; } .fw-source .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .fw-fold { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; } .fw-hits { white-space: nowrap; font-variant-numeric: tabular-nums; } .fw-change { white-space: nowrap; text-align: right; } .fw-diff { max-height: 50vh; margin: 4px 0 0; padding: 8px; overflow: auto; border-radius: 8px; background: var(--sunken); font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; } .fw-diff .add { color: var(--ok); } .fw-diff .del { color: var(--bad); } .rule-row select.field { width: auto; max-width: 100%; min-width: 0; } .controls > .segmented { justify-self: start; max-width: 100%; } .controls > .segmented button { display: inline-flex; align-items: center; gap: 6px; } .controls [role="tabpanel"][hidden], .apply-bar[hidden] { display: none; } .tool-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; align-items: start; } .tool-group { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); } .tool-group h4 { margin: 0; } .tool-group > p { margin: 0; font-size: var(--fs-sm); } .tool-rows { display: grid; gap: 4px; } .tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 9px; background: var(--panel); cursor: pointer; transition: background .15s; } .tool-row:hover { background: var(--hover); } .tool-row[data-staged] { box-shadow: inset 3px 0 0 var(--warn); } .tool-row[data-on="false"] .tool-name { color: var(--muted); } .tool-name { min-width: 0; font-family: var(--mono); font-size: var(--fs-sm); overflow-wrap: anywhere; } .switch { appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background .15s; } .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 30%); transition: transform .15s; } .switch:checked { background: var(--ok); } .switch:checked::after { transform: translateX(16px); } .switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .tool-add { display: flex; gap: 6px; min-width: 0; } .tool-add .field { flex: 1; min-width: 0; } .apply-bar { position: sticky; bottom: var(--sp-3); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--glass-card); box-shadow: var(--shadow-lift); backdrop-filter: blur(10px); } .apply-list { flex: 1 1 260px; min-width: 0; } .apply-list > summary { font-weight: 600; cursor: pointer; } .apply-list ul { max-height: 40vh; margin: 8px 0 0; overflow: auto; } @media (prefers-reduced-motion: reduce) { .tool-row, .switch, .switch::after { transition: none; } } .passkey-prompt { position: fixed; top: 18px; left: 50%; z-index: 60; width: min(440px, calc(100vw - 36px)); transform: translateX(-50%); }