.admin-model-config{border:1px solid var(--line);border-radius:9px;background:#f7f8f1;padding:12px 14px;margin:17px 0}.admin-model-config>summary{font-size:12px;color:#62765d;cursor:pointer}.admin-model-config[open]>summary{margin-bottom:16px}.admin-model-config input{margin-bottom:12px}.admin-model-config .button{margin-top:5px}
:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #263e36; background: #f6f6ef; font-synthesis: none; line-height: 1.6;
  --green: #214e42; --line: #e1e5dc; --muted: #6e7c72; --red: #a23e36;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--green); }
[hidden] { display: none !important; }
.site-header { max-width: 1320px; margin: auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: #253d33; text-decoration: none; font-weight: 650; line-height: 1.25; font-size: 18px; }
.brand-mark { display: grid; place-items: center; background: var(--green); color: #f6f6ef; width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
.brand-caption { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; letter-spacing: .14em; }
.header-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.pilot-badge, .soft-badge { display: inline-block; background: #e8edde; border: 1px solid #dbe2cf; border-radius: 100px; padding: 5px 12px; color: #586c4b; font-size: 12px; white-space: nowrap; }
main { max-width: 1240px; margin: 0 auto; padding: 36px 0 48px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; font-weight: 600; line-height: 1.4; letter-spacing: -.04em; margin-bottom: 12px; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.eyebrow { font-size: 11px; letter-spacing: .15em; font-weight: 650; color: #7a8978; margin-bottom: 10px; }
.muted { color: var(--muted); }
.fineprint, .field-hint { font-size: 12px; color: var(--muted); line-height: 1.7; }
.field-hint { margin: 7px 0 14px; }
.fineprint { margin-bottom: 0; }
.lead { color: var(--muted); font-size: 16px; max-width: 470px; line-height: 1.9; }
.card { background: #fffefa; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 25px #29392703; }
.auth-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; align-items: center; min-height: 610px; padding: 25px 58px; }
.auth-layout > *, .workspace-grid > *, .settings-body > *, .field-row > * { min-width: 0; }
.welcome-copy h1 { font-size: 36px; }
.welcome-copy > .fineprint { max-width: 440px; }
.welcome-steps { padding: 0; list-style: none; margin: 35px 0; }
.welcome-steps li { display: flex; gap: 17px; margin: 22px 0; }
.welcome-steps li > span { width: 33px; height: 33px; border: 1px solid #cdd9c9; border-radius: 50%; font-size: 11px; display: grid; place-items: center; color: #6d8265; flex-shrink: 0; }
.welcome-steps strong { font-size: 14px; font-weight: 600; }
.welcome-steps p { font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.auth-card { padding: 36px; align-self: center; }
.auth-card > p.muted { font-size: 13px; margin-bottom: 25px; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 7px; }
input, select, textarea { width: 100%; background: #fff; border: 1px solid #d9dfd5; border-radius: 9px; color: #283d33; padding: 10px 12px; min-width: 0; outline: none; transition: box-shadow .15s, border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: #668b71; box-shadow: 0 0 0 3px #7598691c; }
input::placeholder, textarea::placeholder { color: #9aa397; }
textarea { resize: vertical; line-height: 1.7; }
.auth-card input { margin-bottom: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 9px; padding: 10px 17px; font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; line-height: 1.5; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover:not(:disabled) { background: #163d32; }
.button.secondary { background: #edf2e9; color: #345740; border-color: #dbe5d5; }
.button.quiet { background: transparent; color: #60745f; }
.button.quiet:hover:not(:disabled) { background: #edf1e7; }
.button.danger { background: #fff5f2; color: var(--red); border-color: #f0dcd4; }
.button.small { padding: 6px 10px; font-size: 12px; }
.full-width { width: 100%; }
.error-text { font-size: 13px; color: var(--red); }
.notice { border: 1px solid #e8d8b2; border-radius: 10px; background: #fbf5e7; color: #7f632e; padding: 12px 15px; font-size: 13px; margin-bottom: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice.error { border-color: #ecd2cb; background: #fff3ed; color: #9f4d3c; }
.loading-state { padding: 100px 20px; text-align: center; color: var(--muted); }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 5px 0 28px; }
.workspace-heading h1 { font-size: 29px; margin-bottom: 7px; }
.workspace-heading .muted { font-size: 13px; margin: 0; }
.readiness { border: 1px solid var(--line); border-radius: 100px; padding: 8px 13px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; background: #fffefa; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ba88a; flex-shrink: 0; }
.readiness.ready .status-dot { background: #44805a; }
.readiness.pending .status-dot { background: #bd9142; }
.account-settings { margin-bottom: 25px; }
.account-settings > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 22px; cursor: pointer; font-size: 13px; font-weight: 550; }
.account-settings > summary:after { content: "＋"; font-weight: 400; color: #7b8b74; }
.account-settings[open] > summary:after { content: "−"; }
.account-settings > summary .muted { font-size: 12px; font-weight: 400; margin-left: auto; }
.settings-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 35px; border-top: 1px solid var(--line); padding: 24px; }
.settings-body p { font-size: 12px; line-height: 1.8; }
.settings-aside { padding-left: 30px; border-left: 1px solid var(--line); }
.config-list { font-size: 12px; margin: 18px 0; }
.config-list > div { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 5px; }
.config-list dt { color: var(--muted); width: 65px; flex-shrink: 0; }
.config-list dd { margin: 0; overflow-wrap: anywhere; }
.input-with-button { display: flex; gap: 8px; align-items: stretch; }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.settings-actions > .fineprint { width: 100%; margin-top: 3px; }
.source-status { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.source-chip { font-size: 11px; border-radius: 6px; background: #f0f3ec; padding: 5px 8px; color: #687763; }
.settings-aside section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.settings-aside input { margin-bottom: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.36fr) minmax(0,1fr); gap: 25px; align-items: start; }
.create-card, .tasks-card, .detail-card { padding: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; }
.mode-picker { display: flex; min-inline-size: 0; border: 1px solid var(--line); padding: 4px; background: #f1f3ec; border-radius: 10px; gap: 4px; margin: 0 0 20px; }
.mode-picker label { flex: 1; position: relative; text-align: center; cursor: pointer; margin: 0; font-size: 13px; }
.mode-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-picker span { display: block; border-radius: 7px; padding: 8px; color: #74816d; }
.mode-picker input:checked + span { background: #fffefa; color: var(--green); box-shadow: 0 1px 3px #263e3610; }
.mode-picker input:focus-visible + span { outline: 2px solid #668b71; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 17px; }
.optional { font-weight: 400; color: #8a9685; margin-left: 6px; font-size: 11px; }
.candidate-options { margin-top: 14px; }
.candidate-options > summary { font-size: 12px; color: #6a7c63; cursor: pointer; margin-bottom: 10px; }
.submit-row { margin-top: 24px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.submit-row .fineprint { width: 100%; margin-top: 1px; font-size: 11px; }
.label-with-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.7; }
.task-list { display: flex; flex-direction: column; gap: 8px; max-height: 570px; overflow-y: auto; }
.empty-copy { color: #84907f; font-size: 13px; text-align: center; padding: 56px 20px; margin: 0; line-height: 1.9; }
.task-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; text-align: left; color: inherit; width: 100%; cursor: pointer; }
.task-item:hover { border-color: #b9c9b2; }
.task-item.selected { background: #f1f5ec; border-color: #9bb38d; }
.task-item-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.task-item-platform { font-size: 11px; color: #7a8973; }
.task-item-title { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-item-bottom { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #8b9585; margin-top: 6px; }
.status-badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; background: #edf0e8; color: #728065; font-weight: 500; }
.status-badge.running, .status-badge.queued { background: #ecf2e5; color: #5d7950; }
.status-badge.completed { background: #e5efe4; color: #387048; }
.status-badge.partial { background: #faf0d9; color: #99752c; }
.status-badge.blocked, .status-badge.failed { background: #f8eae3; color: #a16c52; }
.detail-card { margin-top: 25px; }
.detail-requirements { font-size: 13px; color: #6c7a64; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 900px; }
.progress-steps { display: flex; margin: 23px 0 19px; gap: 6px; }
.progress-step { flex: 1; position: relative; padding-top: 11px; font-size: 11px; color: #9ba490; }
.progress-step:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #edf0e8; border-radius: 10px; }
.progress-step.done { color: #5f7f55; }
.progress-step.done:before { background: #8ba57b; }
.progress-step.active { color: var(--green); font-weight: 600; }
.progress-step.active:before { background: #365f45; }
.progress-message { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 9px; background: #f2f5ed; }
.progress-message > .status-dot { margin-top: 8px; }
.progress-message p { font-size: 13px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.counts-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 10px; margin: 20px 0; }
.count-box { border-right: 1px solid var(--line); padding: 0 18px; }
.count-box:first-child { padding-left: 0; }
.count-box:last-child { border: 0; }
.count-value { display: block; font-size: 23px; font-weight: 550; color: #3a5640; line-height: 1.3; }
.count-label { display: block; font-size: 11px; color: #87937e; margin-top: 5px; }
.detail-summary { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 16px; }
.detail-actions > .resume-cost-note { flex-basis: 100%; }
.skip-link { position: absolute; top: -60px; left: 20px; padding: 8px 15px; background: var(--green); color: #fff; z-index: 100; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
footer { max-width: 1240px; margin: 0 auto; padding: 0 0 28px; font-size: 11px; color: #9aa38f; display: flex; gap: 10px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #668b71; outline-offset: 3px; }
@media (min-width: 1400px) { main { padding-top: 48px; } }
@media (max-width: 1310px) {
  main, footer { margin-left: 35px; margin-right: 35px; }
  .auth-layout { padding: 15px 25px; gap: 65px; }
}
@media (max-width: 900px) {
  .site-header { padding: 20px 25px; }
  main, footer { margin-left: 25px; margin-right: 25px; }
  .auth-layout { gap: 35px; padding: 10px 0; grid-template-columns: 1fr 1fr; }
  .welcome-copy h1 { font-size: 29px; }
  .auth-card { padding: 25px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h1 { font-size: 25px; }
  .readiness { margin-top: 10px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .task-list { max-height: 360px; }
  .settings-body { gap: 20px; }
  .settings-aside { padding-left: 20px; }
  .input-with-button { flex-direction: column; }
  .input-with-button .button { align-self: flex-start; }
}
@media (max-width: 620px) {
  .site-header { padding: 16px 18px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .brand-caption { font-size: 10px; }
  .header-right { gap: 6px; font-size: 11px; }
  .pilot-badge { padding: 4px 8px; font-size: 10px; }
  main { padding-top: 25px; margin-left: 16px; margin-right: 16px; }
  footer { margin-left: 18px; margin-right: 18px; font-size: 10px; }
  .auth-layout { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .welcome-copy h1 { font-size: 28px; }
  .welcome-copy .lead { font-size: 14px; }
  .welcome-steps, .welcome-copy > .fineprint { display: none; }
  .auth-card { padding: 25px; }
  .workspace-heading { display: block; margin-bottom: 20px; }
  .workspace-heading h1 { font-size: 25px; }
  .workspace-heading .muted { font-size: 12px; }
  .readiness { display: inline-flex; margin-top: 17px; }
  .account-settings > summary { padding: 14px 16px; gap: 8px; }
  .account-settings > summary .muted { font-size: 10px; }
  .settings-body { grid-template-columns: 1fr; padding: 18px; }
  .settings-aside { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .create-card, .tasks-card, .detail-card { padding: 20px; }
  .section-heading h2 { font-size: 20px; }
  .soft-badge { font-size: 10px; padding: 4px 8px; }
  .field-row { gap: 12px; }
  .counts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 20px; }
  .count-box { padding: 0 12px; }
  .count-box:nth-child(odd) { padding-left: 0; }
  .count-box:nth-child(2n) { border-right: 0; }
  .progress-step { font-size: 10px; }
  .input-with-button { flex-direction: column; }
  .input-with-button > .button, .submit-row > .primary { width: 100%; }
  .label-with-action { gap: 0; }
  .label-with-action > .small { font-size: 10px; padding: 5px; }
  .label-with-action > label { font-size: 12px; }
  .config-list > div { gap: 9px; }
  .detail-actions > .button { flex: 1; }
  .welcome-copy .eyebrow { margin-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; } }

.youtube-data-settings-body { padding: 14px 22px 20px; border-top: 1px solid var(--line); }
