/* ============================================================
   llms-txt-generator.css — llms.txt generator tool
   Krawl palette. Everything scoped under .llg-page.
   ============================================================ */

.llg-page {
  --bg: #001327; --panel: #051e35; --panel2: #0a2a47; --line: #0f3a5e;
  --text: #F9FAFB; --muted: #9CA3AF; --accent: #39FF12; --good: #22c55e; --warn: #f59e0b;
  background: var(--bg); color: var(--text);
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 24px; display: flex; justify-content: center;
}
.llg-page .llg-wrap { width: 100%; max-width: 1060px; }
.llg-page .llg-head { text-align: center; margin-bottom: 22px; }
.llg-page .llg-head h1 { font-family: 'Raleway', sans-serif; font-size: 1.8rem; margin-bottom: 6px; }
.llg-page .llg-head p { color: var(--muted); font-size: .95rem; max-width: 620px; margin: 0 auto; }
.llg-page .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .llg-page .grid { grid-template-columns: 1fr; } }
.llg-page .panel { background: var(--panel); border-radius: 14px; padding: 18px; }
.llg-page .panel h2 { font-family: 'Raleway', sans-serif; font-size: 1rem; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.llg-page label { display: block; font-size: .78rem; color: var(--muted); margin: 10px 0 4px; font-weight: 600; }
.llg-page input[type=text], .llg-page textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 9px 12px; font-size: .85rem; font-family: inherit; }
.llg-page input:focus, .llg-page textarea:focus { outline: none; border-color: var(--accent); }
.llg-page textarea { resize: vertical; min-height: 56px; }
.llg-page .section-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.llg-page .section-head { display: flex; gap: 8px; align-items: center; }
.llg-page .section-head input { flex: 1; font-weight: 700; }
.llg-page .link-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr auto; gap: 6px; margin-top: 8px; }
@media (max-width: 640px) { .llg-page .link-row { grid-template-columns: 1fr; } }
.llg-page .btn { border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: .8rem; cursor: pointer; transition: background .15s; }
.llg-page .btn:hover { background: #12324e; }
.llg-page .btn.small { padding: 5px 9px; font-size: .75rem; }
.llg-page .btn.danger:hover { background: #7f1d1d; }
.llg-page .btn.primary { background: var(--accent); color: #001327; font-weight: 700; border: none; }
.llg-page .btn.primary:hover { filter: brightness(1.1); }
.llg-page .toolbar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.llg-page .preview { background: #00182e; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; min-height: 320px; max-height: 560px; overflow: auto; color: #c9e3f5; }
.llg-page .stats { display: flex; gap: 14px; margin-top: 10px; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.llg-page .stats b { color: var(--text); }
.llg-page .hint { font-size: .75rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.llg-page .flash { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #001327; font-weight: 700; font-size: .85rem; padding: 10px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 100; }
.llg-page .flash.show { opacity: 1; }
.llg-page .invalid { border-color: var(--warn) !important; }
.llg-page .llg-foot { text-align: center; color: var(--muted); font-size: .75rem; margin-top: 18px; line-height: 1.6; }
.llg-page .llg-foot a { color: var(--accent); }
.llg-page details { margin-top: 10px; }
.llg-page summary { cursor: pointer; font-size: .8rem; color: var(--accent); }
.llg-page details .hint { margin-top: 6px; }
