@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg:#101512;
  --panel:#171e1a;
  --sub:#121914;
  --border:#2a362e;
  --text:#edf3ee;
  --muted:#95a69a;
  --green:#b6f5c9;
  --orange:#e8b888;
  --blue:#adcbfa;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 360px;
  background-image:
    radial-gradient(
      ellipse at 70% 0,
      rgba(93, 157, 110, .065),
      transparent 50%);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
button {
  color: inherit;
}
button svg {
  flex-shrink: 0;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
svg {
  display: inline-block;
  vertical-align: middle;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  background: #1b251f;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #26372c;
  border-color: #4e6955;
}
.ghost {
  background: transparent;
}
.primary {
  background: var(--green);
  color: #17331e;
  border-color: var(--green);
  font-weight: 650;
}
.primary:hover {
  background: #cbffdc;
  border-color: #cbffdc;
}
.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.subtle:hover {
  color: var(--text);
}
.shell {
  max-width: 1664px;
  margin: auto;
  padding: 0 48px;
}
.topbar {
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.6px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.brand small {
  font: 10px var(--mono);
  letter-spacing: 1.3px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-left: 10px;
}
.topnav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.local-label {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .5px;
  margin-right: 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  box-shadow: 0 0 8px #b6f5c922;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding: 43px 0 27px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 12px;
}
.eyebrow .line {
  width: 23px;
  height: 1px;
  background: var(--green);
}
h1 {
  font-size: clamp(30px, 3.1vw, 47px);
  font-weight: 550;
  letter-spacing: -1.9px;
  line-height: 1.16;
  margin: 0 0 13px;
}
h1 em {
  font-style: normal;
  color: var(--green);
}
.hero p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 660px;
}
.hero-actions {
  display: flex;
  gap: 9px;
  padding-bottom: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(
      105deg,
      #1b261e,
      #171e1a);
  margin-bottom: 27px;
  overflow: hidden;
}
.stat {
  padding: 18px 24px;
  position: relative;
}
.stat + .stat:before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--border);
}
.stat-top {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.stat-value {
  font: 30px var(--mono);
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat-value small {
  font: 10px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
}
.green {
  color: var(--green);
}
.orange {
  color: var(--orange);
}
.blue {
  color: var(--blue);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar-label {
  font-size: 11px;
  color: var(--muted);
}
select {
  appearance: none;
  padding: 9px 33px 9px 11px;
  background: #1b251f;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  max-width: 250px;
}
.select-wrap {
  position: relative;
}
.select-wrap > svg {
  position: absolute;
  right: 10px;
  top: 12px;
  pointer-events: none;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(265px, .94fr) minmax(350px, 1.43fr) minmax(275px, .93fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  min-height: 490px;
}
.panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.panel + .panel {
  border-left: 1px solid var(--border);
}
.panel-head {
  height: 53px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.file-tag {
  font: 9px var(--mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 5px;
}
.panel-head .subtle {
  padding: 5px 7px;
  font-size: 10px;
}
.editor-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px 0;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.editor-note .kbd {
  font: 9px var(--mono);
  color: #6f8777;
}
.code-editor {
  display: flex;
  margin-top: 11px;
  min-height: 298px;
  height: 298px;
  background: #141c16;
  overflow: hidden;
  border-top: 1px solid #26322a;
  border-bottom: 1px solid #26322a;
  position: relative;
}
.gutter {
  width: 47px;
  flex-shrink: 0;
  padding: 12px 0;
  overflow: hidden;
  border-right: 1px solid #222e26;
  scrollbar-width: none;
}
.gutter button {
  height: 24px;
  line-height: 24px;
  min-height: 24px;
  padding: 0 8px 0 0;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  width: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #718678;
  font: 11px var(--mono);
}
.gutter button:hover {
  color: var(--green);
  background: #24362a;
}
.gutter button.off {
  color: #59645c;
  text-decoration: line-through;
}
.gutter button.active {
  color: var(--green);
  background: #2b4131;
}
.gutter .toggle-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #668670;
}
.gutter button.off .toggle-dot {
  background: #3c4940;
}
.gutter button:disabled {
  opacity: 1;
  cursor: default;
}
.rules-input {
  flex: 1;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 12px 11px;
  resize: none;
  line-height: 24px;
  font-family: var(--mono);
  font-size: 11px;
  tab-size: 2;
  color: #c8dfce;
  background: transparent;
  white-space: pre;
  overflow: auto;
  outline-offset: -2px !important;
}
.editor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 7px;
  font: 10px var(--mono);
  color: var(--muted);
}
.hits-hint {
  font: 10px var(--mono);
  color: var(--muted);
  padding: 0 17px 12px;
  line-height: 1.6;
}
.case-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 14px 17px;
}
.case-option input {
  accent-color: var(--green);
  width: 13px;
  height: 13px;
  margin: 0;
}
.case-option span {
  margin-left: auto;
  font: 9px var(--mono);
  color: #6e8274;
}
.tree-tools {
  padding: 12px 15px 10px;
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.search-wrap {
  position: relative;
}
.search-wrap > svg {
  position: absolute;
  top: 10px;
  left: 9px;
  color: var(--muted);
}
.search-wrap input {
  width: 100%;
  background: #111813;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px 9px 31px;
  font-size: 11px;
}
.search-wrap input::placeholder {
  color: #7c8e80;
}
.filters {
  display: flex;
  gap: 4px;
}
.filters button {
  background: transparent;
  border: 1px solid transparent;
  padding: 5px 8px;
  font-size: 10px;
  color: var(--muted);
  border-radius: 4px;
}
.filters button[aria-pressed=true] {
  background: #2b3d30;
  border-color: #3c5643;
  color: var(--green);
}
.tree-root {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 18px 11px;
  font: 11px var(--mono);
  color: #c4d3c7;
}
.tree-root .root-label {
  flex: 1;
}
.tree-root small {
  font: 9px var(--mono);
  color: var(--muted);
}
.tree-list {
  height: 294px;
  min-height: 150px;
  overflow: auto;
  padding: 0 9px 10px;
  scrollbar-color: #3d5143 transparent;
  scrollbar-width: thin;
}
.pathrow {
  border: 0;
  border-radius: 4px;
  display: flex;
  justify-content: flex-start;
  background: transparent;
  width: 100%;
  height: 29px;
  padding: 0 7px 0 calc(7px + var(--depth)*16px);
  font: 11px var(--mono);
  gap: 7px;
  color: #d0ddd3;
  white-space: nowrap;
  text-align: left;
  font-weight: 400;
}
.pathrow:hover {
  background: #223029;
}
.pathrow.selected {
  background: #2b3e30;
  box-shadow: inset 2px 0 var(--green);
}
.pathrow.ignored {
  color: #94a498;
}
.pathrow .path-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.pathrow .fileicon {
  color: #8da494;
}
.pathrow.ignored .fileicon {
  color: #a99276;
}
.pathrow .disclosure {
  width: 12px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.pathrow .disclosure.empty {
  opacity: 0;
}
.pathrow .status {
  font: 8px var(--mono);
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 4px;
  color: var(--green);
}
.pathrow.ignored .status {
  color: #c7a47e;
}
.pathrow.restored .status {
  color: var(--blue);
}
.pathrow .status:before {
  content: "";
  height: 4px;
  width: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.pathrow .delta-mark {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--orange);
  margin-left: auto;
  flex-shrink: 0;
}
.tree-legend {
  border-top: 1px solid var(--border);
  padding: 11px 17px;
  display: flex;
  gap: 16px;
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: auto;
}
.tree-legend i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 4px;
}
.inspector-content {
  padding: 19px 19px 17px;
  flex: 1;
}
.inspector-path {
  font: 11px var(--mono);
  color: #d0dfd3;
  overflow-wrap: anywhere;
  margin: 0 0 15px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.decision {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #47664e;
  background: #23372a;
  color: var(--green);
  margin-bottom: 19px;
}
.decision.ignored {
  border-color: #66533b;
  background: #342b20;
  color: var(--orange);
}
.decision.restored {
  border-color: #40516a;
  background: #202e3f;
  color: var(--blue);
}
.section-label {
  color: #8da492;
  font: 9px var(--mono);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.winning-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #101812;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 11px 10px;
  margin-bottom: 11px;
  min-height: 40px;
}
.winning-rule .line-no {
  color: var(--muted);
  font: 10px var(--mono);
  white-space: nowrap;
}
.winning-rule code {
  font: 12px var(--mono);
  color: var(--orange);
  overflow-wrap: anywhere;
  min-width: 0;
}
.winning-rule button {
  margin-left: auto;
  padding: 3px 4px;
  font-size: 9px;
}
.inspector-explanation {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.inspector-explanation code {
  font: 10px var(--mono);
  color: #c8ddcd;
}
.parent-warning {
  border: 1px solid #5a4a31;
  background: #29251b;
  border-radius: 6px;
  padding: 12px;
  margin-top: 17px;
}
.parent-warning .warning-title {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  margin-bottom: 7px;
}
.parent-warning p {
  font-size: 11px;
  color: #b9ae98;
  line-height: 1.7;
  margin: 0 0 9px;
}
.parent-warning code {
  font: 10px var(--mono);
  color: #e6c89d;
  overflow-wrap: anywhere;
}
.parent-warning button {
  margin-top: 3px;
  width: 100%;
  padding: 7px;
  background: #3c3422;
  border-color: #615437;
  color: #ead3a8;
  font-size: 10px;
}
.inspector-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border-top: 1px solid var(--border);
  padding: 13px 17px;
  color: #7f9486;
  font-size: 10px;
  line-height: 1.6;
}
.inspector-foot svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.baseline-bar {
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1b281f;
  border: 1px solid #3d5543;
  border-radius: 8px;
  margin-top: 14px;
  gap: 12px;
}
.baseline-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.baseline-bar strong {
  color: var(--green);
  font-weight: 500;
}
.baseline-actions {
  display: flex;
  gap: 7px;
}
.baseline-label {
  font-size: 11px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.learn-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 1px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.learn-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--green);
  flex-shrink: 0;
}
.learn-strip p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  line-height: 1.7;
}
.learn-strip strong {
  color: #c7d6cb;
  font-weight: 500;
}
.learn-strip button {
  margin-left: auto;
  flex-shrink: 0;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px var(--mono);
  color: #718577;
  letter-spacing: .4px;
  padding: 20px 0 25px;
  gap: 18px;
}
.footer div {
  display: flex;
  gap: 20px;
}
.footer a {
  color: #95aa9b;
  text-decoration: none;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.error {
  background: #3e2622;
  border: 1px solid #a06957;
  border-radius: 7px;
  color: #f8c7b5;
  padding: 12px 15px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.7;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #050a07c9;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 24px;
}
.modal {
  background: #19231c;
  border: 1px solid #3b5443;
  border-radius: 12px;
  padding: 26px;
  width: min(690px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
}
.modal h2 {
  font-weight: 550;
  letter-spacing: -.6px;
  font-size: 22px;
  margin: 0 0 13px;
}
.modal p,
.modal li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.modal p code,
.modal li code {
  color: #d2e5d7;
  font: 11px var(--mono);
}
.modal h3 {
  font-size: 13px;
  margin: 25px 0 7px;
}
.modal textarea {
  width: 100%;
  height: 300px;
  resize: vertical;
  padding: 15px;
  background: #101712;
  color: #d1e7d7;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 12px/1.9 var(--mono);
  margin-top: 8px;
  white-space: pre;
  overflow: auto;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.modal-close {
  float: right;
  padding: 5px;
  background: transparent;
  border: 0;
}
.export-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.export-grid button {
  padding: 14px;
  justify-content: flex-start;
  gap: 15px;
  white-space: normal;
  text-align: left;
  background: #1f2d24;
}
.export-grid strong {
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}
.export-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
}
.export-grid svg {
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #c0f6d1;
  color: #17351f;
  border: 1px solid #dcffe8;
  border-radius: 7px;
  padding: 12px 18px;
  max-width: calc(100% - 30px);
  font-size: 12px;
  box-shadow: 0 10px 40px #0007;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 20;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 30;
  background: var(--green);
  color: var(--bg);
  padding: 10px;
  border-radius: 4px;
}
.skip-link:focus {
  top: 10px;
}
.sample-description {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 0 15px;
}
.mobile-note {
  display: none;
}
.rule-list {
  max-height: 240px;
  overflow: auto;
  margin-top: 15px;
}
.rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font: 11px var(--mono);
}
.rule-item code {
  overflow-wrap: anywhere;
}
.rule-item small {
  color: var(--muted);
  white-space: nowrap;
}
.changed-list {
  max-height: 300px;
  overflow: auto;
}
.changed-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  cursor: pointer;
}
.changed-row code {
  font: 11px var(--mono);
  flex: 1;
  overflow-wrap: anywhere;
}
.changed-row span {
  font-size: 10px;
  white-space: nowrap;
}
.inline-link {
  color: var(--green);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1500px) {
  .tree-list {
    height: 330px;
  }
  .code-editor {
    height: 330px;
  }
  .inspector-content {
    padding: 22px;
  }
  .workspace {
    min-height: 525px;
  }
  .rules-input,
  .pathrow {
    font-size: 12px;
  }
}
@media (max-width: 1150px) {
  .shell {
    padding: 0 26px;
  }
  .brand small {
    display: none;
  }
  .hero {
    padding-top: 32px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .workspace {
    grid-template-columns: 270px minmax(290px, 1fr);
  }
  .inspector-panel {
    grid-column: 1/-1;
    border-left: 0 !important;
    border-top: 1px solid var(--border);
  }
  .inspector-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
    padding: 18px;
  }
  .inspector-path,
  .decision {
    grid-column: 1;
  }
  .inspector-content .parent-warning {
    grid-column: 2;
    grid-row: 1/7;
    margin-top: 0;
  }
  .decision {
    justify-self: start;
    margin-bottom: 10px;
  }
  .inspector-content .section-label {
    margin-bottom: 5px;
  }
  .inspector-content .inspector-explanation {
    margin-bottom: 0;
  }
  .inspector-content .winning-rule {
    margin-bottom: 6px;
  }
  .inspector-foot {
    padding: 10px 18px;
  }
  .local-label {
    display: none;
  }
  .stats {
    margin-bottom: 20px;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0 17px;
  }
  .topbar {
    height: 70px;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .topnav {
    gap: 4px;
  }
  .topnav .docs-text {
    display: none;
  }
  .topnav button {
    padding: 8px;
  }
  .hero {
    display: block;
    padding-top: 27px;
    padding-bottom: 21px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    margin-top: 18px;
  }
  h1 {
    letter-spacing: -1.3px;
    font-size: 35px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 15px 17px;
  }
  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .stat:nth-child(3):before {
    display: none;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-top {
    font-size: 10px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar-left {
    width: 100%;
  }
  .toolbar-right {
    justify-content: space-between;
    width: 100%;
  }
  .toolbar-right button {
    flex: 1;
  }
  .toolbar-label {
    font-size: 10px;
  }
  .select-wrap {
    flex: 1;
  }
  .select-wrap select {
    width: 100%;
    max-width: none;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .panel + .panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .code-editor {
    min-height: 235px;
    height: 235px;
  }
  .rules-input {
    font-size: 12px;
  }
  .tree-list {
    height: 320px;
  }
  .inspector-content {
    display: block;
    padding: 20px;
  }
  .inspector-content .parent-warning {
    margin-top: 14px;
  }
  .baseline-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .baseline-actions {
    width: 100%;
  }
  .baseline-actions button {
    flex: 1;
  }
  .learn-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .learn-strip p {
    flex: 1;
    min-width: 200px;
  }
  .learn-strip button {
    margin-left: 40px;
  }
  .footer {
    font-size: 8px;
    align-items: flex-start;
  }
  .footer div {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal {
    padding: 21px;
  }
  .hero-actions button,
  .hero-actions .button {
    flex: 1;
  }
  .inspector-explanation {
    font-size: 12px;
  }
  .parent-warning p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.analysis-status {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--green);
  font: 11px/1.6 var(--mono);
}
