:root {
  --bg: #f7f5f4;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --panel: rgba(255, 255, 255, 0.72);
  --ink: #121212;
  --ink-soft: #3d3a39;
  --text: var(--ink);
  --muted: #7a7471;
  --line: rgba(18, 18, 18, 0.1);
  --accent: #e87832;
  --accent-deep: #c45e1c;
  --accent-soft: rgba(232, 120, 50, 0.14);
  --accent-glow: rgba(232, 120, 50, 0.24);
  --now: #1f8a66;
  --now-bg: rgba(31, 138, 102, 0.08);
  --later: #5a6aa5;
  --cyan: #3db8d4;
  --danger: #c44c4c;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Noto Sans JP", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  color: var(--ink);
  font: 13px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(800px 700px at 50% 110%, rgba(18, 18, 18, 0.05), transparent 55%),
    linear-gradient(180deg, #fbfaf9 0%, #f3f0ee 48%, #f7f4f2 100%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.85;
}
.glow-a {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(232, 120, 50, 0.28), transparent 68%);
}
.glow-b {
  width: 22rem;
  height: 22rem;
  bottom: 12%;
  left: -8rem;
  background: radial-gradient(circle, rgba(18, 18, 18, 0.05), transparent 70%);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.sub { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.75rem; }

.chrome {
  flex: none;
  z-index: 5;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar-brand, .bar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.bar-brand {
  justify-content: flex-start;
  padding: 0.7rem 1.15rem 0.4rem;
  gap: 1rem 1.5rem;
}
.bar-brand .brand { margin-right: auto; }
.bar-controls { padding: 0; position: relative; }
.bar-controls.is-local #loadBtn { display: none; }
.clock {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.et, .lt {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.et strong, .lt strong {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}
.clock.eyes-on #et {
  text-decoration: line-through;
  color: var(--muted);
}
.et-eyes { width: 1.15rem; height: 1.15rem; }
.bar-split {
  width: 1px;
  align-self: stretch;
  min-height: 1.6rem;
  background: var(--line);
  flex: none;
}

.controls, label { color: var(--muted); font-size: 0.82rem; }
.check { display: inline-flex; gap: 0.3rem; align-items: center; color: var(--ink-soft); }
select, input[type="search"], input[type="url"], button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.32rem 0.55rem;
  font: inherit;
}
input[type="search"]:focus, select:focus, input[type="url"]:focus, button:focus-visible {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
button { cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s; }
button:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: #d8d4d2;
  border-color: #d8d4d2;
  color: #8a8582;
  cursor: not-allowed;
}
.btn-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0;
  line-height: 0;
  overflow: visible;
}
.btn-icon svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  overflow: visible;
  flex: none;
}
.gas-wrap { position: relative; }
.gas-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 12;
  width: min(28rem, calc(100vw - 2rem));
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 28, 24, 0.12);
}
.gas-panel[hidden] { display: none; }
.gas-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.gas-field input,
.gas-field select {
  width: 100%;
}
.gas-url-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.gas-url-row input {
  flex: 1;
  min-width: 0;
  width: auto;
}
.gas-url-row .btn-primary {
  flex: none;
}
#sharedFields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
#sharedFields[hidden],
.bar-controls.is-local #sharedFields { display: none; }
.mode-seg {
  display: flex;
  padding: 0.15rem;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}
.mode-seg-opt {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0.32rem 0.4rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}
.mode-seg-opt:has(input:checked) {
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-weight: 600;
}
.mode-seg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toasts {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem 0;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 16rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.7rem 0.55rem 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.12);
  backdrop-filter: blur(16px);
  color: var(--ink-soft);
  animation: toast-in 0.38s var(--ease);
}
.toast.ok { border-color: rgba(31, 138, 102, 0.28); }
.toast.warn { border-color: rgba(232, 120, 50, 0.35); }
.toast.err { border-color: rgba(196, 76, 76, 0.4); }
.toast.out { animation: toast-out 0.28s var(--ease) forwards; }
.toast-msg {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  min-height: 1.7rem;
}
.toast.ok .toast-msg { color: var(--now); }
.toast.warn .toast-msg { color: var(--accent-deep); }
.toast.err .toast-msg { color: var(--danger); }
.toast-x {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
}
.toast-x:hover { color: var(--ink); background: var(--accent-soft); border-color: transparent; }
@keyframes toast-in {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-120%); opacity: 0; }
}

.filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.35rem 1.15rem 0.5rem;
}
.filter-row-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.filter-search,
.filter-exp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 50%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.filter-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.chips-exp {
  flex: 1;
  min-width: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
}
button.chip.on {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: transparent;
  font-weight: 600;
}
button.chip.on:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.chip-label { color: var(--muted); font-size: 0.82rem; }

.main-row {
  flex: 1;
  min-height: 0;
  display: flex;
}
.table-pane {
  flex: 0 1 auto;
  min-width: 20%;
  max-width: 60%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.table-wrap {
  flex: 1;
  min-height: 0;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  padding: 0 0.75rem 0 1.15rem;
}
.table-foot {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem 0.5rem 1.15rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  z-index: 6;
}
.view-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 10px;
}
.view-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.view-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.view-panel {
  position: absolute;
  left: 1.15rem;
  right: 0.75rem;
  bottom: calc(100% + 0.45rem);
  width: auto;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 28, 24, 0.12);
  transform-origin: 12px 100%;
  animation: view-up 0.18s ease;
}
.view-panel[hidden] {
  display: none;
}
@keyframes view-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.foot-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pulled, .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.drawer {
  flex: 1 1 0;
  min-width: 40%;
  max-width: 80%;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 0.9rem 1.2rem 1.5rem;
}
.drawer-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.drawer-head .ico.lg {
  flex: none;
  align-self: center;
}
.drawer-titles {
  min-width: 0;
  flex: 1;
}
.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.d-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.hole-map-wrap {
  display: flex;
  justify-content: center;
}
.hole-map {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0.15rem 0 0.45rem;
  border-radius: 10px;
  overflow: visible;
  background: transparent;
}
.hole-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.hole-mark,
.aether-mark {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hole-mark { z-index: 2; }
.aether-mark { z-index: 1; }
.hole-pin-ico {
  width: 1.5rem;
  height: 1.05rem;
  display: block;
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  flex: none;
}
.aether-pin {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #5ec8e8;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  flex: none;
}
.aether-mark.is-near .aether-pin {
  width: 0.85rem;
  height: 0.85rem;
  background: #2aa8d4;
  box-shadow: 0 0 0 3px rgba(61, 184, 212, 0.45);
}
.map-label {
  position: absolute;
  top: calc(100% + 0.12rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 1px 2px #000, 1px 0 2px #000;
  white-space: nowrap;
}
.place-name {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
}
.d-sec { margin: 0.85rem 0; }
.d-sec h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.win-table { width: 100%; min-width: 0; font-size: 0.8rem; table-layout: fixed; }
.win-table th, .win-table td {
  width: 33.33%;
  padding: 0.28rem 0.35rem;
  overflow-wrap: anywhere;
}
.win-table .win-date { white-space: nowrap; }
.win-table .down { color: var(--muted); white-space: nowrap; }
tr.is-open { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
table { border-collapse: collapse; width: 100%; table-layout: auto; }
.table-wrap table { width: auto; max-width: 100%; table-layout: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 0.38rem 0.45rem; text-align: left; vertical-align: middle; }
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, #f7f5f4 88%, white);
  backdrop-filter: blur(8px);
  z-index: 1;
}
th[data-sort] {
  cursor: pointer;
  user-select: none;
}
th[data-sort]:hover { color: var(--accent-deep); }
th.is-sort { color: var(--accent-deep); }
th.name, td.name { font-weight: 600; }
td.name { white-space: nowrap; }
.table-wrap tbody td.name { line-height: 0; }
.name-cell {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0.35rem;
  height: 32px;
  line-height: 32px;
}
.table-wrap tbody tr[data-id] { height: 32px; }
.table-wrap tbody td {
  height: 32px;
  max-height: 32px;
  padding: 0 0.45rem;
  overflow: hidden;
  vertical-align: middle;
}
#rows.hide-names .fish-name { display: none; }
.table-wrap tbody td.name .ico {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}
td.avail.missing { color: var(--accent-deep); font-weight: 600; }
th.avail, td.avail {
  white-space: nowrap;
}
th.uptime, td.uptime {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td.uptime { color: var(--muted); }
th.checks {
  width: 2.25rem;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
th.checks:hover { color: var(--accent-deep); }
th.checks.on {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
td.checks {
  width: 2.25rem;
  text-align: center;
  white-space: nowrap;
}
tbody tr[data-id] { cursor: pointer; }
tbody tr[data-id]:hover { background: rgba(255, 255, 255, 0.55); }
.d-checks { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin: 0.4rem 0 0.8rem; }
.d-checks label { color: var(--ink-soft); cursor: pointer; }
.d-checks label:has(input:disabled),
.d-checks label:has(input.locked) {
  cursor: not-allowed;
}
#drawer.is-syncing .d-checks,
#drawer.is-syncing .d-checks label {
  cursor: wait;
}
#drawer.is-syncing .d-checks input,
#rows.is-syncing td.checks input {
  pointer-events: none;
}
td.avail.now, td.avail.always { color: var(--now); font-weight: 600; }
td.avail.later { color: var(--later); }
.table-wrap tbody td.avail {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}
td.avail .sub {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.65rem;
  line-height: 1.15;
  margin: 0;
}
.loc { display: flex; flex-direction: column; }
.loc small { color: var(--muted); font-size: 0.72rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.22rem; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
}
.pill.time { border-color: rgba(90, 106, 165, 0.35); color: var(--later); }
.pill.wx { border-color: rgba(31, 138, 102, 0.35); color: var(--now); }
.pill.intuit { border-color: var(--accent-soft); color: var(--accent-deep); background: var(--accent-soft); }
.pill.flag, .pill.hook, .pill.tug { color: var(--muted); }
.pill.miss { color: var(--danger); border-color: rgba(196, 76, 76, 0.35); }
.pill.badge.lore { color: var(--accent-deep); background: var(--accent-soft); border-color: transparent; }
.pill.badge.col { color: #8a6a12; border-color: rgba(196, 160, 60, 0.45); }
.pill.badge.aq { color: var(--later); }
.pill.any { color: var(--muted); }
.ico {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex: none;
  image-rendering: auto;
  vertical-align: middle;
}
.ico.lg { width: 3rem; height: 3rem; }
.ico.wx, .ico.ui { width: 1.2rem; height: 1.2rem; }
.check-ico .ico.ui { width: 1.35rem; height: 1.35rem; }
.wx-arrow { margin: 0 0.2rem; color: var(--muted); }
.how-tree { font-size: 0.82rem; }
.how-tree + .how-tree { margin-top: 0.9rem; }
.how-head,
.how-step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.how-head {
  font-weight: 700;
  font-size: 0.95rem;
  gap: 0.4rem;
  white-space: nowrap;
}
.how-head .ico {
  width: 1.9rem;
  height: 1.9rem;
}
.how-head .ico.ui {
  width: 1.55rem;
  height: 1.55rem;
}
.how-head small { color: var(--muted); font-weight: 400; font-size: 0.72rem; }
.how-nushi { --how-line: var(--accent); }
.how-intuit { --how-line: var(--cyan); }
.how-rail {
  margin-left: calc(0.95rem - 1px);
  padding: 0.35rem 0 0.2rem 0.7rem;
  border-left: 2px solid var(--how-line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.how-card {
  position: relative;
  border: 1.5px solid var(--how-line);
  border-radius: 8px;
  padding: 0.55rem 0.6rem 0.45rem;
  margin-top: 0.45rem;
  background: rgba(255, 255, 255, 0.55);
}
.how-card-intuit { --how-line: var(--cyan); }
.how-card-title {
  position: absolute;
  top: 0;
  left: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #fff;
  padding: 0 0.28rem;
  color: var(--how-line);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}
.how-card-title .ico,
.how-card-title .ico.ui,
.how-card-title .clock {
  width: 1.25rem;
  height: 1.25rem;
}
.how-card-body {
  min-height: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}
.how-card-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.how-time { color: var(--later); font-weight: 600; }
.how-time.is-struck {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--muted);
}
.how-miss { color: var(--danger); }
.how-any { color: var(--muted); }
.how-sep { color: var(--muted); }
.how-chain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding-top: 0.15rem;
}
.how-step { white-space: nowrap; padding: 0.08rem 0; }
.how-arrow {
  color: var(--how-line);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.05rem 0 0.05rem 0.35rem;
}
.how-name { font-weight: 600; }
.how-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.02rem 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}
.how-chip .ico.ui {
  width: 1.05rem;
  height: 1.05rem;
}
.how-chip.tug { font-weight: 700; letter-spacing: 0.02em; }

.checks { text-align: center; vertical-align: middle; }
.checks input,
.d-checks input {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  vertical-align: middle;
  border: 1.5px solid #b9b3ae;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.checks input:checked,
.d-checks input:checked {
  background: var(--accent);
  border-color: var(--accent-deep);
}
.checks input:checked::after,
.d-checks input:checked::after {
  content: "";
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checks input.locked,
.d-checks input.locked,
.checks input:disabled,
.d-checks input:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #efecea;
  border-color: #c5bfba;
}
.checks input.locked:checked,
.d-checks input.locked:checked,
.checks input:disabled:checked,
.d-checks input:disabled:checked {
  background: color-mix(in srgb, var(--accent) 62%, #efecea);
  border-color: color-mix(in srgb, var(--accent-deep) 70%, #c5bfba);
}
.checks input.locked:checked::after,
.d-checks input.locked:checked::after,
.checks input:disabled:checked::after,
.d-checks input:disabled:checked::after {
  border-color: #fff;
}
#rows.is-syncing td.checks { cursor: wait; }

tr.is-now td:first-child { box-shadow: inset 3px 0 0 var(--now); }
tr.is-now { background: var(--now-bg); }
tr.caught-dim { opacity: 0.48; }

input[type="checkbox"] { accent-color: var(--accent); }
