: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; } }
