[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%; }
}
