:root { color-scheme: light; font: 16px/1.45 system-ui, sans-serif; color: #132a26; background: #f2f6f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top { background: #143e35; color: white; display: flex; gap: 18px; align-items: center; padding: 14px max(20px, calc((100vw - 980px) / 2)); }
.top a { color: inherit; white-space: nowrap; font-weight: 750; text-decoration: none; }
.top span { opacity: .82; white-space: nowrap; }
.top button { margin-left: auto; white-space: nowrap; }
main { width: min(100% - 32px, 980px); margin: 32px auto; }
h1, h2 { margin-top: 0; }
.panel, .records, dialog { background: white; border: 1px solid #cad8d2; border-radius: 12px; }
.panel { padding: 24px; }
.login { margin: 10vh auto 0; max-width: 420px; }
.login button { margin-top: 18px; }
button, input, select, textarea { font: inherit; }
button { padding: 8px 14px; cursor: pointer; border-radius: 8px; border: 1px solid #bdcbc5; color: #17372e; background: white; }
button:disabled { opacity: .55; cursor: progress; }
button:hover { background: #eaf3ee; }
button.primary, .tabs button[aria-pressed="true"] { background: #17634e; color: white; border-color: #17634e; }
button.primary:hover { background: #104735; }
input, select, textarea { border: 1px solid #bdcbc5; border-radius: 8px; padding: 9px 11px; color: inherit; width: 100%; background: white; }
textarea { min-height: 6em; resize: vertical; }
label { font-weight: 600; display: grid; gap: 5px; min-width: 0; }
.bar, .tabs, .editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bar .primary { margin-left: auto; }
.city { display: flex; align-items: center; gap: 8px; }
.city select { width: auto; }
.hint, .record-meta { color: #536960; margin: 6px 0 12px; }
.search { max-width: 400px; margin: 18px 0 12px; }
.records { padding: 0; list-style: none; }
.records li { padding: 13px 16px; border-bottom: 1px solid #e4ebe7; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.records li:last-child { border-bottom: 0; }
.records li div { min-width: 0; overflow-wrap: anywhere; }
.record-meta { font-size: .875rem; margin-bottom: 0; }
dialog { width: min(620px, 100% - 24px); max-height: 90dvh; padding: 22px; color: inherit; }
dialog::backdrop { background: #132a2699; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields .wide { grid-column: 1 / -1; }
.fields img { max-height: 160px; max-width: 100%; object-fit: contain; }
.editor-actions { justify-content: flex-end; }
.error, .status[data-error="true"] { color: #9c3023; }
.status:empty, .error:empty { display: none; }
@media (max-width: 500px) {
  .bar .primary { margin-left: 0; }
  .fields { grid-template-columns: 1fr; }
}

.admin-page main { width: min(100% - 32px, 1240px); }
.admin-page .top { padding-inline: max(20px, calc((100vw - 1240px) / 2)); }
#account { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
#account:not([hidden]) + button { margin-left: 0; }
.workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 28px; }
.sidebar { position: sticky; top: 20px; border: 1px solid #cad8d2; border-radius: 12px; background: white; padding: 12px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button { text-align: left; border-color: transparent; font-weight: 600; }
.sidebar nav button[aria-pressed="true"] { background: #17634e; color: white; }
.workspace-content { min-width: 0; }
.section-tabs { margin-bottom: 14px; }
.records .review-contact, .records .review-note { margin: 8px 0 0; }
.records .review-note { white-space: pre-wrap; }
.admin-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.login label + label { margin-top: 12px; }
@media (max-width: 620px) {
  .workspace { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { position: static; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav button { padding: 7px 9px; }
}
