:root { --fg: #111827; --muted: #4b5563; --line: #d1d5db; --accent: #6d28d9; --bg: #f8fafc; --ok: #065f46; --warn: #92400e; --err: #991b1b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 19px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--fg); background: var(--bg); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--accent); color: #fff; padding: 14px 0; }
.brand { font-weight: 700; font-size: 18px; }
.sub { opacity: .85; font-size: 15px; }
h1 { font-size: 26px; line-height: 1.25; margin: 24px 0 12px; }
h2 { font-size: 21px; margin: 0 0 12px; }
p { margin: 8px 0; }
.muted { color: var(--muted); font-size: 16px; }
.small { font-size: 15px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0; }
.date { border: 2px solid var(--accent); }
.big { font-size: 24px; font-weight: 700; margin: 4px 0 8px; }
label { display: block; margin: 14px 0; font-weight: 600; }
input, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; border: 1px solid #9ca3af; border-radius: 10px; background: #fff; }
input[type=file] { padding: 10px; }
input:focus, textarea:focus { outline: 3px solid #c4b5fd; border-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; }
.consent input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; }
.btn { display: block; width: 100%; padding: 15px; font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 12px; cursor: pointer; margin-top: 8px; }
.btn.secondary { background: #374151; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 16px; cursor: pointer; text-decoration: underline; padding: 0; }
.hello { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.alert { background: #fef2f2; border: 1px solid #fecaca; color: var(--err); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--ok); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
.note { background: #fffbeb; border: 1px solid #fde68a; color: var(--warn); border-radius: 12px; padding: 10px 12px; }
.check { padding-left: 22px; }
.check li { margin: 10px 0; }
.resched summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-top: 12px; }
.foot { margin: 28px auto 40px; color: var(--muted); font-size: 16px; }
.files { margin: 14px 0; }
.files .label { display: block; font-weight: 600; margin-bottom: 6px; }
.file-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.file-row .pick, .file-row .file-name { display: none; }
.js .file-row input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.js .file-row .pick { display: inline-block; flex: none; margin: 0; padding: 10px 16px; border-radius: 10px; background: #374151; color: #fff; cursor: pointer; }
.js .file-row input[type=file]:focus-visible + .pick { outline: 3px solid #c4b5fd; }
.js .file-row .file-name { display: block; flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 16px; font-weight: 400; }
.add-file { display: inline-block; padding: 10px 16px; font: inherit; font-size: 17px; font-weight: 600; color: var(--accent); background: #fff; border: 2px dashed #c4b5fd; border-radius: 10px; cursor: pointer; margin: 4px 0 8px; }
.btn:disabled { background: #c4c4cc; cursor: not-allowed; }
.submit-hint { text-align: center; margin-top: 6px; }
.file-remove { flex: none; width: 40px; height: 40px; font-size: 22px; line-height: 1; text-decoration: none; color: var(--muted); border-radius: 10px; }
.file-remove:hover { background: #f3f4f6; color: var(--err); }
.files > .muted { display: block; }
