* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7f6;
    color: #14201d;
    font-family: Arial, Helvetica, sans-serif;
}

.shell {
    width: min(980px, calc(100% - 32px));
    margin: 32px auto;
}

.panel {
    background: #ffffff;
    border: 1px solid #dce5e1;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(20, 32, 29, 0.08);
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: 28px;
}

h2 {
    margin-top: 28px;
    font-size: 18px;
}

p {
    color: #5d6b67;
}

.form {
    display: grid;
    gap: 16px;
}

.compact-form {
    padding: 16px;
    border: 1px solid #dce5e1;
    border-radius: 8px;
    background: #f7faf9;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c9d5d0;
    border-radius: 6px;
    padding: 12px;
    font: inherit;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    background: #156f5b;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.link-button:hover {
    background: #105746;
}

.alert {
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 700;
}

.alert.success {
    background: #e8f7ee;
    color: #176233;
}

.alert.error {
    background: #fdecec;
    color: #9f2424;
}

.meta {
    color: #5d6b67;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #dce5e1;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #edf2f0;
    text-align: left;
}

th {
    background: #f7faf9;
}

tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 980px);
        margin: 10px auto;
    }

    .panel {
        padding: 16px;
    }

    .topbar {
        display: grid;
    }
}
