/* /share: guest content drop. Its own file so nothing here can disturb the rest of the site. */
.sd { padding-block: clamp(40px, 6vw, 72px); }
.sd-wrap { max-width: 720px; }
.sd-lede { font-size: 16px; line-height: 1.65; color: var(--cream); margin: 0 0 28px; text-align: center; }
.sd-lede a, .sd-done a:not(.btn) { color: var(--brass-lt); }
.sd-form { display: grid; gap: 20px; }

.sd-pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sd-pick-btn {
  display: grid; justify-items: center; gap: 6px; cursor: pointer; text-align: center;
  padding: clamp(28px, 6vw, 44px) 16px; border: 1px dashed var(--brass-dk); background: var(--raised);
  transition: border-color .18s, background .18s;
}
.sd-pick-btn:hover, .sd-pick.is-over .sd-pick-btn { border-color: var(--brass); background: #17130f; }
.sd-pick input:focus-visible + .sd-pick-btn { outline: 2px solid var(--brass-lt); outline-offset: 3px; }
.sd-pick-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--brass); border-radius: 50%; font-family: var(--sans); font-weight: 400; font-size: 28px; line-height: 1; color: var(--brass); margin-bottom: 6px; }
.sd-pick-main { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.sd-pick-sub { font-size: 13px; color: var(--muted); }

.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-list:empty { display: none; }
.sd-item {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  padding: 8px; background: var(--raised); border: 1px solid var(--line);
}
.sd-thumb { width: 52px; height: 52px; object-fit: cover; background: var(--deeper); display: block; }
.sd-thumb--vid { display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--brass); }
.sd-meta { min-width: 0; }
.sd-name { font-size: 13px; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.sd-size { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.sd-item.is-done .sd-size { color: var(--live); }
.sd-item.is-failed .sd-size { color: #e08a7a; }
.sd-x {
  background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1;
  width: 40px; height: 40px; cursor: pointer;
}
.sd-x:hover { color: var(--cream); }

.sd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd-field { display: grid; gap: 6px; }
.sd-field--wide, .sd-field:first-child { grid-column: 1 / -1; }
.sd-field > span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.sd-field em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); font-size: 12px; }
.sd-field input, .sd-field textarea {
  width: 100%; box-sizing: border-box; background: var(--deeper); border: 1px solid var(--line); color: var(--cream);
  font-family: var(--sans); font-size: 16px; padding: 12px 14px; border-radius: 0; transition: border-color .18s;
}
.sd-field textarea { resize: vertical; min-height: 64px; }
.sd-field input:focus, .sd-field textarea:focus { outline: none; border-color: var(--brass); }
.sd-field input::placeholder, .sd-field textarea::placeholder { color: #5e564f; }

.sd-checks { display: grid; gap: 12px; }
.sd-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.sd-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass); }
.sd-check span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.sd-check--req span { color: var(--cream); }

.sd-error { margin: 0; font-size: 14px; color: #e08a7a; text-align: center; }
.sd-send { border: none; cursor: pointer; font-family: var(--sans); width: 100%; padding-block: 16px; }
.sd-send:disabled { background: var(--brass-dk); color: #6b6055; cursor: not-allowed; }

.sd-progress { display: grid; gap: 12px; margin-top: 24px; text-align: center; }
.sd-status { margin: 0; font-size: 15px; color: var(--cream); }
.sd-bar { height: 6px; background: var(--line); overflow: hidden; }
.sd-bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .3s; }
.sd-keep { margin: 0; font-size: 13px; color: var(--muted); }
.sd-retry { background: none; cursor: pointer; font-family: var(--sans); justify-self: center; }

.sd-done { text-align: center; padding-block: 12px; }
.sd-done h2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 7vw, 44px); margin: 0 0 12px; }
.sd-done p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.sd-done .book-cta { justify-content: center; }
.sd-done button.btn { background: none; cursor: pointer; font-family: var(--sans); }

@media (max-width: 560px) { .sd-fields { grid-template-columns: 1fr; } }
