:root {
  --blue: #1a6fd4;
  --blue-dark: #145aaf;
  --ink: #142033;
  --muted: #5c6b80;
  --line: #d9e3ef;
  --soft: #f3f8fd;
  --bg: #e7eef6;
  --ok: #e5f6ec;
  --ok-ink: #146c36;
  --bad: #fdecec;
  --bad-ink: #8d1d1d;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.4;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
header.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 2;
}
header.top img.logo { width: 56px; height: 56px; object-fit: contain; }
header.top .brand { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--blue); }
header.top .brand span { display: block; font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0; }
main { padding: 16px 16px 24px; flex: 1; }
h1 { font-size: 28px; line-height: 1.15; margin: 8px 0 8px; letter-spacing: -0.03em; }
h2 { font-size: 20px; margin: 18px 0 8px; }
p.lead { margin: 0 0 14px; color: var(--muted); }
.note, .flash, .warn {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.note { background: var(--soft); color: var(--ink); }
.flash { background: var(--ok); color: var(--ok-ink); }
.warn { background: var(--bad); color: var(--bad-ink); }
.choice, .btn, .btn-line, .opt {
  display: flex;
  width: 100%;
  text-decoration: none;
  border-radius: 14px;
  min-height: 56px;
}
.choice {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--line);
  padding: 14px 14px;
  margin: 0 0 10px;
}
.choice strong { display: block; font-size: 18px; }
.choice small { color: var(--muted); font-size: 14px; }
.choice .price { color: var(--blue); font-weight: 800; text-align: right; white-space: nowrap; }
.choice .price small { display: block; font-weight: 600; font-size: 12px; }
.btn, .btn-line {
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 0;
  cursor: pointer;
  padding: 14px 16px;
  margin: 8px 0;
}
.btn { background: var(--blue); color: white; }
.btn:active { background: var(--blue-dark); }
.btn-line { background: white; color: var(--blue); border: 2px solid var(--blue); }
label.field { display: block; font-weight: 700; margin: 12px 0 6px; }
input[type="text"], input[type="password"], input[type="date"], input[type="time"],
input[type="search"], input[type="number"], input[type="url"], input[type="tel"], textarea, select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.opt {
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  padding: 12px 14px;
  margin: 0 0 8px;
  font-weight: 700;
  background: white;
}
.opt:has(input:checked) { border-color: var(--blue); background: var(--soft); }
.opt input { width: 22px; height: 22px; accent-color: var(--blue); }
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 8px;
  font-weight: 700;
}
.checks input { width: 22px; height: 22px; accent-color: var(--blue); }
.person {
  border: 2px solid var(--blue);
  background: var(--soft);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
.person .who { display: flex; gap: 12px; align-items: center; }
.avatar, .person img.pic {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--blue); color: white;
  display: grid; place-items: center; font-weight: 800; font-size: 24px; flex: none;
}
.person h2 { margin: 0; }
.meta { color: var(--muted); font-size: 15px; }
.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 10px 14px;
  margin: 0 0 8px;
}
.slot form { margin: 0; }
.slot button,
.btn-line.remove {
  background: white;
  color: var(--bad-ink);
  border: 2px solid var(--bad-ink);
  border-radius: 14px;
  min-height: 56px;
  min-width: 120px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 18px;
}
.avail-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
button.btn.avail {
  min-height: 84px;
  font-size: 22px;
  line-height: 1.15;
  display: block;
}
button.btn.avail span { display: block; font-size: 16px; font-weight: 700; }
.pay-line { margin: 0 0 8px; font-size: 18px; }
.gallery img { width: 100%; border-radius: 12px; margin: 0 0 10px; background: var(--soft); }
.pill {
  display: inline-block;
  background: var(--soft);
  color: var(--blue-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
.pill.done { background: var(--ok); color: var(--ok-ink); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 4px; vertical-align: top; }
.tabbar {
  position: sticky;
  bottom: 0;
  display: flex;
  background: white;
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  padding: 14px 4px calc(14px + env(safe-area-inset-bottom));
  font-size: 15px;
}
.tabbar a.on { background: var(--soft); }
.foot { color: var(--muted); font-size: 13px; margin-top: 18px; }
.foot a { color: var(--blue); }
.demo-list { background: var(--soft); border-radius: 12px; padding: 10px 14px; }
.demo-list div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.demo-list div:last-child { border-bottom: 0; }

.table-wrap { overflow-x: auto; }

.qr-box {
  border: 2px dashed var(--blue);
  background: var(--soft);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  margin: 0 0 14px;
}
.qr-box strong { display: block; font-size: 20px; color: var(--blue); margin-bottom: 6px; }
.qr-box span { display: block; color: var(--muted); font-size: 14px; }
img.qr { width: 100%; max-width: 100%; height: auto; object-fit: contain; display: block; margin: 0 auto 14px; background: white; border-radius: 12px; }
img.jobshot { width: 100%; border-radius: 12px; margin: 0 0 14px; background: var(--soft); }
input[type="file"] { width: 100%; margin: 0 0 8px; font-size: 16px; }

.choice.is-hidden { display: none; }
#skill-search { margin-bottom: 10px; }
#skill-go[hidden], #skill-empty[hidden] { display: none; }
