:root {
    --bg-main: #121418;
    --bg-surface: #1e2126;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #d97706;
    --accent-hover: #b45309;
    --border: #334155;
    --font-sans: system-ui, -apple-system, sans-serif;
}

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

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

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.app-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.branding h1 {
    font-size: 1.75rem;
    color: #f8fafc;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-header nav a {
    margin-left: 1.5rem;
    color: var(--text-muted);
}
.app-header nav a.active {
    color: var(--accent);
}

.hero-section {
    margin-bottom: 2rem;
    text-align: center;
}

.app-surface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media(max-width: 768px) {
    .app-surface {
        grid-template-columns: 1fr;
    }
}

.controls-panel, .results-panel {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cbd5e1;
}

select, input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 4px;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--border);
    color: var(--text-main);
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
}

.log-entry {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dotted var(--border);
}

.support-content, .reference-data {
    margin-bottom: 3rem;
}

.support-content h2, .reference-data h2 {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-card {
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: 6px;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.reference-table th, .reference-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}
.app-footer nav {
    margin-top: 0.5rem;
}
.app-footer nav a {
    margin: 0 0.5rem;
}


/* 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;
}
