/* src/main.css */
:root {
  color-scheme: dark;
  --bg: #09141c;
  --panel: rgba(12, 27, 38, 0.9);
  --border: rgba(115, 194, 192, 0.24);
  --text: #e5efe8;
  --muted: #95a8a9;
  --accent: #f2b84b;
  --accent-soft: rgba(242, 184, 75, 0.16);
  --glow: rgba(89, 191, 186, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --screen-frame-padding: 18px;
  --screen-max-width: 720px;
  font-family:
    "Iosevka",
    "IBM Plex Mono",
    "Cascadia Mono",
    monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top,
      rgba(242, 184, 75, 0.12),
      transparent 32%),
    linear-gradient(
      160deg,
      #0b1620 0%,
      #09141c 48%,
      #04080b 100%);
  color: var(--text);
}
.shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}
h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}
.status {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: var(--shadow);
}
.workspace {
  display: block;
}
.workspace > section + section {
  margin-top: 20px;
}
.display-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: relative;
}
.display-panel {
  padding: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.disk-library {
  margin-bottom: 16px;
  padding: 0;
  border: 1px solid rgba(89, 191, 186, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(7, 18, 25, 0.88),
      rgba(5, 12, 17, 0.94));
}
.disk-library[open] {
  border-color: rgba(89, 191, 186, 0.28);
}
.disk-library__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.disk-library__summary:hover,
.disk-library__summary:focus-visible {
  background: rgba(242, 184, 75, 0.05);
}
.disk-library__summary:focus-visible {
  outline: 2px solid rgba(242, 184, 75, 0.36);
  outline-offset: 3px;
}
.disk-library__summary::-webkit-details-marker {
  display: none;
}
.disk-library__summary::marker {
  content: "";
}
.disk-library__summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242, 184, 75, 0.24);
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.1);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.disk-library[open] .disk-library__summary::after {
  content: "-";
}
.disk-library__summary-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.disk-library__eyebrow {
  margin: 0;
}
.disk-library__summary-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.disk-library__body {
  padding: 0 16px 16px;
}
.disk-library__copy {
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(89, 191, 186, 0.14);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.disk-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.disk-library__card {
  padding: 14px;
  border: 1px solid rgba(242, 184, 75, 0.14);
  border-radius: 16px;
  background: rgba(10, 24, 34, 0.76);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disk-library__meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.disk-library__picker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.disk-library__trigger {
  min-width: min(100%, 220px);
}
.disk-library__trigger[aria-expanded=true] {
  background: rgba(242, 184, 75, 0.24);
  border-color: rgba(242, 184, 75, 0.5);
}
.disk-library__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.disk-library__choices[hidden] {
  display: none;
}
.disk-library__choices button {
  padding: 8px 14px;
  font-size: 13px;
}
button {
  appearance: none;
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 10px 16px;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}
button:hover,
button:focus-visible {
  transform: translateY(-1px);
  background: rgba(242, 184, 75, 0.24);
  border-color: rgba(242, 184, 75, 0.5);
}
button.is-dirty {
  background: rgba(164, 42, 24, 0.28);
  border-color: rgba(233, 100, 77, 0.68);
  color: #ffd7d2;
}
button.is-dirty:hover,
button.is-dirty:focus-visible {
  background: rgba(192, 54, 33, 0.34);
  border-color: rgba(249, 126, 105, 0.8);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}
.screen-frame {
  padding: var(--screen-frame-padding);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 23, 0.96),
      rgba(4, 10, 14, 0.96));
  border: 1px solid rgba(89, 191, 186, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 24px 48px rgba(0, 0, 0, 0.32);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
  max-width: calc(var(--screen-max-width) + (var(--screen-frame-padding) * 2) + 2px);
  margin: 0 auto;
}
.screen-frame.is-focused {
  border-color: rgba(242, 184, 75, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 48px rgba(0, 0, 0, 0.32),
    0 0 0 2px rgba(242, 184, 75, 0.22),
    0 0 40px rgba(242, 184, 75, 0.12);
  transform: translateY(-1px);
}
#screen {
  width: 100%;
  max-width: var(--screen-max-width);
  aspect-ratio: 3 / 2;
  image-rendering: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(89, 191, 186, 0.22);
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 40px var(--glow);
  outline: none;
}
#screen:focus-visible {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 2px rgba(242, 184, 75, 0.42),
    0 0 40px var(--glow);
}
.hint {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
}
.display-panel__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.display-panel__status-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.display-panel__status-copy .hint:first-child {
  margin-top: 14px;
}
.mobile-keyboard-toggle {
  display: none;
  flex: 0 0 auto;
  align-self: flex-end;
  white-space: nowrap;
}
.mobile-keyboard-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  inset-inline-end: 0;
  inset-block-end: 0;
}
.stats {
  color: var(--accent);
}
.audio-debug {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(89, 191, 186, 0.18);
  border-radius: 999px;
  background: rgba(8, 18, 25, 0.82);
}
.audio-debug--worklet {
  border-color: rgba(89, 191, 186, 0.32);
  color: #8ee0d6;
}
.audio-debug--fallback {
  border-color: rgba(242, 184, 75, 0.4);
  color: var(--accent);
}
.audio-debug--unavailable {
  border-color: rgba(233, 100, 77, 0.5);
  color: #ffb4a6;
}
.confirm-dialog {
  border: 0;
  padding: 0;
  max-width: min(540px, calc(100vw - 32px));
  background: transparent;
  color: var(--text);
}
.confirm-dialog::backdrop {
  background: rgba(4, 10, 14, 0.72);
  backdrop-filter: blur(6px);
}
.confirm-dialog__panel {
  margin: 0;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(
      180deg,
      rgba(9, 20, 28, 0.98),
      rgba(6, 14, 20, 0.98));
  box-shadow: var(--shadow);
}
.confirm-dialog__message {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.confirm-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.workbench-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 20px;
  max-width: 1160px;
  margin: 20px auto 0;
}
.workbench-heading {
  margin-bottom: 18px;
}
.workbench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.workbench-tab {
  background: rgba(89, 191, 186, 0.08);
  border-color: rgba(89, 191, 186, 0.22);
}
.workbench-tab.is-active {
  background: rgba(242, 184, 75, 0.24);
  border-color: rgba(242, 184, 75, 0.52);
}
.workbench-tab-panel.is-active {
  display: block;
}
.workbench-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.workbench-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workbench-grid--assembler {
  grid-template-columns: minmax(0, 1.00fr) minmax(0, 1.00fr);
}
.workbench-grid--disassembler {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
}
.tool-card {
  border: 1px solid rgba(89, 191, 186, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 23, 0.96),
      rgba(4, 10, 14, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  padding: 18px;
  min-height: 100%;
}
.tool-card--placeholder {
  max-width: 760px;
}
.tool-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.tool-card__header h3 {
  margin: 0;
  font-size: 18px;
}
.tool-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field-input,
.workbench-textarea {
  width: 100%;
  border: 1px solid rgba(89, 191, 186, 0.22);
  border-radius: 14px;
  background: rgba(8, 18, 25, 0.92);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}
.field-input:focus-visible,
.workbench-textarea:focus-visible {
  outline: 2px solid rgba(242, 184, 75, 0.34);
  outline-offset: 1px;
}
.workbench-textarea {
  min-height: 220px;
  resize: vertical;
}
.tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.tool-actions--tight {
  margin-top: 0;
  margin-bottom: 14px;
}
.workbench-output {
  margin: 0;
  min-height: 220px;
  border: 1px solid rgba(89, 191, 186, 0.16);
  border-radius: 14px;
  background: rgba(3, 10, 15, 0.96);
  color: var(--text);
  overflow: auto;
  padding: 14px;
  white-space: pre;
}
.reference-guide {
  display: grid;
  gap: 16px;
}
.reference-toolbar {
  display: grid;
  gap: 12px;
}
.reference-search {
  display: block;
}
.reference-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.reference-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reference-pill {
  padding: 8px 12px;
  border-color: rgba(89, 191, 186, 0.22);
  background: rgba(89, 191, 186, 0.08);
}
.reference-pill.is-active {
  border-color: rgba(242, 184, 75, 0.52);
  background: rgba(242, 184, 75, 0.24);
}
.reference-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.reference-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 220px) minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}
.reference-sidebar,
.reference-results,
.reference-detail {
  border: 1px solid rgba(89, 191, 186, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 23, 0.96),
      rgba(4, 10, 14, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.reference-sidebar,
.reference-results {
  padding: 16px;
}
.reference-detail {
  padding: 18px;
}
.reference-sidebar,
.reference-detail {
  position: sticky;
  top: 16px;
}
.reference-sidebar__section + .reference-sidebar__section {
  margin-top: 18px;
}
.reference-sidebar__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reference-sidebar__empty,
.reference-detail__empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.reference-nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.reference-nav__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-color: rgba(89, 191, 186, 0.22);
  background: rgba(89, 191, 186, 0.08);
  padding: 10px 12px;
}
.reference-nav__button.is-active {
  border-color: rgba(242, 184, 75, 0.52);
  background: rgba(242, 184, 75, 0.24);
}
.reference-overview-block + .reference-overview-block {
  margin-top: 18px;
}
.reference-section-heading {
  margin-bottom: 12px;
}
.reference-section-heading h3 {
  margin: 0;
  font-size: 18px;
}
.reference-section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.reference-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reference-card {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(89, 191, 186, 0.16);
  background: rgba(8, 18, 25, 0.88);
  padding: 14px;
  text-align: left;
}
.reference-card--quick {
  display: grid;
  gap: 6px;
}
.reference-card__eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reference-card__title {
  font-size: 17px;
}
.reference-card__meta,
.reference-card__body,
.reference-result__kind,
.reference-result__summary,
.reference-result__meta {
  color: var(--muted);
}
.reference-card__meta,
.reference-result__kind,
.reference-result__meta {
  font-size: 12px;
}
.reference-card__body,
.reference-result__summary {
  font-size: 13px;
  line-height: 1.45;
}
.reference-result-list {
  display: grid;
  gap: 10px;
}
.reference-result {
  width: 100%;
  display: grid;
  gap: 6px;
  border-radius: 18px;
  border: 1px solid rgba(89, 191, 186, 0.16);
  background: rgba(8, 18, 25, 0.88);
  padding: 14px;
  text-align: left;
}
.reference-result.is-selected {
  border-color: rgba(242, 184, 75, 0.52);
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.16);
}
.reference-result__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.reference-result__title {
  font-size: 16px;
}
.reference-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reference-link-chip,
.reference-static-chip {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}
.reference-link-chip.is-selected {
  border-color: rgba(242, 184, 75, 0.52);
  background: rgba(242, 184, 75, 0.24);
}
.reference-static-chip {
  border: 1px solid rgba(89, 191, 186, 0.22);
  background: rgba(8, 18, 25, 0.88);
  color: var(--text);
}
.reference-detail__header h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}
.reference-detail__kind {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reference-detail__summary {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.reference-detail__stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 16px 0;
}
.reference-detail__stats div {
  border: 1px solid rgba(89, 191, 186, 0.16);
  border-radius: 16px;
  background: rgba(8, 18, 25, 0.88);
  padding: 12px;
}
.reference-detail__stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reference-detail__stats strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}
.reference-detail__section + .reference-detail__section {
  margin-top: 18px;
}
.reference-detail__section h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.reference-detail__section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.reference-note-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.reference-note-list li + li {
  margin-top: 8px;
}
.reference-table-wrap {
  overflow: auto;
  border: 1px solid rgba(89, 191, 186, 0.16);
  border-radius: 16px;
  background: rgba(3, 10, 15, 0.96);
}
.reference-table {
  width: 100%;
  border-collapse: collapse;
}
.reference-table th,
.reference-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(89, 191, 186, 0.12);
  font-size: 13px;
}
.reference-table tr:last-child td {
  border-bottom: 0;
}
.reference-inline-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
}
.reference-inline-link:hover,
.reference-inline-link:focus-visible {
  transform: none;
  border-color: transparent;
  background: transparent;
}
.reference-empty-state,
.reference-placeholder {
  display: grid;
  gap: 14px;
}
.reference-placeholder code {
  color: var(--text);
}
@media (min-width: 901px) {
  .reference-toolbar {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .reference-search {
    grid-column: 1 / -1;
  }
  .reference-toolbar__controls {
    grid-column: 1 / 2;
  }
  .reference-count {
    grid-column: 2 / 3;
    justify-self: end;
  }
}
@media (max-width: 900px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }
  .status {
    width: 100%;
  }
  .workbench-grid {
    grid-template-columns: 1fr;
  }
  .workbench-grid--two {
    grid-template-columns: 1fr;
  }
  .workbench-grid--assembler {
    grid-template-columns: 1fr;
  }
  .workbench-grid--disassembler {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .reference-layout {
    grid-template-columns: 1fr;
  }
  .reference-sidebar,
  .reference-detail {
    position: static;
  }
  .reference-card-grid {
    grid-template-columns: 1fr;
  }
  .display-panel__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-keyboard-toggle {
    display: inline-flex;
    align-self: flex-end;
  }
}
/*# sourceMappingURL=app.css.map */
