:root {
    --postino-bg: #f5f6f8;
    --postino-card-bg: #ffffff;
    --postino-border: #dde1e6;
    --postino-text: #1f2430;
    --postino-text-muted: #5b6472;
    --postino-accent: #2f5fd8;
    --postino-ok: #1a7f37;
    --postino-warn: #b5720f;
    --postino-error: #c0342c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--postino-bg);
    color: var(--postino-text);
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.postino-page {
    max-width: 640px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.postino-card {
    background: var(--postino-card-bg);
    border: 1px solid var(--postino-border);
    border-radius: 8px;
    padding: 2rem;
}

.postino-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
}

.postino-subtitle {
    margin: 0 0 1.5rem;
    color: var(--postino-text-muted);
    font-size: 0.9rem;
}

.postino-stati {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.postino-stato {
    border: 1px solid var(--postino-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.postino-stato dt {
    margin: 0 0 0.25rem;
    color: var(--postino-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.postino-stato dd {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.postino-ok { color: var(--postino-ok); }
.postino-warn { color: var(--postino-warn); }
.postino-error { color: var(--postino-error); }

.postino-azioni {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.postino-link {
    color: var(--postino-accent);
    text-decoration: none;
    font-weight: 600;
}

.postino-link:hover {
    text-decoration: underline;
}

.postino-form label {
    display: block;
    margin: 1rem 0 0.25rem;
    font-size: 0.9rem;
    color: var(--postino-text-muted);
}

.postino-form input {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--postino-border);
    border-radius: 6px;
    font-size: 1rem;
}

.postino-form button {
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: var(--postino-accent);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.postino-form button:hover {
    opacity: 0.9;
}

.postino-errori {
    color: var(--postino-error);
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

.postino-utente {
    color: var(--postino-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --postino-bg: #14161a;
        --postino-card-bg: #1c1f26;
        --postino-border: #2c313c;
        --postino-text: #e6e8ec;
        --postino-text-muted: #9aa2b1;
        --postino-accent: #6c9bff;
        --postino-ok: #4fbf67;
        --postino-warn: #d9a441;
        --postino-error: #e5675f;
    }
}
