:root {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#242b28;
  background:#f6f7f4;
  font-synthesis:none;
  --paper:#fff;
  --muted:#778078;
  --border:#e4e8e1;
  --accent:#376747;
  --tint:#eaf0e8;
  --bg:#f6f7f4
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button,a,input,select {
  outline-offset:4px
}
button {
  cursor:pointer;
  color:inherit;
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px 15px
}
button:hover {
  border-color:#a5b6a6;
  background:var(--tint)
}
button:disabled {
  opacity:.5;
  cursor:wait
}
a {
  color:var(--accent)
}
input,select {
  border:1px solid var(--border);
  background:var(--paper);
  color:inherit;
  border-radius:8px;
  padding:11px 13px;
  min-width:0
}
input:focus,select:focus {
  outline:2px solid #88a18c
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:32px;
  font-weight:600;
  letter-spacing:-1px;
  margin-bottom:9px
}
h2 {
  font-size:17px;
  letter-spacing:-.3px;
  font-weight:600
}
h3 {
  font-size:16px;
  font-weight:600
}
.muted,.small {
  color:var(--muted)
}
.small {
  font-size:12px
}
.eyebrow {
  font-size:11px;
  letter-spacing:1.8px;
  font-weight:600;
  color:var(--accent)
}
.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  background:var(--accent);
  color:#fff;
  border-radius:16px;
  font:600 36px Georgia,serif;
  letter-spacing:-3px
}
.brand-mark span {
  color:#bed39e
}
.small-mark {
  width:38px;
  height:38px;
  border-radius:11px;
  font-size:27px;
  flex-shrink:0
}
.login {
  width:min(410px,calc(100% - 40px));
  margin:12vh auto
}
.login .eyebrow {
  margin-top:30px
}
.login label {
  display:block;
  font-size:13px;
  margin:28px 0 8px
}
.login input,.login button {
  width:100%;
  margin-bottom:12px
}
.primary {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent)
}
.primary:hover {
  background:#284e35;
  color:#fff
}
.login .primary {
  display:flex;
  justify-content:space-between
}
.login .small {
  margin-top:20px;
  font-size:11px
}
#login-error {
  color:#a34539;
  font-size:13px
}
[hidden] {
  display:none!important
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:230px;
  padding:32px 22px;
  background:var(--paper);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column
}
.brand {
  display:flex;
  gap:11px;
  align-items:center;
  text-decoration:none;
  color:inherit;
  font-size:19px;
  font-weight:650
}
.brand small {
  display:block;
  font-size:10px;
  font-weight:400;
  color:var(--muted);
  margin-top:3px;
  letter-spacing:.2px
}
.nav-label {
  font-size:10px;
  letter-spacing:1.4px;
  color:var(--muted);
  margin:54px 13px 14px
}
.nav-button {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  text-align:left;
  background:none;
  border:0;
  margin:5px 0;
  padding:13px;
  font-size:18px;
  color:var(--muted)
}
.nav-button span {
  font-size:13px
}
.nav-button.active {
  background:var(--tint);
  color:var(--accent);
  font-weight:600
}
.sidebar-bottom {
  margin-top:auto;
  padding:16px 8px 0;
  font-size:11px;
  color:var(--muted);
  border-top:1px solid var(--border)
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#73976a;
  border-radius:50%;
  margin-right:6px
}
.text-button {
  border:0;
  background:none;
  padding:10px 0;
  display:block;
  font-size:11px;
  color:var(--muted)
}
main {
  margin-left:230px
}
.topbar {
  height:77px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  border-bottom:1px solid var(--border);
  font-size:12px;
  color:var(--muted)
}
.topbar>div {
  display:flex;
  align-items:center;
  gap:9px
}
.owner {
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  background:#e7eadd;
  border-radius:50%;
  color:var(--accent)
}
.workspace {
  max-width:1500px;
  margin:auto;
  padding:44px 42px
}
.page-head {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  margin-bottom:34px
}
.page-head p {
  font-size:13px;
  margin:0;
  line-height:1.7
}
.date-note {
  font-size:11px;
  color:var(--muted);
  padding-top:8px;
  white-space:nowrap
}
.metrics {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px
}
.metric {
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:12px;
  padding:21px 18px
}
.metric-label {
  font-size:11px;
  color:var(--muted);
  margin-bottom:18px
}
.metric-value {
  font-size:30px;
  letter-spacing:-1px;
  font-weight:550;
  white-space:nowrap
}
.metric-foot {
  font-size:10px;
  color:var(--muted);
  margin-top:8px
}
.metric.emphasis {
  background:var(--accent);
  color:white;
  border-color:var(--accent)
}
.metric.emphasis .metric-label,.metric.emphasis .metric-foot {
  color:#d1dfcf
}
.overview-grid {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:22px;
  margin-top:26px
}
.panel {
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:12px;
  padding:25px
}
.panel-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:25px
}
.panel-title h2 {
  margin:0
}
.panel-title span {
  font-size:11px;
  color:var(--muted)
}
.category-row {
  margin-top:21px
}
.category-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  margin-bottom:9px
}
.category-line small {
  color:var(--muted);
  margin-left:7px
}
.category-line b {
  font-weight:500
}
progress {
  display:block;
  width:100%;
  height:6px;
  appearance:none;
  border:0;
  border-radius:20px;
  overflow:hidden;
  background:var(--tint);
  accent-color:#6f8e68
}
progress::-webkit-progress-bar {
  background:var(--tint)
}
progress::-webkit-progress-value {
  background:#6f8e68;
  border-radius:20px
}
progress::-moz-progress-bar {
  background:#6f8e68
}
.mini-channel {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  border:0;
  border-radius:0;
  border-bottom:1px solid var(--border);
  padding:16px 0;
  text-align:left
}
.mini-channel:last-child {
  border-bottom:0
}
.mini-channel .grow {
  flex:1;
  min-width:0
}
.mini-channel strong {
  font-size:12px;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:550
}
.mini-channel small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px
}
.avatar {
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--tint);
  color:var(--accent);
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  font-size:18px
}
.avatar.large {
  width:76px;
  height:76px;
  font-size:30px
}
.batch {
  margin-top:23px;
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:16px 19px;
  border:1px solid var(--border);
  border-radius:9px;
  color:var(--muted);
  font-size:11px;
  line-height:1.7
}
.batch .status-dot {
  margin-top:6px;
  flex-shrink:0
}
.toolbar {
  display:flex;
  gap:12px;
  margin:25px 0;
  flex-wrap:wrap
}
.toolbar input {
  flex:1;
  min-width:190px
}
.toolbar select {
  font-size:12px
}
.channel-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.channel-card {
  text-align:left;
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:12px;
  padding:22px;
  width:100%
}
.channel-card-top {
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:22px
}
.channel-card-top .grow {
  min-width:0;
  flex:1
}
.channel-card h3 {
  margin-bottom:5px;
  overflow-wrap:anywhere
}
.handle {
  font-size:11px;
  color:var(--muted);
  margin-bottom:9px;
  overflow-wrap:anywhere
}
.chip {
  font-size:10px;
  border:1px solid var(--border);
  color:var(--accent);
  border-radius:5px;
  padding:3px 7px;
  display:inline-block;
  background:var(--tint)
}
.channel-progress {
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
  margin:12px 0
}
.channel-progress strong {
  font-weight:500;
  color:var(--accent)
}
.empty {
  padding:55px 20px;
  text-align:center;
  color:var(--muted);
  border:1px dashed var(--border);
  border-radius:12px;
  line-height:1.8
}
.detail-head {
  display:flex;
  gap:20px;
  align-items:center;
  margin:20px 0
}
.detail-head h1 {
  font-size:26px
}
.detail-head p {
  font-size:12px;
  color:var(--muted);
  margin:5px 0
}
.detail-progress {
  max-width:650px;
  margin:22px 0 30px
}
.table-wrap {
  overflow:auto;
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:10px
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:11px;
  text-align:left;
  white-space:nowrap
}
th {
  font-weight:500;
  color:var(--muted);
  background:var(--bg);
  padding:14px 15px
}
td {
  padding:16px 15px;
  border-top:1px solid var(--border)
}
td:first-child {
  min-width:240px;
  max-width:360px;
  white-space:normal;
  line-height:1.5
}
tbody tr {
  cursor:pointer
}
tbody tr:hover {
  background:var(--tint)
}
td code {
  font-size:10px;
  color:var(--muted)
}
.table-note {
  font-size:11px;
  color:var(--muted);
  margin:14px 0;
  line-height:1.6
}
.result {
  display:block;
  width:100%;
  text-align:left;
  padding:22px;
  background:var(--paper);
  border:1px solid var(--border);
  margin-bottom:12px;
  border-radius:10px
}
.result h3 {
  margin-bottom:8px
}
.result p {
  font-size:12px;
  line-height:1.8;
  margin:12px 0 0;
  color:var(--muted)
}
.result-meta {
  font-size:11px;
  color:var(--muted)
}
.result-meta .chip {
  margin-right:9px
}
#notice {
  background:#f4e8d9;
  color:#734c29;
  padding:12px 16px;
  border-radius:8px;
  margin-bottom:20px;
  font-size:13px
}
dialog {
  background:var(--paper);
  color:inherit;
  border:1px solid var(--border);
  border-radius:16px;
  width:min(940px,calc(100% - 30px));
  padding:26px;
  max-height:88vh
}
dialog::backdrop {
  background:#14211b88;
  backdrop-filter:blur(3px)
}
.dialog-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px
}
.dialog-top button {
  border:0
}
#video-title {
  font-size:24px;
  line-height:1.4
}
.video-meta {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:20px
}
.transcript {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:13px/1.9 ui-sans-serif,system-ui,sans-serif;
  border-top:1px solid var(--border);
  padding-top:23px;
  margin:25px 0 0
}
.yt-link {
  display:inline-block;
  font-size:12px;
  text-decoration:none;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:8px
}
summary {
  cursor:pointer;
  color:var(--muted);
  font-size:12px
}
details {
  margin-top:25px
}
details ul {
  font-size:12px;
  line-height:1.8;
  color:var(--muted)
}
.back {
  font-size:12px;
  margin-bottom:8px
}
.section-note {
  font-size:12px;
  color:var(--muted);
  margin:18px 0
}
.loading {
  color:var(--muted);
  padding:45px 0;
  font-size:14px
}
@media(min-width:1500px) {
  .workspace {
    padding-top:55px
  }
}
@media(max-width:1150px) {
  .metrics {
    grid-template-columns:repeat(3,1fr)
  }
  .overview-grid {
    grid-template-columns:1fr
  }
  .workspace {
    padding:32px 25px
  }
  .topbar {
    padding:0 25px
  }
  .channel-grid {
    grid-template-columns:1fr
  }
  .sidebar {
    width:200px;
    padding:28px 16px
  }
  main {
    margin-left:200px
  }
  .metric-value {
    font-size:27px
  }
}
@media(max-width:700px) {
  .sidebar {
    position:static;
    width:100%;
    padding:15px 20px;
    border-right:0;
    border-bottom:1px solid var(--border)
  }
  .sidebar .brand {
    font-size:17px
  }
  .sidebar nav {
    display:flex;
    gap:10px;
    margin-top:12px
  }
  .nav-label,.sidebar-bottom {
    display:none
  }
  .nav-button {
    justify-content:center;
    padding:9px;
    margin:0;
    font-size:15px
  }
  .nav-button span {
    font-size:11px
  }
  main {
    margin-left:0
  }
  .topbar {
    height:50px;
    padding:0 20px
  }
  .workspace {
    padding:25px 18px
  }
  .page-head {
    margin-bottom:25px
  }
  .date-note {
    display:none
  }
  h1 {
    font-size:27px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .metric {
    padding:17px 14px
  }
  .metric-value {
    font-size:27px
  }
  .metric-label {
    font-size:10px
  }
  .overview-grid {
    gap:16px;
    margin-top:16px
  }
  .panel {
    padding:20px
  }
  .toolbar {
    gap:8px
  }
  .toolbar input {
    min-width:100%;
    width:100%
  }
  .toolbar select {
    flex:1;
    width:40%
  }
  .detail-head {
    align-items:flex-start
  }
  .detail-head h1 {
    font-size:21px
  }
  .detail-head p {
    font-size:10px;
    overflow-wrap:anywhere
  }
  .avatar.large {
    width:55px;
    height:55px
  }
  .detail-actions {
    display:flex;
    gap:10px;
    align-items:center
  }
  .page-head button {
    font-size:11px;
    padding:9px
  }
  .page-head p {
    font-size:12px
  }
}
@media(prefers-color-scheme:dark) {
  :root {
    color:#e0e5df;
    background:#161c18;
    --paper:#1e2620;
    --muted:#a3aea4;
    --border:#344137;
    --accent:#b5d4af;
    --tint:#2b3b2e;
    --bg:#19221b
  }
  .brand-mark {
    background:#426849;
    color:#fff
  }
  .metric.emphasis,.primary {
    background:#365e40;
    color:#fff;
    border-color:#365e40
  }
  .owner {
    background:#354937
  }
  .metric.emphasis .metric-label,.metric.emphasis .metric-foot {
    color:#d1dfcf
  }
  #notice {
    background:#493c27;
    color:#ead2ac
  }
}
