.jump { display: flex; align-items: center; gap: 10px; height: 38px; min-width: 240px; padding: 0 8px 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--input); color: var(--muted); transition: border-color .18s, color .18s; }
.jump:hover { border-color: var(--line-3); color: var(--text); }
.jump span { flex: 1; text-align: left; font-size: 13px; }
kbd { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font: 500 11px var(--mono); }
kbd .ico { width: 12px; height: 12px; }








.rule-do > .ico { color: var(--ok); }
.rule-dont > .ico { color: var(--danger); }

.guide { display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; height: 100%; min-height: 0; }
.g-files, .g-info { min-height: 0; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.g-info { border-right: 0; border-left: 1px solid var(--line); }
.gf-head, .gi-head { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 10px 0 16px; flex: none; }
.gf-acts { display: flex; gap: 2px; }
.gf-close, .gi-close, .g-files-btn, .g-info-btn, .g-scrim { display: none; }
.gf-search { width: auto; margin: 0 12px 8px; height: 34px; }
.gf-scroll, .gi-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding: 4px calc(8px - var(--sb)) 12px 8px; }
.gf-label { display: flex; align-items: center; gap: 6px; padding: 12px 8px 6px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gf-label .ico { width: 13px; height: 13px; }
.gf-row { display: flex; align-items: center; width: 100%; min-height: 32px; padding-left: calc(var(--d, 0) * 14px); border-radius: var(--r-btn); color: var(--text-2); transition: background-color .15s, color .15s; }
.gf-row:hover { background: var(--hover); color: var(--text); }
.gf-row.is-on { background: var(--hover-strong); color: var(--text); }
.gf-note { gap: 8px; padding-right: 8px; padding-left: calc(var(--d, 0) * 14px + 26px); text-align: left; font-size: 13.5px; }
.gf-note .ico { width: 15px; height: 15px; color: var(--muted); }
.gf-note span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-note.is-stale { opacity: .6; }
.dirty-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.stale-dot { display: grid; color: var(--warn); }
.stale-dot .ico { width: 13px; height: 13px; color: var(--warn); }
.gf-fold { display: grid; place-items: center; width: 24px; height: 30px; color: var(--muted); flex: none; }
.gf-fold .ico { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.gf-fold.is-open .ico { transform: rotate(90deg); }
.gf-folder-name { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 32px; padding-right: 8px; text-align: left; font-size: 13.5px; font-weight: 500; }
.gf-folder-name .ico { width: 16px; height: 16px; color: var(--muted); }
.gf-folder-name span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-folder-name small { color: var(--muted); font: 500 11px var(--mono); }
.gf-client .gf-folder-name { font-weight: 600; }
.gf-none { padding: 6px 8px 6px calc(var(--d, 0) * 14px + 26px); color: var(--muted); font-size: 13px; }
.gf-special { display: flex; align-items: center; gap: 8px; margin: 0 8px 10px; height: 38px; padding: 0 10px; border-radius: var(--r-btn); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; transition: background-color .15s, border-color .15s; }
.gf-special:hover, .gf-special.is-on { background: var(--hover); border-color: var(--line-2); }
.gf-special span { flex: 1; text-align: left; }
.gf-special .ico { width: 16px; height: 16px; color: var(--warn); }

.g-main { display: flex; min-width: 0; min-height: 0; }
.g-pane { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.g-pane + .g-pane { border-left: 1px solid var(--line-2); }
.g-main:has(.g-pane + .g-pane) .g-pane:not(.is-focus) .g-tabs { opacity: .7; }
.g-tabs { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.g-tablist { flex: 1; min-width: 0; display: flex; align-items: flex-end; align-self: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.g-tab { display: flex; align-items: center; max-width: 220px; height: 40px; padding-left: 4px; border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: 0; color: var(--muted); flex: none; transition: color .15s, background-color .15s; }
.g-tab:hover { color: var(--text); background: var(--hover); }
.g-tab.is-on { color: var(--text); background: var(--bg); border-color: var(--line); margin-bottom: -1px; height: 41px; }
.g-tab-btn { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 4px 0 8px; height: 100%; font-size: 13px; font-weight: 500; }
.g-tab-btn .ico { width: 15px; height: 15px; flex: none; }
.g-tab-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-tab-x { display: grid; place-items: center; width: 24px; height: 24px; margin-right: 4px; border-radius: 6px; color: var(--muted); transition: background-color .15s, color .15s; }
.g-tab-x .ico { width: 14px; height: 14px; }
.g-tab-x:hover { background: var(--hover-strong); color: var(--text); }
.g-tab-x.is-dirty { position: relative; }
.g-tab-x.is-dirty .ico { opacity: 0; }
.g-tab-x.is-dirty::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.g-tab-x.is-dirty:hover .ico { opacity: 1; }
.g-tab-x.is-dirty:hover::after { display: none; }
.g-tabs-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.seg-mini button { height: 26px; padding: 0 10px; font-size: 12px; }
.seg-mini .seg-marker { height: 26px; }
.seg-mini button .ico { width: 14px; height: 14px; }
.g-doc { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding: 28px calc(40px - var(--sb)) 80px 40px; background: var(--bg); }
.g-note { max-width: 760px; margin: 0 auto; }
.g-crumbs { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.g-crumbs .ico { width: 13px; height: 13px; }
.g-title { width: 100%; margin: 8px 0 6px; padding: 2px 6px; margin-left: -6px; border: 0; border-radius: 6px; background: none; overflow-wrap: anywhere; outline: none; color: var(--text); font: 700 30px/1.25 "Noto Sans", sans-serif; letter-spacing: -.02em; transition: background-color .15s; }
.g-title[contenteditable="plaintext-only"]:hover { background: var(--hover); }
.g-title:focus { background: var(--hover); box-shadow: 0 0 0 2px var(--accent-soft); }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.g-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-3); }
.g-body { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.blk { position: relative; margin: 0 -10px; padding: 2px 10px; border-radius: 8px; cursor: text; transition: background-color .15s; }
.g-body:not(.is-read) .blk:hover { background: var(--hover); }
.g-body.is-read .blk { cursor: auto; }
.blk p, .blk ul, .blk ol { margin: 6px 0; }
.blk ul, .blk ol { padding-left: 22px; }
.blk h2 { margin: 18px 0 6px; font-size: 21px; color: var(--text); }
.blk h3 { margin: 16px 0 4px; font-size: 17px; color: var(--text); }
.blk h4 { margin: 14px 0 4px; font-size: 15px; color: var(--text); }
.blk code { font: 13px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--hover-strong); }
.blk-new p { margin: 8px 0; }
.blk-raw { display: block; width: 100%; min-height: 32px; padding: 6px 0; border: 0; resize: none; overflow: hidden; background: none; color: var(--text); font: 14px/1.7 var(--mono); }
.blk:has(.blk-raw) { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
.g-source { width: 100%; min-height: 60vh; padding: 0; border: 0; resize: none; background: none; color: var(--text); font: 14px/1.75 var(--mono); }
.wikilink { color: var(--accent-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: color .15s, border-color .15s; }
.wikilink:hover { color: #fff; border-color: var(--accent); }
.wikilink small { color: var(--muted); font-weight: 500; }
.wikilink.is-ghost { color: var(--muted); border-bottom-style: dashed; }
.g-save { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: min(560px, calc(100% - 32px)); padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--menu); box-shadow: var(--shadow); animation: rise .25s var(--ease); }
.g-save > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--warn); font-weight: 600; font-size: 13px; }
.g-save .ico { width: 15px; height: 15px; }
.g-empty { display: grid; justify-items: center; gap: 8px; margin-top: 18vh; color: var(--muted); text-align: center; }
.g-empty > .ico { width: 36px; height: 36px; }
.g-empty b { color: var(--text); font-size: 16px; }
.g-fhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.g-fhead h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-top: 4px; }
.g-fhead h2 .ico { width: 22px; height: 22px; color: var(--muted); }
.g-table-card { overflow-x: auto; }
.g-trow { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) 60px 110px 110px 90px; align-items: center; gap: 14px; width: 100%; min-width: 760px; padding: 12px 18px; text-align: left; font-size: 13.5px; transition: background-color .15s; }
.g-trow + .g-trow { border-top: 1px solid var(--line); }
button.g-trow:hover { background: var(--hover); }
.g-thead { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.g-trow > span:nth-child(2) { display: flex; flex-wrap: wrap; gap: 4px; }
.g-tname { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.g-tname .ico { width: 15px; height: 15px; color: var(--muted); }
.g-trow.is-stale { opacity: .6; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.g-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: left; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--panel); transition: border-color .15s; animation: fade .3s both; animation-delay: calc(var(--i) * 40ms); }
.g-card:hover { border-color: var(--line-3); }
.g-card p { flex: 1; color: var(--muted); font-size: 13px; }
.g-card.is-stale { opacity: .6; }
.g-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.g-orow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; }
button.g-orow:hover { background: var(--hover); }
.g-orow > span:nth-child(2) { flex: 1; display: grid; }
.g-orow small { color: var(--muted); }
.g-orow > .ico { color: var(--muted); }
.ghost-ico { color: var(--warn); display: grid; }

.gi-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tag-x { gap: 2px; padding-right: 2px; }
.tag-x button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: var(--muted); }
.tag-x button:hover { background: var(--hover-strong); color: var(--text); }
.tag-x .ico { width: 11px; height: 11px; }
.tag-add { width: 84px; height: 22px; padding: 0 6px; border: 1px dashed var(--line-3); border-radius: 5px; background: none; color: var(--text); font: 500 11.5px var(--mono); }
.tag-add:focus { border-style: solid; border-color: var(--accent); }
.gi-none { padding: 4px 8px; color: var(--muted); font-size: 13px; }
.gi-hist small { color: var(--muted); }

.g-peek, .g-suggest { position: fixed; top: 0; left: 0; z-index: 99; opacity: 0; pointer-events: none; transition: opacity .14s; }
.g-peek.is-on, .g-suggest.is-on { opacity: 1; pointer-events: auto; }
.g-peek { width: 320px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--menu); box-shadow: var(--shadow-lg); display: grid; gap: 6px; }
.pk-head { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.pk-head .ico { width: 13px; height: 13px; }
.g-peek > b { font-size: 15px; }
.pk-body { color: var(--text-2); font-size: 13px; line-height: 1.55; max-height: 120px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.pk-body p, .pk-body ul, .pk-body ol { margin: 0 0 6px; }
.pk-body h2, .pk-body h3, .pk-body h4 { font-size: 13px; margin: 0 0 4px; }
.g-peek > small { color: var(--muted); font-size: 11.5px; }
.g-suggest { width: 300px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--menu); box-shadow: var(--shadow); }
.sg-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; }
.sg-item span { display: grid; min-width: 0; }
.sg-item b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item small { color: var(--muted); font-size: 11.5px; }
.sg-item .ico { color: var(--muted); width: 16px; height: 16px; }
.sg-item.is-on, .sg-item:hover { background: var(--hover-strong); }

dialog.palette { width: min(640px, calc(100vw - 24px)); margin-top: 12vh; }
.pal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-head input { flex: 1; min-width: 0; height: 30px; border: 0; background: none; color: var(--text); font-size: 16px; }
.pal-body { max-height: 52vh; gap: 2px; padding-top: 8px; }
.pal-group { padding: 8px 8px 4px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; transition: background-color .12s; }
.pal-item > .ico:first-child { color: var(--muted); }
.pal-item span { flex: 1; display: grid; min-width: 0; }
.pal-item b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item small { color: var(--muted); font-size: 12px; }
.pal-item > .ico:last-child { opacity: 0; color: var(--accent-text); transition: opacity .12s; }
.pal-item.is-on { background: var(--hover-strong); }
.pal-item.is-on > .ico:last-child { opacity: 1; }
.pal-foot { gap: 14px; color: var(--muted); font-size: 12px; }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }
.pal-foot .ico { width: 14px; height: 14px; }
.pal-none { padding: 24px; text-align: center; color: var(--muted); }

@media (max-width: 1180px) {
	.guide { grid-template-columns: 240px minmax(0, 1fr) 270px; }
	.jump span { display: none; }
	.jump { min-width: 0; }
}
@media (max-width: 900px) {
	.guide { grid-template-columns: minmax(0, 1fr); position: relative; }
	.g-files, .g-info { position: absolute; top: 0; bottom: 0; z-index: 30; width: min(320px, 86vw); box-shadow: var(--shadow-lg); transition: transform .26s var(--ease); }
	.g-files { left: 0; transform: translateX(-102%); }
	.g-info { right: 0; transform: translateX(102%); }
	.show-files .g-files, .show-info .g-info { transform: none; }
	.gf-close, .gi-close, .g-files-btn, .g-info-btn { display: inline-grid; }
	.g-scrim { display: block; position: absolute; inset: 0; z-index: 25; background: var(--backdrop); opacity: 0; pointer-events: none; transition: opacity .22s; }
	.show-files .g-scrim, .show-info .g-scrim { opacity: 1; pointer-events: auto; }
	.g-main:has(.g-pane + .g-pane) .g-pane + .g-pane { display: none; }
	.g-doc { padding: 20px calc(16px - var(--sb)) 90px 16px; }
	.g-title { font-size: 24px; }
}
@media (max-width: 640px) {
	.jump { width: 38px; height: 38px; padding: 0; justify-content: center; }
	.jump kbd, .pal-head kbd, .pal-foot { display: none; }
	.seg-mini button { padding: 0 8px; }
	.g-tab { max-width: 150px; }
}
.pal-head input:focus-visible { outline: none; }

::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: none; }
::view-transition-group(root) { animation-duration: .18s; }
@keyframes vt-out { to { opacity: 0; } }

.gf-system .gf-folder-name { color: var(--accent-text); font-weight: 700; }
.gf-system .gf-folder-name > .ico:first-child { color: var(--accent-text); }
.gf-lock { display: grid; color: var(--muted); }
.gf-lock .ico { width: 13px; height: 13px; color: var(--muted); }
.gf-kit .ico { color: var(--accent-text); }
.gf-kit span { font: 500 12.5px var(--mono); }

.g-title-static { cursor: default; }
.g-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; color: var(--text-2); }
.g-banner > .ico { flex: none; color: var(--accent-text); }
.g-banner b { color: var(--text); font-weight: 600; }
.g-banner > span:not(.avatar):not(.grow) { flex: 1; min-width: 0; }
.g-banner.is-claim { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.g-banner.is-changed { border-color: color-mix(in srgb, #60a5fa 45%, transparent); background: rgba(96, 165, 250, .1); }
.g-banner.is-changed > .ico { color: #93c5fd; }
.g-banner.is-stale > .ico { color: var(--warn); }
.g-banner .btn { flex: none; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); }
.verified .ico { width: 14px; height: 14px; }
.warn-text { color: var(--warn); }
.g-save.is-proposal > span:first-child { color: var(--accent-text); }
.g-body.is-authors .blk { display: grid; grid-auto-flow: column; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; padding: 8px 10px; }
.g-body.is-authors .blk + .blk { border-top: 1px dashed var(--line); border-radius: 0; }
.blk-who { display: flex; align-items: flex-start; gap: 8px; padding-top: 8px; color: var(--muted); }
.blk-who small { font-size: 11.5px; line-height: 1.35; }
.g-json { margin: 0; padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--code); font: 13px/1.65 var(--mono); color: var(--text-2); overflow-x: auto; }
.g-kit { display: grid; gap: 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.g-kit-cover { display: grid; place-items: center; height: 140px; }
.g-kit-cover img { height: 60px; }
.g-kit-cover img.is-wide { height: auto; width: 40%; }
.g-kit-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.g-kit-row > b { color: var(--muted); font-weight: 600; }
.g-kit-row > span { display: flex; flex-wrap: wrap; gap: 6px; }
.g-kit-row i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); }
.g-kit-row em { font-style: normal; font-size: 16px; padding: 2px 10px; border-radius: 6px; background: var(--hover); }

.gi-tabs { margin: 0 12px 6px; display: flex; flex: none; }
.gi-tabs button { flex: 1; justify-content: center; height: 30px; padding: 0 8px; font-size: 12.5px; }
.gi-tabs .seg-marker { height: 30px; }
.gi-pad { padding: 4px 16px; }
.gi-rows { display: grid; }
.gi-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.gi-row .gi-k { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.gi-row .gi-k .ico { width: 14px; height: 14px; }
.gi-row .gi-v { min-width: 0; font-size: 13.5px; color: var(--text); }
.gi-row .gi-v .switch { display: block; }
.gi-dd { display: block; }
.gi-dd .dd-menu { min-width: 200px; }
.gi-pick { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--input); text-align: left; font-size: 13.5px; transition: border-color .15s, background-color .15s; }
.gi-pick:hover { border-color: var(--line-3); background: var(--hover); }
.gi-pick > .ico:last-child { margin-left: auto; width: 15px; height: 15px; color: var(--muted); }
.gi-pick .avatar { width: 22px; height: 22px; font-size: 9px; }
.gi-map { margin: 14px 8px 4px; width: calc(100% - 16px); justify-content: center; }
.gi-group { padding: 8px 4px 12px; }
.gi-group + .gi-group { border-top: 1px solid var(--line); }
.gi-title { display: flex; align-items: center; gap: 6px; padding: 6px 4px 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.gi-title small { color: var(--muted); font: 500 11px var(--mono); }
.gi-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: var(--r-btn); text-align: left; transition: background-color .15s; }
button.gi-link:hover { background: var(--hover); }
.gi-link > .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.gi-link > span { flex: 1; min-width: 0; display: grid; }
.gi-link b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-link small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-link.is-ghost b { color: var(--muted); }
.gi-link.is-ghost small { color: var(--warn); }
.gi-link .btn { flex: none; height: 28px; padding: 0 10px; font-size: 12px; }
.gi-hist { display: flex; align-items: center; gap: 10px; padding: 10px 6px; }
.gi-hist + .gi-hist { border-top: 1px solid var(--line); }
.gi-hist > span:not(.avatar):not(.badge) { flex: 1; display: grid; font-size: 13px; }
.gi-hist .btn { height: 28px; padding: 0 10px; font-size: 12px; }


.dots { display: inline-flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #cdbcff; animation: dot-wave 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .14s; }
.dots i:nth-child(3) { animation-delay: .28s; }
@keyframes dot-wave { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-9px); opacity: 1; } }
.gf-ph { gap: 8px; padding: 6px 8px 6px calc(var(--d, 0) * 14px + 26px); }
.g-title-ph { margin: 14px 0 12px; }
.g-body-ph { display: grid; gap: 12px; margin-top: 26px; }

/* File tree shared by the Field Guide and the Map: type icons, client colour down each branch. */
.ft { --row: 32px; }
.ft-label { display: flex; align-items: center; gap: 6px; padding: 12px 8px 6px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ft-label .ico { width: 13px; height: 13px; }
.ft-row { display: flex; align-items: center; width: 100%; min-height: var(--row); border-radius: var(--r-btn); color: var(--text-2); text-align: left; transition: background-color .15s, color .15s; }
.ft-row:hover { background: var(--hover); color: var(--text); }
.ft-row.is-on { background: var(--hover-strong); color: var(--text); }
.ft-item { gap: 8px; padding: 0 8px 0 26px; font-size: 13.5px; }
.ft-item > .ico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.ft-item.is-on > .ico { color: var(--accent-text); }
.ft-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-item > span small { margin-left: 6px; color: var(--muted); font-size: 11.5px; }
.ft-item code { font: 500 12.5px var(--mono); color: var(--text-2); }
.ft-item.is-stale > span { color: var(--muted); }
.ft-fold { display: grid; place-items: center; width: 24px; height: var(--row); flex: none; color: var(--muted); }
.ft-fold .ico { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ft-fold.is-open .ico { transform: rotate(90deg); }
.ft-name { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: var(--row); padding-right: 8px; text-align: left; font-size: 13.5px; font-weight: 500; }
.ft-name > .ico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.ft-name > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-name > small, .ft-scope { color: var(--muted); font: 500 11px var(--mono); }
.ft-scope { flex: none; padding: 1px 5px; border-radius: 4px; background: rgba(95, 212, 196, .12); color: #8fe6da; }
.ft-place .ft-name { font-weight: 600; color: var(--text); }
.ft-place .ft-name > .ico { color: var(--c); }
.ft-place.is-system .ft-name > span { color: var(--c); }
.ft-lock { display: grid; color: var(--muted); }
.ft-lock .ico { width: 13px; height: 13px; }
.ft-flag { display: grid; flex: none; color: var(--muted); }
.ft-flag .ico { width: 13px; height: 13px; }
.ft-flag.is-warn .ico { color: var(--warn); }
.ft-kids { position: relative; margin-left: 11px; padding-left: 4px; overflow: hidden; }
.ft-kids::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 6px; width: 1px; background: color-mix(in srgb, var(--c, var(--line-3)) 38%, transparent); }
.ft-kids[hidden] { display: none; }
.ft-kids .ft-item { padding-left: 24px; }
.ft-sharedref .ft-name > .ico { color: #5fd4c4; }
.ft-kit > .ico { color: var(--c) !important; }
.ft-none { padding: 6px 8px 6px 26px; color: var(--muted); font-size: 13px; }
.ft-marks { margin-bottom: 4px; }
[data-ft-rename] { outline: 1px solid var(--primary); outline-offset: 2px; border-radius: 3px; background: var(--input); cursor: text; text-overflow: clip !important; }
.gf-new .btn { gap: 6px; }
.gf-new .btn .ico:last-child { width: 14px; height: 14px; color: var(--muted); }
.gf-new .dd-menu { left: auto; right: 0; min-width: 200px; transform-origin: top right; }

/* Right-click menu. */
.ctx { position: fixed; top: 0; left: 0; z-index: 90; min-width: 220px; max-width: 280px; padding: 6px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--menu); box-shadow: var(--shadow); opacity: 0; scale: .97; transform-origin: top left; pointer-events: none; transition: opacity .14s, scale .14s var(--ease); }
.ctx.is-on { opacity: 1; scale: 1; pointer-events: auto; }
.ctx.is-measure { transition: none; visibility: hidden; }
.ctx-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ctx-head .ico { width: 14px; height: 14px; flex: none; }
.ctx-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 4px 10px; border-radius: calc(var(--r-card) - 4px); text-align: left; font-size: 13.5px; color: var(--text); transition: background-color .12s; }
.ctx-item:hover, .ctx-item:focus-visible { background: var(--hover-strong); outline: none; }
.ctx-item .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ctx-item span { flex: 1; }
.ctx-item small { color: var(--muted); }
.ctx-item.is-danger, .ctx-item.is-danger .ico { color: var(--danger); }
.ctx-item.is-danger:hover { background: var(--danger-soft); }
.ctx-item[disabled] { opacity: .55; cursor: default; }
.ctx-item[disabled]:hover { background: none; }
.ctx hr { border: 0; height: 1px; margin: 4px 6px; background: var(--line); }

/* Breadcrumb: each part opens, its arrow lists what sits beside it. */
.g-crumbs { flex-wrap: wrap; gap: 0; margin-left: -6px; }
.crumb { display: inline-flex; align-items: center; }
.crumb-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 6px; border-radius: var(--r-btn); color: var(--muted); font-size: 12.5px; transition: background-color .15s, color .15s; }
.crumb-btn:hover { background: var(--hover); color: var(--text); }
.crumb-btn .ico { width: 14px; height: 14px; }
.crumb-more { display: grid; place-items: center; width: 20px; height: 28px; border-radius: var(--r-btn); color: var(--muted); transition: background-color .15s, color .15s; }
.crumb-more:hover, .is-open > .crumb-more { background: var(--hover); color: var(--text); }
.crumb-more .ico { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.is-open > .crumb-more .ico { transform: rotate(180deg); }
.crumb-dd .dd-menu { min-width: 220px; max-height: 320px; overflow-y: auto; }
.crumb-dd .dd-item { font-size: 13.5px; }
.crumb-dd .dd-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.crumb-sep { display: grid; color: var(--line-3); }
.crumb-sep .ico { width: 13px; height: 13px; }
.dd-none { display: block; padding: 8px 10px; color: var(--muted); font-size: 13px; }

/* A place's page. */
.pv { max-width: 980px; }
.pv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 6px; }
.pv-head h1 { font-size: 28px; line-height: 1.2; }
.pv-head small { color: var(--muted); }
.pv-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); flex: none; }
.pv-ico .ico { width: 24px; height: 24px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pv-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--panel); text-align: left; transition: border-color .15s, background-color .15s; animation: pv-in .32s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
.pv-tile:hover { border-color: var(--line-3); background: var(--panel-2); }
.pv-tile > .ico { width: 20px; height: 20px; color: var(--c); flex: none; }
.pv-tile span { display: grid; min-width: 0; }
.pv-tile b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-tile small { color: var(--muted); font-size: 12.5px; }
.pv .sub-head { gap: 8px; flex-wrap: wrap; }
.pv .sub-head h3 { display: flex; align-items: center; gap: 8px; }
.pv .sub-head h3 .ico { width: 16px; height: 16px; color: #5fd4c4; }
.pv-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-bottom: 1px solid var(--line); }
.pv-rule:last-child { border-bottom: 0; }
.pv-rule-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; padding: 6px 8px; border-radius: var(--r-btn); text-align: left; transition: background-color .15s; }
.pv-rule-main:hover { background: var(--hover); }
.pv-rule-main > .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pv-rule-main span { display: grid; }
.pv-rule-main small { color: var(--muted); font-size: 12.5px; }
.pv-rule.is-beaten .pv-rule-main b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-3); }
.pv-win { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; }
.pv-win .ico { width: 14px; height: 14px; }
.pv-win b { font-weight: 600; }

/* Shared banners, links and files. */
.g-banner.is-shared { border-color: rgba(95, 212, 196, .35); background: rgba(95, 212, 196, .08); }
.g-banner.is-shared > .ico { color: #5fd4c4; }
.g-banner.is-ref > .ico { color: var(--accent-text); }
.g-url { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 6px 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input); }
.g-url > .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.g-url input { flex: 1; min-width: 0; height: 32px; border: 0; background: none; color: var(--text); font: 500 13.5px var(--mono); }
.g-file { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; margin-top: 8px; }
.g-file img { max-width: min(100%, 520px); max-height: 420px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); }
.g-file-ico { display: grid; place-items: center; width: 120px; height: 150px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); }
.g-file-ico .ico { width: 40px; height: 40px; }
.g-file-meta { display: grid; gap: 4px; justify-items: start; }
.g-file-meta small { color: var(--muted); margin-bottom: 6px; }

/* Place picker. */
.pick { width: min(520px, calc(100vw - 32px)); }
.pick .dlg-body { gap: 10px; }
.pick-all { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); }
.pick-all[hidden] { display: none; }
.pick-all span { display: grid; flex: 1; }
.pick-all small { color: var(--muted); font-size: 12.5px; }
.pick-list { display: grid; gap: 1px; max-height: 46vh; overflow-y: auto; transition: opacity .2s; }
.pick-list.is-off { opacity: .4; pointer-events: none; }
.pick-row { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px 4px calc(10px + var(--d, 0) * 18px); border-radius: var(--r-btn); text-align: left; transition: background-color .12s; }
.pick-row:hover { background: var(--hover); }
.pick-row > .ico:first-child { width: 16px; height: 16px; color: var(--c); flex: none; }
.pick-row span { display: grid; flex: 1; }
.pick-row small { color: var(--muted); font-size: 12px; }
.pick-row > .ico:last-child { width: 16px; height: 16px; color: var(--accent); opacity: 0; transition: opacity .15s; }
.pick-row.is-on { background: var(--hover-strong); }
.pick-row.is-on > .ico:last-child { opacity: 1; }

/* Map under the top bar, shapes in the legend. */

.ft-row.is-ctx { box-shadow: inset 0 0 0 1px var(--line-3); background: var(--hover); }
.crumb-dd .dd-menu { color: var(--text); }
.pick-search { width: 100%; }

/* Documents: type icon with the shared mark */
.dico { position: relative; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; color: var(--muted); }
.dico > .ico { width: 16px; height: 16px; }
.dico-share { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); color: #5fd4c4; }
.dico-share .ico { width: 9px; height: 9px; stroke-width: 2.6; }
.ft-item.is-on .dico, .g-tname .dico { color: var(--accent-text); }
.ft-item.is-inherited { color: var(--muted); }
.ft-item.is-inherited > span { font-style: normal; }
.ft-n { flex: none; color: var(--muted); font: 11px var(--mono); }
.ft-folder.is-custom .ft-name > .ico { color: #e9c46a; }
.g-tname .dico, .g-card b .dico, .pv-rule-main .dico, .gi-link .dico, .g-orow .dico { margin-right: 2px; }
.g-card b { display: flex; align-items: center; gap: 8px; }
.pk-head .dico { width: 14px; height: 14px; }

/* Shared and transcript banners */
.g-banner.is-shared > .ico { color: #5fd4c4; }
.g-banner.is-source > .ico { color: #e9c46a; }
.extlink { color: var(--accent-text); font-weight: 600; text-decoration: none; transition: color .15s; }
.extlink:hover { color: var(--text); }

/* Edit: the document's Markdown rows, numbered */
.g-edit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--code); overflow: hidden; }
.g-gutter { display: grid; align-content: start; padding: 14px 10px 14px 14px; border-right: 1px solid var(--line); color: var(--muted); font: 12px/1.75 var(--mono); text-align: right; user-select: none; }
.g-gutter span { display: block; }
.g-edit { position: relative; }
.g-edit .g-source, .g-mirror { min-height: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.75 var(--mono); }
.g-edit .g-source { field-sizing: content; overflow: hidden; outline: none; }
.g-mirror { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; box-sizing: border-box; }

/* Details: the agent record */
.gi-note { display: flex; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.gi-note .ico { flex: none; width: 16px; height: 16px; color: var(--accent-text); }
.gi-json { font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* Branding: each group set here or inherited */
.bv { display: grid; padding: 4px 0; }
.bv-row { display: grid; grid-template-columns: 36px minmax(160px, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 14px; padding: 12px 18px; animation: rowIn .3s both; animation-delay: calc(var(--i) * 30ms); }
.bv-row + .bv-row { border-top: 1px solid var(--line); }
.bv-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--hover); color: var(--accent-text); }
.bv-row.is-inherited .bv-ico { color: var(--muted); }
.bv-name { display: grid; gap: 2px; }
.bv-name b { font-size: 14px; }
.bv-name small { color: var(--muted); font-size: 12.5px; }
.bv-files { display: flex; flex-wrap: wrap; gap: 6px; }
.bv-file { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); overflow: hidden; }
.bv-file img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.bv-own { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.g-trow.is-files { grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) 80px 70px 110px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 640px) {
	.bv-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
	.bv-files { grid-column: 2 / -1; }
}
.ft-item > .dico, .gi-link > .dico, .pv-rule-main > .dico, .g-orow > .dico, .pk-head > .dico { display: inline-grid; flex: none; min-width: 0; width: 16px; overflow: visible; }
.bv-swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.bv-font { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--hover); font-size: 12.5px; color: var(--text-2); }
.bv-voice { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.dico-share { right: -6px; bottom: -5px; width: 12px; height: 12px; background: #5fd4c4; color: var(--bg); }
.dico-share .ico { width: 8px; height: 8px; stroke-width: 3; }
