:root {
    --bg-top: #f3f8f5;
    --bg-bottom: #e7f0ec;
    --card-bg: #ffffff;
    --text-main: #1f2e2d;
    --text-soft: #5a6a68;
    --accent: #12756b;
    --accent-soft: #23a08f;
    --line: #d8e4df;
    --warning: #ba6120;
    --good: #1d8b57;
    --bad: #c04545;
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
    padding: 24px;
}

a {
    color: inherit;
}

.shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    animation: rise 400ms ease-out;
    min-width: 0;
}

.panel {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(16, 54, 49, 0.08);
    min-width: 0;
}

.subtle {
    color: var(--text-soft);
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid #b7d8d0;
    background: #f0faf7;
    color: #0f5f56;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary {
    border: none;
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    color: #fff;
}

.btn.ghost {
    background: #fff;
    color: #415553;
    border-color: #c6d9d2;
}

.small-btn {
    width: auto;
    border: 1px solid #b7d8d0;
    background: #f0faf7;
    color: #0f5f56;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.small-btn.logout {
    background: #fff;
    color: #415553;
    border-color: #c6d9d2;
}

.btn[disabled],
.small-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-weight: 700;
    letter-spacing: 0.2px;
}

select,
input,
button {
    width: 100%;
    border: 1px solid #c8dad3;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: var(--text-main);
}

button {
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.status {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    min-height: 18px;
}

.status.ok,
.good {
    color: var(--good) !important;
}

.status.bad,
.bad {
    color: var(--bad) !important;
}

.warn {
    color: var(--warning);
    font-weight: 700;
}

.empty {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 14px;
}

@media (max-width: 600px) {
    body {
        padding: 5px;
        padding-top: 50px;
    }

    .shell {
        gap: 10px;
    }
}

@keyframes rise {
    from {
        transform: translateY(8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
