:root{color-scheme:light}body{font-family:system-ui,sans-serif}header{padding:24px max(20px,calc((100vw - 1060px)/2));background:linear-gradient(115deg,#102b50,#245d96);box-shadow:0 6px 24px #102b5020}main{max-width:1060px;background:transparent;box-shadow:none;margin:16px auto;padding:16px}section,article{border-radius:20px;padding:22px;box-shadow:0 5px 20px #1634500b}button{min-height:44px;font-weight:600}nav button{min-height:78px}nav button[aria-current=true]{outline:2px solid #759ee0;outline-offset:-2px}input,textarea,select{border-radius:12px;min-height:44px}#app>section:first-child{max-width:540px;margin:30px auto;padding:28px}.launch{text-align:center}.launch img{width:80px;border-radius:20px}.house-weather{background:linear-gradient(130deg,#102b50,#245d96);color:white}.house-weather small,.house-weather a{color:#dbeafe}.house-weather svg{stroke:#dbeafe}.tiles button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:76px;background:#e8f0fc;color:#173b63}.building-facade{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;border-top:8px solid #173b63;padding:0 0 8px}.entrance{background:#dce7f1;border-radius:0 0 8px 8px;padding:10px 5px;text-align:center;min-width:0}.windows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.flat{margin:0;padding:4px 0;min-width:0;min-height:42px;border-radius:7px;color:white;background:#64748b;font-size:clamp(12px,2.5vw,17px)}.flat.approved{background:#167443}.flat.pending{background:#a16207}.flat.own{outline:3px solid #2563eb;outline-offset:1px}.flat[aria-pressed=true]{box-shadow:inset 0 0 0 3px white}.door{width:30%;height:34px;background:#173b63;margin:10px auto 4px;border-radius:4px 4px 0 0}.entrance small{display:block;color:#173b63;font-size:12px}.building-legend{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;font-size:13px}.building-panel progress{width:100%;height:14px;accent-color:#167443;margin-top:12px}.mobile-bottom{display:none}.dark{color-scheme:dark;color:#edf4fa}.dark main{background:transparent}.dark .tiles button{background:#294764;color:#edf4fa}.dark .entrance{background:#354b63}.dark .entrance small{color:#edf4fa}@media(max-width:600px){main{margin:0;padding:10px 10px 90px}section,article{padding:15px;border-radius:16px}.mobile-bottom{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #dce5ed;padding:6px 4px calc(6px + env(safe-area-inset-bottom))}.mobile-bottom button{display:flex;flex-direction:column;align-items:center;gap:3px;background:transparent;color:#173b63;font-size:12px;padding:3px 8px}.mobile-bottom svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.mobile-bottom button[aria-current=true]{background:#e5efff}.dark .mobile-bottom{background:#20384b}.dark .mobile-bottom button{color:#edf4fa}.dark .mobile-bottom button[aria-current=true]{background:#36567c}.windows{gap:4px}.entrance{padding:8px 3px}.flat{min-height:38px}.building-facade{gap:2px}}@media(prefers-reduced-motion:no-preference){#view>section,#view>article{animation:appear .18s ease-out}.weather-symbol svg{animation:weatherfloat 4s ease-in-out infinite}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes weatherfloat{50%{transform:translateY(-3px)}}}

/* Restore original building photo in both themes. */
body,body.dark{background:#263747 url("bytovy-dom.webp") center center / cover no-repeat fixed}body::before{display:block;background:linear-gradient(180deg,#0d1f4830,#0d1f4860)}body.dark::before{background:#08132188}section,article{background:rgba(255,255,255,.94)}.dark section,.dark article{background:rgba(32,56,75,.94)}header{background:linear-gradient(115deg,#102b50ed,#245d96e8)}#msg:not(:empty){background:#fff4e5;padding:10px;border-radius:10px} @media(max-width:600px){body,body.dark{background-attachment:scroll;background-image:none}body::before{background:linear-gradient(180deg,#0d1f4830,#0d1f4860),url("bytovy-dom.webp") center center / cover no-repeat}body.dark::before{background:linear-gradient(#08132188,#08132188),url("bytovy-dom.webp") center center / cover no-repeat}}

/* 6.2: opaque white reading surfaces in both themes. */
body section,body article,body.dark section,body.dark article{background:#fff;color:#183047;border-color:#dce5ed;color-scheme:light}
body section small,body article small,body.dark section small,body.dark article small{color:#526579}
body section a,body article a,body.dark section a,body.dark article a{color:#245d96}
body section input,body section textarea,body section select,body article input,body article textarea,body article select,body.dark input,body.dark textarea,body.dark select{background:#fff;color:#183047;border-color:#9aafc2;color-scheme:light}
body .event-date,body.dark .event-date{color:#284e67}
body .house-weather,body.dark .house-weather{background:#fff;color:#183047}
body .house-weather svg,body.dark .house-weather svg{stroke:#245d96}
body .weather-days>div{background:#eef4fa}
body .dashgrid div{background:#eef4fa}
body .tiles button,body.dark .tiles button{background:#e8f0fc;color:#173b63}
body .entrance,body.dark .entrance{background:#dce7f1}
body .entrance small,body.dark .entrance small{color:#173b63}
body nav button,body.dark nav button{background:#fff;color:#20354b;border-color:#dce5ed}
body nav button[aria-current=true],body.dark nav button[aria-current=true]{background:#e5efff;color:#163d76;border-color:#759ee0}
#install-help:not(:empty){display:inline-block;background:#fff;color:#183047;padding:8px;border-radius:8px}
