[data-team-notebook] { width:100%; min-width:0; }
.team-notebook { --team-zoom:1; --team-paper:#fff; --team-ink:#253345; --team-muted:#7c8490; --team-line:#e9e8e4; width:min(980px,100%); min-height:65vh; margin:0 auto 24px; padding:28px 38px 38px; border:1px solid var(--team-line); border-radius:16px; background:var(--team-paper); color:var(--team-ink); font-family:inherit; box-sizing:border-box; }
.team-notebook *, .team-notebook *::before, .team-notebook *::after { box-sizing:border-box; }
.team-notebook [hidden] { display:none!important; }
.team-notebook button,.team-notebook select,.team-notebook input,.team-notebook textarea { font:inherit; box-shadow:none; }
.team-notebook button { min-height:34px; width:auto; padding:6px 10px; border:1px solid var(--team-line); border-radius:7px; background:var(--team-paper); color:var(--team-ink); font-size:13px; cursor:pointer; }
.team-notebook button:hover,.team-notebook button[aria-pressed=true] { background:#e8eff9; color:#1d548b; border-color:#b6cce5; }
.team-notebook button { white-space:nowrap; flex-shrink:0; }
.team-notebook button:disabled { opacity:.5; cursor:wait; }
.team-notebook button:focus-visible,.team-notebook select:focus-visible,.team-notebook input:focus-visible { outline:2px solid #5a92c9; outline-offset:2px; }
.team-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 20px; }
.team-top>div>small { font-size:9px; letter-spacing:.16em; color:#b0823a; font-weight:700; }
.team-top h1 { margin:5px 0 6px; font-size:clamp(23px,3vw,32px); color:var(--team-ink); line-height:1.25; }
.team-top [data-team-sync] { display:inline-block; font-size:12px; color:var(--team-muted); }
.team-online { display:flex; flex-wrap:wrap; max-width:40%; gap:4px; }
.team-avatar { display:grid; flex:0 0 26px; width:26px; height:26px; overflow:hidden; place-items:center; border:1.5px solid #fff; border-radius:50%; background:#d8e7f8; color:#24456a; font-size:10px; font-weight:700; }
.team-avatar img { width:100%; height:100%; object-fit:cover; }
.team-tools { position:sticky; top:0; z-index:4; display:flex; align-items:center; flex-wrap:wrap; gap:5px; padding:10px 0; border-top:1px solid var(--team-line); border-bottom:1px solid var(--team-line); background:var(--team-paper); }
.team-tools select,.team-filters select,.team-add select { width:auto; max-width:145px; min-width:0; min-height:34px; margin:0; padding:5px 6px; border:1px solid var(--team-line); border-radius:7px; color:var(--team-ink); background:var(--team-paper); font-size:13px; }
.team-tools [data-team-style=size] { width:52px; }
.team-tools [data-team-style=italic] { font-style:italic; }
.team-tools [data-team-style=bold] { font-weight:800; }
.team-tools [data-team-style=underline] { text-decoration:underline; }
.team-tools small { color:var(--team-muted); font-size:11px; }
.team-tool-divider { width:1px; height:22px; background:var(--team-line); margin:0 3px; }
.team-filters { display:flex; align-items:center; gap:6px; padding:12px 0; }
.team-filters [data-team-retry] { margin-left:auto; border:0; color:var(--team-muted); }
.team-message { margin:0 0 10px; color:#ad7629; font-size:13px; line-height:1.5; }
.team-message:empty { display:none; }
.team-block { position:relative; min-width:0; margin:0; padding:17px 0; border-bottom:1px solid var(--team-line); background:transparent; }
.team-block.is-selected { border-bottom-color:#a8c5e5; }
.team-block-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:7px; }
.team-block-head>span { font-size:11px; color:#a47737; font-weight:700; }
.team-block-head>small { font-size:10px; color:var(--team-muted); }
.team-block-presence { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-left:auto; }
.team-peer { display:inline-flex; align-items:center; gap:4px; color:#3e77ab; }
.team-peer small { font-size:10px; }
.team-text-row { display:flex; align-items:flex-start; gap:10px; }
.team-notebook input[type=checkbox] { appearance:auto!important; width:19px!important; height:19px!important; min-width:19px!important; min-height:19px!important; margin:7px 0 0!important; padding:0!important; accent-color:#5289c0; border-radius:3px; flex:0 0 19px; }
.team-editable { flex:1; min-width:0; min-height:40px; padding:6px 8px; border:1px solid transparent; border-radius:5px; font-size:calc(var(--team-block-size,17px)*var(--team-zoom)); line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; outline:none; }
.team-editable:focus { border-color:#c6d8ed; }
.team-editable:empty::before { content:attr(data-placeholder); color:var(--team-muted); pointer-events:none; }
.team-editable.is-complete { opacity:.6; text-decoration:line-through!important; }
.team-shape-heading { font-size:calc(max(26px,var(--team-block-size))*var(--team-zoom)); font-weight:700!important; line-height:1.4; }
.team-shape-subheading { font-size:calc(max(21px,var(--team-block-size))*var(--team-zoom)); font-weight:650!important; }
.team-shape-quote { border-left:3px solid #8ba3be; border-radius:0; padding-left:14px; }
.team-shape-callout { border:1px solid #dec98c; padding:12px 14px; border-radius:8px; }
.team-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; margin:8px 0 12px; }
.team-notebook .team-field { display:flex; flex-direction:column; gap:4px; min-width:0; margin:0; padding:0; border:0; background:transparent; }
.team-field>span { color:var(--team-muted); font-size:12px; line-height:1.4; }
.team-notebook .team-field input,.team-notebook .team-field select,.team-notebook .team-field textarea { display:block; width:100%; min-width:0; min-height:36px; margin:0; padding:6px 8px; border:1px solid var(--team-line); border-radius:5px; background:var(--team-paper); color:var(--team-ink); font-size:15px; line-height:1.5; }
.team-notebook .team-field textarea { resize:vertical; min-height:58px; }
.team-wide { grid-column:1/-1; }
.team-checks { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:10px 0; }
.team-checks label { display:inline-flex; align-items:center; gap:6px; width:auto; padding:0; margin:0; background:transparent; border:0; font-size:14px; color:var(--team-ink); }
.team-checks input[type=checkbox] { margin:0!important; }
.team-checks small { color:var(--team-muted); font-size:11px; }
.team-assignment { color:#537491; font-size:12px; line-height:1.7; margin:6px 0 0; overflow-wrap:anywhere; }
.team-block footer { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-top:8px; padding:0 2px; color:var(--team-muted); font-size:10px; }
.team-block footer>details { flex:0 0 auto; max-width:65%; text-align:right; }
.team-block summary { cursor:pointer; list-style:none; color:var(--team-muted); font-size:11px; }
.team-block [data-team-history-list] { max-height:230px; overflow:auto; text-align:left; }
.team-block [data-team-history-list] p { margin:8px 0; font-size:12px; line-height:1.5; }
.team-block [data-team-archive] { margin-top:5px; font-size:11px; }
.team-conflict { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; padding:10px; border:1px solid #e3bd6d; border-radius:7px; color:#986823; background:#fff7e3; }
.team-conflict strong { width:100%; font-size:12px; line-height:1.5; }
.team-note-image { display:block; width:auto; max-width:100%; max-height:650px; object-fit:contain; margin:12px 0; border-radius:7px; }
.team-add { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding-top:20px; }
.team-add small,.team-empty { color:var(--team-muted); font-size:13px; line-height:1.7; }
.team-empty { padding:24px 0; }
.team-notebook:fullscreen { width:100%; max-width:none; padding:28px max(20px,calc((100vw - 920px)/2)); border:0; border-radius:0; overflow:auto; }
.team-dark { --team-paper:#1c1c1c; --team-ink:#eee; --team-muted:#a1a1a1; --team-line:#343434; }
.team-dark .team-assignment,.team-dark .team-peer { color:#9bbddd; }
.team-dark input { color-scheme:dark; }
.team-dark .team-editable[style*="#243244"] { color:#e8e8e8!important; }
.team-dark .team-editable[style*="#e6effb"],.team-dark .team-editable[style*="#fff1bc"],.team-dark .team-editable[style*="#ececea"] { color:#243244!important; }
[data-team-private] { margin:20px 0; }
[data-team-private]>summary { cursor:pointer; padding:12px; color:#7a8088; font-size:13px; }
@media(max-width:760px){
  .team-notebook { padding:16px 13px 24px; border-radius:10px; }
  .team-top { margin-bottom:13px; }
  .team-tools { gap:4px; padding:8px 0; }
  .team-tools select,.team-tools button { min-height:34px; padding:5px 7px; font-size:12px; }
  .team-tools [data-team-fullscreen] { display:none; }
  .team-tools .team-tool-divider { display:none; }
  .team-block { padding:15px 0; }
  .team-block-head>small { font-size:9px; }
  .team-block-presence { width:100%; margin-left:0; }
  .team-block-presence:empty { display:none; }
  .team-fields { gap:10px; }
  .team-notebook .team-field input,.team-notebook .team-field select,.team-notebook .team-field textarea { font-size:16px; }
  .team-notebook .team-field input[type=datetime-local] { font-size:13px; }
  .team-checks { gap:10px; }
  .team-checks label { font-size:13px; }
  .team-editable { padding:5px 2px; }
  .team-assignment { font-size:12px; }
  .team-add small { width:100%; }
}
@media(max-width:420px){
  .team-fields .team-field:has(input[type=date]),.team-fields .team-field:has(input[type=datetime-local]) { grid-column:1/-1; }
}
/* Existing mobile styles use !important on every input/select. Keep this editor scoped. */
.team-notebook .team-tools select,.team-notebook .team-filters select,.team-notebook .team-add select {
  width:auto!important; max-width:145px!important; min-height:34px!important; padding:5px 7px!important;
  border:1px solid var(--team-line)!important; border-radius:7px!important;
  color:var(--team-ink)!important; background:var(--team-paper)!important; font-size:13px!important;
}
.team-notebook .team-tools [data-team-style=size] { width:52px!important; }
.team-notebook .team-field input,.team-notebook .team-field select,.team-notebook .team-field textarea {
  border-color:var(--team-line)!important; border-radius:5px!important; color:var(--team-ink)!important;
  background:var(--team-paper)!important; font-size:16px!important; padding:6px 8px!important;
}

/* Freeform notebook: plain rows, with tools shown only when requested. */
.fix-progress-page:has([data-team-notebook-root]) { background:#fff!important; }
.team-notebook { width:min(1060px,100%); min-height:70vh; margin:0 auto; padding:28px 40px 70px 64px; border:0; border-radius:0; box-shadow:none; }
.team-notebook button { min-height:30px; padding:4px 8px; border:0; border-radius:4px; background:transparent; }
.team-top { flex-wrap:wrap; margin:0 0 8px; }
.team-top h1 { margin:0; font-size:28px; line-height:1.5; }
.team-top-status { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.team-online { max-width:none; }
.team-options { margin-bottom:12px; }
.team-options>summary { display:inline-block; cursor:pointer; color:var(--team-muted); font-size:12px; padding:3px 0; }
.team-tools { position:static; border:0; padding:10px 0; }
.team-filters { flex-wrap:wrap; padding:4px 0 12px; border-bottom:1px solid var(--team-line); }
.team-hint { margin:0 0 26px; color:var(--team-muted); font-size:12px; line-height:1.7; }
.team-block { padding:2px 0; border:0; }
.team-block.is-selected>.team-text-row { background:#eff5fc; }
.team-block-controls { position:absolute; display:flex; right:calc(100% + 5px); top:2px; opacity:0; }
.team-block-controls button { width:23px; min-height:30px; padding:0; color:#929599; font-size:17px; }
.team-block-controls [data-team-menu] { cursor:grab; letter-spacing:-5px; padding-right:4px; }
.team-block:hover>.team-block-controls,.team-block:focus-within>.team-block-controls,.team-block.is-selected>.team-block-controls { opacity:1; }
.team-text-row { gap:8px; border-radius:3px; }
.team-notebook input[type=checkbox] { width:17px!important; height:17px!important; min-width:17px!important; min-height:17px!important; margin:7px 0 0!important; accent-color:#2387e8; border-radius:2px; flex:0 0 17px; cursor:pointer; }
.team-editable { min-height:30px; padding:2px 5px; border:0; border-radius:2px; line-height:1.6; }
.team-editable.is-complete { opacity:.55; }
.team-shape-heading { padding-top:14px; padding-bottom:5px; }
.team-shape-subheading { padding-top:12px; }
.team-shape-quote { border-left:3px solid #8ba3be; padding-left:14px; }
.team-shape-callout { padding:12px 14px; border:1px solid #e5dcb7; border-radius:4px; }
.team-block-type { font-size:12px; font-weight:600; color:var(--team-muted); padding:8px 0 4px; }
.team-block-presence { position:relative; margin:0; }
.team-block-presence:empty { display:none; }
.team-avatar { width:23px; height:23px; flex-basis:23px; font-size:9px; }
.team-assignment { margin:3px 0; }
.team-custom-fields { margin:5px 0 10px; }
.team-custom-field { display:grid; grid-template-columns:minmax(70px,28%) minmax(0,1fr) 28px; gap:5px; border-bottom:1px solid var(--team-line); padding:3px 0; }
.team-notebook .team-custom-field :is(input,textarea) { width:100%!important; min-width:0!important; min-height:32px!important; margin:0!important; padding:4px 5px!important; border:0!important; border-radius:0!important; color:var(--team-ink)!important; background:transparent!important; font-size:16px!important; line-height:1.5!important; }
.team-custom-field textarea { resize:vertical; }
.team-notebook .team-custom-field input { font-weight:600; }
.team-custom-field button { color:#999; padding:0; }
.team-add { padding:18px 0; gap:10px; }
.team-add button { color:var(--team-muted); padding-left:0; }
.team-add small { font-size:12px; }
.team-popover { position:fixed; z-index:12000; overflow:auto; overscroll-behavior:contain; padding:6px; border:1px solid var(--team-line); border-radius:9px; box-shadow:0 7px 24px #0002; background:var(--team-paper); color:var(--team-ink); font-size:13px; }
.team-notebook .team-popover button { display:block; text-align:left; width:100%; min-height:32px; padding:5px 8px; }
.team-menu-title { display:flex; align-items:center; justify-content:space-between; padding-left:8px; color:var(--team-muted); font-size:12px; }
.team-notebook .team-menu-title button { width:30px; text-align:center; }
.team-popover summary { padding:6px 8px; cursor:pointer; list-style:none; border-radius:4px; }
.team-popover summary::after { content:'›'; float:right; color:#999; }
.team-popover details[open]>summary::after { transform:rotate(90deg); }
.team-popover summary:hover { background:#f1f1ef; }
.team-popover details[open] { background:#f9f9f7; }
.team-notebook .team-popover label { display:flex; flex-direction:column; gap:4px; padding:5px 8px; background:transparent; border:0; margin:0; }
.team-notebook .team-popover select,.team-notebook .team-popover input { width:100%!important; min-height:32px!important; margin:0!important; padding:4px!important; border:1px solid var(--team-line)!important; border-radius:4px!important; background:var(--team-paper)!important; color:var(--team-ink)!important; font-size:16px!important; }
.team-menu-colors { display:grid; grid-template-columns:1fr 1fr; }
.team-menu-format { display:flex; }
.team-menu-audit { margin:5px 8px; padding-top:8px; border-top:1px solid var(--team-line); color:var(--team-muted); font-size:11px; line-height:1.6; }
.team-notebook .team-danger { color:#bc4949; }
[data-team-history-list] { padding:0 8px; font-size:12px; overflow-wrap:anywhere; }
[data-team-history-list] p { margin:8px 0; }
.team-drop-before::before { content:''; position:absolute; top:-2px; left:0; right:0; height:3px; background:#529ae6; }
.team-dark .team-block.is-selected>.team-text-row,.team-dark .team-popover details[open],.team-dark .team-popover summary:hover { background:#293747; }
@media(max-width:760px){
  .team-notebook { padding:18px 10px 60px 51px; border-radius:0; }
  .team-top h1 { font-size:24px; }
  .team-hint { font-size:11px; margin-bottom:20px; }
  .team-block { padding:2px 0; }
  .team-block-controls { opacity:1; right:calc(100% + 2px); }
  .team-block-controls button { width:22px; min-height:34px; }
  .team-editable { min-height:34px; padding:3px 2px; }
  .team-notebook input[type=checkbox] { margin-top:8px!important; }
  .team-fields { grid-template-columns:1fr; }
  .team-add small { width:100%; }
}

/* Freeform pages and vertical columns, shared on the server, not device-only tabs. */
.team-notebook { width:min(1460px,100%); padding:24px 18px 85px; }
.team-page-toolbar,.team-column-toolbar { display:flex; align-items:center; gap:8px; min-width:0; padding:8px 0; }
.team-page-tabs,.team-column-picker { display:flex; gap:5px; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.team-page-tabs { flex:1; }
.team-notebook .team-page-tabs button { max-width:240px; overflow:hidden; text-overflow:ellipsis; min-height:38px; border-bottom:2px solid transparent; border-radius:0; }
.team-notebook .team-page-tabs button[aria-selected=true] { color:#245d96; border-bottom-color:#397bb8; background:#edf4fb; font-weight:700; }
.team-notebook [data-team-add-page],.team-notebook [data-team-add-column] { min-height:38px; color:#2865a8; background:#f1f6fc; }
.team-column-toolbar { justify-content:space-between; margin-bottom:12px; border-bottom:1px solid var(--team-line); }
.team-column-picker button { max-width:200px; overflow:hidden; text-overflow:ellipsis; }
.team-notebook [data-team-blocks] { display:flex; align-items:flex-start; gap:18px; width:100%; min-width:0; overflow-x:auto; padding:2px 0 20px; }
.team-column { flex:1 0 300px; min-width:0; padding:0 8px 0 50px; border-right:1px solid var(--team-line); }
.team-column:last-child { border-right:0; }
.team-column:only-child { flex-basis:100%; }
.team-column-head { display:flex; align-items:center; gap:6px; min-height:38px; margin-bottom:10px; }
.team-column-head strong { overflow-wrap:anywhere; min-width:0; font-size:15px; color:var(--team-ink); }
.team-column [data-team-column-append] { margin-top:12px; color:var(--team-muted); }
[data-team-unavailable] { padding:22px; line-height:1.7; background:#fff; }
.team-notebook .team-top-status>[data-team-retry] { font-size:12px; color:#2865a8; }
@media(max-width:760px){
  .team-notebook { padding:16px 8px calc(84px + env(safe-area-inset-bottom)); width:100%; }
  .team-page-toolbar { flex-wrap:wrap; gap:4px; }
  .team-page-tabs { flex-basis:100%; }
  .team-notebook .team-page-tabs button,.team-notebook [data-team-add-page],.team-notebook [data-team-add-column],.team-column-picker button { min-height:40px; }
  .team-column-toolbar { flex-wrap:wrap; }
  .team-column-picker { max-width:100%; }
  .team-notebook [data-team-blocks] { display:block; overflow:visible; padding-bottom:12px; }
  .team-column { display:none; width:100%; border:0; padding:0 0 0 44px; }
  .team-column.is-current { display:block; }
  .team-column-head { margin-bottom:6px; }
  .team-hint { margin:4px 0 12px; }
}

/* Keep the notebook header focused on its live sync status. */
.team-notebook .team-top>h1,.team-notebook>.team-options,.team-notebook>.team-hint,.team-notebook .team-top .team-online,.team-notebook .team-top [data-team-retry]{display:none!important}
.team-notebook .team-top{justify-content:flex-end;margin-bottom:8px;min-height:20px}

.team-activity{margin:8px 0 14px;border:1px solid #e6e3dc;border-radius:10px;padding:10px;font-size:13px}.team-activity>summary{cursor:pointer;font-weight:600}.team-activity [data-team-activity-list]{max-height:50vh;overflow:auto}.team-activity article{padding:10px 0;border-bottom:1px solid #eeece7}.team-activity article small{display:block;color:#7c8490;margin-top:4px}.team-activity article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.team-activity-tools{display:flex;justify-content:flex-end}

/* Hide column creation and keep page controls on one horizontal row. */
.team-notebook [data-team-add-column]{display:none!important}
.team-notebook .team-page-toolbar{display:flex;flex-wrap:nowrap!important;align-items:center;gap:6px!important;min-width:0}
.team-notebook .team-page-tabs{flex:1 1 0!important;min-width:0;flex-basis:0!important;overflow-x:auto;white-space:nowrap}
.team-notebook .team-page-toolbar>[data-team-add-page],.team-notebook .team-page-toolbar>[data-team-rename-page]{flex:0 0 auto;white-space:nowrap}
@media(max-width:760px){.team-notebook .team-page-toolbar>[data-team-add-page],.team-notebook .team-page-toolbar>[data-team-rename-page]{font-size:12px;padding:5px 7px;min-height:34px}.team-notebook .team-page-tabs button{min-height:34px}}

/* Remove the column switcher and deleted-items shortcut row. */
.team-notebook>.team-column-toolbar,.team-notebook>.team-activity-tools{display:none!important}

/* One compact toolbar, with activity content expanding below it. */
.team-notebook[data-team-notebook-root]{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:8px}
.team-notebook[data-team-notebook-root]>:not(.team-page-toolbar):not(.team-top):not(.team-activity){grid-column:1/-1}
.team-notebook[data-team-notebook-root]>.team-page-toolbar{grid-column:1;grid-row:1;margin:0;padding:0;min-width:0}
.team-notebook[data-team-notebook-root]>.team-top{grid-column:2;grid-row:1;margin:0;white-space:nowrap}
.team-notebook[data-team-notebook-root]>.team-activity{display:contents}
.team-notebook[data-team-notebook-root]>.team-activity>summary{grid-column:3;grid-row:1;white-space:nowrap;font-size:12px;cursor:pointer;padding:7px 0}
.team-notebook[data-team-notebook-root]>.team-activity>:not(summary){grid-column:1/-1}
.team-notebook[data-team-notebook-root]>.team-activity:not([open])>:not(summary){display:none!important}
@media(max-width:760px){
.team-notebook[data-team-notebook-root]{column-gap:5px}
.team-notebook .team-top-status [data-team-sync]{font-size:9px}
.team-notebook .team-page-toolbar{gap:3px!important}
.team-notebook .team-page-tabs button{padding-inline:5px;font-size:11px}
.team-notebook .team-page-toolbar>[data-team-add-page],.team-notebook .team-page-toolbar>[data-team-rename-page]{font-size:10px;padding-inline:4px}
.team-notebook[data-team-notebook-root]>.team-activity>summary{font-size:10px}
}

/* Remove the redundant column heading above notes. */
.team-notebook .team-column-head{display:none!important}

/* Place activity below the page tabs, aligned to the first tab. */
.team-notebook[data-team-notebook-root]{grid-template-columns:minmax(0,1fr) auto}
.team-notebook[data-team-notebook-root]>.team-activity>summary{grid-column:1/-1;grid-row:2;justify-self:start;padding:7px 0;margin-top:3px}

.team-delete-confirm{width:min(340px,calc(100vw - 40px));box-sizing:border-box;padding:24px;border:1px solid #e4d8c4;border-radius:18px;background:#fffdf8;color:#192940;box-shadow:0 20px 70px #16223830}.team-delete-confirm::backdrop{background:rgba(20,30,45,.4)}.team-delete-confirm h2{font-size:19px;margin:0 0 24px;font-weight:700}.team-delete-confirm footer{display:flex;justify-content:flex-end;gap:10px}.team-delete-confirm button{min-width:90px;min-height:40px;padding:8px 18px;border:1px solid #dfd4c2;border-radius:10px;background:#fff;color:#344054;font:inherit;cursor:pointer}.team-delete-confirm .team-confirm-delete{background:#b49150;border-color:#b49150;color:#fff}.team-delete-confirm button:focus-visible{outline:2px solid #b49150;outline-offset:3px}

/* Page management alongside activity; hide sync label. */
.team-notebook[data-team-notebook-root]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px}
.team-notebook[data-team-notebook-root]>.team-page-toolbar{display:contents!important}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>.team-page-tabs{grid-column:1/3;grid-row:1}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-add-page]{grid-column:3;grid-row:1;justify-self:end}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-rename-page]{grid-column:2;grid-row:2}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-delete-page]{grid-column:3;grid-row:2}
.team-notebook[data-team-notebook-root]>.team-top{display:none!important}
.team-notebook[data-team-notebook-root]>.team-activity>summary{grid-column:1;grid-row:2;min-width:0}

/* Task ownership, start time and progress comments. */
.team-task-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:4px 0 8px;color:#64748b;font-size:12px}
.team-task-time{max-width:300px;margin-bottom:10px}.team-task-time input{width:100%;box-sizing:border-box}
.team-comments-button{border:1px solid #cbd5e1;border-radius:8px;padding:6px 12px;background:#fff;color:#334155;cursor:pointer}
.team-comments-button.has-comments{background:#fff1a8!important;border-color:#d6a526!important;color:#714e00!important}
.team-comments-dialog{box-sizing:border-box;width:min(540px,92vw);max-height:85dvh;overflow:auto;border:1px solid #d9cbb6;border-radius:16px;padding:20px;background:#fffdf8;color:#243244}
.team-comments-dialog::backdrop{background:#15223899}.team-comments-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.team-comments-dialog button{padding:8px 14px;border:1px solid #cdbb9e;border-radius:8px;background:#fff8e8;color:#674411;cursor:pointer}.team-comments-dialog button:disabled{opacity:.5}
.team-comments-dialog textarea{box-sizing:border-box;display:block;width:100%;margin:12px 0;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.team-comments-dialog article{padding:12px 0;border-bottom:1px solid #e5e7eb}.team-comments-dialog time{display:block;font-size:12px;color:#64748b}.team-comments-dialog article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.team-comments-dialog [data-comment-status]{font-size:13px}
/* Row authors, obvious controls, page covers and touch ordering. */
.team-notebook .team-block{padding-left:42px;min-height:80px}
.team-row-author{position:absolute;left:2px;top:18px}.team-row-author .team-avatar{width:30px;height:30px;font-size:12px}
.team-notebook .team-block-controls{left:42px;right:auto;top:10px;opacity:1;gap:4px;z-index:1}
.team-notebook .team-block-controls button{border:1px solid #c4cfda;background:#f1f5f9;color:#32465b;border-radius:7px;width:28px;min-height:32px}
.team-notebook .team-block-controls [data-team-menu]{width:auto;min-width:64px;padding:2px 7px;letter-spacing:normal;font-size:22px;touch-action:none;user-select:none;-webkit-touch-callout:none}
.team-handle-label{font-size:12px;margin-left:4px;vertical-align:middle}.team-task-meta{min-height:32px;justify-content:flex-end;padding-left:106px;margin-bottom:10px}
.team-row-select{position:absolute;left:8px;top:56px;width:20px;height:20px;accent-color:#2676d9}
.team-page-header{margin:16px 0 20px}.team-page-cover{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:12px;margin-bottom:12px}
.team-notebook .team-page-title{display:block;width:100%;font:700 clamp(26px,4vw,38px)/1.35 inherit;font-size:32px;font-weight:700;line-height:1.35;border:0;border-bottom:1px solid transparent;background:transparent;color:inherit;padding:8px 0;box-sizing:border-box}
.team-notebook .team-page-title:focus{outline:0;border-bottom-color:#d4a34b}.team-cover-actions,.team-bulk-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.team-cover-actions span{font-size:12px;color:#7c8490}
.team-page-tabs [data-team-page]{touch-action:pan-y;user-select:none;-webkit-touch-callout:none}.team-is-dragging{opacity:.55;outline:2px dashed #2676d9;user-select:none}.team-block.team-drop-before{box-shadow:0 -3px #2676d9}.team-block.team-drop-after{box-shadow:0 3px #2676d9}.team-page-tabs .team-drop-before{box-shadow:-3px 0 #2676d9}.team-page-tabs .team-drop-after{box-shadow:3px 0 #2676d9}
@media(max-width:600px){.team-notebook .team-block{padding-left:36px}.team-notebook .team-block-controls{left:36px}.team-task-meta{padding-left:100px}.team-notebook .team-page-title{font-size:28px}.team-page-cover{max-height:200px}}
.team-notebook input.team-page-title{font-size:32px!important;font-weight:750!important;line-height:1.35!important;height:auto!important;min-height:52px!important;padding:8px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important}
@media(max-width:600px){.team-notebook input.team-page-title{font-size:28px!important}}
.team-subpages{margin:8px 0 20px}.team-page-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px;font-size:13px;color:#64748b}.team-subpage-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}.team-notebook .team-subpage-link{display:flex;align-items:center;gap:8px;width:100%;text-align:left;min-height:44px;padding:10px 12px;border:1px solid #e4e7eb;border-radius:8px;background:#f8fafc;color:#243244;overflow-wrap:anywhere}.team-subpage-link>span:last-child{margin-left:auto}.team-notebook [data-team-add-subpage]{color:#2865a8}

/* Compact notebook row controls; reveal on pointer hover or keyboard focus. */
.team-notebook .team-block-controls{gap:2px;opacity:1}
.team-notebook .team-block-controls button,
.team-notebook .team-block-controls [data-team-menu]{width:24px;min-width:24px;min-height:28px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:3px;color:#969b9e;font-size:22px;letter-spacing:normal;display:inline-flex;align-items:center;justify-content:center}
.team-notebook .team-block-controls button:hover{background:#f0f0ee;color:#535b61}
.team-notebook .team-block-controls button:focus-visible{outline:2px solid #b48a43;outline-offset:2px}
.team-notebook .team-block-controls svg{width:12px;height:18px;pointer-events:none}
/* Empty rows retain the same hover/tap controls so they can be deleted. */
@media(hover:hover) and (pointer:fine){
 .team-notebook .team-block>.team-block-controls{opacity:0;pointer-events:none}
 .team-notebook .team-block:hover>.team-block-controls,.team-notebook .team-block:focus-within>.team-block-controls{opacity:1;pointer-events:auto}
}
@media(hover:none),(pointer:coarse){
 .team-notebook .team-block-controls button,.team-notebook .team-block-controls [data-team-menu]{min-width:32px;min-height:36px}
}

/* Keep author, insert/drag controls and first line together. */
.team-notebook .team-block{display:grid;grid-template-columns:30px 50px minmax(0,1fr) auto;column-gap:6px;align-items:start;padding:3px 0;min-height:36px}
.team-notebook .team-block>*{grid-column:3 / -1;min-width:0}
.team-notebook .team-block>.team-row-author{position:static;grid-column:1;grid-row:1;align-self:start;margin-top:1px}
.team-notebook .team-block>.team-block-controls{position:static;grid-column:2;grid-row:1;align-self:start;margin-top:1px}
.team-notebook .team-block>.team-text-row{grid-column:3;grid-row:1;align-self:start}
.team-notebook .team-block>.team-task-meta{grid-column:4;grid-row:1;min-height:0;padding:0;margin:0;align-self:start}
.team-notebook .team-comments-button{font-size:12px;padding:4px 6px;min-height:28px;white-space:nowrap}
.team-notebook .team-block>.team-block-presence:empty{display:none}
.team-notebook .team-block:has(>.team-row-select){min-height:66px}
.team-notebook .team-row-select{top:36px;left:6px}
@media(hover:none),(pointer:coarse){.team-notebook .team-block{grid-template-columns:30px 66px minmax(0,1fr) auto;column-gap:3px}}

/* Align the first row consistently, including large headings. */
.team-notebook .team-block>.team-row-author,
.team-notebook .team-block>.team-block-controls,
.team-notebook .team-block>.team-text-row,
.team-notebook .team-block>.team-task-meta{align-self:center;margin-top:0;margin-bottom:0}
.team-notebook .team-block>.team-text-row{align-items:center}
.team-notebook .team-block>.team-task-meta[hidden]{display:none!important}

.team-notebook .team-text-row>.team-row-select{position:static;flex:0 0 18px;width:18px;height:18px;margin:0;align-self:center;accent-color:#2676d9}
.team-notebook .team-block:has(.team-row-select){min-height:36px}
.team-notebook [data-team-bulk-delete]{color:#b43c37}

.team-notebook .team-inline-subpage{display:flex;align-items:center;gap:8px;min-height:36px;padding:3px 0 3px 92px;box-sizing:border-box}.team-notebook .team-inline-subpage button{display:inline;text-align:left;width:auto;min-height:30px;padding:2px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.team-inline-page-icon{color:#929599;flex:none}.team-notebook .team-inline-subpage button:hover{background:#f0f0ee}@media(hover:none),(pointer:coarse){.team-notebook .team-inline-subpage{padding-left:108px}}

/* Inline child-page links share a row and wrap naturally on small screens. */
.team-notebook .team-inline-subpage{display:inline-flex;vertical-align:middle;width:auto;max-width:100%;min-height:36px;padding:3px 0;margin:0 24px 0 0}
.team-notebook .team-inline-subpage button{min-width:0;max-width:100%}

/* Align page links and add actions with the notebook's left content edge. */
.team-notebook .team-column{padding-left:0;padding-right:0;box-sizing:border-box}
.team-notebook .team-inline-subpage{display:flex;width:100%;padding:3px 0;margin:0;vertical-align:initial}
.team-notebook .team-column [data-team-column-append]{padding-left:0;margin-left:0}

/* Use the single notebook add-row action. */
.team-notebook [data-team-column-append]{display:none!important}


/* Completed tasks remain struck through; selection is a separate operation. */
.team-notebook .team-text-row:has(>input[data-team-field="checked"]:checked)>.team-editable,.team-notebook .team-editable.is-complete{text-decoration:line-through!important;opacity:.55}
.team-notebook .team-text-row>.team-row-select{accent-color:#b88626;outline:1px dashed #b88626;outline-offset:2px}

/* Reveal row authors together with the row controls on hover-capable devices. */
@media(hover:hover) and (pointer:fine){
 .team-notebook .team-block>.team-row-author{opacity:0;pointer-events:none}
 .team-notebook .team-block:hover>.team-row-author,
 .team-notebook .team-block:focus-within>.team-row-author{opacity:1;pointer-events:auto}
}

/* Phone notebook: readable editors and reliable touch targets. */
@media(max-width:600px){
 .team-notebook{padding-left:8px!important;padding-right:8px!important;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
 .team-notebook .team-block{grid-template-columns:26px 72px minmax(0,1fr) auto;column-gap:3px;min-height:44px}
 .team-notebook .team-row-author .team-avatar{width:26px;height:26px}
 .team-notebook .team-block-controls{gap:0}
 .team-notebook .team-block-controls button,.team-notebook .team-block-controls [data-team-menu]{width:36px;min-width:36px;min-height:44px}
 .team-notebook .team-editable{min-height:44px;padding:8px 2px;line-height:1.6;font-size:max(16px,calc(var(--team-block-size,17px)*var(--team-zoom)))}
 .team-notebook .team-text-row{gap:5px}
 .team-notebook .team-text-row>input[type=checkbox]{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;margin:0!important;flex-basis:22px}
 .team-notebook .team-comments-button{min-height:44px;padding:6px 4px;font-size:11px}
 .team-notebook .team-bulk-tools{gap:4px;align-items:center;flex-wrap:wrap}
 .team-notebook .team-bulk-tools button{min-height:44px;padding:8px;font-size:13px}
 .team-notebook .team-bulk-tools [data-team-selection-count]{flex-basis:100%;font-size:12px}
 .team-notebook .team-inline-subpage button,.team-notebook [data-team-append]{min-height:44px;white-space:normal}
 .team-notebook .team-popover:popover-open{margin:0;left:10px!important;right:10px!important;top:auto!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:65dvh!important;padding:8px 10px 12px;border-radius:16px;box-shadow:0 8px 36px #14253633;z-index:13000}
 .team-notebook .team-popover .team-menu-title{position:sticky;top:-8px;background:var(--team-paper);z-index:2;min-height:44px}
 .team-notebook .team-popover button,.team-notebook .team-popover summary{min-height:44px;padding:11px 10px;font-size:15px}
 .team-notebook .team-popover .team-menu-title button{width:44px;min-width:44px;height:44px;text-align:center}
 .team-notebook .team-custom-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}
 .team-notebook .team-field input,.team-notebook .team-field select,.team-notebook .team-field textarea,.team-notebook .team-custom-field input,.team-notebook .team-custom-field textarea{font-size:16px!important;min-height:44px}
 .team-notebook .team-comments-dialog{width:calc(100vw - 20px);max-height:75dvh;padding:14px}
 .team-notebook .team-comments-dialog button{min-height:44px}
}

/* Full-width photos retain the original proportions inside dispatch pages. */
.team-notebook .team-kind-image>.team-note-image{grid-column:1 / -1;display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;margin:8px 0 12px;border-radius:7px}
.team-notebook .team-page-header.team-inner-page .team-page-cover{width:100%;height:auto;max-height:none;object-fit:contain;border-radius:7px}

.team-notebook .team-page-created-by{margin:4px 0 10px;color:var(--team-muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere}

/* Page covers show the complete photo, including top-level dispatch pages. */
.team-notebook .team-page-header .team-page-cover{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:7px}

/* Touch devices have no hover: reveal only the row explicitly tapped. */
@media(hover:none),(pointer:coarse){
 .team-notebook .team-block>.team-row-author,
 .team-notebook .team-block>.team-block-controls{opacity:0;pointer-events:none}
 .team-notebook .team-block.team-touch-active>.team-row-author,
 .team-notebook .team-block.team-touch-active>.team-block-controls{opacity:1;pointer-events:auto}
}

.team-mobile-editor-tools{position:fixed;z-index:12999;display:flex;align-items:center;box-sizing:border-box;height:52px;padding:4px max(4px,env(safe-area-inset-right)) 4px max(4px,env(safe-area-inset-left));background:#fffdf9;border-top:1px solid #e6e2db;box-shadow:0 -3px 12px #24324415;overflow-x:auto;overscroll-behavior:contain;touch-action:pan-x}
.team-mobile-editor-tools[hidden]{display:none!important}
.team-mobile-editor-tools button{flex:1 0 34px;min-width:34px;height:44px;padding:0 3px;border:0;border-radius:5px;background:transparent;color:#485768;font:20px system-ui;touch-action:manipulation}
.team-mobile-editor-tools button:active{background:#e8eff9}.team-mobile-editor-tools button:disabled{opacity:.3}.team-mobile-editor-tools button:focus-visible{outline:2px solid #2865a8;outline-offset:-2px}

/* Align text and task text; keep author and actions after the writing area. */
.team-notebook .team-block{grid-template-columns:minmax(0,1fr) 30px 50px auto}
.team-notebook .team-block>*{grid-column:1 / -1}
.team-notebook .team-block>.team-text-row{grid-column:1;display:grid;grid-template-columns:22px minmax(0,1fr);gap:5px;min-width:0}
.team-notebook .team-block>.team-text-row>.team-editable{grid-column:2;grid-row:1;min-width:0}
.team-notebook .team-block>.team-text-row>input[type=checkbox]{grid-column:1;grid-row:1;justify-self:center}
.team-notebook .team-block>.team-row-author{grid-column:2}
.team-notebook .team-block>.team-block-controls{grid-column:3}
.team-notebook .team-block>.team-task-meta{grid-column:4}
@media(hover:none),(pointer:coarse),(max-width:600px){.team-notebook .team-block{grid-template-columns:minmax(0,1fr) 26px 72px auto;column-gap:3px}}

/* Compact vertical rhythm while keeping multiline text and controls readable. */
.team-notebook .team-block{min-height:32px;padding-top:1px;padding-bottom:1px}
.team-notebook .team-editable{box-sizing:border-box;min-height:32px;padding-top:3px;padding-bottom:3px;line-height:1.45}
.team-notebook .team-block-controls button,.team-notebook .team-block-controls [data-team-menu]{min-height:32px;height:32px}
.team-notebook .team-comments-button{min-height:32px;padding-top:3px;padding-bottom:3px}
.team-notebook [data-team-blocks]{padding-bottom:4px}
.team-notebook .team-add{padding:6px 0;gap:4px}
.team-notebook [data-team-append]{min-height:34px;padding-top:4px;padding-bottom:4px}

/* Center the document; put insertion/drag tools before text and author after it. */
.team-notebook[data-team-notebook-root]{width:min(960px,100%);margin-inline:auto}
.team-notebook .team-editable:empty::before{content:none}
.team-notebook .team-block{grid-template-columns:50px minmax(0,1fr) 30px auto}
.team-notebook .team-block>.team-block-controls{grid-column:1}
.team-notebook .team-block>.team-text-row{grid-column:2}
.team-notebook .team-block>.team-row-author{grid-column:3}
.team-notebook .team-block>.team-task-meta{grid-column:4}
@media(hover:none),(pointer:coarse),(max-width:600px){.team-notebook .team-block{grid-template-columns:72px minmax(0,1fr) 26px auto}}

/* Mobile rows: author before content, without insertion or drag buttons. */
@media(hover:none),(pointer:coarse),(max-width:600px){
 .team-notebook .team-block{grid-template-columns:26px minmax(0,1fr) auto}
 .team-notebook .team-block>.team-block-controls{display:none!important}
 .team-notebook .team-block>.team-row-author{grid-column:1}
 .team-notebook .team-block>.team-text-row{grid-column:2}
 .team-notebook .team-block>.team-task-meta{grid-column:3}
}

/* Mobile plain text has no empty checkbox gutter or footer add-row action. */
@media(hover:none),(pointer:coarse),(max-width:600px){
 .team-notebook .team-block{column-gap:0}
 .team-notebook .team-block>.team-text-row:not(:has(>input[type=checkbox])){grid-template-columns:minmax(0,1fr);gap:0}
 .team-notebook .team-block>.team-text-row:not(:has(>input[type=checkbox]))>.team-editable{grid-column:1}
 .team-notebook .team-add{display:flex!important}
}

.team-notebook button.team-row-author{padding:0;border:0;background:transparent;min-height:30px;box-shadow:none;cursor:pointer;justify-self:start}
.team-comments-dialog .team-danger{color:#b43c37;min-height:44px}

/* Empty pages need an entry point even when normal mobile footer actions are hidden. */
.team-notebook:not(:has([data-team-blocks] [data-team-block]))>.team-add{display:flex!important}
.team-notebook .team-block.team-is-dragging>.team-block-controls{opacity:1;pointer-events:auto}
.team-notebook [data-team-menu]{cursor:grab}
.team-notebook .team-is-dragging,.team-notebook .team-is-dragging [data-team-menu]{cursor:grabbing}
.team-notebook [data-team-row-actions]{touch-action:none;user-select:none;-webkit-touch-callout:none}

/* Desktop text starts at the highlighted field edge; checkboxes use the action gutter. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook .team-block{grid-template-columns:76px minmax(0,1fr) 30px auto}
 .team-notebook .team-block>.team-text-row{position:relative;grid-template-columns:minmax(0,1fr);gap:0}
 .team-notebook .team-block>.team-text-row>.team-editable{grid-column:1}
 .team-notebook .team-block>.team-text-row>input[type=checkbox]{position:absolute;left:-24px;top:50%;transform:translateY(-50%);margin:0;width:18px;height:18px}
 .team-notebook .team-block>.team-block-controls{width:50px;justify-self:start}
}

/* Share one desktop content edge across toolbar, messages, rows and child pages. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook>.team-bulk-tools,.team-notebook>.team-message,.team-notebook>[data-team-blocks],.team-notebook>.team-add,.team-notebook>.team-empty{margin-left:82px}
 .team-notebook .team-block{grid-template-columns:minmax(0,1fr) 30px auto;position:relative;column-gap:6px}
 .team-notebook .team-block>.team-text-row{grid-column:1}
 .team-notebook .team-block>.team-row-author{grid-column:2}
 .team-notebook .team-block>.team-task-meta{grid-column:3}
 .team-notebook .team-block>.team-block-controls{position:absolute;left:-82px;right:auto;top:0;grid-column:auto}
 .team-notebook .team-inline-subpage{position:relative;gap:0}
 .team-notebook .team-inline-page-icon{position:absolute;left:-24px}
 .team-notebook .team-inline-subpage button,.team-notebook [data-team-append],.team-notebook [data-team-multi]{padding-left:2px}
 .team-notebook>.team-message{padding-left:2px}
}

/* History is a separate disclosure card, not editable document content. */
.team-notebook[data-team-notebook-root]>.team-activity,.team-notebook [data-team-history]{display:block;grid-column:1/-1;grid-row:2;background:#f1f5fb;border:1px solid #b9cce4;border-left:4px solid #527ead;border-radius:8px;padding:0;margin:8px 0 16px;overflow:hidden;color:#284967}
.team-notebook[data-team-notebook-root]>.team-activity>summary,.team-notebook [data-team-history]>summary{display:flex;align-items:center;gap:9px;min-height:44px;box-sizing:border-box;padding:10px 12px;margin:0;font-size:13px;font-weight:600;line-height:1.5;white-space:normal;cursor:pointer;list-style:none;background:#e5edf8;color:#284967}
.team-notebook :is(.team-activity,[data-team-history])>summary::-webkit-details-marker{display:none}
.team-notebook :is(.team-activity,[data-team-history])>summary::before{content:'▸';font-size:16px;flex:none}
.team-notebook :is(.team-activity,[data-team-history])[open]>summary::before{content:'▾'}
.team-notebook :is(.team-activity,[data-team-history])>summary::after{content:'展開';margin-left:auto;font-size:11px;font-weight:400;white-space:nowrap}
.team-notebook :is(.team-activity,[data-team-history])[open]>summary::after{content:'收合'}
.team-notebook :is(.team-activity,[data-team-history])>summary:focus-visible{outline:2px solid #2865a8;outline-offset:-3px}
.team-notebook .team-activity>[data-team-activity-list]{padding:0 12px}
.team-notebook .team-activity>button{margin:6px 12px;color:#284967}
.team-notebook .team-activity article{border-bottom-color:#cbd8e7}
.team-dark .team-notebook :is(.team-activity,[data-team-history]),.team-notebook.team-dark :is(.team-activity,[data-team-history]){background:#233247;border-color:#536c8b;color:#dce9fa}
.team-dark .team-notebook :is(.team-activity,[data-team-history])>summary,.team-notebook.team-dark :is(.team-activity,[data-team-history])>summary{background:#30435e;color:#e3edfa}

/* Reserve the action gutter inside the scroll container so handles cannot be clipped. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook>[data-team-blocks]{margin-left:0;padding-left:82px;box-sizing:border-box}
 .team-notebook .team-block{margin-left:-82px;padding-left:82px}
 .team-notebook .team-block>.team-block-controls{left:0}
}

/* Cancel the legacy checkbox top margin and align page metadata with document text. */
.team-notebook .team-block>.team-text-row>input[type=checkbox]{margin:0!important}
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook>.team-page-header{margin-left:84px}
 .team-notebook .team-cover-actions>button{padding-left:0}
 .team-notebook[data-team-notebook-root]>.team-activity{margin-left:82px}
 .team-notebook .team-page-tabs{margin-left:82px}
 .team-notebook .team-page-tabs>button:first-child{padding-left:2px}
}

.team-notebook .team-inline-subpage .team-subpage-delete{margin-left:12px;padding:4px 8px;min-height:32px;border:1px solid #e8c8c4;border-radius:5px;background:#fff5f3;color:#a6362d;font-size:12px;text-decoration:none;flex:none}
@media(pointer:coarse),(max-width:600px){.team-notebook .team-inline-subpage .team-subpage-delete{min-height:44px}}

/* Align the desktop document with the visible Home navigation label. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook[data-team-notebook-root]{margin-left:var(--team-home-offset,0px);margin-right:0;padding-left:0;width:min(960px,calc(100% - var(--team-home-offset,0px)))}
 .team-notebook>.team-bulk-tools,.team-notebook>.team-message,.team-notebook>.team-add,.team-notebook>.team-empty,.team-notebook .team-page-tabs,.team-notebook[data-team-notebook-root]>.team-activity{margin-left:var(--team-home-gutter,82px)}
 .team-notebook>.team-page-header{margin-left:calc(var(--team-home-gutter,82px) + 2px)}
 .team-notebook>[data-team-blocks]{padding-left:var(--team-home-gutter,82px)}
 .team-notebook .team-block{margin-left:calc(-1 * var(--team-home-gutter,82px));padding-left:var(--team-home-gutter,82px)}
 .team-notebook.team-narrow-gutter .team-block>.team-block-controls{top:-30px;z-index:2;background:var(--team-paper);border-radius:4px}
}

.team-notebook .team-subpage-actions{margin-left:10px;flex:none;font-size:13px}
.team-notebook .team-subpage-actions>summary{cursor:pointer;list-style:none;border-radius:5px;padding:2px 8px;min-height:32px;font-size:22px;color:#64748b}
.team-notebook .team-subpage-actions>summary::-webkit-details-marker{display:none}
.team-notebook .team-subpage-actions>summary:hover{background:#edf2f8}
.team-notebook .team-subpage-actions:not([open])>.team-subpage-delete{display:none}
.team-notebook .team-subpage-actions>.team-subpage-delete{margin:0 0 4px}
@media(pointer:coarse),(max-width:600px){.team-notebook .team-subpage-actions>summary{min-height:44px;min-width:44px}}

/* Field-only blocks do not reserve an empty text row above their input. */
.team-notebook .team-field-only>.team-primary-field{grid-row:1;grid-column:1;min-width:0;margin-top:0}
.team-notebook .team-field-only>.team-block-type{display:none}
.team-notebook .team-field-only>.team-row-author{align-self:start}
@media(hover:none),(pointer:coarse),(max-width:600px){.team-notebook .team-field-only>.team-primary-field{grid-column:2}}

/* All functional fields share the document edge and align actions with their first control. */
.team-notebook .team-block>:is(.team-fields,.team-field,.team-checks,.team-custom-fields,.team-task-time,.team-note-image,.team-assignment){grid-column:1;min-width:0;box-sizing:border-box}
.team-notebook .team-block>.team-block-controls{top:var(--team-controls-y,0px);align-items:center}
.team-notebook .team-block-controls>button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;flex:none}
.team-notebook .team-block-controls [data-team-menu]{padding:0;letter-spacing:normal}
.team-notebook .team-block-controls svg{display:block;margin:0}
.team-notebook .team-field-only>.team-row-author{margin-top:var(--team-controls-y,0px)}
.team-notebook .team-task-time>[data-team-remove-time]{padding-left:0;margin-left:0}
@media(hover:none),(pointer:coarse),(max-width:600px){
 .team-notebook .team-block>:is(.team-fields,.team-field,.team-checks,.team-custom-fields,.team-task-time,.team-note-image,.team-assignment){grid-column:2}
}
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook.team-narrow-gutter .team-block>.team-block-controls{top:-30px}
}

.team-notebook .team-block>.team-block-controls{margin-top:0}

/* Use the same centered SVG canvas for both row action icons. */
.team-notebook .team-block-controls svg{width:20px;height:20px;flex:none}

/* Child-page menus appear only after selecting or keyboard-focusing the row. */
.team-notebook .team-inline-subpage>.team-subpage-actions{visibility:hidden;pointer-events:none}
.team-notebook .team-inline-subpage:is(.team-subpage-active,:has(:focus-visible))>.team-subpage-actions{visibility:visible;pointer-events:auto}

/* Authors stay visible; activity metadata shares its action heading. */
.team-notebook .team-block>.team-row-author{opacity:1!important;pointer-events:auto!important}
.team-notebook .team-activity-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.team-notebook .team-activity article .team-activity-heading small{display:inline;margin:0}
.team-notebook .team-activity article{padding:6px 0}

/* Desktop authors precede the same content column used by every field type. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook .team-block{grid-template-columns:30px minmax(0,1fr) auto}
 .team-notebook .team-block>.team-row-author{grid-column:1}
 .team-notebook .team-block>:is(.team-text-row,.team-fields,.team-field,.team-checks,.team-custom-fields,.team-task-time,.team-note-image,.team-assignment),.team-notebook .team-field-only>.team-primary-field{grid-column:2}
 .team-notebook .team-block>.team-text-row>input[type=checkbox]{left:-60px}
}

/* A checkbox is the first content item, not a reserved gutter for every row. */
.team-notebook .team-block>.team-text-row{grid-template-columns:minmax(0,1fr);gap:0}
.team-notebook .team-block>.team-text-row>.team-editable{grid-column:1}
.team-notebook .team-block>.team-text-row:has(>input[type=checkbox]){grid-template-columns:auto minmax(0,1fr);gap:6px}
.team-notebook .team-block>.team-text-row:has(>input[type=checkbox])>.team-editable{grid-column:2}
.team-notebook .team-block>.team-text-row>input[type=checkbox]{position:static;left:auto;top:auto;transform:none;grid-column:1;align-self:center;justify-self:start;margin:0!important}

/* Reference mobile editor toolbar: scrolling actions and an always-reachable close control. */
.team-mobile-editor-tools{gap:0;padding:4px max(4px,env(safe-area-inset-right)) 4px max(4px,env(safe-area-inset-left));background:#242424;color:#ddd;border-top:1px solid #414141;overflow:visible;box-shadow:0 -2px 10px #0002}
.team-mobile-tools-scroll{display:flex;align-items:center;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x}
.team-mobile-tools-scroll::-webkit-scrollbar{display:none}
.team-mobile-editor-tools button{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:10px;color:#dedede;background:transparent;border:0;border-radius:5px;line-height:1;touch-action:manipulation}
.team-mobile-editor-tools button svg{display:block;flex:none;width:24px;height:24px;pointer-events:none}
.team-mobile-editor-tools button:active{background:#454545}
.team-mobile-editor-tools button:disabled{opacity:.3}
.team-mobile-editor-tools button:focus-visible{outline:2px solid #89bfff}
.team-mobile-editor-tools>[data-team-tool="keyboard"]{border-left:1px solid #494949;margin-left:4px;border-radius:0}
.team-notebook .team-popover.team-toolbar-popover,.team-notebook .team-popover.team-toolbar-popover:popover-open{box-sizing:border-box;position:fixed;margin:0;inset:auto!important;top:var(--team-menu-top)!important;left:var(--team-menu-left)!important;width:var(--team-menu-width)!important;max-width:none!important;max-height:var(--team-menu-height)!important;z-index:13000;overflow-y:auto;overscroll-behavior:contain}
.team-toolbar-popover .team-menu-format button[aria-pressed="true"]{background:#e4eef9;box-shadow:inset 0 0 0 1px #6092c5}

/* Indent the complete block, including its checkbox, fields and creator. */
.team-notebook .team-block{margin-inline-start:var(--team-indent,0px)}

/* Sorting must not make the browser scroll to follow a moved row. */
.team-notebook [data-team-blocks]{overflow-anchor:none}

/* Compact, wrapping todo lines. Checkbox and author stay beside the first line. */
.team-notebook .team-block>.team-text-row{align-items:start;align-self:start;width:100%;max-width:100%;min-width:0}
.team-notebook .team-block>.team-text-row>.team-editable{width:100%;max-width:100%;min-width:0;height:auto;min-height:32px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;box-sizing:border-box}
.team-notebook .team-block>.team-text-row:has(>input[data-team-field="checked"])>.team-editable{border:0!important;border-radius:2px;box-shadow:none!important;padding-left:2px!important}
.team-notebook .team-block>.team-text-row>input[type=checkbox]{align-self:start;margin-top:7px!important}
.team-notebook .team-block:not(.team-field-only)>.team-row-author,.team-notebook .team-block>.team-task-meta{align-self:start;margin-top:0}

/* Compact desktop actions, anchored beside the creator at the top of each row. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
 .team-notebook .team-block{column-gap:2px;grid-template-columns:28px minmax(0,1fr) auto}
 .team-notebook .team-block>.team-block-controls,.team-notebook.team-narrow-gutter .team-block>.team-block-controls{left:0;top:0!important;width:44px;display:flex;gap:0;align-self:start;align-items:flex-start;margin:0;padding:0}
 .team-notebook .team-block-controls>button,.team-notebook .team-block-controls>[data-team-menu]{width:22px;min-width:22px;height:28px;min-height:28px;padding:0;margin:0}
 .team-notebook .team-block>.team-row-author{align-self:start;margin-top:0!important}
}

/* Keep page controls in their own layout row, outside the activity panel. */
.team-notebook[data-team-notebook-root]>.team-page-toolbar{display:grid!important;grid-column:1/-1!important;grid-row:1!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;padding:10px!important;margin:0 0 4px!important;border:1px solid #e5dccd;border-radius:14px;background:#fffdf8;box-sizing:border-box}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>.team-page-tabs{grid-column:1/-1!important;grid-row:1!important;width:100%;margin:0!important;gap:6px;padding:2px 0 8px;scrollbar-width:thin;touch-action:pan-x}
.team-notebook .team-page-tabs button{flex:0 0 auto;max-width:220px;min-height:40px!important;padding:8px 14px!important;border:1px solid #e6dfd2;border-radius:9px!important;background:#f5f2ec;color:#645740;font-size:14px!important;white-space:nowrap;touch-action:pan-x}
.team-notebook .team-page-tabs button[aria-selected=true]{color:#fff;background:#ad8b4e;border-color:#ad8b4e;box-shadow:0 2px 5px #74582320}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-add-page]{grid-column:1!important;grid-row:2!important}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-rename-page]{grid-column:2!important;grid-row:2!important}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-delete-page]{grid-column:3!important;grid-row:2!important;color:#ac4545;border-color:#ebcece;background:#fff7f5}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>button{justify-self:stretch!important;width:100%;min-width:0;min-height:38px!important;margin:0!important;padding:7px 8px!important;font-size:13px!important;white-space:nowrap;border-radius:8px}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>button[hidden]{display:none!important}
.team-name-dialog label{display:grid;gap:8px;font-size:14px}.team-name-dialog input{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #cbb994;border-radius:8px;padding:10px;font-size:16px}.team-name-dialog [data-name-error]{color:#ae3434;font-size:13px;min-height:18px;margin:8px 0}.team-name-dialog h2{margin-bottom:16px}
@media(min-width:900px){.team-notebook[data-team-notebook-root]>.team-page-toolbar{grid-template-columns:minmax(0,1fr) repeat(3,110px)}.team-notebook[data-team-notebook-root]>.team-page-toolbar>.team-page-tabs{grid-column:1!important;grid-row:1!important;padding-bottom:0}.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-add-page]{grid-column:2!important;grid-row:1!important}.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-rename-page]{grid-column:3!important;grid-row:1!important}.team-notebook[data-team-notebook-root]>.team-page-toolbar>[data-team-delete-page]{grid-column:4!important;grid-row:1!important}}

/* Compact shared notebook layout, including daily work and vehicle requests. */
.team-notebook[data-team-notebook-root]{display:flex!important;flex-direction:column;align-items:stretch;gap:0}
.team-notebook[data-team-notebook-root]>.team-page-toolbar{display:flex!important;align-items:center;gap:6px!important;padding:4px!important;margin:0 0 6px!important;position:relative;overflow:visible}
.team-notebook[data-team-notebook-root]>.team-page-toolbar>.team-page-tabs{flex:1;min-width:0;width:auto;margin:0!important;padding:0!important;overflow-x:auto;touch-action:pan-y}
.team-notebook .team-page-tabs button{min-height:36px!important;padding:6px 10px!important;touch-action:pan-y!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.team-notebook .team-page-management{flex:none;position:relative}
.team-notebook .team-page-management>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#f4eee4;color:#785c2e;font-size:24px;cursor:pointer}
.team-notebook .team-page-management>summary::-webkit-details-marker{display:none}
.team-notebook .team-page-management-panel{position:absolute;right:0;top:42px;z-index:100;width:210px;padding:8px;border:1px solid #e6dfd2;border-radius:12px;background:var(--team-paper,#fff);box-shadow:0 6px 22px #0002;max-height:65vh;overflow:auto}
.team-notebook .team-page-management:not([open])>.team-page-management-panel{display:none}
.team-notebook .team-page-management-panel>button{display:block;width:100%;min-height:38px;text-align:left;padding:8px 10px;border:0;background:transparent;font-size:14px}
.team-notebook .team-page-management-panel [data-team-delete-page]{color:#ae3939}
.team-notebook .team-page-management-panel [hidden]{display:none!important}
.team-notebook .team-page-management-panel .team-activity-tools{display:flex!important;margin:4px 0}
.team-notebook .team-page-management-panel .team-activity{display:block;margin:4px 0;padding:8px;font-size:12px}
.team-notebook[data-team-notebook-root]>.team-page-header{margin:4px 0 2px!important;padding:0!important}
.team-notebook .team-page-title{font-size:22px!important;line-height:1.35!important;min-height:32px!important;padding:2px 0!important;margin:0!important}
.team-notebook .team-cover-actions{margin:2px 0!important;gap:6px;min-height:0}
.team-notebook .team-cover-actions button{min-height:26px!important;padding:3px 4px!important;font-size:11px!important}
.team-notebook[data-team-notebook-root]>.team-bulk-tools{margin:4px 0!important;gap:5px}
.team-notebook .team-bulk-tools button{min-height:28px!important;padding:4px 7px!important;font-size:12px!important}
.team-notebook .team-message:empty{display:none!important}
.team-notebook .team-move-selected{background:#f6eddc;outline:1px solid #cfb27b;outline-offset:-1px}
.team-notebook .team-move-selected,.team-notebook .team-move-selected .team-editable{touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none}
.team-notebook .team-is-dragging{opacity:.55;box-shadow:0 2px 8px #b28b4b55}
.team-notebook .team-page-tabs .team-drop-before{box-shadow:inset 3px 0 #b48738!important}
.team-notebook .team-page-tabs .team-drop-after{box-shadow:inset -3px 0 #b48738!important}

.team-notebook[data-team-notebook-root]>.team-page-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px}
.team-notebook[data-team-notebook-root]>.team-page-header .team-page-title{font-size:22px!important;width:100%;min-width:0}
.team-notebook .team-page-header .team-page-cover{grid-column:1/-1}
.team-notebook .team-page-header .team-cover-actions{flex-wrap:nowrap}

/* Keep selection on the cover action row, aligned to its far edge. */
.team-notebook .team-page-header .team-cover-actions{grid-column:1/-1;width:100%}
.team-notebook .team-cover-actions [data-team-multi]{margin-left:auto;white-space:nowrap}
.team-notebook .team-bulk-tools[hidden]{display:none!important}

/* Unframed page tabs. */
.team-notebook[data-team-notebook-root]>.team-page-toolbar{padding:0!important;border:0;border-radius:0;background:transparent;box-shadow:none}
