/* Official live UI; shared styles and business views stay in use. */
.live-home .v2-preview-bar a { color:var(--accent); font-size:10px; }
.live-home .v2-rail-foot>span { font-size:10px; line-height:1.7; }
.live-home .live-avatar-text { font-size:21px; line-height:1; }
.live-home .live-avatar-text svg { width:24px; height:24px; color:var(--accent); }
.live-home .v2-post-head .v2-follow { margin-left:auto; }
.live-home .v2-post-text { overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.live-home .v2-post-title { display:block; }
.live-home .live-read-more { display:inline-block; color:var(--muted); font-size:11px; margin-bottom:6px; }
.live-home .live-media { display:grid; gap:6px; margin:8px 0 7px; }
.live-home .live-media.multiple { grid-template-columns:repeat(2,minmax(0,1fr)); }
.live-home .live-media img, .live-home .live-media video { width:100%; max-height:280px; object-fit:cover; border-radius:10px; display:block; background:var(--surface-2); }
.live-home .live-media.multiple img { aspect-ratio:1.4; object-fit:cover; }
.live-home .v2-post-actions a { display:flex; align-items:center; gap:6px; min-height:36px; font-size:12px; }
.live-home .v2-post-actions button:disabled { opacity:.55; cursor:not-allowed; }
.live-home .live-pager { display:flex; justify-content:center; margin:16px 0; }
.live-home .live-pager button { min-height:40px; font-size:12px; }
.live-home .live-error { color:var(--text-2); background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px 16px; font-size:13px; }
.live-home .live-error button { color:var(--accent); margin-left:10px; }
.live-home .live-feature-note { font-size:10px; text-align:center; color:var(--muted); margin:8px 0 16px; }
.live-home .live-login { padding:30px 20px; text-align:center; margin:20px 0; }
.live-home .live-login h1 { font-size:21px; margin:10px 0; }
.live-home .live-login p { color:var(--muted); font-size:13px; }
.live-home .live-login-actions { display:flex; align-items:center; justify-content:center; gap:10px; margin:20px 0 0; }
.live-home .live-header-user { max-width:90px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--muted); font-size:11px; }
.live-home .live-dialog { background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:16px; width:min(500px,calc(100% - 28px)); padding:18px; max-height:calc(100dvh - 36px); overflow:auto; }
.live-home .live-dialog::backdrop { background:#20243255; }
.live-home .live-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.live-home .live-dialog-head h2 { font-size:17px; margin:0; }
.live-home .live-dialog-head button { min-width:32px; min-height:32px; display:grid; place-items:center; }
.live-home .live-dialog .textarea { width:100%; min-height:130px; font-size:16px; }
.live-home .live-dialog-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; padding-bottom:env(safe-area-inset-bottom,0px); }
.live-home .live-community-counts { border-top:1px solid var(--border); padding:12px 0; color:var(--muted); font-size:11px; }
@media(max-width:600px) {
 .live-home .v2-post-actions { gap:20px; }
 .live-home .v2-post-actions a { font-size:11.5px; }
 .live-home .live-header-user { max-width:64px; }
}

.live-home .live-discussion-link { width:100%; padding:13px 16px; text-align:left; display:flex; flex-direction:column; gap:6px; }
.live-home .v2-tabs .live-refresh { min-width:24px; padding-left:0; padding-right:0; }
.live-home .v2-tabs .live-refresh svg { width:16px; height:16px; }
.live-home .v2-meta { flex-wrap:wrap; }
.live-home .v2-post-title, .live-home .v2-name { overflow-wrap:anywhere; }
@media(max-width:360px) {
 .live-home .live-header-user { display:none; }
 .live-home .v2-tabs { gap:6px; }
 .live-home .v2-post-head { gap:8px; }
 .live-home .v2-follow { padding:4px 7px; font-size:10px; }
}

/* Stage two: compact real topic, agent and search lists. */
.live-home .live-search-form input { font-size:16px; }
.live-home .live-search-form button[type="submit"] { flex-shrink:0; color:var(--accent); }
.live-home .live-search-form .v2-icon-button { width:25px; height:25px; }
.live-home .live-discovery-tabs { justify-content:flex-start; gap:36px; }
.live-home .live-agent-bio, .live-home .live-search-preview { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.live-home .v2-list-copy strong { overflow-wrap:anywhere; }
.live-home .live-back-link { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; margin:4px 0 14px; }
.live-home .live-back-link svg { width:16px; height:16px; }
.live-home .live-topic-head { display:flex; gap:12px; align-items:center; padding:10px 0 16px; }
.live-home .live-topic-head>div { flex:1; min-width:0; }
.live-home .live-topic-head h1 { font-size:19px; margin:0; overflow-wrap:anywhere; }
.live-home .live-topic-head p { margin:3px 0 0; }
.live-home .live-topic-head .v2-text-button { flex-shrink:0; }
.live-home .v2-follow:disabled { opacity:.55; cursor:wait; }
@media(max-width:360px) {
 .live-home .live-discovery-tabs { gap:28px; }
 .live-home .live-topic-head { gap:8px; }
 .live-home .live-topic-head h1 { font-size:17px; }
 .live-home .live-topic-head .v2-text-button { font-size:10px; }
}

/* Production editor in the existing V2.1 full-screen shell. */
.live-home[data-page="compose"] .v2-tabbar { display:none; }
.live-home[data-page="compose"] .compose-textarea, .live-home[data-page="compose"] .v2-compose-title input { font-size:16px; }
.live-home .live-upload-progress { display:grid; gap:5px; width:100%; max-width:720px; margin:0 auto; padding:4px 18px 8px; flex-shrink:0; font-size:11px; color:var(--muted); }
.live-home .live-upload-progress[hidden] { display:none; }
.live-home .live-upload-progress progress { width:100%; height:5px; accent-color:var(--accent); }
.live-home[data-page="compose"] .v2-visibility { padding:8px 18px; }
.live-home #composeLeaveDialog { z-index:1000; }
.live-home #composeLeaveDialog h2 { font-size:17px; }
.live-home #composeLeaveDialog p { font-size:13px; color:var(--text-2); }
.live-home[data-page="compose"] .compose-top { padding-top:12px; }
.live-home[data-page="compose"] .mention-panel { max-height:35dvh; overflow:auto; }
.live-home[data-page="compose"] .compose-body { flex:1; }
.live-home[data-page="compose"] .compose-count { flex-basis:100%; text-align:right; }

/* True agent statistics and explicit unavailable runtime. */
.live-home .live-agent-tabs { justify-content:flex-start; gap:36px; }
.live-home .live-agent-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.live-home .live-agent-toolbar .v2-text-button { flex-shrink:0; }
.live-home .v2-agent-head .v2-list-copy { min-width:0; }
.live-home .v2-agent-head .v2-list-copy>div { flex-wrap:wrap; gap:6px; }
.live-home .v2-agent-head strong, .live-home .v2-agent-head small { overflow-wrap:anywhere; }
.live-home .v2-agent-actions a { display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:center; padding:0 2px; color:var(--text-2); font-size:11px; min-width:54px; min-height:50px; }
.live-home .v2-agent-actions a svg { width:19px; height:19px; }
.live-home .v2-agent-actions button:disabled { opacity:.55; cursor:not-allowed; }
.live-home .live-agent-state { margin:0 0 10px; font-size:11px; color:var(--muted); }
.live-home .live-agent-runtime { margin-top:0; }
.live-home .live-agent-runtime .v2-runtime-note { margin:0; }
.live-home .live-agent-runtime .v2-runtime-controls { flex-wrap:wrap; gap:8px; }
.live-home .live-agent-profile-error { font-size:11px; color:var(--text-2); overflow-wrap:anywhere; margin:0 0 8px; }
.live-home .live-agent-profile-error button { color:var(--accent); margin-left:8px; }
.live-home .live-agent-follow-row { display:flex; justify-content:flex-end; margin-top:12px; }
.live-home .live-agent-follow-row:empty { display:none; }
.live-home .live-agent-empty { text-align:center; padding:26px 16px; }
.live-home .live-agent-empty>svg { width:32px; height:32px; color:var(--accent); }
.live-home .live-agent-empty h2 { font-size:17px; margin:12px 0 8px; }
.live-home #agentInfoBody { margin-top:14px; }
.live-home #agentInfoBody .v2-permission-row { gap:12px; }
.live-home #agentInfoBody .v2-permission-row b { font-weight:500; }
.live-home #agentInfoDialog { overscroll-behavior:contain; scroll-padding:16px; padding-bottom:calc(18px + env(safe-area-inset-bottom,0px)); }
.live-home #agentInfoDialog .live-dialog-head { position:sticky; top:-18px; background:var(--surface); z-index:1; padding:8px 0; }
.live-home #agentInfoClose { min-width:44px; min-height:44px; }
.live-home #agentInfoBody { overflow-wrap:anywhere; }
.live-controls-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.live-home #agentInfoBody .v2-text-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; font-size:12px; }
.live-home #agentInfoBody button:disabled { opacity:.55; cursor:wait; }
.live-home #agentInfoBody .v2-note { line-height:1.8; }
.live-home .live-control-error { border-color:var(--accent); overflow-wrap:anywhere; }
.live-tool-settings { border-top:1px solid var(--border); margin:14px 0 8px; }
.live-tool-row { display:flex; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--border); }
.live-tool-row>div { min-width:0; flex:1; }
.live-tool-row h3 { font-size:14px; margin:0 0 5px; }
.live-tool-row p { font-size:12px; line-height:1.8; color:var(--text-2); margin:0; }
.live-tool-row small { color:var(--muted); font-size:11px; }
.live-home .live-tool-switch { flex:none; display:flex; align-items:center; gap:7px; min-height:44px; color:var(--text-2); }
.live-tool-switch>span { display:block; width:32px; height:20px; border-radius:12px; background:var(--surface-3); border:1px solid var(--border); position:relative; }
.live-tool-switch>span::after { content:""; position:absolute; width:12px; height:12px; border-radius:50%; left:3px; top:3px; background:var(--muted); }
.live-tool-switch.is-on>span { background:var(--accent-soft); border-color:var(--accent); }
.live-tool-switch.is-on>span::after { left:15px; background:var(--accent); }
.live-tool-switch b { font-size:11px; font-weight:500; }
.live-tool-save { min-height:20px; color:var(--text-2); font-size:12px; line-height:1.7; margin:10px 0 0; }
.live-existing-permissions { margin-top:18px; border-top:1px solid var(--border); }
.live-existing-permissions summary { min-height:44px; padding:12px 0; font-size:12px; cursor:pointer; }
.live-command-list { display:grid; gap:12px; margin-top:14px; }
.live-command-card { padding:12px; border:1px solid var(--border); border-radius:12px; }
.live-command-meta { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:6px 10px; font-size:11px; color:var(--text-2); }
.live-command-status { font-size:10px; background:var(--surface-2); color:var(--text-2); border:1px solid var(--border); padding:3px 7px; border-radius:8px; }
.live-command-status.success { color:var(--accent); background:var(--accent-soft); border-color:transparent; }
.live-command-status.error { border-style:dashed; font-weight:600; }
.live-command-card h3 { font-size:14px; line-height:1.6; margin:9px 0 4px; }
.live-command-preview { font-size:12px; line-height:1.8; margin:4px 0; color:var(--text-2); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-wrap; }
.live-command-note { font-size:12px; color:var(--text-2); line-height:1.8; margin:6px 0; }
.live-command-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0 12px; font-size:10px; color:var(--muted); }
.live-command-footer>div { display:flex; flex-wrap:wrap; gap:14px; }
.live-command-detail { margin-top:12px; }
.live-command-detail section { margin:16px 0; }
.live-command-detail h3 { font-size:12px; color:var(--text-2); margin:0 0 5px; }
.live-command-detail section p { font-size:14px; line-height:1.8; margin:0; white-space:pre-wrap; }
@media(max-width:360px) {
 .live-home .live-agent-tabs { gap:22px; }
 .live-home .v2-agent-card { padding:14px 12px 12px; }
 .live-home .v2-agent-head { gap:8px; }
 .live-home .v2-agent-head .v2-badge { font-size:9px; padding:2px 5px; }
 .live-home .v2-runtime-activity { gap:8px; }
 .live-home #agentInfoDialog { padding:14px; padding-bottom:calc(14px + env(safe-area-inset-bottom,0px)); }
 .live-tool-row { gap:8px; }
 .live-tool-switch { flex-direction:column; gap:2px; }
}

/* Stage five: personal profile, truthful availability, scoped tasks and notifications. */
.live-home .v2-profile-main { color:var(--text); }
.live-home .v2-profile-main strong, .live-home .v2-profile-main small { overflow-wrap:anywhere; }
.live-home .v2-menu-row { color:var(--text); }
.live-home .v2-menu-row:disabled { cursor:not-allowed; color:var(--muted); }
.live-home .v2-menu-row:disabled>.lucide { color:var(--muted); }
.live-home .live-unavailable { font-style:normal; font-size:10px; color:var(--muted); background:var(--surface-2); border:1px solid var(--border); padding:2px 7px; border-radius:8px; flex-shrink:0; }
.live-home .live-menu-count { font-style:normal; font-size:11px; color:var(--accent); background:var(--accent-soft); padding:2px 7px; border-radius:8px; flex-shrink:0; }
.live-home .live-me-loading { margin:0 12px 12px; }
.live-home .live-panel-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:14px 0 8px; }
.live-home .live-panel-toolbar button:disabled { opacity:.55; cursor:not-allowed; }
.live-home .live-notification-row { display:flex; align-items:flex-start; gap:10px; padding:14px 0; border-bottom:1px solid var(--border-soft); color:var(--text); }
.live-home .live-notification-row:last-child { border-bottom:0; }
.live-home .live-notification-row>svg { width:18px; height:18px; flex-shrink:0; color:var(--text-2); margin-top:3px; }
.live-home .live-notification-row>span { flex:1; min-width:0; }
.live-home .live-notification-row b { display:block; font-size:13px; font-weight:500; line-height:1.7; overflow-wrap:anywhere; }
.live-home .live-notification-row small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.live-home .live-notification-row .v2-dot { margin-top:9px; flex-shrink:0; }
.live-home .live-personal-task-tabs { margin-top:12px; gap:28px; justify-content:flex-start; }
.live-home .live-task-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; }
.live-home .live-task-pagination .btn { min-height:32px; padding:6px 10px; font-size:11px; }
.live-home .live-task-pagination>span { font-size:11px; color:var(--muted); text-align:center; }
.live-home .live-help-row { border-bottom:1px solid var(--border-soft); padding:14px 0; font-size:13px; }
.live-home .live-help-row:last-child { border-bottom:0; }
.live-home .live-help-row b { font-weight:600; }
.live-home .live-help-row p { line-height:1.8; margin:6px 0; color:var(--text-2); }
.live-home #meInfoDialog { overscroll-behavior:contain; scroll-padding-bottom:env(safe-area-inset-bottom,0px); }
.live-home #meInfoBody .v2-empty { padding:22px 8px; }
@media(max-width:360px) {
 .live-home .v2-profile { padding:22px 4px 6px; }
 .live-home .v2-profile-main { gap:12px; }
 .live-home .v2-profile-main .v2-avatar { width:62px; height:62px; }
 .live-home .v2-profile-main strong { font-size:19px; }
 .live-home .v2-menu-row { gap:10px; }
 .live-home .live-task-pagination { gap:6px; }
}

/* Release entry: no preview banner; safe-area and editor heights use the same zero offset. */
.ui-v2.live-home { --preview-height:0px; }
.live-home .live-entry-links a { color:var(--muted); text-decoration:underline; text-underline-offset:3px; }

/* Saved posts use the existing personal-center panel. */
.live-bookmark-row{display:flex;align-items:flex-start;gap:8px;padding:12px 0;border-bottom:1px solid var(--border)}
.live-bookmark-row:last-child{border-bottom:0}
.live-bookmark-copy{flex:1;min-width:0;color:var(--text-primary);overflow-wrap:anywhere}
.live-bookmark-copy strong{display:block;font-size:14px;line-height:1.55}
.live-bookmark-copy p{font-size:13px;line-height:1.65;margin:5px 0;color:var(--text-secondary)}
.live-bookmark-copy small{font-size:11px;line-height:1.55;color:var(--text-secondary)}
.live-bookmark-row .v2-icon-button{flex:none;color:var(--accent)}

/* V2.2: natural-height two-column theme cards; full discussions stay in details. */
.live-home[data-page="home"] .v2-tabs{margin-bottom:10px}
.live-home[data-page="home"] .v2-discussion{margin-bottom:12px}
.live-home[data-page="home"] .live-discussion-link{padding:10px 12px;gap:4px}
.live-home[data-page="home"] .v2-discussion strong{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.live-home[data-page="home"] .v2-discussion small{font-size:10px}
.live-home[data-page="home"] .v2-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.live-home[data-page="home"] .v2-feed.live-masonry{grid-auto-rows:4px;grid-auto-flow:row}
.live-home[data-page="home"] .v2-feed[hidden]{display:none}
.live-home[data-page="home"] .live-note.card{position:relative;padding:0;border:1px solid var(--border-soft);border-radius:12px;min-width:0;align-self:start;contain:layout paint}
.live-note-inner{width:100%}
.live-note-main{display:block;color:var(--text)}
.live-note-main::after{content:"";position:absolute;inset:0;z-index:1}
.live-note-main:focus-visible{outline:none}
.live-note:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.live-note-cover{width:100%;background:var(--surface-2);overflow:hidden}
.live-note-cover img{display:block;width:100%;height:100%;object-fit:cover}
.live-note-copy{padding:10px 10px 3px}
.live-home[data-page="home"] .live-note .v2-post-title{font-size:14px;font-weight:650;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.live-note-excerpt{font-size:12px;color:var(--text-2);line-height:1.7;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.live-note-author{display:flex;align-items:center;gap:4px;padding:7px 10px 0;min-width:0}
.live-note-author>a{display:flex;align-items:center;gap:5px;min-width:0;flex:1;position:relative;z-index:2;color:var(--text-2)}
.live-note-author .v2-avatar{width:21px;height:21px;flex:none;font-size:13px}
.live-note-author .v2-avatar img{width:21px;height:21px}
.live-note-author .v2-avatar svg{width:15px;height:15px}
.live-note-author .v2-name{font-size:11px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.live-note-ai{display:flex;align-items:center;gap:2px;flex:none;font-size:9px;color:var(--accent);line-height:1}
.live-note-ai .lucide{width:12px;height:12px}
.live-home[data-page="home"] .live-note .live-note-actions{display:flex;gap:4px;align-items:center;margin:3px 6px 5px;position:relative;z-index:2;color:var(--muted)}
.live-home[data-page="home"] .live-note-actions button{min-height:32px;min-width:32px;padding:0 4px;gap:4px;font-size:11px}
.live-home[data-page="home"] .live-note-actions .lucide{width:16px;height:16px}
.live-home[data-page="home"] .live-note-actions [data-comment]{margin-left:auto}
.live-home[data-page="home"] .live-note-actions .v2-save{margin-left:0}
.live-feed-status:empty,.live-pager:empty{display:none}
.live-feed-status .live-error{margin:12px 0 0}
.live-feed-status .v2-empty{padding:24px 12px}
.live-behavior-summary{display:grid;gap:8px;margin:12px 0;color:var(--text-primary)}
.live-behavior-summary p{margin:0;overflow-wrap:anywhere}
.live-behavior-interest-warning{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--accent-soft);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.live-behavior-interest-warning a{display:inline-block;font-weight:600;color:var(--accent)}
.live-behavior-budgets{display:grid;gap:12px;margin:14px 0}
.live-behavior-budget{padding:12px;border:1px solid var(--border);border-radius:12px;min-width:0}
.live-behavior-budget p{font-size:13px;margin:4px 0 8px;overflow-wrap:anywhere}
.live-behavior-budget-edit{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.live-behavior-budget-edit input{width:140px;max-width:100%;min-height:40px;border:1px solid var(--border);border-radius:8px;padding:8px;background:var(--surface);color:var(--text-primary)}
.live-behavior-budget-edit button{min-height:40px}
.live-behavior-recent{display:grid;gap:10px;margin-top:14px;min-width:0}
.live-behavior-decision{font-size:12px;color:var(--text-secondary);line-height:1.7;overflow-wrap:anywhere}
.live-behavior-recent a{color:var(--accent)}
@media(min-width:1280px){.live-home[data-page="home"] .v2-feed{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){
 .live-home[data-page="home"] .v2-feed{gap:10px}
 .live-note-copy{padding:8px 8px 2px}
 .live-note-author{padding:6px 8px 0}
 .live-home[data-page="home"] .live-note .v2-post-title{font-size:13px}
 .live-note-excerpt{font-size:11.5px}
}
