:root {
  --ink: #1d2939;
  --blue: #185b83;
  --light: #edf4f8;
  --line: #d9e1e7;
  --gutter: clamp(1rem, 3vw, 3rem);
  --content-width: 112rem;
  font-size: clamp(1rem, .875rem + .25vw, 1.375rem);
}
* { box-sizing: border-box; }
body { margin: 0; background: #f6f8fa; color: var(--ink); font: 1rem/1.55 system-ui, Arial, sans-serif; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; background: #123c57; color: white; padding: .75rem max(var(--gutter), calc((100% - var(--content-width)) / 2 + var(--gutter))); }
nav a { color: white; }
nav span { min-width: 0; overflow-wrap: anywhere; }
nav a:not(.brand) { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { font-weight: 800; text-decoration: none; font-size: 1.4rem; }
main { width: 100%; max-width: var(--content-width); margin: clamp(1rem, 2vw, 2rem) auto; padding: 0 var(--gutter); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.3rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .75rem; }
h1, h2, p, li, label, a { overflow-wrap: anywhere; }
a { color: var(--blue); }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1rem, 1.6vw, 1.5rem); margin: 1rem 0; box-shadow: 0 1px 3px #00000008; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.grid > * { min-width: 0; }
.grid > .card { margin-block: 0; }
.grid { margin-block: 1rem; }
label { display: block; }
input, select, textarea { display: block; min-width: 0; max-width: 100%; width: 100%; min-height: 2.75rem; font: inherit; color: inherit; border: 1px solid #bdcbd5; border-radius: .45rem; padding: .65rem; margin: .3rem 0 .8rem; }
input[type=hidden] { display: none; }
input[type=file] { background: white; overflow: hidden; }
input::file-selector-button { font: inherit; max-width: 100%; white-space: normal; padding: .35rem .5rem; }
textarea { resize: vertical; }
button, .btn { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; max-width: 100%; border: 0; border-radius: .45rem; background: var(--blue); color: white; padding: .65rem 1rem; font: inherit; line-height: 1.4; cursor: pointer; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.btn.alt { background: #e9f1f6; color: #194a68; }
:focus-visible { outline: 3px solid #e09b25; outline-offset: 3px; }
.muted { color: #637381; }
.small { font-size: .875rem; }
.tag { display: inline-block; background: #e8f2f7; padding: .2rem .5rem; border-radius: .4rem; font-size: .85rem; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
th { white-space: nowrap; }
td { min-width: 6rem; max-width: 28rem; }
td:first-child { min-width: 3.5rem; white-space: nowrap; }
.table-title, .table-description { min-width: 20rem; }
td input { min-width: 10rem; }
.drawing-viewport { position: relative; width: 100%; height: 72vh; height: 72dvh; overflow: auto; background: #dbe3e8; border: 1px solid #aabcc8; margin-top: .75rem; touch-action: pan-x pan-y; }
.pin { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; min-width: 2.25rem; height: 2.25rem; padding: .15rem; background: #c63e30; border: 2px solid white; color: white; font-weight: bold; font-size: .8rem; display: grid; place-items: center; pointer-events: auto; cursor: pointer; text-decoration: none; box-shadow: 0 1px 6px #0008; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .45rem; }
.warn { background: #fff5df; border: 1px solid #f0d49a; padding: .75rem; border-radius: .45rem; }
@media (max-width: 40rem) {
  .actions > button, .actions > .btn { flex: 1 1 9rem; }
  .card > .btn, form > button { width: 100%; }
  nav { gap: 0 .75rem; }
}
@media (pointer: coarse) { .pin { min-width: 2.75rem; height: 2.75rem; } }
