.ny-app {
  container-type: inline-size;
  box-sizing: border-box;
  height: 100%;
  overflow: auto;
  padding: 14px;
  background: var(--bg-base, #000);
  color: var(--text-primary, #1aff80);
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  line-height: 1.45;
}
.ny-title { margin: 0 0 8px; font-size: 1rem; letter-spacing: 0.06em; font-weight: 600; }
.ny-muted { margin: 6px 0; font-size: 0.8rem; }
.ny-error { margin: 6px 0; padding-left: 8px; border-left: 3px solid var(--accent, #1aff80); font-weight: 600; }
.ny-error:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ny-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ny-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ny-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ny-row { padding: 10px; border: 1px solid var(--border, rgba(26, 255, 128, 0.3)); background: var(--bg-surface, #0a0a0a); }
.ny-row[data-state="done"], .ny-row[data-state="withdrawn"] { border-style: dashed; }
.ny-row[aria-busy="true"] { opacity: 0.85; }
.ny-row-title { margin: 0 0 4px; font-size: 0.95rem; overflow-wrap: anywhere; }
.ny-row p { margin: 4px 0; }
.ny-state { font-weight: 600; }
.ny-reason { white-space: pre-wrap; overflow-wrap: anywhere; }
.ny-command { display: block; font-family: ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.ny-proposed { font-weight: 600; overflow-wrap: anywhere; }
.ny-quote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--border, rgba(26, 255, 128, 0.3)); white-space: pre-wrap; overflow-wrap: anywhere; }
.ny-sentence { overflow-wrap: anywhere; font-weight: 600; }
.ny-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ny-btn {
  min-height: 44px;
  padding: 4px 12px;
  background: var(--bg-surface, #0a0a0a);
  border: 1px solid var(--border, rgba(26, 255, 128, 0.3));
  border-radius: var(--border-radius-sm, 0);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ny-btn:hover:not([aria-disabled="true"]) { border-color: var(--accent, #1aff80); }
.ny-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; border-style: dashed; }
.ny-btn:focus-visible, .ny-link:focus-visible, .ny-row-title:focus-visible, .ny-title:focus-visible { outline: 2px solid var(--accent, #1aff80); outline-offset: 2px; }
.ny-link { color: inherit; text-decoration: underline; }
.ny-warn { margin: 6px 0; padding-left: 8px; border-left: 3px solid var(--accent, #1aff80); font-weight: 600; overflow-wrap: anywhere; }
.ny-refs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ny-refs .ny-link { display: inline-block; min-height: 24px; }
.ny-row[data-kind="engine"] :focus-visible { outline: 3px solid var(--text-primary, #1aff80); outline-offset: 2px; }
.ny-answer { margin-top: 8px; }
.ny-note-field { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ny-note-label { font-weight: 600; }
.ny-note { box-sizing: border-box; width: 100%; min-height: 44px; padding: 4px 8px; background: var(--bg-surface, #0a0a0a); border: 1px solid var(--border, rgba(26, 255, 128, 0.3)); border-radius: var(--border-radius-sm, 0); color: inherit; font: inherit; }
.ny-note[aria-disabled="true"] { border-style: dashed; }
.ny-count { font-size: 0.8rem; }
.ny-reason q { overflow-wrap: anywhere; }
#windows-container .ny-row[data-kind="engine"] :is(.ny-note, .ny-btn):focus-visible { outline: 3px solid var(--text-primary, #1aff80) !important; outline-offset: 2px !important; }
@container (max-width: 520px) {
  .ny-btn { flex: 1 1 100%; }
}
