:root {
  color-scheme: light;
  --ink: #22252a;
  --muted: #5b6269;
  --line: #c0c0c0;
  --blue: #176abe;
  --green: #409343;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Arial, system-ui, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: #ddd; color: var(--ink); font-size: 13px }
button, input, select, textarea { font: inherit }
button { cursor: pointer; color: inherit; border: 0; background: none }
button:disabled { opacity: .45; cursor: default }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }
[hidden] { display: none !important }
svg.icon { width: 17px; height: 17px; display: block; flex: none }
[data-icon] { display: inline-flex; align-items: center; justify-content: center }

.header { height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 12px; background: #1c1c1c; color: #fff }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; font-size: 20px; font-weight: 750; letter-spacing: -.6px }
.brandmark { width: 25px; height: 27px; color: #5ddcba }
.brandmark .icon { width: 23px; height: 23px; fill: currentColor; stroke-width: 1.1 }
.brand-accent { color: #67dfbe }
.brand small { display: none }
.head-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; color: #b9bec3 }
.head-divider { width: 1px; height: 21px; background: #4b4b4b; flex: none; margin-right: 3px }
.head-mid input { min-width: 0; width: min(265px, 100%); background: transparent; border: 0; padding: 5px 3px; color: #fff; font-weight: 700 }
.save-dot, .live-dot, .statusbar i, .sim-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none }
.header .save-dot { background: #6bd8ad }
.header-actions, .save-tools, .output-actions { display: flex; align-items: center; gap: 6px }
.quiet, .outlined, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 9px; border-radius: 4px; min-height: 30px; white-space: nowrap; font-weight: 650 }
.quiet:hover:not(:disabled) { background: #e6e9ee }
.outlined { border: 1px solid #c7c9ce; background: #fff }
.outlined:hover:not(:disabled) { background: #eff4fa }
.primary { background: var(--blue); color: #fff }
.primary:hover:not(:disabled) { background: #10579e }
.header .quiet { color: #fff }
.header .quiet:hover:not(:disabled), .header #save { background: #3a3a3a }
.header #save:hover { background: #505050 }
.header .outlined { color: #fff; background: #1674c9; border-color: #1674c9 }
.header .outlined:hover { background: #1165b0 }
.icon-only { width: 30px; min-height: 28px; padding: 5px }

.workspace { --split: 50%; height: calc(100dvh - 48px); min-height: 505px; display: grid; grid-template-columns: minmax(0, var(--split)) 5px minmax(0, 1fr) }
.source-pane, .studio { display: flex; flex-direction: column; min-height: 0; min-width: 0 }
.source-pane { background: #fff }
.studio { background: #ddd }
#splitter { background: #c7c7c7; border-inline: 1px solid #b8b8b8; cursor: col-resize; touch-action: none }
#splitter:hover, #splitter:focus-visible { background: #8dbbe4 }
.pane-strip { height: 42px; flex: none; display: flex; align-items: end; padding: 0 6px; border-bottom: 1px solid #bdbdbd; background: #dbdbdb }
.tabs { display: flex; align-items: stretch; min-width: 0 }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; color: #303030; white-space: nowrap; border-radius: 8px 8px 0 0; font-size: 13px }
.tab:hover:not(.active) { background: #e8e8e8 }
.tab.active { background: #fff; color: #111; font-weight: 700 }
.library-tab span { font-size: 10px; margin-left: 3px }

.code-view { flex: 1; min-height: 0; display: flex; flex-direction: column }
.code-header { min-height: 34px; padding: 2px 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #434b55; background: #f6f7f8; border-bottom: 1px solid #e1e3e6; font-size: 12px }
.code-header select { margin-left: 5px; color: var(--ink); background: #fff; border: 1px solid #cfd4db; border-radius: 3px; padding: 3px 5px; max-width: 160px }
.code-view p { margin: 0; padding: 8px 12px; background: #f6f7f8; border-top: 1px solid #e1e3e6; color: var(--muted); font-size: 11px }
#diagram-message.error { color: #9c2231 }
.source-code { flex: 1; min-height: 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); font: 13px/1.55 var(--mono) }
.line-numbers { margin: 0; padding: 8px 9px 8px 0; overflow: hidden; border-right: 1px solid #eee; background: #fbfbfb; color: #42708e; text-align: right; font: inherit }
.editor-stack { position: relative; min-width: 0; min-height: 0 }
#highlighted-code, #code-editor { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; padding: 8px 11px; border: 0; font: inherit; tab-size: 2; white-space: pre; overflow: auto; border-radius: 0 }
#highlighted-code { background: #fff; color: #1c2129; scrollbar-width: none; pointer-events: none }
#code-editor { resize: none; color: transparent; caret-color: #131822; background: transparent }
#code-editor::selection { background: #89bdfa66; color: transparent }
#code-editor:focus-visible { outline: 1px solid #8dbbe4; outline-offset: -1px }
#diagram-editor { flex: 1; resize: none; width: 100%; min-height: 0; padding: 10px 12px; border: 0; background: #fff; color: #223044; font: 13px/1.55 var(--mono); tab-size: 2 }
.syntax-comment { color: #657970 }
.syntax-keyword { color: #182dcc }
.syntax-string { color: #a01826 }
.syntax-number { color: #087555 }
.syntax-call { color: #20476a }

.editor { position: relative; flex: 1; min-height: 290px }
.diagram-view { position: absolute; inset: 0; background: #ddd; overflow: hidden }
#board { width: 100%; height: 100%; display: block; touch-action: none; user-select: none }
#grid-layer { opacity: .19 }
.sim-tools { position: absolute; top: 10px; left: 8px; display: flex; align-items: start; gap: 8px }
.round { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; color: #fff; box-shadow: 0 4px 8px #0003; cursor: pointer }
.round:hover { filter: brightness(.91) }
.round .icon { width: 21px; height: 21px }
.round.green { background: var(--green) }
.round.blue { background: var(--blue) }
.round.grey { background: #757575 }
.sim-menu summary { list-style: none }
.sim-menu summary::-webkit-details-marker { display: none }
.menu-items { position: absolute; top: 46px; left: 81px; z-index: 3; min-width: 195px; border: 1px solid #c1c4c7; border-radius: 6px; background: #fff; padding: 5px; box-shadow: 0 4px 15px #0002 }
.menu-items button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px; text-align: left; white-space: nowrap; border-radius: 4px }
.menu-items button:hover:not(:disabled) { background: #eaf2fb }

.canvas-tools, .zoom-tools { position: absolute; bottom: 11px; display: flex; align-items: center; gap: 2px; padding: 3px; background: #f9f9f9; border: 1px solid #b9b9b9; border-radius: 6px; box-shadow: 0 2px 5px #0001 }
.canvas-tools { left: 9px }
.zoom-tools { right: 9px }
.canvas-tools button, .zoom-tools button { display: grid; place-items: center; min-width: 27px; height: 26px; border-radius: 4px; color: #4c535b }
.canvas-tools button.selected, .canvas-tools button:hover:not(:disabled), .zoom-tools button:hover { background: #ddecfa; color: #145693 }
.canvas-tools > span { width: 1px; height: 16px; margin: 0 2px; background: #c9c9c9 }
.zoom-tools button:nth-child(2) { font: 11px var(--mono); min-width: 43px }
.zoom-tools button:first-child, .zoom-tools button:last-child { font-size: 17px }
.canvas-legend { position: absolute; left: 10px; bottom: 52px; max-width: 65%; background: #ffffffad; color: #41464c; padding: 4px 6px; border-radius: 4px; font-size: 11px; pointer-events: none }
.inspector { position: absolute; top: 10px; right: 9px; width: 197px; padding: 11px; border: 1px solid #aeb6bf; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px #0002 }
.inspector strong { display: block; padding-right: 23px }
.inspector .close, dialog .close { position: absolute; right: 5px; top: 4px }
.inspector p { margin: 7px 0; color: var(--muted); font-size: 11px }
.inspector label { display: block; margin: 7px 0; font-size: 11px }
.inspector input[type=number] { width: 100%; margin-top: 4px; padding: 5px; border: 1px solid #b9c2cc; border-radius: 3px }
.inspector input[type=color] { vertical-align: middle }
.inspector button { font-size: 11px }
.part-node { cursor: grab }
.part-node .outline { stroke: #384957; stroke-width: 1.2 }
.part-node.active .outline { stroke: #267bd1; stroke-width: 3 }
.part-node .pin { cursor: crosshair; stroke: #263943; stroke-width: 1.6; fill: #e6b95f }
.part-node .pin:hover, .part-node .pin.pending, .part-node .pin.on { fill: #54e5bd; stroke: #145d4b }
.part-node .pin-label { font: 9px var(--mono); fill: #f2f5fa; pointer-events: none }
.part-node .name { font: 700 13px system-ui; fill: #fff; pointer-events: none }
.part-node .board-label { fill: #2b3440 }
.part-node .ref { font: 10px var(--mono); fill: #c9dbe8; pointer-events: none }
.wire-hit { cursor: pointer }
.wire-line { pointer-events: none }
.board-die { fill: #171a1f; stroke: #a3adb1; stroke-width: 1 }
.mode-pan #board { cursor: grab }
.mode-wire #board { cursor: crosshair }

.library { position: absolute; z-index: 4; top: 56px; left: 8px; width: min(302px, calc(100% - 16px)); max-height: calc(100% - 62px); display: flex; flex-direction: column; background: #fff; border: 1px solid #b9bec4; border-radius: 7px; box-shadow: 0 7px 22px #0003; overflow: hidden }
.sidebar-head { padding: 12px 12px 7px }
.eyebrow { color: #28658f; font-size: 9px; font-weight: 700; letter-spacing: .11em }
.sidebar-title { display: flex; align-items: center; gap: 7px; margin: 4px 0 7px; font-size: 17px; font-weight: 750 }
.sidebar-title span#catalog-count { padding: 1px 5px; border: 1px solid #d6dce2; border-radius: 4px; color: #4f6070; font: 11px var(--mono) }
.sidebar-title button { margin-left: auto }
.search { display: flex; align-items: center; gap: 6px; padding: 7px; background: #f6f7f8; border: 1px solid #c8d0d9; border-radius: 5px; color: #5b6269 }
.search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; font-size: 12px }
.search kbd { padding: 1px 4px; border: 1px solid #d3d8dd; border-radius: 3px; font: 11px var(--mono) }
.categories { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 7px; border-bottom: 1px solid #e3e6e9 }
.categories button { padding: 4px 6px; border-radius: 4px; background: #edf0f3; font-size: 10px }
.categories .active { color: #164f85; background: #dceeff }
.parts-list { overflow: auto; min-height: 0; padding: 2px 10px 6px }
.group-title { padding: 8px 1px 3px; color: #516372; font: 700 10px var(--mono); text-transform: uppercase }
.part-card { width: 100%; display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 5px 7px; text-align: left; border: 1px solid #e3e6e9; border-radius: 4px; background: #fafbfc }
.part-card:hover { border-color: #72a7d8; background: #eff6fc }
.part-icon { width: 28px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 4px; background: #deebf7; color: #195886; font: 700 15px var(--mono) }
.part-title { display: block; font-size: 12px; font-weight: 650 }
.part-sub { display: block; margin-top: 2px; color: #59646d; font-size: 10px }
.part-plus { margin-left: auto; color: #205e93; font-size: 16px }
.library-foot { padding: 6px 10px; border-top: 1px solid #e3e6e9; color: #5b6269; font-size: 10px }
.live-dot { width: 5px; height: 5px; margin-right: 3px }

.output-panel { min-height: 0; display: grid; grid-template-rows: 34px; background: #fff; border-top: 1px solid #c0c0c0 }
.output-panel.open { grid-template-rows: 34px 120px }
.output-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; background: #efefef; border-bottom: 1px solid #d3d3d3 }
.output-bar .tab { height: 32px; padding: 0 8px; font-size: 11px }
.output-bar .icon { width: 14px; height: 14px }
.sim-status { color: #4d535b; font-size: 11px; white-space: nowrap }
.sim-status i { margin-right: 3px; width: 6px; height: 6px; background: #87929d }
.sim-status.running i { background: var(--green) }
.output-panel.open #expand-output .icon { transform: rotate(180deg) }
.console { overflow: auto; padding: 8px 9px; font: 11px/1.65 var(--mono); overflow-wrap: anywhere }
.console-row time { color: #586876; margin-right: 8px }
.console-row strong { color: #176446; margin-right: 8px }
.console-row.error, .console-row.error strong { color: #aa2535 }
.trace { min-height: 0; padding: 5px 8px }
.trace svg { display: block; width: 100%; height: 100%; background: #162438; border-radius: 3px }
.statusbar { display: flex; align-items: center; gap: 12px; min-height: 23px; padding: 0 8px; color: #505962; background: #ededed; font: 10px var(--mono) }
.statusbar i { width: 5px; height: 5px }
.statusbar #time { margin-left: auto }

dialog { width: min(480px, calc(100vw - 24px)); max-height: 85vh; overflow: auto; border: 1px solid #adb6bf; border-radius: 8px; padding: 18px; background: #fff; color: var(--ink); box-shadow: 0 10px 35px #0004 }
dialog::backdrop { background: #0006 }
dialog h2 { margin: 0 23px 10px 0; font-size: 19px }
dialog p, dialog li { color: #4e5965; line-height: 1.5 }
.example-card { width: 100%; display: block; text-align: left; margin-top: 7px; padding: 9px; border: 1px solid #c7d4e0; border-radius: 5px; background: #f7fafd }
.example-card:hover { background: #eaf3fc }
.example-card b { display: block; margin-bottom: 4px; color: #1a5c93 }
.example-card small { display: block; line-height: 1.4 }
.dialog-buttons { display: flex; justify-content: end; gap: 7px; margin-top: 15px }
.toast { position: fixed; z-index: 5; right: 12px; bottom: 28px; max-width: min(360px, 90vw); padding: 9px 12px; border: 1px solid #a4bed8; border-radius: 5px; background: #f3f8fe; color: #173956; box-shadow: 0 4px 12px #0002 }
.empty { padding: 8px 3px; color: var(--muted) }

@media (max-width: 820px) {
  .header { gap: 7px; padding-inline: 7px }
  .header-actions button { padding-inline: 6px }
  .tab { padding-inline: 8px; font-size: 12px }
  .sim-status { display: none }
}
@media (max-width: 640px) {
  .workspace { height: auto; grid-template-columns: 1fr; grid-template-rows: 305px minmax(410px, 65dvh) }
  #splitter { display: none }
  .source-pane { border-bottom: 1px solid #aaa }
  .brand { font-size: 16px; gap: 4px }
  .brandmark { width: 17px }
  .brandmark .icon { width: 17px }
  .head-mid > [data-icon], .head-divider, .head-mid .save-dot, .header button > span:last-child { display: none }
  .header-actions { gap: 2px }
  .head-mid input { font-size: 11px }
}
.part-node.bare .outline { fill: #fff; fill-opacity: 0; stroke: transparent }
.part-node.bare.active .outline { fill-opacity: .3; stroke: #267bd1; stroke-dasharray: 4 3; stroke-width: 1.5 }
.part-node.bare .name, .part-node.bare .ref, .part-node.bare .pin-label { fill: #303941 }

.welcome {
  min-height: 100dvh;
  color: #f3f5f4;
  background: radial-gradient(ellipse at 50% 39%, #0d1818da, #080b0bea 57%, #080b0ba0 100%), url('./pcb-pattern.svg'), #0a0d0e;
}
.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 0 clamp(16px, 4vw, 54px);
  border-bottom: 1px solid #252d2c;
  background: #0d1112;
}
.welcome-bar .brand { font-size: 22px }
.welcome-import, .welcome-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #3c4948;
  border-radius: 5px;
  background: #141b1c;
  color: #e1ebe7;
  font-weight: 650;
}
.welcome-import:hover, .welcome-action:hover { border-color: #6ebba8; background: #20312e }
.welcome-content { max-width: 768px; margin: 0 auto; padding: clamp(24px, 5vh, 60px) 20px 34px }
.welcome-content h1 { margin: 9px 0 8px; color: #f5faf8; font-size: clamp(28px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; text-align: center }
.welcome-content h1:focus { outline: none }
.welcome-content h1 em { color: #67dfbe; font-style: normal }
.welcome-kicker { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; color: #99c8b9; font: 700 10px var(--mono); letter-spacing: .12em; text-align: center }
.welcome-kicker span { width: 6px; height: 6px; border-radius: 50%; background: #67dfbe; box-shadow: 0 0 9px #67dfbe75 }
.welcome-intro { margin: 0 0 24px; color: #b5c1c0; font-size: 14px; text-align: center; line-height: 1.45 }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.board-option {
  display: grid;
  grid-template-rows: clamp(100px, 19vh, 169px) auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #495453;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 51%, #14292c 0%, #0e1416 55%, #0b0f11 100%);
  box-shadow: 0 5px 16px #0004;
  text-align: left;
  transition: border-color .17s, background-color .17s, box-shadow .17s;
}
.esp-option { background: radial-gradient(ellipse at 50% 51%, #262831 0%, #131419 57%, #0b0f11 100%) }
.stm-option { background: radial-gradient(ellipse at 50% 51%, #15263a 0%, #10161d 56%, #0b0f11 100%) }
.pico-option { background: radial-gradient(ellipse at 50% 51%, #183327 0%, #111b16 56%, #0b0f11 100%) }
.board-option:hover, .board-option:focus-visible { border-color: #79d6bd; box-shadow: 0 0 0 1px #79d6bd45, 0 8px 20px #0005 }
.board-illustration { display: block; width: 100%; height: 100%; padding: 2px 8px; filter: drop-shadow(0 7px 7px #000a) }
.board-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 57px; padding: 8px 14px; border-top: 1px solid #414a49; background: #222a2b }
.board-caption strong, .board-caption small { display: block }
.board-caption strong { font-size: 15px; letter-spacing: .01em }
.board-caption small { margin-top: 3px; color: #b4bfbe; font-size: 11px }
.board-arrow { color: #77cdb4 }
.board-option:hover .board-arrow { transform: translateX(2px) }
.welcome-footer { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 17px }
.welcome-action { background: #101617; font-size: 12px }
.welcome-action .icon, .welcome-import .icon { width: 15px; height: 15px }
@media (max-width: 440px) {
  .welcome-bar { min-height: 53px; gap: 5px; padding-inline: 10px }
  .welcome-bar .brand { font-size: 17px }
  .welcome-import { font-size: 11px; padding-inline: 6px }
  .welcome-content { padding-inline: 10px }
  .board-grid { gap: 8px }
  .board-caption { min-height: 51px; padding: 7px }
  .board-caption strong { font-size: 13px }
  .board-caption small { font-size: 10px }
}

.push-actuator { cursor: pointer }
.tft-panel { height: 100%; display: flex; flex-direction: column; color: #e3ece9; font: 12px/1.23 var(--mono); pointer-events: none }
.tft-heading { padding-bottom: 6px; border-bottom: 1px solid #3a4d47; color: #f1f3f1; font-weight: 700; letter-spacing: .06em }
.tft-message { display: -webkit-box; flex: 1; margin: 7px 0 4px; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 7 }
.tft-message.ready { color: #75ef98 }
.tft-source { color: #9ab1a9; font-size: 9px }

.clock-segment { fill: none; stroke: #28312f; stroke-width: 5; stroke-linecap: round; pointer-events: none }
.clock-segment.lit { stroke: #ff5e61; filter: drop-shadow(0 0 3px #ff434e70) }
.clock-status { fill: #8de1bd; font: 700 10px var(--mono); letter-spacing: .07em; pointer-events: none }

.project-gallery { width: min(1060px, 100%); margin: 0 auto; padding: 30px 20px 50px }
.gallery-back { display: inline-flex; gap: 7px; align-items: center; color: #a1dfcd; text-decoration: none; font-weight: 650 }
.gallery-back:hover { text-decoration: underline }
.project-gallery h1 { margin: 13px 0 5px; font-size: clamp(28px,4vw,44px); letter-spacing: -.025em }
.project-gallery h1:focus { outline: none }
.project-gallery > p { margin: 0 0 20px; color: #b6c5bf }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #495957; border-radius: 8px; background: #202a2b; color: #fff; text-align: left; box-shadow: 0 5px 15px #0004 }
.project-card:hover { border-color: #79d6bd }
.project-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.8; overflow: hidden; background: radial-gradient(ellipse at 55% 42%,#ecf0ef,#ced8d5) }
.project-thumb pre { position: absolute; inset: 6px 10px; margin: 0; color: #3c6259; opacity: .18; white-space: pre; font: 8px/1.4 var(--mono); pointer-events: none }
.project-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.project-thumb .pin-label, .project-thumb .ref, .project-thumb .tft-panel { display: none }
.project-thumb .clock-segment { stroke: #de6264; opacity: .68 }
.project-caption { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 60px; padding: 9px 12px; border-top: 1px solid #465754 }
.project-caption strong, .project-caption small { display: block }
.project-caption strong { font-size: 14px }
.project-caption small { margin-top: 4px; color: #b3c2bc; font-size: 11px }
@media (max-width: 760px) { .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)) } }
@media (max-width: 425px) {
 .project-gallery { padding: 22px 10px 35px }
 .project-grid { gap: 8px }
 .project-caption { padding-inline: 7px }
 .project-caption strong { font-size: 12px }
}

.keypad-key { cursor: pointer }
.keypad-key rect { fill: #264e77; stroke: #85a8bc; stroke-width: 1 }
.keypad-key rect.key-confirm { fill: #20654d }
.keypad-key rect.key-clear { fill: #863747 }
.keypad-key:hover rect, .keypad-key:focus-visible rect { stroke: #ddf5f0; stroke-width: 2 }
.keypad-key:active rect { fill: #477b8b }
.keypad-key text { fill: #fff; font: 700 15px var(--mono); pointer-events: none }
.keypad-entry, .keypad-status, .lock-state { fill: #b6efd9; font: 700 11px var(--mono); pointer-events: none }
.keypad-entry { font-size: 14px; letter-spacing: 2px }
.lock-state { fill: #ffb9bd }
.lock-state.open { fill: #94f0bc }
.lock-arm { transform-origin: 100px 65px; transition: transform .2s ease; pointer-events: none }
.lock-arm.open { transform: rotate(-90deg) }
.reader-action { cursor: pointer }
.reader-action text { fill: #f0f9f7; font: 12px system-ui; pointer-events: none }
.reader-action:hover rect, .reader-action:focus-visible rect { stroke: #c7fff0; stroke-width: 2 }

.zone-type { fill: #d8e9f2; font: 12px system-ui; pointer-events: none }
.zone-trigger { cursor: pointer }
.zone-trigger text { fill: #eaf9f2; font: 10px system-ui; pointer-events: none }
.zone-trigger:hover rect, .zone-trigger:focus-visible rect { stroke: #b8f3e1; stroke-width: 2 }
.alarm8-title { fill: #304a2b; font: 700 12px var(--mono) }
.alarm8-status { fill: #172f18; font: 700 17px var(--mono) }
.alarm8-cause { fill: #284021; font: 10px var(--mono) }
.alarm8-zones rect { fill: #9ab875; stroke: #62804b }
.alarm8-zones rect.active { fill: #b94c37 }
.alarm8-zones text { fill: #15321c; font: 700 11px var(--mono) }
.pulse-lamp { fill: #263e4b; stroke: #5a778b }
.pulse-lamp.high { fill: #2c9e73; stroke: #b8ffdf }
.pulse-name, .pulse-count, .gsm-last, .gsm-caption { fill: #daeee7; font: 11px var(--mono); pointer-events: none }
.gsm-caption { font-size: 9px }
.inspector select { display: block; width: 100%; margin-top: 4px; padding: 5px; border: 1px solid #b9c2cc; border-radius: 3px; background: #fff }

.addr-display { height: 100%; color: #213d24; font: 12px/1.25 var(--mono); overflow: hidden }
.ad-mode { display: block; font-size: 11px; border-bottom: 1px solid #718e57; padding-bottom: 3px }
.ad-status { font-size: 17px; font-weight: 750; margin-top: 3px }
.ad-detail { font-size: 10px; margin: 3px 0; overflow-wrap: anywhere }
.ad-menu { font-size: 11px; min-height: 45px; white-space: pre-wrap; overflow-wrap: anywhere }
.ad-input { font-size: 15px; min-height: 19px; overflow-wrap: anywhere }
.ad-points { margin-top: 3px; font-size: 10px }
.ad-point-name, .ad-point-address { fill: #deeee9; font: 10px system-ui; pointer-events: none }
.ad-point-address { font-size: 9px }
.studio > .pane-strip { justify-content: space-between }
#keypad-guide { font-size: 11px; margin-bottom: 4px }
.guide-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.4 }
.guide-table td, .guide-table th { border: 1px solid #cad6dc; padding: 6px; text-align: left; vertical-align: top }
