@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--g:#153d35;--dg:#0e2d28;--accent:#d7b67a;--bg:#f7f7f3;--line:#e3e9e2;--muted:#829189;--ink:#20352f}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.loading{height:100vh;display:grid;place-items:center;font-size:24px;color:var(--g);font-weight:800}.layout{display:flex;min-height:100vh}.sidebar{width:225px;background:var(--g);color:white;padding:33px 20px;flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo{font-size:25px;font-weight:850;letter-spacing:.065em}.logo small{display:block;font-size:9px;letter-spacing:.16em;color:#c3d4ca;margin-top:12px}.line{width:31px;height:2px;background:var(--accent);margin:15px 0}.nav-caption{font-size:10px;letter-spacing:.14em;color:#88b7a2;margin-top:55px;margin-bottom:18px}.step{display:block;padding:14px 10px;font-size:12px;font-weight:700;color:#c5ded0;border-radius:8px;margin:5px 0}.step.active{background:#315c50;color:white}.step b{display:inline-grid;place-items:center;background:#ffffff23;width:27px;height:27px;border-radius:7px;margin-right:11px;font-size:10px}.step.active b{background:var(--accent);color:var(--g)}.sidefoot{margin-top:auto;border-top:1px solid #ffffff33;padding-top:20px}.sidefoot a,.sidefoot button{display:block;padding:11px 5px;background:none;color:#d4e2d7;border:0;font-size:11px;text-align:left}.smallprint{font-size:10px;color:#9fbcac;margin-top:20px;line-height:1.8}.main{flex:1;min-width:0}.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 44px;font-size:12px;color:#73857b}.topbar strong{color:var(--g)}.badge{display:inline-flex;gap:7px;align-items:center;font-size:10px;font-weight:700;padding:8px 11px;background:#eff5ef;border-radius:8px;color:#356c57}.badge:before{content:'';width:6px;height:6px;background:#6aac88;border-radius:50%}.wrap{max-width:1520px;margin:auto;padding:36px 44px}.subline{color:#426d56;letter-spacing:.16em;font-weight:800;font-size:10px;text-transform:uppercase}.subline:before{content:' ';width:18px;height:2px;background:var(--accent);display:inline-block;margin-right:10px;vertical-align:middle}.rowhead{display:flex;justify-content:space-between;align-items:end;gap:20px}.rowhead h1{font-size:36px;letter-spacing:-.06em;line-height:1.2;margin:13px 0 8px}.rowhead p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.count{padding:12px;border:1px solid #e1e7dd;border-radius:8px;background:#eef3ec;font-size:10px;font-weight:800;white-space:nowrap}.hero{margin-top:25px;min-height:197px;border-radius:16px;overflow:hidden;position:relative;background:linear-gradient(100deg,#153c34 30%,#2a6253);color:white;display:flex}.hero-art{position:absolute;right:0;width:46%;height:100%;background:linear-gradient(90deg,#205245 1%,transparent),url('/images/atmosfera.webp') center/cover;opacity:.65}.hero-text{position:relative;z-index:1;padding:28px 32px;max-width:570px}.hero-text small{font-size:10px;color:#e4c99b;letter-spacing:.14em;font-weight:800}.hero-text h2{font-size:25px;line-height:1.34;margin:12px 0}.hero-text p{font-size:11px;line-height:1.8;color:#d4e4d9}.secthead{display:flex;justify-content:space-between;align-items:end;margin:33px 0 17px}.secthead h2{font-size:19px;margin:9px 0 0;letter-spacing:-.03em}.secthead small{font-size:10px;color:var(--muted)}.project-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.project{border:1px solid #e0e7df;border-radius:12px;background:white;text-align:left;overflow:hidden;padding:0;min-width:0}.project.active{border:2px solid var(--g);box-shadow:0 4px 15px #164c2a12}.cover{height:105px;position:relative;background:linear-gradient(145deg,#d0c4aa,#6d9b82);overflow:hidden}.cover img{width:100%;height:100%;object-fit:cover}.cover:not(:has(img)):before{content:'';position:absolute;inset:30% 17% -30%;background:repeating-linear-gradient(90deg,#dddfd5 0 19px,#4a7065 20px 26px,#b4c4b5 27px 56px);transform:skew(-6deg)}.cover i{position:absolute;right:8px;top:8px;font-size:10px;background:#f9fdf9;border-radius:5px;padding:4px 7px;font-style:normal;font-weight:800}.project-body{padding:12px}.project-body strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-body small{display:block;color:var(--muted);margin-top:5px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel{background:white;border:1px solid var(--line);border-radius:14px;margin-top:20px;box-shadow:0 12px 38px #142c1b07;overflow:hidden}.panel-pad{padding:23px}.panel-title{display:flex;justify-content:space-between;align-items:center}.panel-title h3{font-size:17px;margin:0 0 5px}.panel-title p{color:var(--muted);font-size:10px;margin:0;line-height:1.8}.reset{border:0;background:none;color:var(--g);font-weight:800;font-size:10px}.filters{display:grid;grid-template-columns:1.3fr .7fr .9fr 1fr 1fr;gap:15px;margin-top:23px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{color:#77867b;font-size:10px;font-weight:700}.field input,.field select,.edit-control{width:100%;min-width:0;border:1px solid #dfe7de;background:#fcfcfa;border-radius:8px;padding:0 11px;height:42px;color:var(--ink);font-size:12px;outline:none}.field input:focus,.field select:focus,.edit-control:focus{border-color:#3b7861}.pair{display:flex;gap:5px}.pair input{width:50%}.resulttop{padding:20px 23px;display:flex;align-items:center;justify-content:space-between}.tablehead,.apartment{display:grid;grid-template-columns:1.2fr .8fr .7fr .7fr 1.1fr .8fr 120px;gap:12px;align-items:center}.tablehead{background:#f9faf7;padding:13px 23px;text-transform:uppercase;font-size:9px;font-weight:800;color:#99a69e}.apartment{padding:17px 23px;border-top:1px solid #edf0ec;font-size:11px}.apartment:hover{background:#fcfefa}.apartment strong{font-size:12px}.apartment small{display:block;color:var(--muted);font-size:9px;line-height:1.6;margin-top:6px}.apartment .total{font-size:14px;color:var(--g);font-weight:850;white-space:nowrap}.btn{border:0;background:var(--g);color:white;border-radius:8px;padding:12px 14px;font-size:11px;font-weight:800}.btn:hover{background:#2f6755}.btn.alt{background:#eaf2ea;color:var(--g)}.btn.gold{background:var(--accent);color:var(--dg)}.btn:disabled{opacity:.45;cursor:not-allowed}.more{display:block;margin:20px auto;border:1px solid var(--line);border-radius:8px;padding:10px 20px;background:white;color:var(--g);font-weight:800;font-size:11px}.muted{color:var(--muted)}.selected{display:flex;gap:17px;align-items:center;padding:22px 25px;background:#eff5ee;border:1px solid #d4e3d4;border-radius:14px;margin-top:27px}.selected-icon{display:grid;place-content:center;background:var(--g);color:var(--accent);border-radius:10px;height:48px;width:48px;font-size:24px}.selected h3{margin:5px 0;font-size:16px}.selected p{margin:0;font-size:10px;color:#788d7c}.selected .number{margin-left:auto;font-size:21px;color:var(--g);font-weight:900;text-align:right}.selected .number small{display:block;font-size:9px;color:var(--muted);font-weight:500}.selected button{background:none;border:1px solid #b6cbb8;color:var(--g);padding:10px;border-radius:8px}.method-head{margin-bottom:15px}.method-title{font-size:11px;color:#688073;text-transform:uppercase;letter-spacing:.13em;font-weight:800;margin-top:27px;padding-bottom:10px;border-bottom:1px solid #e8ede6}.schemes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px}.scheme{border:1px solid #e1e8df;border-radius:10px;padding:13px;display:flex;align-items:start;text-align:left;gap:10px;background:#fff;min-height:78px}.scheme:hover{border-color:#8cac97}.scheme.active{border:2px solid #32634f;background:#f2f8f1}.scheme:disabled{opacity:.42}.check{border:1px solid #aec1af;color:white;width:17px;height:17px;border-radius:4px;flex-shrink:0;font-size:11px;text-align:center;line-height:17px}.scheme.active .check{background:#32634f}.scheme strong{font-size:11px;display:block}.scheme small{font-size:9px;color:#8a988e;display:block;margin-top:6px;line-height:1.5}.actions{border-top:1px solid var(--line);margin-top:22px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.actions small{font-size:10px;color:var(--muted);line-height:1.6}.calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.calc{border:1px solid var(--line);background:white;border-radius:14px;overflow:hidden}.calc-title{background:var(--g);color:white;padding:18px 20px}.calc-title small{font-size:9px;letter-spacing:.12em;color:#e2c791;text-transform:uppercase}.calc-title h3{margin:8px 0 0;font-size:15px;line-height:1.5}.calc-inner{padding:20px}.price-top{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:17px;display:flex;align-items:end;justify-content:space-between}.price-top small{font-size:10px;color:var(--muted)}.price-top strong{display:block;font-size:26px;color:var(--g);margin-top:6px;letter-spacing:-.045em}.price-top span{text-align:right;font-size:12px;color:#44715b;font-weight:800}.edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.edit-grid .field input,.edit-grid .field select{height:40px;font-weight:700;color:var(--g)}.readout{background:#f0f5ef;padding:14px 17px;margin-top:15px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;gap:10px}.readout small{font-size:10px;color:#6c8374}.readout strong{font-size:17px;color:var(--g)}.readout.featured strong{font-size:21px}.warn{margin-top:15px;border:1px solid #efe0c7;border-radius:8px;background:#fcf7ed;padding:11px;font-size:10px;line-height:1.7;color:#9b7b4a}.calcfoot{padding:14px 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.calcfoot small{font-size:9px;color:#95a398}.notes{font-size:10px;color:#84958a;line-height:1.8;margin:25px 0}.login{display:flex;min-height:100vh;background:#f8f8f4}.login-promo{flex:1;background:linear-gradient(0deg,#10382bdc,#10382b50),url('/images/atmosfera.webp') center/cover;display:flex;align-items:end;padding:65px;color:white}.login-promo h1{font-size:50px;letter-spacing:-.05em;line-height:1.2;margin:20px 0}.login-promo p{font-size:13px;color:#d7e9d8;line-height:1.7;max-width:400px}.login-form{width:455px;display:grid;place-content:center;padding:50px}.login-form form{width:325px}.login-form h1{font-size:26px}.login-form h2{font-size:29px;margin-top:60px;letter-spacing:-.04em}.login-form p{font-size:12px;color:#81908a;line-height:1.7;margin-bottom:28px}.login-form .field{margin:16px 0}.login-form .btn{width:100%;padding:14px;margin-top:15px}.error{padding:12px;background:#fff0e9;color:#a25b4a;font-size:11px;border-radius:7px}.note{font-size:10px;color:#7b8d7e;line-height:1.8;margin-top:35px}.print-page{display:none}
@media(max-width:1200px){.sidebar{width:190px}.wrap{padding:30px}.topbar{padding:0 30px}.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.tablehead,.apartment{grid-template-columns:1.2fr .65fr .65fr .7fr 1fr 120px}.tablehead>*:nth-child(6),.apartment>*:nth-child(6){display:none}.project-list{gap:8px}.schemes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{display:none}.wrap{padding:20px}.topbar{height:60px;padding:0 20px}.rowhead h1{font-size:27px}.project-list{display:flex;overflow-x:auto}.project{flex:0 0 170px}.calc-grid{grid-template-columns:1fr}.login-promo{padding:30px}.login-form{width:385px}}
@media(max-width:650px){.topbar{font-size:10px}.wrap{padding:20px 13px}.rowhead .count{display:none}.hero{min-height:190px}.hero-text{padding:22px}.hero-text h2{font-size:20px;max-width:300px}.hero-art{opacity:.26;width:75%}.panel-pad{padding:17px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters .field:first-child,.filters .field:last-child{grid-column:span 2}.tablehead{display:none}.apartment{display:grid;grid-template-columns:1fr auto;padding:15px;gap:12px}.apartment>*:nth-child(2),.apartment>*:nth-child(3),.apartment>*:nth-child(6){display:none}.apartment>*:nth-child(4){grid-column:1;grid-row:2}.apartment>*:nth-child(5){grid-column:2;grid-row:1}.apartment>*:nth-child(7){grid-column:2;grid-row:2}.resulttop{padding:17px}.schemes{grid-template-columns:1fr}.selected{padding:14px;flex-wrap:wrap}.selected .number{width:100%;margin-left:65px;text-align:left}.selected button{margin-left:auto}.actions{flex-direction:column;align-items:stretch}.login-promo{display:none}.login-form{width:100%;min-height:100vh;padding:24px}.login-form form{width:100%;max-width:330px}.secthead small{display:none}}
@media print{@page{size:A4;margin:15mm}#app{display:none!important}#print-doc,.print-page{display:block!important}#print-doc{background:#fff;color:#17392e;font-family:Arial,sans-serif}.paperhead{display:flex;justify-content:space-between;border-bottom:2px solid #143e30;padding-bottom:20px}.paperhead b{font-size:26px}.paperhead small{color:#667c72}.paper-title{font-size:25px;margin-top:35px}.paper-price{background:#edf4ed;padding:22px;margin:24px 0;font-size:28px;font-weight:800}.paper-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.paper-row{border-bottom:1px solid #e3e9e2;display:flex;justify-content:space-between;gap:15px;padding:14px 0;font-size:12px}.paper-row span{color:#79877c}.paper-warning{font-size:10px;color:#8a8070;margin:35px 0;line-height:1.8}}

/* Apartment sorting toolbar */
.results-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.sort-label{font-size:11px;color:#708279;font-weight:700}.sort-select{min-height:38px;max-width:340px;border:1px solid #dbe6da;border-radius:8px;padding:8px 31px 8px 11px;background:#fbfdfa;color:#1d503d;font-weight:700;font-size:11px;cursor:pointer}.sort-select:focus{outline:2px solid #b2cdb8;outline-offset:2px}@media(max-width:800px){.resulttop{align-items:stretch;gap:12px;flex-direction:column}.results-tools{justify-content:space-between}.sort-select{max-width:100%;flex:1;min-width:170px}}

/* Reference-derived payment program layout: grouped accordion, 2 columns, selected chips. */
.payment-group{border:1px solid #e1e8e0;border-radius:13px;margin:12px 0;background:#fff;overflow:hidden}
.payment-group .method-title{width:100%;margin:0;padding:15px 18px;display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid #e8ede6;background:#fbfcf9;text-align:left;cursor:pointer;color:#2b493a;font-size:11px;letter-spacing:.045em}
.payment-group .method-title:focus-visible{outline:2px solid #2c7151;outline-offset:-2px}
.payment-group .method-chevron{margin-left:auto;font-size:17px;color:#789584;transition:transform .18s}
.payment-group.folded .method-chevron{transform:rotate(180deg)}
.payment-group.folded .method-title{border-bottom:none}
.payment-group.folded .schemes{display:none}
.payment-group .schemes{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px;margin:0;gap:8px}
.payment-group .scheme{min-height:62px;border-radius:8px}
.selected-pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.selected-pill{border:1px solid #ead8af;background:#f9f1db;color:#785d30;border-radius:99px;padding:7px 10px;font-size:10px;font-weight:700}
.selected-pill:hover{background:#f2e3c1}
@media(max-width:650px){.payment-group .schemes{grid-template-columns:1fr}.calcfoot{flex-wrap:wrap}.calcfoot .btn{flex:1;min-width:115px}}

/* AG v5: discreet, code-controlled discounts, no derived-price labels */
.discount-panel{margin-top:16px;padding:14px 16px;border:1px solid #eadfc9;border-radius:10px;background:#fbf8f0}
.discount-label{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.discount-label b{font-size:11px;color:#785c33}.discount-label small{font-size:10px;color:#958367}
.discount-actions{display:flex;gap:7px;margin-top:11px;flex-wrap:wrap}.discount-actions input{border:1px solid #dfd2b8;border-radius:8px;padding:8px 11px;min-height:39px;max-width:185px;width:100%;font:inherit;font-size:12px}.discount-actions button{padding:9px 13px}.discount-actions button[hidden]{display:none}.discount-error{font-size:11px;color:#aa4434;margin-top:5px}.discount-error:empty{display:none}
.cover img{display:block;object-position:center 60%}.project:hover .cover img{transform:scale(1.045)}.cover img{transition:transform .25s}
@media(max-width:650px){.discount-actions input{flex:1;min-width:140px}}

/* ATAMŪRA supplied brand mark — left desktop sidebar and mobile header */
.brand-logo{display:block;color:white;text-decoration:none;width:100%;max-width:185px;line-height:1}
.brand-logo img{display:block;width:100%;height:auto;object-fit:contain;object-position:left center}
.brand-logo small{display:block;margin-top:10px;color:#c3d4ca;font-size:9px;font-weight:700;letter-spacing:.15em;line-height:1.5}
.topbar-heading{display:flex;align-items:center;gap:12px;min-width:0}
.mobile-brand{display:none;width:127px;height:auto;max-height:34px;object-fit:contain}
.login-logo{display:inline-flex;align-items:center;justify-content:flex-start;background:var(--g);border-radius:10px;padding:12px 14px;max-width:100%}
.login-logo img{display:block;width:200px;max-width:100%;height:auto}
@media(max-width:900px){.mobile-brand{display:block}.topbar-heading>span{display:none}.topbar{gap:12px}.topbar .badge{flex-shrink:0}}
@media(max-width:430px){.mobile-brand{width:113px}.topbar{padding:0 14px}}


/* Calculation cards — ATAMŪRA brand presentation */
:root{--bg:#f7f6f2;--ink:#242a24;--muted:#777d73;--line:#e5e1d8;--gold:#ac8749;--gold-pale:#f5edda}
body{background:var(--bg);color:var(--ink);font-family:Arial,'Helvetica Neue',sans-serif;font-size:14px}
.wrap{max-width:1510px;padding:32px 32px 65px}
.rowhead h1{font-size:31px;letter-spacing:-.035em}
.rowhead p{font-size:14px;color:#737970}
.hero{min-height:170px;margin-top:22px}
.hero-text h2{font-size:24px}
.hero-text p{font-size:12px}
.secthead{margin:30px 0 14px}
.secthead h2{font-size:21px;letter-spacing:0}
.panel{border-color:#e7e2d9;box-shadow:0 2px 10px #252b2205}
.panel-pad{padding:25px}
.panel-title h3{font-size:22px;font-weight:700;margin-bottom:5px}
.panel-title p{font-size:12px;color:#777d78}
.method-head{margin:0 0 18px}
.payment-group{border-radius:12px;border-color:#e7e2d8;margin:8px 0;background:#fff;overflow:hidden}
.payment-group .method-title{background:#fff;border-bottom:1px solid #eeeae4;color:#212820;font-size:14px;font-weight:700;letter-spacing:0;text-transform:none;padding:15px 18px;min-height:48px}
.payment-group .group-count{display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#f3f0e9;color:#9b793e;font-size:11px;font-weight:700}
.payment-group .method-chevron{font-size:16px;color:#7d837b}
.payment-group .schemes{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:1px;padding:15px 16px 17px}
.payment-group .scheme{min-height:41px;border:none;border-radius:6px;background:transparent;padding:8px 7px;display:flex;align-items:center;gap:10px;box-shadow:none}
.payment-group .scheme:hover{background:#faf9f5;border:0}
.payment-group .scheme.active{background:#f6f3eb;border:0}
.payment-group .scheme .check{width:19px;height:19px;line-height:17px;border:1px solid #becabe;border-radius:50%;display:grid;place-items:center;background:#fff;color:transparent;flex-shrink:0;font-size:11px;font-weight:800}
.payment-group .scheme.active .check{color:#fff;background:#638a56;border-color:#638a56}
.payment-group .scheme strong{font-size:13px;color:#232923;font-weight:400;line-height:1.45;white-space:normal}
.payment-group .scheme-name{flex:1}
.payment-group .scheme-ready{color:#659151;font-size:15px;font-weight:800;flex-shrink:0;margin-left:5px}
.payment-group .method-title .method-chevron{margin-left:auto}
.selected-pills{margin-top:10px}.selected-pill{font-size:11px}
.actions{margin-top:18px;padding-top:18px}.actions small{font-size:11px;color:#7e827b}
.btn{border-radius:7px;font-size:13px;font-weight:600;padding:12px 16px;background:#2b302b;color:white}
.btn:hover{background:#404740}
.btn.alt{background:#fff;color:#73592f;border:1px solid #d4c3a7}
.btn.gold{background:#a58045;color:#fff}
#cards{margin-top:34px}
.calc-step-head{align-items:end;gap:14px}
.calc-step-head .subline{font-size:10px;color:#9f7e4b}
.calc-step-head h2{font-size:21px;font-weight:500}
.comparison-buttons{display:flex;gap:9px;flex-wrap:wrap}
.comparison-buttons .btn{font-size:12px}
.comparison-note{margin:8px 0 16px;font-size:12px;color:#847361}
.calc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.calc-grid.single{grid-template-columns:minmax(0,610px)}
.calc{border:1px solid #e5ddcf;border-top:2px solid #b99252;border-radius:15px;box-shadow:0 3px 16px #382c180a;overflow:hidden;background:white;min-width:0}
.calc-header{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:19px 20px 13px;background:#fff;border-bottom:1px solid #e9e2d8}
.calc-header-left{flex:1;min-width:0}
.calc-eyebrow{font-size:11px;line-height:1.4;color:#9a763e;font-weight:700;letter-spacing:.03em}
.calc-header h3{font-size:18px;color:#232923;font-weight:500;letter-spacing:0;line-height:1.4;margin:9px 0 1px}
.calc-apartment-facts{flex:0 1 45%;text-align:right;display:flex;flex-direction:column;gap:5px;color:#343a32;line-height:1.45;font-size:11px}
.calc-apartment-facts b{font-size:12px;color:#78603c;font-weight:700}
.calc-apartment-facts span{color:#626960;font-size:11px}
.calc-discount-strip{padding:10px 20px 12px;border-bottom:1px solid #e9e2d8;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 14px;background:#fff}
.calc-code-row{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.calc-code-row label{font-size:11px;color:#7c6c55;white-space:nowrap}
.calc-code-row input{font-size:12px;border:1px solid #e2dbcd;background:#fff;border-radius:5px;height:32px;width:119px;padding:6px 8px}
.calc-code-row button{height:31px;background:#fff;border:1px solid #e3d9c7;border-radius:5px;font-size:11px;color:#886b3c;padding:5px 8px}
.calc-code-row button:hover{background:#f8f1e7}
.calc-code-row [hidden]{display:none}
.calc-discount-strip>small{font-size:10px;color:#967749}
.calc-discount-strip .discount-error{width:100%;font-size:11px;color:#a44b40;margin:0}
.calc-inner{padding:15px 20px 8px}
.price-top{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e6dfd4;padding:3px 0 16px;margin-bottom:3px}
.price-top>div:first-child{min-width:0}
.price-top small{display:block;font-size:12px;color:#757d74}
.price-top strong{font-size:32px;line-height:1.24;color:#242b24;letter-spacing:-.035em;font-weight:500;margin-top:5px;white-space:nowrap}
.price-caption{font-size:12px;color:#8b784f;margin-top:4px}
.discount-badge{flex:0 0 auto;min-width:130px;max-width:165px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:#f0f5eb;border:1px solid #dfe7d9;border-radius:9px;padding:12px 14px;min-height:75px}
.discount-badge small{color:#587442;font-size:11px}
.discount-badge strong{font-size:18px;font-weight:700;color:#45682f;letter-spacing:-.02em;margin-top:4px;white-space:normal;line-height:1.35}
.calc-rows{display:flex;flex-direction:column}
.calc-row{padding:9px 0;min-height:45px;border-bottom:1px solid #eae4da;display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,42%);gap:12px;align-items:center}
.calc-row label,.calc-row>span{font-size:12px;color:#30382f;font-weight:400;line-height:1.45}
.calc-row>strong{font-weight:600;color:#272c26;font-size:14px;text-align:right;overflow-wrap:anywhere}
.calc-row .edit-control{height:34px;width:100%;border:1px solid #e2d9c9;border-radius:6px;background:#faf9f6;color:#34332b;padding:0 10px;font-size:13px;text-align:right;font-weight:500;max-width:none}
.calc-row select.edit-control{text-align:left}
.calc-row .edit-control:focus{background:#fff;border-color:#b59659;outline:2px solid #d3b47655}
.calc-subheading{padding:14px 0 6px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#927244;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:9px}
.calc-subheading span{font-size:10px;color:#848a7f;text-align:right;font-weight:400;letter-spacing:0;text-transform:none}
.calc-keymetrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 5px}
.calc-keymetrics.singlemetric{grid-template-columns:1fr}
.metric{background:#f5eddd;border:1px solid #eadfc8;border-radius:7px;padding:13px;min-height:79px}
.metric small{font-size:11px;color:#786e5e;display:block;line-height:1.3}
.metric strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:700;color:#272a25;margin-top:7px;line-height:1.15;overflow-wrap:anywhere}
.calc-summary-rows .calc-row{grid-template-columns:minmax(0,1fr) minmax(130px,47%)}
.calc-condition-label{font-size:11px;color:#a58146;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-top:16px;padding-bottom:8px;border-bottom:1px solid #e6e0d4}
.calc .warn{padding:10px 0;background:transparent;border:0;border-bottom:1px solid #eae4da;color:#6e756c;font-size:11px;line-height:1.55;margin:0}
.calc .warn:empty{display:none}
.calc .warning-deposit{margin:12px 0;font-size:11px;line-height:1.5;color:#726b5e}
.calc .calc-footnotes{font-size:10px;color:#899087;line-height:1.5;margin:10px 0 7px}
.reset-inline{display:block;background:transparent;border:0;font-size:11px;color:#9b824e;padding:4px 0 8px;text-decoration:underline}
.calcfoot{display:grid;grid-template-columns:1fr 1fr;gap:9px;border:0;padding:13px 20px 19px}
.calcfoot .btn{min-height:39px;width:100%;font-size:12px;font-weight:600}
.calcfoot .pdf-btn{background:#2c302b;color:#fff}
.calcfoot .print-btn{background:#fff;border:1px solid #d7c8ac;color:#34372e}
.calc .cash-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid #e5dfd3;font-size:12px}
.calc .cash-summary strong{font-size:15px;color:#34372e}
@media(max-width:1240px){.wrap{padding:25px 22px}.calc-grid{gap:12px}.calc-inner{padding:13px 15px 8px}.calc-header{padding:15px 15px 12px}.calc-discount-strip{padding:9px 15px}.calcfoot{padding:12px 15px 17px}.price-top strong{font-size:28px}}
@media(max-width:1050px){.calc-grid{grid-template-columns:1fr}.calc-grid.single{grid-template-columns:minmax(0,610px)}.calc-grid .calc{max-width:700px}.comparison-buttons{margin-left:0}}
@media(max-width:900px){.calc-grid{grid-template-columns:1fr}.wrap{padding:20px}.payment-group .schemes{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-step-head{align-items:start}}
@media(max-width:660px){.wrap{padding:16px 12px}.rowhead h1{font-size:26px}.hero{min-height:140px}.panel-pad{padding:16px}.panel-title h3{font-size:20px}.payment-group .method-title{padding:13px 12px;font-size:13px}.payment-group .schemes{grid-template-columns:1fr;padding:9px 11px}.payment-group .scheme{min-height:42px}.calc-grid.single{grid-template-columns:minmax(0,1fr)}.calc-header{flex-direction:column;gap:8px}.calc-apartment-facts{align-items:flex-start;text-align:left}.calc-price-grid{grid-template-columns:1fr}.price-top strong{font-size:26px}.discount-badge{min-width:95px;padding:9px;max-width:115px}.discount-badge strong{font-size:14px}.calc-row{grid-template-columns:minmax(0,1fr) minmax(110px,45%);gap:6px}.calc-row label{font-size:11px}.metric strong{font-size:21px}.calc-step-head{flex-direction:column;align-items:stretch}.comparison-buttons{width:100%}.comparison-buttons .btn{flex:1;min-width:150px}.calc-code-row label{width:100%}.calc-code-row input{flex:1;width:auto}.calc-discount-strip>small{font-size:10px}}

/* Compact default card with on-demand editable price and loan details */
.calc-advanced{border-bottom:1px solid #eae4da;margin:0}
.calc-advanced summary{cursor:pointer;padding:11px 2px;list-style:none;display:flex;gap:9px;align-items:center;justify-content:space-between;font-size:12px;color:#8c7348;user-select:none}
.calc-advanced summary:after{content:'⌄';font-size:16px;line-height:1;font-weight:700}
.calc-advanced[open] summary:after{content:'⌃'}
.calc-advanced summary::-webkit-details-marker{display:none}
.calc-advanced .calc-rows{padding:0 0 9px 12px;border-left:2px solid #e7d7b8}
.calc-advanced .calc-row:last-child{border-bottom:0}
.calc-metrics-detail summary{color:#847361}

/* AG v7 — read-only tariff rate and locale-aware monetary fields */
.edit-with-unit{position:relative;display:flex;width:100%;min-width:0;align-items:center}
.calc-row .edit-with-unit .edit-control{padding-right:51px;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";letter-spacing:.006em}
.edit-suffix{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#8a806d;font-size:12px;pointer-events:none;white-space:nowrap}
.calc-readonly-rate strong{color:#225542;font-size:16px;font-variant-numeric:tabular-nums}
.calc-readonly-rate label{color:#5d665c}

/* Editing feedback: no premature correction while typing a multi-digit down payment. */
.calc-row input.input-out-of-range{border-color:#c89752;background:#fffaf1}

/* UX copy: long banking constraints wrap below headings at compact widths. */
.calc-subheading{align-items:flex-start;flex-wrap:wrap}.calc-subheading span{max-width:100%;line-height:1.5}.calc-limit-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}.discount-error{line-height:1.45}
