:root{
  --bg: #0f1720;
  --panel: #0b1220;
  --muted: #9aa4b2;
  --text: #e6eef6;
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --card-radius: 10px;
}


body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, #071025 0%, #0f1720 100%);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.container {
  width: calc(100% - 80px);
  max-width: 980px;
  margin: 20px auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 28px;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.site-title{
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo{
  display: inline-block;
  line-height: 1;
  color: var(--accent-2);
  width: 28px;
  height: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 600;
  font-size: 1.6rem;
}

.site-logo img{ width: 100%; height: 100%; display: block; }

.top-actions button{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.top-actions button:hover{ background: rgba(255,255,255,0.02); transform: translateY(-1px); }

.category {
  margin-bottom: 18px;
  background: rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.02);
}

.category-title {
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
}

.category-title::after{
  content: '▾';
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.category.collapsed .category-title::after{ transform: rotate(-90deg); }

.category-body{
  /* large max-height to ensure expanded content is fully visible */
  max-height: 4000px;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.category.collapsed .category-body{ max-height: 0; }

/* Single-column layout: each category gets its own row */
.categories-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 900px){
  .categories-grid{ grid-template-columns: 1fr; }
}

.notice{
  background: rgba(255, 197, 64, 0.06);
  border-left: 4px solid rgba(255,197,64,0.14);
  padding: 10px 12px;
  color: #ffd488;
  margin-bottom: 12px;
  border-radius: 6px;
}

.notice a{ color: #ffd488; text-decoration: underline; }

.site-footer{
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.02);
  color: var(--muted);
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size: 0.9rem;
  align-items: center;
}

.site-footer a{ color: var(--accent-2); text-decoration: underline; }

/* Footer resource link styles */
.footer-links{ display:flex; gap:10px; align-items:center; }
.footer-label{ color:var(--muted); margin-right:6px; font-weight:600; }
.footer-links a{ color:var(--accent-2); background: rgba(255,255,255,0.02); padding:6px 8px; border-radius:6px; text-decoration:none; font-size:0.9rem; border:1px solid rgba(255,255,255,0.02); transition: background 0.12s ease, transform 0.08s ease; }
.footer-links a:hover{ background: rgba(255,255,255,0.03); transform: translateY(-1px); }

@media (max-width: 600px){
  .site-footer{ flex-direction: column; align-items:flex-start; gap:8px; }
  .footer-links{ flex-wrap:wrap; }
}

.flagItem{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
}

/* left/right layout for label+desc and the input */
.flag-left{ display:flex; flex-direction: column; gap:6px; flex: 1 1 auto; }
.flag-right{ flex: 0 0 auto; }

.flagItem:hover{ background: rgba(255,255,255,0.01); }

.flagItem label{ font-weight:600; color: var(--text); }

.flagItem input[type="text"],
.flagItem input[type="number"]{
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--text);
  padding: 8px;
  border-radius: 6px;
  width: 220px;
}

.flagItem input[type='checkbox']{ width: 18px; height: 18px; }

.description{ color: var(--muted); margin: 0; font-size: 0.9rem; }

/* focus outlines for accessibility */
:focus-visible{ outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* visually hidden helper for live regions */
.visually-hidden{ position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* visible status used for copy feedback */
.copy-status{
  display:inline-block;
  margin-left: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  color: var(--accent);
  font-weight:600;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateY(-4px);
  pointer-events: none;
}
.copy-status.show{
  opacity: 1;
  transform: translateY(0);
}
.copy-status.error{ color: #ff8b8b; }

@media (max-width: 900px){ .container{ width: calc(100% - 32px); padding: 16px; } .flagItem input[type='text']{ width: 160px; } .flagItem{ flex-direction: column; align-items: flex-start; } .flag-right{ width:100%; } .flag-right input{ width:100%; }}

#launchOptionsBox { transition: opacity 0.2s; }
#output{ width: 100%; height: 140px; background: #071124; color: var(--text); border-radius: 8px; padding: 12px; border: 1px solid rgba(255,255,255,0.03); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace; }

.helpText{ color: var(--muted); }

#customFlags{ background: rgba(255,255,255,0.02); color: var(--text); border: 1px solid rgba(255,255,255,0.03); padding: 8px; border-radius: 6px; width: 100%; }

button#copyBtn{ margin-top: 8px; background: linear-gradient(90deg,#40c9ff,#e81cff); color: #052225; padding: 10px 12px; border-radius: 8px; border: none; cursor: pointer; font-weight:700; }

@media (max-width: 900px){ .container{ width: calc(100% - 32px); padding: 16px; } .flagItem input[type='text']{ width: 160px; } }

