@layer base,components,responsive;@layer base{:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;color:#243c39;background:#f0f4f3;font-synthesis:none;--ink: #243c39;--muted: #5d706c;--line: #d8e2df;--accent: #176b61;--accent-dark: #11534b;--selected: #e5f1ed;--green: #28765b;--amber: #87601e;--red: #a13e38}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #378b9a;outline-offset:3px}::selection{color:#102e29;background:#bce3d4}input,select{width:100%;min-height:40px;border:1px solid #b6c8c2;border-radius:6px;background:#fff;color:var(--ink);padding:8px 10px;caret-color:var(--accent)}input:hover,select:hover{border-color:#75948b}input::placeholder{color:#687d76}input[aria-invalid=true]{border-color:var(--red)}label{display:flex;flex-direction:column;gap:7px;font-size:.86rem;font-weight:600}fieldset{padding:0;margin:0;border:0;min-width:0}legend{padding:0;margin-bottom:10px;font-weight:600;font-size:.93rem}h1,h2,h3,p{margin:0}h1{font-size:1.29rem;font-weight:650;line-height:1.35;letter-spacing:-.02em}h2{font-size:1.15rem;font-weight:650;line-height:1.4;letter-spacing:-.015em}h3{font-size:1rem;font-weight:650;line-height:1.45}p{line-height:1.6}p+p{margin-top:10px}small{font-size:.85rem;font-weight:400}svg{flex-shrink:0}dl,dd{margin:0}ul{padding:0;margin:0;list-style:none}a{color:var(--accent);text-underline-offset:3px}.money,.number,strong,dd{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small-copy{font-size:.86rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.full-width{grid-column:1 / -1}}@layer components{.skip-link{position:fixed;top:-100px;left:16px;z-index:10000;padding:12px 18px;background:#fff}.skip-link:focus{top:12px}.app-shell{min-height:100svh;display:flex;flex-direction:column;--header-height: 56px;--zoom-bar-height: 49px}.map-screen{height:100svh;min-height:320px}.app-header{min-height:var(--header-height);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 20px;background:#173f3b;color:#f5fbf8}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand svg{width:26px;height:26px;color:#9dcbb7}.brand h1{font-size:1.1rem;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}.header-auth{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;min-height:40px;padding:6px 10px;border:0;border-radius:5px;background:transparent;color:#f5fbf8;font-weight:600}.header-auth:hover:not(:disabled){background:#315750}.header-auth svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.login-dialog{width:min(380px,calc(100% - 32px));padding:24px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.login-dialog::backdrop{background:#122c29a6}.login-form{display:grid;gap:16px}.login-form input{font-size:16px}.login-form .field-error{margin-top:0}.login-actions{display:flex;align-items:center;gap:14px}.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:1px solid #b9cdc5;border-radius:6px;color:#254c40;background:#fff;font-weight:600;font-size:.9rem;line-height:1.4;transition:background-color .15s,border-color .15s}.button:hover:not(:disabled){background:#edf5f1;border-color:#7ca596}.button:active:not(:disabled){background:#d8eae2}.button.small{min-height:36px;padding:7px 11px;font-size:.86rem}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button.primary:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark)}.save-button{background:#e5f2eb;border-color:#e5f2eb;min-width:108px;padding-inline:10px}.save-button:hover:not(:disabled){background:#f5fbf8}.save-button:disabled{opacity:1;background:#315750;color:#c8dbd3;border-color:#577c70}.text-button{border:0;background:transparent;padding:7px 2px;min-height:32px;color:var(--accent);font-size:.86rem;font-weight:600;line-height:1.45;text-decoration-thickness:1px;text-underline-offset:3px}.text-button:hover:not(:disabled){text-decoration:underline;color:var(--accent-dark)}.text-button.danger{color:var(--red)}.nav-items{display:flex;align-items:center;gap:4px}.nav-items button{min-height:40px;padding:6px 10px;border:0;border-radius:5px;color:#d1e3dc;background:transparent;font-weight:600}.nav-items button[aria-current],.nav-items button:hover{background:#315750;color:#fff}.app-header button:focus-visible{outline-color:#a4dfc5}main{width:100%;padding:24px 32px;max-width:1800px;margin:0 auto}.map-workspace{display:flex;flex:1;flex-direction:column;min-height:0;max-width:none;margin:0;padding:0}.map-workspace .message{flex-shrink:0;margin:10px}.plan-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,20vw,310px);grid-template-rows:auto minmax(0,1fr);flex:1;min-height:0}.houses-panel{grid-column:2;grid-row:2;background:#fff;border-inline-start:1px solid var(--line);min-width:0;min-height:0;display:flex;flex-direction:column}.panel-title{padding:18px 18px 14px;border-bottom:1px solid var(--line)}.panel-title p{margin-top:8px}.house-card{display:grid;gap:10px;padding:14px 18px;background:var(--selected);border-bottom:1px solid var(--line)}.house-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px 12px}.house-card-heading h2{overflow-wrap:anywhere;min-width:0}.house-card-heading .text-button{flex-shrink:0}.house-card>.button{justify-self:start}.count{margin-left:4px;color:var(--muted);font-weight:500;font-size:.9rem;font-variant-numeric:tabular-nums}.houses-empty{padding:14px 18px;color:var(--muted);font-size:.9rem}.yes{background:#e5f2e9;color:#276347}.unknown{background:#f8efdc;color:#805b1c}.no{background:#fae9e6;color:#9b443d}.house-list{min-height:0;overflow-y:auto;scrollbar-color:#b0c5ba #f6f9f7;scrollbar-width:thin}.house-row{padding:11px 18px 5px;border-bottom:1px solid #edf1ee}.house-row-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.house-row-name{flex:1 1 9ch;overflow-wrap:anywhere}.house-contribution{margin-inline-start:auto;color:#205344;font-size:.92rem;white-space:nowrap}.house-row.selected{background:var(--selected)}.apartment-row+.apartment-row{margin-top:7px;padding-top:7px;border-top:1px solid var(--line)}.apartment-trigger{min-height:36px;padding:5px 2px}.apartment-editor{display:grid;gap:8px;margin:3px 0 8px;padding-top:10px;border-top:1px solid var(--line)}.apartment-editor input{flex:1 1 75px;min-width:0;font-size:16px}.apartment-editor .field-error{margin-top:0}.apartment-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.apartment-editor-list li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.apartment-editor-list button{flex-shrink:0}.share-total{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-top:auto;padding:14px 18px;background:#e7f0eb;color:#205344}.map-panel{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}.map-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}.site-map{display:contents}.site-map-zoom{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:var(--zoom-bar-height);padding:4px 10px;border-inline-start:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.site-map-zoom .button{width:40px;min-height:40px;padding:0}.site-map-zoom svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.site-map-zoom output{min-width:42px;text-align:center;color:var(--muted);font-size:.86rem;font-variant-numeric:tabular-nums}.site-map-zoom .text-button{margin-inline-start:4px}.site-map-viewport{position:relative;grid-column:1;grid-row:1 / -1;min-height:0;overflow:auto;scrollbar-width:none;-webkit-user-select:none;user-select:none;background:#eaf0ed;-webkit-tap-highlight-color:transparent}.site-map-viewport:focus-visible{outline-offset:-3px}.site-map-viewport.can-pan{cursor:grab}.site-map-sheet{display:grid;place-items:center;width:max-content;min-width:100%;height:max-content;min-height:100%}.site-map-diagram{display:block;overflow:hidden}.site-map-diagram image{pointer-events:none}.site-building{cursor:pointer;fill:transparent;stroke:#38514b57;stroke-width:1px;stroke-linejoin:round;vector-effect:non-scaling-stroke;-webkit-tap-highlight-color:transparent}.site-building[data-consented=true]{fill:#3a9f7055;stroke:#176344;stroke-width:2px}.site-building.is-selected{stroke:var(--accent-dark);stroke-width:3px}.site-building:focus{outline:none}.site-building:focus-visible{stroke:#114e49;stroke-width:3px}@media(hover:hover){.site-building:hover:not([aria-disabled=true]){stroke:#114e49;stroke-width:2.5px}}.site-building[aria-disabled=true]{cursor:not-allowed}.site-map-public .site-building{cursor:inherit}.site-map-viewport.is-dragging,.site-map-viewport.is-dragging .site-building{cursor:grabbing}.map-area-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:10px 16px;border-bottom:1px solid var(--line);background:#f5f8f6}.map-area-help{color:var(--muted);font-size:.86rem}.map-area-help summary{cursor:pointer;padding:7px 0;color:var(--accent);font-weight:600;text-underline-offset:3px}.map-area-help summary:hover{text-decoration:underline}.map-area-help summary:focus-visible{outline:3px solid #378b9a;outline-offset:3px}.map-area-help p{max-width:65ch;padding:6px 0}.map-area-help[open]{flex-basis:100%}.map-area-error{padding:12px 16px;margin:0;border-bottom:1px solid var(--line)}.button-group{display:flex;gap:6px;flex-wrap:wrap}.button[aria-pressed=true]{background:var(--selected);color:var(--accent-dark);border-color:#7fae9a}.map-stage{position:relative;min-height:390px;height:min(49vh,540px);background:#eaf0ed}.map-canvas{width:100%;height:100%}.map-hidden{visibility:hidden}.map-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.map-symbol{color:#6d9685;width:52px;height:52px;margin-bottom:20px}.map-placeholder h2{font-size:1.29rem}.map-placeholder p{color:var(--muted);max-width:390px;margin:10px 0 22px}.map-footer{padding:13px 16px;display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line)}.map-legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:.76rem}.map-legend span{display:inline-flex;align-items:center;gap:7px}.legend-line{display:inline-block;width:20px;border-top:3px solid #176b69}.legend-line.outlet{border-top:2px dashed #426c85}.route-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:.8rem}.route-actions .text-button{font-size:.8rem;min-height:26px;padding:2px 0}.map-instruction{background:#dcece5;padding:8px 16px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:.86rem}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.section-heading h2{overflow-wrap:anywhere}.section-heading p{margin-top:7px}.section-heading>.text-button{flex-shrink:0}.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.coordinate-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:10px}.coordinate-fields label{font-weight:400;color:var(--muted);font-size:.8rem}.coordinate-fields .button{min-height:40px}.calculation{display:flex;flex-direction:column}.calculation>div{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:10px 0;font-size:.9rem}.calculation dt{color:var(--muted)}.calculation dd{font-weight:600;text-align:right}.calculation .calculation-total{border-top:1px solid var(--line);margin-top:12px;padding-top:16px;font-size:1rem}.calculation-total dt{font-weight:600;color:var(--ink)}.expense-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:22px;padding:13px 0;border-bottom:1px solid #e6eeea}.expense-name{overflow-wrap:anywhere;line-height:1.5}.expense-recipients{display:block;color:var(--muted);font-size:.8rem;margin-top:3px}.expense-list strong{font-size:.93rem;white-space:nowrap}.row-actions{display:flex;gap:12px}.row-actions .text-button{font-size:.8rem}.expense-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,150px);align-items:end;gap:12px;margin-top:20px}.expense-house-selection legend{margin-bottom:6px;font-size:.86rem}.expense-house-options{max-height:min(310px,45svh);overflow-y:auto;border:1px solid var(--line);border-radius:6px;scrollbar-color:#b0c5ba #f6f9f7}.expense-house-option{flex-direction:row;align-items:center;gap:10px;min-height:42px;padding:7px 10px;font-weight:500;overflow-wrap:anywhere;cursor:pointer}.expense-recipient-group+.expense-recipient-group{border-top:1px solid var(--line)}.expense-apartment-option{padding-inline-start:36px;background:#f6f9f7}.expense-house-option input{width:16px;height:16px;min-height:0;flex:none;margin:0;accent-color:var(--accent)}.expense-house-option small{color:var(--muted)}.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.field-error{color:var(--red);font-size:.86rem;line-height:1.5;margin-top:8px}.empty-inline{color:var(--muted);padding:18px 0;font-size:.93rem;line-height:1.6}.empty-inline .text-button{display:block;margin-top:12px}.budget-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.budget-main{display:flex;flex-direction:column;gap:24px;min-width:0}.section-block{padding:26px;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}.section-total{font-size:1.4rem;white-space:nowrap}.mobile-budget-total,.mobile-house-calculation{display:none}.budget-summary{background:#e7f0eb;border:1px solid #c9ddd3;border-radius:10px;padding:25px 22px}.budget-summary h2{margin-bottom:20px}.budget-summary .calculation-total{flex-direction:column;gap:10px}.budget-summary .calculation-total dd{text-align:left;font-size:1.4rem;color:#205344}.inline-warning{background:#fbf4e3;color:#77591f;font-size:.86rem;padding:14px;border-radius:6px;margin-top:18px}.scenarios{border-top:1px solid #c9ddd3;margin-top:24px;padding-top:20px}.scenarios h3{font-size:.93rem;margin-bottom:12px}.scenarios dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;font-size:.86rem}.scenarios dd{text-align:right;font-weight:600}.scenarios p{margin-top:10px}.individual-summary{border-top:1px solid #c9ddd3;margin-top:24px;padding-top:20px}.individual-summary>span{display:block;font-size:.86rem;line-height:1.5;color:var(--muted)}.individual-summary strong{display:block;margin-top:8px;font-size:1.15rem}.individual-summary p{margin-top:8px}.table-scroll{overflow-x:auto;scrollbar-color:#b0c5ba #f6f9f7}table{width:100%;border-collapse:collapse;font-size:.86rem}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid #e6eeea}thead th{font-size:.75rem;color:var(--muted);font-weight:600;background:#f5f8f6;white-space:nowrap}th:first-child,td:first-child{padding-left:10px}.number{text-align:right;white-space:nowrap}tbody tr:hover{background:#f6faf7}tbody th{overflow-wrap:anywhere;min-width:10ch;max-width:34ch}.status-label{display:inline-block;font-size:.8rem;border-radius:4px;padding:4px 8px;white-space:nowrap;font-weight:500}tfoot th,tfoot td{border-bottom:0;padding-top:20px;font-weight:650}.message{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-radius:8px;margin-bottom:20px}.message p{font-size:.93rem}.message h2{font-size:1rem;margin-bottom:5px}.message-actions{display:flex;gap:10px;flex-shrink:0;flex-wrap:wrap}.conflict-message{background:#fbf0d8;color:#654b1f;border:1px solid #e7ce9c;flex-wrap:wrap}.conflict-message p{max-width:800px}.error-message{background:#fbe9e6;color:#8b3731}.loading-screen,.load-error{padding:100px 20px;text-align:center}.loading-screen p,.load-error p{margin:12px 0 22px}.loading-block{height:5px;width:100px;border-radius:3px;background:#a0c5b5;margin:0 auto 28px}}@layer responsive{@media(max-width:1200px){main:not(.map-workspace){padding-inline:24px}.budget-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.section-block{padding:22px}.budget-main .section-heading{flex-wrap:wrap}.budget-main .expense-list li{grid-template-columns:minmax(0,1fr) auto;gap:14px}.budget-main .row-actions{grid-column:1 / -1;justify-content:flex-end}}@media(max-width:900px){.budget-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px),(max-width:1024px)and (orientation:portrait){.map-screen{height:auto;min-height:100svh}.plan-layout{display:flex;flex-direction:column}.site-map-viewport{height:min(calc(100vw * 1454 / 1302),max(210px,calc(100svh - var(--header-height) - var(--zoom-bar-height))))}.site-map-zoom{border-inline-start:0;border-top:1px solid var(--line)}.houses-panel{border-inline-start:0;flex:1}.house-list{overflow-y:visible}}@media(max-width:680px){.app-header{padding-inline:12px;gap:8px}.brand svg{display:none}.brand h1{font-size:.93rem}.header-actions{gap:6px}.nav-items{gap:2px}.nav-items button{padding-inline:7px;font-size:.9rem}.save-button{min-width:90px;padding-inline:7px}.header-auth{padding-inline:7px;font-size:.9rem}.sign-out span{display:none}main:not(.map-workspace){padding:16px 14px 20px}.section-heading{align-items:start;gap:12px;margin-bottom:20px}.section-block{padding:22px 16px}.budget-layout,.budget-main{gap:20px}.budget-main .table-scroll{display:none}.mobile-budget-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:12px 14px;margin-bottom:14px;border-radius:6px;background:var(--selected)}.mobile-budget-total dt{color:var(--muted)}.mobile-budget-total dd{margin-top:4px;font-size:1.15rem;font-weight:650;color:var(--accent-dark)}.mobile-budget-total a{display:inline-flex;align-items:center;min-height:40px;text-underline-offset:3px}.mobile-house-calculation{display:block}.mobile-house-calculation li{padding:12px 0;border-top:1px solid var(--line)}.mobile-house-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-bottom:7px}.mobile-house-heading h3{flex:1 1 14ch;min-width:0;overflow-wrap:anywhere}.mobile-house-heading strong{margin-inline-start:auto;color:var(--accent-dark);white-space:nowrap}.mobile-house-calculation summary{width:fit-content;min-height:40px;padding-block:10px;color:var(--accent);cursor:pointer}.house-card>.button{min-height:44px}.budget-summary{padding:24px 20px}.expense-list li{gap:12px}.row-actions{gap:18px}.row-actions .text-button{min-height:36px}.message{padding:16px;flex-wrap:wrap;gap:12px}.message-actions{flex-direction:column;align-items:flex-start}.message-actions .button{width:100%}.loading-screen,.load-error{padding:70px 15px}}@media(max-width:420px){.admin-header .brand svg{display:block;width:24px;height:24px}.admin-header .brand h1{position:absolute;width:1px;height:1px;clip-path:inset(50%)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}}
