*,*::before,*::after {
  box-sizing:border-box
}
html {
  scroll-padding-top:24px;
  scrollbar-gutter:stable
}
body {
  margin:0;
  background:var(--ui-bg);
  color:var(--ui-text);
  font:400 14px/1.8 var(--ui-font);
  -webkit-font-smoothing:antialiased
}
button,input,select,textarea {
  font:inherit;
  color:inherit
}
button,a,input,select,textarea {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed
}
a {
  color:var(--ui-brand);
  text-decoration:none;
  text-underline-offset:4px
}
a:hover {
  text-decoration:underline
}
img,video {
  max-width:100%;
  height:auto
}
svg {
  flex-shrink:0
}
h1,h2,h3,p {
  overflow-wrap:break-word
}
h1,h2,h3 {
  line-height:1.55;
  color:var(--ui-text)
}
h1 {
  font-size:30px;
  letter-spacing:-.6px;
  margin:0 0 8px;
  font-weight:800
}
h2 {
  font-size:18px;
  margin:0 0 12px;
  font-weight:750
}
h3 {
  font-size:14px;
  margin:0 0 8px
}
p {
  margin:0 0 14px
}
small {
  font-size:12px
}
fieldset {
  border:0;
  margin:0;
  padding:0;
  min-width:0
}
[hidden] {
  display:none!important
}
:focus-visible {
  outline:3px solid var(--ui-brand);
  outline-offset:3px
}
.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip-path:inset(50%);
  white-space:nowrap
}
.skip-link {
  position:fixed;
  inset-block-start:8px;
  inset-inline-start:12px;
  z-index:200;
  transform:translateY(-160%);
  padding:10px 20px;
  border-radius:10px;
  background:var(--ui-text);
  color:var(--ui-surface)
}
.skip-link:focus {
  transform:none
}
.panel {
  min-width:0;
  padding:24px;
  border:1px solid var(--ui-line);
  border-radius:var(--ui-radius);
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow)
}
.button,.text-button,.icon-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border:1px solid transparent;
  border-radius:var(--ui-control-radius);
  background:transparent;
  color:var(--ui-text);
  font:600 13px/1.6 var(--ui-font);
  text-decoration:none;
  transition:background var(--ui-fast),border-color var(--ui-fast),box-shadow var(--ui-fast)
}
.button:hover {
  text-decoration:none
}
.button-primary,.login-submit {
  background:var(--ui-brand);
  color:#fff;
  border-color:var(--ui-brand);
  box-shadow:0 2px 3px #154ab51a
}
.button-primary:hover,.login-submit:hover {
  background:var(--ui-brand-hover);
  border-color:var(--ui-brand-hover)
}
:root[data-theme=dark] .button-primary,:root[data-theme=dark] .login-submit {
  color:#102342
}
.button-ghost,.button-secondary {
  background:var(--ui-surface);
  border-color:var(--ui-line);
  color:var(--ui-text)
}
.button-ghost:hover,.button-secondary:hover {
  background:var(--ui-soft);
  border-color:color-mix(in srgb,var(--ui-line),var(--ui-muted) 25%)
}
.button-small {
  min-height:36px;
  padding:7px 12px;
  font-size:12px
}
.text-button {
  padding:6px;
  min-height:36px;
  color:var(--ui-brand)
}
.icon-button {
  padding:8px;
  width:40px;
  min-height:40px;
  font-size:22px
}
.muted-button {
  color:var(--ui-muted)
}
.button:disabled,button:disabled {
  box-shadow:none;
  opacity:.52
}
.button:disabled {
  background:var(--ui-soft);
  color:var(--ui-muted);
  border-color:var(--ui-line)
}
.button-danger,.danger-button {
  color:var(--ui-danger);
  border-color:var(--ui-danger);
  background:var(--ui-danger-bg)
}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea {
  width:100%;
  min-width:0;
  min-height:46px;
  padding:11px 13px;
  border:1px solid var(--ui-line);
  border-radius:var(--ui-control-radius);
  background:var(--ui-surface);
  color:var(--ui-text);
  transition:border-color var(--ui-fast),box-shadow var(--ui-fast)
}
input::placeholder,textarea::placeholder {
  color:var(--ui-muted);
  opacity:.75
}
input:focus,select:focus,textarea:focus {
  border-color:var(--ui-brand)
}
input[type=checkbox],input[type=radio] {
  width:18px;
  height:18px;
  accent-color:var(--ui-brand);
  flex:none;
  vertical-align:middle
}
input[type=url],input[type=email],input[type=tel],input[type=datetime-local] {
  direction:ltr;
  text-align:start
}
textarea {
  resize:vertical;
  line-height:1.9;
  min-height:110px
}
input:disabled,select:disabled,textarea:disabled {
  background:var(--ui-soft);
  color:var(--ui-muted)
}
.field-block,.field,.transfer-field,.team-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  font-size:13px;
  font-weight:500
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.field-wide {
  grid-column:1/-1
}
.toggle-row,.inline-actions,.inline-form,.dialog-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px
}
.dialog-actions {
  justify-content:flex-end;
  padding-block-start:18px;
  border-top:1px solid var(--ui-line)
}
.muted,.field-block small,.transfer-card-hint,.publish-card-hint {
  color:var(--ui-muted);
  font-weight:400;
  font-size:12px
}
.ui-icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}
.brand-icon,.platform-mark img,.transfer-platform-mark img {
  width:28px;
  height:28px;
  object-fit:contain
}
.platform-mark,.transfer-platform-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex:none;
  border-radius:11px;
  background:var(--ui-soft)
}
.status-chip,.status-pill,.badge,.connection-inline {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:7px;
  background:var(--ui-soft);
  color:var(--ui-muted);
  font-size:11px;
  font-weight:600;
  white-space:nowrap
}
.status-success,.status-completed,.is-success,.status-done {
  color:var(--ui-success);
  background:var(--ui-success-bg)
}
.status-failed,.status-error,.is-danger {
  color:var(--ui-danger);
  background:var(--ui-danger-bg)
}
.status-running,.status-publishing,.status-downloading,.status-queued {
  color:var(--ui-brand);
  background:var(--ui-brand-soft)
}
.status-warning,.is-warning {
  color:var(--ui-warning);
  background:var(--ui-warning-bg)
}
.notice,.feedback-message {
  border-radius:10px;
  font-size:13px;
  line-height:1.9;
  overflow-wrap:anywhere
}
.notice:empty {
  display:none
}
.notice:not(:empty) {
  padding:12px 16px;
  background:var(--ui-brand-soft);
  border:1px solid var(--ui-line)
}
.notice.is-error,.notice.error,.notice-error,.feedback-error {
  color:var(--ui-danger);
  background:var(--ui-danger-bg);
  border-color:color-mix(in srgb,var(--ui-danger),transparent 70%)
}
.notice.is-success,.notice.success,.feedback-success {
  color:var(--ui-success);
  background:var(--ui-success-bg)
}
.notice-dismiss {
  background:transparent;
  border:0;
  float:inline-end;
  color:inherit;
  padding:4px;
  min-width:30px
}
.empty-state {
  grid-column:1/-1;
  text-align:center;
  padding:28px 20px;
  border:1px dashed var(--ui-line);
  border-radius:12px;
  background:var(--ui-soft);
  color:var(--ui-muted);
  font-size:13px;
  line-height:2
}
.empty-state a {
  display:inline-flex;
  margin:8px
}
.empty-state .button {
  margin-block-start:12px
}
.selection-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:10px
}
.selection-card,.transfer-destination,.media-choice {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid var(--ui-line);
  border-radius:12px;
  background:var(--ui-surface);
  cursor:pointer;
  min-width:0
}
.selection-card:has(input:checked),.transfer-destination:has(input:checked),.is-selected.selection-card {
  border-color:var(--ui-brand);
  background:var(--ui-brand-soft)
}
.selection-copy,.transfer-destination-copy {
  display:grid;
  gap:4px;
  min-width:0;
  flex:1
}
.selection-copy strong {
  overflow-wrap:anywhere;
  font-size:13px
}
.selection-copy small {
  color:var(--ui-muted);
  font-size:11px
}
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-block-start:20px
}
.pagination button,.pagination a {
  min-width:36px;
  min-height:36px;
  display:grid;
  place-items:center;
  border:1px solid var(--ui-line);
  border-radius:8px;
  background:var(--ui-surface);
  color:var(--ui-text);
  padding:6px 10px
}
.pagination .is-active,.pagination [aria-current=page] {
  background:var(--ui-brand-soft);
  border-color:var(--ui-brand);
  color:var(--ui-brand)
}
.progress-track,.progress-bar {
  overflow:hidden;
  border-radius:99px;
  background:var(--ui-soft);
  height:6px
}
.progress-fill {
  height:100%;
  background:var(--ui-brand);
  transition:width var(--ui-fast)
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  text-align:start
}
th {
  font-size:11px;
  font-weight:500;
  color:var(--ui-muted);
  background:var(--ui-soft)
}
th,td {
  padding:14px 12px;
  text-align:start;
  border-bottom:1px solid var(--ui-line)
}
.table-wrap,.table-scroll {
  overflow-x:auto;
  border:1px solid var(--ui-line);
  border-radius:12px
}
tbody tr:last-child td {
  border-bottom:0
}
dialog {
  color:var(--ui-text);
  background:var(--ui-surface);
  border:1px solid var(--ui-line);
  border-radius:20px;
  box-shadow:var(--ui-shadow-pop);
  padding:24px;
  max-width:min(900px,calc(100vw - 32px));
  max-height:90dvh;
  overflow:auto
}
dialog::backdrop {
  background:#0a142b80;
  backdrop-filter:blur(3px)
}
.dialog-layer {
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:20px;
  overflow:auto
}
.dialog-backdrop {
  position:fixed;
  inset:0;
  background:#0a142b80;
  border:0;
  cursor:default;
  backdrop-filter:blur(3px)
}
.dialog-layer>[role=dialog],.dialog-layer>.panel {
  position:relative;
  z-index:1;
  width:min(720px,100%);
  max-height:90dvh;
  overflow:auto
}
.dialog-head,.dialog-head>div,.publish-detail-head,.publish-detail-head>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.dialog-head h2,.publish-detail-head h2 {
  margin:0
}
.app-confirm-dialog {
  width:430px
}
.app-confirm-shell {
  display:grid;
  gap:18px
}
.app-confirm-icon {
  display:grid;
  place-items:center;
  background:var(--ui-warning-bg);
  color:var(--ui-warning);
  border-radius:12px;
  width:44px;
  height:44px;
  font-size:24px
}
.app-confirm-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end
}
.app-confirm-copy p {
  color:var(--ui-muted)
}
.errorlist {
  list-style:none;
  margin:8px 0;
  padding:12px 14px;
  border-radius:10px;
  background:var(--ui-danger-bg);
  color:var(--ui-danger);
  font-size:13px
}
.ui-kicker {
  display:block;
  color:var(--ui-brand);
  font-size:11px;
  font-weight:700;
  margin-block-end:6px;
  letter-spacing:.04em
}
.ui-page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-block:4px 12px
}
.ui-page-heading p {
  margin:0;
  color:var(--ui-muted);
  font-size:13px
}
.ui-flow-steps {
  display:flex;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:flow
}
.ui-flow-steps li {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--ui-muted);
  font-size:12px;
  flex:1
}
.ui-flow-steps li:before {
  content:counter(flow,decimal-leading-zero);
  counter-increment:flow;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid var(--ui-line);
  border-radius:8px;
  font-size:11px;
  background:var(--ui-surface)
}
.ui-flow-steps li[aria-current=step] {
  color:var(--ui-brand);
  font-weight:700
}
.ui-flow-steps li[aria-current=step]:before {
  color:var(--ui-brand);
  background:var(--ui-brand-soft);
  border-color:var(--ui-brand)
}
.ui-help-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--ui-muted)
}
@keyframes ui-pulse {
  50% {
    opacity:.45
  }
}
.ui-skeleton {
  border-radius:8px;
  background:var(--ui-soft);
  animation:ui-pulse 1.4s ease-in-out infinite;
  min-height:16px
}
@media(max-width:760px) {
  body {
    font-size:13px
  }
  h1 {
    font-size:25px
  }
  h2 {
    font-size:16px
  }
  .panel {
    padding:18px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .field-wide {
    grid-column:auto
  }
  .selection-grid {
    grid-template-columns:1fr
  }
  .ui-page-heading {
    align-items:flex-start;
    flex-wrap:wrap
  }
  .ui-flow-steps li {
    font-size:11px;
    gap:5px
  }
  .ui-flow-steps li:before {
    width:24px;
    height:24px
  }
  dialog {
    padding:18px
  }
  .dialog-layer {
    padding:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto;
    animation-duration:.01ms;
    animation-iteration-count:1;
    transition-duration:0ms
  }
}
