:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-hover: #0284c7;
    --card-bg: #1e293b;
    --border-color: #334155;
    --success: #10b981;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

code {
    font-family: var(--font-mono);
    background: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #0b1120;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    font-family: var(--font-mono);
}

.nav-links a {
    margin-left: 1.5rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.tool-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.presets {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.btn {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn:hover {
    background-color: var(--primary);
    color: #000;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.sequence-container {
    margin-top: 2rem;
}

.sortable-list {
    list-style: none;
}

.list-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: grab;
    transition: background 0.2s;
    font-family: var(--font-mono);
}

.list-item:active {
    cursor: grabbing;
}

.list-item.dragging {
    opacity: 0.5;
}

.list-item.completed {
    text-decoration: line-through;
    color: var(--text-muted);
    border-color: var(--success);
}

.drag-handle {
    margin-right: 1rem;
    color: var(--text-muted);
    cursor: grab;
}

.tool-actions {
    margin-top: 1rem;
    text-align: right;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.guide-section h3 {
    margin-top: 1.5rem;
    color: var(--primary);
}

.guide-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    background-color: #0b1120;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-content {
    min-height: 60vh;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    .presets {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
