/* web/styles.css */
:root {
  color-scheme: light dark;
  --bg-top: #f6f8fb;
  --bg-bottom: #e9eef6;
  --surface: #ffffff;
  --surface-raised: #f9fbff;
  --surface-muted: #edf1f7;
  --panel: #eef3fb;
  --bar: #dde5f2;
  --debug-bg: #e6edf8;
  --text: #1f2a3a;
  --muted: #5e6a7f;
  --disabled-text: #7d889a;
  --border: #c7cfdb;
  --border-soft: #d6dfeb;
  --disabled-border: #c4cbd8;
  --accent: #0d5ea8;
  --accent-strong: #20598d;
  --control-top: #f9fcff;
  --control-bottom: #dce6f4;
  --control-border: #9aa8bf;
  --control-disabled-top: #eef2f8;
  --control-disabled-bottom: #dee5f0;
  --control-active-top: #fefefe;
  --control-active-bottom: #cfe3fb;
  --table-header: #e3ebf8;
  --selected-bg: #dcecff;
  --focus-bg: #f2f8ff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5' viewBox='0 0 7 5'%3E%3Cpath d='M0.5 0.5 3.5 4 6.5 0.5' fill='none' stroke='%235e6a7f' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --info-bg: #eef5fe;
  --info-text: #274466;
  --section-header: #edf3fc;
  --warn-border: #d1a862;
  --warn-bg-top: #fff7e8;
  --warn-bg-bottom: #f6e4bf;
  --warn-text: #5b3810;
  --warn-bg: #fff4e8;
  --warn-border-2: #d97b2f;
  --warn-text-2: #61330f;
  --warn-link: #7b3f14;
  --warn-btn-top: #fff4df;
  --warn-btn-bottom: #f6d7ab;
  --warn-btn-border: #965200;
  --error-border: #c44a4a;
  --error-bg: #fff1f1;
  --error-bg-strong: #ffdede;
  --error-text: #982b2b;
  --ok-text: #1c7c3f;
  --shadow-color: rgba(20, 37, 61, 0.12);
  --overlay: rgba(12, 23, 40, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #121821;
    --bg-bottom: #0d1219;
    --surface: #1a212c;
    --surface-raised: #212a37;
    --surface-muted: #161c25;
    --panel: #161d28;
    --bar: #1b2532;
    --debug-bg: #141b25;
    --text: #e7ecf3;
    --muted: #9aa6b8;
    --disabled-text: #6b7787;
    --border: #2d3848;
    --border-soft: #283143;
    --disabled-border: #333d4d;
    --accent: #4c9be8;
    --accent-strong: #74b2ef;
    --control-top: #2a3543;
    --control-bottom: #222c39;
    --control-border: #3a4555;
    --control-disabled-top: #1c232e;
    --control-disabled-bottom: #181e27;
    --control-active-top: #284460;
    --control-active-bottom: #1f3650;
    --table-header: #222e3d;
    --selected-bg: #234061;
    --focus-bg: #243549;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5' viewBox='0 0 7 5'%3E%3Cpath d='M0.5 0.5 3.5 4 6.5 0.5' fill='none' stroke='%239aa6b8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --info-bg: #182636;
    --info-text: #a9cbf0;
    --section-header: #1e2937;
    --warn-border: #8a6a2e;
    --warn-bg-top: #2a2113;
    --warn-bg-bottom: #221a0f;
    --warn-text: #e8c98a;
    --warn-bg: #2a2012;
    --warn-border-2: #9a5a28;
    --warn-text-2: #e6b483;
    --warn-link: #e0a26a;
    --warn-btn-top: #3a2b12;
    --warn-btn-bottom: #2e2210;
    --warn-btn-border: #8a5a1e;
    --error-border: #c0564f;
    --error-bg: #2e1719;
    --error-bg-strong: #3a1c1f;
    --error-text: #f0a0a0;
    --ok-text: #7fd6a0;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay: rgba(0, 0, 0, 0.62);
  }
}
* {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
body {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      var(--bg-top) 0%,
      var(--bg-bottom) 100%);
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.about-page {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(
      circle at top right,
      rgba(13, 94, 168, 0.16),
      transparent 45%),
    linear-gradient(
      180deg,
      var(--bg-top) 0%,
      var(--bg-bottom) 100%);
}
.about-shell {
  max-width: 860px;
  margin: 2.2rem auto;
  padding: 0 1rem 2rem;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 28px var(--shadow-color);
  padding: 1.5rem 1.6rem;
  line-height: 1.6;
}
.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.about-header h1 {
  margin: 0;
  font-size: 1.35rem;
}
.about-signoff {
  margin-top: 1.1rem;
  font-weight: 600;
}
.radio-page h2 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}
.radio-page h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.3rem;
}
.radio-page-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.radio-page-cta:hover {
  filter: brightness(1.08);
}
.radio-page-list {
  columns: 2;
  gap: 1.2rem;
}
.radio-page-count {
  color: var(--muted);
  font-size: 0.85rem;
}
.radio-specs {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
.radio-specs th,
.radio-specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.3rem 0.6rem 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.radio-specs th {
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
}
.radio-bands thead th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}
.radio-bands th,
.radio-bands td {
  width: auto;
}
.radio-specs-caveat {
  font-size: 0.9rem;
  margin: 0.6rem 0 0.3rem;
}
.radio-specs-sources {
  color: var(--muted);
  font-size: 0.85rem;
}
.radio-page-related {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.licensing-language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.licensing-language-switch button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem;
}
.licensing-language-switch button[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--selected-bg);
}
.licensing-language-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.licensing-language-panel[hidden] {
  display: none;
}
.licensing-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.licensing-header h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.25;
}
.licensing-header nav {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.licensing-flag {
  flex: none;
  font-size: 3rem;
  line-height: 1;
}
.licensing-page h2 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem;
}
.licensing-steps {
  padding-inline-start: 1.4rem;
  overflow-wrap: anywhere;
}
.licensing-steps li {
  padding-inline-start: 0.25rem;
  margin: 0.65rem 0;
}
.licensing-facts {
  margin: 1.2rem 0;
  border-top: 1px solid var(--border);
}
.licensing-facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.licensing-facts dt {
  font-weight: 600;
}
.licensing-facts dd {
  margin: 0;
}
.licensing-facts dd p {
  margin: 0 0 0.6rem;
}
.licensing-facts dd p:last-child {
  margin-bottom: 0;
}
.licensing-facts dd ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}
.licensing-facts dd li + li {
  margin-top: 0.4rem;
}
.licensing-sources {
  padding-inline-start: 1.2rem;
  overflow-wrap: anywhere;
}
.licensing-directory {
  columns: 2;
  list-style: none;
  padding: 0;
}
.licensing-directory li {
  break-inside: avoid;
  margin: 0.3rem 0;
}
.licensing-directory .licensing-flag {
  font-size: 1.25rem;
}
.licensing-directory-local {
  color: var(--muted);
  font-size: 0.85em;
}
@media (max-width: 600px) {
  .licensing-facts > div {
    display: block;
  }
  .licensing-directory {
    columns: 1;
  }
}
.loopback-caveat {
  color: var(--muted);
  font-size: 0.87rem;
}
.loopback-unsupported {
  border: 1px solid var(--warn-border);
  background:
    linear-gradient(
      180deg,
      var(--warn-bg-top) 0%,
      var(--warn-bg-bottom) 100%);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.87rem;
}
.loopback-unsupported[hidden] {
  display: none;
}
.loopback-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem;
  margin: 1.1rem 0 0.6rem;
  padding: 0.85rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.loopback-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}
.loopback-bauds {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.35rem 0.6rem 0.5rem;
  margin: 0;
}
.loopback-bauds legend {
  padding: 0 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.loopback-bauds label,
.loopback-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.loopback-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.loopback-adapter {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.loopback-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.loopback-status[hidden] {
  display: none;
}
.loopback-results {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.8rem;
}
.loopback-results[hidden] {
  display: none;
}
.loopback-results th {
  background: var(--table-header);
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
  text-align: left;
}
.loopback-results td {
  border: 1px solid var(--border-soft);
  padding: 0.3rem 0.5rem;
  vertical-align: top;
}
.loopback-mark {
  font-weight: 700;
  white-space: nowrap;
}
.loopback-row.is-pass .loopback-mark {
  color: var(--ok-text);
}
.loopback-row.is-fail .loopback-mark {
  color: var(--error-text);
}
.loopback-row.is-skip .loopback-mark {
  color: var(--muted);
}
.loopback-baud {
  white-space: nowrap;
  text-align: right;
}
.loopback-detail {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 0.74rem;
  word-break: break-word;
}
.loopback-report-wrap[hidden] {
  display: none;
}
.loopback-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.1rem;
}
.loopback-report-header h2 {
  margin: 0;
  font-size: 1rem;
}
.loopback-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.loopback-report {
  margin: 0.5rem 0 0;
  padding: 0.6rem;
  background: var(--debug-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.74rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}
.app-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bar);
  padding: 0.8rem 1rem;
}
.toolbar-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.toolbar-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.toolbar h1 {
  margin: 0;
  font-size: 1.1rem;
}
.offline-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--error-border);
  border-radius: 999px;
  background: var(--error-bg);
  color: var(--error-text);
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.offline-indicator[hidden] {
  display: none;
}
.offline-indicator svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.version-info {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
}
.version-info a {
  color: inherit;
  text-decoration: underline;
}
.version-info a:hover {
  color: var(--accent);
}
.toolbar-actions {
  display: flex;
  gap: 0.6rem;
}
.toolbar-export {
  position: relative;
}
.toolbar-export-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: max-content;
  padding: 0.25rem;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  background: var(--control-bottom);
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.2);
}
.toolbar-export-menu[hidden] {
  display: none;
}
.toolbar-export-menu button {
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
button {
  border: 1px solid var(--control-border);
  background:
    linear-gradient(
      180deg,
      var(--control-top) 0%,
      var(--control-bottom) 100%);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}
button:not(:disabled):hover {
  border-color: var(--accent);
}
button:disabled {
  background:
    linear-gradient(
      180deg,
      var(--control-disabled-top) 0%,
      var(--control-disabled-bottom) 100%);
  border-color: var(--disabled-border);
  color: var(--disabled-text);
  cursor: default;
}
.toolbar-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--control-border);
  background:
    linear-gradient(
      180deg,
      var(--control-top) 0%,
      var(--control-bottom) 100%);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}
.toolbar-link:hover {
  border-color: var(--accent);
}
.toolbar-install {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.toolbar-install:hover {
  filter: brightness(1.08);
}
.toolbar-icon-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.75;
}
.toolbar-icon-link:hover {
  opacity: 1;
}
.toolbar-logo {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.left-panel {
  border-right: 1px solid var(--border);
  background: var(--panel);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.left-panel-main {
  flex: 0 0 auto;
}
.left-panel h2 {
  margin-top: 0;
  font-size: 1rem;
}
.left-panel-summary {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  pointer-events: none;
}
.left-panel-summary::-webkit-details-marker {
  display: none;
}
.sidebar-warning-panel {
  margin: 0.2rem 0 0.9rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      var(--warn-bg-top) 0%,
      var(--warn-bg-bottom) 100%);
  color: var(--warn-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.sidebar-warning-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-warning-panel.is-unofficial {
  background: #b91c1c;
  border-color: #991b1b;
  color: #fff;
}
.sidebar-warning-panel.is-unofficial a {
  color: inherit;
}
.sidebar-warning-panel p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.serial-support-warning {
  margin: 0.35rem 0 0.8rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--warn-border-2);
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn-text-2);
  font-size: 0.82rem;
  line-height: 1.35;
}
.serial-support-warning a {
  color: var(--warn-link);
  font-weight: 600;
}
.serial-support-warning[hidden] {
  display: none;
}
#radio-search {
  width: 100%;
  margin: 0.2rem 0 0.55rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}
.radio-selection {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.2rem 0 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
}
.radio-selection-caption {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.radio-selection-name {
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}
.radio-selection.is-empty {
  border-left-color: var(--border);
}
.radio-selection.is-empty .radio-selection-name {
  font-weight: 400;
  color: var(--muted);
}
.radio-search-wrap {
  position: relative;
}
.radio-search-results {
  position: absolute;
  top: calc(100% - 0.45rem);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.radio-search-results[hidden] {
  display: none;
}
.radio-search-results li {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.radio-search-alias {
  font-size: 0.72rem;
  color: var(--muted);
}
.radio-search-results li:hover,
.radio-search-results li.is-active {
  background: var(--selected-bg);
}
.radio-search-results li.radio-search-empty,
.radio-search-results li.radio-search-more {
  color: var(--muted);
  cursor: default;
  font-style: italic;
}
.radio-search-results li.radio-search-empty:hover,
.radio-search-results li.radio-search-more:hover {
  background: transparent;
}
.left-panel button:disabled,
.left-panel input:disabled,
.left-panel select:disabled {
  color: var(--disabled-text);
  border-color: var(--disabled-border);
  background:
    linear-gradient(
      180deg,
      var(--control-disabled-top) 0%,
      var(--control-disabled-bottom) 100%);
  cursor: not-allowed;
}
.serial-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.3rem 0 0.6rem;
}
.serial-actions > :only-child {
  grid-column: 1 / -1;
}
.connection-actions {
  grid-template-columns: 1fr;
}
.clone-progress {
  margin: 0.1rem 0 0.6rem;
}
.clone-progress-text {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.clone-progress progress {
  display: block;
  width: 100%;
  height: 0.6rem;
  accent-color: var(--accent);
}
.app-progress {
  margin-bottom: 0.6rem;
}
.app-progress[hidden] {
  display: none;
}
.app-progress-text {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.app-progress-label {
  color: var(--text);
}
.app-progress progress {
  display: block;
  width: 100%;
  height: 0.6rem;
  accent-color: var(--accent);
}
.serial-log {
  margin: 0.6rem 0 0;
  min-height: 92px;
  max-height: 180px;
  overflow: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 0.45rem;
  font-size: 0.74rem;
  line-height: 1.4;
}
.editor-panel {
  padding: 1rem;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.editor-view-toggle {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.editor-view-toggle button {
  position: relative;
  min-width: 8.5rem;
  margin: 0 0 -1px;
  padding: 0.4rem 0.9rem;
  border-color: var(--border);
  border-radius: 6px 6px 0 0;
  background: var(--surface-muted);
  color: var(--muted);
}
.editor-view-toggle button + button {
  margin-left: -1px;
}
.editor-view-toggle button:not(:disabled):hover {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text);
}
.editor-view-toggle button:disabled {
  color: var(--disabled-text);
  border-color: var(--disabled-border);
  background: var(--surface-muted);
  box-shadow: none;
  cursor: not-allowed;
}
.editor-view-toggle button.is-active {
  z-index: 1;
  padding-top: 0.6rem;
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
  color: var(--text);
  box-shadow: inset 0 2px 0 var(--accent);
}
.editor-view {
  min-height: 0;
  flex: 1 1 auto;
  display: none;
  flex-direction: column;
}
.editor-view.is-active {
  display: flex;
}
.channel-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  flex: 0 0 auto;
  position: relative;
}
.channel-toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.channel-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 2.3rem;
  padding: 0.3rem 0.6rem;
  line-height: 1;
  white-space: nowrap;
}
.channel-toolbar button[hidden] {
  display: none;
}
.channel-toolbar button.channel-toolbar-icon {
  width: 2.3rem;
  padding: 0;
}
.channel-toolbar-icon svg,
.channel-bulk-edit svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.channel-toolbar-label {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.channel-toolbar-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--border);
}
.channel-grid {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.mem-table-scroll {
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  flex: 1 1 auto;
}
.channel-empty-state {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.channel-empty-state[hidden] {
  display: none;
}
.channel-empty-card {
  max-width: 34rem;
  padding: 1.6rem 1.9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 2px var(--shadow-color);
}
.channel-empty-icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.channel-empty-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--text);
}
.channel-empty-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.channel-empty-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.channel-empty-steps li + li {
  margin-top: 0.3rem;
}
.channel-empty-card .channel-empty-hint {
  margin-top: 0.55rem;
  font-size: 0.83rem;
  opacity: 0.8;
}
.settings-layout {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
}
.settings-tabs {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
}
.settings-tabs::after {
  content: "";
  flex: 1 1 auto;
  border-right: 1px solid var(--border);
}
.settings-tab {
  width: 100%;
  margin: 0 0 -1px;
  padding: 0.45rem 0.7rem;
  border-color: var(--border);
  border-radius: 6px 0 0 6px;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: left;
  font-size: 0.85rem;
}
.settings-tab:not(:disabled):hover {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text);
}
.settings-tab.has-invalid {
  border-color: var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
}
.settings-tab.is-active {
  position: relative;
  z-index: 1;
  border-color: var(--border);
  border-right-color: var(--surface);
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}
.settings-tab.is-active.has-invalid {
  border-color: var(--error-border);
  border-right-color: var(--surface);
  background: var(--surface);
  color: var(--error-text);
  box-shadow: inset 2px 0 0 var(--error-border);
}
.settings-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--surface);
  box-shadow: 0 10px 22px var(--shadow-color);
}
.settings-summary {
  margin: 0.9rem 0.9rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--info-bg);
  color: var(--info-text);
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
}
.settings-summary.has-invalid {
  border-color: var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
}
.settings-empty {
  margin: auto;
  max-width: 36rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.settings-content {
  min-height: 0;
  overflow: auto;
  padding: 0.9rem;
}
.settings-group {
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-raised);
  overflow: hidden;
}
.settings-group > h3,
.settings-subgroup > h4 {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: var(--section-header);
  font-size: 0.88rem;
}
.settings-subgroup {
  border-top: 1px solid var(--border-soft);
}
.settings-fields {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
  align-items: start;
  padding: 0.8rem;
}
.settings-field-label {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
}
.settings-field-label strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.86rem;
}
.settings-field-doc {
  color: var(--muted);
}
.settings-field-control {
  min-width: 0;
}
.settings-field-control input[type=text],
.settings-field-control input[type=number],
.settings-field-control select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.55rem;
}
.settings-field-control input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.4rem;
}
.settings-field-control.is-invalid input,
.settings-field-control.is-invalid select {
  border-color: var(--error-border);
  background: var(--error-bg);
}
.settings-field-control.is-immutable input,
.settings-field-control.is-immutable select,
.settings-field-control.is-immutable label {
  color: var(--disabled-text);
}
.settings-field-control.is-immutable input,
.settings-field-control.is-immutable select {
  background: var(--surface-muted);
}
.settings-field-error {
  margin-top: 0.25rem;
  color: var(--error-text);
  font-size: 0.78rem;
  line-height: 1.3;
}
.settings-field-warning {
  margin-top: 0.25rem;
  color: var(--warn-text-2);
  font-size: 0.78rem;
  line-height: 1.3;
}
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay);
  padding: 1rem;
  pointer-events: none;
}
.drop-overlay.hidden {
  display: none;
}
.drop-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border: 2px dashed var(--accent);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
  padding: 1.4rem 2rem;
  text-align: center;
}
.drop-overlay-title {
  font-size: 1.05rem;
  font-weight: 600;
}
.drop-overlay-hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: var(--overlay);
  padding: 1rem;
}
.modal-overlay.hidden {
  display: none;
}
.modal-card {
  width: min(560px, 100%);
  margin: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
  padding: 1rem;
}
.modal-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}
.app-shell.browser-unsupported {
  filter: grayscale(1);
}
.unsupported-browser-overlay {
  z-index: 70;
}
.unsupported-browser-card {
  width: max(33vw, 340px);
  max-width: 92vw;
  min-height: 33vh;
  display: flex;
  flex-direction: column;
}
.unsupported-browser-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.unsupported-browser-card a {
  color: var(--warn-link);
  font-weight: 600;
}
.unsupported-browser-card .modal-actions {
  margin-top: auto;
}
.notice-overlay {
  z-index: 65;
}
.import-choice-message,
.notice-message {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.modal-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0.45rem 0.7rem;
  align-items: center;
}
.modal-grid input[type=text],
.modal-grid input[type=number],
.modal-grid select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 0.35rem 0.45rem;
}
.modal-grid input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
#repeater-query-modal .modal-grid {
  row-gap: 1.1rem;
  align-items: start;
}
#repeater-query-modal .modal-field-label {
  padding-top: calc(0.35rem + 1px);
}
#repeater-query-modal .modal-field-label:has(+ .modal-modes),
#repeater-query-modal .modal-field-label:has(+ input[type=checkbox]),
#repeater-query-modal .modal-field-label:has(+ .modal-fixed-value) {
  padding-top: 0;
}
#channel-extra-modal .modal-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
}
#channel-extra-modal .modal-grid {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: start;
  row-gap: 0.7rem;
  overflow-y: auto;
  min-height: 0;
}
.channel-extra-hint,
.channel-extra-message {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.channel-extra-label label {
  font-size: 0.88rem;
}
.channel-extra-doc {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}
.channel-extra-control {
  min-width: 0;
}
.channel-extra-control.is-immutable input,
.channel-extra-control.is-immutable select {
  background: var(--surface-muted);
  color: var(--disabled-text);
}
.channel-extra-control.is-invalid input,
.channel-extra-control.is-invalid select {
  border-color: var(--error-border);
  background: var(--error-bg);
}
.channel-extra-error {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--error-text);
}
#channel-bulk-edit-modal .modal-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
}
.bulk-edit-body {
  overflow-y: auto;
  min-height: 0;
}
#channel-bulk-edit-modal .bulk-edit-grid {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: start;
  row-gap: 0.7rem;
}
.bulk-edit-hint {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.bulk-edit-subhead {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
}
.bulk-edit-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}
.bulk-edit-toggle input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 auto;
}
.bulk-edit-mixed {
  margin-top: 0.15rem;
  margin-left: 1.4rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
}
.bulk-edit-doc {
  margin-top: 0.15rem;
  margin-left: 1.4rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}
.bulk-edit-control {
  min-width: 0;
}
.bulk-edit-control.is-invalid input,
.bulk-edit-control.is-invalid select {
  border-color: var(--error-border);
  background: var(--error-bg);
}
.bulk-edit-error {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--error-text);
}
.modal-fixed-value {
  font-size: 0.9rem;
  color: var(--muted);
}
.modal-geo-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem;
  align-items: center;
}
.modal-coord-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0.4rem;
  align-items: center;
}
.modal-geo-button {
  min-width: 2rem;
  padding: 0.35rem 0.45rem;
  line-height: 1;
}
.modal-city-field {
  position: relative;
}
.modal-city-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: start;
}
.modal-city-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.modal-city-suggestions[hidden] {
  display: none;
}
.modal-city-suggestion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.modal-city-suggestion.is-active {
  background: var(--accent);
  color: #fff;
}
.modal-city-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-city-context {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  color: var(--muted);
}
.modal-city-suggestion.is-active .modal-city-context {
  color: inherit;
  opacity: 0.85;
}
.modal-city-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.modal-city-note[hidden] {
  display: none;
}
.modal-map-preview {
  grid-column: 1 / -1;
  justify-self: end;
  width: 320px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.modal-map-preview .repeater-map-canvas,
.modal-map-preview-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--border);
}
.modal-map-preview .repeater-map-canvas {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.modal-map-preview .repeater-map-canvas.is-panning {
  cursor: grabbing;
}
.modal-map-preview-empty {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.modal-map-preview-count {
  margin: 0;
  padding: 0.25rem 0.45rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.modal-map-preview-count.is-loading {
  opacity: 0.55;
}
.modal-map-preview-count[hidden] {
  display: none;
}
.modal-map-preview-empty[hidden] {
  display: none;
}
.modal-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
}
.modal-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.modal-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.debug-output-panel {
  border-top: 1px solid var(--border);
  background: var(--debug-bg);
  padding: 0.7rem 0.9rem 0.9rem;
}
.debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.debug-header-actions,
.debug-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.debug-actions[hidden],
.debug-output-content[hidden] {
  display: none;
}
.debug-header h2 {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
}
.debug-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  padding: 0.15rem 0;
  font: inherit;
  text-align: left;
}
.debug-toggle:not(:disabled):hover {
  color: var(--accent);
}
.debug-toggle-icon {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 120ms ease;
}
.debug-toggle[aria-expanded=true] .debug-toggle-icon {
  transform: rotate(90deg);
}
.debug-output-content {
  margin-top: 0.4rem;
}
#report-issue {
  border-color: var(--warn-btn-border);
  background:
    linear-gradient(
      180deg,
      var(--warn-btn-top) 0%,
      var(--warn-btn-bottom) 100%);
}
#debug-output {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  padding: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
#mem-table {
  width: max-content;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}
#mem-table th,
#mem-table td {
  border: 1px solid var(--border);
  padding: 0.35rem 0.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
#mem-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-header);
  box-shadow: inset 0 -1px 0 var(--border);
  text-align: left;
}
#mem-table td input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}
@supports (field-sizing: content) {
  #mem-table td input {
    field-sizing: content;
    width: auto;
    min-width: 100%;
    max-width: 48ch;
  }
}
#mem-table td select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  padding: 0 10px 0 2px;
  background: transparent var(--select-arrow) no-repeat right 2px center;
  color: var(--text);
  font-size: 0.85rem;
}
#mem-table td .readonly-cell,
#mem-table th.readonly-cell {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  opacity: 1;
}
#mem-table td:first-child,
#mem-table th:first-child {
  min-width: 2rem;
}
#mem-table td:first-child input,
#mem-table td:first-child select,
#mem-table .channel-location-button {
  min-width: 2rem;
}
#mem-table .channel-location-button {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
#mem-table .channel-location-button:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}
#mem-table .channel-location-button:focus-visible {
  outline: 1px solid var(--accent);
  background: var(--focus-bg);
}
#mem-table .channel-extra-button {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
}
#mem-table .channel-extra-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
#mem-table .channel-extra-button:focus-visible {
  outline: 1px solid var(--accent);
}
#mem-table td[data-column=Extra] {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: inset 1px 0 0 var(--border), -3px 0 5px -3px var(--shadow-color);
}
#mem-table th[data-column=Extra] {
  right: 0;
  z-index: 3;
  box-shadow:
    inset 0 -1px 0 var(--border),
    inset 1px 0 0 var(--border),
    -3px 0 5px -3px var(--shadow-color);
}
#mem-table .channel-location-button.has-callsign {
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.repeater-map-tooltip {
  position: fixed;
  z-index: 70;
  width: 280px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
  overflow: hidden;
}
.repeater-map-tooltip.hidden {
  display: none;
}
.repeater-map-coords {
  display: block;
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.repeater-map-canvas {
  position: relative;
  overflow: hidden;
  background: var(--border);
}
.repeater-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}
.repeater-map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #e01b24;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.repeater-map-pin {
  position: absolute;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.repeater-map-pin.is-out-of-range {
  opacity: 0.4;
}
.repeater-map-pin.is-approximate {
  background: transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}
.repeater-map-range {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(224, 27, 36, 0.75);
  background: rgba(224, 27, 36, 0.12);
  pointer-events: none;
}
.repeater-map-attribution {
  padding: 3px 6px;
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: 0.65rem;
  line-height: 1.3;
  color: var(--muted);
}
.repeater-map-attribution a {
  color: inherit;
}
.repeater-map-card {
  width: min(90vw, 340px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
  overflow: hidden;
}
.repeater-map-header {
  position: relative;
}
.repeater-map-header .repeater-map-coords {
  padding-left: 2rem;
  padding-right: 2rem;
}
.repeater-map-close {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
}
.repeater-map-card .repeater-map-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
}
#mem-table tbody tr.mem-row-spacer td {
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
}
#mem-table tbody tr.is-selected td {
  background: var(--selected-bg);
}
#mem-table td.is-invalid {
  background: var(--error-bg);
}
#mem-table td.is-pending input,
#mem-table td.is-pending select {
  font-style: italic;
  opacity: 0.6;
}
#mem-table td input:focus {
  outline: 1px solid var(--accent);
  background: var(--focus-bg);
}
#mem-table td select:focus {
  outline: 1px solid var(--accent);
  background-color: var(--focus-bg);
}
@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .app-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .toolbar-actions {
    flex-wrap: wrap;
  }
  .main-layout {
    display: block;
    overflow: visible;
  }
  .left-panel {
    display: block;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .editor-panel {
    display: block;
    overflow: visible;
  }
  .editor-view.is-active {
    display: block;
  }
  .mem-table-scroll {
    max-height: 60dvh;
    -webkit-overflow-scrolling: touch;
  }
  .left-panel-summary {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    min-height: 2.75rem;
  }
  .left-panel-summary::after {
    content: "▾";
    color: var(--muted);
  }
  .serial-bridge:not([open]) .left-panel-summary::after {
    content: "▸";
  }
  #mem-table td input,
  #mem-table td select {
    min-height: 2.25rem;
  }
  .toolbar-actions button,
  .toolbar-link,
  .editor-view-toggle button,
  .left-panel button,
  .left-panel select,
  .serial-actions button,
  .channel-toolbar button,
  .modal-actions button,
  .debug-header-actions button {
    min-height: 2.75rem;
  }
  .channel-toolbar button.channel-toolbar-icon {
    min-width: 2.75rem;
    width: 2.75rem;
  }
  #debug-output {
    min-height: 120px;
  }
  .modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #repeater-query-modal .modal-grid {
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  }
  #channel-extra-modal .modal-grid {
    grid-template-columns: 1fr;
  }
  #channel-bulk-edit-modal .bulk-edit-grid {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    flex-direction: row;
    overflow: auto;
    padding-right: 0;
    padding-bottom: 0;
  }
  .settings-tabs::after {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .settings-tab {
    width: auto;
    margin: 0 -1px 0 0;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
  }
  .settings-tab.is-active,
  .settings-tab.is-active.has-invalid {
    border-right-color: var(--border);
    border-bottom-color: var(--surface);
  }
  .settings-tab.is-active {
    box-shadow: inset 0 2px 0 var(--accent);
  }
  .settings-tab.is-active.has-invalid {
    border-right-color: var(--error-border);
    box-shadow: inset 0 2px 0 var(--error-border);
  }
  .settings-panel {
    border-left: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }
  .settings-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .serial-actions {
    grid-template-columns: 1fr;
  }
  .editor-view-toggle button {
    flex: 1 1 0;
    min-width: 0;
  }
  .toolbar h1 {
    flex: 1 1 100%;
  }
}
.app-tooltip {
  position: fixed;
  z-index: 100;
  max-width: 320px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  white-space: pre-line;
}
/*# sourceMappingURL=styles.GCCH6M5W.css.map */
