:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --ink: #202727; --muted: #626d68; --accent: #176758; --line: #dce1db;
  --paper: #f7f7f3; --hover: #eff3ef; --focus: #147569;
  color: var(--ink); background: white; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button,input,textarea,select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .38; }
button, a, input, textarea, select, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
button svg, [data-icon] svg { display: block; flex-shrink: 0; }
.app-shell { height: 100dvh; min-height: 320px; display: grid; grid-template-columns: 226px minmax(0,1fr); overflow: hidden; }
#navigation { min-width: 0; min-height: 0; }
main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: white; }
main[data-view="library"] :is(.board-heading,.board-home,.drawing-area,#export-anchor),
main[data-view="editor"] :is(.home-crumb,#project-library,#import-file) { display: none; }
main[data-view="library"] #share-board { display: none; }
#account-sign-in { border: 1px solid var(--line); border-radius: 10px; width: min(345px, calc(100% - 28px)); color: var(--ink); padding: 25px; }
#account-sign-in::backdrop { background: var(--paper); }
#sign-in-form { display: grid; gap: 7px; }
#sign-in-form h1 { font-size: 1.35rem; margin: 7px 0 10px; font-weight: 600; letter-spacing: -.035em; }
#sign-in-form label { font-size: .8rem; font-weight: 550; }
#sign-in-form input { width: 100%; border: 1px solid #bac5bb; background: white; padding: 8px; border-radius: 5px; margin-bottom: 6px; }
#sign-in-error { font-size: .79rem; color: #8b3732; margin: 3px 0; }
#submit-sign-in { margin-top: 7px; }
#password-fields { min-width: 0; display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
#google-sign-in-options { display: grid; justify-items: start; gap: 12px; }
#google-sign-in { background: transparent; border: 0; border-radius: 4px; padding: 0; }
#google-sign-in img { display: block; }
#google-renew-hint { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.5; overflow-wrap: anywhere; }
#check-google-session { border: 0; padding: 4px 0; color: var(--accent); background: none; font-size: .81rem; text-decoration: underline; }
#project-library { flex: 1; min-height: 0; overflow: auto; }
.app-shell:has(main[data-view="editor"]) { grid-template-columns: minmax(0,1fr); }
body:has(main[data-view="editor"]) #navigation { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 248px; max-width: 90vw; visibility: hidden; }
body.library-open #navigation { visibility: visible !important; }
#sidebar-shade { position: fixed; inset: 0; z-index: 19; background: #1f29273b; border: 0; }
.topbar { min-height: 57px; padding: 0 20px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; border-bottom: 1px solid var(--line); z-index: 8; }
main[data-view="library"] .topbar { padding-inline: clamp(18px,3.3vw,54px); }
.save-slot, .file-actions, .board-heading, .save-status, .plain-button, .primary-button, .zoom-bar, .selection-bar, .history-tools { display: flex; align-items: center; }
.save-slot { gap: 5px; }
.save-slot:has([data-state="saved"]), #sh-save[data-state="saved"] {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.home-crumb, .folder-link { font-size: .82rem; color: var(--muted); font-weight: 520; }
.board-home { display: grid; place-items: center; width: 32px; height: 34px; border-radius: 5px; flex-shrink: 0; }
.board-home:hover { background: var(--hover); }
.board-heading { min-width: 0; gap: 10px; }
.board-heading h1 { font-size: .96rem; font-weight: 620; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; min-width: 0; }
.folder-link { border: 0; background: transparent; padding: 3px 0; max-width: 22vw; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.folder-link:hover { text-decoration: underline; }
.crumb-slash { color: #a7b0aa; font-weight: 350; }
.board-heading .icon-button { width: 25px; }
#diagram-more svg { width: 14px; }
.file-actions { margin-left: auto; gap: 16px; flex: 0 0 auto; }
.plain-button, .primary-button { justify-content: center; gap: 7px; padding: 0 13px; min-height: 33px; border-radius: 6px; font-size: .8rem; font-weight: 580; }
.plain-button { background: white; border: 1px solid #cdd4ce; }
.primary-button { color: white; background: var(--accent); border: 1px solid var(--accent); }
.primary-button:hover { background: #10584b; }
.plain-button:hover { background: var(--hover); }
.primary-button svg, .plain-button svg { width: 15px; height: 15px; }
.save-status { gap: 6px; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.save-status i { width: 6px; height: 6px; border-radius: 50%; background: #528774; }
.save-status:is([data-state="saving"],[data-state="loading"]) i { background: #b4823d; }
.save-status[data-state="error"] { color: #9f3736; }
.save-status[data-state="error"] i { background: #aa4742; }
.icon-button, .tool, #zoom { border: 0; background: transparent; border-radius: 5px; display: inline-grid; place-items: center; padding: 0; }
.icon-button { height: 32px; width: 32px; }
.icon-button:hover:enabled, .tool:hover:enabled, #zoom:hover { background: var(--hover); }
.text-button { color: var(--accent); background: transparent; border: 0; padding: 3px 5px; text-decoration: underline; }
.issue { z-index: 7; padding: 9px 16px; background: #fff2e5; color: #804522; font-size: .82rem; border-bottom: 1px solid #e9d6b9; }
.drawing-area { position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 165px; background-color: #f8f9f6; background-image: radial-gradient(circle, #c9cfc7 .85px, transparent .95px); background-size: 20px 20px; }
.drawing-area.no-grid { background-image: none; }
#canvas-host { position: absolute; inset: 0; overflow: hidden; }
:root:not(.keyboard-navigation) .pb-canvas-svg:focus-visible { outline: none; }
.floating, .popover { background: #fff; border: 1px solid #d6dcd5; border-radius: 9px; box-shadow: 0 2px 7px #18251c0c, 0 1px 2px #18251c06; }
.tool-rail { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); padding: 5px; display: grid; justify-items: center; gap: 3px; z-index: 5; }
.tool { width: 38px; height: 38px; position: relative; color: #35453e; }
.tool svg { width: 21px; height: 21px; }
.tool.active { color: #135e4d; background: #e4f0e8; }
.tool.active[data-tool="select"] svg { fill: currentColor; }
.tool[data-tip]:is(:hover,:focus-visible)::after { content: attr(data-tip); position: absolute; z-index: 10; white-space: nowrap; pointer-events: none; left: calc(100% + 13px); background: #232e29; color: white; font-size: .72rem; font-weight: 450; border-radius: 5px; padding: 6px 9px; }
.tool[aria-expanded="true"]::after, .tool-rail:has(.popover:not([hidden])) .tool::after { display: none; }
.rail-line, .menu-line { display: block; height: 1px; background: var(--line); }
.rail-line { width: 25px; margin: 2px; }
.popover-anchor { position: relative; }
.popover { position: absolute; z-index: 10; right: 0; top: calc(100% + 7px); padding: 5px; width: max-content; min-width: 174px; box-shadow: 0 7px 24px #25352c18; }
.popover button, .view-options label { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; border-radius: 4px; padding: 8px 9px; font-size: .8rem; text-align: left; }
.popover button:hover, .view-options label:has(input):hover { background: var(--hover); }
.popover small { margin-left: auto; font-size: .64rem; color: var(--muted); }
.export-options { min-width: 208px; }
#diagram-options { left: 0; right: auto; }
.danger-text, #quick-delete:hover, .remove-item { color: #994840; }
.shape-options { top: auto; bottom: clamp(-90px,-8vh,-30px); left: calc(100% + 13px); width: 226px; padding: 10px; max-height: calc(100dvh - 78px); overflow: auto; }
.palette-switch { display: flex; padding: 2px; background: #f0f2ee; border-radius: 6px; margin-bottom: 8px; }
.palette-switch button { flex: 1; justify-content: center; padding: 5px; font-size: .75rem; color: var(--muted); font-weight: 550; }
.palette-switch button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 3px #24372c1c; }
.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.palette-grid button { min-height: 52px; flex-direction: column; justify-content: center; gap: 5px; padding: 5px 3px; font-size: .68rem; }
.palette-grid button[aria-pressed="true"] { background: #e3f1e8; color: var(--accent); }
.palette-grid svg { width: 24px; height: 19px; }
.history-tools { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 3px; }
.zoom-bar { position: absolute; z-index: 5; right: 16px; bottom: 16px; padding: 3px; gap: 1px; }
.zoom-bar svg, .history-tools svg { width: 16px; height: 16px; }
#zoom { height: 31px; min-width: 41px; font-size: .76rem; font-variant-numeric: tabular-nums; }
.separator { background: var(--line); height: 16px; width: 1px; margin: 0 2px; }
.view-options { top: auto; bottom: calc(100% + 10px); right: auto; left: 0; width: 190px; padding: 7px; }
.view-options .menu-line { margin: 6px 0; }
.view-options label { gap: 9px; cursor: pointer; }
.view-options label[for] { font-weight: 600; padding-bottom: 5px; }
.view-options input { accent-color: var(--accent); margin: 0; }
.view-options select { width: calc(100% - 18px); margin: 0 9px 3px; padding: 5px; border: 1px solid var(--line); border-radius: 4px; background: white; font-size: .78rem; }
.minimap { position: absolute; bottom: 64px; right: 16px; width: 144px; height: 74px; padding: 4px; cursor: crosshair; }
.minimap svg { width: 100%; height: 100%; display: block; }
#tool-hint { pointer-events: none; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 10px; background: #f8f9f6f2; color: var(--muted); font-size: .76rem; border-radius: 5px; text-align: center; }
.drawing-area[data-mode="select"] #tool-hint { width: max-content; max-width: min(460px,calc(100% - 490px)); line-height: 1.35; }
.drawing-area:is(:has(.pb-canvas-edit),:has(.is-connecting),:has(.is-panning)) #tool-hint { visibility: hidden; }
.selection-bar { position: absolute; left: var(--bar-x,50%); top: var(--bar-y,16px); z-index: 3; gap: 2px; padding: 3px; }
.quick-type-field { display: flex; align-items: center; gap: 4px; padding-left: 5px; border-right: 1px solid var(--line); }
.quick-type-field select { max-width: 108px; height: 29px; border: 0; border-radius: 4px; background: transparent; padding: 0 2px; font-size: .75rem; cursor: pointer; }
.quick-type-field:has(select:hover) { background: var(--hover); }
#selection-properties { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; border-radius: 4px; padding: 0 7px; height: 30px; font-size: .75rem; }
#selection-properties:hover { background: var(--hover); }
.selection-bar .icon-button { width: 29px; height: 29px; }
.selection-bar svg { width: 15px; height: 15px; }
#selection-count { padding: 0 5px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.inspector { position: absolute; z-index: 4; width: 228px; max-height: calc(100% - 18px); overflow: auto; padding: 12px; }
.inspector.context-properties { left: var(--inspector-x,75px); top: var(--inspector-y,12px); }
.drawing-area:is(:has(.is-connecting),:has(.pb-canvas-edit),:not([data-mode="select"])) :is(.inspector,.selection-bar) { display: none; }
.drawing-area:has(.is-moving-shapes) :is(.inspector,.selection-bar,#tool-hint) { visibility: hidden !important; }
.drawing-area:has(.is-panning) .selection-bar { visibility: hidden !important; }
.inspector-head, .shortcut-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inspector-head strong { font-size: .86rem; font-weight: 620; }
.inspector-head .icon-button { width: 25px; height: 25px; }
.inspector-head svg { width: 14px; height: 14px; }
.field { display: block; font-size: .74rem; font-weight: 570; margin: 10px 0 5px; }
.inspector textarea, .inspector select { width: 100%; border: 1px solid #cdd3cd; border-radius: 5px; padding: 6px; background: #fff; font-size: .81rem; }
.inspector textarea { resize: vertical; min-height: 42px; max-height: 140px; }
.shape-dimensions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.shape-measure { display: flex; align-items: center; position: relative; }
.shape-measure input { min-width: 0; width: 100%; padding: 5px 22px 5px 6px; height: 30px; border: 1px solid #cdd3cd; border-radius: 5px; background: white; font-size: .8rem; font-variant-numeric: tabular-nums; appearance: textfield; }
.shape-measure input::-webkit-inner-spin-button { -webkit-appearance: none; }
.shape-measure span { position: absolute; right: 6px; color: var(--muted); font-size: .67rem; pointer-events: none; }
.size-feedback { color: #8d483f; margin: 5px 0 0; font-size: .71rem; line-height: 1.4; }
.logo-picker,.logo-actions,.branch-presets,.colors { display: flex; align-items: center; gap: 6px; }
.logo-picker select { min-width: 0; flex: 1; }
#logo-preview { width: 35px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.logo-actions, .colors { justify-content: space-between; }
.logo-actions button, .branch-presets button { border: 0; border-radius: 4px; background: transparent; color: var(--accent); padding: 5px 1px; font-size: .74rem; }
.logo-actions button { display: flex; align-items: center; gap: 4px; }
.logo-actions svg { width: 13px; height: 13px; }
.branch-presets button { margin-top: 4px; border: 1px solid var(--line); padding: 3px 10px; }
.branch-presets button[aria-pressed="true"] { background: var(--hover); }
.connection-fields { display: grid; gap: 10px; margin-top: 12px; }
.connection-stroke { border: 0; padding: 0; margin: 0; min-width: 0; }
.connection-stroke legend, .connection-ends label {
  font-size: 12px; font-weight: 550; color: #49554e;
}
.connection-stroke legend { margin: 0 0 5px; padding: 0; }
.stroke-options, .connection-ends { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.connection-fields .stroke-options button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px;
  min-height: 30px; font-size: 12px; border: 1px solid #cdd3cd; border-radius: 5px; background: white;
}
.connection-fields .stroke-options button[aria-pressed="true"] { border-color: #709588; background: #e9f2ed; color: #175846; }
.stroke-options i { width: 20px; border-top: 2px solid currentColor; }
.stroke-options [data-line="dashed"] i { border-top-style: dashed; }
.connection-ends label { display: grid; gap: 4px; }
.connection-ends select { width: 100%; padding: 5px; border: 1px solid #cdd3cd; border-radius: 5px; background: white; font-size: 12px; }
.connection-fields .reset-route { justify-self: start; border: 0; background: transparent; color: var(--accent); padding: 3px 0; font-size: 12px; }
.swatch { border: 1px solid #0003; width: 22px; height: 22px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.remove-item, .duplicate-item { display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 2px; background: transparent; border: 0; font-size: .76rem; }
.duplicate-item { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 7px; }
.duplicate-item:hover, .remove-item:hover { background: var(--hover); }
.remove-item svg,.duplicate-item svg { width: 14px; height: 14px; }
.dup-shortcut { margin-left: auto; color: var(--muted); font-size: .66rem; }
.blank-state { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: min(340px,65%); text-align: center; }
.blank-state h2 { font-size: 1.25rem; font-weight: 560; letter-spacing: -.035em; margin: 0 0 7px; }
.blank-state p { color: var(--muted); font-size: .81rem; margin: 0 0 13px; }
.blank-state button { margin: auto; }
.toast { position: fixed; z-index: 40; bottom: 18px; left: 50%; transform: translateX(-50%); background: #26322c; color: white; border-radius: 6px; padding: 9px 14px; font-size: .81rem; max-width: 85vw; }
.shortcut-dialog { padding: 20px; width: min(400px,92vw); max-height: 85dvh; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.shortcut-dialog::backdrop { background: #1d292642; }
.shortcut-dialog h2 { font-size: 1.04rem; margin: 0; }
.shortcut-dialog header { margin-bottom: 10px; }
.shortcut-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .77rem; }
kbd { font: .69rem ui-monospace,Consolas,monospace; color: #48574e; background: #f5f6f2; border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; }
@media (min-width: 891px) {
  main[data-view="library"] #show-library { display: none; }
}
@media (max-width: 890px) {
  .app-shell { grid-template-columns: minmax(0,1fr); }
  #navigation { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 248px; max-width: 90vw; visibility: hidden; }
  .drawing-area[data-mode="select"] #tool-hint { bottom: 62px; max-width: min(430px,calc(100% - 30px)); }
  .drawing-area[data-mode="select"]:has(.minimap:not([hidden])) #tool-hint { bottom: 144px; }
}
@media (max-width: 600px) {
  .topbar, main[data-view="library"] .topbar { min-height: 52px; gap: 5px; padding-inline: 8px; }
  .file-actions { gap: 7px; }
  .board-home { width: 26px; }
  .board-home img { width: 23px; }
  .board-heading { gap: 1px; }
  .board-heading h1 { font-size: .83rem; }
  .folder-link, .crumb-slash { display: none; }
  .save-status { font-size: .65rem; }
  main[data-view="editor"] .save-status[data-state="saved"] span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .primary-button { padding-inline: 9px; gap: 5px; }
  .tool-rail { left: 8px; padding: 3px; }
  .tool { width: 34px; height: 36px; }
  .history-tools { left: 8px; bottom: 8px; }
  .zoom-bar { right: 8px; bottom: 8px; }
  .zoom-bar .icon-button { width: 27px; }
  .view-options { left: auto; right: -129px; }
  .minimap { right: 8px; bottom: 55px; }
  .inspector { width: 193px; }
  #tool-hint { bottom: 59px; }
  #diagram-options { left: auto; right: 0; }
}

/* The shared editor loads this sheet too. The work surface, panels and controls
   use separate tones so their boundaries stay visible without changing the graph. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: var(--theme-text);
  --muted: var(--theme-muted);
  --accent: var(--theme-accent);
  --line: var(--theme-line);
  --paper: var(--theme-bg);
  --hover: var(--theme-raised);
  --focus: var(--theme-accent);
  --editor-selected: #21463f;
  --editor-accent-ink: #102b25;
  --editor-danger: #ffaaa2;
  --editor-grid: #384247;
  --editor-shadow: 0 2px 7px #05090d40, 0 1px 2px #05090d38;
  --editor-menu-shadow: 0 8px 25px #060b1080, 0 2px 6px #060b103d;
  color: var(--theme-text);
  background-color: var(--theme-bg);
}

html[data-theme="dark"] main { background-color: var(--theme-bg); }
html[data-theme="dark"] .topbar { background-color: var(--theme-panel); }
html[data-theme="dark"] #sidebar-shade { background-color: #03070ba6; }
html[data-theme="dark"] .crumb-slash { color: #869598; }
html[data-theme="dark"] .plain-button {
  background-color: var(--theme-panel); border-color: var(--theme-line); color: var(--theme-text);
}
html[data-theme="dark"] .plain-button:hover:enabled { background-color: var(--theme-raised); }
html[data-theme="dark"] .primary-button {
  background-color: var(--theme-accent); border-color: var(--theme-accent); color: var(--editor-accent-ink);
}
html[data-theme="dark"] .primary-button:hover:enabled { background-color: #a0e8d6; border-color: #a0e8d6; }
html[data-theme="dark"] .save-status i { background-color: var(--theme-accent); }
html[data-theme="dark"] .save-status:is([data-state="saving"],[data-state="loading"]) i { background-color: #e8bc7c; }
html[data-theme="dark"] .save-status[data-state="error"] { color: var(--editor-danger); }
html[data-theme="dark"] .save-status[data-state="error"] i { background-color: var(--editor-danger); }
html[data-theme="dark"] .issue { background-color: #332a21; border-color: #68503b; color: #f3d1ab; }
html[data-theme="dark"] .drawing-area { background-color: var(--theme-bg); }
html[data-theme="dark"] .drawing-area:not(.no-grid) {
  background-image: radial-gradient(circle,var(--editor-grid) .8px,transparent 1px);
}
html[data-theme="dark"] :is(.floating,.popover,.shortcut-dialog) {
  background-color: var(--theme-panel); border-color: var(--theme-line); color: var(--theme-text);
  box-shadow: var(--editor-shadow);
}
html[data-theme="dark"] :is(.popover,.inspector,.shortcut-dialog) { box-shadow: var(--editor-menu-shadow); }
html[data-theme="dark"] .tool { color: var(--theme-muted); }
html[data-theme="dark"] .tool:hover:enabled { color: var(--theme-text); }
html[data-theme="dark"] .tool.active,
html[data-theme="dark"] .palette-grid button[aria-pressed="true"],
html[data-theme="dark"] .branch-presets button[aria-pressed="true"] {
  background-color: var(--editor-selected); color: var(--theme-accent);
}
html[data-theme="dark"] .tool[data-tip]:is(:hover,:focus-visible)::after {
  color: var(--theme-text); background-color: var(--theme-raised); border: 1px solid var(--theme-line);
  box-shadow: var(--editor-shadow);
}
html[data-theme="dark"] .palette-switch { background-color: var(--theme-bg); }
html[data-theme="dark"] .palette-switch button[aria-pressed="true"] {
  background-color: var(--theme-raised); box-shadow: inset 0 0 0 1px var(--theme-line);
}
html[data-theme="dark"] :is(.inspector textarea,.inspector select,.shape-measure input,.view-options select,.connection-ends select) {
  color: var(--theme-text); background-color: var(--theme-bg); border-color: var(--theme-line);
}
html[data-theme="dark"] :is(.quick-type-field,.inspector,.view-options) option {
  color: var(--theme-text); background-color: var(--theme-panel);
}
html[data-theme="dark"] :is(.field,.connection-stroke legend,.connection-ends label) { color: var(--theme-muted); }
html[data-theme="dark"] .connection-fields .stroke-options button {
  color: var(--theme-text); border-color: var(--theme-line); background-color: var(--theme-bg);
}
html[data-theme="dark"] .connection-fields .stroke-options button[aria-pressed="true"] {
  color: var(--theme-accent); background-color: var(--editor-selected); border-color: #608f81;
}
html[data-theme="dark"] .swatch { border-color: #ffffff48; }
html[data-theme="dark"] :is(.size-feedback,.remove-item,.danger-text,#quick-delete:hover) { color: var(--editor-danger); }
html[data-theme="dark"] #tool-hint { color: var(--theme-muted); background-color: #1d2429f2; }
html[data-theme="dark"] .blank-state h2 { color: var(--theme-text); }
html[data-theme="dark"] .toast {
  color: var(--theme-text); background-color: var(--theme-raised); border: 1px solid var(--theme-line);
  box-shadow: var(--editor-menu-shadow);
}
html[data-theme="dark"] .shortcut-dialog::backdrop { background-color: #05090bb8; }
html[data-theme="dark"] kbd { color: var(--theme-text); background-color: var(--theme-raised); }
