/* studiojukic.ch /muster and /en/sample: the upload form. Linked only on those two pages (every other page stays byte-identical);
   colours, radii and fonts come from the tokens in style.css, the page itself uses its .legal column. */
:root { --field-line: #878d89; --bad: #a31515; }
@media (prefers-color-scheme: dark) { :root { --field-line: #6a726d; --bad: #ff9b9b; } }

.upload { display: grid; gap: 20px; margin: 26px 0 18px; padding: 24px 22px; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--r-m); }
.upload .req-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.upload .req { color: var(--accent); font-weight: 600; }
.upload .field { display: grid; gap: 6px; min-width: 0; }
.upload label { font-weight: 600; font-size: 0.95rem; }

.upload input[type="text"], .upload input[type="email"], .upload input[type="tel"], .upload textarea {
  font: inherit; color: var(--ink); background: var(--paper); width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--field-line); border-radius: var(--r-s); }
.upload textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.upload input[type="file"] { font: inherit; color: var(--ink); width: 100%; padding: 12px; background: var(--soft);
  border: 1px dashed var(--field-line); border-radius: var(--r-s); }
.upload input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 0.55rem 1.05rem; min-height: 44px;
  border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; }
.upload input[type="file"]::file-selector-button:hover { background: var(--accent); color: var(--accent-ink); }

.upload .hint, .upload .status { margin: 0; font-size: 0.88rem; color: var(--muted); }
.upload .status.bad { color: var(--bad); font-weight: 600; }
.upload .chosen { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.upload .chosen li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.upload .chosen li + li { margin-top: 0; }
.upload .chosen .name { overflow-wrap: anywhere; }
.upload .chosen .size { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upload .chosen li.bad .name, .upload .chosen li.bad .size { color: var(--bad); font-weight: 600; }

.upload .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.upload .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.upload .check label { font-weight: 400; font-size: 1rem; line-height: 1.5; }

.upload .cta { margin: 4px 0 0; }
.upload button.button { font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; }
.upload button.button[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 480px) {
  .upload { padding: 20px 16px; }
  .upload .cta .button { display: block; width: 100%; text-align: center; }
}
