@charset "UTF-8";
.settings-save {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
:root {
  font-family:
    Inter, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #202c37;
  background: #f5f6f8;
  font-synthesis: none;
  line-height: 1.6;
  --blue: #265ddd;
  --muted: #657180;
  --line: #e2e6eb;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #93b3ff;
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  overflow-wrap: anywhere;
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.35;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #25364a;
  padding: 9px 15px;
  font-weight: 600;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  background: #edf2f9;
  border-color: #bcc9db;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover:not(:disabled) {
  background: #1949b6;
  color: #fff;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.danger {
  color: #b23134;
}
.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 23px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-button {
  text-align: left;
  padding: 12px 14px;
  border: 0;
  color: #657180;
  font-weight: 600;
  background: none;
}
.nav-button[aria-current="page"] {
  color: var(--blue);
  background: #edf2ff;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.content {
  width: 100%;
  max-width: 1180px;
  padding: 40px 42px 72px;
  margin: 0 auto;
  min-width: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.stack {
  display: grid;
  gap: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.stat-value {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
}
.stat-note {
  font-size: 12px;
  color: var(--muted);
}
.notice,
.error,
.success {
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice {
  background: #eef3fc;
  color: #3f5376;
}
.error {
  background: #fff0f0;
  color: #a62935;
  border: 1px solid #f0c8ce;
}
.success {
  background: #eaf6f0;
  color: #216648;
  border: 1px solid #cee7da;
}
.empty {
  text-align: center;
  padding: 44px 18px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  margin: 9px 0 20px;
}
.list {
  display: grid;
  gap: 12px;
}
.show-title {
  font-size: 17px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  background: #edf1f5;
  color: #576577;
  white-space: nowrap;
}
.tag.good {
  background: #eaf5ef;
  color: #26714c;
}
.tag.warn {
  background: #fff3dd;
  color: #916216;
}
.tag.bad {
  background: #fff0f0;
  color: #a62935;
}
.rows {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.rows th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  background: #f8f9fb;
}
.rows td,
.rows th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.rows td {
  overflow-wrap: anywhere;
}
.rows tbody tr:last-child td {
  border-bottom: 0;
}
.table-wrap {
  overflow: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.field small {
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cdd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #263445;
  min-width: 0;
}
.field input::placeholder {
  color: #8a95a4;
}
.wide {
  grid-column: 1/-1;
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.search-form .field {
  flex: 1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.candidate {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  font-size: 14px;
  cursor: pointer;
}
.candidate:has(input:checked) {
  border-color: var(--blue);
  background: #f2f6ff;
}
.candidate input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  flex: none;
}
.candidate > div {
  min-width: 0;
}
.candidate strong {
  display: block;
  font-size: 15px;
}
.candidate small {
  display: block;
  margin-top: 4px;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}
.steps span {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 20px;
}
.steps .active {
  background: #e8eefc;
  color: var(--blue);
  font-weight: 650;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}
.summary dt {
  color: var(--muted);
  font-size: 14px;
}
.summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at top, #eaf0fb, transparent 65%), #f5f6f8;
}
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 50px #20325208;
}
.login-box .brand {
  margin-bottom: 30px;
}
.login-box h1 {
  font-size: 23px;
  margin-bottom: 8px;
}
.login-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.login-box .access-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
}
.login-box .primary {
  width: 100%;
  margin-top: 18px;
}
.login-box .error {
  margin-top: 16px;
  margin-bottom: 0;
}
.login-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.job-list {
  display: grid;
  gap: 12px;
}
.job-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.job-item:last-child {
  border: 0;
}
.job-item .actions {
  justify-content: space-between;
}
.job-error {
  margin-top: 8px;
  color: #a62935;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
.loading {
  padding: 44px;
  text-align: center;
  color: var(--muted);
}
.back {
  padding-left: 0;
  color: var(--muted);
  margin-bottom: 12px;
}
progress {
  width: 100px;
  accent-color: var(--blue);
  height: 8px;
}
.section-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.fatal {
  padding: 32px;
}
.form-grid .notice {
  margin: 0;
}
code {
  font-size: 0.9em;
  background: #f2f4f7;
  border-radius: 4px;
  padding: 2px 5px;
}
details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
details {
  margin-top: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 180px 1fr;
  }
  .content {
    padding: 30px 24px 50px;
  }
  .sidebar {
    padding: 26px 14px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
}
@media (max-width: 640px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    gap: 16px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav-button {
    padding: 9px 13px;
    font-size: 13px;
  }
  .sidebar-bottom {
    position: absolute;
    right: 18px;
    top: 16px;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-bottom small {
    display: none;
  }
  .sidebar-bottom button {
    font-size: 12px;
    padding: 6px 8px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .content {
    padding: 24px 16px 44px;
  }
  .page-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 24px;
  }
  .panel {
    padding: 18px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-note {
    display: none;
  }
  .stat-label {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .show-title {
    font-size: 15px;
  }
  .search-form {
    flex-wrap: wrap;
  }
  .search-form .field {
    flex-basis: 100%;
  }
  .summary {
    grid-template-columns: 90px 1fr;
  }
  .steps {
    gap: 0;
    font-size: 12px;
  }
  .steps span {
    padding: 6px;
  }
  .rows {
    min-width: 440px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .login-box {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .nav-button {
    padding: 9px 6px;
    font-size: 12px;
    text-align: center;
  }
  .episode-table {
    min-width: 0;
    display: block;
  }
  .episode-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .episode-table colgroup {
    display: none;
  }
  .episode-table tbody {
    display: block;
  }
  .episode-table tr {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .episode-table tr:last-child {
    border-bottom: 0;
  }
  .episode-table td {
    border: 0;
    padding: 0;
  }
  .episode-table td:first-child {
    white-space: nowrap;
    font-weight: 600;
    grid-column: 1;
    grid-row: 1;
  }
  .episode-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .episode-table td:nth-child(3),
  .episode-table td:nth-child(4) {
    grid-column: 2;
  }
  .episode-table td:last-child:not(:has(button)) {
    display: none;
  }
}

textarea {
  resize: vertical;
  min-height: 96px;
}
.episode-number-column {
  width: 8%;
}
.episode-subtitle-created {
  display: block;
  margin-top: 4px;
}
.episode-video-column {
  width: 15%;
}
.episode-task-column {
  width: 46%;
}
.episode-action-group {
  container-type: inline-size;
}
.episode-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.episode-actions button {
  width: 100%;
  height: 36px;
  font-size: 12px;
  line-height: 20px;
  padding: 7px 9px;
}
@container (min-width: 390px) {
  .episode-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .episode-actions {
    gap: 8px;
  }
}

.release-preview,
.release-preview .table-wrap {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
.activity-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.check-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.check-card h2 {
  font-size: 16px;
}
.check-card p {
  font-size: 13px;
}
.check-card time {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.download-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.download-row .subject-link {
  flex: 1;
  min-width: 180px;
}
.download-row .job-error {
  flex-basis: 100%;
}
.subject-link {
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: var(--blue);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  background: none;
  font-size: 14px;
}
.history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.weekday-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.weekday-tabs [aria-pressed="true"] {
  color: var(--blue);
  border-color: #bacbfd;
  background: #edf2ff;
}
.weekly-catalog .panel-head {
  align-items: flex-start;
  flex-wrap: wrap;
}
.weekly-catalog .panel-head > div {
  min-width: 0;
  flex: 1 1 260px;
}
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-top: 16px;
}
.weekly-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.weekly-item h3 {
  margin: 0;
  font-size: 16px;
}
.weekly-item-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.weekly-item-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.weekly-item > button {
  margin-top: auto;
  align-self: flex-start;
}
.history-tabs [aria-pressed="true"] {
  color: var(--blue);
  background: #edf2ff;
  border-color: #bacbfd;
}
.history-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  align-items: start;
}
.history-filters .field {
  align-content: start;
}
.history-filters select {
  font-weight: 400;
  text-overflow: ellipsis;
}
.history-note {
  font-size: 13px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.history-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.history-list > li {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.history-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.history-body {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.history-body > .subject-link {
  display: block;
  margin: 5px 0;
}
.history-body p {
  margin-top: 6px;
}
.history-body details {
  margin-top: 10px;
}
.history-body .summary {
  margin-top: 12px;
  grid-template-columns: 88px minmax(0, 1fr);
}
.history-body > button:not(.subject-link) {
  margin-top: 12px;
}
.history-error {
  white-space: pre-wrap;
}
.history-panel .section-foot {
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .activity-overview {
    grid-template-columns: 1fr;
  }
  .check-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .check-card p {
    grid-column: 1/-1;
  }
  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .history-list > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .history-time {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .history-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .check-card {
    display: flex;
  }
  .activity-transfers .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
.release-table {
  table-layout: fixed;
  min-width: 0;
}
.release-table th:first-child {
  width: 70%;
}
.release-table td,
.release-table th {
  overflow-wrap: anywhere;
}
.preview-reason {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  white-space: normal;
}
.preview-note {
  font-size: 13px;
}
.offset-suggestion {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  min-width: 0;
}
.group-picker {
  position: relative;
  display: flex;
  align-self: start;
  min-width: 0;
}
.group-picker input {
  padding-right: 42px;
}
.group-picker > button {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  border: 0;
  border-radius: 0 7px 7px 0;
  padding: 0 12px;
}
.group-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  max-height: 240px;
  overflow: auto;
  background: white;
  border: 1px solid #bcc9db;
  border-radius: 8px;
  box-shadow: 0 8px 24px #20325220;
  font-weight: 400;
}
.group-options [role="option"],
.group-options p {
  padding: 9px 12px;
  overflow-wrap: anywhere;
}
.group-options [role="option"] {
  cursor: pointer;
}
.group-options [role="option"]:hover,
.group-options [aria-selected="true"] {
  background: #edf2ff;
  color: var(--blue);
}
@media (max-width: 640px) {
  .release-table,
  .release-table tbody {
    display: block;
  }
  .release-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .release-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .release-table tr:last-child {
    border: 0;
  }
  .release-table td {
    border: 0;
    padding: 0;
  }
  .release-table td:first-child {
    font-weight: 600;
  }
}
.artwork {
  width: 72px;
  height: 104px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #edf0f4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
}
.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.candidate-copy {
  min-width: 0;
}
.search-result {
  width: 100%;
  font-weight: 400;
}
.search-result strong {
  color: #25364a;
}
.show-detail-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
.show-detail-head > div:last-child {
  min-width: 0;
}
.show-detail-head p {
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.artwork-large {
  width: 120px;
  height: 174px;
  flex-basis: 120px;
}
@media (max-width: 640px) {
  .show-detail-head {
    gap: 16px;
    align-items: flex-start;
  }
  .show-detail-head .artwork-large {
    width: 90px;
    height: 130px;
    flex-basis: 90px;
  }
  .show-detail-head h1 {
    font-size: 22px;
  }
}
.transfer-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 16px;
  margin: 20px 0;
}
.transfer-totals > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.transfer-totals span {
  color: var(--muted);
  font-size: 13px;
}
.transfer-totals strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.transfer-totals .transfer-time {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.transfer-totals ~ .panel {
  margin-bottom: 20px;
}
.transfer-card {
  min-width: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0 8px;
}
.transfer-release {
  margin: 0.75rem 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.transfer-release p {
  margin: 0.35rem 0;
}
.transfer-release .release-title {
  line-height: 1.6;
}
.transfer-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.transfer-heading h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
  margin: 0;
}
.transfer-heading .tag {
  flex-shrink: 0;
}
.transfer-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.transfer-progress progress {
  display: block;
  min-width: 0;
  flex: 1;
  width: 100%;
  height: 12px;
  accent-color: var(--blue);
}
.transfer-progress strong {
  min-width: 58px;
  font-size: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.transfer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 14px;
}
.transfer-metrics dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.transfer-metrics dd {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.transfer-card > small {
  display: block;
}
.transfer-card > button {
  margin-top: 12px;
}
@media (max-width: 850px) {
  .transfer-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .transfer-totals > div:last-child {
    grid-column: 1/-1;
  }
  .transfer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .transfer-heading {
    flex-direction: column;
  }
  .transfer-totals > div {
    padding: 14px;
  }
  .transfer-totals strong {
    font-size: 18px;
  }
}
@media (max-width: 640px) {
  .candidate {
    gap: 10px;
    padding: 12px;
  }
  .artwork {
    width: 56px;
    height: 81px;
    flex-basis: 56px;
  }
  .candidate strong {
    font-size: 14px;
  }
  .candidate small {
    font-size: 12px;
  }
}
/* Shared React Aria controls. Labels and controls align independently of help text. */
.form-grid {
  align-items: start;
}
.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.field-hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.field input,
.select-trigger {
  height: 44px;
  min-height: 44px;
  padding: 9px 12px;
  font-weight: 400;
  line-height: 24px;
}
.field textarea {
  font-weight: 400;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd5e0;
  border-radius: 8px;
  text-align: left;
  background: white;
}
.select-trigger [data-slot="value"],
.select-trigger .react-aria-SelectValue {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.group-picker {
  width: 100%;
  align-self: stretch;
}
.group-picker input {
  padding-right: 42px;
}
.group-picker > button {
  min-height: 0;
  height: auto;
}
.picker-popover {
  background: white;
  border: 1px solid #bcc9db;
  border-radius: 9px;
  box-shadow: 0 8px 24px #20325226;
  min-width: var(--trigger-width);
  max-width: calc(100vw - 24px);
  overflow: auto;
  z-index: 100;
}
.picker-list {
  padding: 5px;
  max-height: min(300px, var(--available-height));
  overflow: auto;
  outline: none;
  min-width: 0;
  font-size: 14px;
}
.picker-option {
  padding: 9px 12px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.picker-option[data-focused] {
  background: #edf2ff;
  color: var(--blue);
}
.picker-option[data-selected] {
  font-weight: 650;
}
.picker-option[data-selected]::after {
  content: "✓";
  margin-left: 12px;
  color: var(--blue);
}
[data-focus-visible] {
  outline: 3px solid #93b3ff;
  outline-offset: 3px;
}
[data-disabled] {
  opacity: 0.58;
  cursor: default;
}
.field [data-invalid] {
  border-color: #b23134;
}
.react-aria-FieldError {
  color: #a62935;
  font-size: 13px;
  font-weight: 400;
}
.react-aria-FieldError:empty,
.field-hint:empty {
  display: none;
}
.check {
  cursor: pointer;
  align-items: flex-start;
}
.check-box {
  width: 18px;
  height: 18px;
  border: 1px solid #8996a8;
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 3px;
  color: white;
  font-size: 13px;
  line-height: 1;
}
.check[data-selected] .check-box {
  background: var(--blue);
  border-color: var(--blue);
}
.check[data-focus-visible] {
  outline: none;
}
.check[data-focus-visible] .check-box {
  outline: 3px solid #93b3ff;
  outline-offset: 3px;
}
.radio-mark {
  width: 18px;
  height: 18px;
  border: 1px solid #8996a8;
  border-radius: 50%;
  flex-shrink: 0;
}
.candidate[data-selected] {
  border-color: var(--blue);
  background: #f2f6ff;
}
.candidate[data-selected] .radio-mark {
  border: 5px solid var(--blue);
}
.asr-mode[data-selected] .radio-mark {
  border: 5px solid var(--blue);
}
.asr-mode[data-focus-visible] .radio-mark {
  outline: 3px solid #93b3ff;
  outline-offset: 3px;
}
.disclosure {
  margin-top: 14px;
  min-width: 0;
}
.disclosure-trigger {
  padding: 4px 0;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
  text-align: left;
}
.disclosure[data-expanded] > .disclosure-trigger > span {
  transform: rotate(90deg);
}
.disclosure .react-aria-DisclosurePanel {
  padding-top: 12px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #18283d66;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  overflow: auto;
}
.modal {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 16px 60px #10203944;
}
.dialog {
  padding: 24px;
  outline: none;
  overflow-wrap: anywhere;
}
.dialog h2 {
  margin-bottom: 14px;
}
.dialog .form-actions {
  flex-wrap: wrap;
}
.progress-bar {
  width: 100px;
  min-width: 0;
}
.progress-track {
  height: 8px;
  background: #e2e8f2;
  border-radius: 20px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 20px;
}
.transfer-progress .progress-bar {
  flex: 1;
  width: 100%;
}
.transfer-progress .progress-track {
  height: 12px;
}
.progress-bar[data-indeterminate] .progress-fill {
  background: repeating-linear-gradient(
    90deg,
    var(--blue),
    #93b3ff 15px,
    var(--blue) 30px
  );
}
@media (forced-colors: active) {
  .check-box,
  .radio-mark {
    border-color: ButtonText;
  }
  .check[data-selected] .check-box,
  .progress-fill {
    background: Highlight;
  }
  .candidate[data-selected] .radio-mark {
    border-color: Highlight;
  }
  .picker-option[data-focused] {
    outline: 2px solid Highlight;
  }
}

.subtitle-modal {
  max-width: 850px;
  width: min(850px, calc(100vw - 32px));
}
.subtitle-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.subtitle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: -24px;
  background: white;
  padding-block: 12px;
  z-index: 1;
}
.subtitle-heading h2 {
  margin: 0;
}
.subtitle-choice .stack {
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.subtitle-current {
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .subtitle-choice {
    grid-template-columns: minmax(0, 1fr);
  }
  .subtitle-choice button {
    justify-self: start;
  }
}
.subtitle-job {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line, #dde4ee);
  min-width: 0;
}
.subtitle-job > button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.subtitle-work {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 240px;
  overflow-wrap: anywhere;
}
.subtitle-work small {
  color: var(--muted, #61718a);
}
.subtitle-work.needs-attention strong {
  color: #8a4b08;
}
.subtitle-work .progress-bar {
  width: 100%;
  max-width: 420px;
}

.guide-terms {
  display: grid;
  gap: 0.75rem;
}
.guide-term {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #dde4ed);
  overflow-wrap: anywhere;
}
.guide-term > div:first-child {
  flex: 1 1 20rem;
  min-width: 0;
}
.guide-term .actions {
  align-self: start;
}
.torrent-files {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.torrent-files th:first-child {
  width: 20%;
}
.torrent-files th:last-child {
  width: 24%;
}
.torrent-file-name {
  overflow-wrap: anywhere;
}
.torrent-file-name small {
  display: block;
}
@media (max-width: 640px) {
  .torrent-files thead {
    display: none;
  }
  .torrent-files tbody {
    display: block;
  }
  .torrent-files tr {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .torrent-files td {
    border: 0;
    min-width: 0;
    padding: 8px;
  }
  .torrent-files td:last-child {
    grid-column: 1 / -1;
  }
}

.connect-page {
  max-width: 720px;
  margin: 40px auto;
  padding: 16px;
}
.access-panel {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  min-width: 0;
}
.access-panel h2,
.access-panel h3 {
  margin-top: 0;
}
.access-panel dl,
.credential-box dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 10px 16px;
}
.access-panel dt {
  color: #54657b;
}
.access-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.access-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr));
  gap: 16px;
}
.access-accounts .access-panel {
  margin: 0;
}
.access-panel .form-actions {
  flex-wrap: wrap;
}
.access-panel code,
.credential-value {
  overflow-wrap: anywhere;
  white-space: normal;
}
.credential-box {
  background: #f0f5fc;
  border: 1px solid #ccdbee;
  border-radius: 8px;
  padding: 18px;
  margin-top: 16px;
}
.credential-value {
  font-size: 1.05em;
  user-select: all;
}
.access-request {
  border-top: 1px solid #dde5ef;
  padding: 18px 0;
}
.access-link {
  display: inline-block;
  padding: 12px 18px;
  background: #225da5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .connect-page {
    margin: 0;
    padding: 12px;
  }
  .access-panel {
    padding: 16px;
  }
  .access-panel dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .access-panel dd {
    margin-bottom: 10px;
  }
}

.access-panel dt {
  word-break: keep-all;
}
.access-panel table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.access-panel th,
.access-panel td {
  padding: 12px 10px;
  border-bottom: 1px solid #dce3ec;
  vertical-align: top;
}
.access-panel th {
  background: #f6f8fb;
  font-weight: 600;
}
.access-panel .table-wrap {
  overflow-x: auto;
}
.access-panel .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
/* A bounded scroll surface keeps large libraries and live subtitle queues usable. */
.library-panel {
  min-width: 0;
}
.library-panel .panel-head {
  flex-wrap: wrap;
  gap: 8px 20px;
}
.library-result-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  color: var(--muted);
  font-size: 13px;
}
.library-table-container {
  min-width: 0;
}
.library-table {
  height: clamp(380px, 62vh, 760px);
  width: 100%;
  overflow: auto;
  scroll-padding-top: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.library-table-header {
  width: 100%;
  height: 100%;
  background: #f6f8fb;
  color: #526176;
  font-size: 13px;
  font-weight: 600;
}
.library-table-header [role="columnheader"] {
  padding: 0;
  height: inherit;
  border-bottom: 1px solid var(--line);
}
.library-header-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  font-size: 13px;
}
.library-header-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.library-header-button small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 400;
}
.library-header-button[data-filtered] {
  color: var(--blue);
  background: #eaf0ff;
}
.library-header-button[data-filtered] small {
  color: inherit;
}
.library-header-popover {
  width: min(300px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 28px #1b304524;
}
.library-header-popover [role="dialog"] {
  outline: none;
}
.library-header-popover h2 {
  margin-bottom: 12px;
  font-size: 16px;
}
.library-header-popover h3 {
  font-size: 13px;
  margin: 14px 0 6px;
}
.library-header-popover .field {
  margin: 0;
}
.library-header-popover .form-actions {
  margin-top: 12px;
}
.library-header-options {
  display: grid;
  gap: 4px;
}
.library-header-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.library-header-option > span {
  width: 14px;
}
.library-header-option[data-selected],
.library-header-option[data-hovered] {
  background: #eaf0ff;
  color: var(--blue);
}
.library-header-option[data-focus-visible] {
  outline: 2px solid var(--blue);
}
.library-compact-headers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}
.library-table-compact {
  scroll-padding-top: 124px;
}
.library-table-row {
  width: inherit;
  height: inherit;
  background: white;
  border-bottom: 1px solid var(--line);
}
.library-cell {
  padding: 20px 14px;
  min-height: 160px;
  overflow-wrap: anywhere;
}
.library-table [data-focus-visible] {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}
.library-table-row[data-hovered] {
  background: #fafcff;
}
.library-title-cell {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.library-title-cell .artwork {
  flex: 0 0 64px;
  width: 64px;
  height: 94px;
}
.library-title-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}
.episode-duration {
  color: inherit;
  font-weight: 600;
  line-height: 1.5;
}
.synopsis-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.show-synopsis {
  margin: 12px 0 20px;
}
.synopsis-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin: 12px 0;
}
.library-title-copy .show-title {
  line-height: 1.55;
  font-size: 16px;
}
.library-title-copy button {
  font-size: 13px;
  padding: 6px 12px;
}
.library-video,
.library-subtitles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.library-video .tag {
  white-space: normal;
}
.library-current-job {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.library-current-job > strong {
  font-weight: 500;
  color: var(--muted);
}
.library-current-job .subtitle-work {
  flex-basis: auto;
  font-size: 13px;
}
.library-current-job .subtitle-work small {
  font-size: 12px;
}
.library-compact-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 18px;
}
.library-table-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 640px) {
  .library-cell {
    padding: 18px 12px;
  }
  .library-compact-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .library-video {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
  }
  .library-video small {
    flex-basis: 100%;
  }
  .library-title-copy .show-title {
    font-size: 15px;
  }
}

.manual-uploads {
  scroll-margin-top: 16px;
}
.upload-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.upload-slot {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.manual-uploads .panel-head {
  margin-bottom: 0;
}
.upload-file {
  align-items: flex-start;
  gap: 8px;
}
.upload-file .progress-bar {
  width: 100%;
}
.upload-filename {
  overflow-wrap: anywhere;
  min-width: 0;
}
.upload-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.upload-pending > div {
  min-width: 0;
}
.upload-slot-controls {
  align-items: end;
}
.upload-slot-controls > :first-child {
  flex: 1;
  min-width: min(100%, 240px);
}
