:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
    --text: #17202a;
    --muted: #5d6875;
    --line: #d9dee5;
    --bg: #f5f7fa;
    --panel: #ffffff;
    --primary: #166534;
    --danger: #b42318;
    --wait: #9a6700;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.login {
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
}

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

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

h1 {
    font-size: 30px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.panel,
.photo-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

button,
.link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.secondary {
    background: #344054;
}

.danger button,
button[value="declined"] {
    background: var(--danger);
}

.notice,
.alert {
    border-radius: 6px;
    padding: 12px;
    background: #e8f5ec;
    border: 1px solid #b8dec5;
}

.alert {
    background: #fff0ee;
    border-color: #f3b7b0;
}

.section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 0;
}

.photo-list {
    display: grid;
    gap: 12px;
}

.photo-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
}

.photo-card img {
    width: 160px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.status {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    font-weight: 700;
}

.status.waiting {
    background: #fff4d6;
    color: var(--wait);
}

.status.approved {
    background: #e8f5ec;
    color: var(--primary);
}

.status.declined {
    background: #fff0ee;
    color: var(--danger);
}

.moderation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.moderation input {
    flex: 1 1 220px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .page {
        padding: 14px;
    }

    .grid,
    .photo-card {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        width: 100%;
    }

    .topbar {
        align-items: flex-start;
    }

    .section-header {
        align-items: stretch;
        flex-direction: column;
    }
}
