:root { font-family: 'Segoe UI', system-ui, sans-serif; color: #172f2b; background: #f5f6f1; color-scheme: light; --accent: #075d50; --muted: #4b635a; --line: #c9d8cf; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #ba7425; outline-offset: 3px; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: auto; }
.cover { padding: 42px 0 35px; background: #e2eee5; border-bottom: 1px solid var(--line); }
.brand { font-weight: 740; margin: 0 0 16px; color: #174d40; }
.brand::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--accent); border-radius: 50%; }
h1 { font-family: Georgia, serif; font-weight: 500; margin: 0 0 14px; font-size: clamp(2.3rem, 5vw, 4.55rem); line-height: 1.03; letter-spacing: -.035em; }
.cover p:last-child, .mobile-notice p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.main { padding: 28px 0 55px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
nav { display: flex; flex-wrap: wrap; gap: 7px; }
.button, nav button { background: #fff; border: 1px solid var(--line); border-radius: 7px; color: inherit; padding: 9px 13px; font-weight: 630; }
.button.primary, nav button[aria-pressed='true'] { background: var(--accent); color: white; border-color: var(--accent); }
.button:disabled { opacity: .66; cursor: wait; }
label { display: grid; gap: 5px; font-weight: 640; }
label small { font-weight: 400; }
input, textarea, select { width: 100%; min-width: 0; background: white; color: inherit; border: 1px solid #acbeb4; border-radius: 7px; padding: 9px 11px; }
textarea { resize: vertical; }
.search { min-width: min(100%, 250px); }
.subtle { color: var(--muted); line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 15px; }
.card { border: 1px solid var(--line); color: inherit; background: white; border-radius: 12px; overflow: hidden; text-align: left; padding: 0; }
.card:hover .thumbnail { background: #ddebe0; }
.thumbnail { display: grid; place-items: center; height: 232px; padding: 12px; background: #eaf1e8; }
.thumbnail img { width: auto; height: auto; max-width: 100%; max-height: 206px; box-shadow: 0 1px 8px #162d2622; border-radius: 3px; }
.card-info { display: grid; gap: 4px; padding: 12px 14px 15px; }
.card-info small { color: var(--muted); }
dialog { max-width: min(1180px, calc(100% - 25px)); width: 100%; max-height: calc(100% - 25px); padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; color: inherit; }
dialog::backdrop { background: #132b21bc; }
.detail-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 16px; background: white; border-bottom: 1px solid var(--line); position: sticky; z-index: 3; top: 0; }
.detail-bar h2, .comment h3 { margin: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, 320px); }
.image-stage { padding: 15px; display: grid; place-items: start center; min-width: 0; background: #e7efe6; }
.image-wrap { display: inline-block; position: relative; line-height: 0; max-width: 100%; }
.image-wrap img { display: block; max-width: 100%; height: auto; cursor: crosshair; }
.image-wrap.portrait img { max-width: min(100%, 345px); }
.marker { position: absolute; transform: translate(-50%, -50%); width: 25px; height: 25px; border: 3px solid white; outline: 2px solid #94451d; border-radius: 50%; background: #b04e20; pointer-events: none; box-shadow: 0 2px 6px #0006; }
.comment { padding: 19px; display: grid; gap: 8px; align-content: start; }
.comment p { margin: 2px 0; }
.comment .button { justify-self: start; }
.text-button { color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; justify-self: start; }
.result { color: var(--accent); font-weight: 670; }
.result.error { color: #923e25; }
.mobile-notice { display: none; width: min(100% - 38px, 570px); margin: 18vh auto 0; }
.phone .mobile-notice, .handheld .mobile-notice { display: block; }
.handheld .desktop-content { display: none; }
.admin-form { max-width: 420px; display: grid; gap: 12px; }
.reports { display: grid; gap: 10px; margin-top: 16px; }
.report { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(120px, .3fr); gap: 10px; border: 1px solid var(--line); padding: 14px; border-radius: 10px; background: white; }
.report h3, .report p { margin: 0 0 5px; }
.report p { white-space: pre-wrap; overflow-wrap: anywhere; }
.report-actions { display: grid; align-content: start; gap: 7px; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
.review-layout figure { margin: 0; }
.review-layout figcaption, .review-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-layout img { cursor: auto; }
@media (max-width: 700px) { .wrap { width: calc(100% - 28px); } .detail-layout, .review-layout { grid-template-columns: 1fr; } }
@media (pointer: coarse) and (max-width: 900px) { .mobile-notice { display: block; } .desktop-content { display: none; } }
