:root { color: #222; background: #f6f6f7; font: 15px/1.45 system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { max-width: 1080px; margin: auto; padding: 24px 16px; }
header, .row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
header { justify-content: space-between; }
h1 { font-size: 26px; }
h2 { font-size: 18px; overflow-wrap: anywhere; }
p { margin: 8px 0 12px; }
a { color: #1859a3; }
form { margin: 16px 0; }
label { display: block; margin-bottom: 5px; font-weight: 600; }
button, input { min-height: 44px; font: inherit; border: 1px solid #b5b5b5; border-radius: 6px; background: #fff; padding: 8px 12px; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #247edc; outline-offset: 2px; }
input { flex: 1; min-width: 160px; }
#files { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.file { display: grid; text-align: left; gap: 6px; min-width: 0; font-size: 12px; }
.file img { width: 100%; height: 66px; object-fit: contain; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[aria-pressed="true"] { border-color: #1859a3; box-shadow: inset 0 0 0 1px #1859a3; }
#more { margin-top: 10px; }
#feedback[data-error] { color: #8c2020; }
#editor { padding: 16px; background: white; border-radius: 12px; }
#review { padding: 10px; background: #fff0cc; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.photo { position: relative; overflow: hidden; cursor: crosshair; }
.photo img { display: block; width: 100%; height: auto; user-select: none; }
.pin { display: grid; place-items: center; position: absolute; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; background: transparent; touch-action: none; box-shadow: none; }
.pin span { display: grid; place-items: center; width: 27px; height: 27px; background: white; border: 1px solid #171717; border-radius: 50%; }
.pin[aria-pressed="true"] span, .primary { color: #fff; background: #222; }
.controls .row { margin-bottom: 8px; }
#markers { padding-left: 24px; }
#markers button { width: 100%; margin-bottom: 5px; text-align: left; }
hr { border: 0; border-top: 1px solid #ddd; margin: 18px 0; }
@media (max-width: 640px) { .workspace { grid-template-columns: 1fr; } }
