:root {
  color-scheme: dark;
  font: 15px/1.55 system-ui, sans-serif;
  color: #f3f4f7;
  background: #101116;
}
* { box-sizing: border-box; }
body { margin: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid #292b35;
  background: #15161d;
}
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #383566; color: #ddd9ff; }
.local { margin-left: auto; color: #b0b3c3; font-size: 12px; }
main { width: min(720px, calc(100% - 32px)); margin: clamp(32px, 8vw, 76px) auto; }
.platforms { display: flex; flex-wrap: wrap; gap: 7px; }
.platforms span { border: 1px solid #363848; color: #c8cbdb; padding: 2px 9px; border-radius: 6px; font-size: 12px; }
h1 { margin: 12px 0 3px; font-size: clamp(25px, 5vw, 34px); font-weight: 650; }
.intro { margin: 0 0 24px; color: #b0b3c3; }
.workspace { border: 1px solid #303241; border-radius: 12px; padding: clamp(16px, 4vw, 25px); background: #191a23; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.input-row, .options { display: grid; gap: 10px; }
.input-row { grid-template-columns: minmax(0, 1fr) auto; }
.options { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
input, select, button { min-height: 43px; padding: 8px 12px; border-radius: 7px; font: inherit; }
input, select { width: 100%; min-width: 0; color: inherit; background: #11121a; border: 1px solid #3b3d50; }
input::placeholder { color: #a1a4b5; }
button { border: 1px solid transparent; background: #7066e8; color: #fff; font-weight: 650; cursor: pointer; }
button:hover { background: #6459d7; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #b9b2ff; outline-offset: 2px; }
[hidden] { display: none; }
#download { border-top: 1px solid #303241; margin-top: 19px; padding-top: 16px; }
.caption { margin: 0 0 3px; color: #b0b3c3; font-size: 12px; }
#title { margin: 0 0 14px; font-weight: 600; overflow-wrap: anywhere; }
.save { width: 100%; margin-top: 12px; }
#status { margin: 15px 0 0; font-size: 13px; color: #b0b3c3; overflow-wrap: anywhere; }
#status[data-state="busy"] { color: #c5bfff; }
#status[data-state="success"] { color: #9adbb8; }
#status[data-state="error"] { color: #ffb6b3; }
@media (max-width: 420px) { .input-row { grid-template-columns: 1fr; } }

.watermark { margin-top: 18px; }
.watermark h2 { margin: 0 0 5px; font-size: 18px; }
.watermark .intro { margin-bottom: 14px; }
.video-frame { position: relative; width: fit-content; max-width: 100%; margin: 12px auto 0; }
.video-frame video { display: block; max-width: 100%; max-height: 420px; }
.preview-controls { display: flex; gap: 10px; margin-top: 8px; }
.preview-controls button { flex-shrink: 0; }
#watermark-status { margin-bottom: 0; color: #b0b3c3; font-size: 13px; overflow-wrap: anywhere; }

#download-watermark-field { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
#download-watermark-field[hidden] { display: none; }
#download-watermark { width: auto; min-height: auto; }
#watermark-platform { margin-bottom: 12px; }

.task-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.task-actions progress { flex: 1; min-width: 0; accent-color: #a89fff; }
.task-actions button { min-height: 34px; font-size: 13px; background: #343548; }

.login-main { max-width: 460px; }
#login-form { display: grid; gap: 12px; }
#login-form input { width: 100%; box-sizing: border-box; }
#login-form .save { margin-top: 8px; }
#logout { margin-left: auto; padding: 6px 12px; font-size: 13px; }

#transfer-detail { margin: 7px 0 0; color: #d5d1ff; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
