/* Conversation-first desktop proportions, with real reusable task views. */
.reference-mode .ref-application,
.reference-mode .social-app.ref-chat-shell { display:grid;height:100dvh;min-height:0;overflow:hidden;background:#f2f3f4;gap:0; }
.reference-mode .ref-application > .app-workspace { grid-column:3;grid-row:1;min-height:0;min-width:0;background:#fff;border-radius:20px 0 0 20px; }
.reference-mode .ref-chat-shell > .social-main { grid-column:3;grid-row:1;border-radius:20px 0 0 20px;background:#fff;min-width:0; }
.reference-mode .ref-rail { grid-column:1;grid-row:1; }
.reference-mode .ref-sidebar { grid-column:2;grid-row:1;position:relative;min-height:0;min-width:0; }
html[data-ref-sidebar='closed'] .reference-mode .ref-sidebar { visibility:hidden;pointer-events:none;overflow:hidden; }
.ref-topbar { height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:12px;background:#fff; }
.ref-header-leading,.ref-header-actions { display:flex;align-items:center;gap:12px;min-width:0; }
.ref-return-chat { display:inline-flex;align-items:center;gap:6px;flex:none;min-height:34px;padding:4px 9px;border:0;border-radius:8px;background:transparent;color:var(--wb-ink,#2a3637);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer; }
.ref-return-chat svg { transform:rotate(180deg); }
.ref-return-chat:not(:disabled):hover { background:var(--wb-subtle,#eef2f1); }
.ref-return-chat[hidden] { display:none; }
.ref-return-chat:disabled { opacity:.5;cursor:default; }
.ref-page-title { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ref-panel-toggle { border:0;background:transparent;display:grid;place-items:center;border-radius:10px;padding:0;flex-shrink:0; }
.ref-panel-toggle:hover { background:#f1f2f3;color:#282b30; }
.ref-header-action { display:flex;align-items:center;gap:7px;border:0;background:transparent;font-size:12px;border-radius:10px;}
.ref-application .main-content { scrollbar-gutter:auto; }
.ref-application .main-content.ref-task-main { display:flex;flex-direction:column;overflow:hidden;min-height:0; }
.ref-task-main > .welcome-banner { flex:0 0 auto; }
.ref-task-main > .ref-task-page { flex:1 1 0;width:100%;margin:0;height:auto;min-height:0;overflow:hidden; }
.ref-application .page-body { padding:28px 34px 44px; }
.ref-task-page { max-width:none;}
.ref-task-page .ui-business-brief { display:none; }
.ref-task-page .daily-layout { display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;gap:28px; }
.ref-task-page .daily-chat { overflow-y:auto;overscroll-behavior:contain; }
.ref-task-page .daily-chat-heading { padding:8px 0;min-height:38px;flex-shrink:0;border:0; }
.ref-task-page .daily-chat-heading.ref-empty-heading { display:none; }
.ref-task-empty { flex:1;min-height:0;display:flex;flex-direction:column;justify-content:safe center;align-items:center;gap:12px;padding:clamp(6px,3vh,32px) 12px;overflow:hidden; }
.ref-task-welcome-mark { width:64px;height:64px;flex:none; }
.ref-task-welcome-mark .xiaoyu-pet { width:64px;height:64px; }
.ref-task-empty h1 { margin:0;color:var(--ink);font-size:30px;line-height:1.35;font-weight:650;letter-spacing:-.025em; }
.ref-task-page .daily-compose-area { flex-shrink:0;}
.ref-task-page .daily-compose-area { margin-top:auto; }
.ref-task-context { background:#fafafa;border-radius:14px 14px 0 0;}
.ref-context-action { display:inline-flex;align-items:center;background:none;border:0;padding:5px 0;}
.ref-context-action:hover { color:#25282d; }
.ref-workspace-menu { position:relative; }
.ref-workspace-menu > summary { display:flex;align-items:center;list-style:none;padding:5px 0;cursor:pointer; }
.ref-workspace-menu > summary::-webkit-details-marker { display:none; }
.ref-workspace-popover { position:absolute;left:0;bottom:calc(100% + 12px);z-index:56;width:290px;max-width:calc(100vw - 40px);padding:18px;background:#fff;border-radius:18px;box-shadow:0 12px 42px rgb(20 24 31 / 14%); }
.ref-workspace-popover > p { color:#6b7179;line-height:1.7;font-size:12px;margin:0 0 14px; }
.ref-workspace-popover .business-picker { margin:0; }
.ref-workspace-popover .business-picker select { width:100%;background:#fff;border-color:#e7e9ec;border-radius:12px;min-height:40px; }
.ref-workspace-popover .business-picker-note { margin:8px 0;color:#6b7179;font-size:12px; }
.ref-project-menu { min-width:0; }
.ref-project-menu > summary { cursor:pointer;list-style:none; }
.ref-project-menu > summary > span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ref-project-menu > summary::-webkit-details-marker { display:none; }
.ref-project-menu:not([open]) > .ref-project-popover { display:none; }
.ref-project-popover { padding:9px;border-radius:14px;background:var(--yb-paper,#fff);color:var(--yb-ink,#202426);box-shadow:0 6px 28px rgb(28 42 39 / 15%); }
.ref-project-popover h2,.ref-project-popover p { margin:6px 9px 9px;font-size:13px; }
.ref-project-popover p { color:var(--yb-muted,#626b6c); }
.ref-project-option { width:100%;min-height:38px;display:flex;align-items:center;gap:9px;padding:8px 9px;border:0;border-radius:9px;background:none;color:inherit;font:inherit;font-size:13px;text-align:left; }
.ref-project-option > span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ref-project-option > svg { flex:none;color:var(--yb-muted,#626b6c); }
.ref-project-option:hover,.ref-project-option:focus-visible { background:var(--yb-water-mist,#f0f5f3); }
.ref-project-all { margin-top:5px; }
.ref-task-page .daily-composer { border:1px solid rgb(15 23 42 / 10%);border-radius:22px;padding:12px 16px 10px;background:#fff;box-shadow:0 2px 10px rgb(15 23 42 / 3%); }
.ref-task-page .daily-composer > textarea { min-height:34px;max-height:132px;padding:2px 2px;resize:none;font-size:15px;line-height:1.55;color:#1e293b; }
.ref-task-page .daily-composer > textarea:focus-visible { outline:0;box-shadow:none; }
.ref-task-page .daily-composer-footer { display:flex;align-items:center;justify-content:space-between;}
.ref-composer-tools { margin-right:auto; }
.ref-local-picture { display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:11px;background:transparent;color:#62676e;cursor:pointer;transition:background-color 160ms ease-out,transform 160ms ease-out; }
.ref-local-picture:hover { background:#edf5f1;color:#1f6e59; }
.ref-local-picture:active { transform:scale(.94); }
.ref-local-picture:focus-visible,.ref-creation-shortcut:focus-visible { outline:2px solid #697e77;outline-offset:3px; }
.ref-task-page .daily-send { min-height:38px;display:grid;place-items:center;padding:0;}
.ref-task-page .daily-send > span { position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap; }
.ref-task-page .daily-send svg { width:18px;height:18px; }
.ref-task-page .daily-compose-area > .daily-composer-note { text-align:center;font-size:12px;line-height:1.6;margin:9px 0 0;color:#5c646a; }
.ref-task-page .daily-messages { flex:1;min-height:0;overflow:auto;scrollbar-width:thin;width:100%;margin-inline:auto; }
.ref-task-page .daily-aside { overflow:auto;border-left:1px solid #eceef0; }
.ref-task-page .daily-error,.ref-task-page .daily-notice { flex-shrink:0;margin:12px 0; }
.ref-task-page .daily-model-empty { margin:10px 0 0;padding:8px 12px;border-radius:12px;background:#fafafa; }
.ref-task-page .daily-model-empty p { font-size:12px; }
.ref-tone-menu,.ref-attachments { position:relative; }
.ref-attachments > summary { list-style:none;cursor:pointer;display:grid;place-items:center;}
.ref-attachments > summary::-webkit-details-marker,.ref-tone-menu > summary::-webkit-details-marker { display:none; }
.ref-attachments > summary:hover,.ref-tone-menu > summary:hover { background:#f2f3f4;color:#272b30; }
.ref-attachment-menu { position:absolute;z-index:55;bottom:calc(100% + 12px);left:0;width:298px;max-width:calc(100vw - 40px);padding:8px;border-radius:18px;background:#fff;box-shadow:0 12px 42px rgb(20 24 31 / 14%); }
.ref-attachment-option { width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:12px;background:#fff;padding:12px;color:#525961; }
.ref-attachment-option:hover { background:#f5f6f7; }
.ref-attachment-option > span { display:grid;gap:3px; }
.ref-attachment-option strong { font-size:13px;font-weight:500;color:#34393f; }
.ref-attachment-option small { font-size:12px;color:#5c646a;line-height:1.5; }
.ref-tone-menu > summary { list-style:none;cursor:pointer;}
.ref-tone-menu > .daily-tones { position:absolute;bottom:calc(100% + 12px);left:0;z-index:54;width:260px;background:#fff;padding:10px;box-shadow:0 12px 36px rgb(20 24 31 / 12%);border-radius:16px;display:flex;flex-wrap:wrap;margin:0; }
.ref-sidebar-resize { position:absolute;right:0;top:0;bottom:0;width:8px;z-index:15;cursor:col-resize;touch-action:none;outline-offset:-3px; }
.ref-sidebar-resize::after { content:'';position:absolute;top:25%;bottom:25%;left:3px;width:2px;border-radius:2px;background:transparent;transition:background-color 140ms; }
.ref-sidebar-resize:hover::after,.ref-sidebar-resize:focus-visible::after { background:#c8cdd2; }
.ref-drawer-backdrop { display:none; }

/* The task surface stays white while tools remain reachable at the edges. */
.reference-mode .ref-application > .ref-home-workspace {
  --ref-home-ink: #202426;
  --ref-home-muted: #626b6c;
  --ref-home-surface: #fff;
  --ref-home-context: #f7f9f8;
  --ref-home-line: #e6ebe9;
  --ref-home-accent: #286b5b;
  background:var(--ref-home-surface);
}
html[data-yb-theme='dark'] .reference-mode .ref-application > .ref-home-workspace {
  --ref-home-ink: var(--yb-ink);
  --ref-home-muted: var(--yb-muted);
  --ref-home-surface: var(--yb-paper);
  --ref-home-context: #19262b;
  --ref-home-line: #30434a;
  --ref-home-accent: #a1d8cb;
}
.reference-mode .ref-home-workspace .ref-home-topbar {
  height:42px;min-height:42px;padding-inline:21px;
  border:0;backdrop-filter:none;background:var(--ref-home-surface);
}
.ref-home-topbar .ref-header-actions { gap:4px; }
.ref-home-topbar .yb-topbar-persona-pill {
  padding:4px 7px;border:0;background:transparent;color:var(--ref-home-muted);
  font-weight:550;
}
.ref-home-topbar .ref-header-action { color:var(--ref-home-muted); }
.ref-home-workspace .ref-task-page .ref-task-empty h1 {
  font-weight:650;
}
.ref-home-workspace .ref-task-page .daily-compose-area { width:100%;max-width:1160px; }
.ref-home-workspace .ref-task-page .ref-task-context {
  width:auto;min-height:40px;margin:0 15px -1px;padding:0 13px;
  justify-content:space-between;gap:5px 10px;flex-wrap:wrap;
  border-radius:13px 13px 0 0;background:var(--ref-home-context);color:var(--ref-home-muted);
}
.ref-home-workspace .ref-task-context :is(.ref-context-action,.ref-workspace-menu > summary,.yb-inspiration-btn) {
  min-height:32px;padding:5px 6px;border:0;background:none;border-radius:8px;color:var(--ref-home-muted);
}
.ref-home-workspace .ref-task-context :is(.ref-context-action,.ref-workspace-menu > summary,.yb-inspiration-btn):hover {
  background:var(--yb-water-mist,#edf1ef);color:var(--ref-home-ink);
}
.ref-home-workspace .ref-task-page .daily-composer {
  position:relative;border:1px solid var(--ref-home-line);border-radius:24px;
  background:var(--ref-home-surface);box-shadow:0 3px 12px rgb(28 49 42 / 4%);
}
.ref-home-workspace .ref-task-page .daily-composer:focus-within {
  border-color:var(--ref-home-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ref-home-accent) 12%,transparent);
}
.ref-home-workspace .ref-task-page .daily-composer > textarea::placeholder { color:var(--ref-home-muted); }
.ref-home-workspace .ref-task-page .daily-send { width:38px;min-width:38px;height:38px;min-height:38px;border-radius:50%; }
.ref-home-workspace .ref-task-page .daily-send:disabled { opacity:1;background:var(--ref-home-context);color:var(--ref-home-muted); }
.ref-home-workspace .ref-composer-tools :is(.ref-local-picture,.ref-attachments > summary,.ref-tone-menu > summary) { min-height:36px; }
.ref-home-workspace .conversation-model-picker .model-picker-source-trigger { background:var(--ref-home-context); }
.ref-home-workspace .conversation-model-picker .model-picker-trigger:hover:not(:disabled) { background:var(--yb-water-mist,#edf1ef); }
@media (min-width:761px) {
  html[data-ref-sidebar='open'] .reference-mode .ref-header-leading > .ref-panel-toggle,
  html[data-ref-sidebar='open'] .reference-mode :is(.social-chat-head,.ref-empty-topbar) > .ref-panel-toggle { display:none; }
  .reference-mode .ref-application > .ref-home-workspace { border-radius:0 14px 14px 0;margin:5px 6px 6px 0; }
  html[data-ref-sidebar='closed'] .reference-mode .ref-application > .ref-home-workspace { border-radius:14px; }
  .ref-application .ref-home-workspace .ref-task-page { padding:0 clamp(20px,2.8vw,46px) 16px; }
  .ref-home-workspace .ref-task-page .ref-task-empty { transform:translateY(-14px); }
  .ref-home-workspace .ref-task-page .daily-composer { padding:16px 13px 12px 17px; }
  .ref-home-workspace .ref-task-page .daily-composer > textarea { min-height:58px;font-size:17px;padding:3px 7px; }
}
@media (max-width:760px) {
  .reference-mode .ref-home-workspace .ref-home-topbar { padding-inline:12px; }
  .ref-home-workspace .ref-task-page .ref-task-empty h1 { font-size:24px; }
  .ref-home-workspace .ref-task-page .ref-task-context { margin-inline:7px;padding-inline:6px; }
  .ref-home-workspace .ref-task-context > .ref-context-action > svg { display:none; }
  .ref-home-workspace .ref-task-page .daily-send { width:34px;min-width:34px;height:34px;min-height:34px; }
}
.ref-chat-shell .social-chat-head > .ref-panel-toggle { margin-right:4px; }
.reference-mode .social-modal-backdrop { z-index:240; }
.ref-chat-shell .social-empty-chat { padding:30px;gap:18px; }
.ref-chat-shell .social-empty-chat h1 { font-size:22px; }
.ref-account-menu { flex-shrink:0;margin-top:5px; }
.ref-account-menu > summary { display:grid;place-items:center;list-style:none;width:38px;height:38px;padding:0;border-radius:15px;cursor:pointer; }
.ref-account-menu > summary::-webkit-details-marker { display:none; }
.ref-account-menu > summary:hover { background:#e4e7ea; }
.ref-account-avatar { display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f9fafb;border:1px solid #dfe2e6;color:#5b646e;font-size:12px; }
.ref-account-popover { position:fixed;z-index:220;width:260px;padding:8px;border-radius:18px;background:#fff;box-shadow:0 12px 42px rgb(20 24 31 / 14%); }
.ref-account-identity { display:grid;gap:4px;margin:0 3px 5px;padding:12px 10px 15px;border-bottom:1px solid #eceef0;overflow-wrap:anywhere; }
.ref-account-identity strong { color:#343b44;font-size:13px;font-weight:600; }
.ref-account-identity small { font-size:12px;line-height:1.6;color:#6b727a; }
.ref-account-option { display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:10px;border-radius:12px;border:0;background:#fff;color:#4a535e;text-align:left;font-size:13px; }
.ref-account-option:hover { background:#f2f4f5; }
@media(max-width:1100px) {
  .ref-task-page { padding-inline:22px; }
  .ref-composer-tools .ref-tone-menu > summary { font-size:12px; }
  .ref-task-page .daily-composer-footer { gap:5px; }
}
@media(max-width:760px) {
  .reference-mode .ref-application,.reference-mode .social-app.ref-chat-shell,
  html[data-ref-sidebar='closed'] .reference-mode .ref-application,
  html[data-ref-sidebar='closed'] .reference-mode .social-app.ref-chat-shell { display:block;height:100dvh;padding-bottom:64px; }
  .reference-mode .ref-application > .app-workspace,.reference-mode .ref-chat-shell > .social-main { height:100%;border-radius:0; }
  .reference-mode .social-app.ref-chat-shell > .social-main { display:flex; }
  .reference-mode .ref-sidebar { position:fixed;top:0;left:0;bottom:64px;height:auto;width:min(306px,calc(100vw - 48px));z-index:95;border-radius:0 20px 20px 0;box-shadow:14px 0 48px rgb(22 28 35 / 12%); }
  html[data-ref-sidebar='closed'] .reference-mode .ref-sidebar { display:none; }
  .reference-mode .ref-rail { position:fixed;left:0;right:0;bottom:0;z-index:90;width:100%;height:64px;min-height:64px;flex-direction:row;justify-content:space-around;align-items:center;border-right:0;border-top:1px solid #e9ebed;overflow-x:auto;overflow-y:hidden;scrollbar-width:none; }
  .reference-mode .ref-rail::-webkit-scrollbar { display:none; }
  .reference-mode .ref-rail .ref-brand,.reference-mode .ref-rail .ref-rail-divider,.reference-mode .ref-rail .ref-rail-spacer,.reference-mode .ref-rail .ref-account,
  .reference-mode .ref-rail [aria-label='帮助与使用引导'],.reference-mode .ref-rail [aria-label='账号与模型设置'] { display:none; }
  .reference-mode .ref-rail .ref-rail-button { display:flex;flex-direction:column;justify-content:center;gap:3px;width:44px;min-width:40px;height:52px;border-radius:14px; }
  .reference-mode .ref-rail .ref-rail-button::after { content:attr(aria-label);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4; }
  .reference-mode .ref-rail .ref-rail-button svg { width:19px;height:19px; }
  .reference-mode .ref-rail button.ref-rail-button[aria-label='帮助与使用引导'],
  .reference-mode .ref-rail button.ref-rail-button[aria-label='账号与模型设置'] { display:none; }
  .ref-drawer-backdrop:not([hidden]) { display:block;position:fixed;inset:0 0 64px;z-index:94;background:rgb(24 30 38 / 22%);border:0; }
  .ref-sidebar-resize { display:none; }
  .ref-topbar { height:44px;min-height:44px;padding:0 12px; }
  .ref-header-actions { gap:0; }
  .ref-header-action { font-size:12px;padding-inline:7px; }
  .ref-task-page { padding:0 12px 12px; }
  .ref-task-page.ref-planning-open .daily-layout { display:flex;flex-direction:column;overflow:auto; }
  .ref-task-page.ref-planning-open .daily-chat { min-height:calc(100dvh - 120px);overflow:visible;flex-shrink:0; }
  .ref-task-page .daily-aside { border-left:0;border-top:1px solid #eceef0;padding:18px 4px;overflow:visible; }
  .ref-task-context { gap:16px;margin-inline:6px;padding-inline:12px;}
  .ref-task-page .daily-composer { border-radius:24px; }
  .ref-composer-tools .ref-tone-menu > summary { max-width:26px;overflow:hidden;white-space:nowrap;padding-inline:6px;font-size:0; }
  .ref-composer-tools .ref-tone-menu > summary svg { width:13px;height:13px; }
  .ref-composer-tools { gap:0; }
  .ref-task-empty h1 { font-size:23px; }
  .ref-task-page .daily-compose-area > .daily-composer-note { font-size:12px; }
  .ref-chat-shell .social-chat-head { padding-inline:12px; }
}
@media(max-width:380px) {
  .reference-mode .ref-rail { gap:2px;padding-inline:6px; }
  .reference-mode .ref-rail .ref-rail-button { width:34px;min-width:34px; }
  .reference-mode .ref-rail .ref-rail-button::after { max-width:36px;font-size:12px; }
  .reference-mode .ref-account-menu > summary { width:34px; }
}

/* Comfortable controls, without a permanent line of small print under the input. */
.reference-mode { --ref-font-ui: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif; }
.reference-mode .ref-sidebar { font-family: inherit; }
.ref-task-context { color: #5f6663; }
.ref-context-action { color: #5f6663; }
.ref-task-page .daily-composer > textarea::placeholder { color: #818181; }
.ref-task-page .daily-composer:focus-within { border-color: #cecece; box-shadow: 0 2px 9px rgb(0 0 0 / 3%); }
.ref-task-page .daily-composer-footer { margin-top: 6px; flex-wrap: nowrap; }
.ref-composer-tools { display: inline-flex; align-items: center; gap: 2px; flex-wrap: nowrap; flex-shrink: 0; }
.ref-task-page .daily-send { width: 34px; min-width: 34px; height: 34px; border-radius: 999px; background: #1d242b; flex: none; }
.ref-task-page .daily-send:hover:not(:disabled) { background: #0f172a; transform: scale(1.03); }
.ref-task-page .daily-send:active:not(:disabled) { transform: scale(.94); background: #090d14; }
.ref-attachments > summary { width: 30px; height: 30px; color: #5b6470; border-radius: 9px; flex: none; }
.ref-attachments > summary svg { width: 18px; height: 18px; }
.ref-tone-menu { flex: none; }
.ref-tone-menu > summary { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; font-size: 12.5px; color: #525b66; padding: 5px 8px; border-radius: 9px; }
details:not([open]) > :is(.ref-account-popover, .ref-attachment-menu, .ref-workspace-popover, .ref-phone-more-popover, .daily-tones) { display: none !important; }
.ref-header-action { width: 36px; height: 36px; min-height: 36px; padding: 0; justify-content: center; color: #7a7a7a; }
.ref-header-action:hover { background: #f1f1f1; color: #303030; }
.ref-page-title { font-size: 14px; color: #717171; }
.ref-panel-toggle { width: 36px; height: 36px; color: #5f6663; }
@media(max-width:1100px) and (min-width:761px) {
  .ref-task-page .daily-compose-area { width: 100%; }
}
@media(max-width:760px) {
  .ref-task-page .daily-compose-area { width: 100%; }
  .ref-task-page .daily-composer { padding: 15px 14px 12px; }
  .ref-task-page .daily-composer > textarea { font-size: 17px; min-height: 58px; }
  .ref-task-page .daily-composer-footer { gap: 4px; }
  .ref-task-context,.ref-workspace-menu > summary,.ref-context-action { font-size: 12px; }
  .ref-task-page .daily-send { width: 34px; min-width: 34px; height: 34px; min-height: 34px; border-radius: 13px; }
  .ref-task-page .ref-tone-menu > summary { font-size: 13px; padding: 7px 8px; max-width: none; gap: 6px; }
  .ref-task-page .ref-tone-menu > summary > svg:first-child { width: 16px; height: 16px; }
  .ref-task-page .daily-composer-footer { display: grid; grid-template-columns: minmax(0,1fr) 34px; row-gap: 3px; }
  .ref-task-page .ref-composer-tools { grid-row: 1; grid-column: 1 / -1; margin: 0; gap: 8px; }
  .ref-task-page .daily-composer-footer > .conversation-model-picker { grid-row: 2; grid-column: 1; margin: 0; justify-content: flex-start; }
  .ref-task-page .daily-composer-footer > .daily-send { grid-row: 2; grid-column: 2; }
  .reference-mode .ref-rail { overflow: visible; gap: 4px; padding: 4px 10px; }
  .reference-mode .ref-rail > .ref-rail-button { flex: 1 1 0; min-width: 44px; width: auto; height: 54px; }
  .reference-mode .ref-rail .ref-rail-button::after { font-size: 12px; max-width: 62px; }
  .reference-mode .ref-rail .ref-rail-button > svg { width: 25px; height: 25px; }
  .reference-mode .ref-account-menu,.reference-mode .ref-phone-more { flex: 1 1 0; min-width: 44px; margin: 0; }
  .reference-mode .ref-account-menu > summary,.ref-phone-more > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 54px; padding: 0; list-style: none; border-radius: 14px; color: #6c727a; cursor: pointer; }
  .reference-mode .ref-account-menu > summary::after { content: '我的'; font-size: 12px; line-height: 1.4; }
  .reference-mode .ref-account-avatar { width: 28px; height: 28px; }
  .ref-phone-more > summary span { font-size: 12px; line-height: 1.4; }
  .ref-phone-more > summary::-webkit-details-marker { display: none; }
  .ref-phone-more > summary:hover,.ref-phone-more[open] > summary { background: #e7e7e7; }
  .ref-phone-more.active > summary { background: #dedede; color: #272b30; }
}
.ref-phone-more-popover { position: fixed; z-index: 220; width: 272px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 12px 42px rgb(20 24 31 / 14%); }
.ref-phone-more-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 11px; color: #4c4c4c; background: transparent; text-align: left; font-size: 15px; }
.ref-phone-more-option svg { width: 21px; height: 21px; flex: none; color: #707070; }
.ref-phone-more-option:hover { background: #f1f1f1; }
.ref-phone-more-option.active { background: #e8e8e8; color: #282828; }
.reference-mode .ref-phone-more-popover .ref-phone-more-option { display: flex; }
.ref-more-item-wrap { position: relative; }
.ref-more-item-wrap .ref-rail-badge { top: 14px; right: 12px; }
@media(max-width:760px) {
  .ref-task-main > .welcome-banner { margin:8px 12px;padding:8px 10px;gap:6px;flex-wrap:nowrap; }
  .ref-task-main > .welcome-banner > span { min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
  .ref-task-main > .welcome-banner .button { flex:none;min-height:32px;padding:6px 8px;font-size:12px; }
}
@media(max-height:600px) {
  .ref-task-main > .welcome-banner { margin-block:6px;padding-block:6px; }
  .ref-task-welcome-mark { display:none; }
  .ref-task-empty { padding-block:4px; }
  .ref-task-page .daily-composer > textarea { min-height:44px;max-height:100px; }
}

/* 强化「今天的安排」抽屉与窄屏防挤压规则：永不因 daily-assistant.css 的 1fr 1fr 断点被劈裂截断，也不使用浮层遮挡主输入区发送按钮 */
.ref-task-page.ref-planning-open .daily-layout {
  grid-template-columns: minmax(0, 1fr) clamp(272px, 23vw, 312px);
  gap: 16px;
}
.ref-task-page .daily-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 18px;
}
.ref-task-page .daily-aside[hidden] {
  display: none !important;
}
.ref-task-page .daily-preferences {
  margin-top: 0;
}
.ref-task-page .daily-layout .daily-aside .daily-aside-note {
  margin-top: 0;
  grid-column: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  pointer-events: auto;
}
.ref-task-page .daily-layout .daily-aside .daily-aside-note > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.ref-task-page .daily-layout .daily-aside .daily-aside-note > .xiaoyu-pet {
  flex: none;
  margin-left: auto;
}
@media(max-width:1180px) {
  .ref-task-page.ref-planning-open .daily-layout {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 16px;
  }
  .ref-task-page.ref-planning-open .daily-aside {
    position: static;
    width: auto;
    padding: 16px 2px 18px 16px;
    border-left: 1px solid #eceef0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
@media(max-width:960px) {
  .ref-task-page.ref-planning-open .daily-layout {
    grid-template-columns: minmax(0, 1fr);
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  /* 窄屏与半屏展开今日安排时禁止挤压对话区：保持主对话区最小可视高度并随页面自然滚动 */
  .ref-task-page.ref-planning-open .daily-chat {
    height: auto;
    min-height: calc(100dvh - 120px);
    overflow: visible;
    flex-shrink: 0;
  }
  .ref-task-page.ref-planning-open .daily-aside {
    position: static;
    width: auto;
    flex-shrink: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid #eceef0;
    box-shadow: none;
    padding: 18px 0 8px;
    overflow: visible;
  }
}

/* The private assistant has its own workspace beside the global navigation. */
#app > .ref-assistant-shell {
  grid-template-columns: clamp(64px, 4.2vw, 75px) minmax(0, 1fr);
}
#app > .ref-assistant-shell > .ref-home-workspace {
  grid-column: 2;
  margin: 6px 7px 7px 0;
  border: 1px solid var(--wb-line);
  border-radius: 15px;
}
#app .ref-assistant-shell .ref-home-topbar { padding-inline: clamp(14px, 2.1vw, 32px); }
#app .ref-assistant-shell .ref-header-actions { gap: 4px; }
#app .ref-assistant-shell .yb-topbar-persona-pill {
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  border: 0;
  padding: 2px 7px 2px 0;
  background: transparent;
  color: var(--wb-ink);
}
#app .ref-assistant-shell .yb-topbar-persona-pill strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#app .ref-assistant-shell .yb-topbar-persona-pill:hover { background: var(--wb-chrome); }
.ref-assistant-header-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; }
.ref-assistant-shell .ref-assistant-panel-toggle > svg { transform: scaleX(-1); }
.ref-assistant-shell .ref-assistant-panel-toggle[aria-expanded="true"] {
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
}
#app .ref-assistant-shell .ref-task-page { padding: 0 clamp(12px, 2.3vw, 35px) 15px; }
#app .ref-assistant-shell .ref-task-page .ref-task-empty { transform: none; gap: 9px; }
#app .ref-assistant-shell .ref-task-page .ref-task-empty h1 { font-size: clamp(23px, 2.3vw, 33px); font-weight: 650; }
#app .ref-assistant-shell .ref-task-context { justify-content: flex-end; gap: 12px; min-height: 28px; margin-block-end: 4px; }
#app .ref-assistant-shell .ref-task-context:empty { display: none; }
#app .ref-assistant-shell .ref-task-context .ref-context-action { min-height: 28px; padding: 3px 5px; }
.ref-attachment-context { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; padding: 8px 8px 0; border-top: 1px solid var(--wb-line); color: var(--wb-muted); }
#app .ref-assistant-shell .daily-aside.yb-companion-pane {
  min-width: 0;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: var(--wb-subtle);
  color: var(--wb-ink);
}
.ref-assistant-shell .yb-companion-body[hidden] { display: none; }
.ref-assistant-shell .yb-companion-head { gap: 5px; }
.ref-assistant-shell .yb-companion-tab.active { background: var(--wb-accent-soft); color: var(--wb-accent); }
.ref-assistant-settings-title { flex: 1; margin: 0; color: var(--wb-ink); font-size: 15px; font-weight: 650; }
.ref-assistant-settings-back > svg { transform: rotate(180deg); }
.ref-assistant-settings { display: flex; flex-direction: column; gap: 3px; }
.ref-assistant-setting {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--wb-ink);
  font: inherit;
  text-align: start;
}
.ref-assistant-setting > svg { color: var(--wb-muted); }
.ref-assistant-setting:hover { background: var(--wb-chrome); }
.ref-assistant-setting:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: -2px; }

.reference-mode .ref-rail .ref-brand { position: relative; }
.reference-mode .ref-rail .ref-brand[aria-current="page"] { background: var(--wb-accent-soft); color: var(--wb-accent); }
.ref-assistant-unread {
  position: absolute;
  inset: 6px 6px auto auto;
  width: 8px;
  height: 8px;
  border: 1px solid var(--wb-canvas);
  border-radius: 50%;
  background: var(--wb-accent);
  pointer-events: none;
}

@media (min-width: 961px) {
  #app .ref-assistant-shell .ref-planning-open .daily-layout {
    grid-template-columns: minmax(0,1fr) clamp(280px,23vw,325px);
    gap: clamp(12px,2vw,24px);
  }
}
@media (max-width: 960px) {
  #app .ref-assistant-shell .ref-planning-open .daily-aside { margin-block-end: 3px; }
}
@media (max-width: 760px) {
  #app > .ref-assistant-shell > .ref-home-workspace { margin: 0; border: 0; border-radius: 0; }
  #app .ref-assistant-shell .ref-task-page { padding-inline: 10px; }
  .reference-mode #app .ref-rail .ref-phone-assistant {
    display: grid;
    grid-template-rows: 22px auto;
    align-content: center;
    justify-items: center;
    gap: 1px;
    width: 41px;
    min-width: 36px;
    height: 46px;
    margin: 0;
    border-radius: 9px;
    color: var(--wb-muted);
  }
  .reference-mode #app .ref-rail .ref-phone-assistant .xiaoyu-pet { width: 23px; height: 23px; }
  .ref-phone-assistant-label { font-size: 12px; line-height: 1.25; }
  .ref-phone-assistant .ref-assistant-unread { inset: 2px 4px auto auto; }
}

/* Group information cards */
html[data-yb-theme='dark'] .social-group-ai-title strong { --dark-heading-color: #f0f7f9; }
html[data-yb-theme='dark'] .social-group-ai-title small { --dark-detail-color: #8fa9b3; }
html[data-yb-theme='dark'] .social-group-info-hero,
html[data-yb-theme='dark'] .social-group-ai-card {
  background: #14222a;
  border-color: var(--yb-line);
}
html[data-yb-theme='dark'] .social-group-ai-desc { --dark-detail-color: #c7dbe1; }
html[data-yb-theme='dark'] .social-group-ai-foot { border-top-color: var(--yb-line); }

/* Legacy conversation message wrappers */
.chat-layout .message.user {
  background: linear-gradient(180deg, #e7f4f7 0%, #ddf0f4 100%);
  border: 1px solid #c6e2ea;
  color: #0e242d;
  border-radius: 18px 6px 18px 18px;
}
.chat-layout .message.user:has(.workbench-chat-bubble) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-yb-theme='dark'] .chat-layout .message.user {
  background: linear-gradient(180deg, #133944 0%, #0f2f39 100%);
  border: 1px solid #1f5564;
  color: #edf9fc;
  box-shadow: 0 2px 12px rgb(0 0 0 / 26%);
}

/* Conversation header and group sidebar controls */
html[data-yb-theme='dark'] .social-pane-toggle,
html[data-yb-theme='dark'] .social-pane-reopen,
html[data-yb-theme='dark'] .social-sidebar-plus-btn,
html[data-yb-theme='dark'] .social-head-pill {
  --group-header-button-fill: var(--wb-chrome);
  background: var(--group-header-button-fill);
  --group-header-button-line: var(--yb-line-strong);
  border-color: var(--group-header-button-line);
  --group-header-button-ink: var(--wb-ink);
  color: var(--group-header-button-ink);
}
html[data-yb-theme='dark'] .social-pane-toggle:hover,
html[data-yb-theme='dark'] .social-pane-reopen:hover,
html[data-yb-theme='dark'] .social-sidebar-plus-btn:hover,
html[data-yb-theme='dark'] .social-head-pill:hover {
  --group-header-button-fill: var(--wb-subtle);
  --group-header-button-ink: var(--wb-ink);
}
html[data-yb-theme='dark'] .social-head-pill.active {
  --group-header-button-fill: var(--wb-accent-soft);
  --group-header-button-line: var(--wb-line-strong);
  --group-header-button-ink: var(--wb-ink);
}

/* Add an agent from group member details */
.social-details-newai {
  height: 29px; padding: 0 9px; border: 1px solid #cfe3d9; border-radius: 9px;
  color: #1c5f47; background: #eff8f3; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.social-details-newai:hover { background: #e1f1e9; }
html[data-yb-theme='dark'] .social-details-newai {
  background: #15353d;
  border-color: #26606b;
  color: #78e3e7;
}
html[data-yb-theme='dark'] .social-details-newai:hover {
  background: #1a434d;
  color: #ffffff;
}

/* Group conversation view tabs */
html[data-yb-theme='dark'] .social-chat-tab,
html[data-yb-theme='dark'] .social-chat-tab-add {
  --conversation-tab-ink: var(--wb-muted);
  color: var(--conversation-tab-ink);
}
html[data-yb-theme='dark'] .social-chat-tab:hover,
html[data-yb-theme='dark'] .social-chat-tab-add:hover {
  --conversation-tab-fill: var(--wb-subtle);
  background: var(--conversation-tab-fill);
  --conversation-tab-ink: var(--wb-ink);
  color: var(--conversation-tab-ink);
}
html[data-yb-theme='dark'] .social-chat-tab.active {
  --conversation-tab-fill: var(--wb-accent-soft);
  background: var(--conversation-tab-fill);
  --conversation-tab-ink: var(--wb-ink);
  color: var(--conversation-tab-ink);
}

/* Local user avatar paint */
html[data-yb-theme='dark'] .daily-user-dot {
  background: #193d47;
  color: #9be9ef;
}

/* Private assistant reply status */
html[data-yb-theme='dark'] .daily-messages > .daily-progress {
  background: #142a32;
  border-color: #214552;
  color: #9ad8de;
}
html[data-yb-theme='dark'] .social-apps-item strong { --dark-heading-color: #edf6f8; }
html[data-yb-theme='dark'] .social-apps-item small { --dark-detail-color: #93adb7; }

/* Tactile identity */
/* Shared interface surfaces and unmodified local brand assets. No readiness is implied. */
[data-identity-tone="sage"] { --identity-bg: #def2eb; --identity-ink: #1f6e59; --identity-edge: #badfce; --identity-accent: #167d69; }
[data-identity-tone="blue"] { --identity-bg: #e0ecff; --identity-ink: #285f9f; --identity-edge: #bfd4f5; --identity-accent: #246bc6; }
[data-identity-tone="amber"] { --identity-bg: #fff0db; --identity-ink: #8f571c; --identity-edge: #f0d2aa; --identity-accent: #b65f11; }
[data-identity-tone="rose"] { --identity-bg: #fbe5ee; --identity-ink: #9a4565; --identity-edge: #edc3d4; --identity-accent: #b83e68; }
[data-identity-tone="lilac"] { --identity-bg: #eee4fb; --identity-ink: #734a9b; --identity-edge: #d7c1f1; --identity-accent: #7848bb; }
[data-identity-tone="slate"] { --identity-bg: #e7edf2; --identity-ink: #526677; --identity-edge: #ccd8e0; --identity-accent: #536477; }
[data-identity-tone="yellow"] { --identity-bg: #f9f1cd; --identity-ink: #765a09; --identity-edge: #e4d493; --identity-accent: #8a650b; }
.tactile-avatar.social-avatar, .tactile-member-cell {
  flex: none; overflow: hidden; padding: 0; isolation: isolate;
  color: var(--identity-ink, #59626c); background: var(--identity-bg, #e6e8eb);
  border: 1px solid rgb(48 51 57 / 5%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%);
}
.tactile-avatar-face { position: relative; width: 100%; height: 100%; display: grid; place-items: center; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -.025em; }
.tactile-agent-orb { display: block; min-width: 0; min-height: 0; }
.tactile-agent-model-badge {
  position: absolute; inset: auto 1px 1px auto; display: grid; place-items: center;
  width: 14px; height: 14px; padding: 2px; border: 1px solid rgb(48 51 57 / 10%);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
.tactile-agent-model-badge > :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
.tactile-agent-model-badge[data-identity-brand="stepfun"] { background: #192e43; }
.social-avatar.small .tactile-agent-model-badge { width: 12px; height: 12px; padding: 1px; }
.tactile-avatar[data-identity-kind="ai"]:not(.tactile-member-cell):has(.tactile-agent-orb) {
  --agent-avatar-bg: color-mix(in srgb, var(--identity-bg) 55%, #fff);
  isolation: isolate;
  border-radius: 50%;
  background: var(--agent-avatar-bg);
  border: 1px solid color-mix(in srgb, var(--identity-edge) 52%, transparent);
  box-shadow: none;
}
.tactile-avatar:not(.tactile-member-cell) .tactile-agent-orb {
  width: 88%;
  height: 88%;
  filter: saturate(.87) brightness(1.035);
}
html[data-yb-theme="dark"] .tactile-avatar[data-identity-kind="ai"]:not(.tactile-member-cell):has(.tactile-agent-orb) {
  /* Match the surrounding dark surface without using the legacy avatar gradient. */
  --agent-avatar-bg: color-mix(in srgb, var(--identity-ink) 23%, var(--wb-subtle, #252930));
  background: var(--agent-avatar-bg) !important;
  border-color: color-mix(in srgb, var(--identity-edge) 18%, transparent) !important;
}
.social-chat .social-message > .tactile-avatar .tactile-agent-model-badge { display: none; }
.agent-orb-picker { border: 0; min-width: 0; margin: 0; padding: 0; }
.agent-orb-picker legend { margin-bottom: 7px; }
.agent-orb-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.agent-orb-choice { position: relative; display: inline-grid; cursor: pointer; }
.agent-orb-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.agent-orb-choice:has(input:disabled) { cursor: default; opacity: .68; }
.agent-orb-choice-style {
  display: grid; align-items: center; justify-items: center; width: 44px; height: 44px;
  color: var(--yb-muted); background: var(--yb-paper); border: 1px solid var(--yb-line);
  border-radius: 10px; font-size: 12px; pointer-events: none;
}
.agent-orb-choice input:checked + .agent-orb-choice-style { border-color: var(--yb-water); background: var(--yb-water-mist); }
.agent-orb-choice input:focus-visible + .agent-orb-choice-style { outline: 2px solid var(--yb-water); outline-offset: 2px; }
.agent-orb-choice-style .tactile-avatar { width: 36px; height: 36px; }
.agent-orb-picker .agent-orb-custom { display: none; width: min(180px,100%); margin-top: 8px; }
.agent-orb-picker:has(input[value="custom"]:checked) .agent-orb-custom { display: block; }
.tactile-avatar-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.tactile-avatar .tactile-fish { display: block; width: 100%; height: 100%; object-fit: contain; }
.tactile-avatar-fish { padding: 1px; }
.tactile-avatar.social-avatar.small .tactile-avatar-face { font-size: 12px; }
.tactile-avatar.social-avatar.small svg { width: 17px; height: 17px; }
.ref-sidebar .tactile-avatar.social-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--identity-bg, #e6e8eb); color: var(--identity-ink, #59626c); box-shadow: none; }
.ref-sidebar .social-room.active .tactile-avatar.social-avatar { background: var(--social-avatar-theme-background, var(--agent-avatar-bg, var(--identity-bg, #e6e8eb))); }
.tactile-avatar.social-avatar.tactile-avatar-collage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px; padding: 3px; border-radius: 13px; background: #ececeb; box-shadow: inset 0 1px 0 #fff;
}
.tactile-avatar-collage .tactile-member-cell { display: grid; place-items: center; min-width: 0; min-height: 0; border: 0; }
.tactile-avatar-collage .tactile-avatar-face { font-size: 12px; font-weight: 600; }
.tactile-avatar-collage .tactile-avatar-face svg { width: 13px; height: 13px; stroke-width: 1.7; }
.tactile-avatar-collage[data-identity-count="2"] { grid-template-rows: 1fr; align-items: center; }
.tactile-avatar-collage[data-identity-count="2"] .tactile-member-cell { height: 25px; }
.tactile-avatar-collage[data-identity-count="3"] .tactile-member-cell:first-child { grid-row: span 2; height: 100%; }
.tactile-group-fallback { display: grid; place-items: center; }
.ref-rail .ref-rail-button[data-rail-glyph] > svg { width: 22px; height: 22px; stroke-width: 1.65; }
.ref-rail .ref-rail-button[data-rail-glyph] { color: var(--identity-ink, var(--yb-muted, #5a6d72)); }
.ref-rail .ref-rail-button[data-rail-glyph]:hover { background: var(--yb-water-mist, #edf5f5); color: var(--yb-ink, #0d1d22); }
.ref-rail .ref-rail-button[data-rail-glyph].active { background: var(--yb-water-mist, #edf5f5); color: var(--yb-water, #0b7a83); }
html[data-yb-theme="dark"] .ref-rail .ref-rail-button[data-rail-glyph]:not(.active) {
  color: color-mix(in srgb, var(--identity-ink, var(--yb-muted)) 40%, var(--yb-ink) 60%);
}
.ref-sidebar-action[data-identity-tone] > svg,
.ref-phone-more-option[data-identity-tone] > svg,
.ref-phone-more[data-identity-tone] > summary > svg { color: var(--identity-accent); }
.ref-phone-more-option[data-identity-tone]:hover,
.ref-phone-more[data-identity-tone] > summary:hover { background: var(--identity-bg); }
.ref-phone-more-option[data-identity-tone].active,
.ref-phone-more[data-identity-tone].active > summary { background: var(--identity-bg); }
.ref-phone-more-option[data-identity-tone]:active { background: color-mix(in srgb, var(--identity-accent) 20%, #fff); transform: none; }
.ref-history-avatar[data-tactile-history] { color: var(--identity-accent); background: var(--identity-bg); border: 1px solid var(--identity-edge); box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%); }
.tactile-provider-mark {
  display: inline-grid; place-items: center; flex: none; width: 27px; height: 27px; overflow: hidden; border-radius: 9px;
  color: var(--identity-ink, #526677); background: transparent; border: 0;
  line-height: 1; box-shadow: none; pointer-events: none;
}
.tactile-provider-mark.compact { width: 22px; height: 22px; border-radius: 6px; }
.tactile-brand-logo { display: block; width: 25px; height: 25px; max-width: 100%; max-height: 100%; object-fit: contain; }
.tactile-provider-mark.compact .tactile-brand-logo { width: 21px; height: 21px; }
.tactile-provider-mark[data-identity-brand="stepfun"] { background: #192e43; border-radius: 7px; }
.tactile-provider-mark[data-identity-brand="stepfun"] .tactile-brand-logo { width: 21px; height: 21px; }
.tactile-provider-mark.compact[data-identity-brand="stepfun"] .tactile-brand-logo { width: 17px; height: 17px; }
.tactile-provider-mark.tactile-provider-fish { background: #def2eb; color: #1f6e59; border-radius: 9px; }
.tactile-provider-mark .tactile-fish { width: 100%; height: 100%; object-fit: contain; }
.account-source-mark[data-tactile-account-source] { background: transparent; border: 0; box-shadow: none; }
.account-source-mark[data-tactile-account-source] > .tactile-provider-mark { width: 29px; height: 29px; }
.account-source-mark[data-tactile-account-source] .tactile-brand-logo { width: 27px; height: 27px; }
.model-picker-option-mark:has(.tactile-provider-mark) { background: transparent; border: 0; }
.model-picker-option:disabled .tactile-provider-mark { opacity: .65; }

/* Concierge */
.xiaoyu-concierge-thread{max-width:820px;width:100%;margin:28px auto 12px;flex:1 0 auto}
.xiaoyu-concierge-turn{margin:0 0 32px;color:#263d35;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.xiaoyu-concierge-user{margin:0 0 24px auto;padding:12px 18px;max-width:75%;width:fit-content;border-radius:20px 20px 5px 20px;background:#f1f5f3}
.xiaoyu-concierge-user p,.xiaoyu-concierge-copy>p{margin:0 0 10px;white-space:pre-wrap}
.xiaoyu-concierge-sent-images{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.xiaoyu-concierge-sent-image {
  display: block;
  flex: none;
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--wb-line-strong);
  border-radius: 12px;
  background: var(--wb-subtle);
  cursor: zoom-in;
}
.xiaoyu-concierge-sent-image:hover,
.xiaoyu-concierge-sent-image:focus-visible { border-color: var(--wb-accent); }
.xiaoyu-concierge-sent-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
dialog.xiaoyu-concierge-image-dialog[open] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: fit-content;
  min-width: min(360px, calc(100vw - 28px));
  max-width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-panel-radius);
  color: var(--wb-ink);
  background: var(--wb-canvas);
  box-shadow: var(--wb-overlay-shadow);
}
.xiaoyu-concierge-image-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--wb-line);
}
.xiaoyu-concierge-image-header h2 { margin: 0 auto 0 0; font-size: 14px; }
.xiaoyu-concierge-image-download,
.xiaoyu-concierge-image-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--wb-control-radius);
  color: var(--wb-ink);
  background: transparent;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.xiaoyu-concierge-image-download[hidden],
.xiaoyu-concierge-image-stage [hidden] { display: none; }
.xiaoyu-concierge-image-download:hover,
.xiaoyu-concierge-image-close:hover { background: var(--wb-chrome); }
.xiaoyu-concierge-image-stage {
  display: grid;
  min-height: min(220px, 40dvh);
  padding: 12px;
  place-items: center;
  background: var(--wb-subtle);
}
.xiaoyu-concierge-image-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
}
.xiaoyu-concierge-image-error { margin: 0; color: var(--wb-muted); font-size: 14px; }
.xiaoyu-concierge-response{display:flex;align-items:flex-start;gap:12px}
.xiaoyu-concierge-avatar{display:flex;flex:none;align-items:center;justify-content:center;padding:0;width:38px;height:38px;border:0;border-radius:12px;background:transparent;cursor:pointer}
.xiaoyu-concierge-avatar:hover{background:#edf7f2}
.xiaoyu-concierge-copy{min-width:0;flex:1;max-width:70ch}
.xiaoyu-concierge-copy>strong{display:block;font-size:13px;color:#40584d;margin:0 0 6px}
.xiaoyu-concierge-muted{font-size:12px;color:#65746d;line-height:1.7}
.xiaoyu-concierge-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.xiaoyu-concierge-option{padding:8px 15px;min-height:38px;border:1px solid #dbe8e1;border-radius:12px;background:#fff;color:#315847;font:inherit;cursor:pointer}
.xiaoyu-concierge-option:hover{background:#f0f8f4;border-color:#b4d4c4}
.xiaoyu-concierge-quote{margin:16px 0 12px;padding:16px 0;border-block:1px solid #e7eeea}
.xiaoyu-concierge-fee{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#354d41}
.xiaoyu-concierge-fee strong{color:#20624c;font-size:16px;font-variant-numeric:tabular-nums}
.xiaoyu-concierge-warning,.xiaoyu-concierge-feedback{color:#9a4d32;font-size:12px;line-height:1.7;margin:10px 0}
.xiaoyu-concierge-attachments{margin:0 2px 9px}
.xiaoyu-concierge-attachment-list{display:flex;flex-wrap:wrap;gap:12px;padding:4px 0}
.xiaoyu-concierge-attachment{position:relative;display:flex;flex-direction:column;margin:0;width:84px}
.xiaoyu-concierge-attachment>img{display:block;width:84px;height:78px;object-fit:cover;background:#f1f5f3;border-radius:12px}
.xiaoyu-concierge-attachment figcaption{font-size:12px;color:#566d60;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:4px 0 0}
.xiaoyu-concierge-remove{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;width:23px;height:23px;padding:0;border:1px solid #e0e8e3;border-radius:50%;background:#fff;color:#425f50;cursor:pointer}
.xiaoyu-concierge-remove:hover{background:#f1f7f3;color:#214d38}
.xiaoyu-concierge-attachment progress{width:84px;height:4px;margin-top:4px;accent-color:#2d7962}
.daily-composer.xiaoyu-concierge-dragover{border-color:#438e72;background:#f3faf6}
.xiaoyu-concierge-result{display:grid;justify-items:start;gap:10px;margin:8px 0 0}
.xiaoyu-concierge-result>a:first-child{display:block;max-width:100%;border-radius:12px}
.xiaoyu-concierge-result>a>img,.xiaoyu-concierge-result>video{display:block;width:auto;max-width:min(100%,420px);max-height:min(420px,48vh);object-fit:contain;border-radius:12px;background:var(--wb-subtle,#f4f6f4)}
.xiaoyu-concierge-thread .button{border-radius:12px;min-height:38px}
.xiaoyu-concierge-thread :focus-visible,.xiaoyu-concierge-attachments :focus-visible{outline:2px solid #3d8268;outline-offset:3px}
.xiaoyu-concierge-thread ::selection{background:#dcefe4;color:#214b38}
.xiaoyu-concierge-thread [hidden],.xiaoyu-concierge-attachments[hidden],.xiaoyu-concierge-feedback[hidden]{display:none!important}
.ref-task-empty[hidden],[data-concierge-file-input][hidden],[data-concierge-history][hidden],[data-concierge-recovery][hidden]{display:none!important}
.ref-task-page .daily-messages[hidden]{display:none}
.ref-task-page .daily-messages:focus-visible{outline-offset:-2px}
.ref-task-page .daily-messages>.xiaoyu-concierge-thread{flex:none;min-height:0;margin:0}
.ref-task-page .daily-chat.xiaoyu-concierge-active>.daily-compose-area{flex:0 0 auto;max-height:55%;overflow-y:auto}
.xiaoyu-concierge-history{margin:0 auto 12px;padding:12px 0;width:min(100%,820px);max-height:240px;overflow:auto;border-bottom:1px solid #e4ece7}
.ref-task-page .daily-messages>.xiaoyu-concierge-history{flex:none;max-height:none;overflow:visible}
.xiaoyu-concierge-history>strong{display:block;font-size:12px;color:#526e60;margin-bottom:8px}
.xiaoyu-concierge-history-row{display:flex;justify-content:space-between;gap:16px;width:100%;min-height:38px;padding:8px 10px;border:0;background:transparent;border-radius:10px;text-align:left;color:#344f42;cursor:pointer}
.xiaoyu-concierge-history-row:hover{background:#f0f7f2}.xiaoyu-concierge-history-row small{color:#63786c;white-space:nowrap}
@media(max-width:760px){.xiaoyu-concierge-thread{margin:18px auto 8px}.xiaoyu-concierge-user{max-width:90%}.xiaoyu-concierge-response{gap:7px}.xiaoyu-concierge-copy{font-size:13px}.xiaoyu-concierge-fee{display:block}.xiaoyu-concierge-fee strong{display:block;margin-top:4px}}
@media(prefers-reduced-motion:reduce){.xiaoyu-concierge-thread *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
html[data-yb-theme="dark"] .xiaoyu-concierge-turn { color: var(--wb-ink, #e2f1ef); }
html[data-yb-theme="dark"] .xiaoyu-concierge-user { background: var(--wb-accent-soft, #1d3c3b); color: var(--wb-ink, #e6f4f2); }
html[data-yb-theme="dark"] .xiaoyu-concierge-avatar:hover { background: var(--wb-subtle, #1b2c31); }
html[data-yb-theme="dark"] .xiaoyu-concierge-copy > strong { color: var(--wb-ink, #e2f1ef); }
html[data-yb-theme="dark"] .xiaoyu-concierge-muted { color: var(--wb-muted, #94b3b0); }
html[data-yb-theme="dark"] .xiaoyu-concierge-option {
  background: var(--wb-subtle, #17272b);
  border-color: var(--wb-line-strong, #2e484b);
  color: var(--wb-ink, #d8ecea);
}
html[data-yb-theme="dark"] .xiaoyu-concierge-option:hover {
  background: var(--wb-accent-soft, #1f3d3c);
  border-color: var(--wb-accent, #8bd8c5);
}
html[data-yb-theme="dark"] .xiaoyu-concierge-quote { border-block-color: var(--wb-line, #253a3c); }
html[data-yb-theme="dark"] .xiaoyu-concierge-fee { color: var(--wb-ink, #d8ecea); }
html[data-yb-theme="dark"] .xiaoyu-concierge-fee strong { color: var(--wb-accent, #8bd8c5); }
html[data-yb-theme="dark"] .xiaoyu-concierge-warning,
html[data-yb-theme="dark"] .xiaoyu-concierge-feedback { color: #f6b28f; }
html[data-yb-theme="dark"] .xiaoyu-concierge-attachment > img,
html[data-yb-theme="dark"] .xiaoyu-concierge-result > a > img,
html[data-yb-theme="dark"] .xiaoyu-concierge-result > video { background: var(--wb-subtle, #18272b); border-color: var(--wb-line, #253a3c); }
html[data-yb-theme="dark"] .xiaoyu-concierge-attachment figcaption { color: var(--wb-muted, #9ab7b4); }
html[data-yb-theme="dark"] .xiaoyu-concierge-remove { background: var(--wb-canvas, #152024); border-color: var(--wb-line-strong, #2e484b); color: var(--wb-ink, #d8ecea); }
html[data-yb-theme="dark"] .daily-composer.xiaoyu-concierge-dragover { border-color: var(--wb-accent, #8bd8c5); background: rgb(31 64 64 / 35%); }
html[data-yb-theme="dark"] .xiaoyu-concierge-history { border-bottom-color: var(--wb-line, #253a3c); }
html[data-yb-theme="dark"] .xiaoyu-concierge-history > strong { color: var(--wb-muted, #9ab7b4); }
html[data-yb-theme="dark"] .xiaoyu-concierge-history-row { color: var(--wb-ink, #d8ecea); }
html[data-yb-theme="dark"] .xiaoyu-concierge-history-row:hover { background: var(--wb-subtle, #18272b); }
html[data-yb-theme="dark"] .xiaoyu-concierge-history-row small { color: var(--wb-muted, #9ab7b4); }

/* Task timeline */
.task-timeline {
  --task-accent: #1f6e59;
  --task-soft: #eaf5ef;
  margin: 12px 0;
  border: 1px solid #e8eeeb;
  border-radius: 14px;
  background: #fff;
  color: #242529;
  overflow: hidden;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
}

.task-timeline [hidden] {
  display: none !important;
}

.task-timeline-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}

.task-timeline-mark {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--task-soft);
  color: var(--task-accent);
}

.task-timeline-copy {
  flex: 1;
  min-width: 0;
}

.task-timeline-copy > strong {
  font-size: 13px;
  font-weight: 600;
}

.task-timeline-copy > p {
  margin: 2px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: #5c646a;
}

.task-timeline-copy > .task-timeline-retained {
  color: #346352;
}

.task-timeline-head > .button {
  flex-shrink: 0;
  min-height: 34px;
  margin: 0;
  align-self: center;
  font-size: 12px;
  border-radius: 10px;
}

.task-timeline[data-task-tone=warning],
.task-timeline[data-task-tone=error] {
  --task-accent: #8f571c;
  --task-soft: #fff0db;
  border-color: #eee5d9;
}

.task-timeline[data-task-tone=error] {
  --task-accent: #8b4135;
  --task-soft: #fdf2ef;
}

.task-timeline-records {
  border-top: 1px solid #edf0ee;
}

.task-timeline-records > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: #5c646a;
  user-select: none;
}

.task-timeline-records > summary::-webkit-details-marker {
  display: none;
}

.task-timeline-records > summary:hover {
  background: #f7f9f8;
  color: #242529;
}

.task-timeline-records > summary svg {
  transform: rotate(90deg);
  transition: transform 0.16s ease;
}

.task-timeline-records[open] > summary svg {
  transform: rotate(-90deg);
}

.task-timeline-scroll {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 14px 12px;
}

.task-timeline-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 8px 0 12px;
  margin: 0;
}

.task-timeline-stages > li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #747b77;
}

.task-timeline-stages > li > small {
  font-size: 12px;
  color: #747b77;
}

.task-timeline-stage-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: #f0f2f1;
  border: 1px solid #dce1de;
  border-radius: 50%;
}

.task-timeline-stages > [data-task-stage-state=completed] .task-timeline-stage-dot {
  background: #eaf5ef;
  color: #1f6e59;
  border-color: #bcd6c8;
}

.task-timeline-stages > [data-task-stage-state=running],
.task-timeline-stages > [data-task-stage-state=failed],
.task-timeline-stages > [data-task-stage-state=blocked] {
  color: #242529;
  font-weight: 600;
}

.task-timeline-stages > [data-task-stage-state=failed] .task-timeline-stage-dot,
.task-timeline-stages > [data-task-stage-state=blocked] .task-timeline-stage-dot {
  border-color: #bb8a58;
  background: #fff0db;
}

.task-timeline-blocker {
  padding: 10px 12px;
  margin: 0 0 10px;
  border-radius: 10px;
  border: 1px solid #eedfcf;
  background: #fffaf3;
  color: #76532e;
}

.task-timeline-blocker > p {
  margin: 3px 0;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.task-timeline-blocker > strong {
  font-size: 12px;
}

.task-timeline-step {
  border-top: 1px solid #edf0ee;
}

.task-timeline-step > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 2px;
  list-style: none;
  cursor: pointer;
}

.task-timeline-step > summary::-webkit-details-marker {
  display: none;
}

.task-timeline-step > summary > strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.task-timeline-step > summary > span {
  font-size: 12px;
  color: #5c646a;
  flex-shrink: 0;
}

.task-timeline-step[data-task-step-state=failed] > summary > span {
  color: #8b4135;
}

.task-timeline-step-body {
  padding: 0 2px 10px;
}

.task-timeline-value {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.task-timeline-value > strong {
  font-size: 12px;
  font-weight: 500;
  color: #5c646a;
}

.task-timeline-value > pre {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #464c48;
}

.task-timeline-note {
  font-size: 12px;
  line-height: 1.65;
  color: #747b77;
}

.task-timeline-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-top: 1px solid #edf0ee;
  padding-top: 9px;
  margin-top: 4px;
}

.task-timeline-read {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 3px 0;
  font: inherit;
  font-size: 12px;
  color: #346352;
  cursor: pointer;
}

.task-timeline-read:hover {
  color: #174936;
  text-decoration: underline;
}

.task-timeline button:disabled {
  opacity: 0.55;
  cursor: default;
}

.task-timeline-feedback {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 12px;
  line-height: 1.65;
  color: #76532e;
}

.task-timeline summary:focus-visible,
.task-timeline button:focus-visible {
  outline: 2px solid #697e77;
  outline-offset: 2px;
  border-radius: 6px;
}

.room-conversation > .task-timeline {
  margin: 0 0 14px;
}

.simple-task > .task-timeline {
  margin: 12px 0;
}

.xiaoyu-concierge-copy > .task-timeline {
  margin: 12px 0;
  max-width: 780px;
}

.room-conversation .task-timeline > .task-timeline-records > summary {
  padding: 8px 14px;
}

@media (max-width: 720px) {
  .task-timeline-head {
    flex-wrap: wrap;
  }

  .task-timeline-head > .button {
    margin-left: 40px;
  }

  .task-timeline-value {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .task-timeline-scroll {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-timeline-records > summary svg {
    transition: none;
  }
}
