:root{
  --bg: #f4fbf5; --panel: #ffffff; --panel-2: #e6f4e8; --line: #cae7ce;
  --accent: #259d35; --accent-soft: #c9e9cd; --accent-dim: #f0f8f1;
  --text: #142917; --muted: #4d8053; --muted-2: #94b899;
}

.field{ margin-bottom: 14px; }
.field label{ display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select{ width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-family: 'Inter', sans-serif; font-size: 13.5px; background: var(--panel-2); color: var(--text); }
.field input:focus, .field select:focus{ outline: none; border-color: var(--accent); }

.rules-wrap{ border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rule-block{ padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.rule-block:nth-child(even){ background: var(--accent-dim); }
.rule-top{ display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.rule-top select{ flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12.5px; }
.rule-top .remove{ background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 7px 10px; cursor: pointer; font-size: 12px; }
.path-list textarea{ width: 100%; min-height: 70px; max-height: 200px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; resize: vertical; overflow: auto; }
.path-list label{ font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 4px; }
.path-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px){ .path-grid{ grid-template-columns: 1fr; } }

.section-title{ font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }

.output{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app{ padding: 11px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: 'Inter', sans-serif; color: #fff; background: var(--accent); transition: filter .15s ease; }
.app:hover{ filter: brightness(1.08); }
.gray{ background: var(--line); color: var(--text); }

.note{ margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
