/* axi0 Code (/code/): on top of /slides/slides.css (the family look: colours, header, buttons, the Key card, the footer).
   No inline styles in the markup (the page runs under style-src 'self'); the editor brings its own rules as constructed
   style sheets. */
:root { --warn: #f6c177; --ok: #7ad19b; }
html[data-axi0-theme="light"] { --warn: #8a5a00; --ok: #17733f; }
@media (prefers-color-scheme: light) { html:not([data-axi0-theme="dark"]) { --warn: #8a5a00; --ok: #17733f; } }
main { max-width: 1440px; }
.foot { max-width: 1440px; }
.is-unlocked h1, .has-docs h1 { margin-top: 12px; font-size: 30px; }
.work { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.pick { width: auto; min-width: 0; max-width: 260px; min-height: 38px; padding: 5px 10px; border-radius: 10px; font-size: 14px; }
.bar .title { flex: 1 1 180px; width: auto; min-width: 0; min-height: 38px; padding: 6px 10px; border-color: transparent; background: transparent; color: var(--head); font-size: 16px; font-weight: 600; }
.bar .title:hover { border-color: var(--line2); }
.bar .title:focus { border-color: var(--core); box-shadow: none; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acts .btn { min-height: 36px; padding: 0 14px; }
.auto { margin: 0 4px; font-size: 13.5px; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-item.file { position: relative; overflow: hidden; }
.menu-item.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.menu-item.file:focus-within { outline: 2px solid var(--core-ink); outline-offset: -2px; }
.menu-item.danger { color: var(--danger); }
.tabs { display: none; gap: 4px; margin: 10px 0 0; overflow-x: auto; }
.tab { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--soft2); font: inherit; font-size: 13px; cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--line3b); background: var(--raise); color: var(--head); }
.panes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.work[data-kind="md"] .panes, .work[data-kind="json"] .panes { grid-template-columns: minmax(0, 1fr); }
.pane { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--field); }
.pane::before { padding: 5px 10px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#pane-html::before { content: "HTML"; } #pane-css::before { content: "CSS"; } #pane-js::before { content: "JavaScript"; }
#pane-md::before { content: "Markdown"; } #pane-json::before { content: "JSON"; }
.pane:focus-within { border-color: var(--line3b); }
.src {
  flex: 1 1 auto; width: 100%; height: 34vh; min-height: 34vh; margin: 0; padding: 8px 10px; border: 0; border-radius: 0; background: transparent;
  color: var(--ink2); font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; overflow: auto; resize: none; tab-size: 2;
}
.src:focus { outline: none; box-shadow: none; }
.cm-host { display: block; flex: 1 1 auto; min-width: 0; height: 34vh; }
.out { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.frame-wrap { min-width: 0; height: 42vh; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #fff; }
.frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.console { display: flex; flex-direction: column; min-width: 0; height: 42vh; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--field); }
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
.console-bar .linkish { font-size: 12.5px; }
.lines { flex: 1 1 auto; margin: 0; padding: 2px 0; overflow: auto; list-style: none; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lines li { padding: 3px 10px; border-bottom: 1px solid var(--line); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.lines li.warn { color: var(--warn); }
.lines li.error { color: var(--danger); }
.lines li.sys { color: var(--mute); font-style: italic; }
.foot-note { margin: 10px 2px 0; color: var(--mute); font-size: 12.5px; }
.foot-note #state:empty + .sep { display: none; }
@media (max-width: 1023.9px) {
  .tabs { display: flex; }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane { display: none; }
  .pane::before { display: none; }
  .work[data-tab="html"] #pane-html, .work[data-tab="css"] #pane-css, .work[data-tab="js"] #pane-js,
  .work[data-tab="md"] #pane-md, .work[data-tab="json"] #pane-json { display: flex; }
  .work[data-tab="out"] .panes { display: none; }
  .out { display: none; grid-template-columns: minmax(0, 1fr); }
  .work[data-tab="out"] .out { display: grid; }
  .src, .cm-host { height: 54vh; min-height: 54vh; }
  .frame-wrap { height: 46vh; }
  .console { height: 26vh; }
}
@media (max-width: 600px) {
  .work { padding: 10px; border-radius: 16px; }
  .pick { max-width: 150px; }
  .bar .title { flex-basis: 100%; order: 3; }
  .acts { margin-left: auto; }
  .ed-hint { display: none; }
}
