.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 600 .95rem var(--f-body);
  text-decoration: none;
  cursor: pointer;
}
.ck-btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.ck-btn:disabled {
  opacity: .55;
  cursor: default;
}
.ck-open {
  width: 100%;
  margin: 10px 0 4px;
}
.scan-trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 8px 8px 14px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 12px;
}
.scan-trip[hidden] {
  display: none;
}
.ck {
  padding: 0;
  border: 0;
  border-radius: 16px;
  width: min(96vw, 560px);
  max-height: 92vh;
  background: var(--card);
  color: var(--ink);
}
.ck::backdrop {
  background: rgba(0, 0, 0, .6);
}
.ck-in {
  padding: 12px 16px 16px;
}
.ck-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: 0;
  background: var(--card);
  padding: 4px 0;
}
.ck-top h2 {
  margin: 0;
  font: 700 1.1rem var(--f-display);
}
.ck-x {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}
.ck-sub,
.ck-note,
.ck-small {
  margin: 6px 0;
  font-size: .9rem;
  color: var(--muted);
}
.ck-small {
  font-size: .82rem;
}
.ck-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.ck-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.ck-pick {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  min-width: 0;
}
.ck-pick input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.ck-pick span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ck-pick small {
  color: var(--muted);
}
.ck-item:not(.is-on) .ck-pick span {
  color: var(--muted);
}
.ck-paid {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  font-family: var(--f-num);
}
.ck-paid input,
.ck-money input {
  width: 5.5em;
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem var(--f-num);
  text-align: right;
}
.ck-paid input.is-locked {
  border-color: var(--accent);
  border-width: 2px;
}
.ck-total {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 10px 0 0;
}
.ck-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.ck-field input:not([type=checkbox]) {
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem var(--f-body);
}
.ck-money {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--f-num);
}
.ck-snap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.ck-snap input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ck-receipt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: .88rem;
  color: var(--muted);
}
.ck-receipt img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.ck-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.ck-err {
  margin: 6px 0;
  color: var(--bad);
  font-weight: 600;
  font-size: .9rem;
}
.ck-msg {
  min-height: 1.2em;
  margin: 6px 0;
  font-size: .9rem;
  color: var(--ink);
}
.ck-go {
  width: 100%;
  margin-top: 4px;
}
.ck-done {
  margin: 10px 0;
}
.ck-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ck-row .ck-btn {
  flex: 1 1 140px;
}
.ss {
  margin: 0 0 14px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.ss > summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}
.ss > summary::-webkit-details-marker {
  display: none;
}
.ss-title {
  font: 700 1.05rem var(--f-display);
}
.ss-sub {
  font-size: .88rem;
  color: var(--muted);
}
.ss-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .88rem;
  font-weight: 600;
}
.ss-field textarea,
.ss-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem var(--f-body);
}
.ss-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.ss-add {
  position: relative;
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.ss-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ss-go {
  flex: 1 1 140px;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 .95rem var(--f-body);
  cursor: pointer;
}
.ss-go:disabled {
  opacity: .55;
}
.ss-shot:empty {
  display: none;
}
.ss-msg {
  min-height: 1.2em;
  margin: 6px 0;
  font-size: .9rem;
}
.ss-what {
  margin: 8px 0;
}
.ss-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ss-note {
  margin: 8px 0;
  font-size: .88rem;
  color: var(--muted);
}
.ss-cands {
  margin: 10px 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ss-cands legend {
  font-weight: 700;
  padding: 0 4px;
}
.ss-cand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.ss-cand input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.ss-cand small {
  color: var(--muted);
}
.ss-form .ss-go {
  width: 100%;
  margin: 4px 0 12px;
}
@media (max-width: 380px) {
  .ss-nums {
    grid-template-columns: 1fr 1fr;
  }
  .ck-meta {
    grid-template-columns: 1fr;
  }
}
