:root{--navy:#16324a;--ink:#1e293b;--muted:#64748b;--line:#dbe3ea;--soft:#f5f7f9;--red:#d8232a;--blue:#0f57b7;--white:#fff;--green:#16865c;--shadow:0 18px 55px rgba(15,23,42,.10)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#f3f5f7}.admin-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:22px;position:sticky;top:0;height:100vh}.sidebar img{width:185px;max-height:70px}.sidebar nav{display:grid;gap:8px;margin-top:30px}.sidebar a{padding:12px 14px;border-radius:12px;color:var(--ink);text-decoration:none;font-weight:600}.sidebar a:hover,.sidebar a.active{background:#eef3f6;color:var(--navy)}.admin-main{padding:28px}.toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:20px}.toolbar h1{margin:0;font-size:28px}.btn{border:0;border-radius:12px;padding:11px 16px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;gap:8px;align-items:center}.btn.primary{background:var(--navy);color:#fff}.btn.red{background:var(--red);color:#fff}.btn.light{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.green{background:var(--green);color:#fff}.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.05);padding:20px}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.project-card .thumb{height:170px;border-radius:14px;background:#e7edf2 center/cover no-repeat}.project-card h3{margin:14px 0 4px}.meta{color:var(--muted);font-size:13px}.status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf2f7;font-size:12px;font-weight:800}.status.published{background:#e7f7ef;color:#13724e}.status.paused{background:#fff3df;color:#9a5b00}.form-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}.field{grid-column:span 4;display:flex;flex-direction:column;gap:6px}.field.w6{grid-column:span 6}.field.w8{grid-column:span 8}.field.w12{grid-column:span 12}.field label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#65758b;font-weight:800}.field input,.field select,.field textarea{border:1px solid #cfd8e3;border-radius:11px;padding:11px 12px;background:#fff;font:inherit}.field textarea{min-height:92px;resize:vertical}.section{margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-title h2{font-size:19px;margin:0}.upload-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.upload-box{border:1px dashed #aebbc9;border-radius:15px;padding:12px;background:#fafcfd;min-height:140px}.upload-box .preview{height:85px;border-radius:10px;background:#eef3f6 center/cover no-repeat;margin-bottom:8px}.custom-table{width:100%;border-collapse:separate;border-spacing:0 8px}.custom-table th{font-size:11px;text-transform:uppercase;color:#6b7a8c;text-align:left;padding:0 8px}.custom-table td{background:#f8fafc;padding:8px}.custom-table input,.custom-table select{width:100%;border:1px solid #d6dee8;padding:8px;border-radius:8px}.toast{position:fixed;right:24px;bottom:24px;padding:12px 16px;background:#15283a;color:#fff;border-radius:12px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.review-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.7fr);gap:18px}.preview-frame{width:100%;height:72vh;border:1px solid var(--line);border-radius:16px;background:#fff}.qr-box{display:grid;grid-template-columns:1fr 1fr;gap:12px}.qr-card{border:1px solid var(--line);border-radius:14px;padding:14px;text-align:center}.qr-render{width:160px;height:160px;margin:10px auto;background:#fff}.actions-row{display:flex;gap:10px;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;place-items:center;z-index:50}.modal-backdrop.open{display:grid}.modal-panel{width:min(520px,92vw);background:#fff;border-radius:18px;padding:22px}.modal-panel h3{margin-top:0}@media(max-width:900px){.admin-shell{grid-template-columns:1fr}.sidebar{height:auto;position:relative}.review-grid{grid-template-columns:1fr}.field,.field.w6,.field.w8{grid-column:span 12}}

/* --- Editor Pro / drafts / maps / costing --- */
.pending-block{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.pending-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#5d6f82;margin-bottom:10px}
.pending-count{min-width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:#eef3f6;color:var(--navy);font-size:11px}
.pending-list{display:grid;gap:7px}.pending-item{display:grid!important;gap:3px;padding:10px 11px!important;border:1px solid transparent;border-radius:12px!important;background:#f8fafc!important;color:var(--ink)!important}.pending-item:hover,.pending-item.current{border-color:#cdd9e4;background:#eef4f7!important}.pending-item strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pending-item small{font-size:10px;color:#758599;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pending-item em{font-style:normal;font-size:9px;color:#94a3b8}.pending-empty{font-size:11px;color:#94a3b8;padding:8px 2px}
.toolbar .meta[data-state="ok"]:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#24a36a;margin-right:7px}.toolbar .meta[data-state="error"]:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#d8232a;margin-right:7px}
.input-action{display:flex;gap:8px}.input-action input{flex:1;min-width:0}.icon-btn{border:1px solid #cfd8e3;background:#f7fafc;color:var(--navy);border-radius:11px;padding:0 13px;font-weight:800;white-space:nowrap;cursor:pointer}.icon-btn:hover{background:#edf3f6}.coord-inline{font-size:11px;color:#738295;margin-top:3px}
.rich-editor-wrap{border:1px solid #cfd8e3;border-radius:13px;background:#fff;overflow:hidden}.rich-toolbar{display:flex;align-items:center;gap:4px;padding:7px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.rich-toolbar button{width:34px;height:32px;border:0;border-radius:8px;background:transparent;color:#40556b;cursor:pointer}.rich-toolbar button:hover{background:#e8eef3;color:#102f47}.rich-toolbar span{width:1px;height:20px;background:#d8e0e7;margin:0 3px}.rich-editor{min-height:135px;padding:14px 15px;outline:none;line-height:1.55}.rich-editor:empty:before{content:attr(data-placeholder);color:#9aa8b6}.rich-editor ul,.rich-editor ol{margin:.45em 0;padding-left:1.4em}
.cost-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.choice-card{position:relative;border:1px solid var(--line);border-radius:15px;padding:14px;display:flex;gap:12px;align-items:center;cursor:pointer;background:#fbfcfd}.choice-card:has(input:checked){border-color:#7f98aa;background:#f1f5f7;box-shadow:inset 0 0 0 1px #a9bbc7}.choice-card input{position:absolute;opacity:0}.choice-icon{width:42px;height:42px;border-radius:12px;background:#eef3f6;display:grid;place-items:center;color:var(--navy);font-size:18px;flex:0 0 auto}.choice-card b{display:block;color:#1c3347}.choice-card small{display:block;color:#718196;margin-top:3px;line-height:1.3}.cost-panel{padding-top:4px}.cost-panel.hidden{display:none}.field.standalone{max-width:430px}.money-input,.unit-input{display:flex;align-items:center;border:1px solid #cfd8e3;border-radius:11px;background:#fff;overflow:hidden}.money-input>span,.unit-input>span{padding:0 10px;color:#718196;font-weight:800}.money-input input,.unit-input input{border:0!important;border-radius:0!important;min-width:0;width:100%;outline:none}.money-input.compact{min-width:150px}.cost-topline{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:14px}.chain-toggle{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;padding:10px 12px;cursor:pointer;background:#fafcfd}.chain-toggle input{display:none}.chain-toggle .chain-icon{width:35px;height:35px;border-radius:10px;background:#edf2f5;display:grid;place-items:center;color:#8191a0}.chain-toggle:has(input:checked){border-color:#8da4b4;background:#f1f5f7}.chain-toggle:has(input:checked) .chain-icon{background:var(--navy);color:white}.chain-toggle b{display:block;font-size:12px}.chain-toggle small{display:block;color:#7a8999;font-size:10px}.global-cost{display:none!important;min-width:235px}.global-cost.active{display:flex!important}.floor-table-wrap{overflow:auto;border:1px solid #e0e6ec;border-radius:14px}.floor-cost-table{width:100%;border-collapse:collapse}.floor-cost-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#748498;background:#f6f8fa;padding:10px 12px}.floor-cost-table td{padding:9px 12px;border-top:1px solid #edf1f4;vertical-align:middle}.floor-cost-table select,.floor-cost-table input{border:1px solid #d5dde5;border-radius:9px;padding:8px 9px;background:#fff;font:inherit}.floor-cost-table select{min-width:92px}.table-delete{width:34px;height:34px;border:0;border-radius:9px;background:#fff0f0;color:#b4232a;cursor:pointer}.table-delete:hover{background:#ffe4e6}.cost-summary{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}.cost-summary>div{min-width:160px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#fafcfd}.cost-summary small{display:block;color:#7b8998;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.cost-summary strong{display:block;margin-top:3px;color:var(--navy);font-size:17px}.cost-summary .emphasis{background:#eef3f6;border-color:#cbd8e2}.cost-summary .emphasis strong{font-size:20px}
.modal-map{width:min(1120px,94vw)!important;max-height:92vh;overflow:auto}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.modal-head h3{margin:3px 0 12px}.modal-x{border:0;background:#f0f3f5;border-radius:10px;width:36px;height:36px;font-size:23px;cursor:pointer;color:#617286}.map-search-row{margin-bottom:12px}.search-box{display:flex;align-items:center;border:1px solid #ccd6df;border-radius:13px;background:#fff;overflow:hidden}.search-box i{padding-left:13px;color:#7c8b9b}.search-box input{flex:1;border:0;outline:none;padding:12px;font:inherit}.search-box button{align-self:stretch;border:0;background:var(--navy);color:#fff;padding:0 18px;font-weight:800;cursor:pointer}.map-modal-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.65fr);gap:14px}.location-map{height:540px;border-radius:15px;border:1px solid #d9e1e8;background:#edf2f5}.map-help{margin:8px 2px 0}.map-modal-grid aside{display:flex;flex-direction:column;min-height:0}.map-modal-grid aside h4{margin:0 0 8px}.map-results{display:grid;gap:6px;max-height:330px;overflow:auto;padding-right:3px}.map-result{border:1px solid #e0e6ec;border-radius:11px;background:#fff;padding:10px;text-align:left;display:flex;gap:9px;cursor:pointer;color:var(--ink)}.map-result:hover{border-color:#aebfcb;background:#f7fafb}.map-result>i{margin-top:3px;color:var(--red)}.map-result b{display:block;font-size:12px}.map-result small{display:block;font-size:10px;color:#788899;margin-top:2px;line-height:1.25}.map-result-empty{padding:16px;border:1px dashed #d8e0e8;border-radius:11px;color:#8694a3;font-size:12px}.selected-location{margin-top:auto;border-top:1px solid #e1e6eb;padding-top:12px;display:grid;gap:4px}.selected-location small{color:#8795a4}.selected-location strong{font-size:12px;line-height:1.35}.selected-location span{font-size:11px;color:#617286}.btn.full{justify-content:center;width:100%;margin-top:12px}.modal-actions{margin-top:18px}
@media(max-width:1050px){.map-modal-grid{grid-template-columns:1fr}.location-map{height:410px}.selected-location{margin-top:12px}.cost-mode-grid{grid-template-columns:1fr}}
@media(max-width:760px){.input-action{flex-direction:column}.icon-btn{padding:11px}.cost-summary{justify-content:stretch}.cost-summary>div{flex:1}.location-map{height:340px}}
