/* strbrl.games.ozpr.cz: Street Barrel admin. Same look as the game and strbrl.ozpr.cz; no external requests. */
@font-face { font-family: Archivo; src: url("../font/Archivo-var.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Archivo; src: url("../font/Archivo-Italic-var.woff2") format("woff2"); font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root { --ink: #0B0C0E; --panel: #16181C; --panel2: #1E2126; --white: #fff; --dim: rgba(255,255,255,.68); --faint: rgba(255,255,255,.42); --rule: rgba(255,255,255,.16); --yellow: #FFD60A; --red: #FF4D3D; --green: #2BD96B; --blue: #5AB4FF; }
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--white); font-family: Archivo, system-ui, sans-serif; font-stretch: 88%; font-size: 16px; line-height: 1.5; }
body { margin: 0; }
a { color: var(--yellow); }
header.bar { border-bottom: 1px solid var(--rule); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
body.wide .wrap { max-width: 1680px; }
header.bar .wrap:first-child { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.who { color: var(--dim); font-size: 14px; }
.wordmark { display: inline-flex; font-style: italic; font-weight: 900; font-stretch: 75%; letter-spacing: 1px; font-size: 18px; line-height: 1; text-decoration: none; }
.wordmark .tab { background: var(--yellow); color: var(--ink); padding: 6px 15px 5px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.wordmark .free { color: var(--white); padding: 6px 0 5px 8px; }
.wordmark .admin { color: var(--dim); padding: 6px 0 5px 10px; font-style: normal; font-weight: 700; letter-spacing: 0; }
header.bar form { display: inline; }
.nav { display: flex; gap: 2px; overflow-x: auto; }
.nav a { color: var(--dim); text-decoration: none; font-weight: 700; padding: 8px 12px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--white); }
.nav a.on { color: var(--white); border-bottom-color: var(--yellow); }
main { padding: 28px 0 56px; }
h1 { font-weight: 800; font-stretch: 70%; font-size: 40px; line-height: 1.05; margin: 0 0 8px; }
h2 { font-weight: 800; font-stretch: 75%; font-size: 22px; margin: 28px 0 10px; }
h3 { font-weight: 800; font-stretch: 80%; font-size: 17px; margin: 18px 0 8px; }
.meta { color: var(--dim); margin: 0 0 20px; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.card { background: var(--panel); padding: 24px; max-width: 420px; }
.panel { background: var(--panel); padding: 18px 20px; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=email], input[type=text], input[type=number], input[type=search], select, textarea { width: 100%; padding: 10px 12px; font: inherit; background: var(--ink); color: var(--white); border: 1px solid var(--rule); border-radius: 0; }
input[type=file] { color: var(--dim); font: inherit; }
textarea { min-height: 120px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.card input[type=email], .card input[type=text] { padding: 12px; font-size: 18px; }
input.code { letter-spacing: 6px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 24px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 0; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
button, .button { display: inline-block; margin-top: 20px; padding: 14px 18px; font: inherit; font-weight: 900; font-style: italic; font-stretch: 75%; letter-spacing: 1px; font-size: 18px; background: var(--yellow); color: var(--ink); border: 0; border-radius: 0; cursor: pointer; text-decoration: none; }
button.small, .button.small { margin-top: 0; padding: 7px 12px; font-size: 14px; }
button.ghost, .button.ghost { background: transparent; color: var(--white); border: 1px solid var(--rule); font-style: normal; font-weight: 700; letter-spacing: 0; }
button.danger { background: var(--red); color: var(--white); }
button.link { background: none; color: var(--dim); font-style: normal; font-weight: 700; letter-spacing: 0; font-size: 14px; padding: 0 0 0 12px; margin: 0; text-decoration: underline; }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.actions form { display: inline; margin: 0; }
.message { padding: 12px 16px; margin: 0 0 20px; background: var(--panel); border-left: 4px solid var(--yellow); }
.message.error { border-left-color: var(--red); }
.message.success { border-left-color: var(--green); }
.qr { background: #fff; padding: 12px; width: 220px; height: 220px; display: block; margin: 16px 0; }
code.secret { font-size: 16px; letter-spacing: 1px; background: var(--ink); padding: 6px 8px; display: inline-block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { background: var(--panel); padding: 16px 18px; text-decoration: none; color: var(--white); display: block; }
.tile h2 { font-stretch: 78%; font-size: 15px; margin: 0 0 4px; color: var(--dim); font-weight: 700; }
.tile p { color: var(--dim); margin: 0; }
.tile .big { font-size: 34px; font-weight: 800; font-stretch: 75%; line-height: 1.1; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--dim); font-weight: 700; font-size: 13px; }
tr:hover td { background: rgba(255,255,255,.03); }
.badge { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 800; background: var(--panel2); color: var(--dim); white-space: nowrap; }
.badge.yellow { background: var(--yellow); color: var(--ink); }
.badge.red { background: var(--red); color: var(--white); }
.badge.green { background: var(--green); color: var(--ink); }
.badge.blue { background: var(--blue); color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin: 16px 0 18px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--dim); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--white); border-bottom-color: var(--yellow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 8px 0 16px; }
.filters label { margin: 0 0 4px; font-size: 13px; }
.filters select, .filters input { width: auto; padding: 7px 10px; }
.filters button { margin: 0; padding: 8px 14px; font-size: 14px; }
.pager { display: flex; gap: 12px; align-items: center; color: var(--dim); }
.empty { color: var(--dim); background: var(--panel); padding: 18px 20px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
dl.facts dt { color: var(--dim); }
dl.facts dd { margin: 0; }
.source { color: var(--faint); font-size: 12px; margin-top: 3px; }
.source b { color: var(--yellow); font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; }
pre { background: var(--ink); border: 1px solid var(--rule); padding: 12px; overflow: auto; font-size: 12px; max-height: 420px; }
.meter { height: 10px; background: var(--panel2); position: relative; margin: 6px 0; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); }
.meter > i.w0 { width: 0%; } .meter > i.w5 { width: 5%; } .meter > i.w10 { width: 10%; } .meter > i.w15 { width: 15%; } .meter > i.w20 { width: 20%; } .meter > i.w25 { width: 25%; } .meter > i.w30 { width: 30%; } .meter > i.w35 { width: 35%; } .meter > i.w40 { width: 40%; } .meter > i.w45 { width: 45%; } .meter > i.w50 { width: 50%; } .meter > i.w55 { width: 55%; } .meter > i.w60 { width: 60%; } .meter > i.w65 { width: 65%; } .meter > i.w70 { width: 70%; } .meter > i.w75 { width: 75%; } .meter > i.w80 { width: 80%; } .meter > i.w85 { width: 85%; } .meter > i.w90 { width: 90%; } .meter > i.w95 { width: 95%; } .meter > i.w100 { width: 100%; } 
.meter > i.warn { background: var(--yellow); }
.meter > i.over { background: var(--red); }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--yellow); }
.chart .bar2 { fill: var(--blue); }
.chart .axis { stroke: var(--rule); stroke-width: 1; }
.chart text { fill: var(--faint); font-size: 10px; font-family: Archivo, system-ui, sans-serif; }

/* Track editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.plan-wrap { background: #101214; border: 1px solid var(--rule); position: relative; }
.plan { width: 100%; height: calc(100vh - 250px); min-height: 460px; display: block; cursor: grab; touch-action: none; user-select: none; }
.plan.dragging { cursor: grabbing; }
.plan-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.plan-tools button { margin: 0; padding: 4px 10px; font-size: 14px; background: var(--panel); color: var(--white); font-style: normal; letter-spacing: 0; border: 1px solid var(--rule); }
.layers { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--dim); }
.layers label { display: inline-flex; gap: 5px; margin: 0; font-weight: 400; align-items: center; }
.inspector { background: var(--panel); padding: 16px 18px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.inspector h2 { margin-top: 0; }
.inspector label { margin: 10px 0 4px; font-size: 14px; }
.inspector input, .inspector select { padding: 7px 9px; }
.inspector button { margin-top: 14px; }
.legend { display: grid; grid-template-columns: 16px 1fr; gap: 4px 8px; font-size: 13px; color: var(--dim); align-items: center; }
.legend i { width: 14px; height: 10px; display: block; }
.swatch-f-tenement { background: #8C7A64; } .swatch-f-tenement-corner { background: #A08A6E; } .swatch-f-functionalist { background: #9AA3A8; }
.swatch-f-plain { background: #77756F; } .swatch-f-church { background: #B5A27C; } .swatch-f-shopfront { background: #6E7C5B; }
.swatch-edited { background: transparent; outline: 2px solid var(--yellow); outline-offset: -2px; }
.swatch-parking { background: #4C78A8; } .swatch-nopark { background: var(--red); } .swatch-object { background: var(--yellow); border-radius: 50%; } .swatch-zone { background: var(--green); }

.plan .park { fill: #1F3A26; }
.plan .side-street { stroke: #24272C; fill: none; stroke-linecap: round; }
.plan .tram { stroke: #3A3F47; stroke-width: .6; fill: none; }
.plan .facade-line { stroke: #2C3036; stroke-width: .8; fill: none; }
.plan .kerb { stroke: #5C626B; stroke-width: .5; fill: none; }
.plan .centre { stroke: #4A4F57; stroke-width: .4; stroke-dasharray: 3 3; fill: none; }
.plan .b polygon { stroke: #0B0C0E; stroke-width: .4; }
.plan .b:hover polygon { stroke: var(--white); stroke-width: 1; }
.plan .f-tenement { fill: #8C7A64; } .plan .f-tenement-corner { fill: #A08A6E; } .plan .f-functionalist { fill: #9AA3A8; }
.plan .f-plain { fill: #77756F; } .plan .f-church { fill: #B5A27C; } .plan .f-shopfront { fill: #6E7C5B; }
.plan .b.edited polygon { stroke: var(--yellow); stroke-width: 1.2; }
.plan .b.excluded polygon { fill-opacity: .25; stroke-dasharray: 2 2; }
.plan .b.sel polygon { stroke: var(--white); stroke-width: 2; fill-opacity: 1; }
.plan .pk-default { stroke: #2E4A6B; stroke-width: 2; fill: none; }
.plan .pk-span { stroke: #4C78A8; stroke-width: 2.6; fill: none; }
.plan .pk-span.none { stroke: var(--red); stroke-dasharray: 2 1.5; }
.plan .pk-span.sel, .plan a:hover .pk-span { stroke: var(--white); }
.plan .prop.tree { fill: #3E8E4F; } .plan .prop.lamp { fill: #E8D27A; } .plan .prop.bench { fill: #B07A4F; } .plan .prop.bin { fill: #888; }
.plan .zone line, .plan .zone polyline { stroke: var(--green); stroke-width: 1; fill: none; }
.plan .zone text { fill: var(--green); font-size: 4.5px; font-weight: 800; }
.plan .zone.sel polyline { stroke: var(--white); stroke-width: 1.6; }
.plan .obj circle { fill: var(--yellow); stroke: #0B0C0E; stroke-width: .3; }
.plan .obj polyline { stroke: var(--yellow); stroke-width: 1.1; fill: none; stroke-dasharray: 1.2 .8; }
.plan .obj.o-cointrail polyline { stroke: #FFE45E; }
.plan .obj.o-finish polyline { stroke: var(--white); stroke-width: 1.4; stroke-dasharray: none; }
.plan .obj.o-parkedcar circle, .plan .obj.o-tram circle { fill: var(--blue); }
.plan .obj.o-pram circle, .plan .obj.o-grease circle { fill: var(--red); }
.plan .obj.sel circle { fill: var(--white); stroke: var(--yellow); stroke-width: .8; }
.plan .obj.sel polyline { stroke: var(--white); }
.plan .obj:hover circle { stroke: var(--white); stroke-width: .7; }
.plan .start { stroke: var(--green); stroke-width: 1.4; fill: none; }
.plan .sector polyline { stroke: var(--faint); stroke-width: .5; fill: none; }
.plan .sector text, .plan .ruler text { fill: var(--dim); font-size: 5px; font-weight: 700; }
.plan .ruler polyline { stroke: var(--faint); stroke-width: .4; fill: none; }
.plan .ruler text { fill: var(--faint); font-size: 3.6px; font-weight: 400; }
.plan.hide-buildings .lyr-buildings, .plan.hide-parking .lyr-parking, .plan.hide-props .lyr-props,
.plan.hide-gameplay .lyr-gameplay, .plan.hide-labels .lyr-labels { display: none; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .inspector { position: static; max-height: none; } .plan { height: 60vh; } .grid2 { grid-template-columns: 1fr; } }
img.preview { display: block; max-width: 100%; height: auto; background: var(--panel); margin-bottom: 12px; }
pre.prose { white-space: pre-wrap; font-family: inherit; font-size: 14px; border: 0; padding: 0; background: none; max-height: none; }
.panel + .panel { margin-top: 8px; }
.nowrap { white-space: nowrap; }
figure { margin: 0; }
