[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:50%;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:50%;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:0}

/* 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}

/* Keep the first line editable above compact photo thumbnails. */
.team-notebook .team-kind-image > .team-text-row { grid-row: 1; }
.team-notebook .team-kind-image > .team-note-image { grid-row: 2; width: 50%; max-width: 50%; height: auto; justify-self: start; }

/* Native tab scrolling; drag preview stays outside the scroll container. */
.team-notebook[data-team-notebook-root] .team-page-toolbar>.team-page-tabs,.team-notebook .team-page-tabs button{touch-action:auto!important;scroll-behavior:auto!important;scroll-snap-type:none!important;-webkit-overflow-scrolling:touch}
.team-tab-drag-preview{position:fixed;top:0;left:0;z-index:15000;pointer-events:none;background:#ad8b4e;color:white;border-radius:9px;padding:9px 12px;font:600 14px system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 7px 20px #0003;will-change:transform}

/* Full-width page cover and discoverable notebook actions. */
.team-notebook .team-page-header .team-page-cover,.team-notebook .team-page-header.team-inner-page .team-page-cover{width:100%!important;max-width:none!important;height:clamp(260px,38vw,480px)!important;max-height:none!important;object-fit:cover;object-position:center;border-radius:0;grid-column:1/-1}
.team-notebook .team-page-header .team-cover-actions{flex-wrap:wrap;gap:8px}
.team-notebook .team-cover-actions button{min-height:44px!important;padding:8px 12px!important;font-size:13px!important}
.team-notebook .team-photo-remove{display:block!important;min-width:108px!important;min-height:44px!important;height:auto!important;margin:8px 0 14px;padding:8px 14px;border:1px solid #d99b9b;border-radius:8px;background:#fff5f5;color:#a32626;font-weight:600;cursor:pointer}
.team-copy-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));border:1px solid #ddd;border-radius:12px;padding:20px}.team-copy-dialog textarea{box-sizing:border-box;width:100%;height:45vh}.team-copy-dialog button{min-height:44px;padding:8px 20px}

/* Keep all page actions on one accessible, horizontally scrollable row. */
.team-notebook .team-page-header .team-cover-actions{display:flex;flex-wrap:nowrap!important;overflow-x:auto;min-width:0;max-width:100%;gap:6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.team-notebook .team-page-header .team-cover-actions>button{flex:0 0 auto;white-space:nowrap;min-height:44px!important;padding:8px 6px!important;font-size:12px!important}
.team-notebook .team-page-header .team-cover-actions [data-team-multi]{margin-left:0!important}

/* Per-note albums use native horizontal scrolling, independent from tab dragging. */
.team-notebook .team-photo-album{grid-column:1/-1;min-width:0;max-width:100%;margin:8px 0}
.team-notebook .team-photo-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;touch-action:auto;-webkit-overflow-scrolling:touch;min-width:0;padding-bottom:6px}
.team-notebook .team-photo-strip>.team-photo-item{flex:0 0 min(50%,300px);width:min(50%,300px);height:180px!important;padding:0!important;border:0!important;border-radius:8px;overflow:hidden;scroll-snap-align:start;background:#f4f1eb;cursor:zoom-in}
.team-notebook .team-photo-strip .team-gallery-image{display:block;width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain;margin:0!important}
.team-album-caption{display:flex;align-items:center;gap:8px;font-size:12px;color:#777}.team-album-caption span{margin-right:auto}.team-notebook .team-album-caption button{min-height:36px;min-width:36px;font-size:22px}
.team-notebook .team-row-share-actions{display:flex;grid-column:1/-1;gap:8px;justify-content:flex-end}.team-notebook .team-row-share-actions button{min-height:40px!important;padding:6px 12px!important;font-size:12px}
.team-photo-viewer{box-sizing:border-box;width:min(100vw,1100px);max-width:100vw;max-height:95dvh;padding:12px;border:0;background:#121820;color:#fff}.team-photo-viewer::backdrop{background:#000b}.team-photo-viewer form{text-align:right}.team-photo-viewer button{min-height:44px;padding:8px 20px}.team-photo-viewer-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.team-photo-viewer-strip img{flex:0 0 100%;width:100%;max-width:100%;height:70dvh;object-fit:contain;scroll-snap-align:start}.team-photo-viewer p{text-align:center}
.team-share-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));border:1px solid #ddd;border-radius:12px;padding:20px}.team-share-dialog input{box-sizing:border-box;width:100%;padding:10px}.team-share-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;align-items:center}.team-share-actions a,.team-share-actions button{display:inline-block;min-height:44px;box-sizing:border-box;padding:10px 14px;border:1px solid #ddd;border-radius:8px;text-decoration:none;color:#194e30;background:#effaf2}.team-share-actions form{margin:0}

.team-notebook .team-photo-album{position:relative;padding-left:36px}
.team-notebook .team-photo-album>.team-photo-handle{position:absolute!important;display:flex!important;align-items:center;justify-content:center;left:0!important;top:4px!important;width:32px!important;min-width:32px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important;background:#f4eee4!important;color:#8e6c30!important;border:1px solid #d8c8aa!important;border-radius:8px;font-size:24px!important;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.team-notebook .team-photo-handle:active{cursor:grabbing;background:#ecdfc8!important}

.team-notebook .team-photo-item{position:relative}
.team-notebook .team-photo-item>[data-team-photo-open]{display:block;width:100%;height:100%!important;padding:0!important;border:0!important;background:transparent;cursor:zoom-in}
.team-notebook .team-photo-item>.team-photo-delete-one{position:absolute;top:6px;right:6px;display:grid;place-items:center;min-width:32px!important;width:32px!important;min-height:32px!important;height:32px!important;padding:0!important;border:1px solid #e3b9b9!important;border-radius:50%;background:#fff!important;color:#a32626!important;font-size:23px;line-height:1;box-shadow:0 2px 6px #0002;cursor:pointer;z-index:2}

/* NOTE page tabs follow the blue-gray workspace palette. */
body .team-notebook .team-page-tabs button{background:linear-gradient(#f5f6f7,#e9ebee);color:#384455;border-color:#dce2e8;box-shadow:none;}
body .team-notebook .team-page-tabs button:hover{background:#e4eaf0;color:#15334b;border-color:#c8d3df;}
body .team-notebook .team-page-tabs button[aria-selected="true"]{background:#15334b;color:#fff;border-color:#15334b;box-shadow:0 3px 7px #15334b22;}
body .team-notebook .team-page-management>summary{background:linear-gradient(#f5f6f7,#e9ebee);color:#384455;border:1px solid #dce2e8;}
body .team-notebook .team-page-management[open]>summary{background:#15334b;color:#fff;border-color:#15334b;}
body .team-notebook .team-page-tabs .team-drop-before{box-shadow:inset 3px 0 #15334b!important;}
body .team-notebook .team-page-tabs .team-drop-after{box-shadow:inset -3px 0 #15334b!important;}

/* Keep the dispatch overflow menu directly accessible. */
body .team-notebook .team-inline-subpage>.team-subpage-actions{visibility:visible;pointer-events:auto;}

/* Responsive intake creation dialog, shared by desktop and mobile. */
html body dialog.team-intake-dialog{box-sizing:border-box;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid #dce3e9;border-radius:20px;background:#fff;color:#15334b;box-shadow:0 24px 80px #102b4540;font-family:inherit;overflow:auto;}
.team-intake-dialog::backdrop{background:#10263880;backdrop-filter:blur(3px)}
.team-intake-dialog *{box-sizing:border-box}.team-intake-dialog form{margin:0}.team-intake-dialog header{display:flex;align-items:center;gap:12px;margin-bottom:24px}.team-intake-dialog h2{margin:0;font-size:22px;line-height:1.4;font-weight:700}.team-intake-dialog header p{margin:5px 0 0;color:#6b7c8b;font-size:13px;line-height:1.5}.team-intake-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#edf3f7;color:#15334b;font-size:28px}.team-intake-dialog button{font:inherit;cursor:pointer}.team-intake-dialog .team-intake-close{align-self:flex-start;margin-left:auto;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#788795;font-size:26px;line-height:1}.team-intake-dialog label{display:block;margin-bottom:8px;font-size:14px;font-weight:700}.team-intake-dialog input{display:block;width:100%;height:50px;padding:12px 14px;border:1px solid #cdd7e0;border-radius:10px;background:#f9fbfc;color:#15334b;font:inherit;font-size:16px;outline:none}html body dialog.team-intake-dialog input:focus{border-color:#285675!important;box-shadow:0 0 0 3px #28567518!important;outline:none!important;background:#fff!important}.team-intake-dialog input[aria-invalid=true]{border-color:#b34242}.team-intake-hint{margin:8px 0 0;font-size:12px;color:#718090;line-height:1.5}.team-intake-dialog [role=alert]{margin:5px 0 0;min-height:18px;color:#b34242;font-size:12px}.team-intake-preview{margin:12px 0 24px;padding:14px;border-radius:12px;background:#f3f6f8}.team-intake-preview p{margin:0 0 10px;font-size:12px;color:#718090}.team-intake-preview>div{display:flex;flex-wrap:wrap;gap:8px}.team-intake-preview span{padding:5px 8px;border:1px solid #e0e7ed;border-radius:6px;background:white;font-size:12px;white-space:nowrap;color:#43596c}.team-intake-dialog footer{display:flex;justify-content:flex-end;gap:10px}.team-intake-dialog footer button{min-height:46px;padding:10px 20px;border:1px solid #d7e0e7;border-radius:10px;background:#fff;color:#526778;font-weight:600}.team-intake-dialog footer .team-intake-submit{background:#15334b;color:#fff;border-color:#15334b}.team-intake-dialog button:focus-visible{outline:2px solid #3d7196;outline-offset:3px}
@media(max-width:600px){html body dialog.team-intake-dialog{padding:20px;border-radius:18px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.team-intake-dialog header{gap:10px;margin-bottom:20px}.team-intake-dialog h2{font-size:20px}.team-intake-dialog header p{font-size:12px}.team-intake-icon{width:36px;height:36px;flex-basis:36px}.team-intake-dialog footer button{flex:1;min-height:48px;padding:10px 12px}.team-intake-preview{margin-bottom:20px}}

.team-intake-dialog .team-dispatch-photo-label{margin-top:20px}.team-intake-dialog input[type=file]{height:auto;min-height:48px;font-size:14px;padding:10px}.team-dispatch-photo-preview{display:block;width:100%;height:160px;object-fit:contain;border-radius:10px;margin:12px 0;background:#f3f6f8}.team-dispatch-photo-preview[hidden]{display:none}
html body .team-notebook .team-inline-page-icon img{display:block;width:20px!important;height:20px!important;max-width:none;margin-right:-5px;object-fit:cover;border-radius:3px;}

/* Larger dispatch list labels and compact vehicle thumbnails. */
html body .team-notebook .team-inline-subpage>[data-team-open-subpage]{font-size:20px!important;line-height:1.4;font-weight:500;}
html body .team-notebook .team-inline-page-icon{width:32px;flex:0 0 32px;}
html body .team-notebook .team-inline-page-icon img{width:32px!important;height:28px!important;margin:0!important;object-fit:cover;border-radius:4px;}
@media(hover:hover) and (pointer:fine) and (min-width:601px){html body .team-notebook .team-inline-page-icon{left:-40px;}}

/* Fit photo frames to their images instead of reserving empty fixed height. */
html body .team-notebook .team-photo-strip{align-items:flex-start;padding-bottom:0;}
html body .team-notebook .team-photo-strip>.team-photo-item{flex:0 0 auto;width:auto;max-width:min(50%,300px);height:auto!important;min-height:0!important;}
html body .team-notebook .team-photo-item>[data-team-photo-open]{height:auto!important;min-height:0!important;line-height:0;}
html body .team-notebook .team-photo-strip .team-gallery-image{width:auto!important;height:auto!important;max-width:100%!important;max-height:180px;object-fit:contain;vertical-align:top;}
html body .team-intake-dialog .team-dispatch-photo-preview{width:auto;max-width:100%;height:auto;max-height:220px;margin:12px auto 0;object-fit:contain;}

/* Tighten spacing under notebook photos while retaining all controls. */
html body .team-notebook .team-photo-album{margin-bottom:0;}
html body .team-notebook .team-album-caption{margin:0;gap:4px;min-height:28px;}
html body .team-notebook .team-album-caption button{height:28px!important;min-height:28px!important;margin:0;padding:0 6px!important;line-height:1!important;}
html body .team-notebook .team-row-share-actions{margin:0;padding:0;min-height:0;}
html body .team-notebook .team-row-share-actions button{height:28px!important;min-height:28px!important;margin:0;padding:2px 8px!important;line-height:1.4!important;}
@media(pointer:coarse),(max-width:600px){html body .team-notebook .team-album-caption button,html body .team-notebook .team-row-share-actions button{height:36px!important;min-height:36px!important;}}

/* Larger, aligned vehicle photos in the dispatch page list. */
html body .team-notebook .team-inline-subpage{align-items:center;gap:10px;min-height:56px;}
html body .team-notebook .team-inline-subpage>.team-inline-page-icon{position:static;left:auto;width:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:center;}
html body .team-notebook .team-inline-page-icon img{width:64px!important;height:48px!important;object-fit:cover;border-radius:6px;}

/* Small in-row newline control, with its own space beside the editor. */
html body .team-notebook .team-text-row>.team-row-break{flex:0 0 26px;align-self:center;width:26px;min-width:26px;height:28px;min-height:28px;padding:0;margin:0 0 0 2px;border:0;border-radius:4px;background:transparent;color:#8793a0;font-size:19px;line-height:28px;cursor:pointer;}
html body .team-notebook .team-row-break:hover,html body .team-notebook .team-row-break:focus-visible{background:#e9eef3;color:#294b6b;}

/* Keep the newline button in the same grid row as the editor. */
html body .team-notebook .team-block>.team-text-row:has(>.team-row-break){grid-template-columns:minmax(0,1fr) 26px;column-gap:4px;}
html body .team-notebook .team-block>.team-text-row:has(>.team-row-break)>.team-editable{grid-column:1;grid-row:1;}
html body .team-notebook .team-block>.team-text-row:has(>.team-row-break):has(>input[type=checkbox]){grid-template-columns:auto minmax(0,1fr) 26px;column-gap:6px;}
html body .team-notebook .team-block>.team-text-row:has(>.team-row-break):has(>input[type=checkbox])>.team-editable{grid-column:2;}
html body .team-notebook .team-block>.team-text-row>.team-row-break{grid-column:-2/-1;grid-row:1;align-self:start;margin-top:2px;}

/* Separate the row author from the checkbox and align it slightly lower. */
html body .team-notebook .team-block{column-gap:8px;}
html body .team-notebook .team-block:not(.team-field-only)>.team-row-author{margin-top:4px!important;}
@media(hover:hover) and (pointer:fine) and (min-width:601px){html body .team-notebook .team-block{grid-template-columns:32px minmax(0,1fr) auto;}}

/* Reveal newline only on the row currently being operated; keep its space stable. */
html body .team-notebook .team-text-row>.team-row-break{visibility:hidden;pointer-events:none;}
html body .team-notebook .team-block:focus-within>.team-text-row>.team-row-break,
html body .team-notebook .team-block.team-touch-active>.team-text-row>.team-row-break{visibility:visible;pointer-events:auto;}
@media(hover:hover) and (pointer:fine){html body .team-notebook .team-block:hover>.team-text-row>.team-row-break{visibility:visible;pointer-events:auto;}}

/* Reserve a real box before lazy images decode, including in iOS WebViews. */
html body .team-notebook .team-photo-strip>.team-photo-item{flex:0 0 min(50%,192px);width:min(50%,192px);max-width:192px;aspect-ratio:4 / 3;min-height:72px!important;}
html body .team-notebook .team-photo-item>[data-team-photo-open]{width:100%!important;height:100%!important;}
html body .team-notebook .team-photo-strip .team-gallery-image{width:100%!important;height:100%!important;max-height:none;object-fit:contain;}

/* Leave room between mobile page tabs and their horizontal scrollbar. */
@media(max-width:899px){html body .team-notebook .team-page-tabs{padding-top:2px!important;padding-bottom:12px!important;align-items:flex-start;}html body .team-notebook .team-page-tabs::-webkit-scrollbar{height:6px;}html body .team-notebook .team-page-tabs::-webkit-scrollbar-thumb{background:#b5bec6;border-radius:6px;}html body .team-notebook .team-page-tabs::-webkit-scrollbar-track{background:transparent;}}

.team-form-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid #ded8cc;border-radius:18px;padding:20px;background:#fffdf8;color:#243747;font:14px/1.5 system-ui;}
.team-form-dialog::backdrop{background:#15253666}.team-form-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.team-form-dialog h2{margin:0 0 12px;font-size:20px}.team-form-dialog button{min-height:36px;padding:6px 12px;border:1px solid #d6dfe5;border-radius:8px;background:#f4f7fa;color:#213b50;cursor:pointer;font:inherit}.team-form-dialog button:disabled{opacity:.5;cursor:default}.team-form-dialog input,.team-form-dialog select{box-sizing:border-box;min-width:0;width:100%;padding:8px;border:1px solid #ccd6df;border-radius:8px;background:white;color:#203344;font:inherit}.team-form-dialog label{display:grid;gap:6px;font-weight:600}.team-form-dialog small{display:block;color:#657580}.team-form-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e6e9ed}.team-form-actions,.team-form-dialog footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.team-form-dialog footer{justify-content:flex-end}.team-form-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:6px;align-items:center;margin:10px 0}.team-form-row-actions{display:flex;gap:4px}.team-form-row-actions button{padding:4px 8px}.team-form-dialog [data-status]{color:#995e1d;white-space:pre-wrap}.team-form-dialog p{margin:10px 0;}@media(max-width:600px){.team-form-row{grid-template-columns:100px minmax(0,1fr)}.team-form-row-actions{grid-column:1/-1;justify-content:flex-end}.team-form-list article{align-items:flex-start;flex-direction:column}.team-form-dialog{padding:16px}.team-form-dialog input,.team-form-dialog select{font-size:16px}}

/* Visible parent-page navigation with a comfortable touch target. */
html body .team-notebook .team-page-breadcrumb{margin:12px 0 16px;}
html body .team-notebook .team-page-breadcrumb>[data-team-open-subpage]{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;padding:10px 18px!important;border:1px solid #b8cbdc!important;border-radius:10px!important;background:#eaf2f9!important;color:#193b55!important;font-size:15px!important;font-weight:700!important;line-height:1.4!important;text-decoration:none!important;box-shadow:0 2px 4px rgba(25,59,85,.08);cursor:pointer;}
html body .team-notebook .team-page-breadcrumb>[data-team-open-subpage]:hover{background:#dcebf6!important;}
html body .team-notebook .team-page-breadcrumb>[data-team-open-subpage]:focus-visible{outline:3px solid #4b8abb;outline-offset:3px;}
html body .team-notebook .team-page-breadcrumb>[data-team-open-subpage]:active{background:#cedeec!important;}

.team-daily-dialog{width:min(460px,calc(100vw - 24px))!important;max-height:90vh;overflow:auto}.team-daily-dialog form>label{display:grid;gap:6px;margin:12px 0}.team-daily-dialog input:not([type=checkbox]),.team-daily-dialog select{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #cfdae5;border-radius:8px;font:inherit}.team-daily-dialog fieldset{max-height:32vh;overflow:auto;border:1px solid #dbe3ec;border-radius:10px}.team-daily-dialog .team-daily-person{display:flex;align-items:center;gap:10px;padding:8px}.team-daily-dialog .team-daily-person input{width:18px;height:18px;flex:0 0 18px}.team-daily-date-edit{display:flex;gap:8px}.team-daily-date-edit button{white-space:nowrap}.team-daily-dialog footer{display:flex;gap:8px}.team-daily-dialog footer button{flex:1;min-width:0;padding:10px 6px;font-size:14px;white-space:nowrap}.team-daily-dialog [hidden]{display:none!important}
.team-daily-page-info{display:flex;gap:12px;align-items:center;color:#657586;font-size:14px;flex-wrap:wrap;margin:8px 0 16px}.team-daily-page-info input{font:inherit;max-width:160px}.team-daily-summary{display:block;border-left:3px solid #193b4c;background:#edf2f5;padding:10px 12px;margin:14px 0 20px}.team-daily-summary input{width:100%;background:transparent;border:0;font:inherit;color:#263b4b;min-width:0}.team-daily-row-meta{grid-column:2!important;justify-self:start!important;width:auto!important;text-align:left!important;font-size:12px!important;color:#71808a!important;background:none!important;border:0!important;padding:2px 0 8px!important;white-space:normal!important;line-height:1.5!important}
html body .team-notebook .team-block.team-daily-assigned{grid-template-columns:66px minmax(0,1fr) auto!important}html body .team-notebook .team-daily-assigned>.team-row-author{display:flex!important;gap:2px!important;width:64px!important;max-width:none!important;align-items:center!important;overflow:visible!important}html body .team-notebook .team-daily-assigned>.team-row-author .team-avatar{flex:0 0 26px;width:26px;height:26px}.team-daily-assignee{display:flex;position:relative;border:2px solid #577e88;border-radius:50%}.team-daily-assignee small{position:absolute;right:-9px;top:-8px;border-radius:8px;padding:0 3px;background:#fff;font-size:10px;color:#193b4c;line-height:14px}
html body .team-notebook.team-daily-page .team-column-head,html body .team-notebook.team-daily-page [data-team-column-picker],html body .team-notebook.team-daily-page [data-team-add-column]{display:none!important}.team-daily-page [data-team-column-append]{margin-top:10px}

.team-daily-page-info,.team-daily-summary{grid-column:1/-1}
html body .team-notebook.team-daily-page [data-team-column-append]:not([hidden]){display:inline-flex!important;padding:10px 0!important}html body .team-notebook.team-daily-page>.team-add{display:none!important}

/* Keep the subpage menu and actions on one baseline. */
html body .team-notebook .team-inline-subpage .team-subpage-actions{display:block;width:max-content;white-space:nowrap;line-height:1;margin-left:8px;}
html body .team-notebook .team-inline-subpage .team-subpage-actions>summary{float:left;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:34px;min-width:34px;height:36px;min-height:36px;padding:0;margin:0 4px 0 0;border:1px solid #d7e0e9;border-radius:6px;background:#f7f9fb;line-height:1;font-family:inherit;font-size:20px;font-weight:500;text-decoration:none;}
html body .team-notebook .team-inline-subpage .team-subpage-actions>button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-width:0;height:36px;min-height:36px;padding:0 9px;margin:0 0 0 4px;border:1px solid #d7e0e9;border-radius:6px;background:#f7f9fb;color:#38556d;font-family:inherit;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;vertical-align:top;}
html body .team-notebook .team-inline-subpage .team-subpage-actions>.team-subpage-delete{border-color:#e8c8c4;background:#fff5f3;color:#a6362d;}
html body .team-notebook .team-inline-subpage .team-subpage-actions:not([open])>button{display:none!important;}
@media(pointer:coarse),(max-width:600px){html body .team-notebook .team-inline-subpage .team-subpage-actions>summary,html body .team-notebook .team-inline-subpage .team-subpage-actions>button{height:44px;min-height:44px;}html body .team-notebook .team-inline-subpage .team-subpage-actions>summary{width:38px;min-width:38px;}}

html body .team-assignee-picker{width:min(360px,calc(100vw - 32px))!important;padding:16px!important;border:1px solid #dce3e8!important;border-radius:13px!important;background:#fff!important;color:#193b50;font-size:13px;}
.team-assignee-picker::backdrop{background:#263e4b66}.team-assignee-picker header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.team-assignee-picker header h2{font-size:15px;margin:0;font-weight:500}.team-assignee-picker header button{width:36px;height:34px;min-height:34px;padding:0;border:1px solid #c7d1db;border-radius:7px;background:white;font:inherit;font-size:18px}.team-assignee-picker .team-assignee-preview{background:#f1f4f7;border-radius:6px;padding:10px;font-size:12px;line-height:1.6;max-height:100px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.team-assignee-picker form>label{font-size:12px;margin:12px 0;gap:6px}.team-assignee-picker .team-daily-date-edit{align-items:center;gap:8px}.team-assignee-picker .team-daily-date-edit button{padding:5px 7px;min-height:30px;border:1px solid #dce3eb;background:white;border-radius:5px;font:inherit;font-size:12px}.team-assignee-picker [name=time]{width:135px!important;padding:7px!important;font-size:15px!important}.team-assignee-picker [name=date]{font-size:14px;padding:6px!important;max-width:160px}.team-assignee-picker fieldset{border:0!important;padding:0;margin:12px 0 0;max-height:36vh!important}.team-assignee-picker legend{padding:0 0 6px;color:#778899;font-size:12px}.team-assignee-picker .team-assignee-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.team-assignee-picker .team-daily-person{border-bottom:1px solid #dce4eb;padding:7px 2px!important;gap:7px!important;margin:0!important;min-height:37px;min-width:0;font-size:13px;font-weight:400}.team-assignee-picker .team-daily-person input{width:15px!important;height:15px!important;flex:0 0 15px!important;margin:0}.team-assignee-picker .team-daily-person .team-avatar{width:20px;height:20px;flex:0 0 20px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#e4edf3;font-size:10px}.team-assignee-picker .team-avatar img{width:100%;height:100%;object-fit:cover}.team-assignee-picker .team-daily-person>span:last-child{min-width:0;overflow-wrap:anywhere}.team-assignee-picker .team-assignee-count{font-size:12px;color:#7c8a95;margin:5px 0 12px}.team-assignee-picker [data-error]:empty{display:none}.team-assignee-picker footer{justify-content:flex-end!important;margin-top:14px}.team-assignee-picker footer button{flex:0 0 auto!important;padding:9px 11px!important;font-size:12px!important;border:1px solid #dce3eb;border-radius:6px;background:white;color:#26485e;}.team-assignee-picker footer button[type=submit]{background:#193f53;color:white;border-color:#193f53}
html body .team-notebook .team-block.team-daily-assigned{grid-template-columns:42px minmax(0,1fr) auto!important}html body .team-notebook .team-daily-assigned>.team-row-author{width:40px!important;gap:0!important}html body .team-notebook .team-daily-assigned>.team-row-author .team-avatar{width:22px;height:22px;flex:0 0 22px}.team-daily-assigned .team-daily-assignee{margin-left:-10px;border:1px solid white;box-shadow:0 0 0 1px #c3ced8}.team-daily-assigned .team-daily-assignee small{top:5px;right:-12px;background:transparent;color:#667887;padding:0;font-size:10px}
html body .team-assignee-picker [hidden]{display:none!important}html body .team-assignee-picker header button{width:36px!important;min-width:36px!important;height:34px!important;min-height:34px!important;padding:0!important}html body .team-assignee-picker [data-date-label]{white-space:nowrap;flex:none}html body .team-assignee-picker .team-daily-date-edit button{min-width:36px!important;flex:none;padding:5px 7px!important}html body .team-assignee-picker .team-daily-person{height:37px!important;min-height:37px!important;box-sizing:border-box;font-weight:400!important}html body .team-assignee-picker .team-assignee-members{align-content:start;grid-auto-rows:minmax(37px,auto)}html body .team-assignee-picker .team-daily-person>span{font-weight:400!important}

.team-trash-dialog{width:min(560px,calc(100vw - 28px));max-height:88vh;overflow:auto}.team-trash-dialog>p{font-size:13px;line-height:1.6}.team-trash-dialog [data-trash-list]{max-height:55vh;overflow:auto}.team-trash-group{border-bottom:1px solid #dde5ec;padding:9px 0;min-width:0}.team-trash-group>summary{cursor:pointer;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:30px;line-height:30px}.team-trash-group>small{display:block;color:#718195;font-size:11px;line-height:1.5}.team-trash-item{display:flex;gap:8px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #edf0f4}.team-trash-item>span{min-width:0;flex:1;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}html body .team-trash-group button{font-family:inherit;font-size:12px;min-width:0;min-height:30px;padding:5px 7px;margin:5px 0;border:1px solid #ccdbe5;border-radius:5px;background:#f4f8fb;color:#21465f;white-space:nowrap;flex:none}.team-trash-dialog footer{position:sticky;bottom:0;background:#fffdf8;padding-top:12px}.team-trash-dialog h2{margin-bottom:10px}.team-trash-dialog footer button{font-size:13px}.team-activity .team-trash-item{flex-wrap:wrap}

.team-notebook .team-page-management-panel{width:340px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:12px}.team-notebook .team-page-management-panel .team-activity{padding:10px;margin:8px 0}.team-notebook .team-page-management-panel .team-activity>summary{display:flex;align-items:center;gap:6px;list-style:none;font-size:13px}.team-notebook .team-page-management-panel .team-activity>[data-team-activity-list]{padding:0 6px;max-height:38vh}.team-notebook .team-page-management-panel .team-activity article{overflow-wrap:anywhere}

.team-notebook .team-page-management-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:4px;align-content:start}.team-notebook .team-page-management-panel>:not([data-team-add-page]):not([data-team-rename-page]):not([data-team-delete-page]){grid-column:1/-1}.team-notebook .team-page-management-panel>button:is([data-team-add-page],[data-team-rename-page],[data-team-delete-page]){width:100%;min-width:0;padding:8px 3px;text-align:center;white-space:nowrap;font-size:13px;line-height:1.4}

.team-assignee-picker .team-assignee-group-filter{margin:8px 0}.team-assignee-picker [data-assignee-group]{width:100%;min-height:38px;padding:7px 9px;border:1px solid #d6e1e9;border-radius:7px;background:#fff;color:#18394b;font:inherit}.team-assignee-picker [data-group-message]{font-size:12px;color:#718294;margin:4px 0}.team-assignee-picker .team-daily-person[hidden]{display:none!important}

/* Compact deleted item rows: description left, restore action right. */
html body .team-trash-item{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid #dfe7ef}
.team-trash-item .team-trash-copy{flex:1;min-width:0}
.team-trash-title{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:#36536a}
.team-trash-meta{margin-top:3px;font-size:11px;line-height:1.5;color:#718195;overflow-wrap:anywhere}
.team-trash-copy [data-trash-expires]{display:block;margin-top:3px;color:#a76721;font-size:11px;line-height:1.5}
html body .team-trash-item button[data-trash-item]{flex:none;align-self:center;margin:0;padding:7px 10px;min-height:34px;border:1px solid #dce5ed;border-radius:7px;background:#fff;color:#21465f;font:12px/1.4 inherit;white-space:nowrap}

/* Multi-selection color must also cover the active row's inner background. */
.team-notebook .team-block.team-move-selected,
.team-notebook .team-block.team-move-selected>.team-text-row,
.team-notebook .team-block.team-move-selected .team-editable{background:#f6eddc!important}
.team-notebook .team-block.team-move-selected{outline:1px solid #cfb27b;outline-offset:-1px}
.team-dark.team-notebook .team-block.team-move-selected,
.team-dark.team-notebook .team-block.team-move-selected>.team-text-row,
.team-dark.team-notebook .team-block.team-move-selected .team-editable{background:#514631!important}

/* Keep the creator in front and the assignee/count within the avatar column. */
html body .team-notebook .team-daily-assigned>.team-row-author{position:relative!important;width:32px!important;height:34px!important;min-height:34px!important;display:block!important;padding:0!important;isolation:isolate}
html body .team-notebook .team-daily-assigned>.team-row-author>.team-avatar{position:absolute;left:0;top:0;z-index:3;margin:0}
html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{position:absolute;left:5px;top:3px;z-index:1;margin:0;border:0;box-shadow:0 0 0 1px #c3ced8;width:22px;height:22px}
html body .team-notebook .team-daily-assigned>.team-row-author>.team-assignee-total{position:absolute;left:8px;top:23px;z-index:4;font:10px/11px system-ui,sans-serif;color:#667887;white-space:nowrap;pointer-events:none}

html body .team-notebook .team-block.team-daily-assigned>.team-row-author{top:0!important;left:0!important;right:auto!important;bottom:auto!important;transform:none!important;align-self:start!important}

html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{top:0!important}
html body .team-notebook .team-daily-assigned>.team-row-author>.team-assignee-total{left:7px;top:21px;min-width:17px;height:17px;padding:0 2px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e4eaf0;color:#000;font:10px/1 system-ui,sans-serif}
html body .team-notebook .team-daily-assigned>.team-row-author{height:38px!important;min-height:38px!important}

/* A shared avatar column keeps checkboxes stationary when assignees change. */
html body .team-notebook .team-block,
html body .team-notebook .team-block.team-daily-assigned{grid-template-columns:32px minmax(0,1fr) auto!important}
html body .team-notebook .team-block>.team-text-row>input[type=checkbox]{grid-row:1;align-self:start;justify-self:start;margin-top:7px!important}

html body .team-notebook .team-daily-assigned>.team-row-author>.team-assignee-total{left:0;top:27px}
html body .team-notebook .team-daily-assigned>.team-row-author{height:44px!important;min-height:44px!important}

.team-assignee-tooltip{position:fixed;z-index:2147483000;box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);padding:14px 16px;background:#fff;color:#244158;border:1px solid #dbe5ee;border-radius:12px;box-shadow:0 10px 28px #18394b26;pointer-events:none;font:13px/1.5 system-ui,sans-serif}
.team-assignee-tooltip:before{content:"";position:absolute;left:var(--tip-x,24px);top:-6px;width:10px;height:10px;transform:rotate(45deg);background:#fff;border-left:1px solid #dbe5ee;border-top:1px solid #dbe5ee}
.team-assignee-tooltip[data-above]:before{top:auto;bottom:-6px;transform:rotate(225deg)}
.team-assignee-tooltip strong{display:block;font-size:15px;margin-bottom:9px}
.team-assignee-tooltip .team-tooltip-names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:55vh;overflow:hidden}
.team-assignee-tooltip .team-tooltip-names span{padding:4px 6px;border-radius:6px;background:#f1f5f8;overflow-wrap:anywhere}

/* Assigned and unassigned authors share the same avatar size at each breakpoint. */
html body .team-notebook .team-block{--team-row-avatar-size:30px}
html body .team-notebook .team-block>.team-row-author .team-avatar{width:var(--team-row-avatar-size)!important;height:var(--team-row-avatar-size)!important;flex-basis:var(--team-row-avatar-size)!important;box-sizing:border-box}
html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{width:var(--team-row-avatar-size);height:var(--team-row-avatar-size);left:2px}
html body .team-notebook .team-daily-assigned>.team-row-author>.team-assignee-total{top:calc(var(--team-row-avatar-size) + 5px)}
html body .team-notebook .team-daily-assigned>.team-row-author{height:calc(var(--team-row-avatar-size) + 22px)!important;min-height:calc(var(--team-row-avatar-size) + 22px)!important}
@media(max-width:600px){html body .team-notebook .team-block{--team-row-avatar-size:26px}}

.team-notebook .team-cover-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.team-cover-actions .team-action-icon{width:20px;height:20px;flex:none;fill:none;stroke:#19334e;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.team-cover-actions .team-action-label{font:inherit;color:inherit;white-space:nowrap}
@media(max-width:600px){
html body .team-notebook .team-page-header .team-cover-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;flex-wrap:wrap!important}
html body .team-notebook .team-cover-actions>button{flex-direction:column;gap:7px;min-width:0;min-height:86px!important;padding:10px 3px!important;margin:0!important;border:1px solid #d9dfe7;border-radius:12px;background:linear-gradient(#fff,#f5f7fa);box-shadow:0 2px 6px #18394b0d;color:#19334e;font-size:12px!important}
.team-cover-actions .team-action-icon{width:32px;height:32px}
.team-cover-actions .team-action-label{white-space:normal;text-align:center;line-height:1.3}
}

@media(max-width:600px){
html body .team-notebook .team-page-header .team-cover-actions{gap:4px}
html body .team-notebook .team-cover-actions>button{height:43px!important;min-height:43px!important;box-sizing:border-box;line-height:1.2;padding:4px 2px!important;gap:3px;border-radius:7px;font-size:10px!important}
.team-cover-actions .team-action-icon{width:16px;height:16px}
}

@media(max-width:600px){html body .team-notebook .team-page-header .team-cover-actions{width:100%;max-width:264px;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:start}}

@media(max-width:600px){
html body .team-notebook .team-page-header .team-cover-actions{width:100%!important;max-width:none!important;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:4px}
}
html body .team-notebook .team-bulk-tools{align-items:center;gap:6px;padding:8px 0;margin:4px 0;flex-wrap:wrap}
html body .team-notebook .team-bulk-tools>button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border:1px solid #d7e2eb;border-radius:8px;background:#f5f8fb;color:#24475f;font:12px/1.4 system-ui,sans-serif;box-shadow:0 1px 3px #18394b08;cursor:pointer}
html body .team-notebook .team-bulk-tools>button:hover{background:#eaf1f7;border-color:#aac1d3}
html body .team-notebook .team-bulk-tools>[data-team-bulk-delete]{color:#a84848;background:#fff3f2;border-color:#efd4d0}
html body .team-notebook .team-bulk-tools>button:focus-visible{outline:2px solid #527e96;outline-offset:2px}
html body .team-notebook .team-bulk-tools>button:disabled{opacity:.5;cursor:default}
html body .team-notebook .team-bulk-tools>[data-team-selection-count]{font-size:11px;color:#748598}
html body .team-notebook .team-bulk-tools[hidden],html body .team-notebook .team-bulk-tools>[hidden]{display:none!important}

html body .team-trash-group:not([open])>:not(summary){display:none!important}html body .team-trash-group>summary{white-space:normal;overflow-wrap:anywhere;line-height:1.6;padding:5px 0}

.team-trash-scopes{display:flex;gap:6px;margin:12px 0}.team-trash-scopes button{flex:1;padding:8px 12px;border:1px solid #d7e2eb;border-radius:8px;background:#fff;color:#24475f;font:13px/1.4 system-ui}.team-trash-scopes button[aria-pressed=true]{background:#eaf2f8;border-color:#7e9cb4;font-weight:600}

@media(hover:hover) and (pointer:fine) and (min-width:601px){
html body .team-notebook[data-team-notebook-root]>.team-page-header,
html body .team-notebook[data-team-notebook-root]>.team-bulk-tools{margin-left:var(--team-home-gutter,82px)!important}
html body .team-notebook .team-block{margin-inline-start:calc(0px - var(--team-home-gutter,82px))!important}
html body .team-notebook>.team-page-header .team-page-title{padding-left:0!important}
html body .team-notebook>.team-page-header .team-cover-actions{padding-left:0}
html body .team-notebook>.team-page-header .team-cover-actions>button:first-child{padding-left:0!important}
}

/* Compact desktop NOTE navigation; preserve touch/mobile layout. */
@media(hover:hover) and (pointer:fine) and (min-width:900px){
html body .page[data-panel="fix-progress"] [data-team-workspace-nav]>.note-workspace-tabs{width:min(854px,calc(100% - 88px))!important;max-width:854px!important;margin-left:auto!important;margin-right:auto!important;}
html body .team-notebook[data-team-notebook-root] .team-page-toolbar{margin-left:var(--team-home-gutter,44px)!important;}
}

@media(hover:hover) and (pointer:fine) and (min-width:900px){
html body .page[data-panel="fix-progress"] [data-team-workspace-nav]{padding-left:0!important;padding-right:0!important;}
html body .page[data-panel="fix-progress"] [data-team-workspace-nav]>.note-workspace-tabs{box-sizing:border-box!important;width:var(--note-cover-width,calc(100% - 44px))!important;max-width:none!important;margin-left:var(--note-cover-left,44px)!important;margin-right:0!important;}
}

/* Scroll the complete subpage list together to reach its inline actions. */
html body .team-notebook [data-team-column-blocks]:has(>.team-inline-subpage){min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b5bec6 transparent;padding-bottom:5px;}
html body .team-notebook .team-inline-subpage{min-width:0;max-width:100%;overflow:visible;}
html body .team-notebook .team-inline-subpage>[data-team-open-subpage]{flex:0 0 auto;max-width:calc(100% - 100px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body .team-notebook [data-team-column-blocks]::-webkit-scrollbar{height:5px;}
html body .team-notebook [data-team-column-blocks]::-webkit-scrollbar-thumb{background:#b5bec6;border-radius:5px;}

/* Keep assignment date and optional time together on phones. */
html body .team-assignee-picker .team-assignee-schedule{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;margin:12px 0;align-items:start;}
html body .team-assignee-picker .team-assignee-schedule>label{display:grid;gap:6px;margin:0;min-width:0;font-size:12px;}
html body .team-assignee-picker .team-assignee-schedule .team-daily-date-edit{min-height:38px;min-width:0;gap:5px;flex-wrap:wrap;}
html body .team-assignee-picker .team-assignee-schedule [name=time]{width:100%!important;min-width:0!important;max-width:100%!important;min-height:38px;padding:6px!important;box-sizing:border-box;}
html body .team-assignee-picker .team-assignee-schedule [name=date]{width:100%;min-width:0;max-width:100%;flex:1 1 105px;}

/* Keep the author fixed; center the checkbox and text as one group. */
html body .team-notebook .team-block>.team-text-row.team-text-centered{display:flex;position:relative;width:fit-content;max-width:calc(100% - 32px);min-width:0;justify-self:center;margin-inline:auto;gap:6px;}
html body .team-notebook .team-block>.team-text-row.team-text-centered>.team-editable{flex:0 1 auto;width:auto;min-width:2px;max-width:100%;text-align:center;}
html body .team-notebook .team-block>.team-text-row.team-text-centered>input[type=checkbox]{flex-shrink:0;}
html body .team-notebook .team-block>.team-text-row.team-text-centered>.team-row-break{position:absolute;right:-30px;top:0;margin:2px 0 0;}

.team-mobile-editor-tools button[data-team-tool="center"][aria-pressed="true"]{background:#3f566b!important;color:#fff!important;border-radius:5px;}

/* Indent the text/checkbox group, keeping author and row controls fixed. */
html body .team-notebook .team-block>.team-text-row:not(.team-text-centered){box-sizing:border-box;margin-inline-start:var(--team-indent,0px);width:calc(100% - var(--team-indent,0px));max-width:calc(100% - var(--team-indent,0px));}

/* Keep the six page actions on one row. */
html body .team-notebook .team-page-header .team-cover-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px;width:100%!important;max-width:none!important}
.team-cover-options{display:grid;gap:10px;margin:16px 0}.team-cover-options button{min-height:44px}

.team-title-style-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.team-title-style-fields label{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.team-title-style-fields select{max-width:100%;min-height:36px}.team-title-style-fields input[type=checkbox]{width:auto}.team-title-style-button{display:block;margin:4px 0 4px auto!important;font-size:12px!important;padding:4px 8px!important;min-height:28px}.team-delete-confirm [data-title-preview]{padding:12px;overflow-wrap:anywhere}

.team-work-overview{display:flex;align-items:center;gap:16px;margin:12px 0 16px;padding:14px 18px;border:1px solid #ddc7a2;border-radius:16px;background:linear-gradient(110deg,#fffcf6,#fff,#f9f5ed);box-shadow:0 4px 14px #18344712;color:#173448}
.team-work-overview-icon{width:58px;flex:none}.team-work-overview-icon svg{display:block;width:100%;fill:#183b50}.team-work-overview-title{flex:1;min-width:0}.team-work-overview-title strong{display:block;font-size:22px;font-weight:750}.team-work-overview-title small{display:block;font-size:12px;margin-top:4px}.team-work-overview-counts{display:flex;flex:none}.team-work-overview-counts>div{text-align:center;padding:0 15px;border-left:1px solid #e5e0d7}.team-work-overview-counts small{display:block;font-size:12px;white-space:nowrap}.team-work-overview-counts b{display:block;font-size:25px;color:#e63754}.team-work-overview-counts>div:nth-child(2) b{color:#c77b1d}.team-work-overview-counts>div:nth-child(3) b{color:#3469cc}.team-work-overview button{flex:none;border:0;border-radius:10px;padding:11px 20px;background:linear-gradient(135deg,#d4ad73,#a36f2c);color:white;font-size:16px;font-weight:700;cursor:pointer}
@media(max-width:600px){.team-work-overview{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:12px}.team-work-overview-icon{width:40px}.team-work-overview-title strong{font-size:18px}.team-work-overview-title small{font-size:10px}.team-work-overview-counts{grid-column:1/3;grid-row:2;justify-content:space-around}.team-work-overview-counts>div{padding:0 10px;flex:1}.team-work-overview-counts>div:first-child{border-left:0}.team-work-overview button{grid-column:3;grid-row:1/3;padding:10px 12px;font-size:14px}}

/* Keep the title style control and editable title anchored to the left. */
html body .team-notebook[data-team-notebook-root]>.team-page-header{grid-template-columns:auto minmax(0,1fr)!important}
html body .team-notebook .team-page-header>.team-title-style-button{margin:4px 0!important;justify-self:start}
html body .team-notebook .team-page-header>.team-page-title{min-width:0;justify-self:stretch}
html body .team-notebook .team-page-header>:is(.team-daily-page-info,.team-daily-summary){grid-column:1/-1}

/* Title formatting appears only while interacting with its full-width row. */
html body .team-notebook .team-page-header>.team-title-row{grid-column:1/-1;display:flex;flex-direction:column;width:100%;min-width:0}
html body .team-notebook .team-title-row>.team-page-title{order:0;width:100%!important;min-width:0}
html body .team-notebook .team-title-row>.team-title-style-button{display:none!important;order:1;align-self:flex-start;margin:4px 0!important}
html body .team-notebook .team-title-row:focus-within>.team-title-style-button{display:block!important}
/* Overview occupies its own row above the scrollable page tabs. */
html body .team-notebook .team-work-overview{width:100%;box-sizing:border-box}
@media(max-width:600px){
html body .team-notebook .team-work-overview{display:flex;flex-wrap:nowrap;gap:5px;padding:10px 7px;margin:8px 0 10px;min-height:72px;border-radius:14px}
html body .team-work-overview .team-work-overview-icon{width:28px;flex:none}
html body .team-work-overview .team-work-overview-title{flex:1;min-width:0}
html body .team-work-overview .team-work-overview-title strong{font-size:clamp(12px,3.4vw,18px);white-space:nowrap}
html body .team-work-overview .team-work-overview-title small{font-size:8px;line-height:1.4}
html body .team-work-overview .team-work-overview-counts{display:flex;flex:none;gap:0}
html body .team-work-overview .team-work-overview-counts>div{padding:0 5px;flex:none;border-left:1px solid #e5e0d7}
html body .team-work-overview .team-work-overview-counts small{font-size:8px}
html body .team-work-overview .team-work-overview-counts b{font-size:20px}
html body .team-work-overview button{padding:9px 8px;font-size:12px;white-space:nowrap;min-width:0}
html body .team-notebook[data-team-notebook-root] .team-page-toolbar{width:100%;min-width:0}
html body .team-notebook[data-team-notebook-root] .team-page-toolbar>.team-page-tabs{display:flex!important;flex:1 1 0!important;min-width:0!important;overflow-x:auto!important}
}

/* Keep the contextual format control beside the title. */
html body .team-notebook .team-page-header>.team-title-row{flex-direction:row;align-items:center;gap:8px}
html body .team-notebook .team-title-row>.team-title-style-button{order:0;flex:0 0 auto;align-self:center;white-space:nowrap;margin:0!important}
html body .team-notebook .team-title-row>.team-page-title{order:1;flex:1 1 0;width:0!important;min-width:0}

/* Compact title-format dialog, including native iPhone form controls. */
dialog.team-delete-confirm[aria-label="標題樣式"]{width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:20px;overscroll-behavior:contain}
dialog.team-delete-confirm[aria-label="標題樣式"] h2{margin:0 0 16px;font-size:20px}
dialog.team-delete-confirm[aria-label="標題樣式"] .team-title-style-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 10px}
dialog.team-delete-confirm[aria-label="標題樣式"] .team-title-style-fields>label{grid-column:span 3;display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0;min-width:0;font-size:13px;line-height:1.4}
dialog.team-delete-confirm[aria-label="標題樣式"] .team-title-style-fields select{width:100%;height:42px;min-height:42px;box-sizing:border-box;padding:7px 10px;font-size:16px;border-radius:9px}
dialog.team-delete-confirm[aria-label="標題樣式"] .team-title-style-fields>label:has(input[type=checkbox]){grid-column:span 2;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;gap:7px;min-height:42px;padding:7px 4px;border:1px solid #e2dfd8;border-radius:9px;white-space:nowrap;box-sizing:border-box}
dialog.team-delete-confirm[aria-label="標題樣式"] .team-title-style-fields input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important;padding:0!important;margin:0!important;transform:none!important;accent-color:#193d53}
dialog.team-delete-confirm[aria-label="標題樣式"] [data-title-preview]{margin:14px 0!important;padding:12px!important;min-height:52px;border:1px solid #e6e2d9;border-radius:9px;overflow-wrap:anywhere;line-height:1.5}
dialog.team-delete-confirm[aria-label="標題樣式"] footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
dialog.team-delete-confirm[aria-label="標題樣式"] footer button{width:100%;min-width:0;min-height:42px;padding:8px 12px;margin:0}
dialog.team-delete-confirm[aria-label="標題樣式"] footer button[type=submit]{background:#193d53;border-color:#193d53;color:#fff}
@media(max-width:360px){dialog.team-delete-confirm[aria-label="標題樣式"]{padding:16px}dialog.team-delete-confirm[aria-label="標題樣式"] .team-title-style-fields{gap:10px 6px}}

.team-page-header>[data-work-overview-slot]{grid-column:1/-1;min-width:0;width:100%}

.team-page-header>[data-work-overview-slot]>.team-page-toolbar{width:100%;box-sizing:border-box;min-width:0}

/* Preserve exactly the same title width before and after focus. */
html body .team-notebook .team-title-row>.team-title-style-button{display:block!important;visibility:hidden;pointer-events:none}
html body .team-notebook .team-title-row:focus-within>.team-title-style-button{visibility:visible;pointer-events:auto}

/* Title distance shares the compact style-dialog control sizing. */
dialog.team-delete-confirm[aria-label="標題樣式"] input[name="titleOffset"]{width:100%;height:42px;min-height:42px;box-sizing:border-box;padding:7px 10px;font-size:16px;border:1px solid #d6dfe5;border-radius:9px;background:white;color:#243244}

/* Keep avatar, name and leave badge on the same center line. */
html body .team-assignee-picker .team-daily-person{display:flex!important;align-items:center!important;gap:7px!important}
html body .team-assignee-picker .team-daily-person>.team-avatar{align-self:center;margin:0!important;line-height:1!important}
html body .team-assignee-picker .team-daily-person>span:not(.team-avatar){display:inline-flex;align-items:center;min-height:20px;line-height:20px!important;margin:0!important;min-width:0}
html body .team-assignee-picker .team-daily-person>[data-assignee-leave]{display:inline-flex;align-items:center;align-self:center;min-height:20px;line-height:20px!important;margin:0!important;padding:0!important;flex:none;white-space:nowrap}

/* Nested desktop tabs already share the overview container gutter. */
@media(min-width:900px){html body .team-notebook[data-team-notebook-root] .team-page-header>[data-work-overview-slot]>.team-page-toolbar{margin-left:0!important;margin-right:0!important;width:100%;box-sizing:border-box}}

/* Cover transforms stay clipped to their own frame, below the tabs. */
html body .team-notebook .team-cover-frame{grid-column:1/-1;width:100%;height:var(--cover-height,clamp(260px,38vw,480px));overflow:hidden;position:relative;margin:0 0 12px;background:#eef1f3;min-width:0}
html body .team-notebook .team-cover-frame>img.team-page-cover,.team-cover-layout-dialog .team-cover-frame>img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:cover!important;object-position:center!important;transform:translate(var(--cover-x,0%),var(--cover-y,0%)) scale(var(--cover-zoom,1));transform-origin:center;border-radius:0!important}
.team-cover-layout-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #d6dfe5;border-radius:14px;padding:18px;background:#fff;color:#243244;font:14px/1.5 system-ui}.team-cover-layout-dialog::backdrop{background:#17334666}.team-cover-layout-dialog h2{margin:0;font-size:20px}.team-cover-layout-dialog p{margin:8px 0}.team-cover-layout-dialog .team-cover-frame{width:100%;height:auto;overflow:hidden;position:relative;background:#eef1f3;touch-action:none;cursor:move}.team-cover-layout-dialog .team-cover-frame img{position:absolute;inset:0;pointer-events:none;user-select:none}.team-cover-layout-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.team-cover-layout-controls label{display:block;min-width:0}.team-cover-layout-controls output{float:right;font-variant-numeric:tabular-nums}.team-cover-layout-controls input[type=range]{display:block;width:100%;height:30px;min-height:30px;margin:4px 0;padding:0;touch-action:pan-y}.team-cover-layout-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.team-cover-layout-dialog button{padding:9px 14px;min-height:42px;border:1px solid #cdd8e2;border-radius:8px;background:#f7f9fb;color:#243244;font:inherit}.team-cover-layout-dialog button[type=submit]{background:#18394b;color:white}.team-cover-layout-dialog [data-cover-error]{color:#a33}.team-cover-layout-dialog [data-cover-error]:empty{display:none}

.team-overdue-flag{display:inline-flex;align-items:center;gap:3px;font-size:11px;line-height:1.5;color:#b45309;background:#fff2df;border-radius:5px;padding:2px 5px;vertical-align:middle;grid-column:1/-1;justify-self:start}.team-overdue-flag>span{display:inline-block;animation:team-overdue-pulse 1.8s ease-in-out infinite}.work-task .team-overdue-flag{margin-right:5px}@keyframes team-overdue-pulse{0%,100%{opacity:1}50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.team-overdue-flag>span{animation:none}}

.team-custom-color{display:flex;gap:6px;margin-top:6px;align-items:center}.team-title-style-fields .team-custom-color input[type=color]{width:42px;min-width:42px;height:38px;padding:3px}.team-title-style-fields .team-custom-color input[type=text]{min-width:0;width:100%;font-size:16px;height:38px}.team-custom-color[hidden]{display:none}

.team-title-controls{display:none}@media(min-width:901px){html body .team-notebook .team-title-row{position:relative}html body .team-notebook .team-title-controls{position:absolute;left:-44px;top:50%;transform:translateY(-50%);display:flex;width:44px;gap:0;visibility:hidden}html body .team-notebook .team-title-row:hover .team-title-controls,html body .team-notebook .team-title-row:focus-within .team-title-controls{visibility:visible}html body .team-notebook .team-title-controls button{display:flex;align-items:center;justify-content:center;width:22px;min-width:22px;height:28px;padding:0;border:0;background:transparent;color:#8a939b;border-radius:3px}html body .team-notebook .team-title-controls button:hover{background:#edf0f2}html body .team-notebook .team-title-controls svg{width:20px;height:20px}}

html body .team-notebook .team-text-row>.team-overdue-flag{display:none!important}[data-note-overdue-edge]{pointer-events:none}[data-note-overdue-edge]>.team-overdue-flag{margin:0;white-space:nowrap;font-size:10px;padding:2px 4px}

/* Reveal both creator and assigned person without moving the text column. */
html body .team-notebook .team-daily-assigned>.team-row-author{overflow:visible!important}html body .team-notebook .team-daily-assigned>.team-row-author>.team-avatar{left:-18px!important;z-index:2}html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{left:2px!important;z-index:3;border-radius:50%;box-shadow:0 0 0 2px #fff}html body .team-notebook .team-daily-assigned>.team-row-author>.team-assignee-total{left:4px!important}

/* Keep the creator in front, slightly closer to the assigned avatar. */
html body .team-notebook .team-daily-assigned>.team-row-author>.team-avatar{left:-14px!important;z-index:4}html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{left:6px!important;z-index:3}

/* Equal visible avatar bounds, including borders, on both layers. */
html body .team-notebook .team-daily-assigned>.team-row-author>.team-avatar,html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{top:0!important;margin:0!important;padding:0!important;width:var(--team-row-avatar-size)!important;height:var(--team-row-avatar-size)!important;min-height:0!important;box-sizing:border-box!important;box-shadow:none!important;transform:none!important}html body .team-notebook .team-daily-assigned>.team-row-author>.team-daily-assignee{border:0!important;display:block!important}html body .team-notebook .team-daily-assigned>.team-row-author .team-avatar{margin:0!important;padding:0!important;border:1.5px solid #fff!important;box-shadow:none!important}html body .team-notebook .team-daily-assigned>.team-row-author .team-avatar img{display:block;width:100%;height:100%;object-fit:cover}

html body .team-notebook .team-album-caption>span{margin-right:0}html body .team-notebook .team-album-caption>[data-team-add-photos]{font-size:12px;white-space:nowrap}html body .team-notebook .team-album-caption>[data-team-album-prev]{margin-left:auto!important}

/* Overlay the additional-person count and align assignment details to the text edge. */
html body .team-notebook .team-daily-assigned>.team-row-author>.team-assignee-total{left:calc(var(--team-row-avatar-size) - 5px)!important;top:calc(var(--team-row-avatar-size) - 13px)!important;z-index:5;border:1px solid #fff}html body .team-notebook .team-daily-assigned>.team-row-author{height:var(--team-row-avatar-size)!important;min-height:var(--team-row-avatar-size)!important}html body .team-notebook .team-block>.team-daily-row-meta{justify-self:end!important;text-align:right!important;max-width:100%;margin-left:auto!important}

html body .team-notebook .team-block>.team-text-row:has(>.team-daily-row-meta){grid-template-columns:minmax(0,1fr) 26px auto;column-gap:6px}html body .team-notebook .team-block>.team-text-row:has(>.team-daily-row-meta):has(>input[type=checkbox]){grid-template-columns:auto minmax(0,1fr) 26px auto}html body .team-notebook .team-block>.team-text-row:has(>.team-daily-row-meta)>.team-row-break{grid-column:-3/-2;position:static;align-self:start}html body .team-notebook .team-text-row>.team-daily-row-meta{grid-column:-2/-1!important;grid-row:1!important;align-self:start!important;justify-self:end!important;white-space:nowrap!important;text-align:right!important;margin:0!important;padding:5px 0 0!important;min-height:0!important;font-size:11px!important}@media(max-width:600px){html body .team-notebook .team-text-row>.team-daily-row-meta{font-size:10px!important;max-width:112px;white-space:normal!important}}

html body .team-notebook .team-text-row>.team-text-with-meta{grid-column:1;grid-row:1;min-width:0;width:100%;overflow-wrap:anywhere}html body .team-notebook .team-text-row:has(>input[type=checkbox])>.team-text-with-meta{grid-column:2}html body .team-notebook .team-text-with-meta>.team-editable{display:inline!important;width:auto!important;min-width:0!important;min-height:0!important;white-space:pre-wrap!important}html body .team-notebook .team-text-with-meta>.team-daily-row-meta{display:inline!important;vertical-align:baseline!important;float:none!important;width:auto!important;min-height:0!important;margin:0 0 0 8px!important;padding:0!important;font-size:11px!important;line-height:inherit!important;text-align:left!important;white-space:normal!important}

/* Editing NOTE: keep only the editor controls above the keyboard. */
@media (max-width:900px), (pointer:coarse) {
 body:has([data-team-mobile-tools]:not([hidden]), .team-notebook :is(input,textarea,[contenteditable="true"]):focus, dialog[class*="team-"][open]) :is(.mobile-bottom-nav,.mobile-nav-branch-host,[data-mobile-bottom-nav],.mobile-floating-tools-handle,.backoffice-toolkit,.public-frontend-shortcut,.visitor-chat-floating) {
  visibility:hidden!important;
  pointer-events:none!important;
 }
}

.note-vehicle-watch{border:1px solid #d3dfe5;border-radius:12px;background:#f7fafb;padding:14px;margin:10px 0;color:#243244;font:15px/1.5 system-ui}
.note-vehicle-watch header{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.note-vehicle-watch header strong{flex:1;min-width:150px}.note-vehicle-watch button{padding:7px 12px;border:1px solid #bbcdd8;border-radius:8px;background:white;color:#193d53;cursor:pointer}.note-vehicle-watch>p{overflow-wrap:anywhere}.note-vehicle-watch small{color:#667b8b}.note-watch-list{max-height:420px;overflow:auto;overscroll-behavior:contain}.note-watch-result{background:white;border:1px solid #dae3e9;border-radius:8px;margin:8px 0;padding:10px}.note-watch-result summary{display:flex;gap:12px;align-items:center;cursor:pointer}.note-watch-result summary b{color:#22724a;font-size:23px;min-width:66px}.note-watch-result summary small{display:block}.note-watch-result p{font-size:13px;margin:5px 0}.note-watch-result .is-match{color:#22724a}.note-watch-result .is-miss{color:#926331}.note-watch-empty{padding:16px;background:#fff8e9;border-radius:8px}.note-watch-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.note-watch-fields label{display:grid;gap:5px}.note-watch-fields input{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #bdccd6;border-radius:7px;font-size:16px}.note-watch-fields fieldset{min-width:0;border:1px solid #d5dee5;border-radius:8px}.note-watch-fields fieldset>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.note-watch-dialog{width:min(760px,calc(100vw - 24px))}.note-watch-dialog small{display:block;margin-top:12px}.note-watch-dialog [data-error]{color:#ac2930}@media(max-width:550px){.note-watch-fields fieldset{grid-column:1/-1}.note-watch-dialog{padding:14px}.note-vehicle-watch{padding:10px}}

/* Vehicle watch setup: grouped fields and persistent actions. */
html body dialog.note-watch-dialog{width:min(800px,calc(100vw - 24px));padding:0;border:1px solid #dbe3e8;border-radius:20px;background:#f5f7f9;color:#19394c;box-shadow:0 24px 80px #132d4650;scrollbar-width:thin;scrollbar-color:#bbc8d2 transparent}
.note-watch-dialog::backdrop{background:#172e4666;backdrop-filter:blur(3px)}
html body .note-watch-dialog form{display:block;margin:0;padding:0}
html body .note-watch-dialog .note-watch-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#fff;border-bottom:1px solid #e1e8ed}
.note-watch-heading h2{margin:0;font-size:22px;line-height:1.4;letter-spacing:.02em}.note-watch-heading p{margin:4px 0 0;font-size:13px;color:#748593}
html body .note-watch-heading button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid #e2e8ec;border-radius:50%;background:#f4f7f9;color:#526877;font-size:24px;line-height:1;cursor:pointer}
.note-watch-body{padding:20px 24px;display:grid;gap:16px}.note-watch-section{padding:18px;border:1px solid #e0e7ed;border-radius:14px;background:#fff}.note-watch-section-title{display:flex;gap:10px;align-items:center;margin-bottom:16px}.note-watch-section-title h3{margin:0;font-size:15px}.note-watch-section-title span{font-size:11px;padding:3px 8px;border-radius:20px;background:#edf3f7;color:#526f82}.note-watch-essential{border-color:#c8d9e3;background:#fbfdff}.note-watch-rule{margin:14px 0 0;color:#647c8e;font-size:12px;line-height:1.7}
html body .note-watch-dialog .note-watch-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body .note-watch-dialog .note-watch-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}
html body .note-watch-dialog .note-watch-fields label{display:grid;gap:7px;margin:0;font-size:13px;font-weight:600;color:#405969;min-width:0}
html body .note-watch-dialog .note-watch-fields input{width:100%;min-width:0;height:44px;padding:10px 12px;margin:0;border:1px solid #d5dfe7;border-radius:9px;background:#fff;color:#18394e;font:400 16px/1.4 system-ui;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.note-watch-dialog .note-watch-fields input::placeholder{color:#98a5af}.note-watch-dialog .note-watch-fields input:focus{outline:0;border-color:#5385a2;box-shadow:0 0 0 3px #5689a51a}
html body .note-watch-dialog .note-watch-fields fieldset{margin:0;padding:12px;border:1px solid #e0e7ed;border-radius:10px;background:#f9fbfc;min-width:0;grid-column:auto}.note-watch-dialog .note-watch-fields legend{padding:0 5px;font-size:13px;font-weight:600}.note-watch-dialog .note-watch-fields fieldset label{font-size:11px;font-weight:400;color:#7a8d9b}
html body .note-watch-dialog .note-watch-disclaimer{margin:12px 0 0;font-size:11px;line-height:1.7;color:#7e8d98}
html body .note-watch-dialog [data-error]{margin:0;font-size:13px}.note-watch-dialog [data-error]:empty{display:none}
html body .note-watch-dialog .note-watch-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;padding-bottom:max(14px,env(safe-area-inset-bottom));margin:0;background:#fffffff5;border-top:1px solid #e0e7ed;backdrop-filter:blur(10px)}
html body .note-watch-footer button{min-height:44px;padding:10px 22px;border:1px solid #d5dfe7;border-radius:10px;background:white;color:#526c7b;font:600 14px/1.4 system-ui;cursor:pointer}.note-watch-footer button:hover{filter:brightness(.97)}html body .note-watch-footer button[type=submit]{background:#193d53;border-color:#193d53;color:#fff;box-shadow:0 3px 8px #193d531a}.note-watch-dialog button:focus-visible{outline:2px solid #52819b;outline-offset:2px}
@media(max-width:600px){html body dialog.note-watch-dialog{border-radius:16px}html body .note-watch-dialog .note-watch-heading{padding:16px}.note-watch-heading h2{font-size:20px}.note-watch-heading p{font-size:12px}.note-watch-body{padding:14px;gap:12px}.note-watch-section{padding:14px}.note-watch-section-title{flex-wrap:wrap;gap:6px;margin-bottom:14px}html body .note-watch-dialog .note-watch-fields,html body .note-watch-dialog .note-watch-attributes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}html body .note-watch-dialog .note-watch-ranges{grid-template-columns:1fr}html body .note-watch-dialog .note-watch-footer{padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.note-watch-footer button[type=submit]{flex:1}}

/* Larger vehicle-match result text; keep the percentage size unchanged. */
.note-vehicle-watch .note-watch-result summary>span{font-size:17px;line-height:1.6;min-width:0;overflow-wrap:anywhere}
.note-vehicle-watch .note-watch-result summary small{font-size:15px;line-height:1.6;margin-top:3px}
.note-vehicle-watch .note-watch-result p{font-size:16px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}

.note-watch-result summary>span{flex:1}.note-watch-result summary{flex-wrap:wrap}.note-watch-result .note-watch-vehicle-link{display:inline-flex;align-items:center;gap:5px;padding:8px 12px;border:1px solid #c7d7e2;border-radius:8px;background:#f2f7fa;color:#214c66;font-size:14px;line-height:1.4;text-decoration:none;white-space:nowrap}.note-watch-result .note-watch-vehicle-link:hover{background:#e7f0f6}.note-watch-result .note-watch-vehicle-link:focus-visible{outline:2px solid #52819b;outline-offset:2px}

.note-watch-result summary .note-watch-thumb{position:relative;display:grid;place-items:center;flex:0 0 88px;width:88px;height:66px;overflow:hidden;border-radius:8px;border:1px solid #dce5eb;background:#edf2f5;text-decoration:none;color:#80909b}.note-watch-thumb>span{font-size:11px}.note-watch-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.note-watch-thumb img[hidden]{display:none}.note-watch-result summary>span{flex-basis:130px}@media(max-width:550px){.note-watch-result summary{gap:10px}.note-watch-result summary .note-watch-thumb{flex-basis:68px;width:68px;height:54px}.note-watch-result .note-watch-vehicle-link{margin-left:auto}}

/* Illustrated notebook page navigation and page editor. */
html body .team-notebook .team-page-toolbar{position:relative;flex-wrap:wrap;gap:8px!important}
html body .team-notebook .team-page-toolbar::before{content:'新增分頁';display:block;flex:0 0 100%;font-size:12px;color:#17384d;line-height:1.5}
html body .team-notebook .team-page-tabs{gap:6px!important;padding:0 0 6px!important;align-items:stretch!important}
html body .team-notebook .team-page-tabs button{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 104px;min-width:0!important;min-height:78px;padding:8px 5px!important;border:1px solid #e4e7ed!important;border-radius:8px!important;background:linear-gradient(145deg,#fff,#fafbfd)!important;color:#17384d!important;box-shadow:0 2px 5px #16384d05!important;font-size:12px!important;line-height:1.35!important;white-space:normal!important}
html body .team-notebook .team-page-tabs button[aria-selected=true]{border-color:#c59b58!important;box-shadow:0 2px 7px #bd95551a!important;background:linear-gradient(145deg,#fff,#fffdf8)!important}
html body .team-notebook .team-page-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:3px;width:18px;height:2px;border-radius:2px;background:#c29853}
.team-page-tabs [data-team-tab-icon]{width:32px;height:32px;display:block;flex:none}
.team-page-tabs [data-team-tab-icon] svg,.team-page-tabs [data-team-tab-icon] img{width:100%;height:100%;object-fit:contain}
.team-page-tabs [data-team-tab-name]{max-width:100%;overflow-wrap:anywhere;font-weight:600}
html body .team-notebook .team-page-tabs [data-team-tab-unread]:not([hidden]){position:absolute;right:4px;top:4px;min-width:16px;padding:1px 4px;font-size:10px}
html body .team-notebook .team-page-management{position:absolute;right:0;top:-2px;z-index:15}
html body .team-notebook .team-page-management>summary{min-height:22px;width:26px;height:24px;padding:0!important;display:grid;place-items:center;border:0!important;background:transparent!important;color:#a97c35!important;font-size:18px;list-style:none}
html body .team-notebook .team-page-management>summary::-webkit-details-marker{display:none}
html body .team-notebook .team-page-management-panel{top:28px;right:0}
html body dialog.team-page-design{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px 18px 0;border:1px solid #e4e7ed;border-radius:18px;color:#17384d;background:#fff;overflow:auto;box-shadow:0 18px 70px #0004;font-family:inherit}
.team-page-design::backdrop{background:#101c2a88}
html body .team-page-design *{box-sizing:border-box}
html body .team-page-design form{margin:0;display:block}
html body .team-page-design header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
html body .team-page-design h2{margin:0;font-size:23px;line-height:1.3;color:#17384d}
html body .team-page-design button{font-family:inherit;cursor:pointer;min-width:0;min-height:0;box-shadow:none;letter-spacing:normal}
html body .team-page-design header button{border:0;background:none;color:#17384d;font-size:24px;padding:0 4px}
html body .team-page-design .tpd-intro{font-size:12px;color:#667687;margin:5px 0 17px;line-height:1.5}
html body .team-page-design .tpd-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;font-size:14px}
html body .team-page-design [data-upload]{font-size:12px;border:0;background:none;color:#17384d;padding:3px}
html body .team-page-design .tpd-icons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
html body .team-page-design .tpd-icons button{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 2px 6px;border:1px solid #e4e7ed;border-radius:7px;color:#17384d;background:linear-gradient(135deg,#fff,#fbfcfe);font-size:10px;line-height:1.35}
html body .team-page-design .tpd-icons button[aria-pressed=true]{border-color:#c49954;background:#fffaf0}
html body .team-page-design .tpd-icons button[aria-pressed=true]::after{content:'✓';position:absolute;right:3px;top:3px;width:12px;height:12px;line-height:12px;border-radius:50%;background:#bd934b;color:white;font-size:9px}
html body .team-page-design svg{width:30px;height:30px;display:block}
html body .team-page-design .tpd-label{display:block;margin-top:15px;font-size:14px;font-weight:600}
html body .team-page-design input:not([type=file]),html body .team-page-design select{display:block;width:100%;height:40px;min-height:40px;margin-top:5px;padding:8px 10px;font-size:16px;font-family:inherit;border:1px solid #d8dce5;border-radius:8px;background:white;color:#17384d}
html body .team-page-design .tpd-name{position:relative;display:block}
html body .team-page-design .tpd-name input{padding-right:36px}
html body .team-page-design [data-clear]{position:absolute;right:8px;top:10px;padding:0;width:20px;height:20px;border:0;border-radius:50%;background:#a5aeb8;color:white;line-height:18px;font-size:16px}
html body .team-page-design .tpd-help{display:block;margin-top:4px;font-size:11px;color:#798593}
html body .team-page-design .tpd-preview-label{display:block;margin:16px 0 7px;font-size:14px}
html body .team-page-design .tpd-preview{display:grid;place-items:center;background:#f4f5f9;border-radius:10px;padding:10px}
html body .team-page-design .tpd-preview-card{width:104px;min-height:74px;padding:8px 4px;border:1px solid #d9dde6;border-radius:8px;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:12px;overflow-wrap:anywhere;text-align:center}
html body .team-page-design .tpd-preview-card img{width:32px;height:32px;object-fit:contain}
html body .team-page-design .tpd-error{font-size:13px;color:#b33939;margin:7px 0;line-height:1.5}
html body .team-page-design footer{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1.8fr;gap:8px;padding:12px 0;background:white;margin-top:2px}
html body .team-page-design footer button{padding:11px 8px;border:1px solid #d6dce4;border-radius:8px;background:#fff;color:#17384d;font-size:14px}
html body .team-page-design footer [type=submit]{background:#17384d;border-color:#17384d;color:white}
html body .team-page-design button:disabled{opacity:.5;cursor:default}
html body .team-page-design [hidden]{display:none!important}
html body .team-page-design button:focus-visible{outline:2px solid #bb9453;outline-offset:2px}
@media(max-width:420px){html body .team-notebook .team-page-tabs button{flex-basis:calc((100% - 12px)/3);min-height:76px}html body dialog.team-page-design{padding:16px 14px 0}.team-page-design .tpd-icons{gap:4px}}

html body .team-notebook[data-team-notebook-root] .team-page-toolbar{flex-wrap:wrap!important;align-items:flex-start!important;row-gap:5px!important}
html body .team-notebook[data-team-notebook-root] .team-page-toolbar>.team-page-tabs{flex:1 1 100%!important;width:100%!important}

/* Direct add entry; keep the management menu for existing page actions. */
html body .team-notebook[data-team-notebook-root] .team-page-toolbar::before{display:none!important}
html body .team-notebook[data-team-notebook-root] .team-page-add-shortcut{display:flex!important;align-items:center;justify-content:space-between;flex:1 1 100%;width:100%;min-height:32px;padding:2px 38px 2px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#17384d!important;font-size:13px!important;line-height:1.5!important;text-align:left;cursor:pointer}
html body .team-notebook .team-page-add-shortcut>span:last-child{font-size:19px;color:#b78b43}
html body .team-notebook .team-page-add-shortcut:disabled{opacity:.5;cursor:default}
html body .team-notebook .team-page-add-shortcut:focus-visible{outline:2px solid #b78b43;outline-offset:2px}
html body .team-notebook .team-page-management{top:4px!important}

/* Roles without a Home navigation anchor center the visible document, keeping the author/control gutter. */
@media(hover:hover) and (pointer:fine) and (min-width:601px){
html body .team-notebook[data-team-notebook-root].team-centered-document{width:min(960px,100%);margin-left:max(0px,calc((100% - 960px)/2 - (var(--team-home-gutter,82px) - 18px)/2));margin-right:auto}
}
