/* Gambit Chess — shared components. */

/* ----- buttons ----- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14.5px; line-height: 1; white-space: nowrap; text-decoration: none !important;
  box-shadow: var(--shadow-1);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast);
  user-select: none; -webkit-user-select: none;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 22%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 60ms; }
/* Everything else you can press sinks a little under the finger. The scale
   property leaves each element's own transform (hover lifts) alone. */
.card-link:active { scale: 0.985; }
.seg button:active, .tabs button:active, .menu a:active, .menu button:active, button.chip:active { scale: 0.96; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  overflow: hidden;
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 8px 20px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 12px 26px -10px var(--accent-glow); }
/* A soft sheen crosses the main button when you point at it. */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: sweep 700ms var(--ease) 1; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); border-color: transparent; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger-2); box-shadow: none; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); }
.btn-solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-solid-danger:hover { background: var(--danger-2); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn .count { font-variant-numeric: tabular-nums; opacity: 0.8; font-weight: 500; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease); }
.linkish:hover { text-decoration-color: currentColor; }

/* ----- cards ----- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1), var(--inner-hi);
  padding: 20px;
  min-width: 0;
}
.card-tight { padding: 14px; }
.card-flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 6px; }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: transform var(--t-med) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-fast), scale var(--t-fast) var(--ease); }
.card-link:hover { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow-lift), var(--inner-hi); }
.card-link:active { transform: translateY(0); }
/* The featured card on a page: a touch more presence, no ornament. */
.plaque { border-color: var(--line-2); }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* The reminder that playing needs no account. */
.noacct { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--win); background: color-mix(in srgb, var(--win) 11%, transparent); border: 1px solid color-mix(in srgb, var(--win) 28%, transparent); white-space: nowrap; }
.noacct .icon { width: 15px; height: 15px; }
.noacct-line { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); }
.noacct-line .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--win); flex: none; }

/* ----- fields ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field small, .hint { font-size: 12.5px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--field); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text) 26%, transparent); }
.textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b958e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-error { color: var(--danger-2); font-size: 13.5px; font-weight: 550; min-height: 1em; }
.form-error:not(:empty) { animation: rise-in var(--t-med) var(--ease) both; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background var(--t-med) var(--ease), border-color var(--t-med); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform var(--t-med) var(--spring); }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
/* By day an off switch keeps a visible track on a white card (off, not disabled). */
:root[data-theme="light"] .switch input:not(:checked) + .track { background: color-mix(in srgb, var(--text) 10%, var(--surface)); border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .track::after { transition: transform var(--t-med) var(--spring), scale var(--t-fast) var(--ease); }
.switch:active .track::after { scale: 1.18 0.9; }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch .switch-text { display: flex; flex-direction: column; }
.switch .switch-text small { color: var(--text-3); font-size: 12.5px; }

/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: color-mix(in srgb, var(--text) 5%, var(--field)); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; isolation: isolate; }
.seg button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 7px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13.5px; transition: background var(--t-fast) var(--ease), color var(--t-fast), box-shadow var(--t-fast), scale var(--t-fast) var(--ease); }
/* The chosen segment's raised thumb is its own layer, so it can slide from
   the old choice to the new one (js/motion.js). The control is the layer's
   stacking context, so a sliding thumb passes under every label. */
.seg button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--line); opacity: 0; transition: opacity var(--t-fast) var(--ease); pointer-events: none; }
.seg.m-ink button::before { transition: none; }
.field > .seg, .stack > .seg, .card > .seg { align-self: flex-start; }
input[type="range"] { accent-color: var(--accent); width: 100%; min-height: 32px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg button[aria-pressed="true"]::before { opacity: 1; }
/* By night the chosen segment is raised above its track, not sunk into it. */
:root:not([data-theme="light"]) .seg button::before { background: var(--surface-3); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--line-2); }
.seg-block { display: flex; }
.seg-block button { flex: 1; }

/* chips and badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), scale var(--t-fast) var(--ease); }
.chip-brass { color: var(--accent-2); border-color: var(--line-accent); background: var(--accent-soft); }
/* Darkened a touch so the white text reads (4.75:1 by night, 6.4:1 by day). */
.chip-live { color: #fff; background: color-mix(in srgb, var(--live) 82%, #000); border-color: transparent; }
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.chip-win { color: var(--win); border-color: color-mix(in srgb, var(--win) 40%, transparent); }
.chip-loss { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 40%, transparent); }
.tag-td { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--on-accent); background: var(--accent); border-radius: 5px; padding: 1px 5px; vertical-align: middle; }
.tag-guest { display: inline-block; font-size: 11.5px; font-weight: 650; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; line-height: 16px; vertical-align: middle; }
.tag-bot { display: inline-block; font-size: 11.5px; font-weight: 650; color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 45%, transparent); border-radius: 5px; padding: 0 5px; line-height: 16px; vertical-align: middle; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; min-height: 44px; padding: 0 14px; background: none; border: 0; color: var(--text-3); font-weight: 650; font-size: 14px; white-space: nowrap; transition: color var(--t-fast) var(--ease), scale var(--t-fast) var(--ease); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }

/* avatars */
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; letter-spacing: 0.01em; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.avatar svg { width: 100%; height: 100%; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.avatar-xl { width: 104px; height: 104px; font-size: 36px; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; letter-spacing: 0.01em; color: var(--text-3); font-weight: 650; padding: 11px 12px; background: color-mix(in srgb, var(--text) 3%, var(--surface)); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover td { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.table .num { text-align: right; }
.table tr.is-me td { background: var(--accent-soft); }

/* lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); min-width: 0; color: inherit; text-decoration: none !important; transition: background var(--t-fast) var(--ease); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: color-mix(in srgb, var(--text) 4%, transparent); border-radius: 10px; }
.list-item .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* empty states and skeletons */
.empty { text-align: center; padding: 36px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-l); color: var(--text-2); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.empty h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; color: var(--text); }
.empty p { max-width: 420px; margin: 0 auto 14px; }
.empty svg { width: 46px; height: 46px; margin: 0 auto 10px; opacity: 0.7; }
.empty-sm { padding: 20px 18px; }
.empty-sm h3 { font-size: 17px; }
.empty-sm p { margin-bottom: 8px; }
.skel { position: relative; overflow: hidden; background: color-mix(in srgb, var(--text) 4.5%, var(--surface)); border-radius: 10px; }
/* The shimmer: a band of light crosses the placeholder (transform only). */
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 7%, transparent) 50%, transparent); transform: translateX(-100%); animation: skel-sweep 1.5s var(--ease) infinite; pointer-events: none; }
.skel-line { height: 14px; margin: 8px 0; }
.skel-block { height: 120px; }

/* ----- dialogs and sheets ----- */
.overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(4, 8, 6, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in var(--t-med) var(--ease); }
/* Closing: js/motion.js plays the exit; it takes no clicks meanwhile. */
.overlay.is-closing { pointer-events: none; }
@keyframes m-dialog-in { from { opacity: 0; transform: translateY(10px) scale(0.965); } }
:root[data-theme="light"] .overlay { background: rgba(20, 30, 24, 0.32); }
.dialog {
  width: min(480px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow-2), var(--inner-hi); padding: 24px; animation: m-dialog-in var(--t-slow) var(--spring) both;
}
.dialog-wide { width: min(720px, 100%); }
.dialog h2 { font-size: 22px; margin-bottom: 6px; padding-right: 32px; }
.dialog .dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.dialog-close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 767px) {
  .overlay { place-items: end center; padding: 0; }
  .dialog { width: 100%; border-radius: 18px 18px 0 0; max-height: 88dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); animation: sheet-up var(--t-slow) var(--ease) both; }
}

/* Popovers grow from where they were pressed (js/motion.js sets the origin). */
.popover { position: absolute; z-index: 120; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; transform-origin: top right; }
.menu { display: flex; flex-direction: column; min-width: 210px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px; background: none; border: 0; color: var(--text); text-align: left; font-weight: 550; text-decoration: none !important; transition: background var(--t-fast) var(--ease), scale var(--t-fast) var(--ease); }
.menu a:hover, .menu button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.menu svg { width: 18px; height: 18px; color: var(--text-2); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }

/* toasts */
.toasts { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
/* Toasts slide in from the edge and out again (js/motion.js), and the
   others close the gap. */
@keyframes m-toast-in { from { opacity: 0; translate: 36px 0; scale: 0.98; } }
@keyframes m-toast-up { from { opacity: 0; translate: 0 18px; scale: 0.98; } }
.toast { pointer-events: auto; max-width: min(420px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); animation: m-toast-in var(--t-slow) var(--spring) both; font-weight: 550; transform-origin: bottom right; }
.toast.err { border-color: color-mix(in srgb, var(--danger) 55%, transparent); box-shadow: inset 3px 0 0 var(--danger), var(--shadow-2); }
.toast.ok { border-color: color-mix(in srgb, var(--win) 40%, transparent); box-shadow: inset 3px 0 0 var(--win), var(--shadow-2); }
.toast .toast-close { margin-left: auto; background: none; border: 0; color: var(--text-3); font-size: 18px; line-height: 1; padding: 0 2px; }
@media (max-width: 899px) { .toasts { left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px)); align-items: stretch; } .toast { max-width: none; animation-name: m-toast-up; } }
/* A dialog is a sheet at the bottom on narrow screens: toasts go to the top meanwhile, so they never hide its question */
@media (max-width: 899px) { body:has(.overlay:not(.is-closing)) .toasts { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; } }

/* announcement banner */
.banner { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); border-bottom: 1px solid var(--line-accent); font-weight: 600; font-size: 14px; }
.banner.warn { background: color-mix(in srgb, var(--danger) 16%, var(--bg-2)); border-bottom-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.banner.celebrate { background: color-mix(in srgb, var(--c-brilliant) 16%, var(--bg-2)); border-bottom-color: color-mix(in srgb, var(--c-brilliant) 40%, transparent); }
.banner button { margin-left: auto; }
.frame-note { padding: 8px var(--gutter); font-size: 13px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
/* Fair play: the engine waits while your own rated or tournament game is on.
   Pinned under the top bar so it stays in view while you scroll. */
.engine-lock {
  position: sticky; top: var(--topbar-h); z-index: 40;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--info) 14%, var(--bg-2));
  border-bottom: 1px solid color-mix(in srgb, var(--info) 38%, transparent);
  font-weight: 600; font-size: 14px; color: var(--text);
  animation: rise-in var(--t-med) var(--ease) both;
}
.engine-lock .el-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; color: var(--info); background: color-mix(in srgb, var(--info) 20%, transparent); }
.engine-lock .el-ico .icon { width: 16px; height: 16px; }
.engine-lock .el-text { flex: 1 1 240px; min-width: 0; }
.engine-lock .btn { margin-left: auto; }

/* player chip in the top bar */
.me-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 12px 0 4px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.me-chip:hover { border-color: var(--line-accent); transform: translateY(-1px); }
.me-chip .rating { color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
@media (max-width: 520px) { .me-chip .me-name, .me-chip .rating { display: none; } .me-chip { padding: 0 4px; } }

/* stat tiles */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--text-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; }

/* progress */
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width var(--t-slow) var(--ease); }

/* little helpers */
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 26px; height: 26px; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; }
.kbd { font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--text-2); }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: max-content; box-shadow: var(--shadow-1); }
.qr svg { width: 180px; height: 180px; }

/* checkboxes with a label */
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; font-weight: 550; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.check.disabled { opacity: 0.5; cursor: default; }
.check:hover:not(.disabled) { color: var(--text); }
.seg-sm button { min-height: 30px; padding: 0 10px; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 0; }
.file-btn { align-self: flex-start; cursor: pointer; }
/* icons that sit inside a line of text */
.notice-body .icon, p > .icon { display: inline-block; vertical-align: -3px; margin-right: 2px; }
/* Touch screens: every tap target at least 44 px. */
@media (pointer: coarse) {
  .btn, .btn-sm, .seg button, .seg-sm button, .tabs button { min-height: 44px; }
  .btn-icon, .btn-icon.btn-sm { width: 44px; }
  .check, .switch { min-height: 44px; }
  .me-chip, .menu a, .menu button { min-height: 44px; }
  .me-chip { min-width: 44px; justify-content: center; }
  .key-chip { height: 40px; }
  .mv { min-height: 40px; }
  .ls-dot { position: relative; }
  .ls-dot::after { content: ""; position: absolute; inset: -18px -3px; }
}
