:root {
  color-scheme: light;
  color: #24241f;
  background: #f9f6f0;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #75431e; text-underline-offset: .22em; }
header { background: #fffcf7; border-bottom: 1px solid #e8e1d5; }
.wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 18px; }
.library { font-size: 14px; }
.intro { padding-block: clamp(32px, 7vw, 66px) 25px; }
h1 { margin: 0; font-size: clamp(32px, 7vw, 52px); line-height: 1.16; letter-spacing: -.04em; }
.intro p { margin: 13px 0 0; color: #625b50; line-height: 1.65; }
.card { background: #fffcf7; border: 1px solid #e8e1d5; border-radius: 18px; padding: clamp(16px, 4vw, 25px); }
label { font-weight: 650; }
textarea { display: block; width: 100%; min-height: 118px; resize: vertical; margin: 10px 0 14px; padding: 13px; background: #fff; border: 1px solid #cfc6b8; border-radius: 10px; color: inherit; font: inherit; line-height: 1.5; }
.actions, .video-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
button, select, .primary { font: inherit; min-height: 44px; padding: 9px 16px; border-radius: 9px; font-weight: 650; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.primary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #75431e; background: #75431e; color: #fff; text-decoration: none; }
.actions .primary { margin-inline-start: auto; }
.secondary, select { background: #fff; border: 1px solid #cfc6b8; color: inherit; }
.text-button { color: #625b50; border: 1px solid transparent; background: transparent; padding-inline: 8px; }
:focus-visible { outline: 2px solid #8c5429; outline-offset: 3px; }
#status, #playback { margin: 13px 0 0; color: #625b50; line-height: 1.5; }
#status[data-error] { color: #992a25; }
.result { margin-top: 18px; }
.meta { margin: 0 0 7px; color: #625b50; font-size: 14px; }
h2 { margin: 0 0 16px; overflow-wrap: anywhere; line-height: 1.4; font-size: clamp(19px, 4vw, 25px); }
video { display: block; background: #171715; width: 100%; max-height: 65vh; min-height: 160px; border-radius: 11px; }
.video-actions { margin-top: 16px; justify-content: space-between; }
.video-actions label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
select { max-width: 100%; }
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.images img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eee7da; }
footer { color: #625b50; font-size: 13px; padding-block: 20px 32px; line-height: 1.65; }
@media (max-width: 400px) { .wrap { width: calc(100% - 24px); } button, select { padding-inline: 12px; } }
