:root { --ink: #222; --muted: #6b6b76; --brand: #5b3a6e; --line: #e3dfe8; --ok: #2f7d4f; --err: #b3261e; --bg: #f6f4f8; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--brand); color: #fff; padding-top: max(12px, env(safe-area-inset-top)); }
header h1 { font-size: 18px; margin: 0; flex: 1; }
header .link { color: #fff; }
main { max-width: 560px; margin: 0 auto; padding: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
h2 { font-size: 17px; margin: 0 0 12px; }
label { display: block; margin: 10px 0; font-weight: 500; }
select, input[type=password] { display: block; width: 100%; margin-top: 4px; padding: 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
button, .button { display: inline-block; padding: 12px 18px; font-size: 16px; font-weight: 600; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; text-align: center; margin: 0; }
button[disabled] { opacity: .45; cursor: default; }
.button.secondary { background: #ece6f1; color: var(--brand); }
button.link { background: none; padding: 4px; font-weight: 500; text-decoration: underline; }
#login-form { display: flex; gap: 8px; } #login-form input { margin: 0; }
#send-btn { width: 100%; margin-top: 12px; }
.cats { border: 0; padding: 0; margin: 0 0 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.cats label { margin: 0; flex: 1; } .cats input { position: absolute; opacity: 0; }
.cats span { display: block; padding: 10px; border: 2px solid var(--line); border-radius: 8px; text-align: center; }
.cats input:checked + span { border-color: var(--brand); background: #f3edf7; }
.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.picker { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-buttons .button:focus-within { outline: 3px solid #b48fd0; outline-offset: 2px; }
.photo-buttons { display: flex; gap: 8px; margin-top: 12px; } .photo-buttons .button { flex: 1; position: relative; }
#thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafafa; font-size: 12px; }
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.thumb .meta { padding: 4px 6px; color: var(--muted); } .thumb .warn { color: var(--err); }
.thumb button { position: absolute; top: 4px; right: 4px; padding: 2px 8px; font-size: 14px; background: rgba(0,0,0,.6); }
.msg:empty { display: none; } .msg { margin-top: 10px; padding: 10px; border-radius: 8px; background: #f1eef4; }
.msg.err { background: #fbe9e7; color: var(--err); } .msg.ok { background: #e6f4ea; color: var(--ok); }
.job { padding: 8px 0; border-top: 1px solid var(--line); } .job:first-of-type { border-top: 0; }
.job .bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.job .bar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.job .state { font-size: 14px; color: var(--muted); } .job .state.err { color: var(--err); }
#sent { list-style: none; padding: 0; margin: 0; } #sent li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
#sent li:first-child { border-top: 0; } #sent .st { color: var(--muted); font-size: 14px; white-space: nowrap; }
