:root{
  --bg:#0b0d10;
  --surface:#101418;
  --surface2:#151a20;
  --surface3:#1b222b;
  --line:#27303a;
  --line2:#34404d;
  --text:#e7edf4;
  --muted:#9aa7b5;
  --faint:#707d8b;
  --accent:#6aa6ff;
  --accent-soft:rgba(106,166,255,.12);
  --note:#d99b52;
  --note-soft:rgba(217,155,82,.13);
  --danger:#ef6464;
  --code-bg:#080b0f;
  --radius:8px;
  --radius-sm:6px;
  --sidebar-width:320px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  height:100vh;
  height:100dvh;
  min-height:100vh;
  min-height:100dvh;
  padding:0;
  overflow:hidden;
  background:var(--bg);
  color:var(--text);
  font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.sidebar-open{overflow:hidden}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#2b3440;border-radius:8px;border:3px solid var(--bg);background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:#3a4654;background-clip:content-box}
::-webkit-scrollbar-corner{background:var(--bg)}
.clip-shell{
  display:grid;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  transition:grid-template-columns .16s ease;
}
body.sidebar-collapsed .clip-shell{
  grid-template-columns:0 minmax(0,1fr);
}
.clip-main-pane{
  grid-column:2;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-width:0;
  min-height:0;
  overflow:hidden;
}
.clip-banner{
  position:relative;
  z-index:20;
  min-width:0;
  min-height:48px;
}
.clip-banner-inner{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:7px 10px;
  background:color-mix(in srgb,var(--bg) 92%,transparent);
  backdrop-filter:blur(10px);
  transform:translateY(0);
  transition:transform .16s ease-out;
}
.clip-banner-inner > header{display:none}
html.viewport-chrome-hidden .clip-banner-inner{
  transform:translateY(-100%);
  pointer-events:none;
}
html.viewport-chrome-hidden .clip-banner{pointer-events:none}
.clip-banner-info{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
  margin-right:auto;
  white-space:nowrap;
}
.clip-banner-info strong{
  color:var(--text);
  font-size:15px;
  line-height:1;
}
.clip-banner-info span{
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  text-overflow:ellipsis;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

header{margin-bottom:12px}
header .brand{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:0 2px;
  border-bottom:1px solid var(--line);
}
header .logo{font-size:18px;line-height:1}
header h1{margin:0;font-size:20px;font-weight:700;letter-spacing:0}
header .sub{color:var(--muted);font-size:12px;margin-top:1px}
.tag{
  color:var(--faint);
  font-size:12px;
  white-space:nowrap;
}

.flash{
  position:fixed;
  top:56px;
  right:12px;
  z-index:70;
  max-width:min(360px,calc(100vw - 24px));
  background:var(--surface2);
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  padding:10px 12px;
  border-radius:var(--radius);
  margin:0;
}
.flash.err{border-left-color:var(--danger)}

.tabs{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:4px;
  width:auto;
  max-width:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:32px;
  padding:0 9px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  border-radius:var(--radius-sm);
  cursor:pointer;
  font:inherit;
  font-size:13px;
}
.tab:hover{color:var(--text);background:var(--surface2)}
.tab.active{color:var(--text);border-color:var(--line);background:var(--surface3);font-weight:650}
.tab.site-tab{color:var(--text);border-color:var(--line);text-decoration:none}
.tab.utility{min-width:72px}

.panel,.content{display:none}
.panel.active{display:block}
.content.active{
  display:block;
  min-width:0;
  min-height:0;
  overflow:auto;
  scrollbar-width:none;
  padding:0 14px calc(64px + env(safe-area-inset-bottom));
}
.content.active::-webkit-scrollbar{display:none}
.panel form{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  margin:10px 0 14px;
}
.form-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.form-head h2{margin:0;font-size:13px;color:var(--text);font-weight:650}
.hint{color:var(--faint);font-size:12px}
.hint code{color:#e0ad72}
input[type=text],textarea{
  width:100%;
  margin:0 0 10px;
  padding:11px 12px;
  border-radius:var(--radius-sm);
  border:1px solid var(--line2);
  background:#0c1015;
  color:var(--text);
  font:inherit;
  resize:vertical;
}
textarea{min-height:118px}
input[type=text]:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
::placeholder{color:var(--faint)}
.note-type-row{
  display:flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
}
.note-type-select{
  min-width:86px;
  min-height:32px;
  border:1px solid var(--line2);
  border-radius:var(--radius-sm);
  background:#0c1015;
  color:var(--text);
  padding:5px 9px;
  font:inherit;
}
.note-type-select:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}

.folder-picker{border:1px solid var(--line);border-radius:var(--radius);background:#0c1015;padding:10px;margin-bottom:10px}
.folder-head{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:8px}
#folder-current{color:var(--text);word-break:break-all;text-align:right}
.folder-tree{display:flex;flex-direction:column;gap:2px;max-height:150px;overflow:auto;margin-bottom:8px}
.folder-item{width:100%;text-align:left;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:var(--radius-sm);padding:6px 8px;font:12px/1.35 ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;cursor:pointer;word-break:break-all}
.folder-item:hover{background:var(--surface2);color:var(--text)}
.folder-item.active{background:var(--accent-soft);border-color:rgba(106,166,255,.35);color:var(--text)}
.folder-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.folder-create input{margin:0;min-height:32px;padding:7px 9px;font-size:13px}
#folder-status{display:block;min-height:18px;margin-top:6px}

.dropzone{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:5px;
  padding:28px 18px;
  border:1px dashed var(--line2);
  border-radius:var(--radius);
  background:#0c1015;
  cursor:pointer;
  user-select:none;
}
.dropzone:hover,.dropzone.drag{border-color:var(--accent);background:#0f1721}
.dropzone .dz-icon{font-size:24px;line-height:1}
.dropzone .dz-title{font-weight:650}
.dropzone .dz-sub{color:var(--faint);font-size:12px}
.dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  padding:8px 14px;
  border:1px solid #477dca;
  border-radius:var(--radius-sm);
  background:#2f6fbd;
  color:#fff;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
}
.btn:hover{background:#397ed3;text-decoration:none}
.btn.ghost{background:transparent;color:var(--muted);border-color:var(--line2)}
.btn.ghost:hover{background:var(--surface3);color:var(--text)}
.btn.danger{background:#a83f3f;border-color:#b94a4a}
.btn.danger:hover{background:#bb4c4c}
.btn.sm{min-height:30px;padding:5px 10px;font-size:12px}
.btn.xs{min-height:26px;padding:3px 8px;font-size:11px;font-weight:600}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
small{color:var(--faint);font-size:12px}
#note-image-status{min-height:18px}

.section-title{
  margin:16px 0 8px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
}

.notes-workbench,.file-workbench,.messages-workbench{
  display:block;
}
.clip-sidebar{
  grid-column:1;
  grid-row:1;
  min-width:0;
  min-height:0;
  height:100%;
  max-height:none;
  overflow:auto;
  background:var(--surface);
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  padding:10px;
  min-width:0;
  transition:transform .16s ease,opacity .12s ease;
  scrollbar-width:none;
}
.clip-sidebar::-webkit-scrollbar{display:none}
body[data-active-panel=note] .file-upload-sidebar,
body[data-active-panel=note] .message-index,
body[data-active-panel=file] .notes-index,
body[data-active-panel=file] .message-index,
body[data-active-panel=message] .notes-index,
body[data-active-panel=message] .file-upload-sidebar{display:none}
body.sidebar-collapsed .clip-sidebar{
  opacity:0;
  pointer-events:none;
  border:0;
}
.sidebar-backdrop{display:none}
.sidebar-create-item{
  display:block;
  width:100%;
  min-height:48px;
  margin-bottom:6px;
  padding:9px 10px;
  border:1px dashed var(--line2);
  border-radius:var(--radius-sm);
  background:#0c1015;
  color:var(--accent);
  text-align:center;
  cursor:pointer;
  font:inherit;
  font-weight:650;
}
.sidebar-create-item:hover{border-color:var(--accent);background:var(--accent-soft)}
.note-index-item{
  display:block;
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
  border-radius:var(--radius-sm);
  padding:9px 10px;
  cursor:pointer;
  font:inherit;
}
.note-index-item + .note-index-item{margin-top:2px}
.message-index-item{
  display:block;
  width:100%;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.message-index-item + .message-index-item{margin-top:2px}
.message-index-item:hover,.message-index-item.active{border-color:var(--line);background:var(--surface2)}
.message-index-item.active{border-color:color-mix(in srgb,var(--accent) 68%,var(--line))}
.message-index-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-index-meta{display:block;margin-top:3px;color:var(--faint);font-size:11px}
.note-index-item:hover{background:var(--surface2)}
.note-index-item.active{
  background:var(--note-soft);
  border-color:rgba(217,155,82,.38);
}
.note-index-preview{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:var(--text);
  font-size:13px;
  line-height:1.45;
  word-break:break-word;
}
.note-index-meta{display:block;margin-top:5px;color:var(--faint);font-size:11px;line-height:1.35}
.note-index-actions{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:8px;
}
.note-index-actions .btn{border-color:transparent}
.note-index-actions .btn.ghost{background:#0c1015}
.note-index-actions .btn.ghost:hover{background:var(--surface3)}
.notes-reader,#files-list{min-width:0;max-width:1060px;margin:0 auto}
.item.is-hidden{display:none}
.item.message.is-hidden{display:none}
.empty.compact{padding:16px;font-size:13px}

.item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  margin:10px 0;
}
.item.note{
  max-width:860px;
  margin-top:0;
  background:#10151b;
}
.item.note.note-cpp,
.item.note.note-html{
  max-width:none;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.item .meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.kind-tag{color:var(--faint);font-size:11.5px}
.actions{display:flex;gap:7px;flex-wrap:wrap}
.edit-form{margin:0 0 12px}
.edit-form textarea{margin-bottom:10px}
.note-edit-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.edit-err{color:var(--danger);font-size:12px;margin-left:auto;align-self:center}

.note-title{margin:0 0 10px;font-size:18px;font-weight:700;line-height:1.35;color:#fff}
.note-body{font-size:14.5px;line-height:1.75;color:var(--text);word-break:break-word;overflow:visible}
.note-body > *{
  content-visibility:auto;
  contain-intrinsic-block-size:auto 48px;
}
.note-body > .math-block,
.note-body > table,
.note-body > .cpp-highlight{
  content-visibility:visible;
}
.note-body>:first-child{margin-top:0}
.note-body>:last-child{margin-bottom:0}
.note-body h1,.note-body h2,.note-body h3,.note-body h4,.note-body h5,.note-body h6{
  margin:1.15em 0 .45em;
  line-height:1.35;
  color:#fff;
  font-weight:680;
}
.note-body h1{font-size:1.45em}
.note-body h2{font-size:1.28em}
.note-body h3{font-size:1.14em}
.note-body h4,.note-body h5,.note-body h6{font-size:1.02em;color:var(--muted)}
.note-body p{margin:.55em 0}
.note-body ul,.note-body ol{margin:.55em 0;padding-left:1.45em}
.note-body li{margin:.2em 0}
.note-body li::marker{color:var(--note)}
.note-body a{color:var(--accent);border-bottom:1px solid rgba(106,166,255,.35)}
.note-body a:hover{border-bottom-color:var(--accent);text-decoration:none}
.note-body strong{color:#fff;font-weight:680}
.note-body em{color:#e0ad72}
.note-body del{color:var(--faint)}
.note-body code{
  font:13px/1.45 ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  background:var(--code-bg);
  border:1px solid var(--line);
  padding:.12em .38em;
  border-radius:4px;
  color:#e0ad72;
}
.note-body pre{
  background:var(--code-bg);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:13px 14px;
  margin:.75em 0;
  overflow:auto;
}
.note-body pre code{background:none;border:0;padding:0;color:var(--text);font-size:13px}
.note-body pre code .code-comment{color:#80b980}
.cpp-highlight{
  max-width:100%;
  overflow-x:auto;
  background:#0b0e11;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
}
.note-cpp .cpp-highlight{
  border:1px solid var(--line);
  border-radius:0;
}
.note-body .cpp-highlight pre{
  min-width:max-content;
  margin:0;
  padding:12px 16px 16px 0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  color:#d8dee9;
  font:13px/1.58 "Cascadia Code",Consolas,"SFMono-Regular",monospace;
  tab-size:4;
  white-space:pre;
  word-break:normal;
}
.cpp-highlight .linenos{
  display:inline-block;
  width:3.6em;
  margin-right:1.1em;
  padding-right:.85em;
  border-right:1px solid #30363d;
  color:#66717d;
  text-align:right;
  user-select:none;
}
.cpp-highlight .c,.cpp-highlight .c1,.cpp-highlight .cm,.cpp-highlight .cs{color:#7f8c98;font-style:normal}
.cpp-highlight .cp,.cpp-highlight .cpf{color:#c678dd}
.cpp-highlight .k,.cpp-highlight .kd,.cpp-highlight .kn,.cpp-highlight .kp,.cpp-highlight .kr{color:#ff79c6}
.cpp-highlight .kt{color:#56d6c9}
.cpp-highlight .nf,.cpp-highlight .fm{color:#50b7ff}
.cpp-highlight .nc,.cpp-highlight .nn{color:#61d6d0}
.cpp-highlight .no{color:#6cb6ff}
.cpp-highlight .nb,.cpp-highlight .bp{color:#74c7ec}
.cpp-highlight .s,.cpp-highlight .s1,.cpp-highlight .s2,.cpp-highlight .sa,.cpp-highlight .sb,.cpp-highlight .sc,.cpp-highlight .sd,.cpp-highlight .se,.cpp-highlight .sh,.cpp-highlight .si,.cpp-highlight .sx,.cpp-highlight .sr,.cpp-highlight .ss{color:#e6a96b}
.cpp-highlight .m,.cpp-highlight .mb,.cpp-highlight .mf,.cpp-highlight .mh,.cpp-highlight .mi,.cpp-highlight .mo,.cpp-highlight .il{color:#f2c94c}
.cpp-highlight .o,.cpp-highlight .ow{color:#ffb86c}
.cpp-highlight .p{color:#d8dee9}
.cpp-highlight .err{color:#ff6b6b;background:transparent}
.html-note-frame{
  display:block;
  width:100%;
  min-height:520px;
  border:1px solid var(--line2);
  border-radius:var(--radius-sm);
  background:#fff;
}
.note-html .html-note-frame{
  border:0;
  border-radius:0;
}
.note-body .math-block{
  display:block;
  margin:.7em 0;
  padding:7px 0;
  overflow-x:auto;
  overflow-y:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  color:#d7ecff;
}
.note-body .katex{color:#9dccff}
.note-body .math-block .katex{color:inherit}
.note-body .math-block .katex-display{margin:0}
.note-body .math-block .katex{font-size:1.08em}
.note-body .math-block sup,.note-body .math-block sub{font-size:.72em;line-height:0}
.note-body .math-op{
  display:inline-grid;
  grid-template-columns:auto auto;
  align-items:center;
  column-gap:.08em;
  margin:0 .12em;
  vertical-align:middle;
}
.note-body .math-symbol{
  grid-row:1 / span 2;
  font-size:1.34em;
  line-height:1;
}
.note-body .math-limits{
  display:grid;
  grid-template-rows:auto auto;
  align-items:center;
  justify-items:start;
  line-height:1;
}
.note-body .math-limits sup,
.note-body .math-limits sub{
  position:static;
  font-size:.68em;
  line-height:1;
}
.note-body .math-frac{
  display:inline-grid;
  grid-template-rows:auto auto;
  align-items:center;
  justify-items:center;
  vertical-align:middle;
  margin:0 .12em;
  line-height:1.1;
}
.note-body .math-frac span:first-child{
  border-bottom:1px solid currentColor;
  padding:0 .2em .05em;
}
.note-body .math-frac span:last-child{padding:.05em .2em 0}
.note-body blockquote{margin:.7em 0;padding:.2em 0 .2em 12px;border-left:3px solid var(--line2);color:var(--muted)}
.note-body hr{border:0;border-top:1px solid var(--line);margin:1.1em 0}
.note-body table{border-collapse:collapse;width:auto;max-width:100%;margin:.7em 0;font-size:13.5px;display:block;overflow-x:auto}
.note-body th,.note-body td{border:1px solid var(--line);padding:6px 10px;text-align:left}
.note-body th{background:var(--surface2);color:#fff;font-weight:650}
.note-body img{max-width:100%;height:auto;border-radius:var(--radius-sm);margin:.5em 0;border:1px solid var(--line)}

.file-name{font-weight:650;word-break:break-all}
.file-link{display:block;margin-top:4px;color:var(--accent);font-size:12px;word-break:break-all}
.item.file img{display:block;height:180px;max-width:100%;object-fit:cover;border-radius:var(--radius-sm);margin:11px 0;cursor:zoom-in;border:1px solid var(--line)}
.item pre{margin:0 0 10px;white-space:pre-wrap;word-break:break-word;font:13px/1.65 ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace}

.reply{background:#0c1015;border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;margin:10px 0 0 18px}
.reply pre{margin:0 0 6px}
.reply-form{margin-top:12px}
.reply-form textarea{margin-bottom:8px}
.empty{
  background:var(--surface);
  border:1px dashed var(--line2);
  border-radius:var(--radius);
  padding:28px;
  text-align:center;
  color:var(--faint);
  font-size:14px;
}

dialog{
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--line2);
  border-radius:var(--radius);
  padding:22px;
  max-width:90vw;
}
dialog::backdrop{background:rgba(0,0,0,.62)}
dialog form{margin:0}
dialog p{margin:0 0 18px;font-weight:650}
.dialog-row{display:flex;gap:10px;justify-content:flex-end}
#image-dialog{padding:12px}
#image-dialog img{display:block;max-width:88vw;max-height:76vh;border-radius:var(--radius-sm);margin-bottom:12px}

@media(max-width:760px), (pointer:coarse){
  html,body,.content.active,.note-body{touch-action:pan-x pan-y pinch-zoom}
  .clip-shell,body.sidebar-collapsed .clip-shell{grid-template-columns:1fr}
  .clip-main-pane{
    grid-column:1;
    padding-top:var(--viewport-banner-space,48px);
  }
  .clip-banner{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    transform-origin:0 0;
    will-change:transform;
  }
  .clip-banner-inner{
    gap:6px;
    padding:7px 6px;
    backdrop-filter:none;
    backface-visibility:hidden;
  }
  .clip-banner-info span{display:none}
  .clip-banner-info strong{font-size:13px}
  header .brand{grid-template-columns:auto 1fr}
  .tag{display:none}
  .tabs{width:auto;gap:2px}
  .tab{min-width:0;min-height:30px;padding:0 6px;font-size:11px}
  .tab.utility{min-width:0}
  .notes-workbench,.file-workbench{display:block}
  .clip-sidebar{
    position:fixed;
    top:var(--viewport-sidebar-top,0);
    left:var(--viewport-sidebar-left,0);
    z-index:50;
    width:var(--viewport-sidebar-width,88vw);
    height:var(--viewport-sidebar-height,100dvh);
    max-height:none;
    margin:0;
    border-radius:0;
    box-shadow:18px 0 36px rgba(0,0,0,.38);
    opacity:1;
    pointer-events:auto;
    transform:scale(var(--viewport-sidebar-scale,1)) translateX(-100%);
    transform-origin:0 0;
    transition:opacity .12s ease,visibility .12s ease;
    will-change:transform;
  }
  body.sidebar-open .clip-sidebar{transform:scale(var(--viewport-sidebar-scale,1)) translateX(0)}
  body.sidebar-open .content.active{overflow:hidden}
  .sidebar-backdrop{
    position:fixed;
    inset:0;
    z-index:48;
    display:block;
    padding:0;
    border:0;
    background:rgba(0,0,0,.58);
  }
  .sidebar-backdrop[hidden]{display:none}
  .content.active{padding:0 10px calc(56px + env(safe-area-inset-bottom))}
  .item.note{max-width:none}
  .note-body table,
  .note-body .math-block,
  .note-body pre,
  .note-body .cpp-highlight{
    overflow:visible;
    overscroll-behavior-inline:auto;
  }
  .note-body th,.note-body td{white-space:nowrap}
  .note-body table{
    display:table;
    width:max-content;
    min-width:100%;
    max-width:none;
  }
  .note-body .math-block .katex-display>.katex{
    display:block;
    width:max-content;
    min-width:100%;
  }
  .note-body .cpp-highlight pre{
    padding:9px 10px 12px 0;
    font-size:11px;
    line-height:1.55;
  }
  .cpp-highlight .linenos{
    width:3.2em;
    margin-right:.7em;
    padding-right:.65em;
  }
  .note-body h1{font-size:1.34em}
  .note-body h2{font-size:1.2em}
  html.note-root-scroll{
    height:auto;
    min-height:100%;
    overflow:auto;
    scrollbar-width:none;
  }
  html.note-root-scroll body{
    height:auto;
    min-height:100%;
    overflow:visible;
  }
  html.note-root-scroll::-webkit-scrollbar,
  html.note-root-scroll body::-webkit-scrollbar{display:none}
  html.note-root-scroll .clip-shell{
    height:auto;
    min-height:100dvh;
    overflow:visible;
  }
  html.note-root-scroll .clip-main-pane{
    display:block;
    overflow:visible;
    padding-top:var(--viewport-banner-space,48px);
  }
  html.note-root-scroll .content[data-content=note].active{overflow:visible}
  html.note-root-scroll .note-body{
    width:auto;
    min-width:0;
  }
  html.note-root-scroll .note-body .cpp-highlight{
    max-width:100%;
    overflow-x:auto;
  }
}
@media(prefers-reduced-motion:reduce){
  .clip-banner-inner{transition:none}
}
@media(max-width:360px){
  .note-body .cpp-highlight pre{font-size:10px}
}
