/* ═══════════════════════════════════════════════════════════════════
   artifacts.css — ArtifactViews.swift (the Canvas), iOS paths.
   Holo values: veil(a) = rgb(--veil-lo-rgb / a·k) below .55,
   wash(a) = rgb(--wash-rgb / a·k). System colours are UIKit's.
   ═══════════════════════════════════════════════════════════════════ */

.pm-app {
  --art-blue: #0a84ff;          /* systemBlue — no app tint on these controls */
  --art-teal: #40c8e0;          /* systemTeal — editor caret */
  --art-label: #ffffff;         /* UIKit .label */
  --art-canvas: #000000;        /* IsolatedHTMLWebView.canvasColor */
  --art-field-bg: rgb(28 28 30);
  --art-field-edge: rgb(255 255 255 / 0.13);
  --art-fill-disabled: rgb(120 120 128 / 0.24);
  /* CanvasCodeTheme (dark) */
  --art-syn-keyword: #c79efa;
  --art-syn-tag: #73cce8;
  --art-syn-property: #a3c4fa;
  --art-syn-string: #e0c485;
  --art-syn-number: #a6d6b0;
  --art-syn-comment: #7d94a3;
  --art-syn-function: #82d4bf;
}
.pm-app[data-appearance="light"] {
  --art-blue: #007aff;
  --art-teal: #30b0c7;
  --art-label: #000000;
  --art-canvas: #e6edf7;
  --art-field-bg: #ffffff;
  --art-field-edge: rgb(0 0 0 / 0.16);
  --art-fill-disabled: rgb(120 120 128 / 0.16);
  /* CanvasCodeTheme (light) */
  --art-syn-keyword: #7a38ad;
  --art-syn-tag: #05617d;
  --art-syn-property: #2657a6;
  --art-syn-string: #7d520f;
  --art-syn-number: #296e3d;
  --art-syn-comment: #5e6e75;
  --art-syn-function: #086b57;
}

/* ── ArtifactWorkspace ─────────────────────────────────────────── */
.art-ws {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: rgb(var(--veil-lo-rgb) / calc(0.16 * var(--veil-lo-k)));
}

/* mobileToolbar: two 44 pt rows, .font(.system(size: 13, weight: .medium)), inkSoft */
.art-toolbar {
  flex: none;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.18px;
  color: var(--ink-soft);
}
.art-row { display: flex; align-items: center; gap: 8px; height: 44px; min-width: 0; }
.art-spacer { flex: 1 1 8px; min-width: 8px; }
.art-files-menu {
  flex: 0 1 auto;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: inherit;
}
.art-files-menu .sf { flex: none; }
.art-rev { flex: none; color: var(--ink-faint); white-space: nowrap; }
.art-edit {
  flex: none;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: inherit;
}
.art-icon-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: inherit; }

/* Text(...).lineLimit(1).truncationMode(.middle) */
.art-mid { position: relative; display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.art-mid-sizer { display: block; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; }
.art-mid-text { display: block; white-space: nowrap; overflow: hidden; }

/* holoInset(15) pills: Files · Browser · Edit · Retry — mono 9 semibold */
.art-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}
.art-pill:disabled { opacity: 0.4; }
.art-pill.icon-only { gap: 0; }

/* ArtifactModePicker: 2 pt padding, 2 pt gap, 40 pt segments, veil(.35) track */
.art-mode-picker {
  flex: none;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgb(var(--veil-lo-rgb) / calc(0.35 * var(--veil-lo-k)));
}
.art-mode {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3.2px;
  height: 40px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-faint);
  isolation: isolate;
  transition: color 0.16s var(--ease-in-out);
}
.art-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgb(var(--wash-rgb) / calc(0.09 * var(--wash-k)));
  opacity: 0;
  transition: opacity 0.16s var(--ease-in-out);
}
.art-mode.on { color: var(--ink); font-weight: 600; }
.art-mode.on::before { opacity: 1; }

/* previewToolbar (iOS): inside a horizontal ScrollView, so the veil band hugs its content */
.art-ptb-scroll { flex: none; height: 44px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.art-ptb-scroll::-webkit-scrollbar { display: none; }
.art-ptb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  background: rgb(var(--veil-lo-rgb) / calc(0.12 * var(--veil-lo-k)));
  color: var(--accent);
  white-space: nowrap;
}
.art-viewport {
  display: inline-flex;
  align-items: center;
  gap: 4.8px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: inherit;
}
.art-ptb-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: inherit; }
.art-ptb-btn:disabled { opacity: 0.4; }

/* CanvasConsoleToggle — mono 8 semibold; the icon-only form sits in 44×44 */
.art-console-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3.2px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.art-console-toggle.icon-only { width: 44px; height: 44px; justify-content: center; gap: 0; }

/* ── ArtifactBodyView ──────────────────────────────────────────── */
.art-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.art-body-content { position: absolute; inset: 0; }
.art-fade-in { animation: art-fade 0.16s var(--ease-in-out); }
@keyframes art-fade { from { opacity: 0; } }

/* Device emulation: black .34 gutters, the page top-centred and scaled to fit */
.art-device-stage { position: absolute; inset: 0; overflow: hidden; background: rgb(0 0 0 / 0.34); }
.art-device { position: absolute; top: 0; overflow: hidden; background: #000; }
/* The non-opaque WKWebView paints the canvas colour until the page draws (no spinner). */
.art-webview { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: var(--art-canvas); }
.art-webview.fill { inset: 0; width: 100%; height: 100%; }
.art-webview.inert { pointer-events: none; }
.art-webview .art-frame { display: block; width: 100%; height: 100%; border: 0; margin: 0; background: var(--art-canvas); }
.art-webview.inert .art-frame { pointer-events: none; }

/* SelectableCodeView: SF Mono regular, ink, padding 16, no wrapping, both axes scroll */
.art-code { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.art-source { background: rgb(var(--veil-lo-rgb) / calc(0.2 * var(--veil-lo-k))); }
.art-code-text {
  margin: 0;
  padding: 16px;
  width: max-content;
  min-width: 100%;
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  white-space: pre;
  tab-size: 4;
  user-select: text;
  -webkit-user-select: text;
}
.syn-keyword { color: var(--art-syn-keyword); }
.syn-tag { color: var(--art-syn-tag); }
.syn-property { color: var(--art-syn-property); }
.syn-string { color: var(--art-syn-string); }
.syn-number { color: var(--art-syn-number); }
.syn-comment { color: var(--art-syn-comment); }
.syn-function { color: var(--art-syn-function); }

/* Markdown drafts: MarkdownView, max 720 wide + 22 padding, on wash(.025) */
.art-md { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: rgb(var(--wash-rgb) / calc(0.025 * var(--wash-k))); }
.art-md-inner { max-width: 764px; padding: 22px; }
.art-md-fallback { color: var(--ink); line-height: 1.4; }
.art-md-fallback-h { font-weight: 600; padding-top: 4px; }

/* ContentUnavailableView */
.art-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.art-unavailable-title { font: 700 22px/28px var(--font-display); letter-spacing: 0.35px; color: var(--art-label); }

/* CanvasConsolePanel — overlay, veil(.92), 1 pt wash(.12) top rule */
.art-console {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 196px;
  display: flex;
  flex-direction: column;
  background: rgb(var(--veil-hi-rgb) / min(1, calc(var(--veil-hi-base) + 0.92 * var(--veil-hi-k))));
}
.art-console::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgb(var(--wash-rgb) / calc(0.12 * var(--wash-k)));
  pointer-events: none;
}
.art-console.empty { height: 92px; }
.art-console-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: 0; }
.art-console-head .sf { flex: none; }
.art-console-title { flex: none; font: 600 9px/1.2 var(--font-mono); color: var(--ink); }
.art-console-count { flex: none; font: 500 8px/1.2 var(--font-mono); color: var(--ink-faint); }
.art-console-spacer { flex: 1 0 8px; }
.art-console-note {
  flex: 0 1 auto;
  min-width: 0;
  font: 500 8px/1.2 var(--font-mono);
  color: var(--ink-ghost);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-console-close { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.art-console-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
}
.art-console-row { display: flex; align-items: flex-start; gap: 8px; }
.art-console-level { flex: none; width: 52px; font: 600 8px/11px var(--font-mono); padding-top: 0.5px; }
.art-console-msg {
  flex: 1;
  min-width: 0;
  font: 500 9px/11px var(--font-mono);
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.art-console-empty { padding: 14px; font: 500 9px/11px var(--font-mono); color: var(--ink-faint); }

/* ── CanvasChatThumbnail ───────────────────────────────────────── */
.art-thumb-row { flex: none; padding: 0 14px 6px; }
.art-thumb {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgb(var(--veil-lo-rgb) / calc(0.3 * var(--veil-lo-k)));
  text-align: left;
}
.art-thumb-image {
  position: relative;
  flex: none;
  width: 96px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(var(--veil-lo-rgb) / calc(0.5 * var(--veil-lo-k)));
}
/* design (Quiet Session): the canvas as a live miniature in the chat's crown row */
.art-tile {
  position: relative;
  flex: none;
  width: 34px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
  transition: transform var(--dur-settle) var(--ease-settle);
}
.art-tile:active { transform: scale(0.94); }
.art-tile-image {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: rgb(var(--veil-lo-rgb) / calc(0.5 * var(--veil-lo-k)));
  box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.5);
}
.art-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.75px rgb(var(--wash-rgb) / calc(0.22 * var(--wash-k))), inset 0 1px 0 var(--lg-inner-top);
  pointer-events: none;
}
.art-tile.live::after { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.8), 0 0 12px rgb(var(--accent-rgb) / 0.45); animation: art-tile-breathe 1.4s var(--ease-in-out) infinite alternate; }
@keyframes art-tile-breathe { from { opacity: 0.55; } to { opacity: 1; } }
.art-tile-count {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 700 9px/1 var(--font-sans);
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--void);
}
.art-thumb-web { visibility: hidden; }
.art-thumb-web.ready { visibility: visible; }
.art-thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.art-thumb-text { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.art-thumb-title { font: 600 13px/16px var(--font-sans); letter-spacing: -0.18px; color: var(--ink); white-space: nowrap; }
.art-thumb-path { max-width: 100%; font: 400 11px/13px var(--font-mono); color: var(--ink-soft); }
.art-thumb-detail { font: 400 10px/12px var(--font-sans); letter-spacing: 0.07px; color: var(--ink-faint); white-space: nowrap; }
.art-thumb-spacer { flex: 1 1 0; min-width: 0; }
.art-thumb > .sf { flex: none; }

/* ── ArtifactUpdateSummary ─────────────────────────────────────── */
.art-summary {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(var(--veil-lo-rgb) / calc(0.22 * var(--veil-lo-k)));
  box-shadow: inset 0 0 0 0.75px rgb(var(--wash-rgb) / calc(0.08 * var(--wash-k)));
}
.art-summary .sf { flex: none; }
.art-summary-text { font: 500 9px/11px var(--font-mono); color: var(--ink-soft); white-space: pre-wrap; overflow: hidden; }

/* ── ArtifactFailureCard ───────────────────────────────────────── */
.art-failure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: rgb(var(--veil-lo-rgb) / calc(0.24 * var(--veil-lo-k)));
  box-shadow: inset 0 0 0 0.8px rgb(var(--orange-rgb) / 0.18);
}
.art-failure-head { display: flex; align-items: center; gap: 8px; }
.art-failure-head .sf { flex: none; }
.art-failure-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.art-failure-title { font: 600 12px/15px var(--font-sans); letter-spacing: -0.1px; color: var(--ink); }
.art-failure-body { font: 400 11px/14px var(--font-sans); letter-spacing: -0.03px; color: var(--ink-soft); }
.art-failure-text { font: 500 8px/10px var(--font-mono); color: var(--ink-faint); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }

/* ── ArtifactEditorSheet ───────────────────────────────────────── */
/* Sheet content respects the home-indicator safe area; the glass background runs under it. */
.art-editor, .art-explorer, .art-psheet { padding-bottom: var(--safe-bottom, 34px); }
.art-editor { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.art-sheet-drag.sheet-scroll { flex: none; overflow: visible; overscroll-behavior: auto; }
.art-editor-toolbar { padding: 0 16px; color: var(--ink); }
.art-editor-row1 { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.art-editor-btn {
  flex: none;
  min-height: 44px;
  font: 400 17px/22px var(--font-sans);
  letter-spacing: -0.51px;
  color: var(--ink);
}
.art-editor-btn.save { font-weight: 600; }
.art-editor-btn:disabled { opacity: 0.35; }
.art-editor-title {
  flex: 1 1 0;
  text-align: center;
  font: 600 14px/18px var(--font-sans);
  letter-spacing: -0.25px;
  color: var(--ink);
}
.art-editor-title .art-mid-text { text-align: center; }
.art-editor-row2 { display: flex; align-items: center; gap: 18px; height: 44px; font: 400 13px var(--font-sans); letter-spacing: -0.18px; }
.art-editor-tool { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); white-space: nowrap; }
.art-editor-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.art-editor-spacer { flex: 1 1 0; min-width: 0; }
.art-editor-area { position: relative; flex: 1; min-height: 0; background: rgb(var(--veil-lo-rgb) / calc(0.2 * var(--veil-lo-k))); }
.art-editor-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  resize: none;
  padding: 14px 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 15.5px;
  letter-spacing: 0;
  color: var(--art-label);
  caret-color: var(--art-teal);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-y: auto;
  overscroll-behavior: contain;
  tab-size: 4;
}
.pm-app .art-editor-text:focus-visible { outline: none; }
.art-editor-text::selection { background: rgb(64 200 224 / 0.32); }
.pm-app[data-appearance="light"] .art-editor-text::selection { background: rgb(48 176 199 / 0.3); }

/* ArtifactEditorFindBar (iOS): system rounded fields, systemBlue buttons, 13 pt */
.art-find {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  font: 400 13px var(--font-sans);
  letter-spacing: -0.18px;
  background: rgb(var(--veil-lo-rgb) / calc(0.16 * var(--veil-lo-k)));
}
.art-find-row { display: flex; align-items: center; gap: 8px; }
.art-field {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--art-field-bg);
  box-shadow: inset 0 0 0 0.5px var(--art-field-edge);
  font: 400 13px var(--font-sans);
  letter-spacing: -0.18px;
  color: var(--art-label);
  caret-color: var(--art-blue);
}
.art-field::placeholder { color: var(--label3); }
.pm-app .art-field:focus-visible { outline: none; }
.art-field.body { flex: none; width: 100%; height: 34px; font-size: 17px; letter-spacing: -0.51px; }
.art-sys-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 400 13px var(--font-sans);
  letter-spacing: -0.18px;
  color: var(--art-blue);
  white-space: nowrap;
  transition: opacity 0.12s ease;
}
.art-sys-btn:active:not(:disabled) { opacity: 0.55; }
.art-sys-btn:disabled { color: var(--label3); }
.art-sys-btn.body { font-size: 17px; line-height: 22px; letter-spacing: -0.51px; }
.art-find-status { align-self: center; font: 400 12px/16px var(--font-sans); letter-spacing: -0.1px; color: var(--ink-soft); }

/* ArtifactEditorStatusBar — mono 8 medium, inkFaint, 28 tall on veil(.16) */
.art-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 14px;
  font: 500 8px/1 var(--font-mono);
  color: var(--ink-faint);
  white-space: nowrap;
  background: rgb(var(--veil-lo-rgb) / calc(0.16 * var(--veil-lo-k)));
}
.art-status-spacer { flex: 1 1 10px; min-width: 10px; }
.art-status-label { display: inline-flex; align-items: center; gap: 3.2px; }

/* Keyboard accessory (UIToolbar, default systemBlue tint) — shown while the text view is focused */
.art-accessory {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 8px;
  color: var(--art-blue);
  background: var(--mat-thin-bg);
  -webkit-backdrop-filter: blur(var(--mat-blur)) saturate(var(--mat-sat));
  backdrop-filter: blur(var(--mat-blur)) saturate(var(--mat-sat));
  box-shadow: inset 0 0.5px 0 var(--separator);
}
.art-acc-btn { flex: none; height: 44px; padding: 0 8px; display: grid; place-items: center; font: 400 17px var(--font-sans); letter-spacing: -0.51px; color: inherit; }
.art-acc-btn.done { font-weight: 600; }
.art-acc-btn:active { opacity: 0.55; }

/* ── ArtifactExplorer (system styling) ─────────────────────────── */
.art-explorer { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; color: var(--art-label); }
.art-ex-head { display: flex; align-items: center; gap: 8px; padding: 20px; }
.art-ex-titles { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.art-ex-title { display: flex; align-items: flex-start; gap: 8px; font: 600 20px/25px var(--font-display); letter-spacing: 0.38px; color: var(--art-label); }
.art-ex-title .sf { flex: none; margin-top: 0.5px; } /* a Label's icon sits on the first line */
.art-ex-sub { font: 400 12px/16px var(--font-sans); color: var(--label2); }
.art-ex-spacer { flex: 1 1 0; min-width: 0; }
.art-ex-export { flex: 0 1 auto; min-width: 0; align-items: flex-start; white-space: normal; text-align: left; }
.art-ex-export .sf { flex: none; margin-top: 0.8px; }
.art-divider { flex: none; height: 0.5px; background: var(--separator); }
.art-ex-browser { flex: none; height: 160px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.art-ex-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; }
.art-ex-group { display: flex; flex-direction: column; gap: 4px; }
.art-ex-group-head { display: flex; align-items: center; gap: 5px; padding-bottom: 3px; font: 600 12px/16px var(--font-sans); color: var(--label2); }
.art-ex-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  font: 500 12px/15px var(--font-sans);
  letter-spacing: -0.1px;
  color: var(--art-label);
  text-align: left;
}
.art-ex-row.selected { background: rgb(var(--accent-rgb) / 0.12); }
.art-ex-row .sf { flex: none; }
.art-ex-row-name { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.art-ex-row-rev { margin-left: auto; flex: none; font: 400 12px/15px var(--font-mono); color: var(--label2); }
.art-ex-inspector { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.art-ex-insp-head { display: flex; align-items: center; gap: 8px; }
.art-ex-insp-titles { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.art-ex-insp-path { font: 600 17px/22px var(--font-sans); letter-spacing: -0.51px; color: var(--art-label); overflow-wrap: anywhere; }
.art-ex-insp-meta { font: 400 12px/16px var(--font-mono); color: var(--label2); }
.art-ex-picker { flex: none; display: flex; }
.art-ex-code { position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; background: rgb(0 0 0 / 0.12); }
.art-ex-caption { flex: none; font: 400 12px/16px var(--font-sans); color: var(--label2); }
.art-ex-actions { flex: none; display: flex; align-items: center; gap: 8px; }
/* .buttonStyle(.borderedProminent) — iOS 26 capsule */
.art-prominent {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--art-blue);
  color: #fff;
  font: 400 17px/22px var(--font-sans);
  letter-spacing: -0.51px;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}
.art-prominent:active:not(:disabled) { opacity: 0.7; }
.art-prominent:disabled { background: var(--art-fill-disabled); color: var(--label3); }

/* ── HTMLPreviewSheet / ArtifactDetailSheet ────────────────────── */
.art-psheet { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.art-psheet-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; min-width: 0; }
.art-psheet-head > .sf { flex: none; }
.art-psheet-titles { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.art-psheet-title { font: 600 12px/15px var(--font-sans); letter-spacing: -0.1px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-psheet-sub { font: 500 8px/10px var(--font-mono); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-psheet-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--art-canvas); }

/* ── ArtifactInlineCard / ArtifactShelf (unreachable on iOS today) ─ */
.art-inline {
  border-radius: 18px;
  overflow: hidden;
  background: rgb(var(--veil-lo-rgb) / calc(0.24 * var(--veil-lo-k)));
  box-shadow: inset 0 0 0 0.8px rgb(var(--wash-rgb) / calc(0.095 * var(--wash-k)));
}
.art-inline-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink-soft); }
.art-inline-glyph { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgb(var(--accent-rgb) / 0.11); }
.art-inline-titles { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.art-inline-name { font: 600 12px/15px var(--font-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-inline-sub { font: 500 8px/10px var(--font-mono); color: var(--ink-faint); white-space: nowrap; }
.art-inline-spacer { flex: 1 1 12px; min-width: 12px; }
.art-inline-body { position: relative; min-height: 280px; height: 360px; max-height: 360px; }
.art-shelf { overflow-x: auto; scrollbar-width: none; }
.art-shelf-row { display: inline-flex; align-items: center; gap: 7px; padding: 4px 28px; }
.art-shelf-label { display: inline-flex; align-items: center; gap: 3.2px; font: 600 8px var(--font-mono); color: var(--ink-ghost); }
.art-shelf-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; }
.art-shelf-name { font: 500 9px var(--font-mono); color: var(--ink-soft); white-space: nowrap; }
.art-shelf-rev { font: 500 8px var(--font-mono); color: var(--ink-ghost); }
