/* The preview's top bar (version dropdown, Edit page, Changes, Manage versions) and the editing UI.
   Shared by the site pages and the concept pages (concepts/*.html); comes off at launch with the bar. */
.verbar { display: flex; align-items: center; gap: 12px; padding: 8px 56px; background: #000; color: #9A917F; font-size: 12px; letter-spacing: .06em; border-bottom: 1px solid #222; flex-wrap: wrap; }
.verbar select { max-width: 100%; min-width: 0; }
.verbar select { background: #141311; color: #F2EDE4; border: 1px solid #3A3631; padding: 4px 8px; font: 400 13px var(--sans); }
.verbar-note { color: #6E675C; }
.ed-quiet { all: unset; cursor: pointer; color: #9A917F; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ed-on, .ed-on * { cursor: pointer !important; }
.ed-hover { outline: 2px dashed #7CC9A0 !important; outline-offset: 3px; cursor: text !important; }
.ed-flash { outline: 2px solid #7CC9A0 !important; outline-offset: 3px; transition: outline-color 1s; }
.ed-active { outline: 2px solid #7CC9A0 !important; outline-offset: 3px; background: rgba(124,201,160,.08) !important; caret-color: #7CC9A0; }
.ed-active:focus { outline: 2px solid #7CC9A0 !important; }
.ed-pop { border-color: #7CC9A0; }
.ed-pop #ed-pub { background: #7CC9A0; }
.fb-hover { outline: 2px dashed #E8B24A !important; outline-offset: 2px; }
.fb-hl { outline: 2px solid #E8B24A !important; outline-offset: 2px; }
.fb-pop { position: absolute; z-index: 1000; width: min(440px, calc(100vw - 24px)); background: #141311; color: #F2EDE4; border: 1px solid #E8B24A; padding: 14px; display: flex; flex-direction: column; gap: 10px; font: 14px/1.4 var(--sans); box-shadow: 0 12px 40px rgba(0,0,0,.5); cursor: auto !important; }
.fb-pop * { cursor: auto !important; }
.fb-pop .fb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-pop label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9A917F; }
.fb-pop select, .fb-pop input, .fb-pop textarea { background: #0C0B0A; color: #F2EDE4; border: 1px solid #3A3631; padding: 6px 8px; font: 14px var(--sans); border-radius: 0; }
.fb-pop input { width: 70px; }
.fb-pop textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.fb-pop .fb-ctx { font: 12px var(--mono); color: #9A917F; }
.fb-pop button { background: #E8B24A; color: #0C0B0A; border: 0; padding: 8px 14px; font: 500 13px var(--sans); cursor: pointer !important; }
.fb-pop #fb-cancel, .fb-pop #ed-cancel { background: transparent; color: #9A917F; border: 1px solid #3A3631; }
.fb-pop #fb-msg { font-size: 12px; color: #9A917F; }
/* editing: names, conflicts, toast, changes panel */
.fb-pop .ghost, .fb-pop #fb-cancel, .fb-pop #ed-cancel { background: transparent; color: #9A917F; border: 1px solid #3A3631; }
.fb-pop .ed-name { background: transparent; color: #F2EDE4; border: 1px solid #3A3631; }
.fb-pop .ed-name.on { background: #F2EDE4; color: #0C0B0A; border-color: #F2EDE4; }
.fb-pop .ed-quiet { background: none; padding: 0; color: #9A917F; font: 12px var(--sans); text-decoration: underline; }
.ed-theirs { margin-top: 8px; padding: 10px; border-left: 2px solid #E8B24A; color: #F2EDE4; font: 14px/1.4 var(--sans); }
.ed-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; display: flex; gap: 16px; align-items: center; background: #F2EDE4; color: #0C0B0A; padding: 12px 16px; font: 500 14px var(--sans); box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: calc(100vw - 32px); box-sizing: border-box; }
.ed-toast button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#ch-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050; width: min(420px, 100vw); box-sizing: border-box; overflow-y: auto; background: #141311; color: #F2EDE4; border-left: 1px solid #3A3631; padding: 20px 22px 40px; font: 14px/1.45 var(--sans); box-shadow: -12px 0 40px rgba(0,0,0,.5); }
#ch-panel h3 { margin: 22px 0 6px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9A917F; }
#ch-panel ul { list-style: none; margin: 0; padding: 0; }
#ch-panel a { color: #E8B24A; }
.ch-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.ch-head button, .ch-act button { all: unset; cursor: pointer; color: #E8B24A; font-size: 13px; }
.ch-sub { color: #9A917F; font-size: 13px; margin: 8px 0 0; }
.ch-item { border-top: 1px solid #2A2724; padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.ch-meta { font-size: 12px; color: #9A917F; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ch-meta b { color: #F2EDE4; font-weight: 500; }
.ch-tag { margin-left: auto; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid #3A3631; padding: 1px 6px; }
.ch-tag.live { color: #7CC9A0; border-color: #2F5D3A; }
.ch-old { color: #9A917F; text-decoration: line-through; text-decoration-color: #6E675C; }
.ch-why { color: #9A917F; font-size: 12px; }
.ch-act { display: flex; gap: 16px; margin-top: 2px; font-size: 13px; }
.ch-empty { color: #9A917F; padding: 8px 0; }

/* concept pages: the bar is fixed above the page and their headers sit below it */
html.vb-fixed body { padding-top: var(--vb-h, 44px); }
html.vb-fixed .verbar { position: fixed; top: 0; left: 0; right: 0; z-index: 900; }
html.vb-fixed header { top: var(--vb-h, 44px); }
@media (max-width: 900px) {
  .verbar { padding: 8px 20px; gap: 8px; }
  .verbar > span:first-child, .verbar-note { display: none; }
  .verbar select { flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
}

/* editing toolbar: fixed to the right edge, stays in reach while scrolling */
#ed-tools { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 950; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: rgba(20,19,17,.94); border: 1px solid #3A3631; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
#ed-tools > button:not(.ed-quiet) { all: unset; cursor: pointer; box-sizing: border-box; width: 72px; padding: 10px 4px 8px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #F2EDE4; font: 500 11px/1.2 var(--sans, system-ui), sans-serif; text-align: center; }
#ed-tools .ed-grip { align-self: center; width: 32px; height: 14px; margin: -2px 0 2px; cursor: grab; touch-action: none; background: radial-gradient(circle, #6B645A 1.5px, transparent 2px) 0 0 / 8px 7px; }
#ed-tools .ed-grip:active { cursor: grabbing; }
#ed-tools > button:not(.ed-quiet):hover { background: #26231F; }
#ed-tools > button:focus-visible { outline: 2px solid #E8B24A; outline-offset: 2px; }
#ed-tools #ed-toggle { color: #E8B24A; }
#ed-tools #ed-toggle.on { background: #7CC9A0; color: #0C0B0A; }
#ed-tools #vm-delete { color: #C9C1B2; }
#ed-tools #vm-delete[hidden], #ed-tools #ed-who[hidden] { display: none; }
#ed-tools .ed-quiet { all: unset; cursor: pointer; display: block; width: 72px; text-align: center; color: #9A917F; font: 10px/1.3 var(--sans, system-ui), sans-serif; text-decoration: underline; text-underline-offset: 2px; padding-bottom: 4px; }
.ed-pin { all: unset; cursor: pointer; position: absolute; z-index: 940; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E8B24A; color: #0C0B0A; font: 600 12px var(--sans, system-ui), sans-serif; box-shadow: 0 0 0 3px rgba(232,178,74,.3), 0 4px 12px rgba(0,0,0,.4); }
.ed-pin:focus-visible { outline: 2px solid #F2EDE4; outline-offset: 2px; }
@media (max-width: 700px) { #ed-tools { top: auto; bottom: 12px; right: 12px; transform: none; flex-direction: row; } #ed-tools > button:not(.ed-quiet) { width: 64px; } #ed-tools .ed-quiet { display: none; } #ed-tools { top: auto !important; } #ed-tools .ed-grip { display: none; } }

#ed-tools a#vm-archive { all: unset; cursor: pointer; display: block; width: 72px; text-align: center; color: #9A917F; font: 10px/1.3 var(--sans, system-ui), sans-serif; text-decoration: underline; text-underline-offset: 2px; padding: 2px 0 4px; }
#ed-tools a#vm-archive:hover { color: #F2EDE4; }
@media (max-width: 700px) { #ed-tools a#vm-archive { display: none; } }

/* Archive thumbnails (?thumb=1): the page without the preview tools. */
html.vb-thumb #verbar, html.vb-thumb #ed-tools, html.vb-thumb .concept, html.vb-thumb .ed-pin { display: none !important; }
/* No editor unlocked in this browser (see verbar.js): the page without the preview tools. */
html.vb-off #verbar, html.vb-off #ed-tools, html.vb-off .concept, html.vb-off .ed-pin { display: none !important; }

/* Update mode (update.js): Update, Save and Cancel live in the top bar, which stays in view while scrolling. */
.verbar .up { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verbar .up button { font: 500 13px var(--sans, system-ui, sans-serif); letter-spacing: 0; padding: 5px 14px; border-radius: 6px; border: 1px solid #3A3631; background: #141311; color: #F2EDE4; cursor: pointer; }
.verbar .up button:hover { border-color: #2BA9E0; }
.verbar .up #up-save { background: #2BA9E0; border-color: #2BA9E0; color: #041019; } .verbar .up #up-save:disabled { background: #141311; border-color: #3A3631; color: #6E675C; cursor: default; }
.verbar .up .quiet { background: none; border-color: transparent; color: #9A917F; text-decoration: underline; text-underline-offset: 3px; padding: 5px 4px; }
.verbar .up button:focus-visible { outline: 2px solid #2BA9E0; outline-offset: 2px; }
#up-msg { color: #C2CBDC; font-size: 12px; letter-spacing: 0; } #up-msg.bad { color: #FF9C8A; }
.up-on .up-field { outline: 1px dashed rgba(43,169,224,.55); outline-offset: 4px; border-radius: 2px; cursor: text; min-width: 1ch; }
.up-on .up-field:hover { outline-color: #2BA9E0; } .up-on .up-field:focus { outline: 2px solid #2BA9E0; background: rgba(43,169,224,.08); caret-color: #2BA9E0; }
.up-on .up-field.up-dirty { outline: 2px solid #E8B24A; } .up-on .up-field.up-failed { outline: 2px solid #FF6B57; }

/* The editor's own question box (update.js), in place of the browser's confirm dialog. */
.up-ask { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(3,5,12,.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.up-ask > div { width: min(400px, 100%); padding: 28px; background: #0B1020; border: 1px solid #27345F; border-radius: 14px; color: #F3F6FB; font: 400 16px/1.5 var(--sans, system-ui, sans-serif); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.up-ask p { margin: 0 0 22px; font-size: 18px; }
.up-ask > div > div { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.up-ask button { font: 500 15px var(--sans, system-ui, sans-serif); padding: 10px 18px; border-radius: 8px; border: 1px solid #27345F; background: transparent; color: #F3F6FB; cursor: pointer; }
.up-ask button[data-a="yes"] { background: #2BA9E0; border-color: #2BA9E0; color: #041019; }
.up-ask button:focus-visible { outline: 2px solid #2BA9E0; outline-offset: 2px; }

/* The editor bar on the selected page, in that page's design (update.js adds .verbar-up): the header's glass,
   its hairline and pill buttons, the board's blue. */
.verbar.verbar-up { gap: 16px; padding: 9px var(--gut, 56px); background: rgba(6,9,20,.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid #172042; color: #8E9BB6; font: 400 13px/1.4 var(--sans, Geist, system-ui, sans-serif); letter-spacing: 0; flex-wrap: nowrap; }
.verbar.verbar-up::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(43,169,224,.55) 18%, rgba(43,169,224,.55) 82%, transparent); opacity: .5; transition: opacity .3s; }
.verbar.verbar-up.is-on::after { opacity: 1; }
.verbar-up .up-tag { display: inline-flex; align-items: center; gap: 9px; font: 500 11px var(--mono, 'Geist Mono', monospace); letter-spacing: .16em; text-transform: uppercase; color: #C2CBDC; white-space: nowrap; }
.verbar-up .up-tag i { width: 7px; height: 7px; border-radius: 50%; background: #3B4A75; transition: background .3s, box-shadow .3s; }
.verbar-up.is-on .up-tag i { background: #2BA9E0; box-shadow: 0 0 0 4px rgba(43,169,224,.18), 0 0 14px rgba(43,169,224,.8); }
.verbar.verbar-up .up { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }
.verbar-up #up-msg { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8E9BB6; font-size: 13px; } .verbar-up #up-msg.bad { color: #FFB4A6; }
.verbar.verbar-up .up button { font: 500 13px var(--sans, Geist, system-ui, sans-serif); padding: 7px 16px; border-radius: 999px; border: 1px solid #27345F; background: transparent; color: #F3F6FB; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.verbar.verbar-up .up #up-start { border-color: #2BA9E0; } .verbar.verbar-up .up #up-start:hover { background: #2BA9E0; color: #041019; }
.verbar.verbar-up .up #up-save { background: #2BA9E0; border-color: #2BA9E0; color: #041019; } .verbar.verbar-up .up #up-save:hover:not(:disabled) { background: #8FD6F5; border-color: #8FD6F5; }
.verbar.verbar-up .up #up-save:disabled { background: transparent; border-color: #27345F; color: #5E6B8C; }
.verbar.verbar-up .up .quiet { border-color: transparent; color: #8E9BB6; text-decoration: none; padding: 7px 10px; } .verbar.verbar-up .up .quiet:hover { color: #F3F6FB; border-color: transparent; }
.verbar.verbar-up .up button[hidden] { display: none; }
@media (max-width: 900px) { .verbar.verbar-up { padding: 8px 20px; gap: 10px; } .verbar-up .up-tag { font-size: 10px; letter-spacing: .12em; } }
@media (max-width: 600px) { .verbar.verbar-up { flex-wrap: wrap; } .verbar-up #up-msg { flex: 1 1 100%; order: 3; white-space: normal; } .verbar-up #up-msg:empty { display: none; } .verbar.verbar-up .up { flex-wrap: wrap; } .verbar.verbar-up .up button { padding: 7px 12px; } }

/* Gate plate (2026-11-23): the bar's buttons and the confirm dialog's buttons are the same cut-corner plate as the
   site's own buttons (concepts/board.css). The quiet text links stay as links. */
.verbar .up button:not(.quiet), .up-ask button { --pe: #27345F; --pf: #0B1020; --cut: 8px; position: relative; isolation: isolate; border: 0; border-radius: 0; background: none; color: #F3F6FB; font: 500 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; }
.verbar .up button:not(.quiet) { padding: 9px 14px; } .up-ask button { min-height: 44px; padding: 0 18px; }
.verbar .up button:not(.quiet)::before, .up-ask button::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border: 1px solid transparent; pointer-events: none;
  background: linear-gradient(135deg, var(--pe) calc(var(--cut) * .7071 + 1px), transparent 0) border-box, linear-gradient(315deg, var(--pe) calc(var(--cut) * .7071 + 1px), transparent 0) border-box, linear-gradient(var(--pf), var(--pf)) padding-box, var(--pe) border-box;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.verbar .up button:not(.quiet):hover, .up-ask button:hover { --pe: #2BA9E0; }
.verbar .up #up-save, .up-ask button[data-a="yes"] { --pe: #2BA9E0; --pf: #2BA9E0; background: none; color: #041019; }
.verbar .up #up-save:hover, .up-ask button[data-a="yes"]:hover { --pe: #8FD6F5; --pf: #8FD6F5; }
.verbar .up #up-save:disabled { --pe: #27345F; --pf: #0B1020; background: none; color: #8E9BB6; }
