:root {
  --app-bg: #deff6a;
  --app-card: rgba(255, 255, 255, 0.06);
  --app-border: rgba(255, 255, 255, 0.10);
  --app-text: rgba(130, 61, 0, 0.92);
  --app-muted: rgba(255, 255, 255, 0.68);
  --tri-neutral: rgba(255, 255, 255, 0.10);
  --tri-include: rgba(25, 135, 84, 0.25);
  --tri-exclude: rgba(220, 53, 69, 0.25);
  --tri-include-border: rgba(25, 135, 84, 0.55);
  --tri-exclude-border: rgba(220, 53, 69, 0.55); }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--app-bg);
  color: var(--app-text); }

.app-header {
  border-bottom: 1px solid var(--app-border);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px); }
  .app-header h1 {
    font-weight: 800;
    letter-spacing: -0.02em; }

.info {
  font-size: .7rem; }

.app-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.form-control,
.input-group-text {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--app-text); }

.form-control::placeholder {
  color: var(--app-text); }

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.55); }

.btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--app-text); }
  .btn-outline-secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95); }

.result-card {
  transition: transform 120ms ease, border-color 120ms ease; }
  .result-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.35); }

.app-title-btn,
.app-snippet-btn {
  color: inherit; }
  .app-title-btn:hover,
  .app-snippet-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline; }

.app-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--app-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.12); }

.link-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap; }

.link-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-text);
  text-decoration: none; }
  .link-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--app-text); }

.app-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 180ms ease; }

.result-card.is-expanded .app-expand {
  max-height: 1000px; }

.app-description {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .app-description p:last-child {
    margin-bottom: 0; }
  .app-description a {
    color: rgba(173, 216, 230, 0.95); }

.tri-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; }
  @media (min-width: 1200px) {
    .tri-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tri {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--tri-neutral);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text); }
  .tri:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12); }

.tri-marker {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.45);
  flex: 0 0 auto; }

.tri-label {
  font-size: 0.92rem;
  line-height: 1.1; }

.tri-neutral .tri-marker {
  background: rgba(128, 128, 128, 0.45); }

.tri-include {
  background: var(--tri-include);
  border-color: var(--tri-include-border); }
  .tri-include .tri-marker {
    background: rgba(25, 135, 84, 0.9); }

.tri-exclude {
  background: var(--tri-exclude);
  border-color: var(--tri-exclude-border); }
  .tri-exclude .tri-marker {
    background: rgba(220, 53, 69, 0.9); }

.tri-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 4px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.2); }

.tri-legend .dot-neutral {
  background: rgba(255, 255, 255, 0.18); }

.tri-legend .dot-include {
  background: rgba(25, 135, 84, 0.75); }

.tri-legend .dot-exclude {
  background: rgba(220, 53, 69, 0.75); }
