.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 400; white-space: nowrap; text-decoration: none; transition: background 0.1s, border-color 0.1s, color 0.1s; } .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } .btn-ghost { background: var(--sunken); border-color: var(--accent); color: var(--accent); } .btn-ghost:hover { background: var(--bg); border-color: var(--accent-press); color: var(--accent-press); } .btn-quiet { background: transparent; color: var(--accent); padding: 0 8px; } .btn-quiet:hover { color: var(--accent-hover); text-decoration: underline; } .btn-sm { min-height: 30px; padding: 0 10px; } .btn[disabled] { opacity: 0.45; cursor: not-allowed; } .btn-icon { width: 36px; padding: 0; color: var(--muted); } @media (pointer: coarse) { .btn, .tab { min-height: 44px; } .btn-sm { min-height: 40px; } .chip { min-height: 40px; } } .field { display: flex; flex-direction: column; gap: 6px; } .field > label, .label { font-weight: 600; font-size: 14px; } .input, .select { min-height: 36px; width: 100%; padding: 0 10px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 14px; } .input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: 2px solid transparent; } .input::placeholder { color: var(--muted); } .select { width: auto; padding-right: 8px; } .search { position: relative; flex: 1 1 240px; max-width: 340px; } .search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); } .search .input { padding-left: 36px; } .switch { position: relative; display: inline-flex; flex: none; } .switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; } .switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background 0.15s; display: block; pointer-events: none; } .switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform 0.15s; } .switch input:checked + .track { background: var(--accent); } .switch input:checked + .track::after { transform: translateX(18px); } .switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; } .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; } .pill .i { width: 14px; height: 14px; stroke-width: 2.2; } .pill-bad { background: var(--bad-soft); color: var(--bad); } .pill-warn { background: var(--warn-soft); color: var(--warn); } .pill-moved { background: var(--moved-soft); color: var(--moved); } .pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-idle { background: var(--sunken); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); } .panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--card-shadow); } .btn .i { width: 16px; height: 16px; } .btn-lg { min-height: 44px; padding: 0 20px; font-size: 14px; } .btn-link { min-height: 0; padding: 0; border: 0; background: none; color: var(--accent); font-size: inherit; text-decoration: underline; } .btn-link:hover { color: var(--accent-hover); }