/* Code Lab project bar and its tools (code-lab-projects.js, code-lab-tools.js) */
.lab-pbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.lab-pbar-tools { flex-wrap: wrap; }
.lab-pbar::-webkit-scrollbar { display: none; }
.lab-pbar-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lab-pbtn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 34px; padding: 0 11px; cursor: pointer;
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 9px; white-space: nowrap;
}
.lab-pbtn:hover { border-color: var(--accent); }
.lab-pbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lab-pbtn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lab-pbtn-proj { max-width: 260px; background: var(--code-bg); }
.lab-pbtn-proj .lab-pname { overflow: hidden; text-overflow: ellipsis; }
.lab-psync { display: inline-flex; color: var(--text-muted); }
.lab-psync svg { width: 16px; height: 16px; }
.lab-psync.is-ok { color: #34d399; }
.lab-psync.is-busy { color: var(--accent); }
.lab-psync.is-err { color: #fbbf24; }
/* Auto save + continue later (2026-10-08): the "Auto-saved · 2 min ago" label and the Welcome back note */
.lab-psync { align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.lab-psync.is-local { color: #34d399; }
.lab-welcome { display: flex; align-items: center; gap: 10px; margin: 8px 10px 0; padding: 10px 12px; border: 1px solid rgba(34, 197, 94, 0.45); border-radius: 12px; background: rgba(34, 197, 94, 0.08); font-size: 0.86rem; }
.lab-welcome > svg { width: 18px; height: 18px; flex-shrink: 0; color: #22c55e; }
.lab-welcome p { margin: 0; flex: 1; min-width: 0; }
.lab-welcome .lab-icon-btn { flex-shrink: 0; }
@media (max-width: 640px) { .lab-psync-ago { display: none; } .lab-welcome { flex-wrap: wrap; } .lab-welcome p { flex: 1 1 calc(100% - 30px); } .lab-welcome .lab-img-act { margin-left: 28px; } .lab-welcome .lab-icon-btn { margin-left: auto; } }
.lab-class-pill { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.lab-class-pill[hidden] { display: none; }
.lab-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: labLive 1.4s infinite; }
@keyframes labLive { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .lab-live-dot { animation: none; } }
@media (max-width: 640px) { .lab-pbar, .lab-pbar-tools { flex-wrap: nowrap; } .lab-pbar { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .lab-pbar::-webkit-scrollbar { display: none; } .lab-pbtn:not(.lab-pbtn-proj) span { display: none; } .lab-pbtn:not(.lab-pbtn-proj) { width: 34px; padding: 0; justify-content: center; } .lab-pbtn-proj { max-width: 46vw; } }

/* Dialogs */
.lab-proj-dialog, .lab-tool-dialog { width: min(560px, calc(100vw - 32px)); }
.lab-tool-dialog.is-wide { width: min(760px, calc(100vw - 32px)); }
.lab-proj-new { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 14px; }
.lab-proj-new svg { width: 18px; height: 18px; }
.lab-proj-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; max-height: 42vh; overflow-y: auto; }
.lab-proj-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.lab-proj-item.is-current { border-color: var(--accent); background: rgba(59, 130, 246, 0.08); }
/* My projects > My websites (2026-10-07) */
.lab-proj-sub { margin: 4px 0 8px; font-size: .95rem; }
.lab-proj-note { margin: 0 0 10px; font-size: .85rem; color: var(--text-muted); }
.lab-proj-acts a.lab-img-act { text-decoration: none; display: inline-flex; align-items: center; }
.lab-proj-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--text); background: none; border: 0; padding: 2px 0; cursor: pointer; }
div.lab-proj-name { cursor: default; }
.lab-proj-name strong { font-size: 0.92rem; overflow-wrap: anywhere; }
.lab-proj-name small { font-size: 0.76rem; color: var(--text-muted); }
.lab-proj-acts { display: flex; gap: 6px; flex-shrink: 0; }
.lab-proj-rename { flex: 1; min-width: 0; }
.lab-proj-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--code-bg); font-size: 0.85rem; }
.lab-proj-box > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.lab-proj-box p { margin: 0 0 8px; color: var(--text-muted); }
.lab-proj-box p strong { color: var(--text); }
.lab-proj-signin { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-proj-signin input { flex: 1; min-width: 180px; }
.lab-proj-offline-msg { font-size: 0.8rem; color: var(--text-muted); }
.lab-proj-back { margin-top: 12px; }
.lab-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.lab-tpl-level { grid-column: 1 / -1; margin: 12px 0 2px; padding-bottom: 4px; font-size: 0.82rem; font-weight: 700; color: var(--accent); border-bottom: 1px solid var(--border, rgba(127,127,127,.3)); }
.lab-tpl-level:first-child { margin-top: 0; }
.lab-tpl { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: var(--text); background: var(--code-bg); border: 1px solid var(--border); border-radius: 12px; }
.lab-tpl:hover, .lab-tpl:focus-visible { border-color: var(--accent); }
.lab-tpl-thumb { position: relative; height: 96px; overflow: hidden; background: #fff; pointer-events: none; }
.lab-tpl-thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(0.25); transform-origin: 0 0; }
.lab-tpl-tx { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.lab-tpl-tx strong { font-size: 0.86rem; }
.lab-tpl-tx small { font-size: 0.74rem; color: var(--text-muted); }

/* Insert */
.lab-ins-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.lab-ins-tab { flex: 1; padding: 8px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); background: transparent; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.lab-ins-tab.is-on { color: #fff; background: var(--accent); border-color: var(--accent); }
.lab-ins-body code, .lab-tool-dialog .lab-dialog-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; }
.lab-ins-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0; }
.lab-ins-swatch { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; }
.lab-ins-swatch:hover { transform: scale(1.06); }
.lab-tool-dialog .lab-ins-own { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.lab-ins-own input[type=color] { width: 56px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.lab-ins-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
.lab-ins-font { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; cursor: pointer; color: var(--text); background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; }
.lab-ins-font:hover { border-color: var(--accent); }
.lab-ins-font strong { font-size: 1.05rem; }
.lab-ins-font small { font-size: 0.8rem; color: var(--text-muted); }
.lab-ins-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
.lab-ins-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; cursor: pointer; color: var(--text); background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.lab-ins-icon:hover { border-color: var(--accent); }
.lab-ins-icon svg { width: 24px; height: 24px; }
.lab-ins-icon small { font-size: 0.68rem; color: var(--text-muted); }

/* Check */
.lab-check-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.lab-check { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--code-bg); font-size: 0.86rem; }
.lab-check div { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.lab-check small { color: var(--text-muted); font-size: 0.8rem; }
.lab-check-ic { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px; }
.lab-check.is-ok .lab-check-ic { background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.lab-check.is-warn .lab-check-ic { background: #f59e0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17v.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Publish and class */
.lab-pub-addr { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--code-bg); }
.lab-pub-addr span { padding: 0 4px 0 10px; font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.lab-tool-dialog .lab-pub-addr input { border: 0; border-radius: 0; background: transparent; min-width: 0; }
.lab-pub-avail { margin: 6px 0 0; font-size: 0.8rem; min-height: 1em; }
.lab-pub-avail.is-ok { color: #34d399; }
.lab-pub-avail.is-err { color: #fbbf24; }
.lab-pub-open { margin-top: 12px; }
.lab-pub-share { margin-top: 12px; }
.lab-cls-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.3rem !important; letter-spacing: 0.25em; text-transform: uppercase; }
@media (max-width: 480px) { .lab-pub-addr { flex-direction: column; align-items: stretch; } .lab-pub-addr span { padding: 8px 10px 0; } }
.lab-pub-addr .lab-pub-post { padding: 0 10px 0 2px; }
.lab-pub-addr .lab-pub-post:empty, .lab-pub-addr .lab-pub-pre:empty { display: none; }

/* Publish-only mode on the website after the app launches (code-lab-lite.js) */
html.lab-lite .lab-pbar button:not([data-track="codelab-publish-open"]) { display: none !important; }
html.lab-lite .lab-pbar .lab-pbar-tools { margin: 0; }
/* The project bar (Auto-saved, "Projects, templates ... are in the app") and the "Welcome back ... My projects" note
   are app only (founder 2026-10-09); Publish already sits next to Live preview. */
html.lab-lite .lab-pbar, html.lab-lite .lab-welcome { display: none !important; }
.lab-preview-bar .lab-pub-moved { height: 30px; padding: 0 11px; font-size: 0.8rem; margin-left: 8px; }
.lab-preview-bar .lab-pub-moved span { display: inline !important; }
.lab-preview-bar .lab-pub-moved { width: auto !important; min-width: 0; flex: none; gap: 6px; }
html.lab-lite .lab-preview-title { white-space: nowrap; }
@media (max-width: 420px) { .lab-preview-bar .lab-pub-moved { margin-left: 4px; padding: 0 9px; } html.lab-lite .lab-preview-bar .lab-dots { display: none; } }
.lab-lite-note { font-size: 0.82rem; color: #7cc4ff; text-decoration: none; margin-left: 10px; align-self: center; }
.lab-lite-note:hover { text-decoration: underline; }

/* App: editing a published website (code-lab-edit-site.js) */
.lab-editsite { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(56, 182, 255, 0.35); background: rgba(56, 182, 255, 0.08); font-size: 0.88rem; }
.lab-editsite-txt { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lab-editsite-txt a { color: #7cc4ff; font-weight: 600; text-decoration: none; }
.lab-editsite-txt span { color: var(--text-muted, #9aa3b2); }
.lab-editsite-ver { font: inherit; font-size: 0.82rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border, #2a3352); background: var(--surface, #111827); color: inherit; }
/* Shared editing (founder 2026-11-02). Who else is in the website right now, under the banner; and the
   publish dialog's "someone else published while you were working" box. Both are warnings, not errors:
   amber, no animation (the no-wiggle rule), and they take the full width of what they sit in. */
.lab-editsite-who { flex: 1 0 100%; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid rgba(56, 182, 255, 0.25);
  color: #ffd79a; font-size: 0.84rem; line-height: 1.5; }
.lab-pub-conflict { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 176, 70, 0.45);
  background: rgba(255, 176, 70, 0.1); }
.lab-pub-conflict-txt { margin: 0 0 8px; color: #ffd79a; font-size: 0.88rem; line-height: 1.55; }
.lab-pub-conflict-sub { color: var(--text-muted, #9aa3b2); font-size: 0.82rem; margin-bottom: 10px; }
.lab-pub-conflict-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* New website and My projects in the top row on tanimawoai.com (code-lab-lite.js, founder 2026-10-07) */
.lab-home-bar .lab-new, .lab-home-bar .lab-myproj { font: inherit; cursor: pointer; }
.lab-home-bar .lab-new { background: linear-gradient(135deg, #1f7bff, #14b8c9); border-color: transparent; color: #fff; font-weight: 700; }
.lab-home-bar .lab-new:hover, .lab-home-bar .lab-new:focus-visible { filter: brightness(1.08); color: #fff; }

/* Simpler Code Lab on tanimawoai.com (founder 2026-10-08: "Remove unecesary features here https://tanimawoai.com/codelab.html").
   Website only (html.lab-lite, set by code-lab-lite.js off the app host); the app keeps every one of these. Left: the
   HTML/CSS/JS tabs, Undo/Redo, Run, Ask AI (ChatGPT, Claude, Gemini), Publish,
   the preview with Phone and Computer, How it works. Paste AI answer and Quick website are app only too (founder 2026-10-09). To bring one back, delete its selector here.
   Images (pictures, videos and audio) came BACK to the website on 2026-10-23 at the founder's word ("so users can
   upload images"): it is the same button the app uses. The backend already expected signed-out people, so nothing
   there had to change - labimages.js records them as "Visitor" and counts their uploads by address (40 an hour,
   150 a day) inside the 6,000-a-day ceiling and the 40 GiB store. Only the BUTTON was hidden here; the upload
   route was open all along. */
html.lab-lite #labUpload, html.lab-lite #labDownload, html.lab-lite .lab-dl, html.lab-lite #labExplainCode, html.lab-lite #labShare,
html.lab-lite #labReset, html.lab-lite .lab-tools [aria-label="Find in your code"], html.lab-lite .lab-tools .lab-tool-sep,
html.lab-lite .lab-askai-copy, html.lab-lite .lab-askai-side, html.lab-lite .lab-site-addpage, html.lab-lite .lab-site-dev[data-dev="tablet"],
/* Quick website shows on the website too (founder 2026-10-12) */
html.lab-lite #labConsole, html.lab-lite #labPasteAi, html.lab-lite .lab-editor-foot .lab-switch { display: none !important; }

/* THE MOMENT AFTER PUBLISH (founder 2026-11-02): the QR code, the message and the posters, where the
   excitement is. Stacks under the code on a phone. */
.lab-pub-pack { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin: 14px 0 0; padding: 14px;
  border-radius: 12px; border: 1px solid var(--border, #2a3352); background: rgba(56, 182, 255, 0.06); }
.lab-pub-qr { flex: 0 0 auto; width: 128px; height: 128px; border-radius: 9px; background: #fff; padding: 6px; }
.lab-pub-packtxt { flex: 1 1 240px; min-width: 0; }
.lab-pub-packtxt strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.lab-pub-packtxt p { margin: 0 0 7px; font-size: 0.84rem; color: var(--text-muted, #9aa3b2); line-height: 1.55; }
.lab-pub-wa { color: var(--text, #e8eefc) !important; font-style: italic; overflow-wrap: anywhere; }
.lab-pub-packrow { display: flex; flex-wrap: wrap; gap: 8px; }

/* MORE PICTURES IN THE CODE LAB (founder 2026-11-02: "just a copy"). Its own prefix and its own modal, so it
   borrows nothing from the Admin Panels

/* MORE PICTURES IN THE CODE LAB (founder 2026-11-02: "just a copy"). Its own prefix and its own modal, so it
   borrows nothing from the Admin Panel stylesheet, which this page does not load. */
.lg-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(3, 7, 18, .72); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow: auto; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lg-card { width: 100%; max-width: 760px; background: var(--surface, #111827); border: 1px solid var(--border, #2a3352); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.lg-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border, #2a3352); }
.lg-head h2 { margin: 0 0 3px; font-size: 1.1rem; }
.lg-head p { margin: 0; font-size: .84rem; color: var(--text-muted, #9aa3b2); }
.lg-x { margin-left: auto; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; border: 1px solid var(--border, #2a3352); background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.lg-x:hover { background: rgba(255, 255, 255, .06); }
.lg-body { padding: 16px 20px 20px; }
.lg-note { margin: 0; font-size: .85rem; color: var(--text-muted, #9aa3b2); line-height: 1.55; }
.lg-find { width: 100%; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border, #2a3352); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; font-size: .88rem; }
.lg-list { display: grid; gap: 10px; }
.lg-row { padding: 12px 13px; border-radius: 12px; border: 1px solid var(--border, #2a3352); background: rgba(255, 255, 255, .03); }
.lg-top { display: flex; align-items: center; gap: 11px; }
.lg-thumb { width: 58px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #0a1026; }
.lg-ht { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-ht strong { font-size: .92rem; }
.lg-count { font-size: .78rem; color: var(--text-muted, #9aa3b2); }
.lg-count.is-unsaved { color: #ffc46b; }
.lg-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.lg-pic { position: relative; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; }
.lg-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-rm { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 999px; background: rgba(5, 9, 20, .8); color: #fff; cursor: pointer; line-height: 1; }
.lg-styles { margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-stlab { margin: 0 0 7px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #9aa3b2); }
.lg-strow { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-st { font: 600 .78rem/1 Inter, system-ui, sans-serif; padding: 7px 12px; border-radius: 999px; cursor: pointer; color: inherit; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.lg-st:hover:not([disabled]) { background: rgba(56, 182, 255, .14); border-color: rgba(56, 182, 255, .45); }
.lg-st.is-on { background: #1f7bff; border-color: transparent; color: #fff; }
.lg-st[disabled] { opacity: .4; cursor: not-allowed; }
.lg-stwhat { margin: 8px 0 0; font-size: .78rem; line-height: 1.5; color: var(--text-muted, #9aa3b2); }
.lg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; }
.lg-btn { position: relative; display: inline-flex; align-items: center; font: 600 .8rem/1 Inter, system-ui, sans-serif; padding: 8px 15px; border-radius: 9px; border: 1px solid var(--border, #2a3352); background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer; }
.lg-btn.is-save { background: #1f7bff; border-color: transparent; color: #fff; }
.lg-btn.is-save[disabled] { opacity: .6; cursor: default; }
.lg-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lg-msg { margin: 9px 0 0; font-size: .8rem; line-height: 1.5; color: #7ee9a0; }
.lg-msg.is-err { color: #f5a2a2; }
.lg-msg a { color: inherit; font-weight: 700; }
.lg-open { cursor: pointer; }

/* "Your stylesheet was repaired" in the publish dialog (founder 2026-11-02). */
.lab-pub-cssfix { margin: 14px 0 0; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 196, 107, .4); background: rgba(255, 196, 107, .09); }
.lab-pub-cssfix strong { display: block; font-size: .92rem; color: #ffc46b; margin-bottom: 7px; }
.lab-pub-cssfix ul { margin: 0 0 9px; padding-left: 18px; }
.lab-pub-cssfix li { font-size: .84rem; line-height: 1.55; margin-bottom: 3px; }
.lab-pub-cssfix p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--text-muted, #9aa3b2); }

/* ONE SHORT LINE THAT OPENS (founder 2026-11-05: "This container is too long, fix it"). Sharing, the private
   edit link and the repaired-stylesheet note sit behind these in the window after Publish, so it reads as
   short as the Publish window itself. Native <details> (code-lab-tools.js fold()). */
.lab-fold { margin: 10px 0 0; border-radius: 12px; border: 1px solid var(--border, #2a3352); background: rgba(255, 255, 255, .03); }
.lab-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.lab-fold > summary::-webkit-details-marker { display: none; }
.lab-fold > summary::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .75; }
.lab-fold[open] > summary::before { transform: rotate(45deg); }
.lab-fold > summary:hover { background: rgba(255, 255, 255, .05); }
.lab-fold > summary:focus-visible { outline: 2px solid #38b6ff; outline-offset: 2px; }
.lab-fold-body { padding: 0 14px 13px; }
.lab-fold-body > .lab-pub-pack, .lab-fold-body > .lab-pub-cssfix, .lab-fold-body > .lab-keep { margin-top: 4px; }
.lab-fold-body > .lab-pub-cssfix { border: 0; background: none; padding: 0; }
.lab-fold-body > .lab-keep > p:first-child { margin-top: 0; }

/* SHORTER ON A COMPUTER, SAME WIDTH (founder 2026-11-06: "It's unnecessarily long. Make it wider and
   shorter", then, looking at the live window, "The current width is okay"). So the width is left exactly
   as it is and the height comes down instead: from 760px up the Publish form reads label beside box
   rather than label above box, My website puts its four boxes two to a row, and the window after Publish
   runs in two columns. Phones are not touched: everything below 760px is as it was. */
@media (min-width: 760px) {
  /* Publish: label beside its box. Anything that is not a label or its control spans both columns. */
  .lab-pub-form { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; align-items: center; }
  .lab-pub-form > label { margin: 0; text-align: right; }
  .lab-pub-form > p, .lab-pub-form > button, .lab-pub-form > div:not(.lab-pub-addr) { grid-column: 1 / -1; }
  .lab-pub-form > .lab-pub-addr { grid-column: 2; }
  .lab-pub-form > .lab-pub-avail, .lab-pub-form > .lab-dialog-error { margin: 0; }

  /* My website: the four boxes two to a row. */
  .lab-site-dialog .lab-site-field { display: inline-grid; width: calc(50% - 7px); vertical-align: top; margin-right: 10px; }
  .lab-site-dialog .lab-site-field:nth-of-type(2n) { margin-right: 0; }
  .lab-fold-body .lab-site-field { width: 100%; margin-right: 0; }

  /* After Publish: the same blocks, read down one column then the next. */
  .lab-tool-dialog.is-live { columns: 2; column-gap: 20px; }
  .lab-tool-dialog.is-live > * { break-inside: avoid; }
  .lab-tool-dialog.is-live > .lab-dialog-head, .lab-tool-dialog.is-live > .lab-dialog-note { column-span: all; }
  /* a long button wraps inside its column instead of running out of the window */
  .lab-tool-dialog.is-live .btn { white-space: normal; }
}

/* THE TWO LINES THAT SAY IT WORKED, IN THE MIDDLE (founder 2026-11-06: "Center this"). Only in the
   window after Publish - every other window keeps its title on the left - and the X stays in its corner. */
.lab-tool-dialog.is-live .lab-dialog-head { position: relative; justify-content: center; }
.lab-tool-dialog.is-live .lab-dialog-head h2 { text-align: center; }
.lab-tool-dialog.is-live .lab-dialog-head .lab-icon-btn { position: absolute; right: 0; top: 0; }
.lab-tool-dialog.is-live > .lab-dialog-note { text-align: center; }
