/* Home reading and playback panels share the workspace's active theme. */
.home-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 22px;min-width:0}
.main-content:has(.home-attention)>.home-activity-grid{grid-column:1/-1;grid-row:2;margin:0}
.home-activity-grid.home-activity-single{grid-template-columns:1fr}
.home-activity-panel{min-width:0;padding:20px;background:var(--paper,#fff);border:1px solid var(--line);border-radius:10px}
.home-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:4px}
.home-activity-heading h2{font-size:15px;font-weight:600;margin:0}
.home-activity-heading>a,.home-activity-heading>span{font-size:12px;white-space:nowrap;color:var(--muted)}
.home-activity-heading>a{color:var(--accent);min-height:30px;display:flex;align-items:center}
.home-activity-empty{padding:26px 0 14px;font-size:13px;line-height:1.6;color:var(--muted);max-width:60ch}
.home-activity-empty p+p{margin-top:8px}
.continue-item{display:flex;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}
.continue-item:last-child{border-bottom:0;padding-bottom:0}
.continue-copy{flex:1;min-width:0}.continue-copy h3{font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-weight:550}
.continue-copy p,.continue-copy>span{font-size:12px;color:var(--muted);margin-top:6px}
.continue-copy progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:0;margin:12px 0 4px;background:var(--line);color:var(--accent)}
.continue-copy progress::-webkit-progress-bar{background:var(--line)}.continue-copy progress::-webkit-progress-value{background:var(--accent)}.continue-copy progress::-moz-progress-bar{background:var(--accent)}
.continue-item .button{min-width:80px;min-height:40px;flex-shrink:0}
.workspace-updates{position:relative;height:152px;min-height:152px}
.workspace-update{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;color:var(--body)}
.workspace-update:last-child{border-bottom:0}
.workspace-update:hover strong{color:var(--accent)}
.workspace-update:focus-visible{outline-offset:-2px}
.workspace-update>span:first-child{min-width:0}
.workspace-update time{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.workspace-update strong{display:block;font-size:13px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
.update-reading-state{font-size:11px;color:var(--accent);flex-shrink:0;min-width:28px;text-align:right}
.workspace-updates.is-reading .workspace-update-list{visibility:hidden;pointer-events:none}
.workspace-update-reader{position:absolute;inset:0;display:block;min-width:0;background:var(--paper,#fff);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.update-reader-toolbar,.update-reader-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;font-size:11px;color:var(--muted)}
.update-reader-toolbar button,.update-reader-footer a{display:inline-flex;align-items:center;min-height:36px;color:var(--accent);font-size:12px}
.update-reader-toolbar{position:sticky;top:0;z-index:1;background:var(--paper,#fff)}
.update-reader-toolbar time{white-space:nowrap}
.update-reader-scroll{padding:8px 4px;font-size:13px;line-height:1.7;color:var(--body)}
.update-reader-scroll h3{font-size:14px;line-height:1.5;margin-bottom:10px;overflow-wrap:anywhere}
.update-reader-scroll p{overflow-wrap:anywhere}
.update-reader-feedback:empty{display:none}.update-reader-feedback{margin-top:12px;color:var(--muted);font-size:12px}
.update-reader-footer{border-top:1px solid var(--line);padding-top:8px}
.update-read-feedback:empty{display:none}.update-read-feedback{font-size:12px;color:var(--muted);margin-top:12px}
/* Page headings carry the title only; field guidance and status remain in context. */
.page-heading>div>p,.page-heading>div>small,.page-heading>.po-mode{display:none}
@media(max-width:760px){.home-activity-grid{grid-template-columns:1fr;gap:16px}.home-activity-panel{padding:16px}.home-activity-heading>a,.update-reader-toolbar button,.update-reader-footer a,.continue-item .button{min-height:44px}.continue-item{gap:12px}}

/* Inbox stays inside the existing card; reading never expands the page. */
.update-inbox-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}
.update-inbox-button:hover,.update-inbox-button[aria-expanded="true"]{color:var(--accent);background:var(--accent-soft)}
.update-inbox-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.update-inbox-title{font-size:13px;font-weight:600;color:var(--muted);padding:8px 0 0;margin:0}
.update-reader-toolbar>a{display:inline-flex;align-items:center;min-height:36px;color:var(--accent);font-size:12px}
@media(max-width:760px){.update-inbox-button{width:44px;height:44px}.update-reader-toolbar>a{min-height:44px}}

/* Compact, stable first row. Saved video progress scrolls inside its own panel. */
.home-continue{display:flex;flex-direction:column;min-height:241px;max-height:241px}
.home-continue .home-activity-heading{flex:none}
.home-continue>.continue-list,.home-continue>.home-activity-empty{min-height:0;overflow:auto;overscroll-behavior:contain}
.home-activity-empty{padding-top:18px}
.update-inbox-button svg{stroke-width:2}
@media(max-width:760px){.home-continue{min-height:0;max-height:247px}}

/* Continue watching: a small player entry, never an auto-playing preview. */
.home-continue .continue-item{align-items:center;gap:18px;padding:16px 0}
.home-continue .continue-preview{position:relative;display:block;flex:0 0 148px;width:148px;height:108px;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--accent-soft);color:var(--accent);text-align:left}
.continue-preview>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 220ms cubic-bezier(.16,1,.3,1)}
.continue-preview-label{position:absolute;bottom:8px;left:8px;right:8px;display:flex;justify-content:space-between;align-items:center;padding:4px 8px;border-radius:4px;background:var(--paper,#fff);color:var(--accent);font-size:11px;font-weight:600;line-height:1.4}
.home-continue .continue-preview:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.home-continue .continue-copy h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.45}
.home-continue .continue-copy p{margin-top:5px}
.continue-timing{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin-top:12px;font-size:11px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums}
.continue-timing strong{font-weight:600;color:var(--ink)}
.home-continue .continue-copy progress{height:5px;margin:7px 0 0;border-radius:3px;overflow:hidden}
.home-continue .continue-duration{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(hover:hover) and (pointer:fine){.continue-preview:hover>img,.continue-preview:focus-visible>img{transform:scale(1.045)}.continue-preview:hover{border-color:var(--accent)}}
@media(max-width:760px){.home-continue .continue-item{gap:12px}.home-continue .continue-preview{flex-basis:104px;width:104px;height:96px}.home-continue .continue-copy h3{font-size:13px}.continue-timing{margin-top:8px;font-size:11px}.home-continue .continue-copy p{font-size:11px}.continue-preview-label{left:6px;right:6px;bottom:6px;padding:4px 6px}}
@media(prefers-reduced-motion:reduce){.continue-preview>img{transition:none!important;transform:none!important}}
