:root {
  color-scheme: light;
  --ink: #222431;
  --muted: #626779;
  --quiet: #73798b;
  --line: #dfe1eb;
  --panel: #fff;
  --canvas: #f9f9fd;
  --rail: #f0f1f8;
  --accent: #4e50b6;
  --accent-dark: #393b93;
  --lavender: #e3e4f7;
  --radius: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; background: transparent; padding: 0; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #dcdcf6; color: #24246b; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
svg, img { display: block; }
svg { flex: none; }
input { caret-color: var(--accent); }
.btn, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn { min-height: 38px; padding: 0 14px; border-radius: 8px; font-weight: 560; font-size: 13px; }
.btn.primary { background: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: var(--panel); border: 1px solid var(--line); }
.btn.secondary:hover,.subtle:hover,.icon-button:hover { background: #ebecf4; }
.btn.subtle { color: #4c5064; }
.icon-button { width: 32px; height: 32px; border-radius: 7px; color: var(--muted); }
.text-button { color: var(--accent); font-weight: 550; font-size: 13px; padding: 4px; }
.text-button:hover { color: var(--accent-dark); text-decoration: underline; }
.gate { display: grid; width: min(350px,calc(100% - 48px)); min-height: 100svh; margin: auto; align-content: center; padding-bottom: 6vh; }
.gate-brand, .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -.04em; font-weight: 770; }
.gate-brand { margin-bottom: 43px; }
.login-form h1 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 29px; }
.login-form label,.field-label { display: block; font-weight: 580; font-size: 13px; color: #494c5e; }
.login-form input,.field { width: 100%; height: 43px; border: 1px solid #cbd0df; background: white; color: var(--ink); padding: 0 12px; border-radius: 8px; margin-top: 8px; }
.login-form .btn { width: 100%; margin-top: 15px; min-height: 43px; }
.error { color: #a2303b; margin-top: 9px; line-height: 1.45; }
.error:empty { display: none; }
#boot-status { color: var(--muted); }
.shell { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.shell:has(> .sidebar[hidden]) { grid-template-columns: minmax(0,1fr); }
.sidebar { background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 24px; flex: none; }
.nav-toggle { flex: none; }
.brand { gap: 9px; line-height: 1; }
.sidebar-scroll { overflow-y: auto; flex: 1; padding: 20px 14px; }
.shortcuts { display: grid; gap: 4px; padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.nav-row,.tree-row { display: flex; width: 100%; align-items: center; min-height: 38px; border-radius: 7px; color: #53586b; }
.nav-row { gap: 11px; padding: 7px 12px; font-weight: 510; text-align: left; }
.nav-row svg { color: #666d82; }
.nav-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.chosen { background: #e0e2f6; color: #35378c; }
.nav-row.chosen svg { color: var(--accent); }
.nav-row:hover:not(.chosen),.tree-row:hover:not(.chosen) { background: #e8eaf3; }
.tree-heading { display: flex; align-items: center; justify-content: space-between; height: 26px; margin: 0 10px 5px; font-size: 12px; font-weight: 600; color: #636879; }
.tree-heading .icon-button { height: 24px; width: 24px; }
.tree-row { gap: 1px; }
.tree-name { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; min-height: 35px; text-align: left; font-size: 13px; line-height: 1.5; margin-right: 5px; overflow-wrap: anywhere; }
.tree-name svg { width: 16px; color: #737a91; }
.tree-row.chosen .tree-name svg { color: var(--accent); }
.twist,.twist-space { display: grid; width: 21px; height: 32px; align-items: center; justify-items: center; flex: none; color: #71778b; }
.twist:hover { color: var(--accent); }
.tree-children { padding-left: 15px; }
.rail-bottom { flex: none; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.account-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px 6px; border-radius: 8px; }
.account-item:hover { background: #e7e8f1; }
.account-item>svg { margin-left: auto; color: var(--muted); }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: #dddff1; color: #53578b; }
.account-text,.choice-words { display: grid; gap: 3px; }
.account-text strong { font-size: 13px; font-weight: 600; }
.account-text small { font-size: 11px; color: var(--muted); }
.workspace { min-height: 0; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; }
.toolbar { height: 72px; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 0 clamp(24px,3.25vw,60px); border-bottom: 1px solid var(--line); background: var(--canvas); position: sticky; top: 0; z-index: 3; }
.crumbs,.toolbar-right { display: flex; align-items: center; }
.crumbs { flex: 1; min-width: 0; gap: 7px; overflow-x: auto; scrollbar-width: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.crumbs::-webkit-scrollbar { display:none; }
.crumb-root { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.crumbs svg { color: #83899b; }
.crumb:last-child { color: #343746; font-weight: 570; }
.crumbs button:hover { color: var(--accent); }
.toolbar-right { gap: 14px; }
.search { width: clamp(155px,19vw,260px); height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 8px; background: #eeeff5; border: 1px solid #e4e5ee; color: #72798c; cursor: text; }
.search:focus-within { border-color: var(--accent); background: white; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search input::placeholder { color: #62697d; }
.search kbd { color: #62697d; white-space: nowrap; padding: 1px 4px; border: 1px solid #d7d9e5; border-radius: 4px; line-height: 1.35; font-family: inherit; font-size: 10px; }
.view-btn { min-height: 32px; padding: 0 4px; font-size: 12px; }
.visitor-label { display: inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.content { max-width: 1480px; margin: 0 auto; padding: clamp(34px,4vw,65px) clamp(24px,3.25vw,60px) 70px; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.page-intro { min-width: 0; }
.page-intro h1 { font-size: clamp(27px,2.45vw,38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.27; overflow-wrap: anywhere; }
.page-meta { margin: 9px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.intro-actions,.section-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.block + .block { margin-top: 34px; }
.section-head,.section-title { display: flex; align-items: center; }
.section-head { min-height: 30px; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-title { gap: 9px; }
.section-title h2 { font-size: 17px; line-height: 1.4; font-weight: 620; letter-spacing: -.02em; }
.quantity { color: #5d6275; background: #eaeaf2; border-radius: 5px; min-width: 21px; text-align: center; line-height: 20px; padding: 0 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.layout-switch { display: inline-flex; align-items: center; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #eeeff5; }
.layout-switch .icon-button { height: 24px; width: 30px; border-radius: 4px; }
.layout-switch svg { width: 14px; height: 14px; }
.layout-switch [aria-pressed=true] { background: white; color: var(--accent-dark); box-shadow: 0 1px 3px #2428381f; }
.folder-grid,.cards-grid { display: grid; gap: 12px; align-items: stretch; }
.folder-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,155px),1fr)); }
.cards-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); }
.tile { position: relative; min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.tile:hover { border-color: #b8bbd4; }
.folder-card { min-height: 125px; }
.folder-open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; text-align: left; padding: 13px 17px 15px; border-radius: var(--radius); }
.folder-art { display: block; width: 45px; height: 35px; flex: none; margin-bottom: 9px; }
.folder-art svg { width: 100%; height: 100%; }
.tone-blue { --folder-back:#678fc1;--folder-front:#9fc0e5; }
.tone-violet { --folder-back:#817bcf;--folder-front:#b9b3ec; }
.tone-sand { --folder-back:#cba66d;--folder-front:#e7cd99; }
.tone-sage { --folder-back:#74a493;--folder-front:#a8cdbf; }
.tone-coral { --folder-back:#c48779;--folder-front:#edb6a9; }
.folder-back { fill: var(--folder-back); }
.folder-paper { fill: #fff; stroke: var(--folder-front); stroke-width: .8; }
.folder-front { fill: var(--folder-front); stroke: var(--folder-back); stroke-width: .8; }
.folder-name,.book-name { display: block; color: var(--ink); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-width: 100%; }
.folder-name { font-size: 14px; font-weight: 600; }
.tile-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.visibility-sigil,.tile-tool { position: absolute; top: 13px; right: 13px; color: #81879a; }
.tile-tool,.book-tool,.book-star { width: 25px; height: 25px; border-radius: 5px; display: grid; place-items: center; }
.tile-tool:hover,.book-tool:hover,.book-star:hover { background:#efeff8; color:var(--accent); }
.bookmark-card { min-height: 73px; }
.book-open { display: flex; width: 100%; height: 100%; min-height: 71px; align-items: center; gap: 12px; text-align: left; padding: 13px 28px 13px 14px; border-radius: var(--radius); }
.book-text { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.book-name { font-size: 14px; font-weight: 605; }
.book-detail { color: var(--muted); font-size: 12px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favicon { height: 37px; width: 37px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; flex: none; position: relative; font-weight: 630; font-size: 17px; }
.favicon img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; background: white; }
.tint-0 { background: #e5e7f8; color:#4a518b; }
.tint-1 { background: #e2efe9; color:#356354; }
.tint-2 { background: #f1e8df; color:#775238; }
.tint-3 { background: #e3eef7; color:#3f6485; }
.tint-4 { background: #f4e3e9; color:#835069; }
.tint-5 { background: #eee7f3; color:#6b5280; }
.book-star,.book-tool,.open-mark { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); color: #777e92; }
.open-mark { right: 11px; opacity: 0; pointer-events: none; }
.bookmark-card:hover .open-mark,.bookmark-card:focus-within .open-mark { opacity: 1; }
.book-star:not(.starred) { opacity: 0; }
.bookmark-card:hover .book-star,.book-star:focus-visible { opacity: 1; }
.passive { pointer-events:none; }
.starred { color: #897239; }
.starred svg { fill: #f2e7c9; }
.filter-bar { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; padding: 0 0 23px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tag-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: min(220px,100%); }
.chip { font-size: 12px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: #505568; line-height: 1.3; background: white; }
.chip:hover { border-color: #bdbfdb; }
.chip.selected { background: #484b9f; border-color: #484b9f; color: white; }
.deep-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-height: 30px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.deep-control input,.radio-row input { accent-color: var(--accent); width: 15px; height: 15px; }
.folder-content .folder-card { min-height: 75px; }
.folder-content .folder-open,.folder-grid.as-list .folder-open { display: grid; grid-template-columns: 39px minmax(0,1fr); column-gap: 11px; align-content: center; grid-template-rows: auto auto; padding: 10px 28px 10px 14px; }
.folder-content .folder-art,.folder-grid.as-list .folder-art { grid-row: span 2; align-self: center; width: 37px; height: 31px; margin: 0; }
.folder-content .tile-meta,.folder-grid.as-list .tile-meta { margin: 0; }
.folder-content .visibility-sigil { top: 50%; transform: translateY(-50%); right: 10px; }
.groups,.result-group { display: grid; gap: 11px; }
.groups { gap: 22px; }
.directory-groups { display:grid; gap:24px; }
.directory-group { min-width:0; }
.directory-head { display:flex; align-items:center; gap:12px; min-height:38px; border-bottom:1px solid var(--line); }
.directory-heading { min-width:0; font-size:16px; font-weight:620; line-height:1.4; }
.directory-toggle { display:inline-flex; align-items:center; gap:8px; min-height:36px; max-width:100%; text-align:left; border-radius:5px; }
.directory-toggle svg,.directory-detail svg { color:var(--muted); }
.directory-toggle:hover,.directory-toggle:hover svg { color:var(--accent); }
.directory-name { min-width:0; overflow-wrap:anywhere; }
.directory-toggle .quantity { flex:none; font-weight:500; }
.directory-path { color:var(--muted); font-size:12px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.directory-detail { flex:none; margin-left:auto; }
.directory-body:not(:empty) { padding-top:12px; }
.tree-heading #tree-actions { display:inline-flex; align-items:center; gap:2px; }
.block + .directory-groups { margin-top:26px; }
@media(max-width:780px){
  .directory-groups {gap:16px;}
  .directory-head {gap:8px;}
}
.group-path { display: inline-flex; justify-self: start; align-items: center; gap: 7px; font-size: 12px; color: #575c74; text-align: left; }
.group-path:hover { color: var(--accent); text-decoration: underline; }
.folder-grid.as-list,.cards-grid.as-list { grid-template-columns: 1fr; gap: 5px; }
.as-list .tile { min-height: 50px; border-radius: 8px; }
.as-list .book-open { min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.as-list .book-text { width: 100%; display: grid; align-items: center; grid-template-columns: minmax(125px,1fr) minmax(0,2fr); gap: 14px; }
.as-list .favicon { width: 29px; height: 29px; border-radius: 6px; font-size: 14px; }
.arrange-tip { display: flex; gap: 6px; align-items: center; color: #565b7e; font-size: 12px; margin: -2px 0 12px; line-height: 1.5; }
.grip { width: 25px; height: 33px; border-radius: 5px; display: grid; place-items: center; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); color: #707493; cursor: grab; touch-action: none; user-select: none; }
.grip:hover { background: var(--lavender); }
.is-editing .book-open,.is-editing .folder-open { padding-left: 31px; }
.is-editing .folder-card .grip { top: auto; bottom: 12px; transform: none; height: 26px; }
.folder-content .is-editing .folder-card .grip,.is-editing.as-list .folder-card .grip { top: 50%; bottom: auto; transform: translateY(-50%); }
.sorting,.sorting * { cursor: grabbing !important; user-select: none !important; }
.tile.dragging { opacity: .5; border-style: dashed; background: #f1f0fb; }
.insert-before::before,.insert-after::after { content: ''; position: absolute; z-index: 2; top: 4px; bottom: 4px; width: 3px; border-radius: 4px; background: var(--accent); pointer-events: none; }
.insert-before::before { left:-7px; } .insert-after::after { right:-7px; }
.as-list .insert-before::before,.as-list .insert-after::after { left:5px; right:5px; height:3px; width:auto; top:auto; bottom:auto; }
.as-list .insert-before::before { top:-4px; } .as-list .insert-after::after { bottom:-4px; }
.move-inside { outline: 2px solid var(--accent); outline-offset: -2px; background:#eeedfb; }
.preview-banner { display: flex; align-items: center; gap: 9px; padding: 10px 13px; color:#464b8d; background: #ececf9; border-radius: 8px; line-height: 1.5; font-size: 12px; margin: -12px 0 23px; }
.preview-banner strong { font-weight: 650; }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 38px 18px; border: 1px dashed #cfd2df; border-radius: var(--radius); color: var(--muted); }
.empty strong { color: #444858; font-size: 15px; }
.empty p { font-size: 13px; }
.empty-icon { margin-bottom: 3px; color: #777c9b; }
dialog { padding: 0; border-radius: 15px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); width: min(430px,calc(100% - 30px)); max-height: 85dvh; box-shadow: 0 14px 52px #22243e25; }
dialog::backdrop { background: #282b3d53; }
.dialog-head,.dialog-actions { display: flex; gap: 10px; align-items: center; padding: 16px 19px; }
.dialog-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.dialog-body { padding: 14px 19px 19px; }
.dialog-copy { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-actions { justify-content: flex-end; padding-top: 0; }
.choice-list,.permission-form,.form-fields { display: grid; gap: 4px; }
.choice,.radio-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; width: 100%; text-align: left; border-radius: 8px; }
.choice:hover,.radio-row:hover { background: #f2f2f9; }
.choice>svg,.radio-row>svg { color: #656982; }
.choice svg:last-child,.radio-row input { margin-left: auto; }
.choice-words strong { font-size: 14px; font-weight: 560; }
.choice-words small,.field-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.permission-form p,.field-hint { margin: 3px 0 9px; }
.radio-row { border: 1px solid var(--line); cursor: pointer; margin-top: 3px; }
.radio-row:has(input:checked) { background:#f0effb; border-color:#b4b1dd; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 26px; transform: translateX(-50%); background: #333449; color: white; padding: 10px 18px; border-radius: 9px; font-size: 13px; line-height: 1.5; text-align: center; max-width: calc(100vw - 30px); }
.scrim { display: none; }
@media(min-width:1250px) { .folder-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .cards-grid { grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); } }
@media(min-width:1650px) { .shell { grid-template-columns: 255px minmax(0,1fr); } .cards-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:980px) and (min-width:781px) { .shell { grid-template-columns: 202px minmax(0,1fr); } .toolbar-right { gap: 7px; } .folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:780px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 6; width: min(280px,85vw); }
  .scrim:not([hidden]) { display:block; position:fixed; inset:0; background:#26293c58; z-index:5; }
  .brand-row { height: 61px; }
  .toolbar { height: 57px; gap: 6px; padding: 0 15px; }
  .toolbar-right { gap: 8px; }
  .toolbar .crumb-root { font-size: 0; gap: 0; }
  .toolbar .crumb-root:only-child { font-size:14px; font-weight:650; color:var(--ink); }
  .toolbar .crumb-root:only-child svg { display:none; }
  .crumbs { gap: 3px; }
  .search { width: clamp(125px,28vw,180px); height: 33px; }
  .search kbd { display: none; }
  .view-btn { font-size: 12px; gap: 4px; }
  .content { padding: 29px 20px 55px; }
  .page-heading { gap: 12px; margin-bottom: 25px; }
  .folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .folder-card { min-height: 113px; }
  .folder-open { padding: 11px 13px 13px; }
  .folder-art { width:39px; height:31px; }
  .block + .block { margin-top: 27px; }
  .book-star:not(.starred) { opacity: 1; }
  .btn { padding: 0 10px; }
  .intro-actions { flex-wrap: wrap; justify-content:flex-end; }
  .page-intro h1 { font-size: 28px; }
  .page-meta { font-size: 12px; margin-top: 7px; }
  .cards-grid { gap: 9px; }
  .as-list .book-text { display:flex; align-items:flex-start; gap:1px; }
  .preview-banner { margin-top: -8px; }
}
@media(max-width:520px) {
  .toolbar { padding: 0 10px; }
  .toolbar .crumbs button:not(:last-child),.toolbar .crumbs svg { display: none; }
  .toolbar .crumbs { font-size: 12px; }
  .content { padding-left: 16px; padding-right: 16px; }
  .page-heading { align-items: flex-start; }
  .share-btn { font-size:0; width:35px; gap:0; }
  .cards-grid { grid-template-columns: 1fr; }
  .insert-before::before,.insert-after::after { left:5px; right:5px; width:auto; height:3px; top:auto; bottom:auto; }
  .insert-before::before { top:-6px; } .insert-after::after { bottom:-6px; }
  .folder-grid:not(.as-list) .insert-before::before,.folder-grid:not(.as-list) .insert-after::after { top:4px; bottom:4px; height:auto; width:3px; }
  .folder-grid:not(.as-list) .insert-before::before { left:-6px; right:auto; } .folder-grid:not(.as-list) .insert-after::after { right:-6px; left:auto; }
  .folder-grid.as-list { grid-template-columns:1fr; }
  .book-open { min-height:63px; }
  .bookmark-card { min-height:65px; }
  .deep-control { margin-left:auto; }
}
@media(prefers-reduced-motion:no-preference) { .tile,.btn,.chip,.nav-row,.tree-row { transition: border-color .14s ease,background-color .14s ease; } }

/* Owner tools stay in the same workspace as the bookmarks. */
.author-tools { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:-8px 0 22px; }
.author-tools .btn { min-height:34px; font-size:12px; padding:0 11px; }
.author-tools .btn svg { width:15px;height:15px; }
.tree-more { flex:none; width:23px; height:27px; margin-right:3px; color:#6a7188; }
.tree-more svg { width:15px; }
.bookmark-card.authoring .book-open { padding-right:66px; }
.card-actions { position:absolute; right:6px; top:50%; transform:translateY(-50%); display:flex; gap:2px; }
.card-actions .icon-button { width:27px;height:29px; }
.card-actions .card-pencil { color:var(--accent);background:#eeedf9; }
.card-actions .card-pencil:hover { background:#e3e1f6; }
.btn.danger { background:#a53846;color:white; }
.btn.danger:hover { background:#872634; }
.manager-error { color:#942e3c;font-size:12px;line-height:1.55; }
.manager-error:empty { display:none; }
.tag-manager,.trash-list { display:grid;gap:9px; }
.managed-tags { display:grid;gap:2px; }
.manager-row { display:flex;align-items:center;gap:5px;min-height:42px;padding:5px 1px;border-bottom:1px solid var(--line); }
.manager-row:last-child { border:0; }
.manager-row>svg { color:var(--muted);margin-right:4px; }
.manager-row .icon-button { width:27px;height:29px;flex:none; }
.manager-row .icon-button:disabled { opacity:.28;cursor:default; }
.manager-label { flex:1;min-width:0;display:grid;gap:2px;overflow-wrap:anywhere; }
.manager-label strong { font-size:13px;font-weight:570; }
.manager-label small,.manager-empty { font-size:12px;color:var(--muted); }
.inline-fields { display:flex;align-items:center;gap:7px; }
.inline-fields .field,.tag-manager>.field { margin-top:0; }
.tag-manager .field-hint { margin:0 0 7px; }

#view-action { display: flex; align-items: center; gap: 10px; }
.settings-entry { min-height: 33px; padding: 0 10px; font-size: 12px; }
.settings-entry svg { width: 16px; height: 16px; }
.brand { min-width: 0; max-width: 100%; }
.brand [data-site-title] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.25; }
.gate-brand [data-site-title] { min-width: 0; overflow-wrap: anywhere; }
[data-site-icon] { object-fit: contain; flex: none; }
@media (max-width: 780px) {
  #view-action { gap: 6px; }
  .settings-entry { padding: 0 7px; gap: 4px; }
}
@media (max-width: 520px) {
  .settings-entry svg { display: none; }
  .toolbar-right { gap: 4px; }
  .search { width: clamp(90px,24vw,125px); }
}
