@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1f1f1f;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #1f1f1f; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 19px; font-weight: 700; }
h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.sub { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: #5f5f5f; }
.muted { color: #5f5f5f; }
.small { font-size: 13px; line-height: 1.5; }
.tiny { font-size: 12px; line-height: 1.5; color: #5f5f5f; }
.center { text-align: center; }
.grow { flex-grow: 1; }

label.lbl, .lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; }
input[type=text], input[type=time], input[type=date] {
  height: 48px; padding: 0 14px; border: 1.5px solid #d0d0d0; border-radius: 10px;
  font: inherit; font-size: 16px; color: #1f1f1f; background: #fff; width: 100%;
}
input:focus { outline: 2px solid #1f1f1f; outline-offset: 1px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px;
  border: 1.5px solid #d0d0d0; border-radius: 21px; background: #fff;
  font: inherit; font-size: 14px; color: #1f1f1f; cursor: pointer;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill.on, .pill:has(input:checked) { border-color: #1f1f1f; background: #1f1f1f; color: #fff; font-weight: 600; }
.pill:has(input:focus-visible) { outline: 2px solid #1f1f1f; outline-offset: 2px; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  border-radius: 26px; border: 1.5px solid #1f1f1f; background: #1f1f1f; color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: #fff; color: #1f1f1f; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.link { font-size: 14px; font-weight: 600; color: #1f1f1f; text-align: center; }

.box { padding: 14px; background: #f1f1f1; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.card { padding: 14px; border: 1.5px solid #d0d0d0; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.avatar {
  width: 36px; height: 36px; border-radius: 18px; background: #e2e2e2; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #5f5f5f;
}

.upload {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
  border: 1.5px dashed #b5b5b5; border-radius: 10px; background: #fafafa; cursor: pointer; font-size: 14px;
}
.upload input { display: none; }
.photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; background: #f1f1f1; display: block; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #5f5f5f; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: #1f1f1f; }

.linkbox { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; min-height: 48px; border: 1.5px solid #d0d0d0; border-radius: 10px; }
.linkbox span { flex-grow: 1; font-size: 14px; color: #5f5f5f; overflow-wrap: anywhere; }
.linkbox button { border: none; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #1f1f1f; padding: 10px; cursor: pointer; }

.story { display: flex; justify-content: center; padding: 14px; background: #f1f1f1; border-radius: 16px; }
.story img { width: 200px; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

ol.steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #5f5f5f; }
.error { color: #b00020; font-size: 14px; min-height: 1em; }
.done-icon { width: 72px; height: 72px; border-radius: 36px; border: 2px solid #1f1f1f; display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { border-bottom: 1px solid #e2e2e2; padding: 6px 4px; text-align: left; vertical-align: top; }
.error:empty { display: none; }
