/* The form of the hand-in page. Colours and type come from /styles.css. */
.hand-in { display: grid; max-width: 46rem; gap: 6px; }
.hand-in > label { margin-top: 20px; color: var(--ink); font-weight: 650; }
.hand-in > label span { color: var(--muted); font-weight: 400; }
.hand-in input[type="text"], .hand-in textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--ink); font: inherit; }
.hand-in textarea { resize: vertical; line-height: 1.5; }
.hand-in #hand-in-recipe, .hand-in #hand-in-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; }
.hand-in #hand-in-code { max-width: 18rem; letter-spacing: .06em; text-transform: uppercase; }
.hand-in input[type="text"]:focus, .hand-in textarea:focus { border-color: var(--mint); outline: 2px solid var(--mint); outline-offset: 1px; }
.hand-in-hint { margin: 0; color: var(--muted); font-size: 15px; }
.hand-in-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 15px; }
.hand-in-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hand-in-choose { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); cursor: pointer; }
.hand-in-choose:hover, .hand-in-file:focus-within .hand-in-choose { border-color: var(--mint); }
.hand-in-promise { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin: 26px 0 0; }
.hand-in-promise input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--mint); }
.hand-in-send { margin: 22px 0 0; }
.hand-in-send button { cursor: pointer; font: inherit; font-weight: 700; }
.hand-in-send button:disabled { opacity: .55; cursor: default; transform: none; }
.hand-in-problem { margin: 12px 0 0; color: #f0b48a; }
.hand-in-problem:empty { display: none; }
#hand-in-done { max-width: 46rem; }
.hand-in[hidden], #hand-in-done[hidden] { display: none; }
