:root {
    --bg: #f2f4f8;
    --card: #ffffff;
    --text: #1f2430;
    --muted: #5f6878;
    --line: #d8deea;
    --accent: #1b5cff;
    --accent-dark: #0f3fb8;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(145deg, #eef2ff, #f5f7fb);
    color: var(--text);
}

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 340px 1fr;
}

.menu, .content { padding: 20px; }
.menu {
    border-right: 1px solid var(--line);
    background: #fbfcff;
    overflow-y: auto;
}

h1, h2, h3 { margin-top: 0; }
.muted { color: var(--muted); font-size: 13px; }
.notice {
    background: #e8f0ff;
    border: 1px solid #c8daff;
    border-radius: 10px;
    padding: 10px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

input, select, button {
    width: 100%;
    margin-top: 7px;
    padding: 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
    font-size: 14px;
}

button {
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    border: none;
}
button:hover { background: var(--accent-dark); }

.list { list-style: none; padding: 0; margin: 0; }
.list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.list a { font-weight: 600; color: #1c2c57; text-decoration: none; }
.list small { display: block; color: var(--muted); }

.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.inline-form input, .inline-form select, .inline-form button { margin-top: 0; }
.inline-form button { width: auto; white-space: nowrap; }

.admin-row {
    border-top: 1px dashed var(--line);
    padding-top: 8px;
    margin-top: 8px;
}

.empty {
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.horizontal { display: grid; gap: 8px; }
.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.photo-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}

.image-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.image-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.image-wrap.grayscale img { filter: grayscale(100%); }
.image-wrap.sepia img { filter: sepia(100%); }
.image-wrap.contrast img { filter: contrast(165%) saturate(120%); }

.watermark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(0,0,0,0.62);
    color: #fff;
    border-radius: 6px;
}

.comments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
}

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .menu { border-right: none; border-bottom: 1px solid var(--line); }
}
