.page-title { margin: 0; font: 500 27px "Playfair Display", Georgia, serif; }
.muted { color: var(--muted); font-size: 12px; }
code { padding: 1px 5px; border-radius: 4px; background: #eeeee7; font-size: 12px; }
.logout { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-name { color: var(--muted); font-size: 12px; }
.link-button { padding: 0; border: 0; background: none; color: var(--green); font: 600 12px "DM Sans", sans-serif; cursor: pointer; }
.topnav + .logout { margin-left: auto; }
.flash { max-width: 1180px; margin: 16px auto 0; padding: 11px 16px; border-radius: 8px; font-size: 13px; }
.flash-ok { background: #e3eddc; color: #2d4f38; }
.flash-error { background: #f6e1dd; color: #7a2d22; }
.auth-shell { min-height: 70vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: min(420px, 100%); padding: 30px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.auth-card h1 { margin: 0; font: 500 27px "Playfair Display", Georgia, serif; }
.auth-card p { margin: 0; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; }
.auth-card input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: 14px; }
.auth-card input:focus, .filters input:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.form-error { padding: 10px 14px; border-radius: 7px; background: #f6e1dd; color: #7a2d22; font-size: 12px; list-style: none; margin: 0; }
.button { display: inline-block; padding: 11px 18px; border: 0; border-radius: 7px; background: var(--green); color: #fff; font: 600 13px "DM Sans", sans-serif; text-align: center; cursor: pointer; }
.button:hover { background: #294a37; }
.button-quiet { background: #e9e5d9; color: var(--ink); }
.button-quiet:hover { background: #dedacb; }
.button-small { padding: 6px 11px; font-size: 11px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.panel { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.panel h2 { margin-bottom: 14px; font-size: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.inline-form { display: inline-block; margin: 0 4px 0 0; }
.inline-form select { height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 12px; }
.badge { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; background: #eeeee7; }
.badge-active { background: #e3eddc; color: #2d4f38; }
.badge-blocked { background: #f6e1dd; color: #7a2d22; }
.badge-pending_approval, .badge-pending_email { background: #f5ecd0; color: #6e5718; }
.photo-card { display: block; }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 26px; font-size: 13px; }
.pager a { color: var(--green); font-weight: 600; }
.library-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 24px; }
.library-main { min-width: 0; }
.folder-navigation { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 16px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.folder-navigation h2 { margin: 0 0 12px; font: 600 13px "DM Sans", sans-serif; }
.folder-navigation .place-navigation-title { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.folder-root, .folder-tree a { display: block; min-width: 0; padding: 5px 7px; overflow: hidden; border-radius: 5px; color: #555d54; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.folder-tree { margin: 0; padding: 0 0 0 12px; list-style: none; }
.folder-tree > li { margin-top: 2px; }
.folder-tree summary { padding: 2px 0; color: var(--muted); cursor: pointer; }
.folder-tree summary a { display: inline-block; width: calc(100% - 18px); vertical-align: middle; }
.folder-active { background: #e9eee5; color: var(--green) !important; font-weight: 600; }
.map-filters { align-items: center; flex-wrap: wrap; }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.map-canvas { height: 62vh; min-height: 360px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.map-popup { width: 170px; font-size: 12px; }
.map-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.map-popup small { display: block; color: var(--muted); }
@media (max-width: 760px) {
    .topbar { flex-wrap: wrap; height: auto; padding: 12px 18px; gap: 10px 20px; }
    .topnav { height: auto; }
    .user-name { display: none; }
    .panel { padding: 16px; }
    .library-layout { grid-template-columns: 1fr; gap: 16px; }
    .folder-navigation { position: static; max-height: 220px; }
}
