.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-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); }
.dirty-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }

.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-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); }
.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; }

.gi-none { padding: 4px 8px; color: var(--muted); font-size: 13px; }

.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; }

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

.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; }
.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; }

.gi-pad { padding: 4px 16px; }

.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-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 { color: var(--muted); font: 500 11px var(--mono); }
.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-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-none { padding: 6px 8px 6px 26px; color: var(--muted); font-size: 13px; }
[data-ft-rename] { outline: 1px solid var(--primary); outline-offset: 2px; border-radius: 3px; background: var(--input); cursor: text; text-overflow: clip !important; }

/* 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-sep { display: grid; color: var(--line-3); }
.crumb-sep .ico { width: 13px; height: 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); }

/* 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); }

/* Place picker. */
.pick { width: min(520px, calc(100vw - 32px)); }
.pick .dlg-body { gap: 10px; }
.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); }

/* 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-folder.is-custom .ft-name > .ico { color: #e9c46a; }
.g-tname .dico, .pv-rule-main .dico { margin-right: 2px; }

/* Shared and source 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; }

/* Branding: each group set here or inherited */
.bv { display: grid; padding: 4px 0; }
.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); } }

.ft-item > .dico, .pv-rule-main > .dico { display: inline-grid; flex: none; min-width: 0; width: 16px; overflow: visible; }
.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; }

/* Deleting a space with what it holds: the warning, the lists, the typed name */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.ds-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); color: var(--text); font-size: 13px; line-height: 1.5; }
.ds-warn > .ico { flex: none; width: 18px; height: 18px; color: var(--danger); margin-top: 1px; }
.ds-warn b { color: var(--danger); }
.ds-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ds-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds-list li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-list .ico { flex: none; width: 15px; height: 15px; color: var(--muted); }
.ds-list small { margin-left: auto; color: var(--muted); font-size: 11.5px; flex: none; }
.ds-list .ds-more { color: var(--muted); padding-left: 23px; }
.ds-names { margin: 0; font-size: 13px; color: var(--text-2); }
.ds-type { margin-top: 16px; }
.ds-type b { color: var(--text); }
.hold-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 2px; padding: 0 5px; border-radius: 10px; background: rgb(255 255 255 / .2); font: 600 11.5px var(--mono); font-style: normal; font-variant-numeric: tabular-nums; }
.ds-sync { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.5; }
.ds-sync > .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.ds-cascade { margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; }
