
:root { --bg:#f6f7f9; --card:#fff; --text:#1b1f24; --muted:#5b6470; --line:#dde1e6;
  --brand:#1f5fbf; --brand-text:#fff; --danger:#b42318; --ok:#1e7a3c; }
* { box-sizing:border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); }
header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; background:var(--card); border-bottom:1px solid var(--line); }
header .brand { font-weight:700; }
header nav { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
main { max-width:640px; margin:0 auto; padding:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:16px; }
h1 { font-size:1.4rem; margin:0 0 12px; } h2 { font-size:1.1rem; margin:0 0 12px; }
label { display:block; font-weight:600; margin:12px 0 4px; }
input[type=email], input[type=password], input[type=text] { width:100%; padding:12px; font-size:16px; border:1px solid var(--line); border-radius:8px; }
button, .button { display:inline-block; padding:12px 18px; font-size:16px; font-weight:600; border:0; border-radius:8px; background:var(--brand); color:var(--brand-text); cursor:pointer; text-decoration:none; }
button.secondary { background:#e9edf2; color:var(--text); }
button.small { padding:6px 12px; font-size:14px; }
form.inline { display:inline; }
.actions { margin-top:16px; }
.msg { padding:10px 12px; border-radius:8px; margin-bottom:12px; }
.msg.error { background:#fdecea; color:var(--danger); } .msg.ok { background:#e8f5ec; color:var(--ok); }
.muted { color:var(--muted); font-size:14px; }
table { width:100%; border-collapse:collapse; } td { padding:8px 4px; border-top:1px solid var(--line); vertical-align:middle; }
td.right { text-align:right; }
.tag { font-size:12px; padding:2px 8px; border-radius:999px; background:#e9edf2; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.photo-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.photo-buttons label.button { margin:0; font-weight:600; }
label.button.secondary { background:#e9edf2; color:var(--text); }
.preview { list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.preview li { position:relative; aspect-ratio:1; background:#e9edf2; border-radius:8px; overflow:hidden; }
.preview img { width:100%; height:100%; object-fit:cover; display:block; }
.preview button { position:absolute; top:4px; right:4px; padding:2px 8px; font-size:14px; background:rgba(0,0,0,.6); }
ul.items { list-style:none; padding:0; margin:0; }
ul.items li { border-top:1px solid var(--line); } ul.items li:first-child { border-top:0; }
ul.items a { display:flex; gap:12px; align-items:center; padding:10px 0; color:inherit; text-decoration:none; }
ul.items img, ul.items .noimg { width:64px; height:64px; object-fit:cover; border-radius:8px; background:#e9edf2; flex:none; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; margin:12px 0; }
.gallery img { width:100%; height:auto; border-radius:8px; background:#e9edf2; }
dl.fields { display:grid; grid-template-columns:max-content 1fr; gap:6px 12px; margin:12px 0; }
dl.fields dt { font-weight:600; color:var(--muted); } dl.fields dd { margin:0; }
.description { white-space:pre-line; }
.checks { background:#fff7e6; border-radius:8px; padding:10px 12px; margin-bottom:12px; }
.checks ul { margin:6px 0 0; padding-left:20px; }
h3 { font-size:1rem; margin:16px 0 4px; }
textarea, select { width:100%; padding:12px; font:inherit; font-size:16px; border:1px solid var(--line); border-radius:8px; background:#fff; }
label.check { display:flex; gap:8px; align-items:center; font-weight:400; }
fieldset.private { border:1px dashed var(--line); border-radius:8px; margin:16px 0 0; padding:4px 12px 12px; }
fieldset.private legend { font-weight:600; color:var(--muted); font-size:14px; padding:0 4px; }
button:disabled { opacity:.45; cursor:not-allowed; }
.actions .button, .actions form.inline { margin-right:8px; }
.tag.hold { background:#fff0d6; color:#8a4b00; } .tag.ready { background:#e8f5ec; color:var(--ok); }
ul.photos { list-style:none; padding:0; margin:0; }
ul.photos li { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-top:1px solid var(--line); }
ul.photos li:first-child { border-top:0; }
ul.photos img { width:120px; height:120px; object-fit:contain; border-radius:8px; background:#e9edf2; flex:none; }
ul.photos form { margin-top:6px; }
ul.photos form.remove { display:inline-block; margin-left:8px; }
.msg.hold { background:#fff0d6; color:#8a4b00; }
