:root {
  color-scheme: light dark;
  --page: #edf2f7;
  --card: #fff;
  --text: #142337;
  --muted: #4f6279;
  --line: #b6c4d4;
  --accent: #0758ae;
  --on-accent: #fff;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #101822;
    --card: #182332;
    --text: #f1f6fd;
    --muted: #a9bad0;
    --line: #53667d;
    --accent: #91c3ff;
    --on-accent: #102740;
  }
}
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 16px 40px; }
main {
  max-width: 640px;
  margin: auto;
  padding: clamp(20px, 5vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
header { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
h1 { margin: 5px 0 9px; font-size: clamp(1.65rem, 5vw, 2.25rem); line-height: 1.14; }
p { margin: 0; overflow-wrap: anywhere; }
.meta { font-weight: 700; color: var(--accent); }
#details, #limit { color: var(--muted); font-size: .88rem; }
#address { font-weight: 600; }
form { margin-top: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 650; }
textarea, input { display: block; width: 100%; min-width: 0; font: inherit; color: inherit; }
textarea { resize: vertical; background: var(--card); padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.files { margin: 20px 0; }
input::file-selector-button, button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--page);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
input::file-selector-button { margin-right: 10px; }
#limit { margin-top: 8px; }
ul { list-style: none; padding: 0; margin: 8px 0 0; }
li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
li img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.primary { width: 100%; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#status { margin-top: 13px; }
[hidden] { display: none !important; }
