.la-page {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 128px 24px 100px;
  display: flex; flex-direction: column; gap: 28px;
}
.la-head h1 {
  margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance;
}
.la-lead {
  margin: 0; max-width: 64ch; color: var(--muted); font-size: 16px; line-height: 1.6;
}
.la-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.06); color: var(--text);
}

.la-input {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.la-input[hidden], .la-results[hidden] {
  display: none;
}
.la-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 260px; padding: 28px; cursor: pointer;
  border-radius: var(--radius-lg); border: 1.5px dashed var(--border-strong);
  background: var(--surface); color: var(--muted);
  transition: border-color 0.2s, background 0.2s;
}
.la-drop svg {
  width: 40px; height: 40px; color: var(--accent);
}
.la-drop strong {
  color: var(--text); font-size: 16px;
}
.la-drop span {
  font-size: 13px; line-height: 1.6; max-width: 40ch;
}
.la-drop:hover, .la-drop.is-over {
  border-color: var(--accent); background: rgba(79,200,248,0.06);
}
.la-drop:focus-within {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.la-paste {
  display: flex; flex-direction: column; gap: 12px;
}
.la-paste textarea {
  flex: 1; min-height: 200px; resize: vertical;
  padding: 14px; border-radius: var(--radius-lg);
  background: #0a0b0d; border: 1px solid var(--border-strong); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6;
}
.la-paste textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,200,248,0.18);
}
.la-paste-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.la-error {
  grid-column: 1 / -1; margin: 0;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,105,97,0.08); border: 1px solid rgba(255,105,97,0.3); color: var(--text);
}

.la-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px; border: none; cursor: pointer;
  background: var(--accent); color: #051015;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: filter 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
}
.la-btn:hover:not(:disabled) {
  filter: brightness(1.08); transform: translateY(-1px);
}
.la-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.la-btn:focus-visible, .la-chip:focus-visible, .la-jump:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.la-btn--ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
}
.la-btn--ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.05); filter: none;
}

.la-results {
  display: flex; flex-direction: column; gap: 18px;
}
.la-verdict {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.la-verdict-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
}
.la-verdict-icon svg {
  width: 28px; height: 28px;
}
.la-verdict-text {
  flex: 1; min-width: 0;
}
.la-verdict h2 {
  margin: 0 0 4px; font-size: 21px; letter-spacing: -0.01em; text-wrap: balance;
}
.la-verdict p {
  margin: 0; color: var(--muted); line-height: 1.5;
}
.la-verdict.is-crash, .la-verdict.is-unknown {
  border-color: rgba(255,105,97,0.35);
}
.la-verdict.is-crash .la-verdict-icon, .la-verdict.is-unknown .la-verdict-icon {
  background: rgba(255,105,97,0.12); color: var(--red);
}
.la-verdict.is-error {
  border-color: rgba(255,201,77,0.35);
}
.la-verdict.is-error .la-verdict-icon {
  background: rgba(255,201,77,0.12); color: var(--star);
}
.la-verdict.is-ok {
  border-color: rgba(50,215,75,0.35);
}
.la-verdict.is-ok .la-verdict-icon {
  background: rgba(50,215,75,0.12); color: var(--green);
}

.la-env {
  margin: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.la-env[hidden] {
  display: none;
}
.la-env-item {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.la-env dt {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.la-env dd {
  margin: 0; font-size: 14px; overflow-wrap: anywhere;
}

.la-findings {
  display: flex; flex-direction: column; gap: 12px;
}
.la-findings:empty {
  display: none;
}
.la-finding {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--star);
}
.la-finding.is-crash, .la-finding.is-unknown {
  border-left-color: var(--red);
}
.la-finding-head {
  display: flex; flex-direction: column; gap: 4px;
}
.la-sev {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--star);
}
.la-finding.is-crash .la-sev, .la-finding.is-unknown .la-sev {
  color: var(--red);
}
.la-finding h3 {
  margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere;
}
.la-finding p {
  margin: 0; line-height: 1.55; color: var(--muted); max-width: 80ch; overflow-wrap: anywhere;
}
.la-finding-fix strong {
  color: var(--text);
}
.la-jump {
  align-self: flex-start; padding: 0; border: none; background: none; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 13px; font-weight: 600;
}

.la-viewer {
  border-radius: var(--radius-md); overflow: hidden;
  background: #0a0b0d; border: 1px solid var(--border);
}
.la-viewer-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border);
}
.la-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.la-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 980px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600;
}
.la-chip span {
  font-variant-numeric: tabular-nums; color: var(--muted-dim);
}
.la-chip.is-active {
  background: rgba(79,200,248,0.12); border-color: var(--accent); color: var(--text);
}
.la-chip--err.is-active {
  background: rgba(255,105,97,0.12); border-color: var(--red);
}
.la-chip--warn.is-active {
  background: rgba(255,201,77,0.12); border-color: var(--star);
}
.la-chip.is-active span {
  color: var(--text);
}
.la-search {
  flex: 1; min-width: 160px;
  padding: 7px 12px; border-radius: 980px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-strong); color: var(--text);
  font: inherit; font-size: 13px;
}
.la-search:focus {
  outline: none; border-color: var(--accent);
}
.la-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px;
}
.la-log {
  position: relative; height: 560px; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
}
.la-log:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.la-log-space {
  position: relative; min-width: max-content;
}
.la-line {
  position: absolute; left: 0; right: 0;
  display: flex; height: 20px; line-height: 20px; min-width: max-content; padding-right: 20px;
  border-left: 3px solid transparent;
}
.la-line.is-err {
  background: rgba(255,105,97,0.1); border-left-color: var(--red);
}
.la-line.is-trace-err {
  background: rgba(255,105,97,0.04); border-left-color: rgba(255,105,97,0.35);
}
.la-line.is-warn {
  background: rgba(255,201,77,0.07); border-left-color: var(--star);
}
.la-line.is-minor .la-text, .la-line.is-trace-dim .la-text {
  color: #8a8a90;
}
.la-line.is-flash {
  animation: la-flash 2.2s ease-out;
}
@keyframes la-flash {
  0%, 40% { box-shadow: inset 0 0 0 999px rgba(79,200,248,0.25); }
  100% { box-shadow: inset 0 0 0 999px rgba(79,200,248,0); }
}
.la-no {
  flex-shrink: 0; width: 64px; padding-right: 14px; text-align: right;
  color: #5c5c62; font-variant-numeric: tabular-nums; user-select: none;
}
.la-text {
  white-space: pre; color: #d4d4d8;
}
.la-line.is-err .la-text {
  color: #ffb3ad;
}
.la-line.is-warn .la-text {
  color: #ffe2a3;
}
.la-text mark {
  background: rgba(79,200,248,0.35); color: #fff; border-radius: 3px;
}
.la-empty {
  padding: 24px; color: var(--muted); font-family: -apple-system, sans-serif; font-size: 14px;
}

@media (max-width: 760px) {
  .la-input {
    grid-template-columns: 1fr;
  }
  .la-drop {
    min-height: 180px;
  }
  .la-verdict {
    flex-wrap: wrap;
  }
  .la-log {
    height: 440px;
  }
}
@media (max-width: 560px) {
  .la-page {
    padding: 104px 16px 72px;
  }
  .la-file {
    display: none;
  }
}
