:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #21232d;
  --muted: #747b89;
  --line: #e7eaf0;
  --accent: #4f56db;
  --accent-hover: #4148c6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100%, 760px); margin: 0 auto; padding: 58px 28px 40px; }
header { margin-bottom: 30px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; font-weight: 650; letter-spacing: -.7px; line-height: 1.35; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.intro { margin-top: 9px; color: var(--muted); font-size: 15px; }
button, input, textarea { font: inherit; }
button { min-height: 44px; border-radius: 9px; padding: 9px 18px; font-size: 15px; font-weight: 550; cursor: pointer; border: 1px solid transparent; }
button:disabled { cursor: default; opacity: .48; }
button:not(:disabled):active { transform: translateY(1px); }
.primary { color: #fff; background: var(--accent); }
.primary:not(:disabled):hover { background: var(--accent-hover); }
.secondary { color: var(--ink); border-color: var(--line); background: #fff; padding: 7px 13px; }
.secondary:hover { background: var(--page); }
.quiet { padding: 4px 0; color: var(--accent); background: transparent; text-align: left; }
button:focus-visible, a:focus-visible, summary:focus-visible, .transcript:focus-visible { outline: 3px solid #86aafa; outline-offset: 3px; }
label { display: block; font-weight: 550; font-size: 15px; margin-bottom: 10px; }
textarea, input { border: 1px solid #cbd3dc; background: white; color: var(--ink); border-radius: 10px; }
textarea { display: block; width: 100%; padding: 16px; min-height: 156px; resize: vertical; line-height: 1.7; }
textarea::placeholder, input::placeholder { color: #88929d; }
textarea:focus, input:focus { outline: 3px solid #dce7ff; border-color: var(--accent); }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.hint { color: var(--muted); font-size: 13px; }
.review-toggle { display: flex; align-items: center; gap: 9px; margin: 16px 0 3px; font-size: 14px; cursor: pointer; }
.review-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.review-hint { font-size: 12px; color: var(--muted); line-height: 1.7; }
.error { color: #b53333; font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }
.error:empty { display: none; }
.service-state { color: var(--muted); font-size: 14px; margin-bottom: 16px; min-height: 22px; }
.service-state[data-state="ready"] { display: none; }
.service-state[data-state="unavailable"] { color: #a05221; }
#prepare-again, #reconnect-service { margin-top: -8px; margin-bottom: 16px; }
.queue-panel { padding: 12px 15px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
.queue-capacity { margin-top: 3px; color: var(--muted); font-size: 12px; }
.queue-panel[data-full="true"] { border-color: #e2c9a4; background: #fffaf2; }
.access-panel { border-left: 3px solid var(--accent); padding: 0 0 0 18px; margin-bottom: 30px; }
.access-panel p { font-size: 14px; color: var(--muted); margin: 5px 0 12px; }
.access-row { display: flex; gap: 10px; }
.access-row input { flex: 1; min-width: 0; padding: 10px 12px; }
.access-panel .error { color: #b53333; }
.activity { width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid #cfdcf5; border-top-color: var(--accent); border-radius: 50%; animation: turn 1s linear infinite; }
.activity[data-active="false"] { animation: none; border: 0; background: #778391; width: 7px; height: 7px; flex-basis: 7px; margin: 0 3px; }
.elapsed { color: var(--muted); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
.job-message { margin-top: 8px; color: var(--muted); font-size: 14px; }
.job-message:empty { display: none; }
.batch-panel { margin-top: 30px; }
.batch-panel > h2 { margin-bottom: 14px; font-size: 18px; }
.batch-stats { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.batch-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.select-all { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.select-all input, .job-select input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.job-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); border-top: 1px solid var(--line); }
.job-select { padding-top: 20px; margin: 0; cursor: pointer; }
.job-select input:disabled { opacity: .35; cursor: default; }
.job-card { min-width: 0; }
.job-summary { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 19px 0; list-style: none; }
.job-summary::-webkit-details-marker { display: none; }
.job-summary::after { content: '+'; color: var(--muted); width: 14px; text-align: center; }
.job-card[open] > .job-summary::after { content: '−'; }
.job-label { font-size: 15px; font-weight: 550; }
.job-content { padding: 0 0 24px; }
.job-content .job-message { margin: 0 0 12px; }
.job-content .result-actions { margin-top: 14px; flex-wrap: wrap; }
.copy-field { position: fixed; left: -9999px; top: 0; }
.progress-area { flex-basis: 100%; width: 100%; display: flex; flex-direction: column; gap: 3px; margin-top: 2px; order: 2; }
.stage-progress { width: 100%; height: 7px; display: block; accent-color: var(--accent); }
.progress-label { font-size: 12px; color: var(--muted); text-align: right; }
.stage-list { display: flex; flex-wrap: wrap; gap: 7px 14px; list-style: none; padding: 0; margin: 0 0 16px; color: #939ca6; font-size: 12px; }
.stage-list .done { color: #546575; }
.stage-list .current { color: var(--accent); font-weight: 600; }
.review-report { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 16px; }
.review-report h3 { font-size: 15px; margin: 0 0 5px; }
.review-note { font-size: 13px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.review-item { margin-top: 13px; font-size: 14px; }
.review-item summary { cursor: pointer; color: #8c5820; padding: 5px 0; }
.review-item p { margin-top: 7px; overflow-wrap: anywhere; }
.result-actions { display: flex; gap: 8px; }
.video-title { font-size: 15px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.result-meta { color: var(--muted); font-size: 13px; margin-top: 5px; }
.transcript { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 22px; margin-top: 16px; line-height: 1.9; font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.text-editor { margin-top: 16px; }
.text-editor label { margin-bottom: 6px; }
.text-editor textarea { min-height: 230px; font-size: 16px; }
.text-editor .hint { margin: 8px 0; max-width: none; }
.generated-original summary { color: var(--muted); }
.warnings { padding-left: 21px; color: #95601f; font-size: 14px; margin: 16px 0 0; }
.warnings li + li { margin-top: 7px; }
.source-link { display: inline-block; color: var(--accent); font-size: 14px; margin-top: 14px; text-underline-offset: 3px; }
.action-message { color: var(--muted); font-size: 14px; margin-top: 8px; }
dialog { width: min(400px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgb(20 28 40 / .35); }
dialog p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
dialog input { width: 100%; padding: 10px 12px; }
dialog .error { color: #b53333; margin-bottom: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.duplicate-actions { flex-wrap: wrap; }
#copy-dialog { width: min(660px, calc(100% - 40px)); }
#copy-text { min-height: 220px; max-height: 50vh; }
footer { margin-top: 30px; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; border: 0; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  main { padding: 30px 20px 28px; }
  header { margin-bottom: 26px; }
  h1 { font-size: 27px; }
  .intro { font-size: 14px; }
  textarea { padding: 13px; min-height: 164px; }
  .submit-row { gap: 10px; }
  .hint { font-size: 12px; }
  .submit-row .hint { max-width: 170px; }
  #extract-button { white-space: nowrap; }
  .result-actions { gap: 6px; }
  .result-actions button { padding: 7px 11px; font-size: 14px; }
  .batch-tools .result-actions { flex-basis: 100%; flex-wrap: wrap; }
  .batch-panel > .hint { max-width: none; }
  .transcript { padding: 17px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .activity { animation: none; }
  button:not(:disabled):active { transform: none; }
}

:root { --soft: #f8f9fc; --radius: 16px; }
body { background: #fff; }
main { width: min(100%, 868px); padding: 0 24px 36px; }
button { min-height: 44px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: background .15s; }
.primary { box-shadow: 0 2px 5px rgb(79 86 219 / .1); }
.secondary { color: #505665; border-color: var(--line); }
.secondary:hover { background: var(--soft); }
a { color: var(--accent); text-underline-offset: 3px; }
.site-nav { width: min(100%, 1080px); min-height: 80px; padding: 24px 28px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.hero { margin: 24px 0 34px; text-align: center; }
.hero h1 { font-size: clamp(32px, 4vw, 40px); line-height: 1.4; letter-spacing: -1.3px; font-weight: 650; }
.hero h1 span { white-space: nowrap; }
.hero .intro { margin-top: 10px; font-size: 16px; }
#extract-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 22px rgb(31 38 64 / .035); }
#extract-form > label { font-size: 15px; margin-bottom: 12px; }
#share-text { min-height: 124px; padding: 15px 18px; font-size: 15px; line-height: 1.8; border-color: #dce0e9; border-radius: 8px; }
textarea:focus, input:focus { outline: 3px solid rgb(79 86 219 / .1); border-color: var(--accent); }
.submit-row { margin-top: 16px; gap: 20px; }
.platforms { font-size: 14px; color: var(--muted); }
#extract-button { min-width: 150px; min-height: 46px; font-size: 16px; }
.queue-panel { border: 0; border-radius: 0; padding: 0; margin: 22px 0 16px; font-size: 14px; color: var(--muted); background: transparent; }
.queue-panel summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.queue-panel summary::-webkit-details-marker { display: none; }
.queue-panel summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid #9198a6; border-bottom: 1px solid #9198a6; transform: rotate(45deg); margin-bottom: 3px; }
.queue-panel[open] summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.queue-capacity { font-size: 13px; margin-top: 8px; }
.queue-panel[data-full="true"] { background: #fffaf2; padding: 12px; border-radius: 8px; }
.profile-panel { padding: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-panel > summary, .review-item > summary, .account-records > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.profile-panel > summary::-webkit-details-marker, .review-item > summary::-webkit-details-marker, .account-records > summary::-webkit-details-marker { display: none; }
.profile-panel > summary::after, .review-item > summary::after, .account-records > summary::after { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-right: 1px solid #9198a6; border-bottom: 1px solid #9198a6; transform: rotate(45deg); margin: 0 3px 4px; }
.profile-panel[open] > summary::after, .review-item[open] > summary::after, .account-records[open] > summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.profile-panel > summary { padding: 20px 0; font-size: 15px; }
.profile-panel[open] { padding-bottom: 20px; }
.profile-panel > .hint { margin-bottom: 16px; }
.profile-panel .result-actions { flex-wrap: wrap; margin: 15px 0; }
.profile-panel .access-row { align-items: center; }
.profile-panel .access-row label { margin: 0 10px 0 0; white-space: nowrap; }
.profile-panel .access-row select { width: auto; }
.help-details { margin-top: 12px; color: var(--muted); font-size: 13px; }
.help-details > summary { list-style: none; cursor: pointer; padding: 11px 0; }
.help-details > summary::-webkit-details-marker { display: none; }
.help-details > summary::after { content: '+'; margin-left: 10px; color: #9198a6; }
.help-details[open] > summary::after { content: '−'; }
.help-details p { line-height: 1.8; margin: 6px 0 10px; }
.workspace-help { margin-top: 4px; }
.workspace-help p { max-width: 690px; }
.stack-form { display: grid; gap: 9px; }
.stack-form label { font-size: 14px; font-weight: 500; margin: 7px 0 0; }
.stack-form input, .access-row input, .profile-panel input, select { min-width: 0; width: 100%; padding: 11px 13px; min-height: 44px; border: 1px solid #dce0e9; border-radius: 8px; font: inherit; background: #fff; }
.stack-form input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--accent); vertical-align: middle; margin: 0 8px 0 0; }
.account-bar { position: relative; z-index: 10; padding: 0; margin: 0; border: 0; }
.account-menu > summary { cursor: pointer; padding: 8px 0; list-style: none; min-height: 40px; font-size: 15px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 1px solid #9198a6; border-bottom: 1px solid #9198a6; transform: rotate(45deg); margin: 0 2px 3px 9px; }
.account-sheet { position: absolute; top: calc(100% + 7px); right: 0; width: 355px; max-width: calc(100vw - 40px); max-height: min(76vh, 700px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 35px rgb(33 35 45 / .1); }
#account-who { font-size: 17px; font-weight: 600; }
#account-balance { font-size: 13px; margin: 5px 0 12px; }
.account-sheet > .result-actions { flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.account-sheet .quiet, .account-sheet a { font-size: 14px; }
.account-sheet a { text-decoration: none; }
.account-records { border-top: 1px solid var(--line); font-size: 14px; }
.account-records > summary { padding: 14px 0; }
.account-records > .result-actions { margin: 15px 0; }
.account-list { max-height: 280px; overflow: auto; }
.account-list p, .account-list button { display: block; margin: 9px 0; overflow-wrap: anywhere; }
.account-list button { width: 100%; text-align: left; white-space: pre-line; line-height: 1.8; }
.access-panel { width: min(100%, 380px); border: 0; padding: 0; margin: 58px auto 80px; }
.access-panel h2 { font-size: 26px; }
.access-panel > p { font-size: 15px; color: var(--muted); margin: 10px 0 28px; }
.access-panel .stack-form input, .access-panel button.primary { min-height: 48px; }
.access-panel button.primary { margin-top: 14px; }
.account-tabs { margin-top: 15px; flex-wrap: wrap; justify-content: space-between; }
.recovery-notice { white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f2ff; padding: 16px; border-radius: 8px; font-size: 14px; line-height: 1.8; }
body[data-authenticated="false"] .hero, body[data-authenticated="false"] .workspace-help { display: none; }
#profile-list { max-height: 480px; overflow: auto; margin-top: 10px; }
.profile-item { display: flex; gap: 12px; padding: 15px 0; align-items: flex-start; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 400; }
.profile-item input { width: 18px; height: 18px; min-height: 18px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.profile-item span { overflow-wrap: anywhere; }
.profile-identity { min-width: 0; flex: 1; }
.profile-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-duration { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.profile-panel h3 { font-size: 18px; margin: 20px 0 7px; }
.batch-panel { margin-top: 30px; }
.batch-panel > h2 { margin-bottom: 16px; font-size: 24px; font-weight: 600; }
.batch-stats { font-size: 14px; }
.batch-panel[data-single="true"] > .batch-stats { display: none; }
.batch-tools { padding: 14px 0; border: 0; border-radius: 0; }
.batch-tools > .result-actions { margin-left: auto; }
.job-row { grid-template-columns: 30px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin: 16px 0; }
.batch-panel[data-single="true"] .job-row { display: block; }
.batch-panel[data-single="true"] .job-select { display: none; }
.job-summary { padding: 16px 0; border-bottom: 1px solid var(--line); }
.job-card:not([open]) > .job-summary { border-bottom: 0; }
.job-label { font-size: 14px; font-weight: 500; color: var(--muted); min-width: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-row[data-status="complete"] .activity { background: #51856f; }
.batch-panel[data-single="true"] .job-row[data-status="complete"] .job-summary { display: none; }
.elapsed { font-size: 13px; }
.job-content { padding: 20px 0; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.result-identity { min-width: 0; flex: 1; }
.video-title { font-size: 17px; font-weight: 600; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-meta { font-size: 13px; margin-top: 5px; }
.job-content .result-heading > .result-actions { flex-wrap: nowrap; margin: 0; gap: 8px; }
.source-link + .job-message:not(:empty) { margin: 10px 0 0; font-size: 13px; }
.result-heading .result-actions button { font-size: 14px; padding: 8px 12px; white-space: nowrap; }
.result-more { position: relative; }
.result-more > summary { cursor: pointer; padding: 9px 11px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: #505665; list-style: none; white-space: nowrap; }
.result-more > summary::-webkit-details-marker { display: none; }
.result-more > summary::after { content: ''; display: inline-block; width: 5px; height: 5px; border-right: 1px solid #9198a6; border-bottom: 1px solid #9198a6; transform: rotate(45deg); margin: 0 1px 3px 7px; }
.more-actions { position: absolute; z-index: 5; right: 0; top: calc(100% + 7px); min-width: 156px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 26px rgb(33 35 45 / .1); }
.result-heading .more-actions button { width: 100%; border: 0; background: #fff; text-align: left; min-height: 42px; color: #505665; }
.result-heading .more-actions button:not(:disabled):hover { background: var(--soft); }
.transcript { border: 0; border-radius: 0; padding: 0; margin-top: 22px; font-size: 17px; line-height: 1.95; background: #fff; }
.review-item { margin: 0; border-top: 1px solid var(--line); font-size: 14px; }
.review-item > summary { padding: 15px 0; color: var(--muted); }
.transcript + .review-item { margin-top: 23px; }
.raw-transcript { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.source-link { color: #646c7a; font-size: 14px; margin-top: 15px; }
.source-link::after { content: ' ↗'; }
.timeline-list { max-height: 420px; overflow: auto; padding: 0; list-style: none; }
.timeline-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.timeline-list time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.text-editor textarea { font-size: 16px; line-height: 1.9; min-height: 250px; }
footer { text-align: center; margin-top: 44px; font-size: 12px; color: #9097a4; }
.admin-main { width: min(100%, 1160px); padding: 32px 28px; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.admin-heading h1 { font-size: 34px; }
.admin-heading .intro { font-size: 15px; }
.admin-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 23px 0; margin: 20px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-stat { display: flex; flex-direction: column-reverse; gap: 7px; padding: 0 14px; border-left: 1px solid var(--line); min-width: 0; }
.admin-stat:first-child { border-left: 0; padding-left: 0; }
.admin-stat strong { font-size: 24px; font-weight: 600; white-space: nowrap; }
.admin-stat span { font-size: 13px; color: var(--muted); }
.admin-section { margin: 0 0 25px; padding: 0; border: 0; background: #fff; }
.admin-section h2 { font-size: 21px; margin-bottom: 15px; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.admin-section-heading h2 { margin-bottom: 0; }
.admin-empty { color: var(--muted); font-size: 14px; padding: 16px 0; }
.stack-form input:disabled, .stack-form select:disabled { color: #9298a5; background: var(--soft); }
.admin-invitations { border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.admin-invitations > .hint { margin-top: 12px; }
.invite-result-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.invite-result-actions .recovery-notice { flex: 1; }
.invite-result-actions button { flex-shrink: 0; }
#new-user-dialog { width: min(440px, calc(100% - 40px)); }
#new-user-dialog .stack-form button { margin-top: 12px; }
.admin-section .hint { font-size: 13px; }
.admin-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 26px; }
.admin-forms > .admin-section + .admin-section { border-left: 1px solid var(--line); padding-left: 32px; }
.admin-section .stack-form { grid-template-columns: 118px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.admin-section .stack-form label { font-size: 13px; margin: 0; }
.admin-section .stack-form button[type=submit] { grid-column: 1 / -1; }
.admin-invitations .stack-form { grid-template-columns: 110px minmax(70px, 130px) auto; justify-content: start; }
.admin-invitations .stack-form button[type=submit] { grid-column: auto; }
.admin-permissions { border-bottom: 1px solid var(--line); margin: 0; padding: 0 18px; }
.admin-permissions > summary, .admin-log > summary { cursor: pointer; font-size: 14px; padding: 15px 0; }
.admin-permissions .stack-form { grid-template-columns: 190px minmax(0, 1fr); max-width: 720px; padding-bottom: 20px; }
.permission-switch { grid-column: 1 / -1; }
.admin-log { border-bottom: 1px solid var(--line); margin: 0; padding: 0 18px; }
.admin-log:first-of-type { border-top: 1px solid var(--line); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
th { background: var(--soft); font-weight: 500; color: #656d7c; }
.admin-section select, .admin-section input { max-width: 100%; }
.admin-feedback { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .result-heading { flex-direction: column; gap: 14px; }
  .job-content .result-heading > .result-actions { width: 100%; }
  .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 0; }
  .admin-stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .admin-forms { grid-template-columns: 1fr; gap: 0; }
  .admin-forms > .admin-section + .admin-section { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
  .admin-heading { flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .site-nav { min-height: 72px; padding: 18px 22px; }
  .brand { font-size: 17px; }
  .account-menu > summary { font-size: 14px; }
  main { padding: 0 22px 28px; }
  .hero { margin: 18px 0 30px; }
  .hero h1 { font-size: 32px; max-width: 250px; margin: 0 auto; letter-spacing: -.8px; }
  .hero h1 span { display: block; }
  .hero .intro { font-size: 15px; margin-top: 12px; }
  #extract-form { padding: 18px; border-radius: 14px; }
  #share-text { min-height: 154px; padding: 13px; font-size: 14px; }
  .platforms { font-size: 13px; }
  #extract-button { min-width: 130px; min-height: 46px; padding: 10px 18px; font-size: 15px; }
  .queue-panel { font-size: 13px; margin: 20px 0 15px; }
  .profile-panel > summary { font-size: 14px; padding: 19px 0; }
  .access-row { flex-wrap: wrap; }
  .access-row input { flex: 1 1 150px; }
  .access-panel { margin: 36px auto 60px; }
  .account-sheet { max-width: calc(100vw - 44px); padding: 18px; }
  .batch-panel > h2 { font-size: 23px; }
  .job-row { padding: 0 16px; }
  .result-meta { font-size: 12px; }
  .result-heading .copy-action, .result-heading .edit-action { flex: 1; }
  .result-heading .result-more > summary { min-width: 75px; text-align: center; }
  .transcript { font-size: 16px; line-height: 1.95; }
  .timeline-list li { grid-template-columns: 1fr; gap: 3px; }
  .admin-main { padding: 24px 22px; }
  .admin-heading h1 { font-size: 29px; }
  .admin-section .stack-form, .admin-permissions .stack-form { grid-template-columns: 1fr; gap: 9px; }
  .admin-invitations .stack-form { grid-template-columns: 1fr 100px; }
  .admin-invitations .stack-form button[type=submit] { grid-column: 1 / -1; }
  .invite-result-actions { flex-direction: column; align-items: stretch; }
  .admin-section .stack-form label { margin-top: 6px; }
  .admin-stat { padding: 0 10px; }
  .admin-stat strong { font-size: 19px; }
  .admin-stat span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

#ranking-admin > details { padding: 14px 0; border-top: 1px solid #e3e7e5; }
#ranking-admin summary { cursor: pointer; font-weight: 600; }
#ranking-admin form { margin-top: 14px; }
#ranking-setting-groups > details { padding: 12px 0; }
#ranking-admin .ranking-fields, #ranking-admin .ranking-metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-top: 12px; }
#ranking-admin .ranking-fields label, #ranking-admin .ranking-metrics-grid label { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
#ranking-admin input, #ranking-admin textarea { width: 100%; min-width: 0; box-sizing: border-box; }
#ranking-admin .permission-switch input { width: auto; }
#ranking-version-summary, #ranking-metrics-source { overflow-wrap: anywhere; }
#ranking-inspection { margin-top: 20px; }
@media (max-width: 600px) { #ranking-admin .ranking-fields, #ranking-admin .ranking-metrics-grid { grid-template-columns: 1fr; } }

:root { --page:#f1f0e8; --ink:#23231e; --muted:#777a78; --line:#e3e5de; --accent:#23231e; --accent-hover:#3a3c35; --soft:#f6f6f1; --lavender:#e8e7f1; --sage:#e9eee9; }
body { background:var(--page); }
.icon { width:20px; height:20px; flex:0 0 20px; vertical-align:middle; }
.brand-symbol { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:white; background:#23231e; }
.brand-symbol .icon { width:22px; height:22px; }
.primary { background:#23231e; border-color:#23231e; }
.primary:not(:disabled):hover { background:#3a3c35; box-shadow:0 3px 9px rgb(35 35 30/.08); }
.secondary:not(:disabled):hover { background:#f6f6f1; border-color:#cccec7; }
button, .button-link { transition:background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.button-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:9px; padding:9px 18px; text-decoration:none; font-size:15px; font-weight:550; }
.workspace-sidebar { position:fixed; inset:0 auto 0 0; width:224px; background:#fff; border-right:1px solid var(--line); padding:22px 12px; display:flex; flex-direction:column; z-index:40; }
.workspace-brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-size:18px; font-weight:650; text-decoration:none; padding:0 12px; min-height:42px; white-space:nowrap; }
.workspace-navigation { display:grid; gap:7px; margin-top:36px; }
.workspace-navigation a, .sidebar-bottom a { display:flex; align-items:center; gap:14px; padding:14px 17px; color:var(--ink); text-decoration:none; font-size:15px; border-radius:10px; min-height:48px; transition:background .18s; }
.workspace-navigation a:hover { background:#f6f6f1; }
.workspace-navigation a[aria-current=page] { background:var(--lavender); font-weight:600; }
.workspace-navigation .icon { width:19px; height:19px; flex-basis:19px; }
.nav-divider { border-top:1px solid var(--line); margin:13px 14px; }
.sidebar-bottom { margin-top:auto; padding-top:32px; }
.sidebar-bottom a:hover { background:var(--soft); }
.sidebar-bottom > span { display:block; color:var(--muted); font-size:12px; padding:11px 17px 0; }
.workspace-topbar { position:sticky; top:0; width:calc(100% - 224px); max-width:none; margin:0 0 0 224px; min-height:76px; padding:16px 36px; background:rgb(255 255 255/.94); border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:24px; z-index:30; backdrop-filter:blur(15px); }
.workspace-breadcrumb { display:flex; align-items:center; gap:12px; color:#62665e; font-size:14px; }
.workspace-top-actions { display:flex; align-items:center; gap:20px; }
.workspace-top-actions > button { display:inline-flex; align-items:center; gap:8px; font-size:13px; min-height:40px; padding:8px 12px; }
.workspace-top-actions > a { display:flex; align-items:center; gap:8px; color:var(--ink); font-size:14px; text-decoration:none; }
.workspace-top-actions > a .icon { width:18px; height:18px; flex-basis:18px; }
.dashboard .account-menu > summary { display:flex; align-items:center; gap:9px; font-size:14px; }
.account-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#9299b6; color:white; font-size:13px; }
#account-header-name { max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-main { width:calc(100% - 224px); max-width:1300px; padding:44px clamp(28px,4vw,66px) 64px; margin:0 0 0 224px; }
.dashboard .workspace-heading { margin:0 0 32px; text-align:left; padding:0; }
.dashboard .workspace-heading h1 { max-width:none; font-size:32px; letter-spacing:-.7px; line-height:1.45; margin:0; }
.dashboard .workspace-heading .intro { font-size:15px; line-height:1.8; margin-top:8px; }
.dashboard #workspace-toast { position:fixed;right:24px;top:88px;z-index:85;max-width:min(360px,calc(100vw - 32px));margin:0;padding:11px 15px;border:1px solid #e2e8df;border-radius:12px;background:rgb(255 255 255/.95);box-shadow:0 6px 24px #173c3612;font-size:13px;line-height:1.6;pointer-events:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px); }
.workspace-toast:empty { display:none; }
.view-panel { background:#fff; border-radius:12px; padding:24px; margin-bottom:30px; border:1px solid rgb(228 230 222/.45); }
.view-panel h2 { font-size:20px; font-weight:600; line-height:1.5; }
.dashboard #extract-form { border:0; padding:0; box-shadow:none; background:transparent; }
.dashboard #extract-form > label { font-size:14px; margin-bottom:10px; }
.dashboard #share-text { min-height:174px; padding:16px; border-color:#e0e3dc; border-radius:9px; font-size:15px; background:#fff; }
.dashboard .submit-row { margin-top:20px; }
.input-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--muted); align-items:center; }
.dashboard #extract-button { min-height:46px; min-width:132px; border-radius:9px; font-size:15px; }
.dashboard .queue-panel { padding:16px 0 0; margin:0; border:0; font-size:13px; }
.dashboard .queue-capacity { font-size:12px; }
.dashboard #input-error, .dashboard #input-notice { margin-top:14px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.section-heading > a { display:flex; align-items:center; gap:5px; color:#565b52; font-size:13px; text-decoration:none; }
.section-heading > a .icon { width:16px; height:16px; flex-basis:16px; }
.history-filters { display:flex; gap:12px; margin-bottom:20px; align-items:center; }
.history-filters input { flex:1; min-width:0; width:100%; border-color:var(--line); min-height:44px; padding:10px 13px; font-size:14px; }
.history-filters select { width:138px; font-size:14px; }
.dashboard[data-view=video] .history-filters { display:none; }
.dashboard[data-view=history] #history-all { display:none; }
.workspace-records { width:100%; overflow-x:auto; }
.history-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible}
.history-card-grid>.records-empty{grid-column:1/-1}
.history-card{display:flex;align-items:center;gap:6px;min-width:0;padding:12px 8px 12px 12px;border:1px solid #e4e9e1;border-radius:14px;background:#fff}
.history-card-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none;border-radius:5px}
.history-card-open:focus-visible{outline:2px solid #76a98f;outline-offset:4px}
.history-card .video-cover{width:44px;height:58px;flex:0 0 44px;border-radius:8px}
.history-card-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.history-card-title{font-size:14px;font-weight:550;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.history-card-meta{display:flex;align-items:center;min-width:0;color:#809084;font-size:12px;line-height:1.5;white-space:nowrap}
.history-card-author{overflow:hidden;text-overflow:ellipsis}
.history-card-duration{flex:none}
.dashboard .history-card-actions{display:flex;align-items:center;gap:0;flex:none}
.dashboard .history-card-actions>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:7px;border:0;border-radius:9px;box-shadow:none;background:transparent;color:#8a9986}
.dashboard .history-card-actions>button:not(:disabled):hover{background:#f3f6f0;color:#456d56}
.dashboard .history-card-actions .record-delete:not(:disabled):hover{background:#fbf0ec;color:#a06555}
.history-card-actions .icon{width:20px;height:20px;flex-basis:20px}
.history-card-actions [aria-busy=true] .icon{animation:history-retry-spin 1s linear infinite}
@keyframes history-retry-spin{to{transform:rotate(360deg)}}
@media(max-width:860px){.history-card-grid{grid-template-columns:1fr;gap:10px}.history-card{padding:10px 5px 10px 10px}.history-card .video-cover{width:40px;height:54px;flex-basis:40px}.history-card-open{gap:9px}.history-card-title{font-size:13px}.history-card-meta{font-size:11px}.dashboard .history-card-actions>button{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}.dashboard #workspace-toast{top:76px;right:16px}}
@media(prefers-reduced-motion:reduce){.history-card-actions [aria-busy=true] .icon{animation:none}}
.records-table { border-collapse:collapse; width:100%; table-layout:auto; font-size:14px; }
.records-table th { text-align:left; color:#6f756d; font-size:12px; font-weight:500; padding:11px 14px; background:#f6f6f3; border:0; }
.records-table th:first-child { border-radius:8px 0 0 8px; }
.records-table th:last-child { border-radius:0 8px 8px 0; }
.records-table td { padding:19px 14px; white-space:normal; vertical-align:middle; border-bottom:1px solid #eceee8; }
.records-table tr:last-child td { border-bottom:0; }
.video-record { display:flex; align-items:center; gap:14px; min-width:230px; max-width:550px; }
.video-cover { display:grid; place-items:center; position:relative; flex:0 0 52px; width:52px; height:68px; border-radius:7px; background:#eaece5; overflow:hidden; color:#949d8e; }
.video-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video-cover .icon { width:22px; height:22px; }
.video-record-words { min-width:0; }
.record-title { background:transparent; border:0; padding:0; min-height:0; font-size:14px; font-weight:500; text-align:left; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; border-radius:2px; }
.record-title:hover { color:#4d5e42; }
.video-record { color:var(--ink); text-decoration:none; border-radius:6px; }
.video-record:hover .record-title { color:#4d5e42; }
.video-record:focus-visible, .record-open:focus-visible { outline:2px solid #808c75; outline-offset:4px; }
.record-meta { font-size:12px; color:#838a7f; margin-top:6px; }
.status-label { font-size:12px; display:inline-flex; align-items:center; padding:4px 9px; border-radius:6px; white-space:nowrap; background:#edf0e9; color:#576b4c; }
.status-label[data-state=failed], .status-label[data-state=interrupted] { color:#965244; background:#fbf0ec; }
.status-label[data-state=queued], .status-label[data-state=running] { color:#656885; background:#efeff8; }
.record-date { color:#838a7f; font-size:12px; min-width:96px; }
.record-actions { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.record-actions { flex-direction:row; align-items:center; gap:12px; }
.record-actions button { min-height:27px; padding:2px 0; background:transparent; border:0; color:#59674f; font-size:12px; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.record-actions .icon { width:14px; height:14px; flex-basis:14px; }
.record-open { display:inline-flex; align-items:center; color:#59674f; text-decoration:none; font-size:12px; min-height:27px; }
.record-open:hover { text-decoration:underline; }
.record-actions button, .record-open { color:#60685a; font-size:13px; font-weight:400; min-height:36px; }
.record-delete { justify-content:center; min-width:36px; border-radius:7px!important; }
.record-delete:not(:disabled):hover { background:#f7eeeb; color:#a06555; }
.input-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px; }
.input-heading label { margin:0; font-size:14px; }
.input-heading button { padding:5px 9px; min-height:36px; font-size:13px; color:#858c7d; }
.mobile-tabs, .extraction-tabs { display:none; }
.batch-mode-tabs { display:flex; gap:8px; padding:5px; border-radius:11px; background:#f1f2eb; margin-bottom:26px; }
.batch-mode-tabs a { flex:1; min-height:44px; display:flex; align-items:center; justify-content:center; color:#848c79; font-size:14px; text-decoration:none; border-radius:8px; }
.batch-mode-tabs a[aria-current=page] { color:#333a2d; background:#fff; box-shadow:0 1px 5px rgb(35 40 29/.05); }
.history-loading { display:flex; align-items:center; gap:9px; color:#808973; font-size:13px; padding:6px 0 14px; }
button[aria-busy=true]::after { content:''; display:inline-block; vertical-align:middle; width:13px; height:13px; margin-left:9px; border:1.5px solid currentColor; border-right-color:transparent; border-radius:50%; animation:ui-spin .85s linear infinite; }
.record-actions button[aria-busy=true] { position:relative; }
.record-actions button[aria-busy=true] > .icon { opacity:0; }
.record-actions button[aria-busy=true]::after { position:absolute; left:0; margin:0; }
.record-actions .record-delete[aria-busy=true]::after { left:calc(50% - 6.5px); }
@keyframes ui-spin { to { transform:rotate(360deg); } }
.records-empty { padding:28px 16px; color:#959b90; font-size:14px; text-align:center; }
.records-empty .icon { display:block; margin:0 auto 12px; width:25px; height:25px; }
.dashboard .profile-panel { padding:24px; border:1px solid rgb(228 230 222/.45); margin-bottom:30px; }
.profile-panel > h2 { margin-bottom:22px; }
.profile-panel .stack-form label { font-size:14px; }
.profile-panel .access-row { margin:12px 0 0; }
.profile-panel .access-row select { font-size:14px; width:120px; }
.profile-panel .access-row button { margin-left:auto; min-width:130px; }
#profile-input-state:empty { display:none; }
.profile-activity { display:flex; align-items:center; gap:9px; padding:18px 0 3px; color:#5e6757; font-size:14px; }
.profile-activity time { margin-left:auto; font-variant-numeric:tabular-nums; color:#8b9184; }
#profile-status { line-height:1.8; font-size:14px; margin-top:15px; }
#profile-results { margin-top:32px; }
#profile-author { font-size:22px; margin:0 0 6px; }
#profile-results > label { margin:22px 0 9px; font-size:14px; }
#profile-results > .result-actions { gap:10px; align-items:center; }
#profile-extract { margin-left:auto; }
#profile-selected { margin:12px 0 20px; font-size:13px; }
#profile-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; overflow:visible; max-height:none; }
.dashboard .profile-item { display:flex; flex-direction:column; gap:0; position:relative; padding:0; border:1px solid #e4e7df; border-radius:10px; overflow:hidden; cursor:pointer; font-weight:400; transition:border-color .18s,box-shadow .18s; }
.profile-item:hover { border-color:#afb6a7; }
.profile-item[data-selected=true] { border-color:#5f6b52; box-shadow:0 0 0 2px #d6dfce; }
.dashboard .profile-item > input { position:absolute; z-index:2; left:12px; top:12px; width:19px; height:19px; margin:0; accent-color:#424c38; }
.profile-item .video-cover { width:100%; height:auto; aspect-ratio:4/3; border-radius:0; flex-basis:auto; background:#eef0e9; }
.profile-item .video-cover .icon { width:30px; height:30px; opacity:.45; }
.profile-item .profile-identity { display:block; padding:14px 14px 16px; width:100%; }
.profile-item .profile-title { font-size:14px; line-height:1.7; min-height:46px; -webkit-line-clamp:2; color:#383d33; }
.profile-item .profile-duration { font-size:12px; color:#969c8f; margin-top:8px; }
#profile-more { display:block; margin:24px auto 0; }
.dashboard:not([data-view=video]):not([data-view=profile]):not([data-view=collection]) .workspace-help, .dashboard:not([data-view=video]) #batch-panel { display:none; }
.dashboard .batch-panel { scroll-margin-top:100px; background:#fff; border-radius:12px; border:1px solid rgb(228 230 222/.45); padding:24px; margin-top:30px; }
.dashboard .batch-panel > h2 { font-size:21px; }
.dashboard .transcript { background:#fff; }
.dashboard .job-row { border-color:#e6e9df; }
.dashboard .timeline-list time { color:#909882; }
.dashboard .workspace-footer { color:#9a9e93; margin-top:45px; }
.batch-activity { margin-top:20px; border-top:1px solid var(--line); padding-top:16px; }
.batch-activity > summary { cursor:pointer; color:#62695a; font-size:13px; padding:5px 0; }
.dashboard #batch-home-slot .batch-panel { padding:8px 0 0; margin:0; border:0; border-radius:0; background:transparent; }
#batch-home-slot #batch-title, #batch-home-slot .job-content { display:none; }
#batch-home-slot .job-summary { cursor:default; padding:14px 0; }
#batch-home-slot .job-summary::after { display:none; }
#batch-home-slot .job-label { overflow-wrap:anywhere; }
.job-open { display:inline-flex; align-items:center; min-height:38px; font-size:13px; color:#586d49; text-decoration:none; margin-left:auto; }
.dashboard[data-view=detail] .job-open { display:none; }
.result-metadata { display:grid; grid-template-columns:1fr 1fr; gap:24px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; margin:0 0 28px; }
.metadata-field { min-width:0; }
.metadata-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:9px; font-size:13px; color:#77816c; }
.metadata-heading button { padding:6px 10px; min-height:36px; font-size:12px; background:#f5f6ef; }
.metadata-text { font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.credit-overview { display:grid; grid-template-columns:1fr 1fr; gap:40px; border-bottom:1px solid var(--line); padding:8px 0 30px; margin-bottom:34px; }
.credit-overview > div > span { display:block; font-size:14px; color:#8a9280; }
.credit-overview > div > strong { display:block; font-size:52px; font-weight:600; margin:5px 0 8px; }
.quota-breakdown { align-self:center; font-size:14px; line-height:1.9; }
.quota-breakdown:empty { display:none; }
.quota-breakdown p + p { margin-top:5px; }
.minute-plans { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.minute-plan { padding:22px 18px; border:1px solid var(--line); border-radius:12px; background:#f9faf6; }
.plan-name { display:block; color:#727968; font-size:13px; }
.plan-price { display:block; font-size:36px; font-weight:550; margin:16px 0 8px; }
.plan-minutes { font-size:17px; font-weight:500; margin-bottom:7px; }
.minute-plan button { margin-top:22px; width:100%; min-height:44px; font-size:13px; padding:9px 6px; }
.plan-rules { font-size:13px; color:#858c7d; line-height:1.9; margin:0 0 32px; }
#plan-dialog { width:min(440px,calc(100% - 32px)); padding:28px; }
#plan-dialog h2 { font-size:22px; margin-bottom:16px; }
#plan-dialog-description { line-height:1.9; margin-bottom:12px; }
#plan-dialog .result-actions { flex-wrap:wrap; margin-top:24px; }
.credit-calculator { display:flex; flex-direction:column; justify-content:center; }
.credit-calculator label { display:flex; justify-content:space-between; font-size:14px; }
.credit-calculator output { color:#89917f; font-weight:400; }
.credit-calculator input { width:100%; accent-color:#5f7151; border:0; margin:5px 0 16px; }
.credit-calculator p { font-size:14px; color:#78816e; }
.credit-calculator strong { font-size:22px; color:#4b5841; }
.credits-columns { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:40px; }
.credits-columns h2 { margin-bottom:20px; }
.credits-columns p { font-size:14px; line-height:1.9; margin-top:12px; }
.credits-columns .access-row { margin:0; }
.credits-columns .access-row button { white-space:nowrap; }
.ledger-row { display:grid; grid-template-columns:105px 1fr 70px 100px; align-items:center; gap:20px; padding:18px 6px; border-bottom:1px solid var(--line); font-size:13px; }
.ledger-note { color:#8a9182; }
.ledger-row strong { color:#576b47; font-size:15px; text-align:right; }
.agent-intro { display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; border-bottom:1px solid var(--line); padding:10px 0 36px; margin-bottom:30px; }
.agent-intro p { font-size:14px; line-height:1.9; color:#8a8e83; margin:12px 0 22px; }
.agent-intro .result-actions { flex-wrap:wrap; }
.agent-terminal { background:#24271f; border-radius:10px; padding:28px; display:grid; gap:22px; color:#ced1c6; font:13px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace; }
.api-key-form { display:flex; gap:12px; margin-bottom:16px; }
.api-key-form input { flex:1; min-width:0; padding:10px 13px; font-size:14px; border-color:var(--line); }
.key-once { background:#efeff6; border-radius:9px; padding:18px; margin:20px 0; }
.key-once p { font-size:13px; margin-bottom:12px; color:#7c7f87; }
.key-once code { display:block; overflow-wrap:anywhere; font-size:13px; line-height:1.8; margin-bottom:14px; }
.key-row { display:flex; align-items:center; flex-wrap:wrap; gap:18px; padding:17px 4px; border-bottom:1px solid var(--line); font-size:14px; }
.key-row > button { margin-left:auto; font-size:13px; min-height:36px; }
.key-row > strong { font-weight:500; }
.api-documentation { margin-top:32px; border-top:1px solid var(--line); padding-top:20px; }
.api-documentation > summary { cursor:pointer; font-size:17px; font-weight:600; padding:8px 0; }
.api-documentation > p { font-size:14px; line-height:1.9; color:#808773; margin:14px 0; }
.api-steps { display:grid; grid-template-columns:max-content 1fr; gap:14px 24px; font-size:13px; margin:24px 0; }
.api-steps span { color:#87917c; }
.api-documentation pre { padding:20px; border-radius:9px; background:#f4f5ef; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace; }
.icon-button { display:none; padding:9px; min-height:40px; color:#3f4539; background:transparent; }
.sidebar-backdrop { position:fixed; inset:0; width:100%; height:100%; background:rgb(21 25 17/.24); border:0; border-radius:0; z-index:35; }
.dashboard #account-panel { margin:50px auto 80px; padding:30px; width:min(100%,420px); background:white; border-radius:12px; }
.admin-main { background:white; margin-top:26px; border-radius:12px; }
@media (min-width:1540px) { .workspace-main { margin-left:calc(224px + (100vw - 224px - 1300px)/2); } }
@media (max-width:1150px) {
 .minute-plans { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .workspace-topbar { padding:15px 26px; }
 .workspace-top-actions { gap:14px; }
 .workspace-top-actions > button span { display:none; }
 .workspace-main { padding:36px 26px 60px; }
 .record-date { display:none; }
 .records-table th:nth-child(3) { display:none; }
 #profile-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .agent-intro { grid-template-columns:1fr; gap:24px; }
}
@media (max-width:860px) {
 .mobile-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; z-index:32; background:rgb(255 255 255/.97); border-top:1px solid var(--line); padding:7px 18px calc(7px + env(safe-area-inset-bottom)); backdrop-filter:blur(15px); }
 .extraction-tabs { display:flex; align-items:center; gap:7px; margin:-6px 0 24px; }
 .extraction-tabs a { flex:1; display:flex; align-items:center; justify-content:center; min-height:44px; font-size:13px; text-decoration:none; color:#828a78; border-radius:9px; }
 .extraction-tabs a[aria-current=page] { background:#e7e8df; color:#33392e; }
 .mobile-tabs a { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; min-height:48px; border-radius:10px; color:#929889; text-decoration:none; font-size:11px; }
 .mobile-tabs .icon { width:19px; height:19px; flex-basis:19px; }
 .mobile-tabs a[aria-current=page] { color:#353a30; background:#eeefe8; }
 .workspace-sidebar { visibility:hidden; transform:translateX(-100%); transition:transform .22s ease,visibility 0s linear .22s; }
 body[data-menu-open=true] .workspace-sidebar { visibility:visible; transform:translateX(0); transition:transform .22s ease; }
 .workspace-topbar { width:100%; margin-left:0; min-height:66px; padding:12px 20px; }
 .workspace-main { width:100%; margin:0; padding:32px 22px calc(100px + env(safe-area-inset-bottom)); max-width:none; }
 .icon-button { display:inline-grid; place-items:center; }
 .workspace-top-actions > button { display:none; }
 .workspace-top-actions { gap:16px; }
 .credit-overview, .credits-columns { gap:26px; }
}
@media (max-width:520px) {
 .minute-plans { gap:12px; }
 .minute-plan { padding:20px 14px; }
 .plan-price { font-size:32px; }
 .minute-plan button { font-size:12px; }
 .workspace-topbar { gap:10px; padding:11px 14px; }
 .workspace-breadcrumb { gap:6px; font-size:13px; }
 .workspace-top-actions { gap:12px; }
 .workspace-top-actions > a { font-size:12px; gap:5px; }
 .workspace-top-actions > a .icon { display:none; }
 .account-avatar { width:28px; height:28px; font-size:12px; }
 .dashboard .account-menu > summary { font-size:12px; gap:6px; }
 #account-header-name { max-width:75px; }
 .dashboard .account-menu > summary::after { margin-left:2px; }
 .workspace-main { padding:26px 18px calc(100px + env(safe-area-inset-bottom)); }
 .dashboard .workspace-heading { margin-bottom:24px; }
 .dashboard .workspace-heading h1 { font-size:28px; text-align:left; }
 .dashboard .workspace-heading .intro { font-size:14px; }
 .view-panel, .dashboard .profile-panel, .dashboard .batch-panel { padding:18px; margin-bottom:22px; }
 .dashboard #share-text { min-height:128px; font-size:16px; }
 .dashboard .submit-row { margin-top:16px; gap:12px; }
 .input-meta { flex-direction:column; align-items:flex-start; gap:3px; font-size:12px; }
 .dashboard #extract-button { min-width:112px; font-size:14px; }
 .section-heading > h2 { font-size:18px; }
 .video-record { gap:11px; min-width:0; }
 .record-title { font-size:13px; -webkit-line-clamp:2; }
 .record-meta { font-size:11px; }
 .video-cover { width:42px; height:57px; flex-basis:42px; }
 .records-table { display:block; }
 .records-table thead { display:none; }
 .records-table tbody { display:block; }
 .records-table tr { display:grid; grid-template-columns:1fr auto; gap:12px 10px; padding:18px 0; border-bottom:1px solid var(--line); }
 .records-table tr:last-child { border-bottom:0; }
 .records-table td { padding:0; border:0; }
 .records-table td:first-child { grid-column:1/-1; }
 .records-table td:nth-child(2) { align-self:center; padding-left:0; }
 .status-label { max-width:84px; overflow:hidden; text-overflow:ellipsis; }
 .record-actions { flex-direction:row; gap:8px; }
 .record-actions button, .record-open { font-size:12px; min-height:44px; }
 .dashboard[data-view=video] .records-table tr { padding:15px 0; gap:8px 10px; }
 .dashboard[data-view=video] .workspace-footer { margin-top:24px; }
 .result-metadata { grid-template-columns:1fr; gap:18px; padding:18px 0; margin-bottom:22px; }
 .metadata-heading button { min-height:44px; }
 .history-filters { flex-wrap:wrap; gap:9px; }
 .history-filters input { flex-basis:100%; }
 .history-filters select { flex:1; }
 .dashboard .profile-panel .access-row { gap:8px; }
 .profile-panel .access-row select { width:90px; }
 .profile-panel .access-row label { font-size:13px; }
 .profile-panel .access-row button { min-width:120px; font-size:13px; }
 #profile-results > .result-actions { flex-wrap:wrap; }
 #profile-extract { width:100%; margin-left:0; }
 #profile-list { gap:12px; }
 .profile-item .profile-identity { padding:11px 10px 13px; }
 .profile-item .profile-title { font-size:12px; line-height:1.8; min-height:43px; }
 .profile-item .profile-duration { font-size:10px; }
 .dashboard .profile-item > input { width:16px; height:16px; left:9px; top:9px; }
 .profile-activity { font-size:12px; }
 .credit-overview { grid-template-columns:1fr; gap:27px; }
 .credit-overview > div > strong { font-size:42px; }
 .credits-columns { grid-template-columns:1fr; gap:30px; }
 .ledger-row { grid-template-columns:85px 1fr 52px; gap:10px; font-size:12px; }
 .ledger-row time { grid-column:2; }
 .agent-intro { gap:24px; }
 .agent-intro h2 { font-size:19px; }
 .api-key-form { flex-wrap:wrap; }
 .api-key-form input { min-width:170px; }
 .api-steps { grid-template-columns:1fr; gap:7px; }
 .api-steps span { margin-bottom:14px; }
 .dashboard #account-panel { padding:22px; margin-top:30px; }
}
@media (prefers-reduced-motion:reduce) { button,.workspace-navigation a,.workspace-sidebar,.profile-item { transition:none; } button[aria-busy=true]::after { animation:none; } }

/* 横向作品列表：封面与右侧内容共享一行，保留清晰的行间留白。 */
.dashboard #profile-list { display:flex; flex-direction:column; gap:0; }
.dashboard .profile-item { display:grid; grid-template-columns:128px minmax(0,1fr); gap:26px; padding:24px 0; border:0; border-bottom:1px solid #e6e8e0; border-radius:0; overflow:visible; }
.dashboard .profile-item:last-child { border-bottom:0; }
.dashboard .profile-item[data-selected=true] { background:#f7f8f2; box-shadow:none; border-color:#e2e6d8; }
.profile-choice { position:relative; display:block; margin:0!important; align-self:start; cursor:pointer; }
.profile-choice input { position:absolute; z-index:2; left:9px; top:9px; margin:0; accent-color:#4b5840; width:19px; height:19px; }
.dashboard .profile-item .video-cover { width:128px; height:150px; aspect-ratio:auto; border-radius:8px; }
.dashboard .profile-item .profile-identity { padding:0; min-width:0; }
.dashboard .profile-item .profile-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:0; font-size:16px; font-weight:550; line-height:1.75; }
.profile-excerpt { margin:15px 0 12px; font-size:14px; line-height:1.9; color:#6b7363; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-line; }
.profile-open { display:inline-flex; margin-top:9px; font-size:13px; color:#4a6040; text-decoration:none; padding:5px 0; }
.profile-open:hover { text-decoration:underline; }
.profile-pending { display:block; margin-top:14px; font-size:12px; color:#929a88; }
.video-cover[data-cover-state=loading] { background:linear-gradient(100deg,#eaece5 30%,#f6f7f0 50%,#eaece5 70%); background-size:200% 100%; animation:cover-shimmer 1.6s ease-in-out infinite; }
.cover-state { position:absolute; bottom:8px; left:4px; right:4px; text-align:center; font-size:10px; color:#8e9686; }
@keyframes cover-shimmer { to { background-position:-200% 0; } }
.result-body { display:grid; grid-template-columns:148px minmax(0,1fr); gap:27px; align-items:start; }
.result-document { min-width:0; }
.result-cover { position:sticky; top:110px; }
.result-cover .video-cover { width:100%; height:190px; border-radius:9px; }
.result-cover .video-cover .icon { width:28px; height:28px; }
.detail-link { display:inline-flex; align-items:center; text-decoration:none; font-size:14px; }
.task-back { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:#66745b; font-size:14px; padding:10px 0; }
.task-back .icon { transform:rotate(180deg); width:16px; }
#task-navigation { margin:-12px 0 22px; }
.dashboard[data-view=detail] #batch-panel { display:block; margin-top:0; padding:26px 30px 34px; }
.dashboard[data-view=detail] #batch-title, .dashboard[data-view=detail] #batch-stats, .dashboard[data-view=detail] .job-select, .dashboard[data-view=detail] .video-title { display:none; }
.dashboard[data-view=detail] .job-row { display:block; border:0; padding:0; }
.dashboard[data-view=detail] .job-card { border:0; }
.dashboard[data-view=detail] .job-card > summary { pointer-events:none; cursor:default; padding:0 0 13px; }
.dashboard[data-view=detail] .job-card > summary::after { display:none; }
.dashboard[data-view=detail] .job-content { padding:0; }
.dashboard[data-view=detail] .result-heading { margin-bottom:26px; align-items:center; }
.dashboard[data-view=detail] .result-body { grid-template-columns:190px minmax(0,1fr); gap:36px; }
.dashboard[data-view=detail] .result-cover .video-cover { height:246px; }
.dashboard[data-view=detail] .transcript { padding:0; max-height:none; overflow:visible; font-size:16px; line-height:2.05; }
.dashboard[data-view=detail] .workspace-help { display:none; }
@media (max-width:760px) {
 .dashboard .profile-item { grid-template-columns:96px minmax(0,1fr); gap:17px; padding:22px 0; }
 .dashboard .profile-item .video-cover { width:96px; height:124px; }
 .dashboard .profile-item .profile-title { font-size:14px; line-height:1.8; }
 .profile-excerpt { font-size:13px; line-height:1.9; margin-top:10px; }
 .profile-choice input { width:17px; height:17px; left:7px; top:7px; }
 .profile-item .profile-duration { font-size:11px; }
 .result-body { grid-template-columns:78px minmax(0,1fr); gap:16px; }
 .result-cover { position:static; }
 .result-cover .video-cover { height:105px; }
 .dashboard[data-view=detail] #batch-panel { padding:20px; }
 .dashboard[data-view=detail] .result-body { display:block; }
 .dashboard[data-view=detail] .result-body::after { content:''; display:block; clear:both; }
 .dashboard[data-view=detail] .result-cover { float:left; width:110px; margin:0 18px 16px 0; }
 .dashboard[data-view=detail] .result-body:has(.text-editor:not([hidden])) .result-cover { display:none; }
 .dashboard[data-view=detail] .result-cover .video-cover { width:110px; height:142px; }
 .dashboard[data-view=detail] .result-heading { flex-wrap:wrap; gap:13px; margin-bottom:22px; }
 .dashboard[data-view=detail] .transcript { font-size:15px; line-height:2; }
 .dashboard[data-view=detail] .workspace-heading h1 { font-size:25px; line-height:1.65; }
}
@media (prefers-reduced-motion:reduce) { .video-cover[data-cover-state=loading] { animation:none; } }

/* The fill experiment is independent of the layout and can be disabled. */
.input-progress-shell{--extract-progress:0;position:relative;isolation:isolate;overflow:hidden;border:1px solid #dde2da;border-radius:11px;background:#fff;transition:box-shadow .65s,filter .65s}
.input-progress-shell::before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,#deeee7,#d2ece5);transform:scaleX(var(--extract-progress));transform-origin:left;opacity:1;transition:transform .8s cubic-bezier(.22,.68,.25,1),opacity .6s ease;z-index:-1}
.dashboard .input-progress-shell textarea{display:block;background:transparent!important;border:0!important;box-shadow:none!important;margin:0;resize:vertical}
.dashboard .input-progress-shell textarea:focus{outline:none}
.dashboard #share-text{min-height:146px}
.input-actions{display:flex;justify-content:flex-end;padding:8px 16px 16px}
.input-progress-shell:focus-within{box-shadow:0 0 0 3px #e6e9ef}
.input-progress-shell[data-state=complete]{box-shadow:0 0 0 1px #cde5db,0 4px 20px #a8d6c524;filter:brightness(1.035)}
.input-progress-shell[data-state=settled]::before{opacity:0}
[data-progress-fill=off] .input-progress-shell::before{display:none}
[data-progress-fill=off] .input-progress-shell[data-state=complete]{box-shadow:none;filter:none}
.fill-preference{display:flex;align-items:center;gap:9px;margin:18px 0 4px;font-size:12px;color:#687265;cursor:pointer}
.fill-preference input{width:15px;height:15px;accent-color:#527c6a}
.dashboard #queue-panel{display:none!important}
#batch-home-slot #batch-stats,#batch-home-slot #batch-tools,#batch-home-slot #batch-feedback,#batch-home-slot .job-select{display:none!important}
#batch-home-slot .job-row{display:block;padding:0}
#batch-home-slot .job-card{border-color:#e6e8e0;border-radius:12px;transition:background .2s,border-color .2s,box-shadow .2s}
#batch-home-slot .job-card:hover{background:#fafcf9;border-color:#cdd9cd;box-shadow:0 4px 14px #364b3607}
#batch-home-slot .job-summary{display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;gap:16px;align-items:center;cursor:pointer;padding:16px;border-bottom:0}
#batch-home-slot .job-thumb{display:grid;place-items:center;width:56px;height:56px;grid-row:1}
#batch-home-slot .job-thumb>img{width:42px;height:34px;object-fit:contain}
#batch-home-slot .activity{display:none}
#batch-home-slot .job-label{font-size:14px;font-weight:550;line-height:1.5;color:#35483d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#batch-home-slot .elapsed{font-size:12px;white-space:nowrap;color:#929b91;margin:0;text-align:left}
#batch-home-slot .job-open{color:#507eb7;font-size:13px;font-weight:500;white-space:nowrap;text-decoration:none}
#batch-home-slot .progress-area{display:none}
.video-cover,.dashboard .profile-item .video-cover{aspect-ratio:1;width:56px;height:56px;flex-basis:56px}
.dashboard .profile-item .video-cover{width:128px;height:128px}
.job-thumb .video-cover{width:100%;height:100%;flex-basis:auto;border-radius:8px}
.brand-symbol{background:transparent!important;width:40px;height:40px;overflow:hidden;border-radius:0!important}
.brand-image{width:48px;height:48px;object-fit:contain;mix-blend-mode:multiply;transform:translateY(-.7px)}
.landing-brand,.brand{display:inline-flex;align-items:center;gap:12px}
.landing-brand .brand-image,.brand .brand-image{width:44px;height:44px}
.task-loading{min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;color:#8a9588;font-size:14px;letter-spacing:.03em}
.task-loading img{object-fit:contain}
.dashboard[data-view=detail] #workspace-title{display:none}
.dashboard[data-view=detail] .workspace-heading{margin:0 0 12px}
.dashboard[data-view=detail] .workspace-heading .intro{margin:0;font-size:13px}
.dashboard[data-view=detail] #task-navigation{margin:0 0 20px}
.dashboard[data-view=detail] .result-cover{position:static}
.dashboard[data-view=detail] .result-cover .video-cover{height:auto;aspect-ratio:auto;background:transparent}
.dashboard[data-view=detail] .result-cover .video-cover[data-cover-state=ready]>.icon{display:none}
.dashboard[data-view=detail] .result-cover .video-cover img{position:relative;display:block;width:100%;height:auto;object-fit:contain}
.dashboard[data-view=detail] .transcript{margin:0;padding:0;border:0;border-radius:0;line-height:2.05}
.dashboard[data-view=detail] .metadata-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.dashboard[data-view=detail] .result-body{align-items:start}
@media(max-width:760px){
 #batch-home-slot .job-summary{grid-template-columns:52px minmax(0,1fr) auto;column-gap:12px;row-gap:5px;padding:12px}
 #batch-home-slot .job-thumb{grid-row:1/3;width:52px;height:52px}
 #batch-home-slot .job-label{font-size:13px}
 #batch-home-slot .elapsed{grid-column:2;grid-row:2;font-size:11px}
 #batch-home-slot .job-open{grid-column:3;grid-row:1/3}
 .dashboard #share-text{min-height:130px}
 .input-actions{padding:8px 12px 12px}
 .video-cover{width:48px;height:48px;flex-basis:48px}
 .dashboard .profile-item .video-cover{width:96px;height:96px}
 .dashboard[data-view=detail] .result-cover{float:left;width:110px;margin:0 18px 16px 0}
 .dashboard[data-view=detail] .result-cover .video-cover{width:110px;height:auto;min-height:0}
 .dashboard[data-view=detail] .transcript{line-height:2}
}
@media(prefers-reduced-motion:reduce){.input-progress-shell,.input-progress-shell::before{transition:none}.job-card{transition:none}img[src*="logo-loader.svg"]{content:url('/assets/brand-mark.jpg')}}

/* Keep the full document and its controls in one detail card. */
.dashboard[data-view=detail] #workspace-hero{display:none}
.dashboard[data-view=detail] .workspace-main{padding-top:28px}
.task-detail-shell{background:#fff;border:1px solid #e5e8df;border-radius:16px;padding:24px}
.dashboard[data-view=detail] #task-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px}
.dashboard[data-view=detail] .task-back{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;background:#262923;color:#fff;border-radius:50%;font-size:0}
.dashboard[data-view=detail] .task-back .icon{width:17px;height:17px;flex-basis:17px}
#detail-actions-slot{min-width:0}
.detail-toolbar .result-actions{gap:6px;flex-wrap:nowrap}
.detail-toolbar .result-actions>button,.detail-toolbar .result-more>summary{min-height:36px;min-width:0;font-size:12px;padding:7px 8px;white-space:nowrap}
.dashboard[data-view=detail] #batch-panel{padding:0;border:0;margin:0;background:transparent}
.dashboard[data-view=detail] .result-heading{display:none}
.dashboard[data-view=detail] .job-row[data-status=complete] .job-summary{display:none}
.dashboard[data-view=detail] .job-row[data-status=complete] .job-message{display:none}
.dashboard[data-view=detail] .result-overview{--overview-size:190px;display:grid;grid-template-columns:var(--overview-size) minmax(0,1fr);gap:18px;margin-bottom:24px;align-items:start}
.dashboard[data-view=detail] .result-cover{position:static;float:none;width:var(--overview-size);height:var(--overview-size);margin:0}
.dashboard[data-view=detail] .result-cover .video-cover{width:100%;height:100%;aspect-ratio:1;background:#f5f6f0;border-radius:12px}
.dashboard[data-view=detail] .result-cover .video-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.dashboard[data-view=detail] .result-metadata{height:var(--overview-size);display:grid;grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;border:0;margin:0;padding:0}
.metadata-field{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:13px minmax(0,1fr);gap:3px 8px;min-height:0;border:1px solid #e5e8df;border-radius:11px;background:#f8f9f5;padding:6px;cursor:copy}
.metadata-label{grid-column:1;grid-row:1;align-self:center;color:#89917f;font-size:11px;line-height:13px}
.dashboard[data-view=detail] .metadata-text{grid-column:1/-1;grid-row:2;display:block;min-height:0;min-width:0;font-size:13px;line-height:1.55;overflow:auto;white-space:pre-wrap;margin:0;scrollbar-width:thin;overscroll-behavior:contain;-webkit-line-clamp:unset}
.metadata-copy{position:relative;grid-column:2;grid-row:1;justify-self:end;align-self:center;min-height:13px;height:13px;font-size:11px;font-weight:500;line-height:13px;padding:0;border:0;border-radius:3px;background:transparent;color:#5d6955}
.metadata-copy::after{content:'';position:absolute;inset:-5px -4px}
.metadata-copy:not(:disabled):hover{background:transparent;color:#35483d;text-decoration:underline;text-underline-offset:3px}
.metadata-copy:focus-visible{outline:2px solid #d5dfcc;outline-offset:3px}
.metadata-text:focus-visible{outline:2px solid #d5dfcc;outline-offset:1px}
.dashboard[data-view=detail] .result-body{display:block}
.dashboard[data-view=detail] .transcript{font-size:16px;line-height:1.95}
.recent-record{position:relative;border-bottom:1px solid #e9ece3}
.recent-record:last-child{border-bottom:0}
.recent-record-link{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:48px 22px;align-items:center;column-gap:12px;row-gap:8px;padding:16px 0;text-decoration:none;color:inherit;min-width:0}
.recent-record-link>.video-cover{width:48px;height:48px;flex-basis:48px}
.record-title{display:block;-webkit-line-clamp:unset;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.recent-record-link>.status-label{max-width:64px;font-size:10.5px;line-height:16px;padding:3px 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;justify-self:start;align-self:center}
.recent-record-link>.record-meta{margin:0;padding-right:42px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:22px}
.recent-delete{position:absolute;right:0;bottom:9px;display:grid;place-items:center;height:36px;min-height:36px;width:36px;padding:0;line-height:0;z-index:1;background:transparent}
.recent-delete::after{content:'';position:absolute;inset:-4px}
.recent-record-link:focus-visible{outline:2px solid #808c75;outline-offset:3px;border-radius:6px}
@media(max-width:760px){
 .dashboard[data-view=detail] .workspace-main{padding-top:20px}
 .task-detail-shell{padding:18px;border-radius:14px}
 .dashboard[data-view=detail] .result-overview{--overview-size:clamp(132px,calc(55vw - 39.6px),176px);gap:12px;margin-bottom:22px}
 .dashboard[data-view=detail] .metadata-text{font-size:12.5px;line-height:1.3}
 .dashboard[data-view=detail] .transcript{font-size:15px;line-height:1.95}
 .dashboard .input-progress-shell textarea{resize:none}
 .recent-record-link{padding:14px 0;row-gap:6px}
 .recent-delete{bottom:7px}
 .recent-record-link>.record-meta{font-size:11px}
}
@media(max-width:360px){
 .metadata-field{grid-template-rows:11px minmax(0,1fr)}
 .metadata-label{font-size:10px;line-height:11px}
 .metadata-copy{height:11px;min-height:11px;font-size:10px;line-height:11px}
 .dashboard[data-view=detail] .metadata-text{font-size:11.5px;line-height:1.45}
}

.motion-avatar{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;color:#191d18;flex-shrink:0;--motion-paper:#fff}
.motion-avatar svg{width:100%;height:100%;overflow:visible;pointer-events:none}
.motion-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;position:relative}
.motion-button-icon{width:28px;height:28px;color:inherit;--motion-paper:#24261f}
.secondary .motion-button-icon{--motion-paper:#fff}
.motion-button-label{white-space:nowrap}
.motion-button[aria-busy=true]::after{display:none}
.motion-button:not(:disabled):active{transform:scale(.98)}
.motion-notified{position:relative;animation:motion-confirm .8s ease-out}
.motion-notified::before{content:'';position:absolute;right:2px;top:1px;width:6px;height:6px;border-radius:50%;background:#20bdc9;box-shadow:0 0 0 3px #20bdc918;pointer-events:none;animation:motion-note .8s cubic-bezier(.2,.8,.2,1)}
.job-card.motion-notified::before{right:8px;top:8px}
.activity.motion-dots{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:24px;height:14px;flex:0 0 24px;padding:0;margin:0;border:0;border-radius:0;background:none;animation:none}
.motion-dot{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.55;animation:motion-dot 1.5s ease-in-out var(--dot-delay,0s) infinite}
.activity[data-active=false] .motion-dot{animation:none;opacity:.55}
.motion-thumb-placeholder.motion-dots{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:24px;height:14px;color:#627365}
.motion-thumb-placeholder[data-active=false] .motion-dot{animation:none;opacity:.4}
body[data-motion-paused=true] .motion-dot,body[data-motion-paused=true] .energy-trail path{animation-play-state:paused}
.demo-transmission .motion-avatar[data-motion-visible=false]+.energy-trail path{animation-play-state:paused}
.task-loading .motion-avatar{width:88px;height:88px}
.motion-brand{width:40px;height:40px;--motion-paper:#fff}
.workspace-brand{gap:8px;padding:0 12px}
.workspace-brand .motion-brand{width:36px;height:36px}
.landing-brand .motion-brand{--motion-paper:#fcfbf7}
.history-loading .motion-wait,.profile-activity .motion-wait{width:30px;height:30px;margin:-6px 0;flex:0 0 30px}
.job-thumb .motion-dots{color:#627365}
.dashboard[data-view=detail] .job-summary .activity.motion-dots{display:inline-flex}
.batch-mode-tabs{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px}
.batch-mode-tabs::before{content:'';position:absolute;z-index:-1;left:4px;top:4px;bottom:4px;width:calc((100% - 12px)/2);border-radius:8px;background:#e8ece2;transition:transform .2s cubic-bezier(.2,.7,.2,1)}
body[data-view=collection] .batch-mode-tabs::before{transform:translateX(calc(100% + 4px))}
.batch-mode-tabs a[aria-current=page]{background:transparent}
.hero-demo{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);gap:20px}
.demo-transmission{position:relative;align-self:center;display:grid;place-items:center;height:92px;width:72px;color:#1b201a}
.demo-transmission .motion-avatar{width:72px;height:72px;--motion-paper:#f1f0e8}
.energy-trail{position:absolute;left:-16px;top:38px;width:104px;height:20px;overflow:visible;pointer-events:none}
.energy-trail path{fill:none;stroke:#52bbb6;stroke-width:1.2;stroke-linecap:round;stroke-dasharray:9 80;opacity:.5;animation:motion-energy 2.8s linear infinite}
@keyframes motion-dot{0%,50%,100%{transform:scale(1);opacity:.55}25%{transform:scale(1.55);opacity:1}}
@keyframes motion-note{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.14)}75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
@keyframes motion-confirm{0%,100%{box-shadow:none}35%{box-shadow:0 0 0 2px #7cc6b81a}}
@keyframes motion-energy{from{stroke-dashoffset:80}to{stroke-dashoffset:-9}}
@media(max-width:760px){.hero-demo{grid-template-columns:1fr;gap:14px}.demo-transmission{justify-self:center;width:72px;height:62px}.demo-transmission .motion-avatar{width:58px;height:58px}.energy-trail{transform:rotate(90deg);left:-16px;top:21px}.motion-button-icon{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.motion-dot,.motion-notified,.motion-notified::before,.energy-trail path{animation:none}.batch-mode-tabs::before{transition:none}.motion-notified::before{opacity:1}.energy-trail path{stroke-dasharray:none}}

/* Creative workbench: paper, forest ink, one confident action. */
.dashboard{--page:#f5f5ee;--ink:#172f29;--muted:#848d87;--line:#e3e8e1;--accent:#17483e;--accent-hover:#205b4d;--soft:#f4f7f2;--lavender:#e3eee7;--sage:#e3eee7;background:var(--page);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.dashboard .primary{background:var(--accent);border-color:var(--accent);border-radius:12px;font-weight:600;box-shadow:0 2px 5px #173c3610}
.dashboard .primary:not(:disabled):hover{background:var(--accent-hover);border-color:var(--accent-hover);box-shadow:0 5px 14px #17483e1a}
.dashboard .primary:not(:disabled):active{transform:scale(.975)}
.dashboard .secondary,.dashboard input:not([type=checkbox]),.dashboard select{border-color:#d8e1d8;border-radius:10px}
.dashboard :is(button,a,input,select,textarea):focus-visible{outline:2px solid #4a8c76;outline-offset:3px}
.dashboard .workspace-sidebar{width:216px;padding:24px 12px;background:#ffffffc9;backdrop-filter:blur(16px)}
.dashboard .workspace-brand{font-size:16px;padding:0 10px;gap:8px;letter-spacing:-.2px}
.dashboard .workspace-brand .motion-brand{width:36px;height:36px}
.dashboard .workspace-navigation{margin-top:32px;gap:6px}
.dashboard .workspace-navigation a{font-size:14px;min-height:48px;padding:13px 15px;border-radius:11px;gap:13px}
.dashboard .workspace-navigation a[aria-current=page]{background:#e3eee7;color:#17483e}
.dashboard .nav-divider{margin:17px 13px}
.dashboard .workspace-topbar{width:calc(100% - 216px);margin-left:216px;min-height:76px;padding:16px 34px;background:#ffffffb8;border-color:#e3e8e1}
.dashboard .account-avatar{width:32px;height:32px;background:#17483e;color:#fff}
.dashboard .workspace-main{width:calc(100% - 216px);max-width:1180px;margin-left:216px;padding:40px clamp(28px,4vw,64px) 64px}
.dashboard .workspace-heading{margin:0 0 27px}
.dashboard .workspace-heading h1{font-size:clamp(36px,4.2vw,58px);letter-spacing:-1.8px;line-height:1.28;font-weight:720;color:#1b2e27}
.dashboard .workspace-heading .headline-accent{color:#17483e}
.dashboard .workspace-heading .intro{font-size:15px;margin-top:12px;line-height:1.7;color:#848b85}
.dashboard .view-panel{border-radius:16px;padding:26px;border:1px solid #ffffffc9;box-shadow:0 10px 32px #213d3004;margin-bottom:22px}
.dashboard .input-heading{margin-bottom:15px;align-items:center}
.dashboard .input-heading label{font-size:14px;font-weight:620;color:#233b31}
.dashboard .input-heading .quiet{font-size:12px;font-weight:400;color:#879188;padding:3px 0}
.dashboard #input-error:empty,.dashboard #input-notice:empty{display:none}
.dashboard .input-progress-shell{border-color:#dbe3da;border-radius:12px;box-shadow:none}
.dashboard .input-progress-shell:focus-within{box-shadow:0 0 0 3px #80af961a;border-color:#94b6a2}
.dashboard #share-text{font-size:15px;line-height:1.75;padding:17px 18px;min-height:134px;color:#233d31}
.dashboard #share-text::placeholder{color:#929c96}
.dashboard .input-actions{padding:6px 14px 14px}
.dashboard #extract-button{min-height:48px;padding:9px 18px;font-size:14px;gap:9px}
.dashboard .motion-button-icon{width:34px;height:34px;--motion-paper:#17483e}
.dashboard .input-progress-shell::before{background:linear-gradient(105deg,#edf5ed,#d9ecdf)}
.dashboard .history-panel .section-heading{margin-bottom:12px}
.dashboard #history-loading:not([hidden])~#workspace-history-list .records-empty{display:none}
.dashboard .section-heading h2{font-size:19px;color:#223c31;letter-spacing:-.2px}
.dashboard #history-all{font-size:12px;color:#356b57}
.dashboard .recent-record{padding:0;gap:0;border-color:#ebeee8}
.dashboard .recent-record-link{column-gap:14px;grid-template-columns:56px minmax(0,1fr);grid-template-rows:56px 18px;row-gap:5px;padding:12px 0}
.dashboard .recent-delete{bottom:3px}
.dashboard .recent-record .video-cover{width:56px;height:56px;border-radius:9px}
.dashboard .recent-record .record-title{font-size:14px;font-weight:550;line-height:1.5}
.dashboard .recent-record .record-meta{font-size:12px;color:#90978f}
.dashboard .recent-record .status-label{font-size:10px;border-radius:99px;background:#e7f1e9;color:#46745c;padding:3px 7px;line-height:1.4}
.dashboard .record-delete{color:#8b948e}
.dashboard .records-table{font-size:13px}
.dashboard .records-table thead{color:#889389}
.dashboard .records-table th{background:#f6f8f3;font-weight:500}
.dashboard .workspace-footer{font-size:10px;color:#9ba598;margin:28px 0 0}
.dashboard .profile-panel{padding:0;border:0;background:transparent;box-shadow:none}
.dashboard .batch-mode-tabs{border:1px solid #dce4db;border-radius:12px;background:transparent;padding:3px;gap:2px;margin:0 0 18px}
.dashboard .batch-mode-tabs::before{left:3px;top:3px;bottom:3px;width:calc((100% - 8px)/2);border-radius:9px;background:#17483e;transition:transform .28s cubic-bezier(.22,.7,.18,1)}
.dashboard[data-view=collection] .batch-mode-tabs::before{transform:translateX(calc(100% + 2px))}
.dashboard .batch-mode-tabs a{min-height:42px;font-size:14px;font-weight:550;color:#7f8c80;background:transparent;transition:color .2s}
.dashboard .batch-mode-tabs a[aria-current=page]{color:#fff;background:transparent}
.dashboard #profile-form{background:#fff;border-radius:16px;padding:23px;gap:12px;border:1px solid #ffffffd9;box-shadow:0 8px 22px #243f3104}
.dashboard #profile-form .input-heading{margin-bottom:0}
.dashboard #profile-form .input-heading label{margin:0}
.dashboard #profile-url-label{font-weight:600;color:#2d4435;font-size:14px}
.dashboard #profile-url{min-height:46px;font-size:14px;background:#fff;padding:11px 14px}
.dashboard #profile-form .access-row{display:grid;grid-template-columns:112px 1fr;gap:8px 16px;align-items:end;margin-top:3px}
.dashboard #profile-form .access-row>label{grid-column:1;font-size:12px;color:#818c80;margin:0}
.dashboard #profile-limit{grid-column:1;grid-row:2;height:44px;min-width:0;width:100%;font-size:14px;background:#fff}
.dashboard #profile-load{grid-column:2;grid-row:2;justify-self:end;min-width:124px;min-height:46px;font-size:14px}
.dashboard #profile-input-state:empty,.dashboard #profile-status:empty{display:none}
.dashboard .profile-activity{gap:11px;background:#e8f0e7;border-radius:11px;padding:14px 18px;margin-top:12px;font-size:13px;color:#4d7159;min-height:48px}
.dashboard .profile-activity .motion-wait{width:34px;height:34px;flex-basis:34px;margin:-5px 0;--motion-paper:#e8f0e7}
.dashboard #profile-results{margin-top:18px}
.dashboard .profile-result-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:14px;background:#e5eee4;padding:18px 20px}
.dashboard #profile-author{font-size:17px;font-weight:650;color:#17483e;margin:0;line-height:1.5}
.dashboard #profile-notice{font-size:11px;color:#8b9687;line-height:1.5;margin:4px 0 0}
.dashboard #profile-filter{width:170px;min-height:38px;font-size:12px;border-color:#d5dfd2;background:#ffffffb8;margin:0}
.dashboard .profile-selection-controls{display:flex;gap:14px;padding:13px 5px 8px}
.dashboard .profile-selection-controls button{font-size:11px;color:#6d856b;padding:4px 0;min-height:28px}
.dashboard #profile-list{display:grid;grid-template-columns:1fr;background:#fff;border-radius:14px;padding:0 19px;gap:0}
.dashboard .profile-item{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center;padding:14px 0;border:0;border-bottom:1px solid #e8ede5;border-radius:0;background:transparent;box-shadow:none}
.dashboard .profile-item:last-child{border-bottom:0}
.dashboard .profile-choice{display:flex;align-items:center;gap:12px;width:auto;margin:0;padding:0;min-height:64px}
.dashboard .profile-choice input{position:static;flex:0 0 17px;width:17px;height:17px;margin:0;accent-color:#17483e}
.dashboard .profile-item .video-cover{width:64px;height:64px;flex-basis:64px;border-radius:10px}
.dashboard .profile-title{font-size:14px;font-weight:550;line-height:1.5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard .profile-duration,.dashboard .profile-pending{font-size:11px;color:#8f9a8b;margin-top:5px;line-height:1.5}
.dashboard .profile-excerpt{font-size:12px;color:#748070;margin-top:5px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dashboard .profile-open{font-size:11px;color:#327359}
.dashboard .profile-selection-bar{position:sticky;bottom:12px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:14px 18px;border:1px solid #e1e9de;border-radius:14px;background:#ffffffed;box-shadow:0 8px 30px #1c423c0a;backdrop-filter:blur(16px)}
.dashboard #profile-selected{font-size:14px;color:#17483e;margin:0;line-height:1.5;font-weight:550;flex:1;min-width:0}
.dashboard #profile-extract{width:auto;min-height:44px;font-size:13px;padding:10px 16px;flex-shrink:0}
.dashboard .help-details{margin:16px 5px 0;border:0;padding:0;font-size:11px;color:#889783}
.dashboard .help-details summary{font-size:11px;padding:0}
.dashboard #account-email-binding{margin:12px 0;border:1px solid #d7e5d8;border-radius:10px;background:#f4f9f4;color:#17483e;font-size:13px}
.dashboard #account-email-binding>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px 12px;font-size:14px;font-weight:600}
.dashboard #account-email-binding[open]{padding:0 12px 12px}
.dashboard #account-email-binding[open]>summary{margin:0 -12px 12px;border-bottom:1px solid #d7e5d8}
.account-provider-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.account-provider-options .secondary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;font-size:14px}
.login-coming-soon{font-size:12px;color:var(--muted);font-weight:400}
#account-email-change-form{margin-top:12px}
#account-change-new-step{padding:0;border:0}
#account-email-change-form input[readonly]{background:#f0f4f0;color:#52645a}
#account-phone-form button:disabled,.account-provider-options button:disabled{opacity:.65;cursor:not-allowed}

/* Authentication lives outside the workbench shell so its layout stays quiet. */
:is(.wenti-auth,.account-security-dialog,.account-records-dialog,#account-center){--field-focus-border:#202925}
:is(.wenti-auth,.account-security-dialog,.account-records-dialog,#account-center) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select):is(:focus,:focus-visible){outline:0!important;box-shadow:none!important;border-color:var(--field-focus-border)!important}
#account-panel.wenti-auth{position:fixed;inset:0;z-index:500;display:grid;grid-template-columns:31.25% 1fr;width:100%;height:100dvh;max-width:none;margin:0;padding:0;border:0;border-radius:0;overflow:auto;background:#fff;color:#18211e;font-family:var(--font-body,Arial,sans-serif)}
#account-panel.wenti-auth[hidden]{display:none!important}
.wenti-auth *{box-sizing:border-box}
.wenti-auth a{text-decoration:none;color:inherit}
.auth-story{position:sticky;top:0;display:flex;flex-direction:column;justify-content:center;height:100dvh;min-height:640px;overflow:hidden;padding:60px 12%;color:#fff;background:radial-gradient(ellipse at 8% 1%,#9dbabf 0,transparent 53%),radial-gradient(ellipse at 130% 28%,#496b70 0,transparent 57%),linear-gradient(155deg,#537d83 0%,#173936 57%,#071916 100%)}
.auth-story::before{content:"";position:absolute;inset:20% -55% -35% -65%;pointer-events:none;transform:rotate(-24deg);background:linear-gradient(116deg,transparent 23%,#a0b5b315 38%,transparent 46%,#102b2a30 58%,#8daba61a 66%,transparent 74%);filter:blur(22px)}
.auth-story-brand{position:absolute;top:48px;left:12%;display:flex;align-items:center;gap:12px}
.auth-story-brand img{width:38px;height:38px;filter:brightness(0) invert(1)}
.auth-story-brand>span{font-size:25px;font-weight:650;line-height:1.2;letter-spacing:1px}
.auth-story-brand small{display:block;font-size:9px;letter-spacing:2.5px;font-weight:500;margin-top:4px}
.auth-story-copy{position:relative;z-index:1}
.auth-story-eyebrow{font-size:10px;letter-spacing:2.1px;color:#dbe8e3a6}
.auth-story-copy h1{font-size:clamp(29px,2.2vw,44px);line-height:1.48;font-weight:500;letter-spacing:-1px;margin:22px 0 20px;white-space:nowrap;color:#fff}
.auth-story-copy p{font-size:14px;line-height:1.9;font-weight:400;color:#dce8e5;margin:0 0 38px}
.auth-story-link{display:inline-flex;align-items:center;gap:22px;background:#fff;color:#19352d!important;padding:12px 20px;border-radius:24px;font-size:13px;transition:background .15s}
.auth-story-link:hover{background:#e7f0e8}
.auth-story-foot{position:absolute;bottom:36px;left:12%;font-size:11px;letter-spacing:1px;color:#c5d6d17a}
.auth-surface{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:100dvh;padding:72px 44px 26px;background:#fff}
.auth-layout{display:grid;grid-template-columns:336px 240px;gap:0 32px;align-items:start;justify-content:center;width:100%;margin:auto}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:10px;grid-column:1/-1;margin:0 0 48px;color:#142f27!important}
.auth-brand img{width:44px;height:44px}
.auth-brand>span{font-size:34px;line-height:1.04;font-weight:700;letter-spacing:1px}
.auth-brand small{display:block;font-size:9px;font-weight:500;letter-spacing:3.4px;margin-top:7px;color:#799184}
.auth-form-box{width:336px;min-width:0}
.auth-heading:not(.sr-only){font-size:17px;font-weight:500;text-align:center;line-height:1.6;margin:0 0 10px}
.wenti-auth .auth-form{display:grid;gap:20px;width:100%;margin:0}
.wenti-auth input{width:100%;height:48px;min-height:48px;max-height:48px;border:1px solid #dfe3e1;border-radius:26px;background:#f8f9f9;padding:0 17px;font-family:inherit;font-size:13px;font-weight:400;line-height:normal;color:#1c2922;box-shadow:none;outline:0;transition:border-color .15s,box-shadow .15s}
.wenti-auth input::placeholder{font-size:13px;font-weight:400;color:#a1aaa5}
.wenti-auth input:focus{outline:0;border-color:var(--field-focus-border);box-shadow:none;background:#fff}
#account-panel.wenti-auth input{border-radius:26px!important}
.wenti-auth button{font-family:inherit;letter-spacing:0;text-transform:none}
.auth-password-field{position:relative;min-width:0}
.auth-password-field input{padding-right:48px}
.wenti-auth .auth-eye{position:absolute;right:10px;top:0;display:grid;place-items:center;width:34px;height:48px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#26352e;box-shadow:none;cursor:pointer}
.auth-eye svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.5;fill:none}
.auth-eye[aria-pressed=true]{color:#648576}
.auth-code-row{position:relative}
.auth-code-row input{padding-right:126px}
.wenti-auth .auth-code-send{position:absolute;right:14px;top:13px;width:102px;height:22px;min-height:0;border:0;border-left:1px solid #dce0de;border-radius:0;padding:0 0 0 12px;background:transparent;box-shadow:none;color:#23372d;font-size:12px;line-height:22px;cursor:pointer;white-space:nowrap}
.wenti-auth .auth-code-send:disabled{color:#9ca7a0;cursor:default}
.wenti-auth .auth-form-links{display:flex;align-items:center;justify-content:space-between;margin-top:12px;margin-bottom:-10px}
.wenti-auth .auth-form-links button{border:0;background:transparent;box-shadow:none;min-height:24px;padding:0;font-size:12px;font-weight:400;line-height:24px;cursor:pointer;color:#304e3e}
.wenti-auth .auth-primary{display:block;width:100%;min-height:42px;height:42px;margin:0;border:1px solid #142720;border-radius:24px;padding:0 18px;background:#142720;box-shadow:none;color:#fff;font-size:14px;font-weight:500;line-height:40px;cursor:pointer;transition:background .15s}
.wenti-auth .auth-primary:hover{background:#254b3c}
.wenti-auth .auth-primary:disabled{opacity:.55;cursor:wait}
.wenti-auth .auth-switch{justify-self:center;min-height:24px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px;line-height:24px;font-weight:400;color:#789084;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.wenti-auth .auth-switch:hover{color:#264c39}
.wenti-auth .auth-caption{font-size:12px;line-height:1.65;text-align:center;color:#82918a;margin:0}
.auth-register-caption{margin:-4px 0 -6px!important}
.wenti-auth .auth-feedback{margin:-6px 0;font-size:12px;font-weight:400;line-height:1.65;color:#ad4d3d;overflow-wrap:anywhere}
.wenti-auth .auth-feedback:empty{display:none}
.auth-wechat-card{width:240px;min-height:302px;border:1px solid #e0e5e2;border-radius:12px;background:#f8faf9;display:flex;flex-direction:column;align-items:center;padding:32px 28px 22px;gap:24px}
.auth-wechat-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400;color:#263e31}
.auth-wechat-icon{width:21px;height:19px;fill:#15b73b}
.auth-qr{position:relative;display:grid;place-items:center;width:160px;height:160px;background:#fff;border:8px solid #fff;border-radius:3px;overflow:hidden}
.auth-qr>svg{width:100%;height:100%;opacity:.7;shape-rendering:crispEdges}
.auth-qr::after{content:"暂未开放";position:absolute;inset:auto 16px 56px;display:grid;place-items:center;height:30px;border-radius:5px;background:#fff;color:#345342;box-shadow:0 1px 8px #17251e1a;font-size:12px;font-weight:500}
.auth-wechat-status{font-size:11px;color:#98a69e}
.auth-footer{display:flex;justify-content:center;align-items:center;gap:18px;margin:68px 0 0;font-size:11px;color:#adb8b1}
.auth-footer a:hover{color:#527763}
.wenti-auth .auth-wechat-mobile{display:none;justify-self:center;align-items:center;gap:8px;border:0;background:none;box-shadow:none;padding:0;margin-top:28px;color:#496554;font-size:12px;font-weight:400;cursor:pointer}
.auth-wechat-mobile>span:last-child{font-size:10px;color:#a1aaa4}
.auth-wechat-dot{display:grid;place-items:center;width:24px;height:22px;border-radius:50%;background:#eaf8ed;color:#10ad3a;font-size:20px;line-height:10px;font-weight:700}
.auth-wechat-dialog{width:280px;max-width:calc(100vw - 48px);padding:34px 40px;border:1px solid #e0e5e2;border-radius:16px;background:#fff;color:#1c3025;text-align:center}
.auth-wechat-dialog::backdrop{background:#12261d40;backdrop-filter:blur(3px)}
.auth-wechat-dialog h2{font-size:17px;font-weight:500;margin:0 0 24px}
.auth-wechat-dialog .auth-qr{margin:auto}
.auth-wechat-dialog p{font-size:12px;color:#92a096;margin:20px 0 0}
.auth-dialog-close{position:absolute;top:8px;right:9px;width:28px;height:28px;min-height:0;padding:0;border:0;background:transparent;color:#8d9c92;font-size:22px;cursor:pointer}
.wenti-auth[data-auth-mode=register] .auth-layout,.wenti-auth[data-auth-mode=recover] .auth-layout{grid-template-columns:336px}
.wenti-auth[data-auth-mode=register] .auth-wechat-card,.wenti-auth[data-auth-mode=recover] .auth-wechat-card{display:none}
.wenti-auth[data-auth-mode=register] .auth-brand,.wenti-auth[data-auth-mode=recover] .auth-brand{margin-bottom:34px}
.wenti-auth[data-auth-mode=register] .auth-wechat-mobile,.wenti-auth[data-auth-mode=recover] .auth-wechat-mobile{display:none}
.wenti-auth :is(button,a):focus-visible{outline:2px solid #51816b;outline-offset:3px}
.account-notification{position:fixed;inset:auto;top:max(24px,env(safe-area-inset-top));left:50%;z-index:10000;display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);margin:0;border:0;padding:15px 20px;border-radius:13px;transform:translateX(-50%);background:#303432;color:#f8faf8;box-shadow:0 5px 22px #0d211c24;font-size:13px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none;animation:account-notification-in .18s ease-out}
.account-notification[hidden]{display:none!important}
.account-notification-icon{display:grid;flex:none;place-items:center;width:17px;height:17px;border:1.5px solid #31bb66;border-radius:50%;font-size:11px;line-height:1;color:#31bb66}
.account-notification[data-kind=warning] .account-notification-icon{border-color:#edbc6a;color:#edbc6a;font-weight:600}
@keyframes account-notification-in{from{opacity:0;transform:translate(-50%,-5px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:1100px){.auth-layout{grid-template-columns:336px}.auth-wechat-card{display:none}.wenti-auth .auth-wechat-mobile{display:flex}.auth-story{padding-left:10%;padding-right:10%}.auth-story-brand,.auth-story-foot{left:10%}.auth-story-copy h1{font-size:29px}.auth-story-eyebrow{font-size:8px;letter-spacing:1.3px}.auth-story-copy p{font-size:12px}}
@media(max-width:760px){#account-panel.wenti-auth{display:block}.auth-story{display:none}.auth-surface{padding:52px 24px 24px;min-height:100dvh}.auth-layout{grid-template-columns:minmax(0,336px);margin:auto;max-width:100%}.auth-form-box{width:100%}.auth-brand{margin-bottom:42px}.auth-brand>span{font-size:32px}.auth-brand img{width:40px;height:40px}.auth-footer{margin-top:52px}.wenti-auth .auth-form{gap:18px}.wenti-auth input{font-size:14px}.wenti-auth[data-auth-mode=register] .auth-layout,.wenti-auth[data-auth-mode=recover] .auth-layout{grid-template-columns:minmax(0,336px)}.auth-wechat-dialog{margin:auto}}
@media(max-height:680px){.auth-surface{padding-top:36px}.auth-layout{margin:12px auto auto}.auth-brand{margin-bottom:28px}.auth-footer{margin-top:32px}}

/* Account details open in place, with one clear action beside each value. */
#account-center{position:fixed;inset:0 0 0 auto;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-left:1px solid #edf0ed;border-radius:0;background:#fff;color:#171b19;overflow:hidden;box-shadow:-12px 0 44px #15211b12}
#account-center:not([open]){display:none}
#account-center[open]{display:flex;flex-direction:column;animation:account-drawer-in .24s cubic-bezier(.2,.7,.2,1)}
#account-center[data-closing=true]{animation:account-drawer-out .2s ease-in forwards}
.account-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:30px 34px 22px}
.account-drawer-heading h1{margin:0;font-size:24px;line-height:1.4;font-weight:600;letter-spacing:-.4px}
.account-drawer-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 34px 34px}
.account-center-profile-head{margin:0 0 24px}
.account-center-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;overflow:hidden;background:#edf1ee;color:#415449;font-size:23px}
.account-center-avatar img{width:100%;height:100%;object-fit:cover}
.account-setting-field{margin:0 0 24px;font-size:14px;line-height:1.65}
.account-setting-label{display:block;margin-bottom:5px;color:#7d8380;font-size:12px;font-weight:400}
.account-field-value{display:flex;align-items:center;gap:10px;min-height:25px;flex-wrap:wrap;overflow-wrap:anywhere}
.account-setting-note{color:#9a9e9b;font-size:12px}
.account-center #account-center-username{display:block;margin-top:4px}
.account-center #account-center-username[hidden]{display:none}
:is(.account-center,.account-device-dialog) .account-text-action,.account-center #account-edit-profile{display:inline-block;min-height:25px;padding:0;border:0;background:none;box-shadow:none;color:#2f5cff;font-family:inherit;font-size:13px;font-weight:400;line-height:25px;text-decoration:none;white-space:nowrap;cursor:pointer}
:is(.account-center,.account-device-dialog) .account-text-action:hover,.account-center #account-edit-profile:hover{text-decoration:underline;text-underline-offset:3px}
.account-center .account-text-action:disabled{color:#adb3bd;opacity:1;cursor:default;text-decoration:none}
#account-center #account-edit-profile{display:inline-block;min-height:25px;padding:0;color:#2f5cff;font-family:inherit;font-size:13px;font-weight:400;line-height:25px}
.account-center-bottom{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:28px}
.account-outline-button{min-height:36px;padding:7px 13px;border:1px solid #e1e3e2;border-radius:9px;background:#fff;color:#202622;box-shadow:none;font-family:inherit;font-size:13px;font-weight:400;line-height:20px;cursor:pointer}
.account-outline-button:hover{background:#f7f8f7}
.account-danger{color:#d1413c;border-color:#efb8b5}
.account-center-more{margin:4px 0 0;color:#8f9691;font-size:12px}
.account-center-more>summary{display:inline-block;cursor:pointer;list-style:none}
.account-center-more>summary::-webkit-details-marker{display:none}
.account-center-more>summary:hover{color:#2f5cff}
.account-center-more .fill-preference{margin:14px 0 0;font-size:12px}
.account-center-admin{margin-top:20px}
.account-center-admin a{color:#2f5cff;font-size:12px;text-decoration:none}
.account-center-admin a:hover{text-decoration:underline}
.account-security-dialog,.account-confirm-dialog,.account-device-dialog,.account-records-dialog{width:380px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:24px;border:0;border-radius:24px;background:#fff;color:#161b18;overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 70px #00000012}
:is(.account-center,.account-security-dialog,.account-confirm-dialog,.account-device-dialog,.account-records-dialog)::backdrop{background:#00000050;backdrop-filter:none}
.account-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.account-dialog-heading h2,.account-confirm-dialog h2{font-size:16px;line-height:1.5;font-weight:550;margin:0}
.account-dialog-close{display:grid;place-items:center;width:24px;height:24px;min-height:0;padding:0;border:0;background:none;color:#343c36;box-shadow:none;font-size:23px;font-weight:300;line-height:1;cursor:pointer}
.account-security-dialog .auth-form{display:grid;gap:20px}
.account-security-dialog input{width:100%;height:44px;min-height:44px;margin:0;padding:0 15px;border:1px solid #e1e4e2;border-radius:24px!important;background:#fff;color:#202622;box-shadow:none;font-family:inherit;font-size:13px;font-weight:400}
.account-security-dialog input::placeholder{color:#a8aeb4;font-size:13px}
.account-security-dialog .auth-code-row input{padding-right:124px}
.account-security-dialog .auth-code-send{position:absolute;right:12px;top:11px;width:103px;height:22px;min-height:0;padding:0 0 0 10px;border:0;border-left:1px solid #e1e3e2;border-radius:0;background:none;color:#212925;box-shadow:none;font-family:inherit;font-size:12px;font-weight:400;line-height:22px;cursor:pointer;white-space:nowrap}
.account-security-dialog .auth-code-send:disabled{color:#a7adb5;opacity:1;cursor:default}
.account-verify-address{margin:12px 0 10px;text-align:center;color:#141a17;font-size:20px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
:is(.account-security-dialog,.account-confirm-dialog) .auth-primary{min-height:40px;height:40px;margin-top:10px;padding:0 20px;border:0;border-radius:23px;background:#111315;color:#fff;box-shadow:none;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}
:is(.account-security-dialog,.account-confirm-dialog) .auth-primary:disabled{opacity:.5;cursor:wait}
:is(.account-security-dialog,.account-confirm-dialog,.account-device-dialog) .auth-feedback{margin:0;color:#b24e40;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
:is(.account-security-dialog,.account-confirm-dialog,.account-device-dialog) .auth-feedback:empty{display:none}
.account-security-dialog #account-email-binding{margin:0;padding:0;border:0;background:none}
.account-security-dialog #account-email-summary{display:none!important}
.account-security-dialog #account-email-change-form{margin:0;padding:0;border:0}
.account-device-dialog{width:740px}
.account-device-dialog .account-dialog-heading{margin-bottom:8px}
.account-device-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,230px) 52px;gap:18px;align-items:center;padding:20px 0;border-bottom:1px solid #eceeed;font-size:14px;line-height:1.7}
.account-device-row>div{min-width:0}
.account-device-row strong{font-size:14px;font-weight:500}
.account-device-row small{display:block;color:#969e98;font-size:12px}
.account-device-current{display:inline-block;margin-left:9px;padding:1px 6px;border-radius:4px;background:#f0f2f1;color:#69766d;font-size:10px;white-space:nowrap}
.account-device-row button{justify-self:end;min-height:28px;padding:0;border:0;background:none;color:#2f5cff;box-shadow:none;font-size:12px;font-weight:400;cursor:pointer}
.account-device-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px}
.account-records-dialog{width:600px}
.account-records-dialog #account-balance{margin:0 0 20px;color:#3b4a40;font-size:14px;font-weight:400}
.account-records-dialog .account-records{margin:0;padding:0;border:0;background:none}
.account-records-dialog .account-records>summary{display:none}
.account-records-dialog .account-list{max-height:48dvh;overflow:auto;margin-top:20px;font-size:13px;line-height:1.8}
.account-records-dialog #account-center-refresh{margin-top:20px}
.account-records-dialog #account-refresh{color:#2f5cff;font-size:12px;font-weight:400}
.account-confirm-dialog{width:400px}
.account-confirm-dialog>p{margin:16px 0 22px;color:#7b857e;font-size:13px;line-height:1.8}
.account-confirm-dialog>div{display:flex;justify-content:flex-end;gap:10px}
.account-confirm-dialog .auth-primary{margin-top:0}
.dashboard .account-sheet{width:220px}
.dashboard .account-sheet #account-center-open{display:block;width:100%;min-height:40px;padding:10px 0;text-align:left;color:#2f5cff;font-size:14px;font-weight:400}
@keyframes account-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes account-drawer-out{from{transform:translateX(0)}to{transform:translateX(100%)}}
@media(max-width:600px){.account-drawer-heading{padding:28px 26px 22px}.account-drawer-content{padding:0 26px 30px}.account-device-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.account-device-row>div:nth-child(2){grid-column:1;font-size:12px}.account-device-row>button{grid-column:2;grid-row:1/3}.account-device-current{margin-left:5px;font-size:9px}.account-security-dialog{padding:24px}.account-device-actions{gap:12px}.account-verify-address{font-size:19px}}
@media(prefers-reduced-motion:reduce){#account-center[open],#account-center[data-closing=true],.account-notification{animation:none}}

.dashboard .task-detail-shell{border-radius:18px;border-color:#e7ece3;padding:26px}
.dashboard[data-view=detail] .job-summary{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 0 22px}
.dashboard[data-view=detail] .job-summary::after,.dashboard[data-view=detail] .job-summary>.activity{display:none}
.dashboard[data-view=detail] .job-thumb{width:56px;height:56px;display:grid;place-items:center;background:#f0f5ed;border-radius:14px}
.dashboard[data-view=detail] .job-thumb .motion-dots{width:32px;gap:5px}
.dashboard[data-view=detail] .job-thumb .motion-dot{width:5px;height:5px}
.dashboard[data-view=detail] .job-label{font-size:16px;font-weight:600;color:#17483e;line-height:1.5}
.dashboard[data-view=detail] .elapsed{font-size:11px;color:#929e8d;white-space:nowrap}
.dashboard[data-view=detail] .progress-area{grid-column:2/-1;width:100%;margin-top:-3px;display:grid;gap:7px}
.dashboard[data-view=detail] .stage-progress{height:4px;accent-color:#4d8b6a}
.dashboard[data-view=detail] .progress-label{font-size:10px;color:#8f9d86}
.dashboard[data-view=detail] .stage-list{padding:17px 0 0;border-color:#e5ebdf;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;font-size:11px;margin-bottom:0}
.dashboard[data-view=detail] .stage-list .current{color:#2b6650}
.dashboard[data-view=detail] .task-back{background:#17483e}
.dashboard .metadata-field{background:#f7f9f3;border-color:#e2e9da;border-radius:12px}
.dashboard .metadata-label{color:#87957d}
.dashboard .metadata-copy{color:#5c7f53}
@media(min-width:1540px){.dashboard .workspace-main{margin-left:calc(216px + (100vw - 216px - 1180px)/2)}}
@media(max-width:860px){
 .dashboard .workspace-topbar{width:100%;margin-left:0;min-height:64px;padding:12px 17px;background:#ffffffba}
 .dashboard .workspace-main{width:100%;margin-left:0;padding:28px 17px calc(112px + env(safe-area-inset-bottom));max-width:none}
 .dashboard .workspace-breadcrumb{gap:10px;font-size:14px}
 .dashboard #workspace-section-label{font-size:14px;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .dashboard .workspace-top-actions{gap:8px}
 .dashboard #workspace-credits-link{display:none}
 .dashboard .account-menu>summary{font-size:12px;gap:7px}
 .dashboard .account-avatar{width:28px;height:28px;font-size:11px}
 .dashboard #account-header-name{max-width:65px}
 .dashboard .workspace-heading{margin-bottom:20px}
 .dashboard .workspace-heading h1{font-size:34px;letter-spacing:-1.1px;line-height:1.3}
 .dashboard[data-view=video] .workspace-heading h1{font-size:clamp(28px,7.8vw,34px)}
 .dashboard .workspace-heading .intro{font-size:13px;margin-top:8px;line-height:1.65}
 .dashboard .view-panel{padding:18px;border-radius:15px;margin-bottom:18px}
 .dashboard .input-heading{margin-bottom:12px}
 .dashboard #share-text{min-height:118px;padding:14px 14px;font-size:14px;line-height:1.7}
 .dashboard .input-actions{padding:4px 10px 10px}
 .dashboard #extract-button{min-height:46px;padding:8px 15px;font-size:13px;gap:7px}
 .dashboard .motion-button-icon{width:32px;height:32px}
 .dashboard .section-heading h2{font-size:17px}
 .dashboard .recent-record{padding:0}
 .dashboard .recent-record-link{column-gap:12px;grid-template-columns:52px minmax(0,1fr);grid-template-rows:52px 16px;padding:10px 0}
 .dashboard .recent-delete{bottom:0}
 .dashboard .recent-record .record-title{font-size:13px}
 .dashboard .recent-record .record-meta{font-size:10px}
 .dashboard .recent-record .status-label{font-size:9px;padding:2px 5px}
 .dashboard .recent-record .video-cover{width:52px;height:52px}
 .dashboard .mobile-tabs{padding:8px 20px calc(10px + env(safe-area-inset-bottom));background:#ffffffed;border-color:#e0e8dc;gap:8px}
 .dashboard .mobile-tabs a{position:relative;min-height:46px;font-size:11px;gap:4px;border-radius:0;color:#a0a69b;background:transparent}
 .dashboard .mobile-tabs a[aria-current=page]{color:#17483e;background:transparent}
 .dashboard .mobile-tabs a[aria-current=page]::after{content:'';position:absolute;bottom:-5px;width:28px;height:2px;border-radius:99px;background:#408468}
 .dashboard .mobile-tabs .icon{width:20px;height:20px;flex-basis:20px}
 .dashboard .profile-panel{padding:0;background:transparent;border:0}
 .dashboard .batch-mode-tabs{margin-bottom:16px}
 .dashboard .batch-mode-tabs a{min-height:37px;font-size:13px}
 .dashboard #profile-form{padding:18px;gap:11px}
 .dashboard #profile-url-label{font-size:13px}
 .dashboard #profile-url{font-size:13px;min-height:45px}
 .dashboard #profile-form .access-row{grid-template-columns:110px minmax(0,1fr);gap:7px 14px}
 .dashboard #profile-load{min-height:44px;min-width:0;width:100%;font-size:13px}
 .dashboard .profile-result-heading{padding:15px;gap:11px;flex-wrap:wrap}
 .dashboard #profile-author{font-size:15px}
 .dashboard #profile-filter{width:100%;min-height:35px;font-size:12px}
 .dashboard #profile-notice{font-size:10px;line-height:1.5}
 .dashboard #profile-list{padding:0 15px;grid-template-columns:1fr}
 .dashboard .profile-item{grid-template-columns:85px minmax(0,1fr);gap:11px;padding:13px 0}
 .dashboard .profile-choice{gap:9px;min-height:56px}
 .dashboard .profile-choice input{width:16px;height:16px;flex-basis:16px}
 .dashboard .profile-item .video-cover{width:56px;height:56px;flex-basis:56px;border-radius:9px}
 .dashboard .profile-title{font-size:12px}
 .dashboard .profile-duration,.dashboard .profile-pending,.dashboard .profile-open{font-size:10px}
 .dashboard .profile-excerpt{font-size:11px;line-height:1.6}
 .dashboard #profile-results{padding-bottom:84px}
 .dashboard .profile-selection-bar{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom));left:17px;right:17px;padding:13px 15px;border-radius:13px;gap:12px;z-index:31}
 .dashboard #profile-selected{font-size:13px;max-width:48%}
 .dashboard #profile-extract{font-size:12px;min-height:42px;padding:9px 13px}
 .dashboard .task-detail-shell{padding:18px;border-radius:17px}
 .dashboard[data-view=detail] .workspace-main{padding-top:22px}
 .dashboard[data-view=detail] .job-summary{grid-template-columns:42px minmax(0,1fr) auto;gap:10px;padding:6px 0 16px}
 .dashboard[data-view=detail] .job-thumb{width:42px;height:42px;border-radius:12px}
 .dashboard[data-view=detail] .job-label{font-size:14px}
 .dashboard[data-view=detail] .elapsed{font-size:10px}
 .dashboard[data-view=detail] .stage-list{font-size:10px;gap:6px;padding-top:14px}
 .dashboard .workspace-footer{margin-top:22px}
}
@media(max-width:350px){.dashboard .workspace-main{padding-left:13px;padding-right:13px}.dashboard[data-view=video] .workspace-heading h1{font-size:27px}.dashboard .workspace-topbar{padding-left:13px;padding-right:13px}.dashboard #workspace-section-label{max-width:85px}.dashboard .recent-record-link{column-gap:9px}.dashboard .recent-record .record-meta{font-size:9px}.dashboard .profile-selection-bar{left:13px;right:13px}}
@media(prefers-reduced-motion:reduce){.dashboard .batch-mode-tabs::before{transition:none}.dashboard .primary:not(:disabled):active{transform:none}}

/* Compact controls and occasional motion; no perpetual particle renderer. */
.dashboard{display:flex;flex-direction:column;min-height:100svh}
.dashboard .workspace-topbar{flex-shrink:0}
.dashboard .workspace-main{display:flex;flex:1;flex-direction:column;min-height:0;padding-bottom:26px}
.dashboard .workspace-main>*{flex-shrink:0}
.dashboard .workspace-main>.workspace-footer{margin-top:auto;padding-top:30px;padding-bottom:8px}
.dashboard .workspace-heading{margin-bottom:22px}
.dashboard .workspace-heading .intro[hidden]{display:none}
.dashboard .supported-platforms{font-size:11px;color:#8d9b92;letter-spacing:.03em}
.dashboard #profile-form{padding:17px 18px;gap:10px}
.dashboard #profile-form .input-heading{min-height:20px;margin:0}
.dashboard .profile-progress-shell{display:block;min-height:94px}
.dashboard #profile-url{min-width:0;width:100%;min-height:48px;padding:12px 14px;background:transparent!important;border:0!important;box-shadow:none!important;margin:0}
.dashboard #profile-url:focus{outline:none}
.dashboard .profile-progress-shell .input-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 9px 9px}
.dashboard #profile-load{width:auto;min-width:112px;min-height:37px;grid-column:auto;grid-row:auto;padding:6px 10px;gap:6px;font-size:12px}
.dashboard .read-count-control{position:relative;display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:1px 5px 1px 7px;background:linear-gradient(135deg,#ffffffaa,#eaf2e766);border:1px solid #d8e5d680;border-radius:8px;color:#6c816c;font-size:10px;flex-shrink:0;box-shadow:inset 0 1px 0 #ffffff88;transition:border-color .2s,box-shadow .2s}
.dashboard .read-count-control:hover{border-color:#b8d0b8}
.dashboard .read-count-control:focus-within{border-color:#8eb493;box-shadow:0 0 0 2px #80af9614}
.dashboard .read-count-control label{margin:0;color:inherit;font-weight:500;font-size:10px;cursor:text}
.dashboard #profile-limit{width:32px;min-width:0;min-height:28px;height:28px;margin:0;padding:0;background:transparent;border:0;border-radius:4px;text-align:center;color:#214d39;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;appearance:textfield;grid-row:auto;grid-column:auto;box-shadow:none;line-height:28px}
.dashboard #profile-limit::-webkit-inner-spin-button,.dashboard #profile-limit::-webkit-outer-spin-button{appearance:none;margin:0}
.dashboard #profile-limit:focus{outline:0;background:#f8fff566;box-shadow:none}
.dashboard #profile-limit-preset{position:relative;z-index:2;width:16px;min-width:16px;height:28px;min-height:28px;background:transparent;color:transparent;border:0;appearance:none;padding:0;cursor:pointer;margin:0}
.dashboard #profile-limit-preset option{color:#17483e;background:#fff}
.count-chevron{position:absolute;right:5px;width:12px;height:12px;pointer-events:none;color:#6c886d}
.read-count-control[data-bump=up] #profile-limit{animation:count-up .24s ease}
.read-count-control[data-bump=down] #profile-limit{animation:count-down .24s ease}
@keyframes count-up{0%{transform:translateY(3px);color:#67a085}50%{transform:translateY(-2px)}100%{transform:none}}
@keyframes count-down{0%{transform:translateY(-3px);color:#67a085}50%{transform:translateY(2px)}100%{transform:none}}
.dashboard #profile-input-state{margin:0;min-width:0;font-size:11px;line-height:1.5;color:#9b735d}
.dashboard #profile-input-state:empty{display:none}
.dashboard .records-empty{padding:19px 16px;font-size:12px}
.dashboard .records-empty .icon{width:23px;height:23px;margin-bottom:9px}
.dashboard #profile-status{font-size:12px;line-height:1.6;margin-top:12px}
.dashboard #profile-notice:empty{display:none}
.dashboard .profile-activity{padding:9px 13px;font-size:12px;margin-top:10px;min-height:40px}
.dashboard .profile-progress-shell[data-state=working]::before{animation:none}
.dashboard .input-progress-shell[data-state=idle]::before{transition:none}
.dashboard .link-guide-trigger{display:inline-flex;align-items:center;gap:12px;padding:4px 3px;margin:15px 2px 0;min-height:34px;max-width:max-content;border:0;background:transparent;color:#83927f;font-size:11px;box-shadow:none}
.dashboard .guide-plus{position:relative;display:block;flex:0 0 20px;width:20px;height:20px;border:0;border-radius:0;background:transparent;font-size:0;color:#527e62;transform-origin:50% 50%;animation:guide-plus-spin 8s linear infinite;animation-play-state:paused}
.dashboard .guide-plus::before,.dashboard .guide-plus::after{content:'';position:absolute;top:50%;left:50%;width:13px;height:1.5px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%)}
.dashboard .guide-plus::after{width:1.5px;height:13px}
@media(hover:hover){.dashboard .link-guide-trigger:hover .guide-plus{animation-play-state:running}}
.dashboard .link-guide-trigger:active{opacity:.65}
.link-guide-trigger[data-guide-loading=true]{opacity:.7}
@keyframes guide-plus-spin{to{transform:rotate(360deg)}}
.dashboard .account-avatar{overflow:hidden;flex-shrink:0;background:radial-gradient(circle at 30% 20%,#629885,#17483e 66%,#123c32);box-shadow:inset 0 1px 2px #ffffff55,0 2px 6px #153c3515}
.dashboard .account-avatar img,.editable-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.dashboard #account-edit-profile{display:flex;align-items:center;gap:7px;padding:8px 0;font-size:12px;color:#3e715b}
.dashboard #account-edit-profile .icon{width:15px;height:15px}
[data-avatar-style=forest]{--avatar-light:#6b9c88;--avatar-dark:#17483e}
[data-avatar-style=sage]{--avatar-light:#b4c8a7;--avatar-dark:#597661}
[data-avatar-style=sand]{--avatar-light:#dbc9a6;--avatar-dark:#967e5d}
[data-avatar-style=sky]{--avatar-light:#a7c9cf;--avatar-dark:#537d8b}
[data-avatar-style=plum]{--avatar-light:#c7b4cd;--avatar-dark:#7d637e}
[data-avatar-style=sunset]{--avatar-light:#e2b59a;--avatar-dark:#af7865}
.dashboard .account-avatar[data-avatar-style],.editable-avatar[data-avatar-style],.avatar-styles [data-avatar-style]{background:radial-gradient(circle at 30% 22%,var(--avatar-light),var(--avatar-dark) 70%)}
.dashboard .profile-editor{width:min(360px,calc(100% - 36px));padding:25px;background:#f5f7f0f2;border:1px solid #ffffffe3;border-radius:23px;box-shadow:0 24px 90px #0a302c40;backdrop-filter:blur(22px);color:#17483e}
.profile-editor::backdrop{background:#112d2766;backdrop-filter:blur(7px)}
.profile-editor[open]{animation:editor-in .32s cubic-bezier(.2,.7,.2,1)}
.profile-editor[data-closing=true]{animation:editor-out .16s ease-in both}
@keyframes editor-in{from{transform:translateY(15px) scale(.96);opacity:0}to{transform:none;opacity:1}}
@keyframes editor-out{to{transform:translateY(5px) scale(.98);opacity:0}}
.profile-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dashboard .profile-editor h2{font-size:19px;margin:0}
.editable-avatar{display:grid;place-items:center;margin:24px auto 18px;width:88px;height:88px;padding:0;border-radius:50%;border:3px solid #fff;overflow:hidden;color:#fff;font-size:32px;box-shadow:inset 0 3px 6px #ffffff60,0 8px 25px #17483e23;transition:transform .3s,box-shadow .3s}
.editable-avatar:hover{transform:translateY(-2px) rotate(-3deg);box-shadow:0 12px 28px #17483e30}
.avatar-styles{display:flex;justify-content:center;gap:10px;margin:0 auto 6px}
.avatar-styles button{position:relative;width:29px;height:29px;min-height:29px;padding:0;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 6px #17483e19;transition:transform .25s,box-shadow .25s}
.avatar-styles button:hover{transform:translateY(-3px)}
.avatar-styles button[aria-pressed=true]{transform:scale(1.15);box-shadow:0 0 0 2px #4c816a}
.avatar-actions{display:flex;justify-content:center;gap:12px;margin:4px 0 14px}
.dashboard .avatar-actions button{font-size:11px;color:#6a8871;padding:5px 0;min-height:32px}
.dashboard #profile-display-name{min-height:46px;background:#ffffffa6;text-align:center;font-size:15px}
.dashboard #profile-editor-save{width:100%;margin-top:14px;min-height:45px}
.profile-editor .error:empty{display:none}
.dashboard .link-guide{inset:0;margin:auto;width:100%;height:100dvh;max-width:none;max-height:none;padding:22px;background:transparent;border:0;border-radius:0;overflow:hidden;color:#f5f7f0;box-shadow:none}
.link-guide[open]{display:grid;place-items:center}
.link-guide::backdrop{background:#eef2e955;backdrop-filter:blur(12px);animation:guide-focus-in .4s ease both}
.link-guide[data-closing=true]::backdrop{animation:guide-focus-out .18s ease both}
@keyframes guide-focus-in{from{opacity:0}to{opacity:1}}
@keyframes guide-focus-out{to{opacity:0}}
.guide-surface{position:relative;max-width:100%;width:980px;text-align:center;perspective:1400px;transform-origin:center;z-index:1;will-change:transform,opacity}
.link-guide[data-closing=true] .guide-surface{animation:guide-surface-out .18s cubic-bezier(.4,0,.8,.5) both}
@keyframes guide-surface-out{to{opacity:0;transform:translate3d(0,8px,0) scale(.96)}}
.guide-platforms{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin:0 auto 9px;padding:4px;border:1px solid #d8e3d2c4;border-radius:14px;background:#f7f9f1d1;box-shadow:inset 0 1px 0 #fff,0 4px 14px #17483e0a}
.guide-platform-button{display:grid;place-items:center;min-width:86px;min-height:34px;padding:6px 17px;border:0;border-radius:10px;background:transparent;color:#738871;font-size:12px;font-weight:550;line-height:1.2;box-shadow:none;transition:background .2s,color .2s,transform .16s ease}
.guide-platform-button[aria-pressed=true]{background:#17483e;color:#f6f8ee;box-shadow:0 2px 5px #17483e16}
.guide-platform-button:hover{background:#e5edde;color:#395e47}
.guide-platform-button[aria-pressed=true]:hover{background:#205447;color:#f6f8ee}
.guide-platform-button:active{transform:scale(.97)}
.guide-platform-button:focus-visible{outline:1.5px solid #89968d;outline-offset:3px}
.guide-deck{position:relative;display:flex;align-items:start;justify-content:center;gap:20px;width:min(800px,100%);max-width:100%;margin:0 auto;transform-style:preserve-3d;touch-action:pinch-zoom;isolation:isolate}
.guide-card{--card-lift:0px;position:relative;flex:0 1 238px;min-width:0;padding:12px 12px 10px;border:1px solid #fcfff0b0;border-radius:20px;background:linear-gradient(135deg,#eaf3e0d6,#f6f6e8de 42%,#d9e9ded1);color:#17483e;box-shadow:inset 0 1px 1px #ffffffda,0 15px 28px #071f1b38;transform:translate3d(0,var(--card-lift),0);backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:transform .36s cubic-bezier(.2,.7,.2,1),opacity .25s;will-change:transform,opacity}
.guide-card[data-active=true]{--card-lift:-3px;box-shadow:inset 0 1px 1px #fffffff0,0 0 0 1px #f1ffeaa1,0 18px 32px #061d1c44}
.guide-card-head{display:flex;align-items:center;gap:8px;min-height:37px;margin:0 1px 9px;text-align:left}
.guide-step-number{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;border:1px solid #759e8255;color:#397255;background:#f5faee8c;font-size:11px;font-variant-numeric:tabular-nums}
.guide-card-title{font-size:12px;font-weight:600;line-height:1.55;margin:0}
.guide-image{position:relative;width:100%;aspect-ratio:852/1847;border-radius:12px;overflow:hidden;background:#f5f5ee;box-shadow:0 0 0 1px #17483e14;user-select:none;-webkit-user-select:none}
.guide-image img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;transition:opacity .15s ease}
.guide-image[data-ready=true] img{opacity:1}
.guide-image:not([data-ready=true]) .guide-hotspot{opacity:0}
.guide-image-state{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#617b68;background:#f3f6ef}
.guide-image-state[hidden]{display:none}
.guide-image-retry{position:absolute;inset:40% 10%;height:64px;background:#edf4e6e8;border:1px solid #9db5a2;border-radius:12px;color:#3d715a;font-size:12px;padding:8px}
.guide-is-open{overflow:hidden}
.guide-hotspot{position:absolute;left:calc(var(--spot-x)*1%);top:calc(var(--spot-y)*1%);width:calc(var(--spot-w)*1%);height:calc(var(--spot-h)*1%);transform:translate(-50%,-50%);border:2px solid #2a8961;border-radius:9px;background:#73ba8d17;box-shadow:0 0 0 3px #dbf3c6bb,0 0 17px #56926540;pointer-events:none}
.guide-hotspot::after{content:'';position:absolute;inset:-5px;border:1px solid #4d927a55;border-radius:12px;animation:spot-ripple 2s ease-in-out infinite}
.guide-card[aria-hidden=true] .guide-hotspot::after{animation-play-state:paused}
@keyframes spot-ripple{0%,100%{opacity:.3;transform:scale(.96)}50%{opacity:.9;transform:scale(1.08)}}
.guide-hotspot-label{position:absolute;right:100%;bottom:calc(100% + 8px);padding:3px 6px;border-radius:5px;background:#17483e;color:#f4f9ed;font-size:9px;white-space:nowrap;box-shadow:0 2px 5px #17483e30}
.guide-hotspot[data-side=left] .guide-hotspot-label{right:auto;left:100%}
.guide-card-note{font-size:10px;margin:9px 0 0;line-height:1.5;color:#5c7b62}
.guide-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px}
.guide-arrow{display:grid;place-items:center;padding:0;width:31px;height:31px;min-height:31px;border-radius:50%;background:#ffffff73;color:#76926d;border:1px solid #bccdb17a}
.guide-arrow .icon{width:14px;height:14px}
#guide-previous .icon{transform:rotate(180deg)}
.guide-dots{display:flex;gap:8px;align-items:center}
.guide-dots button{width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:transparent;position:relative;color:#dae8d6}
.guide-dots button::after{content:'';position:absolute;inset:8px;border-radius:50%;background:#bacab166;transition:transform .3s,background .3s}
.guide-dots button[aria-pressed=true]::after{background:#648861;transform:scale(1.3)}
.dashboard .guide-swipe-hint{font-size:10px;color:#8a9b82;margin:9px 0 0}
.guide-deck[data-turn=out] .guide-card{animation:guide-flip-out .16s ease-in both}
.guide-deck[data-turn=in] .guide-card{animation:guide-flip-in .34s cubic-bezier(.2,.75,.2,1) both}
@keyframes guide-flip-out{to{transform:translate3d(0,var(--card-lift),0) rotateY(-90deg)}}
@keyframes guide-flip-in{from{transform:translate3d(var(--arrival-shift,0px),var(--card-lift),0) rotateY(90deg)}to{transform:translate3d(0,var(--card-lift),0) rotateY(0)}}
.guide-placeholder{display:grid;place-items:center;align-content:center;gap:26px;padding:30px;background:radial-gradient(circle at 30% 20%,#e7efdcee,#d1e3d3ad 45%,#e9edde);color:#62927a}
.guide-placeholder .icon{width:54px;height:54px;padding:12px;border:1px solid #ffffffe6;border-radius:16px;background:#ffffff3d;box-shadow:0 10px 22px #376b4b1c;transform:rotate(-9deg)}
.guide-placeholder span{font-size:11px;color:#6b886b}
.guide-flow{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.guide-particle{position:absolute;left:0;top:0;width:3px;height:3px;border-radius:50%;background:#d4f2c7;opacity:0}
.guide-stream{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:0;animation:guide-stream .7s ease-out both}
.guide-stream path{fill:none;stroke:#c2e6cd26;stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:guide-draw .6s ease-out both}
@keyframes guide-stream{15%,65%{opacity:1}100%{opacity:0}}
@keyframes guide-draw{to{stroke-dashoffset:0}}
@media(min-width:861px) and (max-height:900px){.guide-card{flex-basis:min(220px,calc((100dvh - 257px)*.461))}.guide-deck{gap:18px}.guide-platforms{margin-bottom:6px}.guide-controls{margin-top:12px}}
@media(max-width:860px){
 .dashboard .workspace-main{min-height:0;padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 .dashboard .workspace-main>.workspace-footer{padding-top:27px;padding-bottom:0;margin-top:auto}
 .dashboard .workspace-heading{margin-bottom:16px}
 .dashboard .input-heading{margin-bottom:8px}
 .dashboard #profile-form{padding:13px 12px;gap:9px;border-radius:14px}
 .dashboard #profile-url{min-height:46px;padding:11px 12px;font-size:13px}
 .dashboard .profile-progress-shell{min-height:92px}
 .dashboard #profile-load{min-width:97px;min-height:36px;font-size:11px;padding:5px 8px}
 .dashboard #profile-load .motion-button-icon{width:24px;height:24px}
 .dashboard .profile-progress-shell .input-actions{padding:0 7px 8px}
 .dashboard .read-count-control{min-height:32px;font-size:10px}
 .dashboard .read-count-control label{font-size:10px}
 .dashboard #profile-input-state{font-size:10px;padding-top:4px}
 .dashboard .link-guide{padding:14px}
 .guide-surface{width:100%;max-width:440px}
 .guide-platforms{gap:3px;padding:3px;margin-bottom:7px;border-radius:12px}
 .guide-platform-button{min-width:78px;min-height:32px;padding:6px 13px;border-radius:9px;font-size:11px}
 .guide-deck{display:block;width:100%;height:calc((var(--mobile-card-width,230px) - 20px)*2.168 + 100px);max-height:calc(100dvh - 225px);perspective:900px}
 .guide-card{--card-x:calc(-50% + var(--card-depth)*10px);--card-y:calc(var(--card-depth)*13px);--card-scale:calc(1 - var(--card-depth)*.035);position:absolute;left:50%;top:0;width:var(--mobile-card-width,230px);max-width:calc(100% - 40px);padding:10px 10px 9px;border-radius:18px;transform:translate3d(var(--card-x),var(--card-y),0) scale(var(--card-scale));opacity:calc(1 - var(--card-depth)*.18);z-index:calc(10 - var(--card-depth));animation:none;transform-origin:50% 50%;transition:transform .36s cubic-bezier(.2,.7,.2,1),opacity .25s}
 .guide-card[data-active=true]{opacity:1}
 .guide-card-head{min-height:30px;margin-bottom:7px;gap:8px}
 .guide-card-title{font-size:11px}
 .guide-card-note{font-size:10px;margin-top:7px}
 .guide-image{border-radius:10px}
 .guide-hotspot-label{font-size:10px}
 .guide-controls{margin-top:11px;gap:15px}
 .guide-swipe-hint{font-size:9px!important}
 .guide-deck[data-turn=out] .guide-card{animation:guide-mobile-flip-out .16s ease-in both}
 .guide-deck[data-turn=in] .guide-card{animation:guide-mobile-flip-in .34s cubic-bezier(.2,.75,.2,1) both}
 @keyframes guide-mobile-flip-out{to{transform:translate3d(var(--card-x),var(--card-y),0) rotateY(-90deg) scale(var(--card-scale))}}
 @keyframes guide-mobile-flip-in{from{transform:translate3d(var(--card-x),var(--card-y),0) rotateY(90deg) scale(var(--card-scale))}to{transform:translate3d(var(--card-x),var(--card-y),0) rotateY(0) scale(var(--card-scale))}}
}
@media(prefers-reduced-motion:reduce){
 .dashboard .input-progress-shell::before,.guide-surface,.guide-card,.guide-deck,.guide-platform-button,.guide-plus,.editable-avatar,.avatar-styles button{animation:none!important;transition:none!important}
 .dashboard .input-progress-shell[data-state=settled]::before{opacity:0!important}
 .guide-hotspot::after,.guide-flow{display:none}
 .link-guide::backdrop,.profile-editor[open],.profile-editor[data-closing=true],.link-guide[data-closing=true] .guide-surface,.guide-deck[data-turn] .guide-card,.read-count-control #profile-limit{animation:none!important}
}

/* A brief, local gesture demonstration; never loops after the two hints. */
.guide-swipe-demo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:146px;height:62px;pointer-events:none;z-index:30;border:1px solid #ffffffd9;border-radius:16px;background:#17221ed1;box-shadow:0 0 0 1px #17221ed9,0 4px 15px #0003}
.guide-swipe-demo[hidden]{display:none}
.guide-swipe-touch{position:absolute;top:10px;left:11px;width:17px;height:17px;border-radius:50%;background:#fff;border:2px solid #14251e;box-shadow:0 0 0 1px #fff,0 2px 6px #0008;opacity:0;animation:guide-finger 1.25s cubic-bezier(.22,.6,.25,1) 2 both}
.guide-swipe-trail{position:absolute;top:18px;left:28px;width:88px;height:2px;background:linear-gradient(to right,#ffffff15,#fff);box-shadow:0 1px 2px #0008;opacity:0;animation:guide-trail 1.25s ease 2 both}
.guide-swipe-label{position:absolute;bottom:9px;left:0;width:100%;font-size:10px;letter-spacing:.04em;color:#fff;text-shadow:0 1px 2px #0008}
@keyframes guide-finger{0%{opacity:0;transform:translateX(106px) scale(.8)}12%,24%{opacity:.8;transform:translateX(106px) scale(1)}68%{opacity:.8;transform:translateX(4px) scale(1)}82%,100%{opacity:0;transform:translateX(0) scale(.8)}}
@keyframes guide-trail{0%,15%,82%,100%{opacity:0}26%,68%{opacity:.75}}
@media(prefers-reduced-motion:reduce){.guide-swipe-demo{display:none!important}}

/* Recent reads belong to their current author/collection tab. */
.dashboard #profile-form{padding:0;gap:8px;border:0;background:transparent;box-shadow:none}
.dashboard #profile-form .input-heading{padding:0 3px}
.dashboard .profile-progress-shell{min-height:120px;width:100%;border-radius:16px}
.dashboard #profile-url{min-height:67px;padding:16px 17px;font-size:14px}
.dashboard .profile-progress-shell .input-actions{padding:0 11px 11px}
.dashboard .read-count-control{gap:5px;min-height:36px;padding:2px 8px 2px 11px;border:1px solid #d9e4d2;border-radius:11px;background:#f3f6edf0;color:#85957b;box-shadow:none;font-size:11px}
.dashboard .read-count-control label{font-size:11px}
.dashboard #profile-limit{height:30px;min-height:30px;width:34px;border-radius:6px;background:#e8efe288;font-size:14px;color:#17483e;line-height:30px}
.dashboard #profile-limit:focus{background:#e1edd9;box-shadow:0 0 0 2px #769d7718}
.dashboard #profile-limit-preset{height:30px;min-height:30px;width:18px;min-width:18px}
.dashboard .count-chevron{right:9px}
.dashboard .profile-read-info{font-size:11px;line-height:1.5;color:#7c9178;margin:6px 0 0}
.dashboard .profile-recent{margin-top:26px}
.dashboard .profile-recent .section-heading{margin-bottom:13px}
.dashboard .profile-recent h2{font-size:17px}
.dashboard .profile-recent .quiet{font-size:11px;min-height:30px;padding:4px 8px}
.profile-recent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dashboard .recent-read-card{display:flex;align-items:center;gap:11px;min-width:0;width:100%;min-height:106px;padding:13px 12px;border:1px solid #e1e9dc;border-radius:15px;background:#ffffffc2;text-align:left;color:#17483e;box-shadow:none;transition:background .2s,border-color .2s,transform .18s}
.dashboard .recent-read-card:hover{background:#f9fcf5;border-color:#b8cdb5;transform:translateY(-2px)}
.dashboard .recent-read-card:active{transform:scale(.985)}
.dashboard .recent-read-card[aria-busy=true]{opacity:.65}
.dashboard .recent-read-card .video-cover{width:44px;height:64px;min-width:44px;border-radius:8px;flex-shrink:0}
.recent-read-copy{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.recent-read-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.4;font-weight:600}
.recent-read-count{color:#698365;font-size:10px}
.recent-read-time{color:#9aa694;font-size:9px;line-height:1.5}
.recent-read-card>.icon{width:12px;height:12px;flex-shrink:0;transform:rotate(-90deg);color:#a5b69d}
.profile-recent .action-message:empty{display:none}
@media(max-width:860px){
 .dashboard #profile-form{padding:0}
 .dashboard .profile-progress-shell{min-height:116px}
 .dashboard #profile-url{min-height:63px;font-size:13px;padding:15px 14px}
 .dashboard .profile-progress-shell .input-actions{padding:0 9px 9px}
 .profile-recent-list{grid-template-columns:1fr;gap:9px}
 .dashboard .recent-read-card{min-height:89px;padding:11px 13px;border-radius:13px}
 .dashboard .recent-read-card .video-cover{width:42px;min-width:42px;height:60px}
 .dashboard .profile-recent h2{font-size:16px}
 .recent-read-name{font-size:12px;-webkit-line-clamp:1}
 .recent-read-count{font-size:10px}
 .recent-read-time{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.recent-read-card{transition:none!important}}

.guide-controls[hidden]{display:none}
.guide-deck:focus{outline:none}
.guide-deck:focus-visible .guide-card[data-active=true]{outline:1px solid #789579;outline-offset:3px}

/* One page title in the top bar; the work starts directly below it. */
.dashboard:not([data-view=detail]) .workspace-heading{display:none}
.dashboard .workspace-topbar{min-height:60px;padding:10px 34px}
.dashboard #workspace-section-label{margin:0;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.01em;color:#2f4b3d}
.dashboard #workspace-copy-agent{min-height:34px;padding:6px 10px;font-size:11px;border-radius:9px;gap:7px}
.dashboard #workspace-copy-agent .icon{width:15px;height:15px}
.dashboard .workspace-top-actions{gap:19px}
.dashboard .account-menu>summary,.dashboard #workspace-credits-link{font-size:12px}
.dashboard .workspace-main{padding:24px clamp(28px,3vw,44px) 26px}
.dashboard .view-panel{padding:20px;border-radius:15px;margin-bottom:18px}
.dashboard .profile-panel{padding:0;border:0;background:transparent}
.dashboard .input-heading{margin-bottom:10px}
.dashboard #share-text{height:90px;min-height:90px;padding:14px 15px;font-size:14px;line-height:1.6}
.dashboard .input-actions{padding:3px 10px 10px}
.dashboard #extract-button{min-height:40px;padding:6px 13px;font-size:12px;gap:7px}
.dashboard #extract-button .motion-button-icon{width:27px;height:27px}
.dashboard .link-guide-trigger{margin-top:10px;gap:8px;min-height:30px}
.dashboard .batch-mode-tabs{margin-bottom:15px;border-radius:10px}
.dashboard .batch-mode-tabs a{min-height:36px;font-size:13px}
.dashboard .batch-mode-tabs::before{border-radius:7px}
.dashboard .read-count-control{gap:4px;min-height:34px;padding:2px 8px;border:1px solid transparent;border-radius:8px;background:#eef2e9;color:#7e9177;font-size:11px;box-shadow:none}
.dashboard .read-count-control:hover{border-color:#d9e2d2;background:#e8efe3}
.dashboard .read-count-control:focus-within{border-color:#a5b99e;box-shadow:0 0 0 2px #91ad8114}
.dashboard #profile-limit{width:31px;min-height:28px;height:28px;border-radius:3px;background:transparent;padding:0;font-size:13px;font-weight:550;line-height:28px}
.dashboard #profile-limit:focus{background:transparent;box-shadow:none}
.dashboard #profile-limit-preset{width:17px;min-width:17px;height:28px;min-height:28px;border-radius:0}
.dashboard #profile-limit-preset:focus-visible{outline:0}
.dashboard .count-chevron{right:9px;width:10px;height:10px}
.dashboard .profile-recent{margin-top:20px}
.dashboard .section-heading h2,.dashboard .profile-recent h2{font-size:15px;font-weight:600}
.dashboard[data-view=history] #workspace-history>.section-heading{display:none}
.dashboard .history-filters{gap:9px;margin-bottom:15px}
.dashboard .history-filters :is(input,select,button){min-height:36px;font-size:12px}
.dashboard .history-filters input{padding:8px 11px}
.dashboard[data-view=detail] .workspace-heading h1{font-size:21px;letter-spacing:-.3px;line-height:1.5}
@media(max-width:860px){
 .dashboard .workspace-topbar{min-height:56px;padding:9px 17px}
 .dashboard #workspace-section-label{font-size:14px}
 .dashboard .workspace-top-actions{gap:9px}
 .dashboard .workspace-main{padding:19px 17px calc(88px + env(safe-area-inset-bottom))}
 .dashboard .view-panel{padding:15px;margin-bottom:15px;border-radius:14px}
 .dashboard .profile-panel{padding:0}
 .dashboard #share-text{height:88px;min-height:88px;font-size:13px;padding:12px}
 .dashboard #extract-button{min-height:39px;font-size:12px;padding:6px 11px}
 .dashboard .input-heading{margin-bottom:8px}
 .dashboard .batch-mode-tabs a{min-height:35px;font-size:12px}
 .dashboard .recent-read-card{min-height:85px;padding:10px 12px}
 .dashboard .section-heading h2,.dashboard .profile-recent h2{font-size:14px}
 .dashboard .profile-recent{margin-top:18px}
}

/* Unified extraction composer. */
.dashboard .workspace-topbar{border-bottom:0;background:transparent}
.dashboard #workspace-hero{display:none}
.dashboard .workspace-main{width:calc(100% - 224px);max-width:1240px;padding-top:24px}
.extraction-tabs{display:flex;align-items:center;justify-content:center;gap:5px;align-self:center;margin:0 0 22px;padding:0;background:transparent;border:0;border-radius:0}
.extraction-tabs a{position:relative;display:flex;flex:none;align-items:center;justify-content:center;min-height:38px;padding:9px 18px;border-radius:6px;font-size:13px;font-weight:500;color:#8b9684;text-decoration:none;transition:color .2s}
.extraction-tabs a::after{content:'';position:absolute;bottom:2px;left:50%;width:13px;height:2px;border-radius:2px;background:currentColor;opacity:0;transform:translateX(-50%);transition:opacity .2s}
.extraction-tabs a[aria-current=page]{background:transparent;color:#17483e;font-weight:600;box-shadow:none}
.extraction-tabs a[aria-current=page]::after{opacity:1}
.extraction-tabs a:hover{color:#2b5944;background:transparent}
.extraction-tabs a[aria-current=page]:hover{background:transparent;color:#17483e}
.extraction-tabs a:focus-visible{outline:2px solid #8cac96;outline-offset:3px}
.extract-welcome{text-align:center;min-height:48px;margin:7px 0 20px}
#welcome-heading{margin:0;font-size:25px;min-height:40px}
#welcome-heading,.animated-welcome-heading{display:flex;align-items:baseline;justify-content:center;white-space:nowrap;font-family:'Google Sans',Inter,-apple-system,'PingFang SC',sans-serif;font-weight:400;line-height:1.1875;letter-spacing:-.01em;color:#14151c;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#welcome-prefix,#welcome-suffix,.animated-welcome-fixed{display:inline-flex;flex:none;color:inherit}
.welcome-fixed-letter{display:inline-block;white-space:pre;animation:welcome-blur-in .7s cubic-bezier(.2,.6,.2,1) both}
#welcome-word,.animated-welcome-word{display:inline-block;flex:none;width:auto;white-space:pre;text-align:left;vertical-align:baseline;margin-left:.125em}
.welcome-typed{display:inline-grid;white-space:pre;vertical-align:baseline;color:#14151c}
.welcome-typed>*{grid-area:1/1}
#welcome-text,.animated-welcome-text,.welcome-glow{display:block;position:relative;white-space:pre}
.welcome-glow{z-index:1;opacity:0;pointer-events:none}
.welcome-letter{display:inline-block;white-space:pre;animation:welcome-type-in .2s cubic-bezier(.2,.6,.2,1) both}
.welcome-glow-letter{color:transparent;-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#14151c 0%,#2564f8 75%,#36cfc9 92%) no-repeat;background-clip:text;-webkit-background-clip:text;transition:background-size .18s,background-position .18s}
.welcome-caret{display:inline-block;opacity:0;vertical-align:-.25em;width:.0625em;height:1.1875em;border-radius:100px;background:linear-gradient(#2564f8,#36cfc9)}
[data-phase=enter]>.welcome-caret{animation:welcome-blur-in .7s cubic-bezier(.2,.6,.2,1) .12s both}
[data-phase=blink]>.welcome-caret{opacity:1;animation:welcome-caret-blink 1s step-end forwards;animation-iteration-count:var(--caret-iterations,1)}
@keyframes welcome-blur-in{0%{opacity:0;filter:blur(.375em);transform:translateY(.25em)}60%{opacity:1}100%{opacity:1;filter:blur(0px);transform:translateY(0)}}
@keyframes welcome-type-in{from{opacity:.25;filter:blur(.09375em)}to{opacity:1;filter:blur(0px)}}
@keyframes welcome-caret-blink{0%,54%{opacity:1}55%,100%{opacity:0}}
[data-welcome-motion=reduced] :is(.welcome-fixed-letter,.welcome-letter,.welcome-caret),[data-welcome-motion=stopped] :is(.welcome-fixed-letter,.welcome-letter,.welcome-caret){animation:none}
[data-welcome-motion=reduced] .welcome-glow,[data-welcome-motion=stopped] .welcome-glow{opacity:0!important;transition:none!important}
.dashboard .extract-view{padding:0;background:transparent;border:0;box-shadow:none;margin:0 0 25px}
.dashboard #profile-panel{padding:0;background:transparent;border:0;box-shadow:none}
.dashboard #extract-form,.dashboard #profile-form{position:relative;padding:0;border:0;box-shadow:none;background:transparent}
.dashboard .input-heading{position:absolute;right:19px;top:9px;z-index:3;min-height:20px;margin:0;justify-content:flex-end}
.dashboard .input-heading button{font-size:10px;min-height:26px;padding:2px 4px;color:#8da189}
.dashboard .input-heading button:disabled{opacity:0;pointer-events:none}
.dashboard .input-progress-shell,.dashboard .profile-progress-shell{display:block;box-sizing:border-box;height:188px;min-height:188px;padding:22px 12px 12px;border:1px solid transparent;border-radius:20px;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(115deg,#b9d8bd,#e0e6d9 40%,#b2cdbb 77%,#bad4ce) border-box;box-shadow:0 6px 24px #3057410a,-4px 0 20px #a0cbbb30,4px 6px 21px #b1dabe30;overflow:visible;transition:box-shadow .35s}
.dashboard .input-progress-shell:focus-within{box-shadow:0 6px 25px #3057410c,-5px 0 25px #a4ceae45,5px 4px 25px #95c5b840}
.dashboard .input-progress-shell::after{content:'';position:absolute;inset:-1px;padding:1px;border-radius:inherit;background:linear-gradient(110deg,#95baa956 8%,#b9dcc390 28%,#80b2a0cc 46%,#cfe8d48c 62%,#8ebdbb80 78%,#95baa956 96%);background-size:300% 200%;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 6px #96c5ac60);animation:composer-edge-light 7s ease-in-out infinite alternate;pointer-events:none;z-index:0}
@keyframes composer-edge-light{from{background-position:0% 25%}to{background-position:100% 75%}}
.dashboard[data-motion-paused=true] .input-progress-shell::after{animation-play-state:paused}
.dashboard .input-progress-shell::before{border-radius:inherit;inset:0;pointer-events:none;transform:none;clip-path:inset(0 calc((1 - var(--extract-progress))*100%) 0 0);transition:clip-path .8s cubic-bezier(.22,.68,.25,1),opacity .6s ease}
.dashboard #share-text,.dashboard #profile-url{display:block;position:relative;z-index:1;width:100%;min-height:100px;height:100px;padding:4px 44px 4px 4px;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none!important;resize:none;font-size:13px;line-height:1.7;color:#244a3a}
.dashboard #share-text:focus,.dashboard #profile-url:focus{outline:0}
.dashboard #share-text::placeholder,.dashboard #profile-url::placeholder{color:#a8b1a3;font-size:12px;opacity:1}
.dashboard .input-progress-shell .input-actions{display:flex;justify-content:flex-end;align-items:center;position:relative;inset:auto;padding:12px 2px 0;gap:12px;z-index:4}
.dashboard .profile-progress-shell .input-actions{justify-content:space-between}
.dashboard :is(#extract-button,#profile-load){box-sizing:border-box;flex:none;width:40px;min-width:40px;max-width:40px;height:38px;min-height:38px;border-radius:12px;padding:5px 6px;gap:0}
.dashboard :is(#extract-button,#profile-load) .motion-button-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dashboard :is(#extract-button,#profile-load) .motion-button-icon{width:27px;height:27px;flex:0 0 27px}
.dashboard :is(#profile-extract,#follows-extract){box-sizing:border-box;flex:none;width:84px;min-width:84px;max-width:84px;height:38px;min-height:38px;border-radius:8px;padding:6px 8px;font-size:12px;font-weight:500;white-space:nowrap;background:#eaf1e7;border:0;box-shadow:none;color:#315b43;transition:background .2s,color .2s}
.dashboard :is(#profile-extract,#follows-extract):hover:not(:disabled){background:#e1ebdc}
.dashboard :is(#profile-extract,#follows-extract):disabled{background:transparent;color:#a4b09b;opacity:1;border:0;box-shadow:none;cursor:default}
.dashboard .primary:disabled{background:#a2b5ab;color:#fff;opacity:.72;box-shadow:none;cursor:default}
.dashboard :is(#extract-button,#profile-load):disabled{opacity:1;background:#c1cec6;border-color:#c1cec6;color:#f5f8f6}
.dashboard :is(#extract-button,#profile-load)[data-input-filled=false]{color:#191d18}
.dashboard :is(#extract-button,#profile-load)[data-input-filled=true]{color:#fff}
.dashboard :is(#extract-button,#profile-load) .motion-button-icon{color:#fff;--motion-paper:#17483e}
.dashboard :is(#extract-button,#profile-load)[data-input-filled=false] .motion-button-icon{color:#191d18;--motion-paper:#fff}
.dashboard .link-guide-trigger{display:block;padding:5px 0;margin:10px auto 0;min-height:30px;color:#a0ab98;font-size:11px;transform-origin:center;transition:color .2s,transform .2s}
.dashboard .link-guide-trigger:hover{color:#436c51;background:transparent;transform:scale(1.045)}
.dashboard .link-guide-trigger:focus-visible{outline:1.5px solid #89968d;outline-offset:4px;border-radius:5px}
.dashboard .link-guide-trigger[data-guide-pointer-focus=true]:focus,.dashboard .link-guide[data-guide-input=pointer] .guide-platform-button:focus{outline:none;box-shadow:none}
.dashboard .workspace-history,.dashboard .history-panel,.dashboard .profile-recent{margin-top:5px}
.dashboard .section-heading h2{font-size:15px;line-height:1.6;font-weight:600}
.dashboard .section-heading{margin-bottom:13px}
.dashboard .profile-author-line{display:flex;align-items:center;gap:12px}
.profile-author-line h3{margin:0}
.dashboard #profile-follow{font-size:11px;padding:4px 8px;color:#779071}
.dashboard #profile-follow[aria-pressed=true]{color:#245c40;background:#e9f0e3;border-radius:8px}
.count-picker{position:relative;flex-shrink:0;align-self:center}
.count-picker summary{list-style:none;display:flex;align-items:center;gap:6px;padding:6px 10px;min-height:31px;cursor:pointer;font-size:10px;color:#82987b;border-radius:18px;background:#f1f6ed;border:1px solid #e0eadb;transition:background .2s}
.count-picker summary::-webkit-details-marker{display:none}
.count-picker summary strong{font-size:12px;font-weight:600;color:#35674b;font-variant-numeric:tabular-nums}
.count-picker-label{white-space:nowrap}
.count-picker summary .icon{width:12px;height:12px;transition:transform .2s}
.count-picker[open] summary .icon{transform:rotate(180deg)}
.count-picker[open] summary{background:#e8f0e2}
.count-popover{position:absolute;z-index:20;top:calc(100% + 9px);left:0;width:260px;padding:17px 18px 11px;border:1px solid #e4eade;border-radius:18px;background:#fff;box-shadow:0 12px 35px #143b2c16;animation:count-pop-in .2s ease}
.count-popover-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:11px;color:#97a18f}
.count-popover-heading label{margin:0;font-size:11px}
.count-popover output{color:#356e50;font-size:12px;font-variant-numeric:tabular-nums}
.dashboard #profile-limit{display:block;width:100%;min-width:0;height:20px;min-height:20px;padding:0;margin:0;background:transparent;border:0;box-shadow:none;accent-color:#28573d;cursor:pointer;appearance:auto}
.dashboard #profile-limit::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,#28573d var(--range-progress,24.62%),#f0f2ed var(--range-progress,24.62%))}
.dashboard #profile-limit::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;border-radius:50%;background:#28573d;margin-top:-6.5px;box-shadow:0 2px 5px #28573d25}
.dashboard #profile-limit{-webkit-appearance:none}
.count-stops{position:relative;display:block;height:29px;padding:0;margin-top:4px}
.count-stops button{position:absolute;left:calc(var(--stop-percent) + var(--thumb-offset));transform:translateX(-50%);border:0;background:transparent;color:#9ca493;font-size:10px;min-height:25px;padding:7px 0 0;min-width:23px;box-shadow:none}
.count-stops button::before{content:'';position:absolute;top:2px;left:50%;width:3px;height:3px;border-radius:50%;background:#c3cebc;transform:translateX(-50%)}
.count-stops button[aria-pressed=true]{color:#376e50}
.count-stops button[aria-pressed=true]::before{background:#376e50}
.count-popover>p{font-size:9px;line-height:1.5;color:#acb4a4;margin:7px 0 0}
@keyframes count-pop-in{from{opacity:0;transform:translateY(-5px) scale(.97)}to{opacity:1;transform:none}}
.follow-add-form{display:flex;gap:10px;margin:15px 0 9px}
.follow-add-form input{flex:1;min-width:0;font-size:12px;min-height:40px}
.follow-add-form button{min-height:40px;font-size:12px;flex-shrink:0}
.follow-note{color:#98a28f;font-size:11px;line-height:1.7;margin:0 0 22px}
.follow-tabs{display:flex;gap:5px;align-items:center;margin:0 0 15px}
.follow-tabs button{min-height:32px;border:0;background:transparent;border-radius:9px;font-size:12px;color:#8c9b81;padding:6px 12px;box-shadow:none}
.follow-tabs button[aria-selected=true]{background:#eaf0e4;color:#325c42}
.follow-tabs span{font-variant-numeric:tabular-nums;font-size:10px;margin-left:4px}
.follow-authors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.follow-author-card{display:flex;gap:12px;align-items:flex-start;padding:17px 14px;border:1px solid #e7ecdf;border-radius:14px;background:#fafbf7;min-width:0}
.follow-author-avatar{display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;color:#789379;background:#e4eddf;border-radius:12px;font-size:17px}
.follow-author-copy{min-width:0;flex:1}
.follow-author-copy strong{display:block;font-size:13px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.follow-author-copy p{font-size:10px;line-height:1.6;color:#94a28a;margin:5px 0 9px}
.follow-author-actions{display:flex;flex-wrap:wrap;gap:8px}
.follow-author-actions button,.follow-item-ignore{border:0;background:transparent;color:#83a078;padding:3px 0;min-height:26px;font-size:10px;box-shadow:none}
.follow-author-actions button:hover,.follow-item-ignore:hover{color:#2f6345}
.follow-author-copy .follow-warning{color:#b09062}
.follow-item{display:flex;align-items:center;gap:13px;padding:15px 4px;border-bottom:1px solid #edf0e8}
.follow-item-choice{display:flex;align-items:center;gap:10px;flex-shrink:0}
.follow-item-choice input{width:14px;height:14px;min-height:14px;accent-color:#28583f}
.follow-item-copy{min-width:0;flex:1}
.follow-item-copy strong{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.follow-item-copy p{font-size:10px;color:#96a28c;margin:5px 0 0}
.follow-selection{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding:12px 14px;border:1px solid #e4ebdc;border-radius:12px;background:#f4f7ef;font-size:12px}
.follow-selection button{font-size:12px;min-height:35px}
.dashboard .follow-items .video-cover{width:42px;height:52px;flex-basis:42px}
.link-guide::backdrop{background:#e9eee348;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:guide-focus-in .26s ease both}
.guide-card{overflow:hidden;box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #8baaa647,0 11px 27px #27433224;background:linear-gradient(130deg,#fffffff5,#f1f8f4ed 48%,#deede8f0);border-color:#fffffff5;-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}
.guide-card::before{content:'';position:absolute;inset:1px;z-index:3;border:1px solid #ffffff8c;border-right-color:#b2d5cd9c;border-bottom-color:#94b9b17d;border-radius:inherit;box-shadow:inset 2px 0 3px #fff9,inset -2px -1px 4px #97bdb33d;pointer-events:none}
.guide-card[data-active=true]{box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #8baaa647,0 12px 30px #24452f28}
.guide-glass-sheen{position:absolute;inset:-4px;z-index:4;border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(108deg,transparent 29%,#d1f4ee24 35%,#fff9 43%,#e4ffff40 48%,transparent 55%),radial-gradient(ellipse at 45% 35%,#e0fff84d,transparent 64%);will-change:transform,opacity}
@media(min-width:861px){
 .guide-card,.guide-card[data-active=true]{background:#fafafa;border-color:#fff;box-shadow:inset 0 1px 1px #fff,0 10px 26px #00000014;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
 .guide-card::before{border-color:#ffffffb3;border-right-color:#bdbdbd33;border-bottom-color:#bdbdbd33;box-shadow:inset 1px 0 2px #fff9,inset -1px -1px 2px #00000008}
 .guide-image{background:#f5f5f5;box-shadow:0 0 0 1px #0000000c}
 .guide-deck:focus-visible .guide-card[data-active=true]{outline-color:#8c8c8c}
}
@media(max-width:860px){
 .dashboard .workspace-main{width:100%;padding:15px 17px 91px;margin:0}
 .dashboard.guide-is-open>:is(.workspace-sidebar,.workspace-page,.workspace-topbar,.workspace-main,.mobile-tabs){filter:blur(2px)}
 .guide-card.guide-page-leaf{left:calc(50% - var(--mobile-card-width,230px)/2);z-index:25;transition:none;transform:none;opacity:1;pointer-events:none;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 7px 24px #18352633}
 .guide-deck .guide-card{transition:none}
 .dashboard .guide-swipe-hint{font-size:11px!important;color:#58745c;letter-spacing:.02em;margin-top:12px}
 .dashboard .workspace-topbar{padding:12px 17px}
 .extraction-tabs{align-self:center;margin:4px 0 17px;gap:4px;padding:0}
 .extraction-tabs a{font-size:12px;padding:9px 12px;min-height:36px}
 .extract-welcome{margin:2px 0 15px;min-height:39px}
 #welcome-heading{font-size:clamp(11px,calc((100vw - 56px)/22),19px);min-height:31px;letter-spacing:-.35px}
 .dashboard:not(.extraction-demo) #welcome-heading{font-size:clamp(12px,calc((100vw - 48px)/19),19px);letter-spacing:-.01em}
 .dashboard .input-progress-shell,.dashboard .profile-progress-shell{padding:21px 10px 10px;height:180px;min-height:180px;border-radius:17px}
 .dashboard #share-text,.dashboard #profile-url{font-size:12px;height:98px;min-height:98px;padding:4px 44px 4px 4px}
 .dashboard #share-text::placeholder,.dashboard #profile-url::placeholder{font-size:11px}
 .dashboard .input-heading{right:16px;top:5px}
 .dashboard :is(#extract-button,#profile-load){width:38px;min-width:38px;max-width:38px;height:36px;min-height:36px;padding:5px 6px}
 .dashboard :is(#extract-button,#profile-load) .motion-button-icon{width:24px;height:24px;flex-basis:24px}
 .dashboard :is(#profile-extract,#follows-extract){width:80px;min-width:80px;max-width:80px;font-size:11px;height:36px;min-height:36px;padding:6px 8px}
 .dashboard .link-guide-trigger{font-size:10px;margin-top:8px;min-height:27px}
 .dashboard .extract-view{margin-bottom:21px}
 .dashboard .section-heading h2{font-size:13px}
 .count-picker summary{width:118px;height:30px;justify-content:center;gap:4px;font-size:10px;padding:5px 8px;min-height:30px;box-sizing:border-box;white-space:nowrap}
 .count-picker summary strong{font-size:11px;min-width:18px;text-align:center}
 .count-picker summary .icon{width:10px;height:10px;flex:0 0 10px}
 .count-popover{width:242px;padding:15px 16px 10px}
 .follow-authors{grid-template-columns:1fr}
 .follow-add-form{gap:7px}
 .follow-add-form button{font-size:11px;padding:6px 10px}
 .follow-note{font-size:10px;margin-bottom:15px}
 .follow-tabs button{font-size:11px;padding:6px 10px}
}
@media(prefers-reduced-motion:reduce){:is(.welcome-fixed-letter,.welcome-letter,.welcome-caret){animation:none!important}.welcome-caret{display:none}.welcome-glow{opacity:0!important;transition:none!important}.dashboard .input-progress-shell::after{animation:none}.count-popover{animation:none}.link-guide::backdrop{animation:none}}

.dashboard .recent-read-card{gap:4px;padding:0 7px 0 0;cursor:default}
.dashboard .recent-read-open{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:13px 0 13px 12px;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none}
.dashboard .favorite-star{position:relative;display:grid;place-items:center;flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:6px;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#8f9d85;touch-action:manipulation}
.dashboard .favorite-star .icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;transition:color .18s,fill .18s}
.dashboard .favorite-star:hover{background:#eaf0e488}
.dashboard .favorite-star[aria-pressed=true]{color:#e2ac30}
.dashboard .favorite-star[aria-pressed=true] .icon{fill:currentColor;stroke:#d59a21}
.favorite-star[data-pop=true] .icon{animation:favorite-pop .58s cubic-bezier(.16,.75,.3,1)}
.favorite-star[data-pop=true]::after{content:'';position:absolute;inset:7px;border:1px solid #e1b64a;border-radius:50%;animation:favorite-ring .58s ease-out both;pointer-events:none}
@keyframes favorite-pop{0%{transform:scale(.6) rotate(-16deg)}35%{transform:scale(1.35) rotate(8deg)}65%{transform:scale(.92) rotate(-3deg)}100%{transform:none}}
@keyframes favorite-ring{0%{transform:scale(.55);opacity:.8}100%{transform:scale(1.9);opacity:0}}
.dashboard .recent-record-link{padding-right:40px}
.dashboard .recent-record>.favorite-star{position:absolute;right:0;top:12px}
.dashboard .record-actions .favorite-star{padding:5px;flex-basis:30px;min-width:30px;width:30px;height:30px;min-height:30px}
.all-read-list{margin-bottom:18px}
.favorite-kinds{display:flex;align-items:center;gap:23px;border-bottom:1px solid #e4eadd;margin:18px 0 20px}
.dashboard .favorite-kinds button{position:relative;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0 0 11px;min-height:34px;font-size:13px;color:#93a087;white-space:nowrap}
.favorite-kinds button[aria-selected=true]{color:#245539}
.favorite-kinds button[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#356c4b;border-radius:2px}
.favorite-kinds span{font-size:10px;margin-left:3px;opacity:.75;font-variant-numeric:tabular-nums}
.favorite-jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.favorite-job{display:flex;align-items:center;gap:6px;min-width:0;padding:11px 9px 11px 12px;border:1px solid #e3eadb;border-radius:14px;background:#fbfcf8}
.favorite-job-link{display:flex;align-items:center;gap:11px;min-width:0;flex:1;color:#17483e;text-decoration:none}
.favorite-job .video-cover{flex:0 0 43px;width:43px;height:58px;border-radius:8px}
.dashboard #profile-follow{display:contents}
.dashboard #profile-follow[hidden]{display:none}
.dashboard .follow-author-card .video-cover.follow-author-avatar{width:40px;min-width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#edf2e7;box-shadow:0 0 0 1px #dfe8d9}
.follow-author-avatar img{object-fit:cover;border-radius:50%}
.follow-author-avatar .icon{width:20px;height:20px;color:#8a9c80}
.dashboard .section-heading>a{font-size:11px;color:#8d9d83;gap:5px;font-weight:400}
.dashboard :is(#history-all,#profile-recent-all){font-size:11px;color:#8d9d83}
.dashboard .section-heading>a .icon{width:13px;height:13px;flex-basis:13px}
.dashboard[data-view=video] #workspace-history{padding:0;border:0;background:transparent;box-shadow:none}
.recent-video-grid{overflow:visible}
.profile-recent-list>.records-empty,.favorite-jobs>.records-empty{grid-column:1/-1}
.dashboard .recent-record.recent-read-card{padding:0 7px 0 0;gap:4px;border:1px solid #e1e9dc;min-height:106px}
.dashboard .recent-record-link.recent-read-open{display:flex;gap:11px;padding:13px 0 13px 12px;grid-template-columns:none;grid-template-rows:none}
.dashboard .recent-record.recent-read-card .video-cover{width:44px;min-width:44px;height:64px;flex:0 0 44px;border-radius:8px}
.dashboard .recent-record.recent-read-card>.favorite-star{position:relative;right:auto;top:auto}
@media(max-width:860px){.dashboard .recent-read-card{padding:0 7px 0 0;min-height:85px}.dashboard .recent-read-open{padding:10px 0 10px 12px;gap:10px}.favorite-jobs{grid-template-columns:1fr}.favorite-kinds{gap:18px;margin:13px 0 17px}.dashboard .favorite-kinds button{font-size:12px}.dashboard .recent-record>.favorite-star{top:9px}.dashboard .section-heading>a{font-size:11px;gap:4px}.dashboard .section-heading>a .icon{width:13px;height:13px}}
@media(max-width:860px){.profile-recent-list:not(.all-read-list)>.recent-read-card:nth-child(n+4){display:none}.dashboard .recent-record.recent-read-card{min-height:85px}.dashboard .recent-record-link.recent-read-open{padding:10px 0 10px 12px;gap:10px}.dashboard .recent-record.recent-read-card .video-cover{width:42px;min-width:42px;height:60px;flex-basis:42px}.dashboard .recent-record.recent-read-card>.favorite-star{top:auto}}
@media(prefers-reduced-motion:reduce){.favorite-star .icon{transition:none!important;animation:none!important}.favorite-star::after{display:none}}

/* Workspace ergonomics: shared desktop, touch and keyboard foundations. */
.dashboard{--workspace-nav-height:calc(68px + env(safe-area-inset-bottom));--muted:#687a70}
.dashboard .workspace-main{width:calc(100% - 216px);max-width:1180px;margin-left:max(216px,calc(216px + (100vw - 216px - 1180px)/2));min-width:0}
.dashboard .workspace-topbar{background:#f5f5eeed;border-bottom:1px solid #e3e8e180}
.dashboard .workspace-sidebar{overflow-y:auto;overscroll-behavior:contain}
.dashboard .workspace-skip{position:fixed;top:10px;left:16px;z-index:100;padding:12px 18px;border-radius:10px;background:#17483e;color:white;transform:translateY(-160%)}
.dashboard .workspace-skip:focus{transform:none}
.dashboard .sidebar-close{display:none}
.dashboard :is(.recent-read-name,.record-title,.profile-title){overflow-wrap:anywhere}
.dashboard :is(.recent-read-count,.record-meta,.profile-duration,.profile-excerpt){color:#687a70}
.dashboard :is(.recent-read-time,.profile-pending,.follow-note,.follow-author-copy>p){color:#718171}
.dashboard :is(#history-all,#profile-recent-all,.section-heading>a,.link-guide-trigger){color:#617b68}
.dashboard :is(.recent-read-open,.video-record,.workspace-navigation a,.mobile-tabs a){-webkit-tap-highlight-color:transparent}
.dashboard .recent-read-card{transition:border-color .18s,background .18s}
@media(hover:hover){.dashboard .recent-read-card:hover{border-color:#a7c1aa;background:#fbfdf9}}
.dashboard .input-progress-shell:focus-within{outline:2px solid #65977e;outline-offset:3px}
.dashboard :is(#share-text,#profile-url){font-size:15px;line-height:1.75}
.dashboard :is(#share-text,#profile-url)::placeholder{font-size:13px;color:#748575}
.dashboard .workspace-main :is(a,button,input,textarea,select,summary){scroll-margin-block:100px}
.dashboard .account-menu>summary{min-height:44px}
.dashboard :is(.account-sheet,.result-more-menu){overscroll-behavior:contain}
.dashboard dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.dashboard .detail-toolbar{position:sticky;top:76px;z-index:22;background:#fff;padding-block:10px;border-bottom:1px solid #e3e8e1;margin-bottom:20px}
.dashboard[data-view=detail] .transcript{max-width:78ch;line-height:2;overflow-wrap:anywhere}
.dashboard .text-editor textarea{font-size:16px;line-height:1.9}
.dashboard .favorite-kinds button:focus-visible,.dashboard .follow-tabs button:focus-visible{outline:2px solid #4a8c76;outline-offset:3px}
@media(min-width:861px) and (max-width:1100px){
 .dashboard .profile-recent-list,.dashboard .favorite-jobs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard .workspace-main{padding-inline:28px}
}
@media(max-width:860px){
 .dashboard .workspace-main{width:100%;max-width:none;margin:0;padding:18px 17px calc(var(--workspace-nav-height) + 28px)}
 .dashboard .workspace-topbar{min-height:68px;padding:10px 17px;padding-top:max(10px,env(safe-area-inset-top))}
 .dashboard .workspace-sidebar{width:min(300px,calc(100vw - 48px));padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .dashboard .sidebar-close{display:block;align-self:flex-end;min-width:44px;min-height:44px;margin-bottom:8px;font-size:13px;color:#456c57}
 .dashboard[data-menu-open=true]{overflow:hidden}
 .dashboard .icon-button{min-width:44px;min-height:44px}
 .dashboard .extraction-tabs{width:100%;gap:4px;margin:0 0 18px}
 .dashboard .extraction-tabs a{flex:1;min-width:0;min-height:44px;padding:10px 6px;font-size:13px}
 .dashboard .mobile-tabs{min-height:var(--workspace-nav-height);padding:6px max(17px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));gap:8px}
 .dashboard .mobile-tabs a{min-height:52px;font-size:12px;color:#6e8071}
 .dashboard .mobile-tabs a[aria-current=page]::after{bottom:0}
 .dashboard :is(input:not([type=checkbox]):not([type=range]),textarea,select){font-size:16px!important}
 .dashboard :is(#share-text,#profile-url)::placeholder{font-size:13px;color:#748575}
 .dashboard :is(.input-progress-shell,.profile-progress-shell){height:194px;min-height:194px;padding-top:26px}
 .dashboard :is(#share-text,#profile-url){height:100px;min-height:100px;padding-right:44px}
 .dashboard .input-progress-shell .input-actions{padding-top:8px}
 .dashboard :is(#extract-button,#profile-load){width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px}
 .dashboard .input-heading{right:14px;top:0}
 .dashboard .input-heading button{min-width:44px;min-height:44px;font-size:12px;padding:6px;color:#617b68}
 .dashboard .link-guide-trigger{min-height:44px;font-size:12px;margin-top:6px}
 .dashboard :is(.section-heading>a,#history-all,#profile-recent-all){min-height:44px;font-size:12px}
 .dashboard .section-heading{gap:12px;margin-bottom:8px}
 .dashboard .section-heading h2{font-size:15px}
 .dashboard .recent-read-name{font-size:14px;line-height:1.6}
 .dashboard .recent-read-count{font-size:12px;line-height:1.6}
 .dashboard .recent-read-time{font-size:11px;line-height:1.6}
 .dashboard .recent-record.recent-read-card{min-height:98px}
 .dashboard .favorite-star,.dashboard .record-actions>.favorite-star{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px}
 .dashboard .favorite-star .icon{width:19px;height:19px}
 .dashboard .favorite-kinds{gap:4px;justify-content:space-between}
 .dashboard .favorite-kinds button{flex:1;min-height:44px;padding:8px 3px;font-size:13px;white-space:nowrap}
 .dashboard .follow-tabs button{min-height:44px;font-size:13px}
 .dashboard .follow-note{font-size:12px;line-height:1.8}
 .dashboard :is(.follow-author-actions button,.follow-author-actions a,.follow-item-ignore){min-height:44px;display:inline-flex;align-items:center;font-size:12px}
 .dashboard .follow-author-card{gap:10px;padding:15px 10px}
 .dashboard .follow-author-copy{min-width:0}
 .dashboard .follow-author-copy>strong{font-size:14px;overflow-wrap:anywhere}
 .dashboard .follow-author-copy>p{font-size:12px;line-height:1.7}
 .dashboard .follow-add-form{flex-wrap:wrap}
 .dashboard .follow-add-form input{flex-basis:190px;min-height:44px}
 .dashboard .follow-add-form button{min-height:44px;font-size:13px;margin-left:auto}
 .dashboard :is(.history-filters input,.history-filters select,.history-filters button){min-height:44px}
 .dashboard .profile-selection-controls{gap:12px}
 .dashboard .profile-selection-controls button{min-height:44px;font-size:12px}
 .dashboard :is(#profile-extract,#follows-extract){width:auto;max-width:none;min-width:96px;min-height:44px;height:auto;font-size:13px}
 .dashboard #profile-results{padding-bottom:100px}
 .dashboard .profile-selection-bar,.dashboard .follow-selection{position:sticky;bottom:calc(var(--workspace-nav-height) + 10px);left:auto;right:auto;z-index:24;gap:12px;padding:12px;margin-top:16px;background:#fffffff5;border:1px solid #dce6da;border-radius:13px;box-shadow:0 4px 24px #173c3612;backdrop-filter:blur(16px)}
 .dashboard #profile-selected{max-width:none;font-size:13px}
 .dashboard .profile-title{font-size:14px;white-space:normal;line-height:1.65}
 .dashboard :is(.profile-duration,.profile-excerpt,.profile-pending){font-size:12px}
 .dashboard .profile-open{font-size:13px;min-height:44px;align-items:center}
 .dashboard .count-picker summary{position:relative}
 .dashboard .count-picker summary::after{content:'';position:absolute;inset:-7px 0}
 .dashboard .count-popover{max-width:calc(100vw - 60px)}
 .dashboard .count-popover-heading,.dashboard .count-popover-heading label,.dashboard .count-popover output{font-size:12px}
 .dashboard #profile-limit{height:32px;min-height:32px}
 .dashboard .count-stops{height:40px}
 .dashboard .count-stops button{min-height:40px;min-width:32px;font-size:12px}
 .dashboard .count-popover>p{font-size:11px}
 .dashboard .detail-toolbar{top:68px;gap:8px;padding-block:8px}
 .dashboard .detail-toolbar :is(.task-back,.result-actions>button,.result-more>summary){min-width:44px;min-height:44px;font-size:13px}
 .dashboard[data-view=detail] .task-detail-shell{padding:14px}
 .dashboard[data-view=detail] .result-overview{--overview-size:120px;gap:12px}
 .dashboard[data-view=detail] .result-metadata{height:auto;min-height:120px;grid-template-rows:auto auto}
 .dashboard .metadata-field{grid-template-rows:24px auto;padding:7px;gap:5px}
 .dashboard .metadata-label{font-size:11px;line-height:1.5}
 .dashboard .metadata-copy{min-width:36px;height:24px;min-height:24px;line-height:24px;font-size:12px}
 .dashboard .metadata-copy::after{inset:-5px -3px}
 .dashboard[data-view=detail] .metadata-text{font-size:13px;line-height:1.6;max-height:82px}
 .dashboard[data-view=detail] .transcript{font-size:16px;line-height:1.95}
 .dashboard .account-sheet{width:355px;max-width:calc(100vw - 34px);max-height:calc(100dvh - 154px - env(safe-area-inset-bottom))}
 .dashboard .minute-plan button{font-size:13px;min-height:44px}
 .dashboard .workspace-footer{font-size:11px}
}
@media(max-width:520px){
 .dashboard .records-table tr{gap:8px 12px;padding:18px 0;grid-template-columns:minmax(0,1fr) auto}
 .dashboard .records-table .record-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.6}
 .dashboard .records-table .record-meta{font-size:12px;line-height:1.7;margin-top:5px}
 .dashboard .records-table td:nth-child(2){grid-column:1;grid-row:2}
 .dashboard .records-table .record-date{display:block;grid-column:2;grid-row:2;align-self:center;font-size:11px;color:#718171;white-space:nowrap}
 .dashboard .records-table td:last-child{grid-column:1/-1;grid-row:3}
 .dashboard .record-actions{justify-content:flex-end;gap:10px;min-height:44px}
 .dashboard .record-actions button,.dashboard .record-open{min-height:44px;font-size:13px}
 .dashboard .status-label{max-width:none;font-size:12px}
}
@media(max-width:360px){
 .dashboard .workspace-main{padding-inline:13px}
 .dashboard .workspace-topbar{padding-inline:13px}
 .dashboard .detail-toolbar .result-actions{gap:3px}
 .dashboard .detail-toolbar .result-actions>button,.dashboard .detail-toolbar .result-more>summary{padding-inline:6px;font-size:12px}
 .dashboard[data-view=detail] .result-overview{--overview-size:88px;gap:10px}
 .dashboard .favorite-kinds button{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.dashboard .recent-read-card{transition:none}}

.library-intro{color:#666;line-height:1.6;margin:0;font-size:13px}
.library-search-form{display:grid;gap:12px;margin-bottom:18px}
.library-scope{display:flex;gap:8px;flex-wrap:wrap}
.library-scope button{border:1px solid var(--line);border-radius:9px;padding:9px 18px;background:#fff;color:#555;min-height:44px}
.library-scope button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
.library-search-row{display:flex;gap:10px}
.library-search-row input{flex:1;min-width:0;width:100%;padding:11px 13px;border-color:var(--line);font-size:15px}
.library-search-row button{flex:none}
.library-advanced-details{margin:0}
.library-advanced-details summary{color:#60645d;font-size:13px;cursor:pointer;width:fit-content;min-height:32px;line-height:32px}
.library-advanced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:16px 0}
.library-field{display:grid;gap:7px;align-content:start;min-width:0}
.library-field label{font-size:13px;color:#555;margin:0}
.library-field input,.library-field select{width:100%;min-width:0;max-width:100%;min-height:44px;font:inherit;font-size:14px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff}
.library-field select:focus-visible{outline:3px solid #86aafa;outline-offset:2px}
.library-search-mode{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.library-search-mode select{width:auto;min-width:128px}
.library-search-mode .library-intro{flex:1;min-width:180px}
.library-field select:disabled{color:#777;background:#f6f6f6}
.library-advanced-details>button{font-size:13px;margin-bottom:8px}
.library-results{display:grid;border-top:1px solid var(--line);margin-bottom:18px}
.library-results:empty{border:0;margin:0}
.library-card{border-bottom:1px solid var(--line);padding:19px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 24px;align-items:center;background:#fff}
.library-card-content{min-width:0;display:grid;gap:7px}
.library-card h3{font-size:16px;margin:0;font-weight:600;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.library-card p{margin:0;line-height:1.65;overflow-wrap:anywhere}
.library-source{color:#6b7068;font-size:13px}
.library-card .library-snippet{color:#464b42;font-size:14px;white-space:pre-wrap}
.library-hit-location{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.library-hit-link{color:#3d5a2e;background:none;border:0;border-radius:4px;padding:6px 0;min-height:36px;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.library-hit-link:focus-visible{outline:3px solid #86aafa;outline-offset:3px}
.library-hit-time{color:#69725f;font-size:12px;overflow-wrap:anywhere}
.library-match{font-size:12px;color:#616a58}
.library-card-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:210px;min-width:132px}
.library-card-actions button{font-size:14px;min-height:44px}
.library-row-buttons{display:flex;align-items:center;gap:8px}
.library-card-actions .library-favorite{width:44px;padding:7px;font-size:24px;line-height:1;border-color:transparent;color:#636b59}
.library-card-actions .library-favorite[aria-pressed=true]{color:#4c633b;background:#f0f4eb}
.library-badge{font-size:12px;color:#686d63;text-align:right;line-height:1.6;overflow-wrap:anywhere}
.library-detail-dialog{width:min(760px,calc(100vw - 36px));max-height:85vh}
.library-detail-dialog pre{font-family:inherit;font-size:16px;line-height:1.8;white-space:pre-wrap;word-break:break-word;max-height:50vh;overflow:auto;background:#f6f6f6;border-radius:12px;padding:20px}
.library-detail-dialog h2{overflow-wrap:anywhere}
.library-hit-note{font-size:13px;line-height:1.7;color:#536044}
.library-hit-highlight{color:inherit;background:#f4e9a8;border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone;scroll-margin-block:24px}
.library-hit-highlight:focus-visible{outline:2px solid #73641f;outline-offset:3px}
.library-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:#666}
.library-feedback>span:first-child{margin-right:4px}
.library-feedback button{font-size:13px;padding:7px 11px}
.library-feedback button[aria-pressed=true]{background:#edf2e7;border-color:#aebda3;color:#385328}
#library-detail-feedback-state:not(:empty){flex-basis:100%;font-size:12px}
.library-view #library-state:empty{display:none}
.library-view button:disabled{cursor:default;opacity:.6}
@media(max-width:600px){
  .library-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:17px 0}
  .library-card-actions{flex-direction:row;align-items:center;justify-content:space-between;max-width:none;min-width:0;gap:12px}
  .library-card-actions button{flex:none}
  .library-row-buttons{flex:none;gap:4px}
  .library-badge{text-align:left}
  .library-advanced{grid-template-columns:minmax(0,1fr)}
  .library-search-row{gap:8px}
  .library-search-row button{padding-left:14px;padding-right:14px}
  .library-search-row input{font-size:16px}
  .library-detail-dialog pre{padding:14px;font-size:15px}
}

.library-context-toggle{justify-self:start;border:0;padding:5px 0;background:none;color:#3d5a2e;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.library-context-toggle:focus-visible,.library-duplicate-details summary:focus-visible{outline:3px solid #86aafa;outline-offset:3px}
.library-context-warning,.library-duplicates{font-size:12px;color:#69725f}
.library-duplicate-details{font-size:13px;min-width:0}
.library-duplicate-details summary{cursor:pointer;min-height:36px;line-height:36px;color:#3d5a2e}
.library-duplicate-list{display:grid;gap:10px;margin:8px 0;padding-left:20px}
.library-duplicate-list li{overflow-wrap:anywhere}
.library-duplicate-list a{color:#3d5a2e}
.library-duplicate-list button{margin-left:10px;min-height:44px;padding:6px 9px;font-size:12px}
.library-context-note{font-size:12px;color:#73766f;line-height:1.7;margin:0 0 12px}

/* The existing author and collection lists open in one focused, reversible view. */
.dashboard.profile-record-open { overflow:hidden; }
.dashboard .profile-record-dialog { width:min(1180px,calc(100% - 48px)); height:min(680px,calc(100dvh - 36px)); max-width:none; max-height:calc(100dvh - 36px); margin:auto; padding:20px 26px 22px; border:1px solid #d8e2d5; border-radius:20px; background:#f5f5ee; color:#17483e; box-shadow:0 28px 100px #163c3430; }
.profile-record-dialog::backdrop { background:#25352e32; backdrop-filter:blur(7px); }
.profile-record-top { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; }
.dashboard .profile-record-top button { min-height:32px; padding:3px 0; font-size:12px; color:#617d6b; background:transparent; border:0; }
.dashboard .profile-record-dialog #profile-results { margin:0; padding:0; }
.profile-record-dialog .profile-result-heading { display:flex; align-items:center; gap:16px; padding:22px 24px 18px; border:1px solid #e0e7dc; border-bottom:0; border-radius:20px 20px 0 0; background:#fff; }
.profile-record-dialog .profile-result-heading > div:not(.profile-record-avatar) { min-width:0; flex:1; }
.profile-record-kind { margin:0 0 5px; color:#8a998d; font-size:11px; }
.profile-record-dialog .profile-author-line h3 { font-size:23px; line-height:1.4; margin:0; }
.profile-record-dialog .profile-record-avatar .video-cover { width:56px; height:56px; min-width:56px; border-radius:50%; }
.profile-record-dialog .profile-read-info { margin:7px 0 0; font-size:11px; }
.profile-record-dialog #profile-notice:empty { display:none; }
.profile-record-stats { display:flex; gap:30px; padding:15px 24px 18px; background:#fff; border:1px solid #e0e7dc; border-top:1px solid #edf0e8; border-radius:0 0 20px 20px; }
.profile-record-stats > div { display:flex; align-items:baseline; gap:8px; color:#809080; font-size:11px; }
.profile-record-stats strong { font-size:22px; color:#2c5143; font-weight:600; }
.profile-record-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:19px 0 13px; }
.profile-record-filters { display:flex; gap:4px; padding:4px; border-radius:11px; background:#eaf0e5; }
.dashboard .profile-record-filters button { border:0; border-radius:8px; padding:8px 14px; min-height:35px; color:#768674; background:transparent; font-size:12px; }
.dashboard .profile-record-filters button[aria-pressed=true] { color:#234b3c; background:#fff; font-weight:600; }
.profile-record-dialog #profile-filter { max-width:260px; width:45%; height:38px; min-height:38px; font-size:12px; background:#fff; }
.dashboard .profile-record-dialog .profile-selection-controls { display:flex; align-items:center; gap:15px; margin:0 0 13px; padding:10px 13px; border:1px solid #e0e7dd; border-radius:12px; background:#fff; }
.dashboard .profile-record-dialog .profile-selection-controls button { min-height:30px; font-size:11px; }
.dashboard .profile-record-dialog #profile-list { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; min-height:300px; align-content:start; margin:0; }
.profile-record-dialog #profile-list > .records-empty { grid-column:1/-1; display:grid; place-content:center; min-height:300px; margin:0; padding:20px; border-radius:14px; background:#fff; color:#879481; font-size:12px; }
.dashboard .profile-record-dialog .profile-item { display:flex; flex-direction:column; gap:0; min-width:0; padding:3px; border:1px solid #e0e6da; border-radius:16px; background:#fff; overflow:hidden; }
.dashboard .profile-record-dialog .profile-item[data-selected=true] { box-shadow:0 0 0 2px #698b79; }
.dashboard .profile-record-dialog .profile-choice { display:block; width:100%; min-height:0; }
.dashboard .profile-record-dialog .profile-item .video-cover { width:100%; height:auto; aspect-ratio:3/4; flex:none; border-radius:12px; }
.dashboard .profile-record-dialog .profile-choice input { position:absolute; width:17px; height:17px; top:9px; left:9px; }
.profile-work-duration { position:absolute; bottom:8px; right:8px; padding:2px 5px; border-radius:5px; background:#1d352ccc; color:white; font-size:10px; }
.dashboard .profile-record-dialog .profile-identity { padding:10px 8px 5px; width:100%; }
.dashboard .profile-record-dialog .profile-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; font-size:12px; line-height:1.65; min-height:40px; font-weight:600; }
.profile-record-dialog .profile-duration { font-size:10px; margin:6px 0 0; color:#879481; }
.profile-record-dialog .profile-excerpt { display:none; }
.profile-work-footer { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:10px; }
.profile-record-dialog .profile-pending { margin:0; padding:3px 5px; border-radius:5px; color:#96824f; background:#f4f0e5; font-size:10px; white-space:nowrap; }
.dashboard .profile-work-extract { padding:5px 0; border:0; background:transparent; color:#2b6350; min-height:30px; font-size:11px; white-space:nowrap; }
.dashboard .profile-record-dialog .profile-selection-bar { position:sticky; bottom:-22px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding:12px 14px; border:1px solid #dce6da; border-radius:12px; background:#fffffff5; box-shadow:none; }
.profile-record-dialog #profile-selected { margin:0; font-size:12px; }
.dashboard .profile-record-dialog #profile-extract { min-height:36px; font-size:12px; padding:8px 15px; }
.dashboard .profile-record-dialog .profile-selection-controls > .profile-selection-bar { position:static; flex:1; padding:0; border:0; margin:0 0 0 auto; background:transparent; }
.profile-record-mode { display:flex; align-items:center; gap:8px; margin-left:auto; color:#63746b; font-size:11px; white-space:nowrap; }
.profile-record-mode select { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.profile-mode-choices { display:inline-flex; align-items:center; gap:3px; padding:3px; border:1px solid #d8e2d5; border-radius:11px; background:#f2f6f1; }
.dashboard .profile-mode-choices .profile-mode-choice { min-height:34px; padding:7px 13px; border:0; border-radius:8px; background:transparent; color:#607468; font-size:12px; font-weight:500; }
.dashboard .profile-mode-choices .profile-mode-choice[aria-pressed=true] { background:#fff; color:#164b39; font-weight:650; box-shadow:0 1px 4px #183b2a16; }
.dashboard .profile-mode-choices .profile-mode-choice:focus-visible { outline:2px solid #44886b; outline-offset:2px; }
.dashboard .profile-record-dialog { background:#f7f9f6; border-color:#e1e9e2; }
.dashboard .profile-record-dialog #profile-list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; user-select:none; -webkit-user-select:none; }
.dashboard .profile-record-dialog .profile-item { border-color:#dfe8df; border-radius:17px; box-shadow:0 2px 9px #234f3710; }
.dashboard .profile-record-dialog .profile-item[data-selected=true] { background:#f4faf5; border-color:#32815d; box-shadow:0 0 0 2px #32815d; }
.profile-selection-rectangle { position:fixed; z-index:10001; pointer-events:none; border:1px solid #258459; border-radius:6px; background:#399a6350; }
.dashboard .profile-bulk-status { display:grid; gap:9px; padding:14px 16px; margin:0 0 16px; border:1px solid #b9d7c2; border-radius:14px; background:#f2faf4; color:#225840; }
.dashboard .profile-bulk-status[hidden] { display:none; }
.profile-bulk-status > div:first-child { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.profile-bulk-status strong { font-size:14px; font-weight:650; }
.dashboard .profile-bulk-status button { min-height:35px; border-radius:9px; background:#fff; color:#1b674a; }
.profile-bulk-fill { height:8px; overflow:hidden; border-radius:999px; background:#dbe9dd; }
.profile-bulk-fill::before { content:''; display:block; width:calc(var(--extract-progress,0) * 100%); height:100%; border-radius:inherit; background:linear-gradient(90deg,#378c62,#61bc73); transition:width .4s ease; }
.profile-bulk-status p { margin:0; font-size:12px; color:#617868; }
@media(max-width:700px) { .dashboard .profile-record-dialog .profile-selection-controls { flex-wrap:wrap; }.dashboard .profile-record-dialog .profile-selection-controls > .profile-selection-bar { flex-basis:100%; flex-wrap:wrap; }.profile-record-mode { margin-left:auto; } }
/* Keep six demo works visible without stretching the embedded home screen. */
.dashboard.extraction-demo .profile-record-dialog { height:calc(100dvh - 16px); max-height:calc(100dvh - 16px); width:calc(100% - 24px); padding:12px 16px; }
.extraction-demo .profile-record-top { margin-bottom:8px; }
.dashboard.extraction-demo .profile-record-top button { min-height:24px; }
.extraction-demo .profile-record-dialog .profile-result-heading { padding:10px 14px; }
.dashboard.extraction-demo .profile-record-dialog #profile-author { margin:0; font-size:21px; line-height:1.3; }
.extraction-demo .profile-record-kind { margin-bottom:2px; }
.extraction-demo .profile-record-stats { padding:6px 14px; }
.extraction-demo .profile-record-stats strong { font-size:19px; }
.extraction-demo .profile-record-toolbar { margin:12px 0 10px; }
.dashboard.extraction-demo .profile-record-dialog .profile-selection-controls { padding:6px 11px; margin-bottom:10px; gap:12px; }
.dashboard.extraction-demo .profile-record-dialog #profile-extract { min-height:30px; padding:5px 12px; }
.extraction-demo .profile-work-footer { margin-top:6px; }
.dashboard.extraction-demo .profile-record-dialog .profile-identity { padding:8px 6px 5px; }
.dashboard.extraction-demo .profile-record-dialog .profile-item .video-cover { max-height:170px; }
.dashboard.extraction-demo .profile-record-dialog .profile-title { min-height:36px; }
@media(max-width:860px) {
  .dashboard .profile-record-dialog { width:calc(100% - 24px); padding:14px 15px 16px; max-height:calc(100dvh - 24px); }
  .profile-record-dialog .profile-result-heading { padding:16px; gap:10px; }
  .profile-record-dialog .profile-author-line h3 { font-size:19px; }
  .profile-record-stats { padding:12px 16px 15px; justify-content:space-between; gap:10px; }
  .profile-record-stats > div { gap:5px; font-size:10px; }
  .profile-record-stats strong { font-size:19px; }
  .profile-record-toolbar { flex-wrap:wrap; gap:10px; }
  .profile-record-dialog #profile-filter { width:100%; max-width:none; }
  .profile-record-filters { width:100%; }.profile-record-filters button { flex:1; }
  .dashboard .profile-record-dialog #profile-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .dashboard .profile-record-dialog .profile-selection-bar { bottom:-16px; }
}
@media(max-width:500px) { .dashboard .profile-record-dialog #profile-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.profile-record-dialog .profile-record-avatar .video-cover { width:42px; height:42px; min-width:42px; }.dashboard .profile-work-extract { min-height:40px; } }
@media(max-width:860px) { .dashboard.extraction-demo .profile-record-dialog { position:fixed; inset:14px auto auto 50%; transform:translateX(-50%); margin:0; height:min(calc(100dvh - 28px),var(--demo-visible-height,700px)); max-height:min(calc(100dvh - 28px),var(--demo-visible-height,700px)); }.dashboard.extraction-demo .profile-record-dialog .profile-selection-controls { flex-wrap:wrap; }.dashboard.extraction-demo .profile-record-dialog .profile-selection-controls > .profile-selection-bar { flex-basis:100%; } }

#materials-state{position:fixed;right:24px;bottom:26px;z-index:35;max-width:min(420px,calc(100vw - 32px));margin:0;padding:12px 16px;border:1px solid #e1e8de;border-radius:12px;background:#fffffff5;box-shadow:0 8px 28px #29483b14;color:#496255;font-size:13px;line-height:1.7;pointer-events:none}
#materials-state:empty{display:none}
#material-items{position:relative;min-height:320px}
#material-items[aria-busy="true"]{pointer-events:none}
#material-items[aria-busy="true"]>*{visibility:hidden}
#material-items[aria-busy="true"]::before{content:'';position:absolute;top:24px;left:8px;width:82%;height:180px;border-radius:5px;background:repeating-linear-gradient(to bottom,#edf1eb 0 11px,transparent 11px 25px,#f4f6f1 25px 33px,transparent 33px 60px);pointer-events:none}
.material-retry{display:block;margin:0 auto 24px}
@media(max-width:860px){#materials-state{right:16px;bottom:calc(var(--workspace-nav-height,68px) + 12px)}}
.materials-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;align-items:start}
.material-group-panel,.material-content,.material-empty{border:1px solid #e6ebe3;background:#fff;border-radius:20px}
.material-group-panel{padding:18px 12px;position:sticky;top:105px}
.material-group-panel h2{font-size:13px;font-weight:600;color:#849287;letter-spacing:.07em;margin:4px 12px 16px}
.dashboard #material-create{position:relative;width:100%;min-height:40px;padding:8px 10px;margin:0 0 13px;font-size:13px;overflow:hidden}
.material-group-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 4px 9px 10px}
.material-group-panel-heading h2{margin:0;letter-spacing:0}
.dashboard #material-delete{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:7px;border:0;border-radius:8px;background:transparent;color:#879584;box-shadow:none}
.dashboard #material-delete[aria-pressed=true]{background:#fbf0ec;color:#a06555}
#material-delete .icon{width:17px;height:17px}
.material-group-delete-actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:9px 4px 0;margin-top:7px;border-top:1px solid #edf0e9;font-size:11px;color:#889585}
.material-group-delete-actions[hidden]{display:none}
.material-group-delete-actions>span{flex-basis:100%}
.dashboard .material-group-delete-actions button,.dashboard #material-undo{min-height:36px;padding:5px 7px;font-size:11px}
.dashboard #material-delete-confirm{color:#a06555}
.material-group-selector{display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border:1px solid #bac6b3;border-radius:4px}
.material-group-selector .icon{width:12px!important;height:12px!important;opacity:0}
.material-group[aria-checked=true] .material-group-selector{background:#407454;border-color:#407454;color:#fff}
.material-group[aria-checked=true] .material-group-selector .icon{opacity:1}
.material-group[aria-checked=true]{background:#f4f7ef}
#material-groups{display:flex;flex-direction:column;gap:6px}
.dashboard .material-group{display:flex;align-items:center;gap:9px;padding:12px;min-height:48px;text-align:left;border:0;border-radius:12px;background:transparent;color:#657267;box-shadow:none;font-size:14px;width:100%}
.dashboard .material-group[aria-current="page"]{background:#edf3ec;color:#2e5947;font-weight:650}
.dashboard .material-group:hover{background:#f4f6f1}
.material-group-name{flex:1;min-width:0;overflow-wrap:anywhere}
.material-group .icon{width:17px;height:17px;flex-basis:17px}
.material-group-badge{font-size:12px;background:#fff9;border-radius:8px;min-width:24px;text-align:center;padding:2px 5px}
.material-content{padding:20px;min-width:0;overflow:hidden;container-type:inline-size;container-name:material-content}
.material-card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
@container material-content (min-width:560px){.material-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.material-card{padding:10px 6px 10px 10px;gap:8px}
.material-card>input{flex:0 0 16px}
.material-card .video-cover{width:38px;min-width:38px;height:52px;flex-basis:38px}
.material-card .history-card-open{gap:8px}
.material-card .history-card-title{font-size:13px}
.material-card .history-card-meta{font-size:11px}
.dashboard .material-card .history-card-actions>button{flex-basis:32px;width:32px;min-width:32px;height:36px;min-height:36px;padding:6px}
.material-content>.material-toolbar{margin-top:0}
@media(max-width:860px){.dashboard #material-create{min-height:44px}.dashboard .material-card .history-card-actions>button{flex-basis:40px;width:40px;min-width:40px;height:44px;min-height:44px}.material-card{gap:6px}.material-card .video-cover{width:34px;min-width:34px;flex-basis:34px;height:48px}.material-card .history-card-title{font-size:12px}}
@media(max-width:360px){.dashboard .material-card .history-card-actions{flex-direction:column}.dashboard .material-card .history-card-actions>button{flex-basis:36px;height:36px;min-height:36px}}
.material-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.material-group-heading h2{margin:0;font-size:23px;color:#294a3c;overflow-wrap:anywhere}
.material-group-heading p{margin:7px 0 0;font-size:13px}
.material-group-heading .quiet{font-size:12px;padding:6px 8px;min-height:36px}
.material-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:22px 0 18px}
.material-toolbar button{font-size:13px;padding:10px 14px;min-height:42px}
.material-toolbar input{flex:1;min-width:160px;width:auto;margin:0;font-size:13px;min-height:42px;padding:9px 12px;background:#fafbf8}
.material-toolbar .search-orbit{flex:1;min-width:160px}
.material-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0;border-top:1px solid #edf0e9;border-bottom:1px solid #edf0e9;color:#899386;font-size:12px}
.material-selection label,.material-picker-actions label{display:flex;align-items:center;gap:6px;margin:0;font-weight:400;white-space:nowrap}
.material-selection .quiet{padding:3px 6px;font-size:12px;min-height:30px;margin-left:auto}
.material-selection .quiet+.quiet{margin-left:0}
.material-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0}
.material-table th{font-size:11px;color:#99a096;letter-spacing:.04em;font-weight:500;text-align:left;padding:15px 6px 10px;border:0;background:transparent}
.material-table th:first-child{width:30px;font-size:0}
.material-table th:nth-child(2){width:43%}
.material-table th:last-child{width:86px}
.material-table td{padding:18px 6px;border:0;border-bottom:1px solid #edf0e9;vertical-align:top;background:transparent;white-space:normal}
.material-table tr:last-child td{border-bottom:0}
.material-record{display:flex;gap:12px;color:inherit;text-decoration:none;min-width:0}
.material-record .video-cover{width:54px;height:72px;min-width:54px;border-radius:8px;margin:0;flex-shrink:0}
.material-record-words{display:flex;flex-direction:column;gap:7px;min-width:0}
.material-record strong{font-weight:550;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.material-record .hint{font-size:11px;margin:0;color:#8a958a}
.material-preview p{font-size:12px;line-height:1.85;color:#7e897d;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.material-operations button,.material-open{display:block;font-size:12px;padding:0;min-height:30px;line-height:30px;color:#497c63;text-align:left;white-space:nowrap;text-decoration:none;background:transparent;border:0}
.material-open:hover{text-decoration:underline}
.material-list-empty{font-size:14px;text-align:center;color:#8b998c;padding:55px 10px;line-height:1.8;margin:0}
.material-empty{text-align:center;padding:70px 24px;color:#809181}
.material-empty>.icon{width:44px;height:44px;color:#8ba994}
.material-empty h2{font-size:22px;color:#365443;margin:20px 0 10px}
.material-empty p{font-size:14px;margin:0 0 26px;line-height:1.8}
.material-dialog{width:min(480px,calc(100vw - 32px));border:1px solid #e2e9df;border-radius:22px;padding:30px;max-height:calc(100dvh - 48px);overflow:auto}
.material-dialog h2{font-size:23px;color:#2b4c3d;margin:0 0 18px}
.material-dialog label{display:block;font-size:13px;font-weight:550;margin:16px 0 8px}
.material-dialog input:not([type="checkbox"]),.material-dialog select{width:100%;font:inherit;font-size:14px;padding:12px;border:1px solid #dde5db;border-radius:10px;margin:0;min-height:44px;background:#fcfdfa}
.material-dialog .hint{font-size:13px;line-height:1.7;margin:8px 0}
.material-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.material-dialog .dialog-actions button{flex:1}
.material-source-dialog{width:min(600px,calc(100vw - 32px))}
.material-source-search{display:flex;gap:8px;margin:20px 0 8px}
.material-source-search input{min-width:0;flex:1}
.material-source-search button{white-space:nowrap;font-size:13px}
.material-picker-actions{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#7f8e80;margin:10px 0}
.material-picker-actions label{font-size:12px;margin:8px 0}
.material-source-items{max-height:330px;overflow:auto;border:1px solid #e8ede4;border-radius:12px;margin:10px 0}
.material-dialog .material-picker-row{display:flex;align-items:center;gap:14px;margin:0;padding:16px;border-bottom:1px solid #edf0e9;cursor:pointer}
.material-picker-row:last-child{border-bottom:0}
.material-picker-words{display:flex;flex-direction:column;min-width:0;gap:6px}
.material-picker-words strong{font-size:14px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}
.material-picker-words .hint{font-size:11px;margin:0}
.materials-view input[type="checkbox"],.material-dialog input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:#476e58;flex-shrink:0;min-height:0}
#material-more{margin-top:20px;width:100%}
.batch-material-actions{display:flex;justify-content:flex-end;margin:10px 0 16px}.batch-material-actions button{font-size:13px;min-height:40px}
@media(max-width:1100px){.materials-layout{grid-template-columns:155px minmax(0,1fr);gap:16px}.material-content{padding:18px}.material-record .video-cover{display:none}.material-group-heading{align-items:flex-start}.material-group-heading .result-actions{gap:0;flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:760px){.materials-intro{align-items:flex-start;gap:12px}.materials-intro p{font-size:12px;max-width:200px}.materials-intro button{font-size:12px;padding:8px 11px;min-height:38px;white-space:nowrap}.materials-layout{display:block}.material-group-panel{position:static;padding:12px;margin-bottom:15px;border-radius:15px}.material-group-panel h2{margin:0 0 9px;font-size:11px}#material-groups{flex-direction:row;overflow:auto;padding-bottom:2px}.dashboard .material-group{width:auto;flex-shrink:0;font-size:12px;min-height:38px;padding:9px 11px}.material-group-name{max-width:180px}.material-content{padding:18px 14px;border-radius:17px}.material-group-heading h2{font-size:19px}.material-toolbar{margin:20px 0 12px;gap:8px}.material-toolbar input{flex-basis:100%;font-size:14px}.material-toolbar button{flex:1;white-space:nowrap;font-size:12px;padding:9px}.material-table thead{display:none}.material-table tbody{display:block}.material-table tr{display:grid;grid-template-columns:22px minmax(0,1fr) 75px;gap:7px;padding:18px 0;border-bottom:1px solid #edf0e9}.material-table td{padding:0;border:0;display:block}.material-table td.material-preview{grid-column:2/4;grid-row:2;padding-top:10px}.material-preview p{-webkit-line-clamp:2;font-size:12px}.material-record .video-cover{display:block;width:40px;min-width:40px;height:56px}.material-record{gap:9px}.material-record strong{font-size:13px}.material-selection{gap:8px}.material-selection .quiet{font-size:11px}.material-dialog{padding:23px}.material-empty{padding:45px 20px}.material-source-items{max-height:38dvh}.material-dialog .dialog-actions{position:sticky;bottom:-23px;background:#fff;padding:12px 0;margin-top:12px}}

@media(max-width:760px){
 .dashboard .material-selection .quiet,.dashboard .material-group-heading .quiet,.dashboard .material-operations button,.dashboard .material-open{min-height:44px;line-height:1.5;display:inline-flex;align-items:center}
 .dashboard .material-selection{gap:4px 8px}
 .dashboard .material-operations button,.dashboard .material-open{width:100%}
 .dashboard .materials-intro button{min-height:44px}
}

/* Use the existing mark and thin-film pointer field throughout the workbench. */
.dashboard .workspace-brand{display:flex;align-items:center;gap:12px;padding:0 6px;color:#263f33;font-size:21px;line-height:1.15;font-weight:600;letter-spacing:2px}
.dashboard .workspace-brand-mark{display:block;width:37px;height:37px;object-fit:contain;flex-shrink:0}
.dashboard .workspace-brand>span{display:grid;justify-items:center;gap:3px;width:46px;text-indent:2px}
.dashboard .workspace-brand small{display:block;font-family:Arial,sans-serif;font-size:10px;line-height:12px;letter-spacing:2.3px;font-weight:600;color:#6c7e71;margin:0;text-indent:2.3px}
.dashboard .workbench-particles{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.8}
.dashboard .workspace-main{position:relative;z-index:1}
@media(max-width:860px){.dashboard .mobile-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@property --focus-phase{syntax:'<angle>';inherits:false;initial-value:0deg}
.dashboard .focus-orbit{position:relative;border-radius:10px}
.dashboard .search-orbit{flex:1;min-width:0}
.dashboard .search-orbit input{display:block;width:100%;min-width:0;margin:0;border-radius:inherit}
.dashboard .input-progress-shell{cursor:text}
.dashboard .input-progress-shell :is(#share-text,#profile-url){height:100%;min-height:0;padding-bottom:48px}
.dashboard .input-progress-shell .input-actions{position:absolute;left:14px;right:14px;bottom:12px;padding:0;pointer-events:none}
.dashboard .input-progress-shell .input-actions>*{pointer-events:auto}
@media(max-width:760px){.dashboard :is(.material-toolbar,.history-filters)>.search-orbit{flex-basis:100%;min-width:0}}
.dashboard .focus-orbit :is(select,input):focus{outline:0;outline-offset:0;border-color:#e4e9ee;box-shadow:none}
.dashboard :is(.input-progress-shell,.focus-orbit):focus-within{outline:0;outline-offset:0;border-color:#e4e9ee;box-shadow:0 5px 25px #668b8b0d}
.dashboard :is(.input-progress-shell,.focus-orbit,.result-cover-frame)::after{content:'';position:absolute;inset:0;border-radius:inherit;padding:1.7px;pointer-events:none;z-index:4;opacity:0;background:conic-gradient(from var(--focus-phase),#b8d5d22b 0deg,#b8d5d22b 200deg,#71d9dc 245deg,#a4b3f2 278deg,#c0a0eb 305deg,#b8d5d22b 352deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;transition:opacity .25s}
.dashboard :is(.input-progress-shell,.focus-orbit):focus-within::after{opacity:1;animation:input-focus-orbit 4.4s linear infinite}
.dashboard :is(.input-progress-shell,.follow-url-orbit)::after{opacity:1;animation:input-focus-orbit 4.4s linear infinite}
.dashboard[data-view=detail] .result-overview{grid-template-columns:calc(var(--overview-size)*.75) minmax(0,1fr)}
.dashboard[data-view=detail] .result-cover{width:100%;height:var(--overview-size)}
.dashboard .result-cover-frame{position:relative;display:block;width:100%;height:100%;border-radius:18px;padding:2px;color:#fff;text-decoration:none;background:#e4e9e6;isolation:isolate}
.dashboard .result-cover-frame::after{opacity:1;animation:input-focus-orbit 4.4s linear infinite;padding:2px}
.dashboard[data-view=detail] .result-cover-frame .video-cover{width:100%;height:100%;aspect-ratio:auto;border-radius:16px;background:#eef1eb}
.dashboard[data-view=detail] .result-cover-frame .video-cover img{object-fit:cover;border-radius:inherit}
.dashboard .result-cover-open{position:absolute;right:7px;bottom:7px;display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#163e37b8;color:#fff;font-size:18px;line-height:1;pointer-events:none}
.dashboard a.result-cover-frame:hover{box-shadow:0 4px 18px #496f6529}
.dashboard a.result-cover-frame:focus-visible{outline:2px solid #a5b9df;outline-offset:3px}
@keyframes input-focus-orbit{to{--focus-phase:360deg}}
@media(prefers-reduced-motion:reduce){.dashboard :is(.input-progress-shell,.follow-url-orbit)::after,.dashboard :is(.input-progress-shell,.focus-orbit):focus-within::after,.dashboard .result-cover-frame::after{animation:none;background:#98b9c3}.dashboard .workbench-particles{display:none}}
@media(max-width:860px),(hover:none),(pointer:coarse){.dashboard .workbench-particles{display:none}}

/* Shared translucent input controls for extraction mode and read count. */
.dashboard{--page:#fff;background:#fff;--input-control-fill:rgb(246 246 246/.86);--input-control-border:rgb(80 80 80/.13);--input-popover-fill:rgb(255 255 255/.86);--input-popover-shadow:0 8px 28px #173c3610,0 1px 3px #173c3605}
.dashboard .workspace-topbar{background:rgb(255 255 255/.96)}
.dashboard .input-progress-shell{border-color:#e2e8ed;box-shadow:0 4px 24px #31495c08}
.dashboard #extract-form .input-actions{justify-content:space-between;align-items:center;gap:12px}
.dashboard .extraction-mode-tools{display:flex;align-items:center;min-width:0}
.extraction-mode-control[hidden]{display:none!important}
.extraction-mode-control select{width:132px;min-height:32px;border:1px solid var(--input-control-border);border-radius:999px;background:var(--input-control-fill);color:#35634a;font:inherit;font-size:12px}
.extraction-mode-control>.extraction-mode-icon,.extraction-mode-control>.extraction-mode-chevron{display:none}
.extraction-mode-description{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dashboard :is(.extraction-mode-button,.count-picker>summary){position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;height:32px;min-height:32px;box-sizing:border-box;margin:0;padding:0 11px;border:1px solid var(--input-control-border);border-radius:999px;background:var(--input-control-fill);color:#607c59;font:inherit;font-size:12px;font-weight:400;line-height:1.4;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff66;backdrop-filter:blur(12px) saturate(115%);-webkit-backdrop-filter:blur(12px) saturate(115%);cursor:pointer;transition:background .16s,border-color .16s}
.dashboard :is(.extraction-mode-button:hover,.extraction-mode-button[aria-expanded=true],.count-picker[open]>summary){background:rgb(225 237 215/.8);border-color:rgb(129 157 115/.32)}
.extraction-mode-button:disabled{opacity:.5;cursor:wait}
.extraction-mode-label,.dashboard .count-picker summary strong{color:#35634a;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.extraction-mode-symbol,.extraction-mode-arrow{display:flex;flex:none}
.extraction-mode-symbol svg{width:16px;height:16px}
.extraction-mode-arrow svg{width:12px;height:12px;color:#879d7f;transition:transform .16s}
.extraction-mode-button[aria-expanded=true] .extraction-mode-arrow svg{transform:rotate(180deg)}
.dashboard :is(.extraction-mode-menu,.count-popover){z-index:80;width:260px;max-width:calc(100vw - 32px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border:1px solid rgb(205 218 198/.62);border-radius:16px;background:var(--input-popover-fill);box-shadow:var(--input-popover-shadow);backdrop-filter:blur(18px) saturate(115%);-webkit-backdrop-filter:blur(18px) saturate(115%);color:#29493b}
.extraction-mode-menu{position:fixed;padding:5px;margin:0}
.extraction-mode-menu[hidden]{display:none!important}
.extraction-mode-option{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;padding:8px 9px;border:0;border-radius:11px;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.extraction-mode-option:hover,.extraction-mode-option:focus-visible{background:rgb(234 242 226/.48)}
.extraction-mode-option[aria-checked=true]{background:rgb(225 237 215/.62)}
.extraction-mode-option-icon{display:grid;place-items:center;flex:none;width:25px;height:28px;color:#648171}
.extraction-mode-option-icon svg{width:19px;height:19px}
.extraction-mode-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.extraction-mode-option-title{font-size:12px;font-weight:600;line-height:1.4}
.extraction-mode-option-description{font-size:10px;color:#7b8a79;line-height:1.5;white-space:nowrap}
.extraction-mode-check{display:flex;flex:none;width:15px;color:#2f7652;visibility:hidden}
.extraction-mode-check svg{width:15px;height:15px}
.extraction-mode-option[aria-checked=true] .extraction-mode-check{visibility:visible}
.extraction-mode-menu-note{padding:6px 7px 3px;margin:3px 3px 0;border-top:1px solid rgb(215 225 207/.52);font-size:10px;color:#83917d;line-height:1.5}
.dashboard .count-popover{top:auto;bottom:calc(100% + 8px);padding:11px 12px 9px;animation:none}
.dashboard .count-popover-heading{align-items:center;margin-bottom:4px;font-size:12px;line-height:18px;color:#7b8a79}
.dashboard .count-popover-heading label{font-size:12px;line-height:18px}
.dashboard .count-popover output{font-size:12px;line-height:18px;color:#35634a}
.dashboard #profile-limit{height:28px;min-height:28px}
.dashboard .count-stops{height:32px;margin-top:0}
.dashboard .count-stops button{min-height:32px;min-width:32px;padding-top:7px;font-size:11px}
.dashboard .count-popover>p{margin:3px 0 0;font-size:10px;line-height:15px;color:#83917d}
:is(.extraction-mode-button,.extraction-mode-option):focus-visible{outline:2px solid #76a98f;outline-offset:2px}
@media(max-width:860px){
 .dashboard :is(.extraction-mode-button,.count-picker>summary)::after{content:'';position:absolute;inset:-6px 0}
 .dashboard :is(.extraction-mode-button,.count-picker>summary){gap:5px;padding-inline:11px}
 .dashboard :is(#extract-button,#profile-load) .motion-button-icon{width:32px;height:32px;flex-basis:32px}
}

/* A single page moves above navigation; input and recent rows share one geometry. */
html[data-workspace-document]{overflow-x:clip}
.workspace-page{display:contents}
.sidebar-version{display:block;padding:7px 17px 0;font-size:11px;color:#989d99;font-variant-numeric:tabular-nums}
.workspace-help{display:flex;justify-content:center;margin-top:auto;padding:24px 0 6px;min-height:58px}
.dashboard .workspace-help .link-guide-trigger{margin:0;min-height:34px}
.dashboard .input-progress-shell::after{filter:none;transition:none}
.dashboard :is(#input-progress-shell,#profile-progress-shell){padding:0}
.dashboard .input-progress-shell :is(#share-text,#profile-url){position:absolute;inset:0;width:100%;height:100%;min-height:0;box-sizing:border-box;padding:16px 62px 62px 16px!important;resize:none;overflow:auto;line-height:1.6;border-radius:inherit}
.dashboard .input-progress-shell .input-actions{position:absolute;left:14px;right:14px;bottom:12px;padding:0;pointer-events:none}
.dashboard .input-progress-shell .input-actions>*{pointer-events:auto}
.dashboard[data-view=video] #workspace-history,.dashboard .profile-recent{margin-top:22px}
.dashboard :is(#extract-view,#profile-panel){padding:0;margin-bottom:0;border:0;background:transparent}
.dashboard :is(#extract-form,#profile-form){gap:0;margin:0}
.dashboard :is(#profile-input-state,#profile-status,#input-error,#input-notice):empty{display:none}
.dashboard :is(.extraction-mode-button,.count-picker>summary){color:#656565}
.dashboard :is(.extraction-mode-label,.count-picker summary strong){color:#383838}
.dashboard :is(.extraction-mode-button:hover,.extraction-mode-button[aria-expanded=true],.count-picker[open]>summary){background:#eeeeeeee;border-color:#50505033}
.dashboard .extraction-mode-arrow svg{color:#858585}
.dashboard .workspace-topbar{min-height:52px;padding:4px 24px;justify-content:flex-end;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.dashboard .workspace-topbar .workspace-breadcrumb{display:none}
.dashboard .workspace-topbar #workspace-credits-link{display:none}
.dashboard .account-menu>summary{padding:0;gap:0;min-width:44px;min-height:44px;justify-content:center}
.dashboard .account-menu>summary::after{display:none}
.dashboard .account-avatar{width:34px;height:34px;font-size:14px}
.mobile-account-label,.mobile-extraction-switch{display:none}
/* Home previews stay close to the composer and show two records plus help. */
.dashboard:not(.extraction-demo) :is(#profile-recent-list,.recent-video-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard[data-view=video] #workspace-history,.dashboard .profile-recent{margin:12px 0 0}
.dashboard[data-view=video] #workspace-history>.section-heading,.dashboard .profile-recent>.section-heading{justify-content:flex-end;margin:0 0 4px;min-height:32px}
.dashboard :is(#history-all,#profile-recent-all){min-height:32px}
.dashboard :is(#workspace-history-feedback,#profile-recent-state):empty{display:none}
.dashboard .workspace-help{margin-top:8px;padding:0;min-height:40px}
.dashboard .workspace-help .link-guide-trigger{min-height:40px}
@media(max-width:860px){
 html[data-workspace-document]{overflow:hidden}
 .dashboard{--drawer-width:min(280px,72vw);overflow-x:clip}
 .dashboard:not(.extraction-demo){position:fixed;inset:0;width:100%;height:100svh;min-height:0;overflow:hidden;background:#f7f8f6}
 .dashboard:not(.extraction-demo) .workspace-page{position:relative;z-index:40;display:flex;flex-direction:column;flex:none;width:100%;height:100svh;min-height:0;background:#fff;overflow:hidden;transform:translateX(0);transform-origin:right center;transition:transform .3s cubic-bezier(.2,.8,.2,1),border-radius .3s,box-shadow .3s}
 .dashboard:not(.extraction-demo) .workspace-main{width:100%;flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-behavior:auto;padding:18px 17px calc(var(--workspace-nav-height,68px) + 24px);margin:0;max-width:none}
 .dashboard:not(.extraction-demo) .workspace-main>*{flex-shrink:0}
 /* The mobile main is its own scroller; a desktop sticky offset would float over the document. */
 .dashboard:not(.extraction-demo)[data-view=detail] #task-navigation{position:static;top:auto;align-items:flex-start;gap:8px;margin-bottom:14px;padding:0 0 12px}
 .dashboard:not(.extraction-demo) #detail-actions-slot{flex:1;min-width:0}
 .dashboard:not(.extraction-demo) .detail-toolbar .result-actions{flex-wrap:wrap;justify-content:flex-end;gap:4px}
 .dashboard:not(.extraction-demo) .detail-toolbar :is(.result-actions>button,.result-more>summary){font-size:11.5px;padding-inline:6px}
 .dashboard:not(.extraction-demo) .mobile-tabs{position:absolute;inset:auto 0 0;transform:none;transition:none}
 .dashboard .workspace-topbar{display:flex;min-height:56px;padding:6px 10px;padding-top:max(6px,env(safe-area-inset-top));justify-content:flex-start;isolation:isolate}
 .dashboard .workspace-topbar .workspace-breadcrumb{display:flex}
 .dashboard .workspace-topbar .workspace-top-actions{display:none}
 .dashboard #sidebar-toggle{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:5px;color:#323733;background:transparent;box-shadow:none;transition:opacity .12s}
 .dashboard #sidebar-toggle .icon{width:23px;height:23px;flex-basis:23px}
 .dashboard #sidebar-toggle:is(:hover,:active,:focus){background:transparent;box-shadow:none;outline:none}
 .dashboard #sidebar-toggle:active{opacity:.4}
 .dashboard[data-menu-open=true] #sidebar-toggle{opacity:.35}
 .dashboard #sidebar-toggle:focus-visible{outline:1px solid #aaa;outline-offset:-4px}
 .dashboard .mobile-extraction-switch{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:198px;height:34px;padding:3px;border-radius:10px;background:#f1f2f1;isolation:isolate}
 .mobile-extraction-switch::before{content:'';position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border-radius:7px;background:#fff;box-shadow:0 1px 4px #0000000e;transition:transform .26s cubic-bezier(.2,.8,.2,1);z-index:0;pointer-events:none}
 .dashboard[data-view=profile] .mobile-extraction-switch::before{transform:translateX(100%)}
 .dashboard[data-view=collection] .mobile-extraction-switch::before{transform:translateX(200%)}
 .dashboard .mobile-extraction-switch a{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;color:#8a908b;font-size:12px;font-weight:500;text-decoration:none;border-radius:7px;min-width:0;transition:color .2s}
 .dashboard .mobile-extraction-switch a:is(:hover,:active,:focus,[aria-current=page]){background:transparent;box-shadow:none}
 .dashboard .mobile-extraction-switch a[aria-current=page]{color:#233a30}
 .mobile-extraction-switch a:focus-visible{outline:2px solid #81b8b2;outline-offset:1px}
 .dashboard:not(.extraction-demo) .extraction-tabs{display:none}
 .dashboard .workspace-sidebar{z-index:30;width:var(--drawer-width);height:100svh;bottom:auto;background:#f7f8f6;border:0;opacity:0;transform:translateX(-16px);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s linear .3s}
 .dashboard[data-menu-open=true] .workspace-sidebar{visibility:visible;opacity:1;transform:translateX(0);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s}
 .dashboard :is(.workspace-topbar,.workspace-main,.mobile-tabs){transition:none}
 .dashboard[data-menu-open=true] .workspace-page{transform:translateX(var(--drawer-width));border-radius:22px 0 0 22px;box-shadow:-8px 0 30px #17251e24,0 0 1px #17251e44}
 .dashboard .sidebar-backdrop{left:var(--drawer-width);width:calc(100% - var(--drawer-width));background:transparent;z-index:45}
 .dashboard .workspace-sidebar>:is(.sidebar-close,.workspace-brand){flex-shrink:0}
 .dashboard .workspace-sidebar .workspace-navigation{min-height:0;overflow:auto;flex:1;align-content:start;margin-top:20px;gap:3px}
 .dashboard .sidebar-bottom{position:relative;flex-shrink:0;margin-top:auto;padding-top:12px}
 .dashboard #sidebar-account-slot .account-avatar{display:none}
 .dashboard #sidebar-account-slot .mobile-account-label{display:inline;font-size:14px}
 .dashboard #sidebar-account-slot .account-menu>summary{justify-content:flex-start;padding:12px 17px;min-height:48px;border-radius:10px}
 .dashboard #sidebar-account-slot .account-menu>summary:hover{background:#ecefe9}
 .dashboard #sidebar-account-slot .account-sheet{top:auto;bottom:calc(100% + 6px);left:0;right:auto;width:100%;max-width:100%;max-height:calc(100dvh - 156px);padding:16px;z-index:2}
 .dashboard:not(.extraction-demo) .extract-welcome{height:48px;min-height:48px;margin:0 0 8px;display:grid;place-items:center}
 .dashboard:not(.extraction-demo) #welcome-word{transition:none}
 .dashboard:not(.extraction-demo):is([data-view=video],[data-view=profile],[data-view=collection]) .workspace-main{overflow-y:clip;overscroll-behavior:none;padding:12px 17px calc(var(--workspace-nav-height,68px) + 8px)}
 .dashboard:not(.extraction-demo) :is(#profile-recent-list,.recent-video-grid){grid-template-columns:1fr}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history) .recent-read-card{height:98px;min-height:98px}
 .dashboard:not(.extraction-demo) .recent-read-name{-webkit-line-clamp:1}
 .dashboard :is(a,button,summary,input,textarea,.input-progress-shell){-webkit-tap-highlight-color:transparent}
 .dashboard[data-menu-open=true] .extraction-progress{visibility:hidden}
}
@media(max-width:860px) and (max-height:680px){
 .dashboard:not(.extraction-demo) .extract-welcome{height:40px;min-height:40px;margin-bottom:6px}
 .dashboard:not(.extraction-demo) :is(#input-progress-shell,#profile-progress-shell){height:clamp(132px,calc(100svh - 508px),172px);min-height:132px}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history){margin-top:8px}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history) .recent-read-card{height:clamp(72px,calc(50svh - 238px),90px);min-height:72px}
 .dashboard:not(.extraction-demo) .recent-read-open{padding-block:7px}
 .dashboard:not(.extraction-demo) .recent-read-copy{gap:3px}
 .dashboard:not(.extraction-demo) .recent-read-name{font-size:13px;line-height:1.4}
 .dashboard:not(.extraction-demo) .recent-read-count{font-size:11px;line-height:1.4}
 .dashboard:not(.extraction-demo) .recent-read-time{font-size:10px;line-height:1.4}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history) .recent-read-card .video-cover{height:48px;width:36px;min-width:36px;flex-basis:36px}
 .dashboard:not(.extraction-demo) .workspace-help{margin-top:4px}
}
@media(max-width:360px){.dashboard:not(.extraction-demo) #detail-actions-slot .result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}}
@media(prefers-reduced-motion:reduce){.dashboard :is(.workspace-page,.workspace-sidebar),.mobile-extraction-switch::before{transition:none}}
@media(min-width:861px){
 .dashboard .workspace-main{padding-top:12px}
 .dashboard .extraction-tabs{margin-bottom:8px}
 .dashboard .extract-welcome{min-height:40px;margin:0 0 12px}
 /* Desktop extraction keeps a centered composer and a compact three-by-two preview. */
 .dashboard:not(.extraction-demo):is([data-view=video],[data-view=profile],[data-view=collection]) .workspace-main{max-width:960px;margin-left:max(216px,calc(216px + (100vw - 216px - 960px)/2));padding:12px 28px 36px}
 .dashboard:not(.extraction-demo) .extraction-tabs{margin-bottom:0}
 .dashboard:not(.extraction-demo) .extraction-tabs a{min-height:36px;padding:8px 16px}
 .dashboard:not(.extraction-demo) .extract-welcome{min-height:44px;margin:clamp(28px,7svh,72px) 0 22px}
.dashboard:not(.extraction-demo) #welcome-heading{font-size:clamp(19px,1.7vw,24px);font-weight:400;line-height:1.6}
 .dashboard:not(.extraction-demo) :is(#input-progress-shell,#profile-progress-shell){height:164px;min-height:164px}
 .dashboard:not(.extraction-demo)[data-view=video] #workspace-history,.dashboard:not(.extraction-demo) .profile-recent{margin:clamp(22px,4svh,40px) 0 0}
 .dashboard:not(.extraction-demo)[data-view=video] #workspace-history>.section-heading,.dashboard:not(.extraction-demo) .profile-recent>.section-heading{min-height:28px;margin-bottom:8px}
 .dashboard:not(.extraction-demo) :is(#history-all,#profile-recent-all){min-height:28px;font-size:12px}
 .dashboard:not(.extraction-demo)[data-view=video] #workspace-history-list.recent-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-card{min-height:88px;height:88px;padding:0 6px 0 0;border-radius:12px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-open{gap:10px;padding:12px 0 12px 12px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-card .video-cover{width:38px;min-width:38px;height:52px;flex-basis:38px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-copy{gap:4px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-name{-webkit-line-clamp:1;line-height:1.5}
 .dashboard:not(.extraction-demo)[data-view=video] :is(.recent-read-count,.recent-read-time){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.extraction-mode-button,.extraction-mode-arrow svg{transition:none}}

.dashboard .follows-view{padding:30px;border:1px solid #e1e7dd}
.dashboard .follow-authors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.dashboard .follow-author-card{position:relative;align-items:flex-start;gap:15px;padding:23px;background:#fbfcf8;border:1px solid #e0e7dc;border-radius:19px}
.dashboard .follow-author-card .follow-author-avatar{width:52px;height:52px;flex:0 0 52px}
.dashboard .follow-author-copy{min-width:0;flex:1;padding-right:23px}
.dashboard .follow-author-copy>strong{font-size:17px;line-height:1.5;display:block;overflow-wrap:anywhere}
.dashboard .follow-author-copy>p{font-size:12px;line-height:1.8;margin:7px 0 17px;color:#78887c}
.dashboard .follow-author-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.dashboard .follow-author-actions button,.dashboard .follow-author-actions a{min-height:36px;font-size:12px;padding:7px 11px;border-radius:9px;text-decoration:none}
.dashboard .follow-author-actions a{order:-1;color:#fff;background:#194e43;font-weight:600;display:inline-flex;align-items:center}
.dashboard .follow-author-actions button{border:1px solid #dce4d7;background:#fff;color:#4a6757}
.dashboard .follow-author-card>.favorite-star{position:absolute;right:14px;top:15px}
.dashboard .follow-library-view{position:relative;padding:0 0 24px;width:100%;min-width:0;max-width:1120px;margin:0 auto}
.dashboard .follow-library-back{display:inline-flex;align-items:center;gap:6px;color:#668173;text-decoration:none;font-size:13px;margin:0 0 17px;min-height:30px}
.dashboard .follow-library-header{border:1px solid #e0e7dc;border-radius:23px;background:#fff;padding:27px 28px 0;overflow:hidden;position:relative}
.dashboard .follow-library-heading{display:flex;gap:17px;align-items:center}
.dashboard .follow-library-avatar{flex:0 0 60px}
.dashboard .follow-library-avatar .video-cover{width:60px;height:60px;border-radius:50%}
.dashboard .follow-library-heading-copy{min-width:0;flex:1}
.dashboard .follow-library-kind{font-size:11px;color:#8a998d;letter-spacing:.05em;margin:0 0 5px}
.dashboard .follow-library-title{font-size:24px;line-height:1.35;margin:0;letter-spacing:-.02em;overflow-wrap:anywhere}
.dashboard .follow-library-meta{font-size:12px;line-height:1.6;color:#7e8d81;margin:8px 0 0}
.dashboard .follow-library-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto;flex-shrink:0}
.dashboard .follow-library-actions button{min-height:40px;font-size:13px;padding:9px 15px;border-radius:11px}
.dashboard .follow-library-stats{display:flex;gap:32px;padding:24px 0 21px;margin:22px 0 0;border-top:1px solid #edf0e8}
.dashboard .follow-library-stats>div{display:flex;align-items:baseline;gap:9px;color:#809080;font-size:12px}
.dashboard .follow-library-stats strong{font-size:23px;font-weight:600;color:#2c5143}
.dashboard .follow-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:23px 0 10px}
.dashboard .follow-library-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:264px;gap:4px;padding:4px;background:#eaf0e5;border-radius:12px}
.dashboard .follow-library-filters button{border:0;border-radius:9px;padding:8px 10px;min-height:40px;background:transparent;font-size:13px;color:#768674;white-space:nowrap}
.dashboard .follow-library-filters button[aria-pressed=true]{background:#fff;color:#234b3c;box-shadow:0 1px 4px #31513b0b;font-weight:600}
.dashboard .follow-library-search{max-width:300px;flex:1;min-width:200px}
.dashboard .follow-library-search input{height:42px;font-size:13px;padding:10px 13px}
.dashboard .follow-library-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 18px;min-height:35px}
.dashboard .follow-library-coverage{font-size:12px;line-height:1.7;color:#899482;margin:0}
.dashboard .follow-library-tools button{flex-shrink:0;white-space:nowrap;font-size:12px;min-height:35px;padding:7px 9px}
.dashboard .follow-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:20px;min-height:330px;align-content:start}
.dashboard .follow-work-card{position:relative;min-width:0;padding:3px;border:1px solid #e0e6da;background:#fff;border-radius:20px;isolation:isolate}
.dashboard .follow-work-card[data-new=true]::after{content:'';position:absolute;inset:-1px;padding:1.8px;border-radius:inherit;pointer-events:none;z-index:2;background:conic-gradient(from var(--focus-phase),#b8d5d244 0deg,#b8d5d244 160deg,#6ed7de 230deg,#a6b4f3 285deg,#cca0ee 320deg,#b8d5d244 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:input-focus-orbit 4.4s linear infinite}
.dashboard .follow-work-card[data-selected=true]{box-shadow:0 0 0 2px #698b79}
.dashboard .follow-work-cover{display:block;position:relative;aspect-ratio:3/4;border-radius:16px;overflow:hidden;background:#eef1e9;text-decoration:none}
.dashboard .follow-work-cover>.video-cover{width:100%;height:100%;border-radius:inherit;display:flex}
.dashboard .follow-work-cover img{width:100%;height:100%;object-fit:cover}
.dashboard .follow-work-duration{position:absolute;bottom:10px;right:10px;border-radius:6px;padding:3px 6px;color:#fff;background:#1d352ccc;font-size:11px;line-height:1.3}
.dashboard .follow-work-choice{position:absolute;top:12px;left:12px;z-index:3;display:grid;place-items:center;min-width:32px;min-height:32px;background:#fffffff0;border-radius:9px;cursor:pointer}
.dashboard .follow-work-choice input{margin:0;width:17px;height:17px;accent-color:#245947;cursor:pointer}
.dashboard .follow-work-content{position:relative;padding:13px 11px 9px}
.dashboard .follow-work-content h3{font-size:14px;font-weight:600;line-height:1.6;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:45px;overflow-wrap:anywhere}
.dashboard .follow-work-date{display:block;font-size:11px;color:#8a9588;white-space:nowrap}
.dashboard .follow-work-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:14px}
.dashboard .follow-work-status{font-size:11px;border-radius:6px;background:#f4f0e5;color:#96824f;padding:4px 7px;white-space:nowrap}
.dashboard .follow-work-status[data-complete=true]{color:#66836d;background:#edf3e9}
.dashboard .follow-work-open,.dashboard .follow-work-extract{font-size:12px;font-weight:550;color:#2b6350;background:transparent;border:0;padding:6px 1px;min-height:32px;text-decoration:none;white-space:nowrap}
.dashboard .follow-work-new{position:absolute;top:-29px;left:10px;padding:4px 7px;border-radius:6px;background:#faf9fff2;color:#8778aa;font-size:10px;pointer-events:none}
.dashboard .follow-library-selection{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;margin-left:auto}
.dashboard .follow-library-selection>span{font-size:12px;color:#6c7e71;white-space:nowrap}
.dashboard .follow-library-selection button{font-size:13px;min-height:42px;white-space:nowrap}
.dashboard .follow-library-selection .quiet{padding:8px 6px}
.dashboard .follow-library-feedback{color:#897957;font-size:12px;margin:12px 0;min-height:0}
.dashboard .follow-library-feedback:empty{display:none}
.dashboard .follow-library-batch{display:flex;align-items:center;gap:16px;padding:14px 16px;margin:16px 0 20px;border:1px solid #e0e7dd;border-radius:15px;background:#fff;position:relative}
.dashboard .follow-library-batch-action{display:flex;align-items:center;flex-shrink:0}
.dashboard .follow-library-batch-action>button{font-size:13px;min-height:42px;padding:10px 14px;background:#f6f8f3}
.dashboard .follow-library-batch-settings{position:relative;flex-shrink:0;order:3}
.dashboard .follow-library-batch-settings>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:8px;border-radius:9px;cursor:pointer;color:#6d8073;font-size:12px;white-space:nowrap}
.dashboard .follow-library-batch-settings .icon{width:14px;height:14px;flex:0 0 14px;transition:transform .15s}
.dashboard .follow-library-batch-settings[open] .icon{transform:rotate(180deg)}
.dashboard .follow-library-batch-settings>summary::-webkit-details-marker{display:none}
.dashboard .follow-library-batch-settings>summary:hover{background:#f2f5ee}
.dashboard .follow-library-batch-settings>summary:focus-visible{outline:2px solid #81b8b2;outline-offset:2px}
.dashboard .follow-library-coverage:empty{display:none}
.dashboard .follow-library-settings-panel{position:absolute;z-index:8;right:0;top:46px;width:255px;padding:20px;box-shadow:0 10px 36px #304b3521;background:#fff;border:1px solid #dce5d5;border-radius:16px;display:grid;gap:13px}
.dashboard .follow-library-settings-panel>strong{font-size:14px}
.dashboard .follow-library-settings-panel label{font-size:13px;display:flex;align-items:center;gap:8px;cursor:pointer}
.dashboard .follow-library-settings-panel input[type=radio]{width:16px;height:16px;margin:0;accent-color:#2c614c}
.dashboard .follow-library-settings-panel input[type=number]{width:100%;height:40px;font-size:13px;padding:8px 10px;border-radius:10px}
.dashboard .follow-library-settings-panel p{font-size:11px;line-height:1.8;color:#88947f;margin:0}
.dashboard .follow-library-batch-progress{display:flex;align-items:center;gap:12px;padding:12px 15px;margin:-5px 0 20px;border:1px solid #dee6d8;border-radius:12px;font-size:12px;background:#fff}
.dashboard .follow-library-batch-progress>span{flex:1;min-width:0;color:#71836c;overflow-wrap:anywhere}
.dashboard .follow-library-batch-progress progress{width:100px;height:5px;accent-color:#749e85}
.dashboard .follow-library-batch-progress button{min-height:36px;font-size:11px;white-space:nowrap}
.dashboard .follow-library-empty{grid-column:1/-1;display:grid;place-content:center;justify-items:center;padding:40px 20px;min-height:300px;border:1px dashed #dce4d5;border-radius:20px;font-size:13px;color:#8b9786}
.dashboard .follow-library-header::after{content:'';position:absolute;bottom:0;left:0;height:2px;width:100%;background:#e8efe6;opacity:0;pointer-events:none}
.dashboard .follow-library-view[aria-busy=true] .follow-library-header::after{opacity:1;background:linear-gradient(90deg,transparent,#89c6c8,#c0ace2,transparent);background-size:50% 100%;background-repeat:no-repeat;animation:follow-library-loading 1.8s linear infinite}
@keyframes follow-library-loading{from{background-position:-100% 0}to{background-position:200% 0}}
@media(max-width:860px){
  .dashboard .follows-view{padding:22px}
  .dashboard .follow-library-header{padding:22px 20px 0}
  .dashboard .follow-library-heading{flex-wrap:wrap;gap:13px}
  .dashboard .follow-library-title{font-size:21px}
  .dashboard .follow-library-actions{margin:6px 0 0;width:100%}
  .dashboard .follow-library-stats{gap:20px;padding:19px 0;margin-top:18px}
  .dashboard .follow-library-stats>div{gap:6px}
  .dashboard .follow-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .dashboard .follow-work-content{padding:11px 8px 7px}
  .dashboard .follow-work-content h3{font-size:13px;min-height:42px}
  .dashboard .follow-work-choice{min-height:38px;min-width:38px;top:9px;left:9px}
  .dashboard .follow-work-footer{gap:4px}
  .dashboard .follow-library-coverage{font-size:11px}
  .dashboard .follow-library-tools{align-items:flex-start}
  .dashboard .follow-library-tools button{max-width:115px;white-space:normal;line-height:1.5}
  .dashboard .follow-library-header{padding:18px 18px 0}
  .dashboard .follow-library-stats{padding:15px 0;margin-top:15px;justify-content:space-between;gap:8px}
  .dashboard .follow-library-title{font-size:20px}
  .dashboard .follow-library-toolbar{margin-top:18px}
  .dashboard .follow-library-filters{width:100%}
  .dashboard .follow-library-batch{display:grid;grid-template-columns:1fr auto;gap:8px 10px;padding:12px;margin-top:12px}
  .dashboard .follow-library-batch-action{grid-column:1;grid-row:1}
  .dashboard .follow-library-selection{grid-column:1/-1;grid-row:2;width:100%;border-top:1px solid #edf0e8;padding-top:10px;gap:9px;min-height:55px}
  .dashboard .follow-library-selection>span{margin-right:auto}
  .dashboard .follow-library-batch-settings{position:static;grid-column:2;grid-row:1}
  .dashboard .follow-library-settings-panel{left:auto;right:10px;top:57px;width:min(255px,calc(100vw - 60px))}
  .dashboard .follow-library-search{max-width:none;flex-basis:100%}
  .dashboard .follow-library-actions button,.dashboard .follow-library-selection button,.dashboard .follow-library-batch-action>button{min-height:44px}
  .dashboard .follow-work-extract,.dashboard .follow-work-open{min-height:44px;display:inline-flex;align-items:center}

  .dashboard .follow-library-batch-progress{flex-wrap:wrap}.dashboard .follow-library-batch-progress progress{width:60px}
}
@media(max-width:450px){.dashboard .follow-library-search{max-width:none;flex-basis:100%}.dashboard .follow-author-card{padding:18px;gap:11px}.dashboard .follow-author-copy{padding-right:9px}.dashboard .follow-author-actions{gap:6px}.dashboard .follow-author-actions button,.dashboard .follow-author-actions a{min-height:42px}.dashboard .follow-author-copy>strong{font-size:16px}.dashboard .follow-work-extract,.dashboard .follow-work-open{min-height:44px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.dashboard .follow-work-card[data-new=true]::after,.dashboard .follow-library-view[aria-busy=true] .follow-library-header::after{animation:none}}

/* Compact saved-source overview and one shared control row across all kinds. */
.dashboard .follows-view{padding:18px}
.favorites-toolbar{display:flex;align-items:center;gap:10px;min-height:42px;margin-bottom:14px;border-bottom:1px solid #e4eadd}
.dashboard .favorites-toolbar .favorite-kinds{min-width:0;flex:1;gap:16px;margin:0;border:0;align-self:stretch;align-items:center}
.dashboard .favorites-toolbar .favorite-kinds button{min-height:40px;padding:7px 0;font-size:12px}
.favorites-toolbar-actions{display:flex;align-items:center;gap:8px;flex:none}
.dashboard #follows-check-all{min-height:32px;padding:5px 4px;font-size:11px;white-space:nowrap}
.dashboard #follows-feedback:empty{display:none}
.compact-popover{position:relative}
.compact-popover>summary{display:flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:6px 8px;list-style:none;cursor:pointer;border-radius:8px;color:#6b8070;font-size:12px;white-space:nowrap}
.compact-popover>summary::-webkit-details-marker{display:none}
.compact-popover>summary:hover{background:#f3f6ef}
.compact-popover>summary:focus-visible{outline:2px solid #81b8b2;outline-offset:2px}
.compact-popover>summary>.icon{width:12px;height:12px;flex-basis:12px}
.compact-popover[open]>summary>.icon{transform:rotate(180deg)}
.compact-popover-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:80;width:280px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain;padding:14px;border:1px solid #dfe7da;border-radius:14px;background:rgb(255 255 255/.95);box-shadow:0 8px 28px #304b351c;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.follow-source-panel .follow-tabs{margin:0 0 12px;gap:8px}
.follow-source-panel .follow-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0}
.follow-source-panel .follow-add-form input{width:100%;min-width:0;min-height:40px;font-size:12px;padding:8px 10px;border-radius:10px}
.follow-source-panel .follow-add-form button{min-height:40px;font-size:11px;padding:8px 9px;white-space:nowrap}
.follow-source-panel .follow-note{font-size:10px;line-height:1.6;margin:9px 0 0}
.dashboard .follow-authors{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dashboard .follow-author-card{display:flex;align-items:center;gap:10px;min-width:0;min-height:92px;padding:12px;border-radius:14px;background:#fff}
.dashboard .follow-author-open{display:block;flex:0 0 44px;width:44px;height:44px;border-radius:50%;text-decoration:none}
.dashboard .follow-author-open .video-cover.follow-author-avatar{width:44px;height:44px;min-width:44px;flex-basis:44px}
.follow-author-open:focus-visible{outline:2px solid #81b8b2;outline-offset:3px}
.dashboard .follow-author-copy{padding:0;flex:1;min-width:0}
.dashboard .follow-author-copy>strong{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dashboard .follow-author-copy>p{margin:4px 0 0;font-size:10px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard .follow-author-actions{display:flex;flex-direction:column;flex:none;gap:0}
.dashboard .follow-author-actions button,.dashboard .follow-author-actions a{display:inline-flex;justify-content:center;align-items:center;min-height:32px;padding:5px 7px;border:0;background:transparent;color:#547761;font-size:11px;border-radius:7px;font-weight:400}
.dashboard .follow-author-actions a:hover,.dashboard .follow-author-actions button:hover{background:#f1f6ed}
.dashboard .follow-library-back{margin-bottom:9px;min-height:28px;font-size:12px}
.dashboard .follow-library-header{padding:15px 16px 12px;border-radius:16px;overflow:visible}
.dashboard .follow-library-header::after{left:15px;right:15px;width:auto;border-radius:2px}
.dashboard .follow-library-heading{gap:11px;flex-wrap:nowrap}
.dashboard .follow-library-avatar{flex-basis:42px}
.dashboard .follow-library-avatar .video-cover{width:42px;height:42px}
.dashboard .follow-library-title{font-size:19px;line-height:1.4}
.dashboard .follow-library-meta{font-size:11px;margin-top:3px}
.dashboard .follow-library-actions{width:auto;margin:0 0 0 auto;gap:5px;flex-wrap:nowrap}
.dashboard .follow-library-actions button{min-height:34px;padding:7px 10px;font-size:11px}
.follow-library-source-menu>summary{font-size:22px;width:30px;padding:0}
.follow-library-source-menu>.compact-popover-panel{width:150px}
.dashboard .follow-library-stats{padding:0;margin:9px 0 0;border:0;gap:18px}
.dashboard .follow-library-stats>div{font-size:11px;gap:5px}
.dashboard .follow-library-stats strong{font-size:13px}
.dashboard .follow-library-batch{display:flex;align-items:center;gap:8px;padding:10px;margin:12px 0 14px;border-radius:12px}
.dashboard .follow-library-batch-action>button{min-height:36px;padding:7px 10px;font-size:12px}
.dashboard .follow-library-selection{width:auto;min-height:0;border:0;padding:0;margin-left:auto;gap:8px}
.dashboard .follow-library-selection button{min-height:36px;padding:7px 10px;font-size:12px}
.dashboard .follow-library-batch-settings{position:relative;order:3;flex:none}
.dashboard .follow-library-batch-settings>summary{min-height:36px;padding:7px;font-size:12px}
.dashboard .follow-library-settings-panel{display:grid;gap:12px;padding:14px;right:0;left:auto;top:calc(100% + 8px);width:280px}
.dashboard .follow-library-settings-panel .follow-library-filters{width:100%;gap:3px;padding:3px}
.dashboard .follow-library-settings-panel .follow-library-filters button{font-size:11px;min-height:34px;padding:6px}
.dashboard .follow-library-settings-panel .follow-library-search{min-width:0;max-width:none;width:100%}
.dashboard .follow-library-settings-panel .follow-library-search input{font-size:12px;height:38px}
@media(max-width:860px){.dashboard .follows-view{padding:12px}.favorites-toolbar{gap:5px;min-height:44px}.dashboard .favorites-toolbar .favorite-kinds{gap:12px}.dashboard .favorites-toolbar .favorite-kinds button{font-size:11px}.favorite-kinds span{font-size:9px;margin-left:2px}.favorites-toolbar-actions{gap:3px}.follow-source-controls>summary{font-size:10px;padding:6px 4px}.dashboard #follows-check-all{font-size:10px}.dashboard .follow-authors{grid-template-columns:minmax(0,1fr)}.dashboard .follow-author-card{min-height:86px;padding:10px}.dashboard .follow-author-actions button,.dashboard .follow-author-actions a{min-height:34px}.dashboard .follow-library-header{padding:12px}.dashboard .follow-library-title{font-size:16px}.dashboard .follow-library-actions button{padding:7px;font-size:10px;min-height:36px}.dashboard .follow-library-stats{gap:14px;justify-content:flex-start}.dashboard .follow-library-stats>div{font-size:10px}.dashboard .follow-library-stats strong{font-size:12px}.dashboard .follow-library-selection>span{display:none}.dashboard .follow-library-batch{gap:5px;padding:8px}.dashboard .follow-library-batch-action>button,.dashboard .follow-library-selection button{font-size:11px;min-height:38px;padding:7px 8px}.dashboard .follow-library-batch-settings>summary{min-height:38px;font-size:11px;padding:7px 5px}}
@media(max-width:360px){.dashboard .favorites-toolbar .favorite-kinds{gap:8px}.dashboard .favorites-toolbar .favorite-kinds button{font-size:10px}.dashboard .follows-view{padding:10px}.favorites-toolbar{gap:3px}.dashboard .follow-library-meta{font-size:10px}.dashboard .follow-library-title{font-size:14px}.dashboard .follow-library-avatar{flex-basis:34px}.dashboard .follow-library-avatar .video-cover{width:34px;height:34px}}

/* Production favorites share the home header; the old demo controls stay in its iframe. */
.dashboard:not(.extraction-demo) .follows-view{padding:0;border:0;background:transparent;box-shadow:none}
.dashboard:not(.extraction-demo) .favorites-toolbar{display:none}
.dashboard #favorites-tabs{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:198px;height:34px;min-height:0;margin:0;padding:3px;border:0;border-radius:10px;background:#f1f2f1;isolation:isolate}
#favorites-tabs::before{content:'';position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border-radius:7px;background:#fff;box-shadow:0 1px 4px #0000000e;transition:transform .26s cubic-bezier(.2,.8,.2,1);z-index:0;pointer-events:none}
#favorites-tabs[data-kind=profile]::before{transform:translateX(100%)}
#favorites-tabs[data-kind=collection]::before{transform:translateX(200%)}
.dashboard #favorites-tabs button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:7px;color:#8a908b;background:transparent;box-shadow:none;font-size:12px;font-weight:500;transform:none;transition:color .2s}
.dashboard #favorites-tabs button:is(:hover,:active,:focus,[aria-selected=true]){background:transparent;box-shadow:none}
.dashboard #favorites-tabs button[aria-selected=true]{color:#233a30}
.dashboard #favorites-tabs button::after{display:none}
.dashboard #favorites-tabs button:focus-visible{outline:2px solid #81b8b2;outline-offset:1px}
.dashboard .workspace-topbar #follows-check-all{position:absolute;right:76px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;color:#414742;background:transparent;box-shadow:none;isolation:isolate;-webkit-tap-highlight-color:transparent;transition:opacity .15s}
.dashboard .workspace-topbar #follows-check-all::before{content:'';position:absolute;inset:5px;border-radius:10px;background:#f1f2f1;z-index:-1}
.dashboard .workspace-topbar #follows-check-all:is(:hover,:active){background:transparent;box-shadow:none}
.dashboard .workspace-topbar #follows-check-all:active{opacity:.5}
.dashboard .workspace-topbar #follows-check-all:focus-visible{outline:2px solid #81b8b2;outline-offset:-2px;border-radius:12px}
.dashboard .workspace-topbar #follows-check-all .icon{width:18px;height:18px;flex-basis:18px}
.dashboard .workspace-topbar #follows-check-all::after{display:none}
.dashboard .workspace-topbar #follows-check-all[aria-busy=true] .icon{animation:favorites-refresh-turn .9s linear infinite}
@keyframes favorites-refresh-turn{to{transform:rotate(360deg)}}
@media(max-width:860px){.dashboard .workspace-topbar #follows-check-all{right:10px}}
@media(prefers-reduced-motion:reduce){#favorites-tabs::before{transition:none}.dashboard .workspace-topbar #follows-check-all[aria-busy=true] .icon{animation:none}}
/* Desktop favorites use a larger, lower toolbar aligned with the content column. */
.favorites-gallery-heading,.favorites-gallery-controls,.favorites-gallery-open{display:none}
.favorites-gallery-toolbar{display:contents}
@media(min-width:861px){
 .dashboard:not(.extraction-demo)[data-view=follows]{--favorites-desktop-offset:max(0px,calc((100vw - 1456px)/2));--favorites-desktop-inset:clamp(28px,3vw,44px)}
 .dashboard:not(.extraction-demo)[data-view=follows] .workspace-topbar{min-height:96px;padding-block:24px}
 .dashboard:not(.extraction-demo)[data-view=follows] .workspace-main{width:calc(100% - 216px);max-width:1240px;margin-left:calc(216px + var(--favorites-desktop-offset))}
 .dashboard:not(.extraction-demo)[data-view=follows] #favorites-tabs{left:calc(var(--favorites-desktop-offset) + var(--favorites-desktop-inset));transform:translateY(-50%);width:360px;height:48px;padding:4px;border-radius:14px}
 .dashboard:not(.extraction-demo)[data-view=follows] #favorites-tabs::before{inset:4px auto 4px 4px;width:calc((100% - 8px)/3);border-radius:10px}
 .dashboard:not(.extraction-demo)[data-view=follows] #favorites-tabs button{font-size:16px;font-weight:550;letter-spacing:.02em;border-radius:10px}
 .dashboard:not(.extraction-demo)[data-view=follows] .workspace-topbar #follows-check-all{left:calc(var(--favorites-desktop-offset) + var(--favorites-desktop-inset) + 372px);right:auto;width:52px;height:52px;min-height:52px}
 .dashboard:not(.extraction-demo)[data-view=follows] .workspace-topbar #follows-check-all::before{inset:2px;border-radius:14px}
 .dashboard:not(.extraction-demo)[data-view=follows] .workspace-topbar #follows-check-all .icon{width:22px;height:22px;flex-basis:22px}
 .dashboard:not(.extraction-demo)[data-view=follows] #follows-view{--gallery-space:clamp(150px,18vw,232px);--gallery-card:clamp(176px,18vw,216px);position:relative;text-align:center}
 .dashboard:not(.extraction-demo) .favorites-gallery-heading{display:block;margin:clamp(28px,6svh,56px) 0 18px;font-size:26px;font-weight:500;line-height:1.6}
 .dashboard:not(.extraction-demo) .favorites-gallery-toolbar{display:flex;justify-content:center;align-items:center;gap:12px;min-height:40px;margin-bottom:26px}
 .dashboard:not(.extraction-demo) .favorites-gallery-controls{display:flex;align-items:center;justify-content:center;gap:10px;height:40px}
 .dashboard:not(.extraction-demo) .favorites-gallery-controls button{display:grid;place-items:center;min-height:34px;width:34px;padding:8px;border:1px solid #e9ece9;border-radius:50%;background:#fff}
 .favorites-gallery-controls .icon{width:16px;height:16px;flex-basis:16px}
 #favorites-gallery-prev .icon{transform:rotate(90deg)}
 #favorites-gallery-next .icon{transform:rotate(-90deg)}
 #favorites-gallery-position{min-width:46px;font-size:12px;color:#7a847e;font-variant-numeric:tabular-nums}
 .dashboard:not(.extraction-demo)[data-view=follows] .favorites-toolbar{display:flex;min-height:40px;margin:0;padding:0}
 .dashboard:not(.extraction-demo)[data-view=follows] .follow-source-controls>summary{min-height:34px;padding:7px 12px;border:1px solid #e5e9e5;border-radius:999px;background:#fff}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true]{position:relative;display:block;height:320px;min-height:320px;margin:0 0 60px;overflow-x:clip;overflow-y:visible}
 .dashboard:not(.extraction-demo)[data-view=follows] #follows-singles[data-gallery=true]{margin-bottom:0}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true]>article{position:absolute;top:0;left:50%;display:flex;flex-direction:column;gap:0;width:var(--gallery-card);height:300px;min-height:300px;padding:0;border:1px solid #e5eae6;border-radius:15px;background:#fff;text-align:center;transform:translateX(calc(-50% + var(--gallery-offset)*var(--gallery-space))) scale(.86);transform-origin:center center;opacity:.4;filter:blur(1.3px);z-index:1;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .28s,filter .28s,box-shadow .28s;cursor:pointer}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true]>article[data-gallery-active=true]{opacity:1;filter:none;transform:translateX(-50%) scale(1);box-shadow:0 9px 28px #253f3210;z-index:3}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true]>article[data-gallery-hidden=true]{visibility:hidden;pointer-events:none}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] .favorite-job-link{display:flex;flex-direction:column;gap:0;width:100%;height:100%;padding:0;color:inherit;text-decoration:none}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] .follow-author-open{display:block;width:100%;height:224px;flex:0 0 224px;border-radius:14px 14px 0 0}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] :is(.favorite-job-link>.video-cover,.follow-author-open>.video-cover.follow-author-avatar){display:block;width:100%;height:224px;min-width:0;flex:0 0 224px;aspect-ratio:auto;border-radius:14px 14px 0 0;background:#f3f5f2}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] .video-cover img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] :is(.recent-read-copy,.follow-author-copy){display:flex;flex-direction:column;justify-content:center;gap:4px;flex:1;width:100%;min-width:0;padding:8px 10px}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] :is(.recent-read-name,.follow-author-copy>strong){display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;font-weight:550}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] :is(.recent-read-count,.follow-author-copy>p){margin:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.6}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] .follow-author-actions{position:absolute;top:calc(100% + 16px);left:50%;display:flex;flex-direction:row;gap:8px;width:max-content;transform:translateX(-50%)}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] .follow-author-actions :is(a,button){min-height:36px;padding:8px 13px;border:1px solid #e2e8e3;border-radius:999px;background:#fff;font-size:12px}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true] .follow-author-actions a{background:#194e43;border-color:#194e43;color:#fff}
 .dashboard:not(.extraction-demo)[data-view=follows] [data-gallery=true]>article:not([data-gallery-active=true]) .follow-author-actions{visibility:hidden}
 .dashboard:not(.extraction-demo)[data-view=follows] .favorites-gallery-open{display:inline-flex;position:relative;margin:16px auto 30px;min-height:38px;padding:8px 20px;border-radius:999px;font-size:12px}
 .dashboard:not(.extraction-demo)[data-view=follows] #favorites-more{display:block;margin:16px auto}
}
@media(prefers-reduced-motion:reduce){.dashboard [data-gallery=true]>article{transition:none!important}}

/* A task panel stays out of the reading column and above mobile navigation. */
.extraction-progress{position:fixed;right:24px;bottom:22px;z-index:25;width:350px;max-width:calc(100vw - 32px);overflow:hidden;border:1px solid #dbe5dc;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 10px 36px rgba(25,64,52,.12);color:var(--ink,#183f34)}
.extraction-progress[hidden]{display:none!important}
.extraction-progress-header{display:flex;align-items:center;gap:2px;padding:4px 8px 0 6px;min-height:48px;touch-action:none;user-select:none;cursor:grab}
.extraction-progress-grip{display:grid;place-items:center;flex:none;width:28px;min-height:44px;padding:0;border:0;border-radius:8px;background:none;color:#a6b7ac;font-size:21px;cursor:grab;touch-action:none}
.extraction-progress-grip:hover{background:#f1f5f2;color:#6c8b79}
.extraction-progress[data-dragging=true],.extraction-progress[data-dragging=true] *{cursor:grabbing!important}
.extraction-progress[data-dragging=true]{box-shadow:0 16px 48px #193f3426}
.extraction-progress-toggle{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:44px;border:0;background:none;padding:4px 0;color:inherit;text-align:left;cursor:pointer}
.extraction-progress-title{font-size:14px;line-height:1.4;font-weight:650;flex:1}
.extraction-progress-count{font-size:12px;font-variant-numeric:tabular-nums;color:#688073;white-space:nowrap}
.extraction-progress-chevron{font-size:18px;line-height:1;width:20px;text-align:center;color:#6d8478}
.extraction-progress-close{flex:none;border:0;background:transparent;min-width:32px;min-height:36px;font-size:21px;color:#798a81;border-radius:8px;cursor:pointer;padding:0}
.extraction-progress-close:hover,.extraction-progress-toggle:hover{color:#214e40}
.extraction-progress-meter{display:block;width:calc(100% - 32px);height:4px;border:0;margin:0 16px 10px;appearance:none;border-radius:5px;overflow:hidden;background:#edf2eb;color:#386e58;accent-color:#386e58}
.extraction-progress-meter::-webkit-progress-bar{background:#edf2eb;border-radius:5px}
.extraction-progress-meter::-webkit-progress-value{background:#56866b;border-radius:5px;transition:width .25s ease}
.extraction-progress-meter::-moz-progress-bar{background:#56866b;border-radius:5px}
.extraction-progress-content{padding:0 16px 14px;max-height:min(52dvh,360px);overflow:auto;overscroll-behavior:contain}
.extraction-progress-content[hidden]{display:none!important}
.extraction-progress-detail{font-size:11px;line-height:1.6;color:#78897d;margin:0 0 7px;font-variant-numeric:tabular-nums}
.extraction-progress-list{display:grid;gap:1px}
.extraction-progress-row{display:flex;align-items:center;gap:12px;min-height:35px;padding:5px 0;text-decoration:none!important;border-bottom:1px solid #eef1eb;font-size:12px;color:inherit}
.extraction-progress-work{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.extraction-progress-state{flex:none;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#7d8f83}
.extraction-progress-state[data-state=complete]{color:#27624b}
.extraction-progress-state[data-state=failed],.extraction-progress-state[data-state=needs_user],.extraction-progress-state[data-state=unavailable]{color:#936c39}
.extraction-progress-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:10px;min-height:30px}
.extraction-progress-control{border:0;background:transparent;font:inherit;font-size:12px;color:#728477;padding:5px 0;cursor:pointer;margin-right:auto}
.extraction-progress-control:disabled{opacity:.5;cursor:default}
.extraction-progress-result{font-size:12px;font-weight:600;color:#285b46;text-decoration:none!important;padding:7px 10px;background:#edf3eb;border-radius:8px}
.extraction-progress :is(button,a):focus-visible{outline:2px solid #629a83;outline-offset:2px}
.extraction-progress[data-collapsed=true]{width:280px;border-radius:15px}
.extraction-progress[data-collapsed=true] .extraction-progress-header{min-height:46px}
.extraction-progress[data-collapsed=true] .extraction-progress-toggle{min-height:44px}
.extraction-progress[data-collapsed=true] .extraction-progress-meter{margin-bottom:10px}
@media(max-width:860px){.extraction-progress{right:12px;bottom:calc(var(--workspace-nav-height,68px) + 12px);width:min(350px,calc(100vw - 24px));border-radius:15px}.extraction-progress[data-collapsed=true]{width:250px}.extraction-progress-header{padding-left:5px}.extraction-progress-content{padding:0 14px 10px}.extraction-progress-row{min-height:34px}.extraction-progress-detail{font-size:11px}.extraction-progress-close{min-width:38px;min-height:44px}.extraction-progress-control,.extraction-progress-result{min-height:38px;display:inline-flex;align-items:center}}
@media(prefers-reduced-motion:reduce){.extraction-progress-meter::-webkit-progress-value{transition:none}}

@media(max-width:860px){.dashboard[data-extraction-progress] :is(.profile-selection-bar,.follow-selection){bottom:calc(var(--workspace-nav-height,68px) + var(--extraction-progress-height,0px) + 24px)}}

.dashboard[data-extraction-progress] .workspace-main{padding-bottom:calc(var(--extraction-progress-height,0px) + 48px)}
@media(max-width:860px){.dashboard[data-extraction-progress] .workspace-main{padding-bottom:calc(var(--workspace-nav-height,68px) + var(--extraction-progress-height,0px) + 40px)}}

/* Compact strip -> progress ball -> compact strip; task polling never opens a list. */
.extraction-progress{z-index:55;transition:box-shadow .2s}
.extraction-progress[data-snapping=true]{transition:left .2s ease,top .2s ease,box-shadow .2s}
.extraction-progress[data-dragging=true]{transition:none}
.extraction-progress[data-collapsed=true]{width:220px}
.extraction-progress-header{padding:3px 6px;min-height:42px}
.extraction-progress-grip{width:28px;height:40px;min-height:40px;position:relative;-webkit-tap-highlight-color:transparent}
.extraction-progress-grip::before{content:'';width:13px;height:2px;border-radius:2px;background:#89998d}
.extraction-progress-grip:hover{background:transparent}
.extraction-progress-toggle{gap:6px;min-height:40px}
.extraction-progress-title{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.extraction-progress-count{font-size:11px}
.extraction-progress-bubble{position:relative;isolation:isolate;display:grid;place-items:center;width:52px;height:52px;min-width:52px;min-height:52px;overflow:hidden;border:0;border-radius:50%;padding:0;background:#fff;color:#2c4938;touch-action:none;user-select:none;cursor:grab;-webkit-tap-highlight-color:transparent}
.extraction-progress-water{position:absolute;inset:0;pointer-events:none;transform:translateY(calc(100% - var(--extraction-progress-percent,0%)));transition:transform .65s ease;background:linear-gradient(to bottom,transparent 4px,#accfc0 4px)}
.extraction-progress-water[hidden]{display:none}
.extraction-progress-water::before,.extraction-progress-water::after{content:'';position:absolute;left:0;width:208px;height:12px;background-repeat:repeat-x;background-size:104px 12px;animation:extraction-water-flow 5s linear infinite;will-change:transform}
.extraction-progress-water::before{top:-6px;opacity:.6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='12' viewBox='0 0 104 12'%3E%3Cpath d='M0 4Q13 0 26 4T52 4T78 4T104 4V12H0Z' fill='%2389bcad'/%3E%3C/svg%3E");animation-duration:6.7s;animation-direction:reverse}
.extraction-progress-water::after{top:-4px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='12' viewBox='0 0 104 12'%3E%3Cpath d='M0 4Q13 0 26 4T52 4T78 4T104 4V12H0Z' fill='%23accfc0'/%3E%3C/svg%3E")}
.extraction-progress-bubble-label{position:relative;z-index:1;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;pointer-events:none}
@keyframes extraction-water-flow{from{transform:translateX(0)}to{transform:translateX(-104px)}}
.extraction-progress[data-bubble=true]{width:54px!important;height:54px;border-radius:50%;overflow:hidden;max-width:none;box-shadow:0 4px 18px #203d3026}
.extraction-progress[data-bubble=true] :is(.extraction-progress-header,.extraction-progress-meter,.extraction-progress-content){display:none}
@media(max-width:860px){.dashboard:not(.extraction-demo)[data-extraction-progress] .workspace-main{padding-bottom:calc(var(--workspace-nav-height,68px) + 24px)}}
@media(prefers-reduced-motion:reduce){.extraction-progress,.extraction-progress-water{transition:none}.extraction-progress-water::before,.extraction-progress-water::after{animation:none;will-change:auto}}

/* API access follows the workbench's white surfaces and orbit focus treatment. */
.dashboard .agent-view{padding:0;border:0;background:transparent;box-shadow:none;min-width:0}
.api-setup{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.api-setup-step{min-width:0;padding:23px 25px;background:#fff;border:1px solid #dfe7df;border-radius:18px;box-shadow:0 2px 3px #31583f02}
.api-step-title{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.api-step-title h3{font-size:15px;font-weight:600;margin:0;color:#234b3f}
.api-step-number{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:9px;background:#edf3e9;color:#52785e;font:600 12px/1 system-ui}
.api-setup-step .api-key-form{display:flex;gap:12px;margin:0;max-width:720px;align-items:stretch}
.api-setup-step .focus-orbit{flex:1;min-width:0;border-radius:11px}
.api-setup-step .focus-orbit input{display:block;width:100%;min-width:0;height:45px;box-sizing:border-box;margin:0;border:1px solid #dbe4dc;border-radius:inherit;padding:11px 13px;background:#fafcf9;font-family:inherit;font-size:13px;line-height:1.5;color:#23463a;box-shadow:none}
.api-setup-step .api-field-control .focus-orbit input{font:12px/1.6 ui-monospace,SFMono-Regular,monospace}
.api-setup-step .focus-orbit input::placeholder{font:13px/1.6 system-ui;color:#91a096;opacity:1}
.api-setup-step button{border-radius:11px;min-height:43px;white-space:nowrap;font-size:13px;padding:10px 16px}
.api-setup-step .primary{background:#194c3f;border-color:#194c3f;box-shadow:0 3px 7px #204d3d0d}
.api-setup-step .primary:hover:not(:disabled){background:#225e4e}
.api-setup-step .primary:disabled{background:#afc5b9;border-color:#afc5b9;color:#fff;opacity:.72;box-shadow:none}
.api-setup-step .secondary:disabled{color:#99a49c;border-color:#e5ebe5;background:#fcfdfa;opacity:.7}
.api-connection-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.api-connection-fields>div{min-width:0}
.api-connection-fields label{display:block;font-size:12px;font-weight:500;color:#637969;margin-bottom:8px}
.api-field-control{display:flex;gap:8px;min-width:0}
.api-field-control button{flex-shrink:0;min-width:48px;padding:8px 12px;font-size:12px;color:#55715f;background:#fff;border-color:#dce6dd}
.api-config-actions{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:16px;margin-top:32px}
.api-config-actions>#api-config-copy{min-width:100px}
.api-setup-step .hint{font-size:12px;line-height:1.8;margin:11px 0 0;color:#8a9588}
.api-connection-check{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.api-connection-state{font-size:13px;line-height:1.8;overflow-wrap:anywhere;text-align:right}
.api-connection-state:empty,.agent-view #api-key-feedback:empty{display:none}
.api-connection-state[data-state=success]{color:#22654d}
.api-connection-state[data-state=error]{color:#a3453b}
.api-connection-state[data-state=loading]{color:#738677}
.api-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px;align-items:start}
.agent-view .api-resource{min-width:0;padding:0;margin:0;background:#f7faf5;border:1px solid #dfe7df;border-radius:16px;overflow:hidden}
.agent-view .api-resource>summary{display:flex;align-items:center;gap:13px;list-style:none;cursor:pointer;padding:20px;color:#315444;font-size:14px;font-weight:400;outline-offset:-4px}
.api-resource>summary::-webkit-details-marker{display:none}
.api-resource>summary>span:nth-child(2){flex:1;min-width:0}
.api-resource>summary strong{display:block;font-size:14px;font-weight:600;color:#2a5140;line-height:1.6}
.api-resource>summary small{display:block;margin-top:3px;font-size:12px;line-height:1.7;color:#8a9787}
.api-resource-icon{display:grid;place-items:center;flex-shrink:0;width:37px;height:37px;background:#e9f0e5;border:1px solid #dfe9da;border-radius:11px;color:#648366}
.api-resource-icon .icon{width:18px;height:18px}
.api-resource-chevron{width:15px;height:15px;flex-shrink:0;opacity:.6;transition:transform .2s}
.api-resource[open] .api-resource-chevron{transform:rotate(180deg)}
.agent-view .api-resource[open]{background:#fff}
.api-resource[open]>summary{border-bottom:1px solid #e7ede4;background:#f7faf5}
.api-resource-body{padding:19px 20px 22px;min-width:0}
.api-resource-body .section-heading{margin:0 0 12px;gap:12px;flex-wrap:wrap}
.api-resource-body h3{font-size:14px;margin:0;color:#365644}
.api-resource-body p{font-size:13px;line-height:1.85;color:#7c897a;margin:0 0 14px}
.api-resource-body .hint{font-size:12px;color:#8b9587}
.api-resource-body .key-row{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #edf0e8}
.api-resource-body .key-row strong{overflow-wrap:anywhere}
.api-resource-body .records-empty{padding:12px 0;background:none;border:0}
.api-resource-body .api-steps{grid-template-columns:minmax(0,1fr);gap:5px}
.api-resource-body .api-steps span{margin-bottom:9px;color:#8b9587;font-size:12px}
.api-resource-body pre{padding:15px;font-size:11px;line-height:1.8;background:#f3f6ee;border:1px solid #e8eee1;border-radius:11px;max-width:100%;overflow-wrap:anywhere}
.api-cli-guide{margin-top:22px}
.api-cli-guide .result-actions{flex-wrap:wrap;margin:12px 0;gap:14px;font-size:12px}
.api-cli-guide .button-link{padding:8px 12px;border-radius:10px;font-size:12px}
@media(max-width:700px){.api-connection-fields{grid-template-columns:minmax(0,1fr);gap:17px}.api-resources{grid-template-columns:minmax(0,1fr)}.api-setup-step{padding:19px 17px;border-radius:15px}.api-setup-step .api-key-form{display:flex;flex-wrap:nowrap;gap:9px}.api-setup-step .api-key-form .focus-orbit{flex:1;min-width:0}.api-setup-step button{padding:9px 12px;min-height:43px}.api-config-actions{gap:12px;margin-top:28px}.api-connection-check{flex-wrap:wrap;gap:8px}.api-connection-state{flex-basis:100%;font-size:12px}.api-resource-body{padding:18px 17px}.agent-view .api-resource>summary{padding:18px}.api-setup-step .focus-orbit input{padding:10px;font-size:12px}.api-setup-step .focus-orbit input::placeholder{font-size:12px}}
@media(prefers-reduced-motion:reduce){.api-resource-chevron{transition:none}}

.api-help-steps{padding-left:20px;margin:0 0 15px;color:#526d5d;font-size:13px;line-height:1.9}
.api-help-steps li+li{margin-top:10px}
.agent-view .api-developer-reference{margin:18px 0 0;padding:0;border:0;border-top:1px solid #e5ebe2;border-radius:0;background:transparent}
.api-developer-reference>summary{padding:15px 0 0;color:#728470;cursor:pointer;font-size:12px}
.api-developer-reference>div{padding-top:17px}

/* A mirrored push drawer keeps groups out of the document workspace. */
.dashboard{--group-drawer-width:300px}
.dashboard .material-groups-toggle{position:absolute;right:76px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:#323733;box-shadow:none}
.material-groups-toggle .icon{width:23px;height:23px}
.dashboard .material-groups-toggle:is(:hover,:active,:focus){background:transparent;box-shadow:none}
.dashboard .material-groups-toggle:active{opacity:.45}
.dashboard .material-groups-toggle:focus-visible{outline:1px solid #9ba59e;outline-offset:-4px}
.material-group-drawer{position:fixed;inset:0 0 auto auto;z-index:30;display:flex;flex-direction:column;gap:12px;width:var(--group-drawer-width);height:100svh;min-height:0;padding:20px 14px max(16px,env(safe-area-inset-bottom));background:#f7f8f6;opacity:0;transform:translateX(16px);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s;overflow:hidden}
.material-group-drawer[hidden],.material-drawer-backdrop[hidden]{display:none}
.dashboard[data-groups-open=true] .material-group-drawer{opacity:1;transform:translateX(0)}
.dashboard[data-groups-open=true] .workspace-page{transform:translateX(calc(-1 * var(--group-drawer-width)));border-radius:0 22px 22px 0;box-shadow:8px 0 30px #17251e24,0 0 1px #17251e44}
.dashboard[data-groups-open=true] .extraction-progress{visibility:hidden}
.dashboard .material-drawer-backdrop{position:fixed;inset:0 var(--group-drawer-width) 0 0;z-index:45;width:auto;height:100svh;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;touch-action:none}
.material-drawer-top{display:flex;gap:8px;align-items:center;flex-shrink:0}
.dashboard .material-drawer-top #material-create{flex:1;min-width:0;min-height:44px;height:44px;width:auto;margin:0;padding:9px 12px;border:1px solid #e0e5df;border-radius:11px;background:#fff;color:#253e33;font-size:13px;box-shadow:none}
.dashboard .material-drawer-top #material-delete{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;border:1px solid #e0e5df;border-radius:11px;background:#fff;color:#768278;box-shadow:none}
.dashboard .material-drawer-top #material-delete[aria-pressed=true]{background:#fee9e9;border-color:#f5c2c2;color:#dc2626}
.material-group-drawer #material-groups{display:flex;flex-direction:column;flex:1;min-height:0;gap:6px;margin:0;padding:2px 0 12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.dashboard .material-group-drawer .material-group{display:flex;align-items:center;gap:10px;flex-shrink:0;width:100%;min-height:48px;margin:0;padding:11px 12px;border-radius:11px;font-size:13px;touch-action:pan-y;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;text-align:left}
.material-group-drawer .material-group-name{min-width:0;max-width:none;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.material-group-drawer .material-group-badge{flex-shrink:0}
.material-group-drawer .material-group-selector{width:18px;height:18px;flex:0 0 18px;border:1px solid #cdd4ce;border-radius:5px}
.dashboard .material-group-drawer .material-group[aria-checked=true]{background:#fee9e9;color:#b91c1c}
.material-group-drawer .material-group[aria-checked=true] .material-group-selector{background:#dc2626;border-color:#dc2626;color:#fff}
.material-drawer-bottom{flex-shrink:0;margin-top:auto}
.material-drawer-bottom:has(>button[hidden]):not(:has(.material-group-delete-actions:not([hidden]))){display:none}
.material-drawer-bottom #material-undo{width:100%;min-height:44px;text-align:left;font-size:12px}
.material-group-drawer .material-group-delete-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 0 0;margin:0;border-top:1px solid #e1e5de;font-size:12px}
.material-group-drawer .material-group-delete-actions[hidden]{display:none}
.material-group-delete-actions>div{display:flex;gap:8px}
.dashboard .material-group-delete-actions button{min-height:44px;flex:1;border:1px solid #dce2da;border-radius:10px;background:#fff;font-size:12px;padding:8px}
.dashboard .material-group-delete-actions #material-delete-confirm{background:#dc2626;border-color:#dc2626;color:#fff}
.dashboard .material-group-delete-actions #material-delete-confirm:disabled{opacity:.4}
.dashboard:not(.extraction-demo) .materials-layout{display:block}
.dashboard:not(.extraction-demo) .material-content{padding:16px 20px;border-radius:18px}
.dashboard:not(.extraction-demo) #material-items{min-height:160px}
.dashboard:not(.extraction-demo) #material-items[aria-busy=true]::before{height:120px}
.dashboard:not(.extraction-demo) .material-toolbar{margin:0 0 12px;gap:8px}
.dashboard:not(.extraction-demo) .material-toolbar>#material-source{flex:0 0 auto;min-width:72px;padding:9px 18px;font-size:13px;min-height:42px;border-radius:10px}
.dashboard .material-export-menu{position:relative;flex:0 0 auto;min-width:0}
.dashboard .material-export-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 16px;border:1px solid #dce2da;border-radius:10px;font-size:13px;color:#3c4b42;background:#fff;list-style:none;cursor:pointer}
.material-export-menu>summary::-webkit-details-marker{display:none}
.material-export-menu>summary .icon{width:14px;height:14px}
.material-export-options{position:absolute;top:calc(100% + 6px);left:0;z-index:50;width:164px;padding:8px;border:1px solid #e3e7e0;border-radius:13px;background:#fff;box-shadow:0 8px 30px #1d342019}
.material-export-options>span{display:block;padding:5px 8px;font-size:11px}
.dashboard .material-export-options>button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px;border:0;border-radius:8px;text-align:left;white-space:nowrap;font-size:13px;background:transparent;color:#33483c}
.material-export-options>button:hover{background:#f1f4ef}
.material-export-options>button .icon{width:17px;height:17px}
.material-dragging .material-group{cursor:grabbing}
.material-group-lifted{opacity:.25!important}
.dashboard .material-drag-ghost{position:fixed;z-index:85;display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #a7c3ac;border-radius:11px;color:#2b5740;background:#e7f0e7;box-shadow:0 8px 22px #183d2529;pointer-events:none;opacity:.97;font-size:13px}
.material-drag-ghost .material-group-name{flex:1}
.material-drop-line{position:fixed;z-index:84;height:3px;border-radius:2px;background:#39815e;pointer-events:none}
@media(min-width:861px){
 .dashboard:not(.extraction-demo)[data-view=materials] .workspace-page{position:relative;z-index:40;display:block;width:calc(100% - 216px);min-height:100svh;margin-left:216px;background:#fff;transform:translateX(0);transition:transform .3s cubic-bezier(.2,.8,.2,1),border-radius .3s,box-shadow .3s}
 .dashboard:not(.extraction-demo)[data-view=materials] .workspace-page .workspace-topbar{width:100%;margin-left:0}
 .dashboard:not(.extraction-demo)[data-view=materials] .workspace-page .workspace-main{width:100%;max-width:1240px;margin-inline:auto}
 .dashboard:not(.extraction-demo)[data-view=materials][data-groups-open=true] .workspace-page{transform:translateX(calc(-1 * var(--group-drawer-width)))}
}
@media(max-width:860px){
 .dashboard{--group-drawer-width:min(280px,72vw)}
 .dashboard .material-groups-toggle{right:10px}
 .material-group-drawer{padding-top:max(10px,env(safe-area-inset-top));padding-inline:12px}
 .dashboard:not(.extraction-demo) .material-content{padding:12px;border-radius:15px}
 .dashboard:not(.extraction-demo) .material-selection{gap:4px 8px;padding:8px 0}
 .dashboard:not(.extraction-demo) .material-selection .quiet{padding-inline:3px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.dashboard .material-group-drawer,.dashboard[data-view=materials] .workspace-page{transition:none}}

/* The desktop document sits above the same gray surface as its navigation. */
@media(min-width:861px){
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]{--desktop-sidebar-width:216px;--desktop-frame-gap:12px;--desktop-header-height:68px;--desktop-recent-height:224px;position:relative;display:block;width:100%;height:100svh;min-height:0;margin:0;overflow:hidden;background:#f2f3f2;--page:#f2f3f2}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-sidebar{z-index:30;width:var(--desktop-sidebar-width);height:100svh;padding:24px 12px;background:#f2f3f2;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;visibility:visible;transform:translateX(0);transition:transform .25s cubic-bezier(.2,.8,.2,1),opacity .2s}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-navigation a:hover{background:#e8ebe8}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-navigation a[aria-current=page]{background:#e4e8e4}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-page{position:relative;z-index:40;display:flex;flex-direction:column;width:calc(100% - var(--desktop-sidebar-width) - var(--desktop-frame-gap));height:calc(100svh - 2*var(--desktop-frame-gap));min-height:0;margin:var(--desktop-frame-gap) var(--desktop-frame-gap) var(--desktop-frame-gap) var(--desktop-sidebar-width);overflow:hidden;border:0;border-radius:15px;background:#fff;box-shadow:0 0 1px #17251e1f,0 3px 13px #17251e0a;transform:translateX(0);transition:width .25s cubic-bezier(.2,.8,.2,1),margin-left .25s cubic-bezier(.2,.8,.2,1),transform .3s cubic-bezier(.2,.8,.2,1),border-radius .3s,box-shadow .3s}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:not([data-desktop-shell-settled=true]) .workspace-page{transition:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:not([data-desktop-home-ready=true]) #extract-welcome{visibility:hidden}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-desktop-sidebar-collapsed=true] .workspace-sidebar{opacity:0;visibility:hidden;transform:translateX(-100%)}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-desktop-sidebar-collapsed=true] .workspace-page{width:calc(100% - 2*var(--desktop-frame-gap));margin-left:var(--desktop-frame-gap)}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-page .workspace-topbar{position:relative;top:auto;display:flex;flex:0 0 var(--desktop-header-height);align-items:center;justify-content:space-between;gap:24px;width:100%;max-width:none;height:var(--desktop-header-height);min-height:var(--desktop-header-height);margin:0;padding:12px 32px;background:#fff;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-top-actions{display:flex;align-items:center;flex:none;height:44px;margin-left:auto}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(.workspace-breadcrumb,#mobile-extraction-tabs,#follows-check-all){display:none!important}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(#extraction-tabs,#favorites-tabs){position:absolute;top:12px;left:50%;display:flex;align-items:center;flex:none;gap:28px;isolation:auto;width:auto;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:translateX(-50%)}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(#extraction-tabs,#favorites-tabs)::before{display:none;content:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(#extraction-tabs>a,#favorites-tabs>button){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;gap:3px;width:auto;min-width:0;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#8c938e;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:0;text-decoration:none;white-space:nowrap;transform:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(#extraction-tabs>a[aria-current=page],#favorites-tabs>button[aria-selected=true]){color:#26372e;font-weight:600}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(#extraction-tabs>a:hover,#favorites-tabs>button:hover){color:#405a49;background:transparent}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-topbar :is(#extraction-tabs>a,#favorites-tabs>button):focus-visible{outline:2px solid #8aad99;outline-offset:3px;border-radius:4px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #favorites-tabs span{font-size:10px;font-weight:400}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] .workspace-page .workspace-main{display:flex;flex:1;flex-direction:column;width:100%;max-width:1240px;min-width:0;min-height:0;margin:0 auto;padding:20px clamp(28px,3vw,44px) 28px;overflow-x:clip;overflow-y:auto;overscroll-behavior-y:contain;scroll-behavior:auto}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=video],[data-view=profile],[data-view=collection]) .workspace-page .workspace-main{max-width:none;padding:0 28px 24px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-view=follows] .workspace-page .workspace-main{max-width:none;padding:0 32px 24px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-view=follows] #follows-view{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;width:100%;margin:0;padding:0}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-stage{display:grid;grid-template-rows:minmax(min-content,1fr) minmax(var(--desktop-recent-height),auto);gap:24px;flex:1 0 auto;width:min(904px,100%);min-width:0;min-height:0;margin:0 auto}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-stage[hidden]{display:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-center{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:276px;padding:10px 0}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #welcome-heading{font-size:clamp(22px,calc((100vw - 288px)/19),32px);line-height:1.1875;min-height:1.6em}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-stack{position:relative;top:var(--desktop-composer-shift,0px);flex:none;width:100%;min-width:0}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-stack>.extract-welcome{display:flex;align-items:center;justify-content:center;min-height:44px;height:auto;margin:0 0 18px;padding:0}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-center :is(#extract-view,#profile-panel){flex:none;width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-center .workspace-help{display:flex;justify-content:center;flex:none;min-height:30px;margin:8px 0 0;padding:0}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-center .workspace-help .link-guide-trigger{min-height:30px;margin:0;padding:5px 0;color:#a3aaa5;font-size:11px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-recent{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;min-height:var(--desktop-recent-height)}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-recent>:is(#workspace-history,#profile-recent){flex:none;min-width:0;width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-extraction-recent>:is(#workspace-history,#profile-recent)>.section-heading{justify-content:flex-end;min-height:28px;margin:0 0 8px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #profile-recent-list{grid-template-columns:repeat(3,minmax(0,1fr));}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #profile-recent-list>.recent-read-card:nth-child(n+4){display:flex}
 /* Source previews use the same compact card geometry as video extraction. */
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #profile-recent-list>.recent-read-card{height:88px;min-height:88px;gap:4px;padding:0 6px 0 0;border-radius:12px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #profile-recent-list .recent-read-open{gap:10px;padding:12px 0 12px 12px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #profile-recent-list .video-cover{width:38px;min-width:38px;height:52px;flex:0 0 38px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #profile-recent-list .recent-read-copy{gap:4px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #profile-recent-list .recent-read-name{-webkit-line-clamp:1;line-height:1.5}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #profile-recent-list :is(.recent-read-count,.recent-read-time){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-view=video] #desktop-extraction-recent>#profile-recent,.dashboard:not(.extraction-demo)[data-desktop-shell=true]:is([data-view=profile],[data-view=collection]) #desktop-extraction-recent>#workspace-history{display:none}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-sidebar-toggle{position:fixed;z-index:60;top:calc(var(--desktop-frame-gap) + (var(--desktop-header-height) - 28px)/2);left:calc(var(--desktop-sidebar-width) - 17px);display:grid;place-items:center;width:34px;min-width:34px;height:28px;min-height:28px;margin:0;padding:5px;border:1px solid #e0e5e1;border-radius:999px;background:#fff;color:#758278;box-shadow:0 1px 5px #17251e0a;transition:left .25s cubic-bezier(.2,.8,.2,1),color .15s,background .15s}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-sidebar-toggle svg{display:block;width:18px;height:18px;transition:transform .25s}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-sidebar-toggle:hover{color:#344b3c;background:#f9faf9}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] #desktop-sidebar-toggle:focus-visible{outline:2px solid #8aad99;outline-offset:3px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-desktop-sidebar-collapsed=true] #desktop-sidebar-toggle{left:19px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-desktop-sidebar-collapsed=true] #desktop-sidebar-toggle svg{transform:rotate(180deg)}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-desktop-sidebar-collapsed=true] .workspace-page .workspace-topbar{padding-left:64px}
 .dashboard:not(.extraction-demo)[data-desktop-shell=true][data-view=materials][data-groups-open=true] .workspace-page{transform:translateX(calc(-1 * var(--group-drawer-width)));border-radius:15px 22px 22px 15px;box-shadow:8px 0 30px #17251e24,0 0 1px #17251e44}
 /* This page scrolls inside workspace-main; the outer header is already outside it. */
 .dashboard[data-desktop-shell=true][data-view=detail] #task-navigation{position:static;top:auto;margin-top:0}
 .dashboard #history-selection-tools{display:none}
 .dashboard[data-view=history] #history-selection-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0;color:#64786b;font-size:12px}
 .dashboard #history-selection-tools .history-selection-hint{margin-right:auto}
 .dashboard #history-selection-tools button{min-height:34px;padding:6px 12px}
 .dashboard[data-view=history] #workspace-history-list{user-select:none;-webkit-user-select:none}
 .dashboard[data-view=history] .history-card{position:relative}
 .dashboard[data-view=history] .history-card.history-card-selected{background:#edf5f0;border-color:#51876c;box-shadow:0 0 0 1px #51876c inset}
 .dashboard .history-card .history-pick{display:none}
 .dashboard[data-view=history] .history-card .history-pick{display:block;flex:none;width:16px;height:16px;margin:0 5px 0 0;accent-color:#1c5c48}
 .history-selection-rectangle{position:fixed;z-index:100;pointer-events:none;background:#397e5e1a;border:1px solid #397e5e;border-radius:3px}

}
@media(min-width:861px) and (prefers-reduced-motion:reduce){
 .dashboard:not(.extraction-demo)[data-desktop-shell=true] :is(.workspace-page,.workspace-sidebar,#desktop-sidebar-toggle,#desktop-sidebar-toggle svg){transition:none}
}

@media(max-width:860px){.dashboard #history-selection-tools,.dashboard .history-card .history-pick{display:none!important}.dashboard #profile-recent-list>.recent-read-card:nth-child(n+4){display:flex}}

/* A desktop-specific composition. Mobile retains the existing lists and switch. */
.favorites-showcase{display:none}
@media(min-width:861px){
  body.dashboard:not(.extraction-demo) #follows-view[data-showcase=true]>:not(#favorites-showcase){display:none!important}
  body.dashboard:not(.extraction-demo) #follows-view[data-showcase=true]{display:flex;flex:1;min-height:0;padding:0!important;max-width:none;width:100%;background:transparent!important;border:0!important;box-shadow:none!important}
  .favorites-showcase:not([hidden]){display:flex;flex:1;min-width:0;min-height:0;flex-direction:column}
  .showcase-hero{display:flex;flex:1;min-height:510px;flex-direction:column;align-items:center;justify-content:center;padding:8px 0 76px;gap:0}
  #favorites-showcase .showcase-heading{font-size:32px;line-height:1.1875;font-weight:400;color:#14151c;letter-spacing:-.01em;text-align:center;margin:0 16px 24px;min-height:1.6em}
  .showcase-tools{display:flex;justify-content:center;align-items:center;gap:10px;margin:0 0 28px}
  .showcase-pill,.showcase-arrow{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#4a504d;border:1px solid #e6e8e7;box-shadow:0 1px 3px #15241b04;font-size:13px;font-weight:400;min-height:34px;padding:7px 15px;border-radius:20px;line-height:18px}
  .showcase-pill:hover,.showcase-arrow:hover{background:#f6f7f6;border-color:#cdd2cf}
  .showcase-arrow{width:32px;height:32px;min-height:32px;padding:7px;border-color:transparent;box-shadow:none}
  .showcase-arrow .icon{width:14px;height:14px;transform:rotate(-90deg)}
  #showcase-prev .icon{transform:rotate(90deg)}
  .showcase-arrow:disabled{opacity:.3}
  .showcase-deck{--showcase-card-width:clamp(112px,13.8vw,204px);position:relative;flex:none;width:min(100%,1140px);height:310px;isolation:isolate;outline-offset:4px}
  .showcase-card{--showcase-offset:0;--showcase-scale:1;--showcase-fade:1;--showcase-blur:0px;--showcase-y:0px;position:absolute;left:50%;top:0;width:var(--showcase-card-width);height:284px;transform:translate3d(calc(-50% + var(--showcase-offset)*108%),var(--showcase-y),0) scale(var(--showcase-scale));transform-origin:center center;opacity:var(--showcase-fade);filter:blur(var(--showcase-blur));z-index:30;will-change:transform,opacity;transition:transform 480ms cubic-bezier(.22,.74,.18,1),opacity 360ms ease,filter 420ms ease;border:1px solid #eceeed;border-radius:17px;background:#fafbfa;overflow:hidden;box-shadow:0 4px 14px #15241b03}
  .showcase-card[data-depth="1"]{--showcase-scale:.89;--showcase-fade:.6;--showcase-blur:.7px;--showcase-y:8px;z-index:20}
  .showcase-card[data-depth="2"]{--showcase-scale:.77;--showcase-fade:.32;--showcase-blur:1.6px;--showcase-y:16px;z-index:10}
  .showcase-card[data-active=true]{filter:none;border-color:#dbe1dd;box-shadow:0 8px 24px #233b2b12}
  .showcase-card[data-reposition=true]{transition:none;opacity:0;pointer-events:none}
  .showcase-card-open{display:flex;position:relative;flex-direction:column;width:100%;height:100%;padding:0;gap:0;color:#303833;text-decoration:none;background:#fff}
  .showcase-card .video-cover{display:block;flex:1 1 auto!important;aspect-ratio:auto;width:100%!important;height:100%!important;min-width:0;border:0!important;border-radius:0!important;background:linear-gradient(145deg,#eef0ef,#f8f9f8)}
  .showcase-card .video-cover img{width:100%;height:100%;object-fit:cover;border-radius:0}
  .showcase-card .video-cover>.icon{position:absolute;width:45px;height:45px;left:calc(50% - 22px);top:calc(50% - 36px);opacity:.35}
  .showcase-card-open>strong{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box;padding:32px 12px 14px;color:#fff;font-size:14px;font-weight:500;line-height:1.55;background:linear-gradient(transparent,#102018c2);text-align:center;text-wrap:balance;text-shadow:0 1px 5px #0005}
  .showcase-check{display:inline-flex;align-items:center;gap:8px;margin:17px 0 0!important;border-radius:22px!important;min-height:38px!important;padding:8px 21px!important;font-size:14px!important;font-weight:500!important;color:#fff!important;background:#181818!important;border:1px solid #181818!important;box-shadow:0 3px 7px #00000012!important}
  .showcase-check .icon{width:17px;height:17px}
  .showcase-check:hover{background:#303030!important;border-color:#303030!important}
  .showcase-check:focus-visible{outline:2px solid #777;outline-offset:3px}
  .showcase-check[aria-busy=true] .showcase-update-icon{animation:showcase-check-spin 1.1s linear infinite}
  @keyframes showcase-check-spin{to{transform:rotate(360deg)}}
  .showcase-avatar-stage{display:flex;flex:1;align-items:center;justify-content:center;width:100%;min-height:0;background:#fff}
  .showcase-card[data-kind=source] .video-cover{--showcase-avatar-size:min(calc(var(--showcase-card-width) - 24px),170px);width:var(--showcase-avatar-size)!important;height:var(--showcase-avatar-size)!important;flex:none!important;border-radius:50%!important;aspect-ratio:1;box-shadow:0 0 0 1px #edf0ed}
  .showcase-card[data-kind=source] .video-cover>.icon{top:calc(50% - 22px)}
  .showcase-source-copy{display:flex;flex:none;flex-direction:column;align-items:center;width:100%;padding:11px 9px 12px;border-top:1px solid #e9ece9;background:#fff;color:#2c3931;text-align:center}
  .showcase-source-copy .showcase-card-title{font-size:12px;font-weight:500;line-height:1.6;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px}
  .showcase-source-status{font-size:11px;line-height:1.6;color:#77847a}
  .showcase-source-checked{font-size:10px;line-height:1.6;color:#929b94;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .showcase-feedback{font-size:12px;color:#818982;line-height:1.5;margin:12px 0 0;min-height:18px;text-align:center}
  .showcase-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#8a918c;font-size:14px;text-align:center;padding:20px}
  .showcase-directory{width:min(100%,1120px);margin:12px auto 24px;min-width:0}
  .showcase-directory-tools{display:flex;align-items:center;gap:16px;margin-bottom:14px}
  .showcase-directory-tools>button:first-child{display:inline-flex;gap:6px;align-items:center;color:#6d7670;background:transparent;border:0;padding:6px 0;font-size:13px}
  .showcase-directory-tools>button:first-child .icon{width:16px;height:16px;transform:rotate(180deg)}
  .showcase-directory-tools h2{margin:0;font-size:20px;font-weight:500;color:#29352e;flex:1}
  .showcase-pin-hint{font-size:12px;color:#929992;margin:0 0 16px}
  .showcase-grid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-height:80px}
  .showcase-list-card{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid #e7eae8;border-radius:16px;background:white;box-shadow:0 2px 4px #15291b02}
  .showcase-list-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none;color:#2f3932}
  .showcase-list-open .video-cover{width:56px!important;height:64px!important;flex:0 0 56px;min-width:56px;border-radius:9px!important}
  .showcase-list-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
  .showcase-list-copy strong{font-size:14px;font-weight:500;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .showcase-list-copy>span{font-size:12px;line-height:1.5;color:#8b938d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .showcase-pin{flex:none;width:34px;height:34px;display:grid;place-items:center;padding:7px;border:0;background:transparent;border-radius:50%;color:#a5ada7}
  .showcase-pin[aria-pressed=true]{color:#315c46;background:#edf4ef}
  .showcase-pin:hover{background:#f1f4f2}
  .showcase-pin .icon{width:20px;height:20px}
  .showcase-more{display:block;margin:20px auto}
  .showcase-add-dialog{box-sizing:border-box;width:min(600px,calc(100% - 48px));max-height:min(680px,85dvh);padding:24px;border:1px solid #e5e9e6;border-radius:22px;background:#fff;color:#303b33;box-shadow:0 24px 90px #0002;overscroll-behavior:contain}
  .showcase-add-dialog::backdrop{background:#23362b3b;backdrop-filter:blur(4px)}
  .showcase-add-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px}
  .showcase-add-heading h2{font-size:20px;font-weight:500;margin:0}
  .dashboard .showcase-add-heading>button.icon-button{display:grid;place-items:center;border:0;background:#f5f6f5;border-radius:50%;width:32px;height:32px;padding:8px}
  .showcase-add-slot .follow-add-form{display:flex;align-items:center;gap:10px;margin:0}
  .showcase-add-slot .follow-url-orbit{flex:1;min-width:0}
  .showcase-add-slot #follow-url{width:100%;min-width:0;font-size:14px}
  .showcase-add-slot #follow-add{min-width:88px;font-size:14px;padding:10px 13px}
  .showcase-add-note{font-size:13px;color:#8b938c;margin:0 0 14px}
  .showcase-add-row{display:flex;align-items:center;gap:12px;border-top:1px solid #eef1ee;padding:12px 0}
  .showcase-add-row>.video-cover{width:42px;height:48px;flex:0 0 42px;min-width:42px;border-radius:7px}
  .showcase-add-row>span:not(.video-cover){flex:1;min-width:0;font-size:14px}
  .showcase-add-row>button{font-size:12px;padding:6px 12px;border-radius:18px;min-height:30px}
  @media(max-height:760px){.showcase-hero{min-height:440px;padding:24px 0 24px}.showcase-heading{margin-bottom:18px}.showcase-tools{margin-bottom:20px}.showcase-deck{height:270px}.showcase-card{height:246px}.showcase-check{margin-top:10px!important}}
  @media(prefers-reduced-motion:reduce){.showcase-card{transition:none}.showcase-check .showcase-update-icon{animation:none}}
}
