/* Minimal hand-rolled styles for the Phase 0 skeleton.
   The Tailwind (standalone CLI) toolchain lands with the real UI in Phase 1. */

:root {
    --ink: #1a202c;
    --muted: #64748b;
    --accent: #0f6b5c;
    --bg: #ffffff;
    --rule: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0;
}

.brand {
    font-weight: 700;
    color: var(--accent);
}

.hero {
    padding: 4rem 0 2rem;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

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

.site-footer {
    border-top: 1px solid var(--rule);
    margin-top: 4rem;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-row nav a { color: var(--accent); text-decoration: none; margin-left: 1rem; }
.brand { text-decoration: none; }

.auth-form { max-width: 26rem; padding: 3rem 0; }
.auth-form label { display: block; margin: 0.9rem 0 0.2rem; font-weight: 600; }
.auth-form input {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 1rem;
}
.auth-form button, .button {
    margin-top: 1.2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
}
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.flash {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
.table th, .table td { border: 1px solid var(--rule); padding: 0.4rem 0.6rem; text-align: left; font-size: 0.92rem; }
.table th { background: #f8fafc; }

.stat-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.stat { border: 1px solid var(--rule); border-radius: 6px; padding: 0.8rem 1.1rem; min-width: 9rem; }
.stat-label { display: block; color: var(--muted); font-size: 0.8rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-alert { color: #b45309; }

.badge { display: inline-block; border-radius: 3px; padding: 0.05rem 0.5rem; font-size: 0.78rem; font-weight: 600; }
.badge-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.inline-form { display: inline; }
.link-button { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }
.button-small { padding: 0.3rem 0.8rem; font-size: 0.9rem; margin-top: 0; }
.button-danger { background: #b91c1c; }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }

.match-card { border: 1px solid var(--rule); border-left-width: 4px; border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.status-border-open { border-left-color: #b45309; }
.status-border-cleared { border-left-color: #059669; }
.status-border-confirmed { border-left-color: #b91c1c; }
.status-border-closed_reinstated { border-left-color: #64748b; }
.match-head { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.tier-chip { border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; border-radius: 4px; padding: 0 0.4rem; }
.match-actions { margin-top: 0.6rem; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.guidance { flex-basis: 100%; margin: 0.2rem 0 0; font-size: 0.82rem; }
.checksum { font-family: ui-monospace, monospace; font-size: 0.72rem; word-break: break-all; }
.meta { color: var(--muted); font-size: 0.9rem; }

select, input[type="text"], input[type="file"] {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 0.95rem;
}
