/* v1.87 shared canvas headers: Flow, Note, and Todo. */
.flow-editor-v139,.todo-editor-v160,.note-editor-v184{box-sizing:border-box!important;width:min(100%,900px)!important;max-width:900px!important;margin-right:auto!important;margin-left:auto!important}
.file-header-v187{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:12px 18px!important;min-height:76px!important;padding:10px 14px!important;border:1px solid color-mix(in srgb,var(--line) 76%,transparent)!important;border-radius:14px!important;background:var(--surface)!important;box-shadow:0 5px 18px color-mix(in srgb,var(--ink) 5%,transparent)!important}
.flow-head-v139.file-header-v187{top:8px;left:24px;right:24px;min-height:76px!important}
.file-header-v187 .flow-title-group{display:grid!important;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:0 12px!important;min-width:0}
.file-header-v187 .flow-title-icon{grid-column:1;grid-row:1 / span 2}
.file-header-v187 .flow-title-group>div{grid-column:2;grid-row:1 / span 2;min-width:0}
.file-header-v187 .flow-title-group input{width:100%;max-width:640px;height:30px;font-size:21px!important;line-height:1.2}
.file-header-v187 .flow-title-group p{margin:3px 0 0!important;color:var(--muted)!important;font-size:12px!important;line-height:1.2}
.file-header-v187 .file-context-line-v187{display:flex;align-items:center;min-height:19px;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.2}
.file-header-v187 .file-progress-caption-v187{display:none!important}
.file-header-v187 .flow-head-actions{gap:6px!important;align-self:center}
.file-header-v187 .flow-share-people{min-height:39px;padding:3px 10px 3px 5px;border-color:color-mix(in srgb,var(--accent) 20%,var(--line));color:var(--accent)}
.file-bots-v187,.file-location-v187{position:relative;flex:none}
.file-bots-v187>summary,.file-location-v187>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:3px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--accent);font-size:13px;font-weight:680;list-style:none;white-space:nowrap;cursor:pointer}
.file-bots-v187>summary{color:var(--muted)}
.file-location-v187>summary{justify-content:flex-start;min-height:19px;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:12px;font-weight:550}
.file-location-v187>summary>span{display:none}
.file-location-v187>summary>b{max-width:min(62vw,390px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.file-location-v187>summary>i,.file-bots-v187>summary>i{display:grid;place-items:center;font-style:normal}
.file-location-v187>summary>i .material-symbols-rounded{font-size:16px}
.file-bot-face-v187{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:transparent;font-size:15px}
.file-bots-v187>summary:hover,.file-bots-v187[open]>summary{background:var(--accent-soft);color:var(--accent)}
.file-location-popover-v187,.file-bots-menu-v187{position:absolute;z-index:100;top:calc(100% + 8px);right:0;width:min(290px,calc(100vw - 28px));padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 15px 40px color-mix(in srgb,var(--ink) 16%,transparent)}
.file-location-title-v187,.file-bots-menu-v187>strong{display:block;margin:0 0 9px;color:var(--ink);font-size:12px;font-weight:760}
.file-location-popover-v187 label{display:grid;gap:5px;margin:8px 0;color:var(--muted);font-size:10px;font-weight:700}
.file-location-popover-v187 select{box-sizing:border-box;width:100%;height:36px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px}
.file-location-save-v187{width:100%;min-height:35px;margin-top:4px;border:0;border-radius:8px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.file-location-save-v187:disabled{opacity:.6;cursor:wait}
.file-bots-menu-v187{width:min(240px,calc(100vw - 28px));padding:8px}
.file-bots-menu-v187 button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 8px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font-size:12px}
.file-bots-menu-v187 button small{margin-left:auto;color:var(--muted);font-size:10px}
.file-bots-menu-v187 button:disabled{opacity:.72}
.file-back-v187{display:none;place-items:center;grid-column:1;grid-row:1;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted)}
.file-type-icon-v187{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--accent-soft);color:var(--accent)}
.file-type-icon-v187 .material-symbols-rounded{font-size:22px}
.note-head-v181.file-header-v187{display:grid!important;grid-template-columns:minmax(0,1fr) auto;}
.note-head-v181.file-header-v187 .note-head-leading-v181{display:grid!important;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;gap:0 12px!important;min-width:0}
.note-head-v181.file-header-v187 .file-back-v187{display:none}
.note-head-v181.file-header-v187 .file-type-icon-v187{grid-column:1;grid-row:1 / span 2}
.note-head-v181.file-header-v187 .file-name-block-v187{grid-column:2;grid-row:1 / span 2;min-width:0}
.note-head-v181.file-header-v187 .note-title-field-v181{height:30px!important;font-size:21px!important}
.note-head-v181.file-header-v187 .note-head-actions-v181{gap:6px!important}
.note-head-v181.file-header-v187 .file-note-tools-v187{position:relative!important;display:flex!important;flex:0 0 auto!important;width:auto!important;height:39px!important;min-width:52px!important;align-items:center!important;justify-content:center!important;gap:2px!important;padding:0 9px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--surface)!important;color:var(--muted)!important;font-size:14px!important;font-weight:750!important}
.note-head-v181.file-header-v187 .file-note-tools-v187:hover,.note-editor-v184 .note-head-shell-v181.is-tools-open .file-note-tools-v187{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))!important;background:var(--accent-soft)!important;color:var(--accent)!important}
.note-head-v181.file-header-v187 .file-note-tools-v187 .note-tools-toggle-arrow-v181{position:static!important;transform:none!important;font-size:18px!important}
.note-editor-v184 .note-tools-panel-v181{position:relative;z-index:1;background:var(--surface)!important}
.note-page-v184 .note-head-shell-v181:has(.file-header-v187){box-sizing:border-box!important;width:100%!important;margin:0 0 22px!important;padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.todo-head-v160.file-header-v187{position:absolute!important;top:8px;left:24px;right:24px}
.todo-head-v160.file-header-v187 .todo-progress-v160{bottom:-4px}
.todo-editor-v160 .todo-list-v160{padding-top:96px!important}
.file-header-v187 button:focus-visible,.file-header-v187 summary:focus-visible,.file-location-popover-v187 select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.flow-editor-v139:has(.file-header-v187) .flow-list-v139{padding-top:96px!important}
.todo-editor-v160 .todo-list-v160{padding-top:96px!important}
[data-theme="dark"] .file-header-v187{background:var(--surface)!important;border-color:var(--line)!important}
.note-editor-v184>.note-head-shell-v181:has(.file-header-v187){box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:900px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
@media(max-width:800px){
  .file-header-v187{grid-template-columns:minmax(0,1fr)!important;gap:5px!important;min-height:0!important;padding:7px 8px!important;border-radius:13px!important}
  .flow-head-v139.file-header-v187,.todo-head-v160.file-header-v187{top:5px;left:12px;right:12px}
  .file-header-v187 .flow-title-group{grid-template-columns:30px 32px minmax(0,1fr);grid-template-rows:27px 18px;gap:0 7px!important;padding-right:74px}
  .file-header-v187 .flow-title-icon{grid-column:2!important;grid-row:1 / span 2!important;width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important}
  .file-header-v187 .flow-title-group>div{grid-column:3!important;grid-row:1 / span 2!important}
  .file-header-v187 .file-back-v187{display:grid;grid-column:1;grid-row:1;width:30px;height:30px}
  .file-header-v187 .flow-title-group input{height:27px;font-size:17px!important}
  .file-header-v187 .flow-title-group p{display:none!important}
  .file-header-v187 .file-context-line-v187{display:flex!important;grid-column:2 / 4;grid-row:2;margin-top:1px;font-size:11px}
  .file-header-v187 .flow-head-actions{grid-column:1;justify-content:flex-end;gap:4px!important}
  .file-header-v187 .flow-head-icon{position:absolute;top:7px;right:47px}
  .file-header-v187 .flow-more-menu{position:absolute;top:7px;right:7px}
  .file-header-v187 .flow-share-people{min-height:33px;padding:2px 7px 2px 4px}
  .file-header-v187 .flow-share-icon{font-size:0}
  .file-header-v187 .flow-share-icon .material-symbols-rounded{font-size:16px}
  .file-header-v187 .flow-stack-blob{display:none!important}
  .file-header-v187 .flow-head-icon,.file-header-v187 .flow-more-menu>summary{width:32px!important;height:32px!important;border-radius:9px!important}
  .file-header-v187 .file-bots-v187>summary{min-height:33px;padding:2px 8px;font-size:11px}
  .file-header-v187 .file-bot-face-v187{width:21px;height:21px;font-size:13px}
  .file-back-v187{display:grid}
  .flow-head-v139.file-header-v187{min-height:0!important}
  .flow-editor-v139:has(.file-header-v187) .flow-list-v139{padding-top:104px!important}
  .todo-editor-v160 .todo-head-v160.file-header-v187{min-height:0!important}
  .todo-editor-v160 .todo-list-v160{padding-top:104px!important}
  .todo-head-v160.file-header-v187 .todo-progress-v160{left:8px;right:8px}
  .note-editor-v184>.note-head-shell-v181:has(.file-header-v187){top:3px;width:calc(100% - 24px)!important;margin-bottom:14px;padding:0!important}
  .note-head-v181.file-header-v187{grid-template-columns:minmax(0,1fr)!important;gap:5px!important;min-height:0!important;padding:6px 6px 7px!important}
  .note-head-v181.file-header-v187 .note-head-leading-v181{grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;gap:0 8px!important;padding-right:68px}
  .note-head-v181.file-header-v187 .file-back-v187{display:grid;grid-column:1;grid-row:1;width:30px;height:30px}
  .note-head-v181.file-header-v187 .file-type-icon-v187{display:none}
  .note-head-v181.file-header-v187 .file-name-block-v187{grid-column:2;grid-row:1 / span 2}
  .note-head-v181.file-header-v187 .note-title-field-v181{height:27px!important;font-size:17px!important}
  .note-head-v181.file-header-v187 .file-context-line-v187{min-height:16px;margin-top:0;font-size:11px}
  .note-head-v181.file-header-v187 .note-head-actions-v181{justify-content:flex-end;gap:4px!important}
  .note-head-v181.file-header-v187 .flow-head-icon{position:absolute;top:6px;right:46px}
  .note-head-v181.file-header-v187 .flow-more-menu{position:absolute;top:6px;right:6px}
  .note-head-v181.file-header-v187 .file-note-tools-v187{min-width:43px!important;height:33px!important;padding:0 5px!important;font-size:13px!important}
  .note-head-v181.file-header-v187 .flow-share-people{min-height:33px;padding:2px 7px 2px 4px}
  .note-head-v181.file-header-v187 .flow-share-icon{font-size:0}
  .note-head-v181.file-header-v187 .flow-share-icon .material-symbols-rounded{font-size:16px}
  .note-head-v181.file-header-v187 .flow-stack-blob{display:none!important}
  .file-header-v187 .flow-share-people.is-shared .flow-stack-blob:first-child{display:inline-flex!important}
  .note-head-v181.file-header-v187 .flow-head-icon,.note-head-v181.file-header-v187 .flow-more-menu>summary{width:32px;height:32px}
  .file-location-v187>summary>b{max-width:calc(100vw - 145px)}
  .file-location-popover-v187{position:fixed;top:auto;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));left:12px;width:auto;max-width:420px;margin-left:auto}
  .file-bots-menu-v187{position:fixed;top:var(--ai-menu-top,90px);right:12px;bottom:auto;left:12px;width:auto;max-height:calc(100dvh - var(--ai-menu-top,90px) - 12px - env(safe-area-inset-bottom));z-index:1400}
  .file-bots-v187>summary{gap:5px}
  .file-bots-v187>summary>i .material-symbols-rounded{font-size:17px}
}
