:root {
  color-scheme: dark;
  --bg: #17191a;
  --panel: #202325;
  --line: #363a3c;
  --text: #f5f5f2;
  --muted: #a5aeb0;
  --accent: #ff927b;
  --green: #acdbc5;
  --danger: #ffb0a4;
}
.job-status {
  flex-wrap: wrap;
}
.job-status .primary {
  margin-left: auto;
}
.video-thumb {
  height: auto !important;
}
@media (max-width: 700px) {
  .job-status .primary {
    width: 100%;
  }
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
p + p {
  margin-top: 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #261e1b;
  border-radius: 7px;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
}
.brand-by {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.topbar nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.hub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.hub-link img {
  object-fit: contain;
}
.hub-link svg {
  width: 15px;
}
.hub-link:hover {
  color: var(--text);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #30443b;
  color: var(--green);
  border-radius: 50%;
  font-size: 14px;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary svg {
  width: 16px;
}
.menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 16px);
  width: 225px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  background: var(--panel);
  z-index: 20;
  box-shadow: 0 12px 32px #0005;
}
.menu-popover button {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  border: 0;
  background: none;
  color: var(--text);
  padding: 12px;
  text-align: left;
  border-radius: 4px;
}
.menu-popover button:hover {
  background: #ffffff0c;
}
main {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  flex: 1;
  padding: 24px 0 64px;
}
.workspace-heading {
  text-align: center;
  padding: 45px 0 30px;
}
.workspace-heading .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
}
.workspace-heading p {
  margin-top: 14px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.link-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin: auto;
  border: 1px solid #697774;
  background: #202425;
  border-radius: 8px;
  padding: 9px 10px 9px 20px;
  box-shadow: 0 6px 20px #0002;
}
.link-form > svg {
  color: var(--green);
}
.link-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  outline-offset: 0;
}
.primary,
.secondary,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 5px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: normal;
}
.primary {
  background: var(--accent);
  color: #281d18;
}
.primary:hover:not(:disabled) {
  background: #ffa58f;
}
.secondary {
  background: #252a2c;
  color: var(--text);
  border-color: var(--line);
}
.secondary:hover:not(:disabled) {
  background: #303739;
}
.text-button,
.icon-button {
  background: none;
  color: var(--muted);
}
.text-button:hover,
.icon-button:hover {
  color: var(--text);
  background: #ffffff08;
}
.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 10px;
}
.source-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 28px;
  flex-wrap: wrap;
}
.source-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.source-note svg {
  width: 14px;
  height: 14px;
}
.source-note #limits {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.current-job {
  max-width: 820px;
  margin: 30px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.video-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px;
  background: #2a3033;
}
.video-summary h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}
.metadata {
  font-size: 13px;
  color: var(--muted);
}
.convert-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  margin-top: 25px;
  align-items: end;
}
.convert-form label {
  font-size: 12px;
}
.format-tabs {
  display: flex;
  border: 1px solid var(--line);
  padding: 4px;
  gap: 4px;
  border-radius: 5px;
  margin-top: 6px;
  height: 48px;
}
.format-tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 3px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.format-tabs [aria-pressed="true"] {
  background: #414b49;
  color: #fff;
}
.convert-form select {
  height: 48px;
}
.rights {
  grid-column: 1/-1;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 9px !important;
  color: var(--muted);
  margin-top: 0 !important;
}
.rights input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 2px 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.job-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.job-status.ready {
  color: var(--green);
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 14px;
  accent-color: var(--green);
  border: 0;
  border-radius: 3px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #30383a;
}
progress::-webkit-progress-value {
  background: var(--green);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #a5aeb040;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.history {
  margin: 55px auto 0;
  max-width: 920px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.empty-state {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 28px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.empty-state svg {
  width: 28px;
  height: 28px;
  color: #74857d;
}
.file-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 135px auto;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.file-row:last-child {
  border-bottom: 1px solid var(--line);
}
.file-row img {
  width: 64px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
}
.file-row h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-details {
  min-width: 0;
}
.file-details button {
  max-width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  display: block;
}
.file-row .small {
  font-size: 12px;
}
.file-actions {
  display: flex;
  gap: 2px;
}
.file-state {
  font-size: 12px;
  color: var(--muted);
}
.file-state.ready {
  color: var(--green);
}
.file-state.error {
  color: var(--danger);
}
.file-placeholder {
  display: grid;
  place-items: center;
  width: 64px;
  height: 36px;
  border-radius: 4px;
  background: #2b3032;
  color: var(--muted);
}
.notice,
.inline-notice {
  border: 1px solid #8d5d53;
  color: #ffcabd;
  background: #352723;
  border-radius: 5px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.notice button {
  background: none;
  border: 0;
  color: inherit;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.inline-notice {
  max-width: 820px;
  margin: 0 auto;
}
.auth {
  max-width: 430px;
  margin: 55px auto;
}
.auth h1 {
  font-size: 31px;
  margin: 12px 0 15px;
}
.auth .stack {
  margin-top: 28px;
}
.stack {
  display: grid;
  gap: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
input,
select {
  background: #202426;
  border: 1px solid #434c4f;
  color: var(--text);
  border-radius: 5px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
input::placeholder {
  color: #869194;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 50px;
}
.password-input .icon-button {
  position: absolute;
  right: 1px;
  top: 1px;
}
.auth .small {
  margin-top: 22px;
}
.management {
  margin-top: 25px;
}
.management h1 {
  font-size: 30px;
  margin-top: 8px;
}
.user-create {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 25px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 20px;
}
.user-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.user-row > div:first-of-type {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.user-row small {
  display: block;
  color: var(--muted);
}
.user-row .user-actions {
  display: flex;
  gap: 5px;
}
.loading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--muted);
}
footer {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5%;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
footer > span:first-child {
  color: var(--text);
}
.footer-tag {
  display: flex;
  gap: 6px;
  align-items: center;
}
.footer-tag svg {
  width: 14px;
  height: 14px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  width: min(460px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
dialog label {
  margin-top: 16px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: #c9e7d7;
  color: #192e24;
  border-radius: 5px;
  box-shadow: 0 4px 20px #0005;
  font-size: 14px;
  z-index: 30;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 73px;
    padding: 0 18px;
  }
  .brand {
    gap: 8px;
    font-size: 18px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .topbar nav {
    gap: 12px;
  }
  .hub-link span,
  .hub-link > svg,
  #username {
    display: none;
  }
  .hub-link {
    min-height: 44px;
    min-width: 32px;
    justify-content: center;
  }
  .account-menu summary {
    gap: 4px;
  }
  main {
    width: calc(100% - 32px);
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .workspace-heading {
    padding: 24px 0;
  }
  .workspace-heading h1 {
    font-size: 28px;
  }
  .workspace-heading .eyebrow {
    margin-bottom: 14px;
  }
  .workspace-heading p {
    font-size: 14px;
  }
  .link-form {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 12px;
  }
  .link-form input {
    padding: 8px 0;
  }
  .link-form .primary {
    grid-column: 1/-1;
    min-height: 46px;
  }
  .link-form .icon-button {
    width: 36px;
    padding: 6px;
  }
  .source-note {
    gap: 12px;
    font-size: 11px;
  }
  .source-note #limits {
    border: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
  }
  .video-summary {
    grid-template-columns: 94px minmax(0, 1fr) 32px;
    gap: 12px;
  }
  .video-summary h2 {
    font-size: 16px;
  }
  .video-summary .icon-button {
    width: 32px;
    flex-basis: 32px;
    padding: 6px;
  }
  .video-summary .metadata {
    font-size: 12px;
  }
  .convert-form {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .convert-form > .primary {
    grid-column: 1/-1;
  }
  .convert-form select,
  input {
    font-size: 16px;
  }
  .history {
    margin-top: 35px;
  }
  .file-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .file-row img,
  .file-placeholder {
    width: 52px;
  }
  .file-state {
    grid-column: 2;
    grid-row: 2;
    margin-top: -8px;
  }
  .file-actions {
    grid-column: 3;
    grid-row: 1/3;
  }
  .file-actions .icon-button {
    width: 36px;
    flex-basis: 36px;
    padding: 8px;
  }
  .file-row h3 {
    font-size: 13px;
  }
  .auth {
    margin: 30px auto;
  }
  .auth h1 {
    font-size: 28px;
  }
  .management h1 {
    font-size: 25px;
  }
  .management .section-heading {
    align-items: flex-start;
  }
  .user-create {
    grid-template-columns: 1fr;
  }
  .user-row .user-actions {
    gap: 0;
  }
  .user-row .user-actions .icon-button {
    width: 36px;
    flex-basis: 36px;
  }
  .user-row .avatar {
    display: none;
  }
  footer {
    flex-wrap: wrap;
    padding: 22px 18px;
    gap: 10px;
    font-size: 11px;
  }
  footer > span:nth-child(2) {
    order: 3;
    flex-basis: 100%;
  }
  .toast {
    bottom: 16px;
  }
  .current-job {
    padding-top: 20px;
  }
}
