:root{
  --p0-teal:#4b6e73;--p0-teal-deep:#37545a;--p0-teal-soft:#e7efef;
  --p0-gold:#d7b987;--p0-cream:#fdf6f4;--p0-ink:#33474b;--p0-muted:#667b7f;--p0-line:#e4d9d1;
  --p0-good:#267a62;--p0-good-soft:#e7f5ef;--p0-bad:#a64747;--p0-bad-soft:#faecec;
  --p0-warn:#8a6326;--p0-warn-soft:#f8f0df;--p0-surface:#fff;--p0-focus:rgba(75,110,115,.2);
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--p0-focus);outline-offset:2px}
button[disabled],button[aria-disabled="true"]{cursor:not-allowed}
.phase0-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.phase0-main{width:100%;max-width:1540px;margin:0 auto;padding:16px 28px 28px;color:var(--p0-ink)}
.phase0-page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;margin-bottom:8px}
.phase0-page-heading{min-width:0}.phase0-page-heading h1{margin:0;color:var(--p0-teal-deep);font-size:26px;line-height:1.15;letter-spacing:-.025em}.phase0-page-heading p{margin:5px 0 0;color:var(--p0-muted);font-size:12px;line-height:1.4}
.phase0-page-actions{display:flex;flex:0 0 auto;align-items:center;gap:9px}.phase0-competitive-action{display:grid;gap:3px;justify-items:start}
.phase0-btn{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:1px solid var(--p0-teal);border-radius:10px;background:#fff;color:var(--p0-teal-deep);font-size:12px;font-weight:850;line-height:1.2;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.phase0-btn:hover{background:var(--p0-teal-soft)}.phase0-btn.primary{background:var(--p0-teal);color:#fff}.phase0-btn.primary:hover{background:var(--p0-teal-deep)}.phase0-btn.danger{border-color:#d9a9a9;color:#8f3838}.phase0-btn.danger:hover{background:var(--p0-bad-soft)}.phase0-btn.small{min-height:38px;padding:8px 11px;font-size:11px}.phase0-btn[disabled],.phase0-btn[aria-disabled="true"]{opacity:.46;box-shadow:none}
.phase0-sync-strip{min-height:17px;color:var(--p0-muted)}
.phase0-sync-summary{display:inline-flex;min-height:20px;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:var(--p0-muted);font-size:9.5px;font-weight:750;text-align:left}.phase0-sync-summary:hover{color:var(--p0-teal-deep)}
.phase0-sync-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#9aa9ab}.phase0-sync-dot.good{background:var(--p0-good)}.phase0-sync-dot.warn{background:var(--p0-warn)}.phase0-sync-dot.bad{background:var(--p0-bad)}

.phase0-kpis{display:flex;min-height:34px;align-items:center;gap:10px;margin-bottom:10px;padding:6px 12px;border:1px solid var(--p0-line);border-radius:10px;background:rgba(255,255,255,.74)}
.phase0-kpi{display:inline-flex;min-height:26px;align-items:baseline;gap:4px;padding:3px 5px;border:0;border-radius:7px;background:transparent;white-space:nowrap}.phase0-kpi:hover,.phase0-kpi.active{background:var(--p0-teal-soft)}.phase0-kpi strong{color:var(--p0-teal-deep);font-size:14px;font-variant-numeric:tabular-nums}.phase0-kpi span{color:var(--p0-muted);font-size:10.5px;font-weight:700}.phase0-kpi-separator{color:#b9b0aa;font-size:14px}

.phase0-workspace{display:grid;height:clamp(520px,calc(100dvh - var(--app-shell-height,112px) - 176px),690px);grid-template-columns:minmax(560px,1.35fr) minmax(420px,1fr);gap:12px;align-items:stretch}
.phase0-list-column,.phase0-map-column{display:flex;min-width:0;min-height:0;flex-direction:column;border:1px solid var(--p0-line);border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(51,71,75,.055);overflow:hidden}
.phase0-section-head{display:flex;min-height:52px;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-bottom:1px solid var(--p0-line)}
.phase0-section-head h3{margin:0;color:var(--p0-teal-deep);font-size:15px}.phase0-section-head p{margin:3px 0 0;color:var(--p0-muted);font-size:9.5px}
.phase0-toolbar{position:relative;display:grid;flex:0 0 auto;grid-template-columns:minmax(150px,1.1fr) minmax(112px,.72fr) minmax(120px,.78fr) minmax(168px,1fr) auto;gap:7px;padding:9px 11px;border-bottom:1px solid var(--p0-line);background:#fffaf8}
.phase0-core-filters{display:contents}
.phase0-toolbar label,.phase0-field{display:grid;gap:5px;min-width:0;color:var(--p0-muted);font-size:10px;font-weight:800}.phase0-field[hidden]{display:none!important}
.phase0-toolbar input,.phase0-toolbar select,.phase0-field input,.phase0-field select,.phase0-field textarea{width:100%;min-height:40px;border:1px solid #d4dedd;border-radius:9px;background:#fff;color:var(--p0-ink);padding:8px 10px;font-size:11.5px;line-height:1.35;outline:none}
.phase0-toolbar input:focus,.phase0-toolbar select:focus,.phase0-field input:focus,.phase0-field select:focus,.phase0-field textarea:focus{border-color:var(--p0-teal);box-shadow:0 0 0 3px var(--p0-focus)}
.phase0-filter-button{min-height:40px;padding:8px 11px;border:1px solid #d4dedd;border-radius:9px;background:#fff;color:var(--p0-teal-deep);font-size:11px;font-weight:800}.phase0-filter-button:hover,.phase0-filter-button.active{background:var(--p0-teal-soft);border-color:#bdcecd}
.phase0-filter-button.has-filters{border-color:#9eb7b9;color:#31585e}
.phase0-extra-filters{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:2px}.phase0-extra-filters[hidden]{display:none}.phase0-extra-filters label{width:min(260px,100%)}
.phase0-active-filters{grid-column:1/-1;display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px;padding:3px 2px 0;color:var(--p0-muted);font-size:9px;font-weight:750}.phase0-active-filters[hidden]{display:none}.phase0-active-filters>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phase0-active-filters .phase0-link-button{min-height:28px;padding-block:2px}

.phase0-object-list{display:grid;min-height:0;flex:1;align-content:start;gap:7px;padding:9px;background:#fffaf8;overflow-y:auto;overscroll-behavior:contain}
.phase0-card{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) minmax(150px,190px) minmax(118px,150px);gap:11px;align-items:center;padding:11px 12px;border:1px solid var(--p0-line);border-radius:11px;background:#fff;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.phase0-card:hover,.phase0-card.map-hover,.phase0-card.selected{border-color:var(--p0-teal);box-shadow:0 5px 16px rgba(51,71,75,.09)}.phase0-card.selected{background:#fbfdfd;box-shadow:inset 3px 0 0 var(--p0-teal),0 5px 16px rgba(51,71,75,.09)}
.phase0-rating{display:grid;align-content:center;justify-items:center;min-height:54px;border-right:1px solid #ece5e0;color:#7d5a24;font-variant-numeric:tabular-nums}.phase0-rating strong{font-size:20px;line-height:1}.phase0-rating span{margin-top:4px;color:#8a7658;font-size:8.5px;font-weight:800}.phase0-rating.unknown strong{color:#819093}.phase0-rating.unknown span{max-width:52px;color:#819093;text-align:center}
.phase0-card-main{min-width:0}.phase0-card-main h4{margin:0;color:var(--p0-teal-deep);font-size:14.5px;font-weight:850;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phase0-card-main p{display:flex;min-width:0;align-items:center;gap:5px;margin:4px 0 0;color:var(--p0-muted);font-size:9.5px;white-space:nowrap;overflow:hidden}.phase0-card-main p>span{flex:0 0 auto}.phase0-cluster-link{min-width:0;max-width:46%;padding:0;border:0;background:transparent;color:var(--p0-muted);font-size:inherit;font-weight:750;text-decoration:underline;text-decoration-color:#c6d2d2;text-underline-offset:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phase0-cluster-link:hover{color:var(--p0-teal-deep)}.phase0-cluster-link[disabled]{text-decoration:none;cursor:default}
.phase0-card-progress{display:inline-flex;margin-top:6px;color:var(--p0-warn);font-size:9px;font-weight:800}.phase0-card-progress.ready{color:var(--p0-good)}
.phase0-card-economy{display:grid;min-width:0;gap:3px;text-align:right;font-variant-numeric:tabular-nums}.phase0-card-economy strong{color:var(--p0-ink);font-size:11.5px}.phase0-card-economy span{color:var(--p0-muted);font-size:9.5px}.phase0-deviation.good{color:var(--p0-good)!important}.phase0-deviation.bad{color:var(--p0-bad)!important}
.phase0-card-state{display:grid;justify-items:end;gap:7px}.phase0-status{display:inline-flex;min-height:25px;align-items:center;padding:5px 8px;border-radius:999px;background:#eef3f3;color:#5e7377;font-size:9px;font-weight:850;line-height:1.2;white-space:nowrap}.phase0-status.suitable{background:var(--p0-good-soft);color:#256d58}.phase0-status.rejected{background:var(--p0-bad-soft);color:#994040}.phase0-status.working{background:var(--p0-warn-soft);color:#735321}
.phase0-next-action{max-width:150px;color:var(--p0-muted);font-size:9px;font-weight:800;line-height:1.25;text-align:right}.phase0-next-action.ready{color:var(--p0-good)}.phase0-next-action.measure{color:var(--p0-warn)}.phase0-next-action.muted{color:#8a7a73}
.phase0-rejection-note{margin-top:6px;padding-left:7px;border-left:2px solid var(--p0-bad);color:#8b4141;font-size:9px;line-height:1.35}
.phase0-link-button{display:inline-flex;min-height:38px;align-items:center;border:0;background:transparent;color:var(--p0-teal-deep);padding:7px 4px;font-size:10.5px;font-weight:850;text-decoration:underline;text-decoration-color:#a9bcbe;text-underline-offset:3px}
.phase0-empty{display:grid;place-items:center;min-height:210px;padding:28px;text-align:center;border:1px dashed #d6dfde;border-radius:11px;background:#fff;color:var(--p0-muted)}.phase0-empty strong{display:block;color:var(--p0-teal-deep);font-size:15px}.phase0-empty p{max-width:410px;margin:7px 0 15px;font-size:10.5px;line-height:1.5}

.phase0-map-stage{position:relative;min-height:0;flex:1;background:#eaf0f0}.phase0-map{position:absolute;inset:0}.phase0-map-loading{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;background:#edf3f3;color:var(--p0-teal-deep);text-align:center}.phase0-map-loading[hidden]{display:none}.phase0-map-loading strong{font-size:15px}.phase0-map-loading span{margin-top:7px;color:var(--p0-muted);font-size:11px}
.phase0-map-message{position:absolute;left:10px;right:10px;bottom:10px;z-index:4;max-width:450px;padding:8px 10px;border:1px solid var(--p0-line);border-radius:9px;background:rgba(255,255,255,.96);box-shadow:0 4px 13px rgba(51,71,75,.1);color:var(--p0-muted);font-size:9.5px;line-height:1.4}.phase0-balloon{display:grid;gap:5px;min-width:220px;font-size:11px}.phase0-balloon strong{color:var(--p0-teal-deep);font-size:13px}.phase0-balloon span{color:var(--p0-muted)}.phase0-balloon a{display:flex;min-height:38px;align-items:center;justify-content:center;margin-top:4px;border-radius:8px;background:var(--p0-teal);color:#fff!important;font-weight:800;text-decoration:none}
.phase0-mobile-views,.phase0-mobile-add{display:none}

.phase0-overlay{position:fixed;inset:0;z-index:2147483200;display:flex;justify-content:flex-end;background:rgba(31,43,46,.58)}.phase0-overlay[hidden]{display:none}.phase0-drawer{width:min(760px,100vw);height:100dvh;overflow:auto;background:#fff;box-shadow:-18px 0 44px rgba(25,39,42,.24);animation:p0-drawer-in .18s ease-out}.phase0-competitive-drawer{width:min(1040px,100vw)}
@keyframes p0-drawer-in{from{opacity:.6;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
.phase0-drawer-head{position:sticky;top:0;z-index:5;display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:14px;padding:11px 16px;border-bottom:1px solid var(--p0-line);background:rgba(255,255,255,.98)}.phase0-drawer-head h2{margin:0;color:var(--p0-teal-deep);font-size:17px}.phase0-drawer-head p{margin:3px 0 0;color:var(--p0-muted);font-size:9.5px}.phase0-close{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border:1px solid #d6dfde;border-radius:10px;background:#fff;color:var(--p0-teal-deep);font-size:24px;line-height:1}.phase0-close:hover{background:var(--p0-teal-soft)}
.phase0-drawer-body{display:grid;gap:9px;padding:12px 16px 94px}.phase0-form-alert{display:none;padding:10px 11px;border:1px solid #e2b9b9;border-radius:9px;background:var(--p0-bad-soft);color:#873d3d;font-size:10.5px;line-height:1.45}.phase0-form-alert.show{display:block}
.phase0-import-box{display:grid;gap:8px;padding:11px 12px;border:1px solid #d2dfde;border-radius:11px;background:#f7fafa}.phase0-import-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end}.phase0-import-state{min-height:18px;color:var(--p0-muted);font-size:9.5px;line-height:1.4}.phase0-import-state.success{color:var(--p0-good)}.phase0-import-state.error{color:var(--p0-bad)}.phase0-import-state.partial{color:var(--p0-warn)}
.phase0-form-section{padding:12px;border:1px solid var(--p0-line);border-radius:11px;background:#fff}.phase0-form-section h3{margin:0 0 10px;color:var(--p0-teal-deep);font-size:12.5px}.phase0-form-section-note{margin:-5px 0 10px;color:var(--p0-muted);font-size:9.5px;line-height:1.4}.phase0-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}.phase0-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.phase0-form-grid .full{grid-column:1/-1}.phase0-field textarea{min-height:76px;resize:vertical}.phase0-field .phase0-help{margin:0;color:#7a898c;font-size:9px;font-weight:500;line-height:1.35}.phase0-field-error{display:none;color:var(--p0-bad);font-size:10px;font-weight:750}.phase0-field.invalid .phase0-field-error{display:block}.phase0-field.invalid input,.phase0-field.invalid select,.phase0-field.invalid textarea{border-color:#c66d6d}
.phase0-object-summary{display:flex;align-items:center;gap:8px;margin:-2px 0 10px;padding:7px 9px;border-radius:8px;background:#f2f6f6;color:var(--p0-muted);font-size:9.5px}.phase0-object-summary span+span{padding-left:8px;border-left:1px solid #d7e2e1}.phase0-object-summary strong{color:var(--p0-teal-deep)}
.phase0-computed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.phase0-computed{padding:9px;border-radius:9px;background:#f2f6f6}.phase0-computed span{display:block;color:var(--p0-muted);font-size:8.5px}.phase0-computed strong{display:block;margin-top:4px;color:var(--p0-teal-deep);font-size:12px;font-variant-numeric:tabular-nums}
.phase0-criteria{display:grid;gap:6px}.phase0-criterion{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:9px;align-items:center;padding:7px 9px;border:1px solid #dde5e4;border-radius:9px}.phase0-criterion strong{display:block;color:var(--p0-ink);font-size:10.5px}.phase0-criterion span{display:block;margin-top:2px;color:var(--p0-muted);font-size:8.5px;line-height:1.3}.phase0-criterion select{width:100%;min-height:38px;border:1px solid #cfdad9;border-radius:8px;background:#fff;padding:7px 9px;color:var(--p0-ink);font-size:11px}
.phase0-inline-check{display:flex;min-height:40px;align-items:center;gap:8px;padding:8px 9px;border:1px solid #d6dfde;border-radius:9px;background:#fff;color:var(--p0-ink);font-size:11px;font-weight:800}.phase0-inline-check input{width:18px;height:18px;margin:0;accent-color:var(--p0-teal)}
.phase0-layout-box{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px dashed #c6d5d4;border-radius:9px;background:#f8fbfb}.phase0-layout-copy{min-width:0}.phase0-layout-copy strong{display:block;color:var(--p0-teal-deep);font-size:10.5px}.phase0-layout-copy span{display:block;margin-top:3px;color:var(--p0-muted);font-size:9px;overflow-wrap:anywhere}.phase0-layout-actions{display:flex;flex:0 0 auto;gap:6px;flex-wrap:wrap}.phase0-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.phase0-requirements{padding:11px 12px;border:1px solid #e4d4b4;border-radius:10px;background:var(--p0-warn-soft);color:#735321;font-size:10px;line-height:1.45}.phase0-requirements.ready{border-color:#bddccb;background:var(--p0-good-soft);color:#23634f}.phase0-readiness-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.phase0-readiness-head strong{font-size:11px}.phase0-readiness-head span{font-size:9px;font-weight:800}.phase0-requirements ul{display:grid;gap:3px;margin:7px 0 0;padding:0;list-style:none}.phase0-requirements li::before{margin-right:6px;content:"○"}.phase0-requirements p{margin:7px 0 0}.phase0-readiness-save{margin-top:8px;padding-top:7px;border-top:1px solid currentColor;font-weight:800}
.phase0-readiness-missing{margin-top:8px}.phase0-readiness-missing>strong{display:block;margin-bottom:3px}
.phase0-drawer-actions{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 16px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--p0-line);background:rgba(255,255,255,.98)}.phase0-drawer-actions-main,.phase0-drawer-actions-secondary{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.phase0-duplicate{display:none;padding:11px;border:1px solid #e3c88e;border-radius:10px;background:#fff7e7;color:#6f5221;font-size:10px;line-height:1.45}.phase0-duplicate.show{display:block}.phase0-duplicate-list{display:grid;gap:7px;margin-top:8px}.phase0-duplicate-item{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px;border-radius:8px;background:#fff}
.phase0-competitive-status{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px;border:1px solid #d8e3e2;border-radius:11px;background:#f7fafa}.phase0-competitive-status strong{display:block;color:var(--p0-teal-deep);font-size:12px}.phase0-competitive-status p{margin:4px 0 0;color:var(--p0-muted);font-size:10px;line-height:1.45}.phase0-competitive-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) auto;gap:9px;align-items:end}.phase0-competitive-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--p0-line);border-radius:11px;overflow:hidden}.phase0-competitive-table th,.phase0-competitive-table td{padding:9px 10px;border-bottom:1px solid #ede5df;text-align:left;font-size:10.5px}.phase0-competitive-table th{background:#f4f7f7;color:#607579;font-size:9px;text-transform:uppercase}.phase0-competitive-table tr:last-child td{border-bottom:0}.phase0-competitive-table tr.highlight td{background:#fff7e8}.phase0-competitive-extra{display:flex;flex-wrap:wrap;gap:5px}.phase0-competitive-extra span{padding:4px 6px;border-radius:7px;background:#edf3f3;color:#62777b;font-size:8.5px}
.phase0-dialog-layer{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:16px;background:rgba(23,34,37,.66)}.phase0-dialog{width:min(500px,100%);padding:17px;border-radius:14px;background:#fff;box-shadow:0 22px 58px rgba(22,33,35,.3)}.phase0-dialog h3{margin:0;color:var(--p0-teal-deep);font-size:17px}.phase0-dialog p{margin:7px 0 13px;color:var(--p0-muted);font-size:11px;line-height:1.5}.phase0-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}
.phase0-toast{position:fixed;left:50%;bottom:24px;z-index:2147483700;max-width:min(520px,calc(100vw - 24px));transform:translate(-50%,18px);padding:11px 15px;border-radius:10px;background:#30484d;color:#fff;box-shadow:0 12px 32px rgba(31,46,49,.24);font-size:11px;line-height:1.4;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}.phase0-toast.show{opacity:1;transform:translate(-50%,0)}
.phase0-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:p0-spin .7s linear infinite}@keyframes p0-spin{to{transform:rotate(360deg)}}body.phase0-modal-open{overflow:hidden}

@media(max-width:1080px){.phase0-main{padding-inline:20px}.phase0-workspace{grid-template-columns:minmax(500px,1.2fr) minmax(350px,.8fr)}.phase0-toolbar{grid-template-columns:minmax(150px,1fr) minmax(110px,.7fr) minmax(120px,.8fr) minmax(150px,1fr) auto}.phase0-card{grid-template-columns:58px minmax(0,1fr) 150px 124px}}
@media(max-width:900px){
  .phase0-main{padding:14px 14px 74px}.phase0-page-toolbar{align-items:flex-start}.phase0-workspace{display:block;height:auto}.phase0-mobile-views{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0;padding:4px;border:1px solid #d7e2e1;border-radius:10px;background:#eef4f4}.phase0-mobile-views button{min-height:42px;border:0;border-radius:8px;background:transparent;color:var(--p0-muted);font-size:11px;font-weight:850}.phase0-mobile-views button.active{background:#fff;color:var(--p0-teal-deep);box-shadow:0 2px 8px rgba(51,71,75,.07)}.phase0-workspace[data-mobile-view="list"] .phase0-map-column{display:none}.phase0-workspace[data-mobile-view="map"] .phase0-list-column{display:none}.phase0-list-column,.phase0-map-column{height:auto;min-height:520px}.phase0-object-list{overflow:visible}.phase0-map-stage{min-height:520px}.phase0-mobile-add{position:fixed;right:13px;bottom:calc(13px + env(safe-area-inset-bottom));z-index:2147482000;display:flex;min-height:48px;align-items:center;justify-content:center;gap:5px;padding:11px 15px;border:0;border-radius:13px;background:var(--p0-teal);color:#fff;box-shadow:0 11px 25px rgba(50,76,81,.25);font-size:12px;font-weight:900}
}
@media(max-width:650px){
  .phase0-main{padding-inline:10px}.phase0-page-toolbar{min-height:66px}.phase0-page-heading h1{font-size:22px}.phase0-page-heading p{font-size:10.5px}.phase0-page-actions{align-items:flex-end}.phase0-page-actions #phase0-add{display:none}.phase0-competitive-action{justify-items:end}.phase0-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;min-height:44px;padding:5px 2px;overflow:hidden}.phase0-kpi-separator{display:none}.phase0-kpi{display:grid;min-width:0;min-height:34px;justify-items:center;gap:0;padding:2px 3px;border-right:1px solid #ded7d2;border-radius:0;text-align:center;white-space:normal}.phase0-kpi strong{font-size:13px}.phase0-kpi span{font-size:8px;line-height:1.15}.phase0-kpi:last-child{border-right:0}.phase0-toolbar{grid-template-columns:minmax(0,1fr) auto}.phase0-search{grid-column:1}.phase0-filter-button{grid-column:2;grid-row:1}.phase0-core-filters{display:none;grid-column:1/-1;grid-template-columns:1fr 1fr;gap:7px}.phase0-toolbar.filters-open .phase0-core-filters{display:grid}.phase0-core-filters label:last-child{grid-column:1/-1}.phase0-extra-filters{grid-column:1/-1;align-items:stretch;flex-direction:column}.phase0-extra-filters label{width:100%}.phase0-active-filters{grid-column:1/-1}.phase0-toolbar input,.phase0-toolbar select,.phase0-field input,.phase0-field select,.phase0-field textarea{font-size:16px}.phase0-list-column,.phase0-map-column{min-height:calc(100dvh - var(--app-shell-height,108px) - 178px)}.phase0-card{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:10px}.phase0-rating{grid-row:1/3;min-height:62px}.phase0-rating strong{font-size:18px}.phase0-card-economy{grid-column:2;grid-template-columns:1fr 1fr;gap:3px 8px;text-align:left}.phase0-card-economy .phase0-deviation{grid-column:1/-1}.phase0-card-state{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding-top:7px;border-top:1px solid #eee7e2}.phase0-next-action{max-width:58%;text-align:right}.phase0-card-main p{flex-wrap:wrap;white-space:normal}.phase0-cluster-link{max-width:100%}.phase0-drawer{width:100vw}.phase0-drawer-head{min-height:64px;padding:10px 11px}.phase0-drawer-head h2{font-size:16px}.phase0-drawer-body{padding:10px 10px 94px}.phase0-form-section{padding:11px}.phase0-form-grid,.phase0-form-grid.three{grid-template-columns:1fr}.phase0-form-grid .full{grid-column:auto}.phase0-computed-grid{grid-template-columns:1fr}.phase0-import-row{grid-template-columns:1fr}.phase0-import-row .phase0-btn{width:100%}.phase0-criterion{grid-template-columns:1fr}.phase0-layout-box{align-items:flex-start;flex-direction:column}.phase0-layout-actions{width:100%}.phase0-layout-actions .phase0-btn{flex:1}.phase0-readiness-head{align-items:flex-start;flex-direction:column;gap:3px}.phase0-drawer-actions{align-items:stretch;flex-direction:column-reverse;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.phase0-drawer-actions-main,.phase0-drawer-actions-secondary{display:grid;grid-template-columns:1fr 1fr;width:100%}.phase0-drawer-actions-main .phase0-btn,.phase0-drawer-actions-secondary .phase0-btn{width:100%}.phase0-competitive-status{align-items:stretch;flex-direction:column}.phase0-competitive-toolbar{grid-template-columns:1fr}.phase0-competitive-table,.phase0-competitive-table tbody,.phase0-competitive-table tr,.phase0-competitive-table td{display:block}.phase0-competitive-table thead{display:none}.phase0-competitive-table{border:0}.phase0-competitive-table tr{margin-bottom:8px;border:1px solid var(--p0-line);border-radius:10px;background:#fff;overflow:hidden}.phase0-competitive-table td{display:grid;grid-template-columns:42% 1fr;gap:8px;padding:8px 10px}.phase0-competitive-table td::before{content:attr(data-label);color:var(--p0-muted);font-size:8.5px;font-weight:850;text-transform:uppercase}.phase0-toast{bottom:76px}.phase0-dialog{padding:15px}.phase0-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.phase0-dialog-actions .phase0-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.phase0-drawer,.phase0-spinner,.phase0-toast{animation:none!important;transition:none!important}}

/* ===== v52 desktop visual rebuild: larger, table-first workspace ===== */
@media(min-width:901px){
  .phase0-main{max-width:1600px;padding:28px 36px 34px}
  .phase0-page-toolbar{min-height:86px;margin-bottom:18px;align-items:flex-start}
  .phase0-title-line{display:flex;align-items:baseline;gap:16px;min-width:0}
  .phase0-page-heading h1{font-size:34px;line-height:1.08;letter-spacing:-.035em}
  .phase0-title-count{color:#6f7f82;font-size:18px;font-weight:750}
  .phase0-page-heading p{margin-top:8px;font-size:14px}
  .phase0-page-actions{gap:14px;padding-top:2px}
  .phase0-btn{min-height:48px;padding:12px 18px;border-radius:11px;font-size:14px}
  .phase0-sync-summary{font-size:11px}

  .phase0-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;min-height:102px;margin:0 0 18px;padding:0;border-radius:14px;background:#fff;overflow:hidden}
  .phase0-kpi{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:10px;min-height:100px;padding:15px 18px;border-radius:0;border-right:1px solid #eee6e0;text-align:left;white-space:normal}
  .phase0-kpi:last-child{border-right:0}
  .phase0-kpi:hover,.phase0-kpi.active{background:#f7fbfb}
  .phase0-kpi-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#edf6f5;color:#0e7f82;font-size:24px;font-weight:800}
  .phase0-kpi-icon.working{background:#fff3e2;color:#e08c15}.phase0-kpi-icon.suitable{background:#eef8e8;color:#5b9e36}.phase0-kpi-icon.measuring{background:#eef4ff;color:#5b84d6}.phase0-kpi-icon.rejected{background:#fff0f0;color:#d85858}.phase0-kpi-icon.action{background:#f4efff;color:#7449b3}
  .phase0-kpi-copy{display:grid;align-content:center;gap:2px}.phase0-kpi-label{color:#5f696c!important;font-size:12px!important;font-weight:800!important}.phase0-kpi strong{order:2;font-size:27px;line-height:1;color:#2d3c40}.phase0-kpi-show{order:3;color:#0b7b7f!important;font-size:10px!important;font-weight:800!important;margin-top:4px}

  .phase0-workspace{height:clamp(620px,calc(100dvh - var(--app-shell-height,112px) - 270px),760px);grid-template-columns:minmax(720px,1.22fr) minmax(520px,1fr);gap:18px}
  .phase0-list-column,.phase0-map-column{border-radius:15px;box-shadow:0 7px 24px rgba(51,71,75,.06)}
  .phase0-list-column>.phase0-section-head,.phase0-map-column>.phase0-section-head{display:none}
  .phase0-toolbar{grid-template-columns:minmax(240px,1.3fr) minmax(145px,.78fr) minmax(150px,.78fr) minmax(190px,.94fr) auto;gap:10px;padding:14px 14px 12px;background:#fff}
  .phase0-toolbar input,.phase0-toolbar select{min-height:46px;border-radius:10px;padding:10px 12px;font-size:13px}
  .phase0-filter-button{min-height:46px;padding:10px 14px;font-size:13px}
  .phase0-active-filters{padding:7px 2px 1px;font-size:11px}

  .phase0-list-table-head{display:grid;grid-template-columns:86px minmax(210px,1.55fr) 112px 112px 94px 118px 132px 26px;gap:12px;align-items:center;min-height:44px;padding:0 14px;border-bottom:1px solid #e7dfd9;background:#fbfcfc;color:#6e7b7e;font-size:10px;font-weight:900;text-transform:none}
  .phase0-object-list{gap:0;padding:0;background:#fff;overflow:auto}
  .phase0-card{display:grid;grid-template-columns:86px minmax(210px,1.55fr) 112px 112px 94px 118px 132px 26px;gap:12px;min-height:92px;align-items:center;padding:12px 14px;border:0;border-bottom:1px solid #ece5df;border-radius:0;background:#fff;box-shadow:none}
  .phase0-card:last-child{border-bottom:0}.phase0-card:hover,.phase0-card.map-hover,.phase0-card.selected{border-color:#ece5df;background:#f8fbfb;box-shadow:inset 3px 0 0 var(--p0-teal)}
  .phase0-rank-wrap{display:grid;grid-template-columns:24px 52px;align-items:center;gap:6px;min-width:0}
  .phase0-rank-medal,.phase0-rank-number{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;font-size:10px;font-weight:900}.phase0-rank-medal{background:#e5b23f;color:#fff}.phase0-rank-number{color:#7d8a8d}
  .phase0-rating{min-height:52px;border:1px solid #0b8a8c!important;border-radius:50%;justify-content:center;color:#0b777a}.phase0-rating strong{font-size:17px}.phase0-rating span{display:none}.phase0-rating.unknown{border-color:#cfd7d8!important;color:#859396}.phase0-rating.unknown strong{font-size:18px}
  .phase0-card-main h4{font-size:15px;line-height:1.25;color:#243437}.phase0-card-main p{margin-top:5px;font-size:11px}.phase0-cluster-link{max-width:45%;font-size:11px;text-decoration:none;color:#66797d}
  .phase0-listing-link{display:inline-block;margin-top:5px;color:#0b7478;font-size:10.5px;font-weight:750;text-decoration:none}.phase0-listing-link:hover{text-decoration:underline}
  .phase0-rent-cell,.phase0-sqm-cell{font-variant-numeric:tabular-nums}.phase0-rent-cell strong,.phase0-sqm-cell strong{font-size:13px;color:#26363a;white-space:nowrap}
  .phase0-cluster-compare{display:grid;gap:3px;justify-items:start}.phase0-cluster-compare .phase0-deviation{font-size:13px;font-weight:900}.phase0-cluster-compare small{font-size:10px;color:#7c8a8d}
  .phase0-card-status{display:flex;align-items:center}.phase0-status{min-height:28px;padding:6px 9px;font-size:10px}
  .phase0-card-next{display:grid;gap:5px}.phase0-card-next .phase0-next-action{max-width:none;text-align:left;color:#0d7479;font-size:11px;line-height:1.3}.phase0-card-next .phase0-next-action b{font-size:15px}.phase0-card-next small{color:#8a9799;font-size:9.5px}
  .phase0-card-more{display:grid;width:26px;height:36px;place-items:center;border:0;background:transparent;color:#64777b;font-size:21px;border-radius:8px}.phase0-card-more:hover{background:#edf3f3}
  .phase0-rejection-note{grid-column:1/-1;margin-top:7px;font-size:10px}
  .phase0-card-progress,.phase0-card-economy,.phase0-card-state{display:none!important}
  .phase0-map-stage{min-height:100%;border-radius:0}
  .phase0-map-message{font-size:10.5px}
}

@media(min-width:901px) and (max-width:1280px){
  .phase0-main{padding-inline:22px}.phase0-page-heading h1{font-size:30px}.phase0-title-count{font-size:16px}
  .phase0-kpis{grid-template-columns:repeat(3,1fr);min-height:154px}.phase0-kpi{min-height:76px}.phase0-kpi:nth-child(3){border-right:0}.phase0-kpi:nth-child(-n+3){border-bottom:1px solid #eee6e0}
  .phase0-workspace{grid-template-columns:minmax(640px,1.15fr) minmax(390px,.85fr)}
  .phase0-list-table-head,.phase0-card{grid-template-columns:76px minmax(190px,1.5fr) 100px 100px 86px 105px 118px 24px;gap:9px;padding-inline:11px}
  .phase0-toolbar{grid-template-columns:minmax(210px,1.2fr) minmax(130px,.75fr) minmax(135px,.75fr) minmax(170px,.9fr) auto}
}

@media(max-width:900px){
  .phase0-title-line{display:flex;align-items:baseline;gap:9px}.phase0-title-count{color:#748488;font-size:12px;font-weight:800}
  .phase0-list-table-head{display:none}
  .phase0-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:4px!important}
  .phase0-kpi{display:grid!important;grid-template-columns:24px 1fr!important;align-items:center!important;gap:5px!important;min-height:48px!important;border:0!important;border-radius:8px!important;padding:5px 6px!important;text-align:left!important}
  .phase0-kpi-icon{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#edf6f5;color:#0b7b7f;font-size:14px}.phase0-kpi-copy{display:grid;gap:0}.phase0-kpi-label{font-size:8px!important}.phase0-kpi strong{font-size:15px!important}.phase0-kpi-show{display:none!important}
  .phase0-card{grid-template-columns:56px minmax(0,1fr)!important;gap:9px!important;padding:11px!important;border:1px solid var(--p0-line)!important;border-radius:11px!important;margin-bottom:8px}
  .phase0-rank-wrap{display:grid;grid-template-columns:18px 40px;gap:4px;align-items:center}.phase0-rank-medal,.phase0-rank-number{width:18px;height:18px;font-size:8px}.phase0-rating{min-height:40px;border:1px solid #0b8a8c!important;border-radius:50%;justify-content:center}.phase0-rating strong{font-size:14px}.phase0-rating span{display:none}
  .phase0-card-main h4{font-size:14px}.phase0-card-main p{font-size:10px}.phase0-listing-link{font-size:10px;color:#0b7478;text-decoration:none}
  .phase0-rent-cell,.phase0-sqm-cell,.phase0-cluster-compare,.phase0-card-status,.phase0-card-next{grid-column:2;display:flex;align-items:center;gap:8px;justify-content:space-between}.phase0-rent-cell strong,.phase0-sqm-cell strong{font-size:11px}.phase0-cluster-compare small,.phase0-card-next small{font-size:9px;color:#7d8a8d}.phase0-card-next .phase0-next-action{font-size:10px;color:#0b7478}.phase0-card-more{position:absolute;right:7px;top:7px;border:0;background:transparent;color:#6f7f82;font-size:20px}
}

/* ======================================================================
   v53 — Approved visual reference for "Поиск помещений"
   Desktop is deliberately spacious, table-first and map-heavy.
   ====================================================================== */
@media(min-width:901px){
  .slogi-search-page .phase0-main{
    width:100%!important;
    max-width:1536px!important;
    margin:0 auto!important;
    padding:30px 38px 24px!important;
    background:#fbfcfc!important;
  }
  .slogi-search-page .phase0-page-toolbar{
    display:flex!important;
    min-height:76px!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:30px!important;
    margin:0 0 18px!important;
  }
  .slogi-search-page .phase0-title-line{display:flex!important;align-items:baseline!important;gap:16px!important}
  .slogi-search-page .phase0-page-heading h1{
    margin:0!important;
    color:#283638!important;
    font-size:32px!important;
    line-height:1.05!important;
    font-weight:900!important;
    letter-spacing:-.035em!important;
  }
  .slogi-search-page .phase0-title-count{color:#788589!important;font-size:16px!important;font-weight:650!important}
  .slogi-search-page .phase0-page-heading p{margin:8px 0 0!important;color:#748488!important;font-size:13px!important;line-height:1.4!important}
  .slogi-search-page .phase0-page-actions{display:flex!important;align-items:flex-start!important;gap:14px!important;padding:0!important}
  .slogi-search-page .phase0-btn{
    min-height:46px!important;
    padding:11px 20px!important;
    border-radius:9px!important;
    font-size:13px!important;
    font-weight:850!important;
    box-shadow:none!important;
  }
  .slogi-search-page .phase0-btn.primary{background:#08777b!important;border-color:#08777b!important;color:#fff!important;box-shadow:0 5px 14px rgba(8,119,123,.16)!important}
  .slogi-search-page .phase0-btn.primary:hover{background:#06686c!important;border-color:#06686c!important}
  .slogi-search-page .phase0-btn.secondary{background:#fff!important;border-color:#0b777b!important;color:#29494e!important}
  .slogi-search-page .phase0-competitive-action{gap:4px!important;justify-items:start!important}
  .slogi-search-page .phase0-sync-strip{min-height:18px!important;padding-left:2px!important}
  .slogi-search-page .phase0-sync-summary{min-height:18px!important;font-size:10.5px!important;font-weight:650!important;color:#7a8588!important}
  .slogi-search-page .phase0-sync-dot{width:9px!important;height:9px!important;flex-basis:9px!important;background:#a7d995!important}

  /* KPI bar = one light card, not six dashboard tiles. */
  .slogi-search-page .phase0-kpis{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    width:min(1040px,72%)!important;
    min-height:100px!important;
    margin:0 0 18px!important;
    padding:0!important;
    gap:0!important;
    border:1px solid #e7eceb!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .slogi-search-page .phase0-kpi{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    min-width:0!important;
    min-height:98px!important;
    align-items:center!important;
    gap:10px!important;
    padding:13px 12px!important;
    border:0!important;
    border-right:1px solid #f0f2f1!important;
    border-radius:0!important;
    background:#fff!important;
    text-align:left!important;
    white-space:normal!important;
  }
  .slogi-search-page .phase0-kpi:last-child{border-right:0!important}
  .slogi-search-page .phase0-kpi:hover,.slogi-search-page .phase0-kpi.active{background:#f8fbfb!important}
  .slogi-search-page .phase0-kpi-icon{
    display:grid!important;width:40px!important;height:40px!important;place-items:center!important;
    border-radius:50%!important;background:#eaf6f5!important;color:#08797c!important;font-size:21px!important;font-weight:900!important
  }
  .slogi-search-page .phase0-kpi-icon.working{background:#fff2df!important;color:#ef8e00!important}
  .slogi-search-page .phase0-kpi-icon.suitable{background:#edf8e9!important;color:#59a833!important}
  .slogi-search-page .phase0-kpi-icon.measuring{background:#edf3ff!important;color:#5982db!important}
  .slogi-search-page .phase0-kpi-icon.rejected{background:#fff0f0!important;color:#e64b4b!important}
  .slogi-search-page .phase0-kpi-icon.action{background:#f3edff!important;color:#7443bd!important}
  .slogi-search-page .phase0-kpi-copy{display:grid!important;align-content:center!important;gap:1px!important}
  .slogi-search-page .phase0-kpi-label{order:1!important;color:#5e696c!important;font-size:11px!important;font-weight:800!important;line-height:1.15!important}
  .slogi-search-page .phase0-kpi strong{order:2!important;color:#26383b!important;font-size:25px!important;font-weight:900!important;line-height:1.05!important}
  .slogi-search-page .phase0-kpi-show{order:3!important;margin-top:4px!important;color:#08777b!important;font-size:9px!important;font-weight:800!important}

  /* Main working area. Map is large and starts just below the active filters. */
  .slogi-search-page .phase0-workspace{
    display:grid!important;
    height:clamp(610px,calc(100dvh - 300px),690px)!important;
    min-height:610px!important;
    grid-template-columns:minmax(700px,58fr) minmax(520px,42fr)!important;
    gap:18px!important;
    align-items:stretch!important;
  }
  .slogi-search-page .phase0-list-column{
    display:flex!important;min-width:0!important;min-height:0!important;flex-direction:column!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  .slogi-search-page .phase0-map-column{
    display:flex!important;min-width:0!important;min-height:0!important;flex-direction:column!important;
    margin-top:68px!important;height:calc(100% - 68px)!important;
    border:1px solid #e6eceb!important;border-radius:12px!important;background:#fff!important;
    box-shadow:0 4px 16px rgba(35,59,64,.05)!important;overflow:hidden!important;
  }
  .slogi-search-page .phase0-list-column>.phase0-section-head,
  .slogi-search-page .phase0-map-column>.phase0-section-head{display:none!important}

  /* Filters float over the page, as in the approved design. */
  .slogi-search-page .phase0-toolbar{
    position:relative!important;
    display:grid!important;
    flex:0 0 auto!important;
    grid-template-columns:minmax(260px,1.45fr) 145px 145px 180px auto!important;
    gap:10px!important;
    padding:0 0 12px!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .slogi-search-page .phase0-toolbar input,
  .slogi-search-page .phase0-toolbar select{
    min-height:40px!important;
    height:40px!important;
    padding:8px 12px!important;
    border:1px solid #dce4e3!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#304145!important;
    font-size:11px!important;
    font-weight:650!important;
    box-shadow:none!important;
  }
  .slogi-search-page .phase0-toolbar input::placeholder{color:#7f8b8e!important}
  .slogi-search-page .phase0-filter-button{
    min-height:40px!important;height:40px!important;padding:8px 13px!important;
    border:1px solid #dce4e3!important;border-radius:8px!important;background:#fff!important;
    color:#31464a!important;font-size:10.5px!important;font-weight:800!important
  }
  .slogi-search-page .phase0-filter-button::before{content:"☷";margin-right:6px;color:#334c50;font-size:13px}
  .slogi-search-page .phase0-filter-button.has-filters{border-color:#9cbaba!important}
  .slogi-search-page .phase0-extra-filters{padding-top:0!important}
  .slogi-search-page .phase0-active-filters{
    min-height:30px!important;
    padding:0 10px!important;
    justify-content:flex-start!important;
    gap:14px!important;
    color:#5f7276!important;
    font-size:10px!important;
  }
  .slogi-search-page .phase0-active-filters>span{padding:6px 10px!important;border-radius:8px!important;background:#edf3f3!important;color:#334d52!important}
  .slogi-search-page .phase0-active-filters .phase0-link-button{min-height:28px!important;color:#087579!important}

  /* Table headers and rows. */
  .slogi-search-page .phase0-list-table-head{
    display:grid!important;
    grid-template-columns:82px minmax(205px,1.58fr) 108px 102px 92px 108px 124px 24px!important;
    gap:10px!important;
    min-height:40px!important;
    align-items:center!important;
    padding:0 10px!important;
    border:0!important;border-bottom:1px solid #e7eceb!important;
    background:transparent!important;color:#68767a!important;
    font-size:9px!important;font-weight:900!important;
  }
  .slogi-search-page .phase0-object-list{
    display:block!important;min-height:0!important;flex:1!important;
    padding:0!important;background:#fff!important;border-radius:10px!important;
    overflow:auto!important;box-shadow:0 8px 24px rgba(42,65,69,.035)!important;
  }
  .slogi-search-page .phase0-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:82px minmax(205px,1.58fr) 108px 102px 92px 108px 124px 24px!important;
    gap:10px!important;
    min-height:98px!important;
    align-items:center!important;
    padding:12px 10px!important;
    border:0!important;border-bottom:1px solid #e9eeed!important;border-radius:0!important;
    background:#fff!important;box-shadow:none!important;
  }
  .slogi-search-page .phase0-card:first-child{border-top-left-radius:10px!important;border-top-right-radius:10px!important}
  .slogi-search-page .phase0-card:last-child{border-bottom:0!important;border-bottom-left-radius:10px!important;border-bottom-right-radius:10px!important}
  .slogi-search-page .phase0-card:hover,.slogi-search-page .phase0-card.map-hover{background:#fbfdfd!important;box-shadow:none!important}
  .slogi-search-page .phase0-card.selected{background:#f7fbfb!important;box-shadow:inset 2px 0 0 #0a8588!important}
  .slogi-search-page .phase0-rank-wrap{display:grid!important;grid-template-columns:22px 50px!important;align-items:center!important;gap:5px!important}
  .slogi-search-page .phase0-rank-medal,.slogi-search-page .phase0-rank-number{width:20px!important;height:20px!important;font-size:9px!important}
  .slogi-search-page .phase0-rating{min-height:50px!important;height:50px!important;width:50px!important;border:1.5px solid #0d8a8d!important;border-radius:50%!important;color:#0a7074!important;background:#fff!important}
  .slogi-search-page .phase0-rating strong{font-size:15px!important;font-weight:850!important}
  .slogi-search-page .phase0-rating.unknown{border-color:#d3dada!important;color:#869395!important}
  .slogi-search-page .phase0-card-main h4{color:#222e31!important;font-size:13.5px!important;font-weight:900!important;line-height:1.25!important}
  .slogi-search-page .phase0-card-main p{margin-top:5px!important;color:#778588!important;font-size:10px!important}
  .slogi-search-page .phase0-cluster-link{max-width:48%!important;color:#748387!important;font-size:10px!important;text-decoration:none!important}
  .slogi-search-page .phase0-listing-link{margin-top:5px!important;color:#087579!important;font-size:10px!important;font-weight:700!important}
  .slogi-search-page .phase0-rent-cell strong,.slogi-search-page .phase0-sqm-cell strong{font-size:12.5px!important;font-weight:850!important;color:#263639!important}
  .slogi-search-page .phase0-cluster-compare .phase0-deviation{font-size:12.5px!important;font-weight:900!important}
  .slogi-search-page .phase0-cluster-compare small{font-size:9px!important;color:#859194!important}
  .slogi-search-page .phase0-status{min-height:25px!important;padding:5px 8px!important;font-size:8.5px!important;font-weight:850!important}
  .slogi-search-page .phase0-card-next .phase0-next-action{color:#087579!important;font-size:10px!important;font-weight:850!important;line-height:1.35!important}
  .slogi-search-page .phase0-card-next .phase0-next-action b{font-size:13px!important}
  .slogi-search-page .phase0-card-next small{font-size:8.5px!important}
  .slogi-search-page .phase0-card-more{width:24px!important;height:32px!important;font-size:19px!important}
  .slogi-search-page .phase0-card-progress,.slogi-search-page .phase0-card-economy,.slogi-search-page .phase0-card-state{display:none!important}

  /* Empty state stays quiet; no dashed box taking over the page. */
  .slogi-search-page .phase0-empty{
    min-height:330px!important;
    display:grid!important;place-items:center!important;align-content:center!important;
    padding:40px 24px!important;border:0!important;background:#fff!important;text-align:center!important;
  }
  .slogi-search-page .phase0-empty strong{font-size:17px!important;color:#2d4145!important}
  .slogi-search-page .phase0-empty p{max-width:460px!important;margin:9px auto 18px!important;color:#77878a!important;font-size:11px!important;line-height:1.55!important}
  .slogi-search-page .phase0-empty .phase0-btn{min-height:46px!important}

  /* Map card. */
  .slogi-search-page .phase0-map-stage{position:relative!important;min-height:100%!important;height:100%!important;border-radius:0!important;background:#eaf0ec!important;overflow:hidden!important}
  .slogi-search-page .phase0-map{position:absolute!important;inset:0!important}
  .slogi-search-page .phase0-map-message{display:none!important}
  .slogi-search-page .phase0-map-clusters-toggle{
    position:absolute!important;z-index:8!important;top:14px!important;right:14px!important;
    display:flex!important;align-items:center!important;gap:8px!important;
    min-height:48px!important;padding:8px 12px!important;
    border:1px solid #e2e7e6!important;border-radius:10px!important;background:rgba(255,255,255,.96)!important;
    color:#314447!important;font-size:10.5px!important;font-weight:800!important;box-shadow:0 4px 14px rgba(43,64,68,.08)!important
  }
  .slogi-search-page .phase0-map-clusters-toggle.off{opacity:.72!important}
  .slogi-search-page .phase0-layers-icon{font-size:19px!important;line-height:1!important;color:#3a4e52!important;transform:rotate(45deg)!important}
  .slogi-search-page .phase0-map-loading{font-size:11px!important}
}

@media(min-width:901px) and (max-width:1280px){
  .slogi-search-page .phase0-main{padding-inline:24px!important}
  .slogi-search-page .phase0-page-heading h1{font-size:30px!important}
  .slogi-search-page .phase0-kpis{width:100%!important}
  .slogi-search-page .phase0-workspace{grid-template-columns:minmax(610px,58fr) minmax(390px,42fr)!important;gap:14px!important}
  .slogi-search-page .phase0-toolbar{grid-template-columns:minmax(210px,1.35fr) 132px 132px 165px auto!important;gap:7px!important}
  .slogi-search-page .phase0-list-table-head,.slogi-search-page .phase0-card{grid-template-columns:70px minmax(180px,1.45fr) 94px 90px 80px 98px 106px 20px!important;gap:7px!important}
}

@media(max-width:900px){
  .slogi-search-page .phase0-main{background:#fbfcfc!important}
  .slogi-search-page .phase0-map-clusters-toggle{
    position:absolute;z-index:8;top:10px;right:10px;display:flex;align-items:center;gap:6px;
    min-height:40px;padding:7px 10px;border:1px solid #e1e7e6;border-radius:9px;background:rgba(255,255,255,.96);
    color:#314447;font-size:10px;font-weight:800;box-shadow:0 4px 12px rgba(43,64,68,.08)
  }
}
.slogi-search-page .phase0-kpi-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

/* ======================================================================
   v54 — exact desktop reference corrections
   The old fixed-header layer added an extra body spacer on top of the
   already-sticky header. Search has a single 74px header and no spacer.
   ====================================================================== */
body.slogi-search-page{
  padding-top:0!important;
  background:#fbfcfc!important;
}
@media(min-width:901px){
  .slogi-search-page .phase0-workspace{
    grid-template-columns:minmax(720px,60fr) minmax(500px,40fr)!important;
  }
  .slogi-search-page .phase0-card-main h4{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:none!important;
  }
  .slogi-search-page .phase0-card-main p{
    white-space:normal!important;
    flex-wrap:wrap!important;
  }
}

/* ======================================================================
   v55 — full-width table + map below + editable status
   ====================================================================== */
@media(min-width:901px){
  html{scroll-padding-top:84px!important}
  body.slogi-search-page{padding-top:74px!important;margin:0!important;background:#fbfcfc!important}
  .slogi-search-page .site-header{position:fixed!important;top:0!important;left:0!important;right:0!important;margin:0!important;transform:none!important}
  .slogi-search-page .phase0-main{max-width:none!important;padding:22px 30px 42px!important}
  .slogi-search-page .phase0-page-toolbar{min-height:70px!important;margin-bottom:14px!important;align-items:flex-start!important}
  .slogi-search-page .phase0-page-heading h1{font-size:34px!important}
  .slogi-search-page .phase0-page-heading p{font-size:13.5px!important}
  .slogi-search-page .phase0-kpis{width:100%!important;min-height:88px!important;margin-bottom:16px!important}
  .slogi-search-page .phase0-kpi{min-height:86px!important;padding:10px 14px!important;grid-template-columns:42px minmax(0,1fr)!important}
  .slogi-search-page .phase0-kpi-icon{width:38px!important;height:38px!important}
  .slogi-search-page .phase0-kpi strong{font-size:24px!important}
  .slogi-search-page .phase0-kpi-label{font-size:11.5px!important}

  .slogi-search-page .phase0-workspace{display:block!important;height:auto!important;min-height:0!important}
  .slogi-search-page .phase0-list-column{display:block!important;width:100%!important}
  .slogi-search-page .phase0-list-column>.phase0-section-head{display:none!important}
  .slogi-search-page .phase0-toolbar{grid-template-columns:minmax(280px,1.7fr) 170px 170px 205px auto!important;gap:10px!important;padding-bottom:12px!important}
  .slogi-search-page .phase0-toolbar input,.slogi-search-page .phase0-toolbar select{height:44px!important;min-height:44px!important;font-size:12.5px!important}
  .slogi-search-page .phase0-filter-button{height:44px!important;min-height:44px!important;font-size:12px!important}

  .slogi-search-page .phase0-list-scroll{width:100%!important;border:1px solid #e5ebea!important;border-radius:12px!important;background:#fff!important;box-shadow:0 8px 24px rgba(42,65,69,.035)!important;overflow:hidden!important}
  .slogi-search-page .phase0-list-scroll.has-more:not(.expanded){max-height:824px!important;overflow-y:auto!important;scrollbar-gutter:stable!important}
  .slogi-search-page .phase0-list-scroll.expanded{max-height:none!important;overflow:visible!important}
  .slogi-search-page .phase0-list-table-head{position:sticky!important;top:0!important;z-index:5!important;grid-template-columns:92px minmax(330px,2.2fr) 145px 130px 120px 185px 220px 32px!important;gap:12px!important;min-height:44px!important;padding:0 16px!important;background:#f9fbfb!important;border-bottom:1px solid #e5ebea!important;font-size:10.5px!important}
  .slogi-search-page .phase0-object-list{display:block!important;overflow:visible!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
  .slogi-search-page .phase0-card{grid-template-columns:92px minmax(330px,2.2fr) 145px 130px 120px 185px 220px 32px!important;gap:12px!important;min-height:78px!important;padding:11px 16px!important}
  .slogi-search-page .phase0-rank-wrap{grid-template-columns:22px 48px!important}
  .slogi-search-page .phase0-rating{width:48px!important;height:48px!important;min-height:48px!important}
  .slogi-search-page .phase0-rating strong{font-size:15px!important}
  .slogi-search-page .phase0-card-main h4{font-size:14.5px!important;line-height:1.25!important}
  .slogi-search-page .phase0-card-main p{font-size:11px!important;margin-top:4px!important}
  .slogi-search-page .phase0-cluster-link{font-size:11px!important;max-width:52%!important}
  .slogi-search-page .phase0-listing-link{font-size:10.5px!important}
  .slogi-search-page .phase0-rent-cell strong,.slogi-search-page .phase0-sqm-cell strong,.slogi-search-page .phase0-cluster-compare .phase0-deviation{font-size:13.5px!important}
  .slogi-search-page .phase0-inline-status{width:100%!important;min-height:36px!important;padding:7px 28px 7px 10px!important;border:1px solid #d7e1e0!important;border-radius:999px!important;background:#f4f7f7!important;color:#344b50!important;font-size:10.5px!important;font-weight:850!important;outline:none!important}
  .slogi-search-page .phase0-inline-status.suitable{background:#e8f5ec!important;color:#397453!important;border-color:#cfe6d7!important}
  .slogi-search-page .phase0-inline-status.rejected{background:#fff0ef!important;color:#b34e49!important;border-color:#f0cfcb!important}
  .slogi-search-page .phase0-inline-status.working{background:#fff7e8!important;color:#8c6324!important;border-color:#efdfbd!important}
  .slogi-search-page .phase0-card-next{display:grid!important;gap:3px!important;align-content:center!important}
  .slogi-search-page .phase0-card-next .phase0-next-action{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;color:#087579!important;font-size:11.5px!important;font-weight:850!important;line-height:1.3!important}
  .slogi-search-page .phase0-card-next small{font-size:9.5px!important;color:#839194!important}
  .slogi-search-page .phase0-list-footer{display:flex!important;justify-content:center!important;padding:10px 0 0!important}
  .slogi-search-page .phase0-list-expand{min-height:38px!important;padding:8px 16px!important;border:1px solid #cbdcda!important;border-radius:9px!important;background:#fff!important;color:#087579!important;font-size:11.5px!important;font-weight:850!important}
  .slogi-search-page .phase0-list-expand:hover{background:#f1f7f7!important}

  .slogi-search-page .phase0-map-column{display:flex!important;width:100%!important;height:560px!important;min-height:560px!important;margin:24px 0 0!important;border:1px solid #e5ebea!important;border-radius:12px!important;background:#fff!important;box-shadow:0 8px 24px rgba(42,65,69,.04)!important;overflow:hidden!important}
  .slogi-search-page .phase0-map-column>.phase0-section-head{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:space-between!important;padding:15px 18px 12px!important;border-bottom:1px solid #edf1f0!important;background:#fff!important}
  .slogi-search-page .phase0-map-column>.phase0-section-head h3{margin:0!important;font-size:18px!important;color:#2f4347!important}
  .slogi-search-page .phase0-map-column>.phase0-section-head p{margin:4px 0 0!important;font-size:11px!important;color:#7a898d!important}
  .slogi-search-page .phase0-map-stage{min-height:0!important;height:auto!important;flex:1 1 auto!important}
}

@media(min-width:901px) and (max-width:1280px){
  .slogi-search-page .phase0-main{padding-inline:22px!important}
  .slogi-search-page .phase0-list-table-head,.slogi-search-page .phase0-card{grid-template-columns:74px minmax(260px,2fr) 118px 110px 100px 158px 185px 28px!important;gap:8px!important;padding-inline:12px!important}
  .slogi-search-page .phase0-toolbar{grid-template-columns:minmax(230px,1.5fr) 150px 150px 185px auto!important}
}
@media(max-width:900px){
  .slogi-search-page .phase0-inline-status{width:auto;max-width:100%;min-height:34px;padding:7px 28px 7px 10px;border:1px solid #d7e1e0;border-radius:999px;background:#f4f7f7;color:#344b50;font-size:10px;font-weight:850}
  .slogi-search-page .phase0-inline-status.suitable{background:#e8f5ec;color:#397453;border-color:#cfe6d7}
  .slogi-search-page .phase0-inline-status.rejected{background:#fff0ef;color:#b34e49;border-color:#f0cfcb}
  .slogi-search-page .phase0-inline-status.working{background:#fff7e8;color:#8c6324;border-color:#efdfbd}
  .slogi-search-page .phase0-list-footer{display:none}
}

/* ======================================================================
   v56 — compact filter bar + five distinct inline statuses
   ====================================================================== */
@media(min-width:901px){
  .slogi-search-page .phase0-toolbar{
    display:grid!important;
    grid-template-columns:300px 170px 170px 215px 110px minmax(0,1fr)!important;
    justify-content:start!important;
    align-items:start!important;
    gap:10px!important;
    padding:0 0 12px!important;
    background:transparent!important;
    border:0!important;
  }
  .slogi-search-page .phase0-search{grid-column:1!important}
  .slogi-search-page .phase0-core-filters{display:contents!important}
  .slogi-search-page .phase0-filter-button{grid-column:5!important;width:110px!important}
  .slogi-search-page .phase0-extra-filters,
  .slogi-search-page .phase0-active-filters{grid-column:1/6!important}
  .slogi-search-page .phase0-toolbar input,
  .slogi-search-page .phase0-toolbar select,
  .slogi-search-page .phase0-filter-button{height:40px!important;min-height:40px!important;font-size:11.5px!important;border-radius:8px!important}
  .slogi-search-page .phase0-toolbar input{padding-left:13px!important}
  .slogi-search-page .phase0-list-scroll.has-more:not(.expanded){max-height:824px!important;overflow-y:auto!important}

  .slogi-search-page .phase0-inline-status{transition:background-color .12s ease,border-color .12s ease,color .12s ease!important}
  .slogi-search-page .phase0-inline-status.no-answer{background:#f1f3f4!important;color:#59666a!important;border-color:#dce1e2!important}
  .slogi-search-page .phase0-inline-status.waiting{background:#fff3df!important;color:#9a6515!important;border-color:#efd8ae!important}
  .slogi-search-page .phase0-inline-status.analysing{background:#eaf2ff!important;color:#356aa8!important;border-color:#cdddf2!important}
  .slogi-search-page .phase0-inline-status.suitable{background:#e8f5ec!important;color:#34704d!important;border-color:#cce3d4!important}
  .slogi-search-page .phase0-inline-status.rejected{background:#fff0ef!important;color:#b34e49!important;border-color:#f0cfcb!important}
  .slogi-search-page .phase0-inline-status option[value="Не отвечает"]{background:#f1f3f4;color:#59666a}
  .slogi-search-page .phase0-inline-status option[value="Связались, ждём информацию"]{background:#fff3df;color:#9a6515}
  .slogi-search-page .phase0-inline-status option[value="Вся информация получена, анализируем"]{background:#eaf2ff;color:#356aa8}
  .slogi-search-page .phase0-inline-status option[value="Подошло"]{background:#e8f5ec;color:#34704d}
  .slogi-search-page .phase0-inline-status option[value="Не подошло"]{background:#fff0ef;color:#b34e49}
}
@media(min-width:901px) and (max-width:1280px){
  .slogi-search-page .phase0-toolbar{grid-template-columns:260px 145px 145px 185px 102px minmax(0,1fr)!important;gap:8px!important}
  .slogi-search-page .phase0-filter-button{width:102px!important}
}
@media(max-width:900px){
  .slogi-search-page .phase0-inline-status.no-answer{background:#f1f3f4;color:#59666a;border-color:#dce1e2}
  .slogi-search-page .phase0-inline-status.waiting{background:#fff3df;color:#9a6515;border-color:#efd8ae}
  .slogi-search-page .phase0-inline-status.analysing{background:#eaf2ff;color:#356aa8;border-color:#cdddf2}
  .slogi-search-page .phase0-inline-status.suitable{background:#e8f5ec;color:#34704d;border-color:#cce3d4}
  .slogi-search-page .phase0-inline-status.rejected{background:#fff0ef;color:#b34e49;border-color:#f0cfcb}
}


/* ===== v58: centered object modal + labelled map markers ===== */
.phase0-overlay{align-items:center!important;justify-content:center!important;padding:32px!important;background:rgba(31,43,46,.54)!important;backdrop-filter:blur(2px)}
.phase0-drawer{width:min(1040px,calc(100vw - 64px))!important;height:auto!important;max-height:88dvh!important;border:1px solid rgba(215,225,224,.9)!important;border-radius:18px!important;box-shadow:0 28px 80px rgba(24,39,42,.26)!important;animation:p0-modal-in .18s ease-out!important}
.phase0-competitive-drawer{width:min(1160px,calc(100vw - 64px))!important}
@keyframes p0-modal-in{from{opacity:.4;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.phase0-drawer-head{border-radius:18px 18px 0 0}
.phase0-drawer-actions{border-radius:0 0 18px 18px}
.phase0-map-marker{position:relative;display:flex;align-items:center;gap:7px;min-width:0;transform:translate(-8px,-8px);font-family:Arial,sans-serif;cursor:pointer}
.phase0-map-marker-pin{display:block;flex:0 0 16px;width:16px;height:16px;border:3px solid #fff;border-radius:50%;background:#0d7f82;box-shadow:0 2px 7px rgba(20,54,58,.32)}
.phase0-map-marker-label{display:block;max-width:220px;padding:5px 8px;border:1px solid rgba(49,84,88,.16);border-radius:7px;background:rgba(255,255,255,.96);color:#31494d;box-shadow:0 3px 10px rgba(29,49,52,.14);font-size:11px;font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phase0-map-marker.selected .phase0-map-marker-pin{background:#e19b2d;transform:scale(1.15)}
.phase0-map-marker.selected .phase0-map-marker-label{border-color:#e19b2d;background:#fff9ee;color:#253b3f;box-shadow:0 5px 14px rgba(79,60,24,.18)}
@media(max-width:650px){.phase0-overlay{padding:0!important}.phase0-drawer,.phase0-competitive-drawer{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important}.phase0-drawer-head,.phase0-drawer-actions{border-radius:0}.phase0-map-marker-label{max-width:150px;font-size:10px}}

/* ======================================================================
   v59 — live Google Sheets competitive analysis (sheet "Свод")
   ====================================================================== */
.phase0-competitive-status-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.phase0-competitive-status-actions .phase0-btn{text-decoration:none;white-space:nowrap}
.phase0-competitive-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid var(--p0-line);border-radius:12px;background:#fff;box-shadow:0 7px 22px rgba(42,65,69,.035)}
.phase0-competitive-table-wrap .phase0-competitive-table{width:max-content;min-width:100%;border:0;border-radius:0;overflow:visible}
.phase0-competitive-source-table th,.phase0-competitive-source-table td{min-width:120px;max-width:300px;padding:10px 12px;white-space:normal;vertical-align:top;line-height:1.4}
.phase0-competitive-source-table th{position:sticky;top:0;z-index:2;background:#f3f7f7;color:#52696d;font-size:10px;text-transform:none;letter-spacing:0}
.phase0-competitive-source-table td{font-size:11px;color:#344b50}
.phase0-competitive-source-table th:first-child,.phase0-competitive-source-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;min-width:170px;font-weight:800;box-shadow:1px 0 0 #e5ebea}
.phase0-competitive-source-table th:first-child{z-index:3;background:#f3f7f7}
.phase0-competitive-source-table tr.highlight td{background:#fff7e8}
.phase0-competitive-source-table tr.highlight td:first-child{background:#fff1d2}
.phase0-competitive-drawer .phase0-drawer-body{overflow:auto}
@media(min-width:901px){
  .phase0-competitive-drawer{width:min(1360px,calc(100vw - 48px))!important;max-height:90dvh!important}
  .phase0-competitive-table-wrap{max-height:58dvh}
}
@media(max-width:900px){
  .phase0-competitive-status-actions{justify-content:stretch}
  .phase0-competitive-status-actions .phase0-btn{flex:1}
  .phase0-competitive-table-wrap{border:0;box-shadow:none;overflow:visible}
  .phase0-competitive-source-table{display:table!important;width:max-content!important;min-width:900px!important}
  .phase0-competitive-source-table thead{display:table-header-group!important}
  .phase0-competitive-source-table tbody{display:table-row-group!important}
  .phase0-competitive-source-table tr{display:table-row!important;margin:0!important;border:0!important}
  .phase0-competitive-source-table th,.phase0-competitive-source-table td{display:table-cell!important}
  .phase0-competitive-source-table td::before{display:none!important}
}

/* ===== SLOGI v61: potential-room card redesign ===== */
.phase0-card-editor-body{display:grid;gap:16px;padding:16px 18px 104px!important;background:#f7f9f9}
.phase0-card-editor-head{padding:17px 20px!important;background:#fff}
.phase0-card-summary-panel,.phase0-card-metrics-panel,.phase0-card-analysis-strip,.phase0-card-subpanel{border:1px solid #dfe7e6;background:#fff;border-radius:14px;box-shadow:0 4px 15px rgba(37,60,64,.035)}
.phase0-card-summary-panel{padding:16px 18px;display:grid;gap:14px}
.phase0-card-address-block{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start}
.phase0-card-address-icon{display:grid;place-items:center;width:30px;height:38px;color:#4a7d82;font-size:23px}
.phase0-card-address-fields .phase0-field>span:first-child{display:none}
.phase0-card-address-fields input{font-size:19px!important;font-weight:900!important;border-color:transparent!important;background:transparent!important;padding:5px 0!important;box-shadow:none!important}
.phase0-card-address-fields .phase0-help{font-size:10px;color:#859294;margin-top:2px}
.phase0-card-summary-meta{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(150px,.35fr);gap:18px;margin-left:42px;padding-top:12px;border-top:1px solid #edf1f1}
.phase0-card-summary-meta .phase0-field select{font-weight:800;background:#f1f7f7;border-color:#cfe0df}
.phase0-card-rating-box{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-content:center;border-left:1px solid #edf1f1;padding-left:18px}
.phase0-card-rating-box span{font-size:11px;color:#758589}.phase0-card-rating-box strong{font-size:22px;color:#243437}.phase0-card-rating-box small{grid-column:1/-1;font-size:9px;color:#93a0a2}
.phase0-card-source-row{display:grid;grid-template-columns:150px minmax(260px,1fr) auto minmax(210px,.48fr);gap:14px;align-items:end;padding-top:12px;border-top:1px solid #edf1f1}
.phase0-card-source-row>div:first-child{display:grid;gap:5px;align-self:center}.phase0-card-source-row>div:first-child span{font-size:10px;color:#7f8d90}.phase0-card-source-row>div:first-child strong{font-size:12px}
.phase0-card-listing-link .phase0-field>span:first-child{font-size:10px}.phase0-card-source-row .phase0-field{gap:5px}.phase0-card-source-row .phase0-help{display:none}
.phase0-card-source-row .phase0-btn{height:40px;align-self:end}
.phase0-status-select{font-weight:850!important;border-radius:10px!important}.phase0-status-select.no-answer{background:#f2f4f4!important;border-color:#dde2e2!important;color:#566568!important}.phase0-status-select.waiting{background:#fff5df!important;border-color:#f1d498!important;color:#9e6810!important}.phase0-status-select.analysing{background:#e9f2ff!important;border-color:#bdd4f6!important;color:#2469ad!important}.phase0-status-select.suitable{background:#edf8e9!important;border-color:#c8e3b9!important;color:#4a8b2e!important}.phase0-status-select.rejected{background:#fdeceb!important;border-color:#f2c4c0!important;color:#bd4941!important}
.phase0-card-summary-panel>.phase0-import-state{margin:0 0 0 42px;padding:7px 10px;border-radius:8px;background:#f5f8f8;font-size:10px}
.phase0-card-summary-panel>.phase0-import-state.success{background:#edf8f3;color:#2c7661}.phase0-card-summary-panel>.phase0-import-state.partial{background:#fff6e8;color:#9a6a1e}.phase0-card-summary-panel>.phase0-import-state.error{background:#fff0ef;color:#af4d47}
.phase0-card-metrics-panel{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:8px 0;overflow:hidden}
.phase0-metric-edit,.phase0-metric-display{min-height:95px;padding:13px 16px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid #e8eeee}.phase0-card-metrics-panel>:last-child{border-right:0}
.phase0-metric-edit>span,.phase0-metric-display>span{font-size:10.5px;color:#78878a;font-weight:750}.phase0-metric-edit small,.phase0-metric-display small{font-size:9px;color:#9aa5a7;margin-top:5px}
.phase0-metric-input{display:flex;align-items:baseline;gap:5px}.phase0-metric-input input{width:100%;min-width:0;padding:4px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:20px!important;font-weight:900!important;color:#243437!important}.phase0-metric-input b{font-size:16px;color:#38565b}.phase0-metric-display strong{margin-top:5px;font-size:20px;color:#243437}
.phase0-card-analysis-strip{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;align-items:center;padding:12px 16px}.phase0-card-analysis-strip>div{display:grid;gap:3px}.phase0-card-analysis-strip span{font-size:10px;color:#849194}.phase0-card-analysis-strip strong{font-size:13px}.phase0-card-analysis-strip .phase0-btn{justify-self:end}
.phase0-card-middle-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.phase0-card-bottom-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.phase0-card-subpanel{padding:15px 17px;min-width:0}.phase0-subpanel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.phase0-subpanel-title h3{font-size:15px;margin:0;color:#243437}.phase0-subpanel-title span{font-size:10px;color:#7d8b8d}
.phase0-card-checklist{display:grid}.phase0-card-check-row{display:grid;grid-template-columns:26px minmax(0,1fr) 145px;gap:9px;align-items:center;min-height:38px;border-bottom:1px solid #edf1f1}.phase0-card-check-row:last-child{border-bottom:0}.phase0-check-number{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#f0f6f6;color:#4c777c;font-size:10px;font-weight:900}.phase0-check-label{font-size:11.5px;color:#34484c}.phase0-card-check-row select{height:30px;padding:4px 28px 4px 8px;font-size:10px}.phase0-check-static{text-align:right;font-size:10px;color:#8d999b}.phase0-check-static.done{color:#3b8d72;font-weight:800}
.phase0-readiness-visual .phase0-progress-content{display:grid;grid-template-columns:145px 1fr;gap:22px;align-items:center;min-height:190px}.phase0-progress-ring{--progress:0%;width:132px;height:132px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#157c80 var(--progress),#e7ecec 0);position:relative}.phase0-progress-ring:before{content:"";position:absolute;inset:12px;border-radius:50%;background:#fff}.phase0-progress-ring strong{position:relative;z-index:1;font-size:27px;color:#25373a}.phase0-readiness-visual .phase0-requirements{border:0;background:transparent;padding:0;margin:0}.phase0-readiness-visual .phase0-requirements strong{font-size:12px}.phase0-readiness-visual .phase0-requirements ul{margin:8px 0 0;padding-left:17px;font-size:10.5px;color:#758487;line-height:1.5}.phase0-readiness-visual .phase0-requirements p{font-size:10px;color:#7f8d90}
.phase0-layout-card{min-height:125px;border:0!important;background:transparent!important;padding:0!important}.phase0-good-text{color:#36926c!important}.phase0-muted-text{color:#a07a2c!important}.phase0-compact-form{display:grid;gap:10px}.phase0-compact-form .phase0-field{gap:4px}.phase0-compact-form .phase0-field>span:first-child{font-size:9.5px}.phase0-compact-form textarea{min-height:58px}.phase0-interest-check{padding:8px 10px;border:1px solid #dfe7e6;border-radius:9px;background:#f8fafa}
.phase0-card-editor-actions .phase0-btn.danger{border-color:#e6b8b4;color:#b64c44;background:#fff}.phase0-card-editor-actions .phase0-btn.danger:hover{background:#fff1f0}
.phase0-drawer{width:min(1120px,calc(100vw - 60px))!important;max-height:92dvh!important}

/* Competitive analysis: always show useful headings. */
.phase0-competitive-source-table th{position:sticky;top:0;z-index:2;background:#f2f7f7!important;white-space:normal;min-width:110px;line-height:1.25}.phase0-competitive-source-table th:nth-child(1){min-width:54px}.phase0-competitive-source-table th:nth-child(2){min-width:170px}.phase0-competitive-source-table td{white-space:nowrap}

@media(max-width:900px){.phase0-card-summary-meta{grid-template-columns:1fr;margin-left:0}.phase0-card-rating-box{border-left:0;border-top:1px solid #edf1f1;padding:10px 0 0}.phase0-card-source-row{grid-template-columns:1fr 1fr}.phase0-card-listing-link{grid-column:1/-1}.phase0-card-metrics-panel{grid-template-columns:repeat(2,1fr)}.phase0-metric-edit,.phase0-metric-display{border-bottom:1px solid #e8eeee}.phase0-card-middle-grid,.phase0-card-bottom-grid{grid-template-columns:1fr}.phase0-readiness-visual .phase0-progress-content{grid-template-columns:120px 1fr}.phase0-progress-ring{width:110px;height:110px}.phase0-card-check-row{grid-template-columns:26px minmax(0,1fr) 120px}}
@media(max-width:650px){.phase0-card-editor-body{padding:10px 10px 95px!important}.phase0-card-summary-panel,.phase0-card-subpanel{border-radius:11px}.phase0-card-source-row{grid-template-columns:1fr}.phase0-card-listing-link{grid-column:auto}.phase0-card-metrics-panel{grid-template-columns:1fr 1fr}.phase0-metric-edit,.phase0-metric-display{min-height:82px;padding:10px}.phase0-card-analysis-strip{grid-template-columns:1fr}.phase0-card-analysis-strip .phase0-btn{justify-self:stretch}.phase0-readiness-visual .phase0-progress-content{grid-template-columns:1fr;justify-items:center}.phase0-card-check-row{grid-template-columns:24px minmax(0,1fr);padding:5px 0}.phase0-card-check-row select,.phase0-check-static{grid-column:2;width:100%;text-align:left}.phase0-drawer-actions-secondary{grid-template-columns:1fr 1fr!important}}

/* v63 — competitive-analysis table: preserve original sheet headers and freeze row number + cluster */
.phase0-competitive-source-table th:first-child,
.phase0-competitive-source-table td:first-child{
  position:sticky!important;left:0!important;z-index:4!important;min-width:54px!important;max-width:72px!important;background:#fff!important;box-shadow:1px 0 0 #e5ebea;
}
.phase0-competitive-source-table th:nth-child(2),
.phase0-competitive-source-table td:nth-child(2){
  position:sticky!important;left:54px!important;z-index:3!important;min-width:170px!important;background:#fff!important;box-shadow:1px 0 0 #e5ebea;
}
.phase0-competitive-source-table th:first-child,
.phase0-competitive-source-table th:nth-child(2){background:#f2f7f7!important;z-index:6!important}
.phase0-competitive-source-table tr.highlight td:first-child,
.phase0-competitive-source-table tr.highlight td:nth-child(2){background:#fff1d2!important}
.phase0-competitive-source-table th{font-weight:850!important;color:#3f5a60!important}


/* v64 — ручная загрузка конкурентного анализа */
.phase0-file-button{position:relative;overflow:hidden;cursor:pointer}
.phase0-competitive-source-table{border-collapse:separate;border-spacing:0;min-width:max-content;width:max-content}
.phase0-competitive-source-table th,.phase0-competitive-source-table td{min-width:108px;max-width:220px;white-space:nowrap}
.phase0-competitive-source-table thead th{position:sticky;z-index:5;text-align:center;vertical-align:middle}
.phase0-competitive-source-table .phase0-source-head-top th{top:0;background:#e8f0eb;font-weight:800;color:#29474c;border-bottom:1px solid #cbdad8}
.phase0-competitive-source-table .phase0-source-head-bottom th{top:38px;background:#f6eadc;font-weight:700;color:#3d5054;border-bottom:1px solid #d9c8b8}
.phase0-competitive-table-wrap{max-height:54vh;overflow:auto;border:1px solid #dbe4e4;border-radius:12px;background:#fff}
.phase0-competitive-source-table tbody tr.highlight td{background:#eef8f6}
.phase0-competitive-source-table th:first-child,.phase0-competitive-source-table td:first-child{position:sticky;left:0;z-index:3;background:#fff;min-width:56px}
.phase0-competitive-source-table th:nth-child(2),.phase0-competitive-source-table td:nth-child(2){position:sticky;left:56px;z-index:3;background:#fff;min-width:180px}
.phase0-competitive-source-table thead th:first-child,.phase0-competitive-source-table thead th:nth-child(2){z-index:8}

/* ===== SLOGI v65: карточка объекта по утверждённому референсу ===== */
@media (min-width:901px){
  .phase0-overlay{padding:26px!important;align-items:center!important;justify-content:center!important}
  .phase0-drawer:not(.phase0-competitive-drawer){width:min(980px,calc(100vw - 56px))!important;max-height:92dvh!important;border-radius:16px!important}
  .phase0-card-editor-head{min-height:76px!important;padding:16px 22px!important}
  .phase0-card-editor-head h2{font-size:20px!important;line-height:1.15!important;letter-spacing:-.01em}
  .phase0-card-editor-head p{font-size:11px!important;margin-top:5px!important}
  .phase0-card-editor-body{padding:14px 18px 100px!important;gap:14px!important;background:#f7f9f9!important}
}
.phase0-card-summary-panel{padding:15px 18px!important;gap:12px!important;border-radius:13px!important;box-shadow:none!important}
.phase0-card-address-block{grid-template-columns:30px minmax(0,1fr)!important;gap:9px!important}
.phase0-card-address-icon{width:28px!important;height:38px!important;font-size:21px!important;color:#497a80!important}
.phase0-card-address-fields input{font-size:18px!important;font-weight:900!important;line-height:1.2!important;color:#1f3236!important}
.phase0-card-address-fields .phase0-help{font-size:9.5px!important}
.phase0-card-summary-meta{grid-template-columns:minmax(250px,1fr) 190px!important;margin-left:39px!important;gap:22px!important;padding-top:11px!important}
.phase0-card-summary-meta .phase0-field{max-width:260px}
.phase0-card-summary-meta .phase0-field>span:first-child{font-size:10px!important;color:#718286!important}
.phase0-card-summary-meta .phase0-field select{height:36px!important;width:auto!important;min-width:150px!important;max-width:230px!important;border:1px solid #cfe0df!important;border-radius:8px!important;background:#eef6f6!important;color:#345e63!important;font-weight:850!important;padding:5px 30px 5px 10px!important}
.phase0-card-rating-box{grid-template-columns:auto 1fr!important;align-items:center!important;align-content:center!important;padding-left:18px!important}
.phase0-card-rating-box span{font-size:10px!important;color:#7b898c!important}
.phase0-card-rating-box strong{font-size:21px!important;line-height:1!important;color:#26383c!important;font-weight:900!important}
.phase0-card-rating-box strong:first-letter{color:#e2aa37}
.phase0-card-rating-box small{font-size:8.5px!important;margin-top:4px!important;color:#96a1a3!important}
.phase0-card-source-row{grid-template-columns:145px minmax(260px,1fr) minmax(180px,.66fr)!important;gap:18px!important;padding-top:12px!important;align-items:end!important}
.phase0-card-source-row>div:first-child{align-self:end!important;padding-bottom:4px}
.phase0-card-source-row>div:first-child span{font-size:9.5px!important}
.phase0-card-source-row>div:first-child strong{font-size:11.5px!important}
.phase0-card-listing-link{grid-column:2!important}
.phase0-card-source-row>#phase0-import-button{grid-column:2!important;justify-self:end!important;align-self:center!important;margin-top:-44px!important;transform:translateY(44px);height:36px!important;padding-inline:14px!important}
.phase0-card-source-row>div:last-child{grid-column:3!important;grid-row:1!important}
.phase0-card-source-row>div:last-child .phase0-field>span:first-child{font-size:9.5px!important}
.phase0-card-source-row .phase0-card-listing-link input{height:36px!important;padding-right:126px!important;font-size:11px!important}
.phase0-status-select{height:36px!important;font-size:10.5px!important;padding-block:5px!important}
.phase0-card-summary-panel>.phase0-import-state{margin-left:39px!important;font-size:9.5px!important;padding:6px 9px!important}

.phase0-card-metrics-panel{border-radius:13px!important;box-shadow:none!important;padding:0!important;grid-template-columns:repeat(6,minmax(0,1fr))!important}
.phase0-metric-edit,.phase0-metric-display{min-height:96px!important;padding:14px 16px!important}
.phase0-metric-edit>span,.phase0-metric-display>span{font-size:10px!important;font-weight:700!important;color:#7a888b!important}
.phase0-metric-input input,.phase0-metric-display strong{font-size:20px!important;line-height:1.1!important;color:#26383c!important}
.phase0-metric-input b{font-size:15px!important;color:#315f65!important}
.phase0-metric-edit small,.phase0-metric-display small{font-size:8.5px!important;color:#9da6a8!important}

/* В референсе сравнение с кластером не вынесено отдельной полосой. Данные остаются в модели и списке. */
.phase0-card-analysis-strip{display:none!important}

.phase0-card-middle-grid{grid-template-columns:1.12fr .88fr!important;gap:14px!important}
.phase0-card-bottom-grid{grid-template-columns:1fr 1fr 1fr!important;gap:12px!important}
.phase0-card-subpanel{padding:14px 16px!important;border-radius:13px!important;box-shadow:none!important}
.phase0-subpanel-title{margin-bottom:9px!important}
.phase0-subpanel-title h3{font-size:14px!important;font-weight:900!important;color:#26383c!important}
.phase0-subpanel-title span{font-size:9px!important;color:#7f8e91!important}
.phase0-card-check-row{min-height:34px!important;grid-template-columns:25px minmax(0,1fr) 116px!important;gap:8px!important}
.phase0-check-number{width:22px!important;height:22px!important;font-size:9px!important;background:#edf5f5!important;color:#4d797e!important;border:1px solid #d7e5e4}
.phase0-check-label{font-size:10.5px!important;color:#44575b!important}
.phase0-card-check-row select{height:28px!important;min-width:0!important;font-size:9px!important;border-color:transparent!important;background:transparent!important;color:#5f7477!important;text-align:right!important;padding-right:24px!important}
.phase0-check-static{font-size:9px!important}
.phase0-readiness-visual .phase0-progress-content{grid-template-columns:128px 1fr!important;gap:18px!important;min-height:175px!important}
.phase0-progress-ring{width:116px!important;height:116px!important;background:conic-gradient(#157c80 var(--progress),#e9eded 0)!important}
.phase0-progress-ring:before{inset:11px!important}
.phase0-progress-ring strong{font-size:24px!important}
.phase0-readiness-visual .phase0-requirements strong{font-size:11px!important}
.phase0-readiness-visual .phase0-requirements ul{font-size:9.5px!important}
.phase0-readiness-visual .phase0-requirements p{font-size:9px!important}
.phase0-layout-card{min-height:120px!important}
.phase0-layout-copy strong{font-size:10.5px!important}
.phase0-layout-copy span{font-size:8.5px!important}
.phase0-compact-form{gap:8px!important}
.phase0-compact-form .phase0-field>span:first-child{font-size:8.8px!important}
.phase0-compact-form select,.phase0-compact-form input,.phase0-compact-form textarea{font-size:10px!important}
.phase0-compact-form textarea{min-height:52px!important}
.phase0-interest-check{font-size:10px!important;padding:7px 9px!important}
.phase0-delete-link{justify-self:start;border:0;background:transparent;color:#b64c44;font-size:9.5px;font-weight:800;padding:2px 0;cursor:pointer}
.phase0-delete-link:hover{text-decoration:underline}
.phase0-card-editor-actions{padding:9px 18px!important}
.phase0-card-editor-actions .phase0-btn{height:38px!important;font-size:10.5px!important;padding:7px 15px!important}
.phase0-card-editor-actions .phase0-btn.primary{min-width:116px!important}
.phase0-card-editor-actions .phase0-drawer-actions-main{gap:9px!important}
.phase0-card-editor-actions .phase0-drawer-actions-secondary{gap:9px!important}

/* Список: в колонке «Рейтинг» одно единственное число, без № и без второго порядкового номера. */
.slogi-search-page .phase0-rank-wrap,.slogi-search-page .phase0-rank-medal,.slogi-search-page .phase0-rank-number{display:none!important}
.slogi-search-page .phase0-rating-cell{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
.slogi-search-page .phase0-rating{display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:auto!important;min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#26383c!important;font-variant-numeric:tabular-nums}
.slogi-search-page .phase0-rating strong{font-size:15px!important;font-weight:900!important;line-height:1!important;color:#26383c!important}
.slogi-search-page .phase0-rating.unknown strong{color:#9aa5a7!important}
.slogi-search-page .phase0-card{grid-template-columns:86px minmax(280px,1.8fr) minmax(110px,.72fr) minmax(100px,.62fr) minmax(120px,.72fr) minmax(155px,.95fr) minmax(170px,1fr) 30px!important}

@media(max-width:900px){
  .phase0-card-source-row{grid-template-columns:1fr 1fr!important}
  .phase0-card-source-row>.phase0-card-listing-link{grid-column:1/-1!important}
  .phase0-card-source-row>#phase0-import-button{grid-column:1/-1!important;justify-self:stretch!important;margin-top:0!important;transform:none!important}
  .phase0-card-source-row>div:last-child{grid-column:1/-1!important;grid-row:auto!important}
  .phase0-card-analysis-strip{display:none!important}
  .slogi-search-page .phase0-card{grid-template-columns:52px minmax(0,1fr)!important}
  .slogi-search-page .phase0-rating-cell{grid-row:1/3!important}
}
@media(min-width:901px){
  .slogi-search-page .phase0-list-table-head,
  .slogi-search-page .phase0-card{
    grid-template-columns:72px minmax(280px,1.8fr) minmax(110px,.72fr) minmax(100px,.62fr) minmax(120px,.72fr) minmax(155px,.95fr) minmax(170px,1fr) 30px!important;
  }
}

/* ======================================================================
   SLOGI v66 — карточка потенциального помещения максимально близко к
   утверждённому второму референсу. Только визуальный слой, бизнес-логика
   и имена полей остаются прежними.
   ====================================================================== */
@media (min-width:901px){
  .phase0-overlay{padding:24px!important;align-items:center!important;justify-content:center!important;background:rgba(34,48,51,.58)!important;backdrop-filter:blur(3px)!important}
  .phase0-drawer:not(.phase0-competitive-drawer){width:min(972px,calc(100vw - 48px))!important;max-height:94dvh!important;border-radius:16px!important;border:1px solid #d9e2e1!important;box-shadow:0 28px 90px rgba(20,38,42,.25)!important;overflow:hidden!important}
  .phase0-card-editor-head{min-height:72px!important;padding:15px 22px!important}
  .phase0-card-editor-body{padding:12px 18px 82px!important;gap:12px!important;background:#fbfcfc!important;overflow:auto!important}
  .phase0-card-editor-actions{min-height:60px!important;padding:9px 18px!important}
}

.phase0-card-editor-head{background:#fff!important;border-bottom:1px solid #e4e9e8!important}
.phase0-card-editor-head h2{margin:0!important;color:#203438!important;font-size:20px!important;font-weight:900!important;letter-spacing:-.015em!important}
.phase0-card-editor-head p{margin:4px 0 0!important;color:#75878a!important;font-size:10.5px!important}
.phase0-close{width:44px!important;height:44px!important;border-radius:10px!important;border:1px solid #dbe4e3!important;background:#fff!important;color:#27464a!important;font-size:24px!important}
.phase0-close:hover{background:#f3f8f8!important}

.phase0-card-summary-panel,.phase0-card-subpanel{border:1px solid #dfe7e6!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 10px rgba(31,56,61,.025)!important}
.phase0-reference-summary{padding:14px 16px 13px!important;gap:10px!important}
.phase0-card-address-block{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding-bottom:8px!important}
.phase0-card-address-icon{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:50%!important;background:#eaf4f4!important;color:#14777d!important}
.phase0-card-address-fields .phase0-field{gap:1px!important}
.phase0-card-address-fields .phase0-field>span:first-child{display:none!important}
.phase0-card-address-fields input{height:34px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#203438!important;font-size:18px!important;font-weight:900!important;line-height:1.15!important}
.phase0-card-address-fields .phase0-help{margin:1px 0 0!important;color:#7b8b8e!important;font-size:9.5px!important}

.phase0-card-meta-grid{display:grid!important;grid-template-columns:120px 105px 115px minmax(260px,1fr) 170px!important;align-items:end!important;border-top:1px solid #e8eeee!important;padding-top:10px!important}
.phase0-card-meta-item{min-width:0!important;padding:0 14px!important;border-right:1px solid #e7eded!important}
.phase0-card-meta-item:first-child{padding-left:0!important}
.phase0-card-meta-item:last-child{padding-right:0!important;border-right:0!important}
.phase0-card-meta-item>span,.phase0-card-meta-item .phase0-field>span:first-child{display:block!important;margin:0 0 5px!important;color:#77888b!important;font-size:9.5px!important;font-weight:600!important;line-height:1.2!important;text-transform:none!important}
.phase0-card-meta-item strong{color:#25383c!important;font-size:12.5px!important;font-weight:850!important}
.phase0-cluster-meta .phase0-field{gap:0!important}
.phase0-cluster-meta .phase0-field select{width:auto!important;max-width:110px!important;height:32px!important;padding:4px 27px 4px 10px!important;border:1px solid #cfe1df!important;border-radius:8px!important;background:#edf6f5!important;color:#2f7075!important;font-size:10.5px!important;font-weight:900!important;box-shadow:none!important}
.phase0-cluster-meta .phase0-help,.phase0-cluster-meta .phase0-field-error{display:none!important}
.phase0-card-rating-box{display:block!important;padding-left:14px!important;border-left:0!important}
.phase0-card-rating-box strong{display:flex!important;align-items:center!important;gap:5px!important;font-size:18px!important;line-height:1!important;font-variant-numeric:tabular-nums!important}
.phase0-card-rating-box strong i{color:#e3aa35!important;font-style:normal!important;font-size:17px!important}
.phase0-card-rating-box small{display:none!important}
.phase0-source-meta strong{font-size:12px!important}
.phase0-listing-meta{padding-right:13px!important}
.phase0-listing-inline{display:grid!important;grid-template-columns:minmax(0,1fr) 28px 28px!important;align-items:center!important;gap:5px!important}
.phase0-listing-inline input{width:100%!important;height:30px!important;padding:0!important;border:0!important;border-bottom:1px solid #bdd6d4!important;border-radius:0!important;background:transparent!important;color:#176f75!important;font-size:10.5px!important;font-weight:750!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}
.phase0-listing-inline input:focus{border-bottom-color:#177b80!important;outline:0!important}
.phase0-icon-btn{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#17777c!important;cursor:pointer!important}
.phase0-icon-btn:hover{background:#edf6f5!important}
.phase0-status-meta .phase0-field{gap:0!important}
.phase0-status-meta .phase0-help,.phase0-status-meta .phase0-field-error{display:none!important}
.phase0-status-select{width:100%!important;height:32px!important;padding:5px 28px 5px 10px!important;border:1px solid #d5e1e0!important;border-radius:8px!important;background:#edf5f5!important;color:#2f666b!important;font-size:10px!important;font-weight:800!important;box-shadow:none!important}

.phase0-reference-notices{display:grid!important;gap:5px!important}
.phase0-reference-notices .phase0-import-state{display:none!important;margin:0!important;padding:6px 8px!important;border-radius:7px!important;font-size:9px!important;line-height:1.35!important}
.phase0-reference-notices .phase0-import-state.partial,.phase0-reference-notices .phase0-import-state.error{display:block!important}
.phase0-reference-notices .phase0-import-state.success{display:none!important}

.phase0-reference-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.phase0-reference-metrics .phase0-metric-edit,.phase0-reference-metrics .phase0-metric-display{position:relative!important;display:grid!important;align-content:start!important;min-height:116px!important;padding:12px 12px 10px!important;border:1px solid #dfe7e6!important;border-radius:10px!important;background:#fff!important;box-shadow:0 2px 9px rgba(31,56,61,.025)!important}
.phase0-reference-metrics .phase0-ui-icon{width:30px!important;height:30px!important;margin-bottom:8px!important;border-radius:7px!important;background:#edf5f5!important;color:#23767b!important}
.phase0-reference-metrics .phase0-metric-edit>span:not(.phase0-ui-icon):not(.phase0-field-error),.phase0-reference-metrics .phase0-metric-display>span:not(.phase0-ui-icon){margin-bottom:6px!important;color:#566b6f!important;font-size:9.5px!important;font-weight:600!important}
.phase0-reference-metrics .phase0-metric-input{display:flex!important;align-items:baseline!important;gap:5px!important;min-width:0!important}
.phase0-reference-metrics .phase0-metric-input input{width:100%!important;min-width:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#203438!important;font-size:19px!important;font-weight:900!important;line-height:1.05!important}
.phase0-reference-metrics .phase0-metric-input b{order:2!important;color:#253d41!important;font-size:14px!important;font-weight:900!important}
.phase0-reference-metrics .phase0-metric-display strong{color:#203438!important;font-size:19px!important;font-weight:900!important;line-height:1.05!important}
.phase0-reference-metrics small{align-self:end!important;margin-top:7px!important;color:#8e9b9d!important;font-size:8.5px!important}
.phase0-reference-metrics .phase0-field-error{position:absolute!important;left:10px!important;right:10px!important;bottom:2px!important;font-size:7.5px!important}

.phase0-card-analysis-strip{display:none!important}

.phase0-reference-middle{display:grid!important;grid-template-columns:1.02fr .98fr!important;gap:10px!important}
.phase0-reference-middle .phase0-card-subpanel{min-height:236px!important;padding:14px 16px!important}
.phase0-subpanel-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:8px!important}
.phase0-subpanel-title h3{margin:0!important;color:#23383c!important;font-size:14px!important;font-weight:900!important}
.phase0-subpanel-title>span{color:#7f8e91!important;font-size:9px!important}
.phase0-criteria-chip{display:flex!important;align-items:center!important;gap:5px!important;padding:5px 9px!important;border:1px solid #e0e7e6!important;border-radius:7px!important;background:#fff!important}
.phase0-criteria-chip .phase0-ui-icon{width:14px!important;height:14px!important;background:transparent!important;color:#698083!important}
.phase0-card-checklist{display:grid!important;gap:0!important}
.phase0-card-check-row{display:grid!important;grid-template-columns:26px minmax(0,1fr) 132px!important;align-items:center!important;gap:8px!important;min-height:35px!important;padding:4px 0!important;border-bottom:1px solid #edf1f1!important}
.phase0-card-check-row:last-child{border-bottom:0!important}
.phase0-check-number{display:grid!important;place-items:center!important;width:23px!important;height:23px!important;border:1px solid #d8e6e5!important;border-radius:50%!important;background:#eef6f6!important;color:#46787d!important;font-size:9.5px!important;font-weight:900!important}
.phase0-check-label{color:#43585c!important;font-size:10.5px!important}
.phase0-card-check-row select{height:28px!important;padding:2px 25px 2px 7px!important;border:0!important;background:transparent!important;color:#7a898c!important;font-size:9px!important;text-align:right!important;box-shadow:none!important}
.phase0-card-check-row:has(option[value="true"]:checked) select{color:#299168!important;font-weight:800!important}
.phase0-card-check-row:has(option[value="false"]:checked) select{color:#b45550!important;font-weight:800!important}

.phase0-reference-readiness .phase0-progress-content{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;min-height:182px!important}
.phase0-progress-ring{width:136px!important;height:136px!important;border-radius:50%!important;background:conic-gradient(#147a7e var(--progress),#e7ecec 0)!important}
.phase0-progress-ring:before{inset:11px!important;background:#fff!important}
.phase0-progress-ring strong{font-size:27px!important;color:#173f43!important;font-weight:900!important}
.phase0-readiness-copy{display:grid!important;align-content:center!important;justify-items:start!important;gap:12px!important}
.phase0-readiness-visual .phase0-requirements{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.phase0-readiness-visual .phase0-requirements strong{display:block!important;margin:0 0 7px!important;color:#b17611!important;font-size:12px!important;font-weight:900!important}
.phase0-readiness-visual .phase0-requirements.ready strong{color:#278764!important}
.phase0-readiness-visual .phase0-requirements p{max-width:220px!important;margin:0!important;color:#748588!important;font-size:9.5px!important;line-height:1.55!important}
.phase0-readiness-button{min-width:145px!important;height:38px!important;border-color:#2b8589!important;color:#216e73!important;font-size:10.5px!important;font-weight:850!important}
.phase0-readiness-button:not(:disabled){background:#078a8e!important;color:#fff!important;border-color:#078a8e!important;box-shadow:0 6px 15px rgba(8,132,136,.16)!important}

.phase0-reference-bottom{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important}
.phase0-reference-bottom .phase0-card-subpanel{min-height:138px!important;padding:12px 13px!important}
.phase0-action-card{display:flex!important;flex-direction:column!important;gap:10px!important}
.phase0-action-card-head{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
.phase0-action-card-head .phase0-ui-icon{width:40px!important;height:40px!important;border-radius:9px!important;background:#edf5f5!important;color:#1f7378!important}
.phase0-action-card-head h3{margin:1px 0 4px!important;color:#263b3f!important;font-size:12.5px!important;font-weight:900!important}
.phase0-action-card-head p{margin:0!important;color:#839194!important;font-size:8.8px!important;line-height:1.45!important}
.phase0-action-card-controls{display:flex!important;align-items:center!important;gap:8px!important;margin-top:auto!important}
.phase0-action-main,.phase0-action-details>summary{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:34px!important;padding:5px 10px!important;border:1px solid #bad3d1!important;border-radius:7px!important;background:#fff!important;color:#247076!important;font-size:9.5px!important;font-weight:850!important;cursor:pointer!important;list-style:none!important;box-shadow:none!important}
.phase0-action-details>summary::-webkit-details-marker{display:none!important}
.phase0-action-details[open]>summary{background:#f1f7f7!important}
.phase0-action-link{border:0!important;background:transparent!important;color:#2b777b!important;font-size:8.5px!important;font-weight:800!important;cursor:pointer!important}
.phase0-action-meta{display:flex!important;min-height:12px!important;gap:6px!important;color:#839194!important}
.phase0-action-meta strong,.phase0-action-meta span{font-size:7.8px!important;font-weight:600!important}
.phase0-action-details{margin-top:auto!important}
.phase0-action-details-body{display:grid!important;gap:7px!important;margin-top:8px!important;padding-top:8px!important;border-top:1px solid #e7eeee!important}
.phase0-action-details-body .phase0-field{gap:3px!important}
.phase0-action-details-body .phase0-field>span:first-child{font-size:8.3px!important;color:#6e8083!important}
.phase0-action-details-body input,.phase0-action-details-body select,.phase0-action-details-body textarea{min-height:32px!important;padding:5px 7px!important;border:1px solid #dce6e5!important;border-radius:7px!important;background:#fff!important;font-size:9px!important}
.phase0-action-details-body textarea{min-height:48px!important;resize:vertical!important}
.phase0-interest-check{margin:0!important;padding:7px 8px!important;border:1px solid #e1e9e8!important;border-radius:7px!important;background:#fafcfc!important;color:#52676b!important;font-size:9px!important}
.phase0-delete-link{margin-top:2px!important;color:#b44d47!important;font-size:8.5px!important;font-weight:800!important}

.phase0-ui-icon{display:grid!important;place-items:center!important;color:currentColor!important}
.phase0-ui-icon svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.phase0-card-address-icon .phase0-ui-icon,.phase0-card-address-icon .phase0-ui-icon svg{width:23px!important;height:23px!important}

.phase0-card-editor-actions{border-top:1px solid #e4e9e8!important;background:rgba(255,255,255,.99)!important;box-shadow:0 -7px 18px rgba(44,66,70,.025)!important}
.phase0-card-editor-actions .phase0-btn{height:38px!important;padding:6px 15px!important;border-radius:7px!important;font-size:10px!important;font-weight:850!important}
.phase0-card-editor-actions .phase0-btn.primary{min-width:116px!important;background:#147f83!important;border-color:#147f83!important;box-shadow:0 6px 15px rgba(20,127,131,.12)!important}
.phase0-card-editor-actions .phase0-drawer-actions-secondary,.phase0-card-editor-actions .phase0-drawer-actions-main{gap:8px!important}

@media (max-width:1100px) and (min-width:901px){
  .phase0-card-meta-grid{grid-template-columns:110px 95px 105px minmax(210px,1fr) 155px!important}
  .phase0-reference-metrics .phase0-metric-edit,.phase0-reference-metrics .phase0-metric-display{padding:11px 10px 9px!important}
}
@media (max-width:900px){
  .phase0-card-meta-grid{grid-template-columns:1fr 1fr!important;gap:10px!important;border-top:1px solid #e8eeee!important;padding-top:10px!important}
  .phase0-card-meta-item{padding:0!important;border-right:0!important;border-bottom:1px solid #edf1f1!important;padding-bottom:8px!important}
  .phase0-listing-meta{grid-column:1/-1!important}
  .phase0-status-meta{grid-column:1/-1!important}
  .phase0-reference-metrics{grid-template-columns:1fr 1fr!important}
  .phase0-reference-middle,.phase0-reference-bottom{grid-template-columns:1fr!important}
  .phase0-reference-readiness .phase0-progress-content{grid-template-columns:125px 1fr!important}
  .phase0-card-check-row{grid-template-columns:26px minmax(0,1fr) 120px!important}
}
@media (max-width:650px){
  .phase0-reference-summary{padding:12px!important}
  .phase0-card-address-block{grid-template-columns:36px minmax(0,1fr)!important}
  .phase0-card-address-icon{width:36px!important;height:36px!important}
  .phase0-card-address-fields input{font-size:16px!important}
  .phase0-card-meta-grid{grid-template-columns:1fr!important}
  .phase0-listing-meta,.phase0-status-meta{grid-column:auto!important}
  .phase0-reference-metrics{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .phase0-reference-metrics .phase0-metric-edit,.phase0-reference-metrics .phase0-metric-display{min-height:108px!important}
  .phase0-reference-readiness .phase0-progress-content{grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important}
  .phase0-readiness-copy{justify-items:center!important}
  .phase0-card-check-row{grid-template-columns:24px minmax(0,1fr)!important}
  .phase0-card-check-row select{grid-column:2!important;width:100%!important;text-align:left!important}
  .phase0-card-editor-actions{flex-direction:column-reverse!important}
}

/* ======================================================================
   SLOGI v67 — audit fixes: typography, scrolling, overflow and sticky heads
   ====================================================================== */
.slogi-search-page,
.slogi-search-page button,
.slogi-search-page input,
.slogi-search-page select,
.slogi-search-page textarea,
.slogi-search-page table{
  font-family:var(--slogi-ui-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif)!important;
}

/* Desktop list: never clip wide columns; allow deliberate horizontal scroll. */
@media(min-width:901px){
  .slogi-search-page .phase0-list-scroll{
    overflow:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable both-edges!important;
  }
  .slogi-search-page .phase0-list-scroll.has-more:not(.expanded){overflow:auto!important}
  .slogi-search-page .phase0-list-scroll.expanded{overflow-x:auto!important;overflow-y:visible!important}
  .slogi-search-page .phase0-list-table-head,
  .slogi-search-page .phase0-object-list{min-width:1180px!important}
  .slogi-search-page .phase0-list-table-head{font-size:12px!important;line-height:1.25!important}
  .slogi-search-page .phase0-card-main h4{font-size:15px!important}
  .slogi-search-page .phase0-card-main p,
  .slogi-search-page .phase0-cluster-link,
  .slogi-search-page .phase0-listing-link,
  .slogi-search-page .phase0-card-next .phase0-next-action{font-size:12px!important}
  .slogi-search-page .phase0-card-next small{font-size:10.5px!important}
  .slogi-search-page .phase0-inline-status{font-size:11.5px!important}
}

/* Object card modal: one scrolling body, stable header/footer. */
.phase0-drawer:not(.phase0-competitive-drawer){
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:hidden!important;
}
.phase0-card-editor-head{flex:0 0 auto!important}
.phase0-card-editor-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding-bottom:18px!important;
}
.phase0-card-editor-actions{
  position:relative!important;
  flex:0 0 auto!important;
  z-index:12!important;
}

/* Readable, consistent typography inside the object card. */
.phase0-card-editor-head p{font-size:12px!important}
.phase0-card-meta-item>span,
.phase0-card-meta-item .phase0-field>span:first-child,
.phase0-reference-metrics .phase0-metric-edit>span:not(.phase0-ui-icon):not(.phase0-field-error),
.phase0-reference-metrics .phase0-metric-display>span:not(.phase0-ui-icon),
.phase0-action-card-head p,
.phase0-action-details-body .phase0-field>span:first-child,
.phase0-interest-check,
.phase0-delete-link{font-size:11px!important;line-height:1.35!important}
.phase0-card-meta-item strong,.phase0-source-meta strong{font-size:13px!important}
.phase0-cluster-meta .phase0-field select,.phase0-listing-inline input,.phase0-status-select{font-size:12px!important}
.phase0-reference-metrics .phase0-metric-edit,.phase0-reference-metrics .phase0-metric-display{min-height:122px!important}
.phase0-reference-metrics .phase0-metric-input input,.phase0-reference-metrics .phase0-metric-display strong{font-size:20px!important}
.phase0-subpanel-title>span,.phase0-readiness-visual .phase0-requirements p{font-size:11px!important}
.phase0-check-label{font-size:12px!important}
.phase0-card-check-row select{font-size:11px!important}
.phase0-action-card-head h3{font-size:13.5px!important}
.phase0-action-main,.phase0-action-details>summary{font-size:11px!important;min-height:36px!important}
.phase0-action-meta strong,.phase0-action-meta span{font-size:10px!important}
.phase0-action-details-body input,.phase0-action-details-body select,.phase0-action-details-body textarea{font-size:12px!important}
.phase0-delete-link{min-height:34px!important;display:inline-flex!important;align-items:center!important;padding:5px 0!important}
.phase0-card-editor-actions .phase0-btn{font-size:11.5px!important;min-height:40px!important}

/* Competitive analysis: stable two-row sticky header without collisions. */
.phase0-competitive-table-wrap{
  max-height:min(62dvh,680px)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
}
.phase0-competitive-source-table{table-layout:auto!important}
.phase0-competitive-source-table th,
.phase0-competitive-source-table td{
  min-width:128px!important;
  max-width:260px!important;
  padding:9px 11px!important;
  font-size:11.5px!important;
  line-height:1.3!important;
}
.phase0-competitive-source-table thead th{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  vertical-align:middle!important;
}
.phase0-competitive-source-table .phase0-source-head-top th{
  top:0!important;
  height:48px!important;
  min-height:48px!important;
  z-index:8!important;
}
.phase0-competitive-source-table .phase0-source-head-bottom th{
  top:48px!important;
  height:48px!important;
  min-height:48px!important;
  z-index:7!important;
}
.phase0-competitive-source-table th:first-child,.phase0-competitive-source-table td:first-child{min-width:64px!important;left:0!important}
.phase0-competitive-source-table th:nth-child(2),.phase0-competitive-source-table td:nth-child(2){min-width:200px!important;left:64px!important}
.phase0-competitive-source-table thead th:first-child,.phase0-competitive-source-table thead th:nth-child(2){z-index:12!important}

@media(max-width:900px){
  .phase0-page-heading p,.phase0-section-head p{font-size:11.5px!important}
  .phase0-kpi span{font-size:9.5px!important}
  .phase0-card-main h4{font-size:15px!important}
  .phase0-card-main p,.phase0-cluster-link,.phase0-card-progress,.phase0-card-economy span,.phase0-next-action{font-size:11px!important}
  .phase0-card-economy strong{font-size:12.5px!important}
  .phase0-inline-status{font-size:11px!important}
  .phase0-drawer:not(.phase0-competitive-drawer){height:100dvh!important;max-height:100dvh!important}
  .phase0-card-editor-body{padding-bottom:14px!important}
  .phase0-card-editor-actions{padding-bottom:calc(9px + env(safe-area-inset-bottom))!important}
}

/* ======================================================================
   SLOGI v68 — scrolling model + competitive header collision fix
   ====================================================================== */

/* Main search page: keep the document scrollable and prevent wheel lock. */
html{overflow-y:auto!important;scroll-behavior:auto!important}
body.slogi-search-page{overflow-y:auto!important;overscroll-behavior-y:auto!important}
@media(min-width:901px){
  .slogi-search-page .phase0-list-scroll{
    overflow-x:auto!important;
    overflow-y:auto!important;
    overscroll-behavior:auto!important;
    touch-action:pan-x pan-y!important;
    scrollbar-gutter:stable!important;
    -webkit-overflow-scrolling:touch;
  }
  .slogi-search-page .phase0-list-scroll.has-more:not(.expanded){
    max-height:min(824px,calc(100dvh - 190px))!important;
  }
  .slogi-search-page .phase0-list-scroll.expanded{
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
  }
  .slogi-search-page .phase0-object-list{
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
}

/* Object card: the drawer itself is a bounded flex column. Only its body scrolls. */
.phase0-overlay:not([hidden]){overflow:hidden!important}
.phase0-drawer:not(.phase0-competitive-drawer){
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
@media(min-width:901px){
  .phase0-drawer:not(.phase0-competitive-drawer){
    height:min(94dvh,980px)!important;
    max-height:94dvh!important;
  }
}
.phase0-card-editor-head,
.phase0-card-editor-actions{flex:0 0 auto!important}
.phase0-card-editor-body{
  display:block!important;
  flex:1 1 0!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable!important;
  -webkit-overflow-scrolling:touch;
  padding-bottom:24px!important;
}
.phase0-card-editor-body> * + *{margin-top:12px}
.phase0-card-editor-actions{position:relative!important;bottom:auto!important}

/* Competitive analysis drawer uses the same reliable flex scrolling model. */
.phase0-competitive-drawer{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:hidden!important;
}
@media(min-width:901px){
  .phase0-competitive-drawer{height:92dvh!important;max-height:92dvh!important}
}
.phase0-competitive-drawer>.phase0-drawer-head{flex:0 0 auto!important}
.phase0-competitive-drawer>.phase0-drawer-body{
  display:flex!important;
  flex:1 1 0!important;
  min-height:0!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding-bottom:14px!important;
}
.phase0-competitive-status,.phase0-competitive-toolbar{flex:0 0 auto!important}
.phase0-competitive-table-wrap{
  flex:1 1 0!important;
  min-height:220px!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:auto!important;
  touch-action:pan-x pan-y!important;
  scrollbar-gutter:stable both-edges!important;
  -webkit-overflow-scrolling:touch;
}

/* Sticky the whole THEAD instead of guessing row heights.
   This lets long merged Excel headers grow naturally without overlapping row 2. */
.phase0-competitive-source-table thead{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
}
.phase0-competitive-source-table thead th{
  top:auto!important;
  height:auto!important;
  min-height:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  line-height:1.28!important;
  vertical-align:middle!important;
  padding:10px 12px!important;
  background-clip:padding-box!important;
}
.phase0-competitive-source-table .phase0-source-head-top th,
.phase0-competitive-source-table .phase0-source-head-bottom th{
  top:auto!important;
  height:auto!important;
  min-height:0!important;
}
.phase0-competitive-source-table .phase0-source-head-top th{background:#e8f0eb!important}
.phase0-competitive-source-table .phase0-source-head-bottom th{background:#f6eadc!important}
/* Keep frozen first columns, but do not make each header cell independently sticky vertically. */
.phase0-competitive-source-table thead th:first-child,
.phase0-competitive-source-table thead th:nth-child(2){
  position:sticky!important;
  z-index:24!important;
}
.phase0-competitive-source-table thead th:first-child{left:0!important}
.phase0-competitive-source-table thead th:nth-child(2){left:64px!important}

@media(max-width:900px){
  .phase0-drawer:not(.phase0-competitive-drawer),
  .phase0-competitive-drawer{
    height:100dvh!important;
    max-height:100dvh!important;
  }
  .phase0-card-editor-body{padding-bottom:18px!important}
  .phase0-competitive-drawer>.phase0-drawer-body{overflow:hidden!important}
  .phase0-competitive-table-wrap{min-height:0!important}
}

/* ===== v69: Add-object modal scrolling fix =====
   The object drawer contains a <form> as its only child. The form must itself
   be the bounded flex column; otherwise the editor body cannot become the
   scrolling flex item and the long "Добавить объект" form overflows silently. */
#phase0-object-drawer > #phase0-object-form{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
#phase0-object-form > .phase0-card-editor-head,
#phase0-object-form > .phase0-card-editor-actions{
  flex:0 0 auto!important;
}
#phase0-object-form > .phase0-card-editor-body{
  display:block!important;
  flex:1 1 0!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable!important;
  -webkit-overflow-scrolling:touch!important;
}
/* Footer/header belong to the flex layout, not to viewport sticky positioning. */
#phase0-object-form > .phase0-card-editor-head,
#phase0-object-form > .phase0-card-editor-actions{
  position:relative!important;
  top:auto!important;
  bottom:auto!important;
}
@media(max-width:900px){
  #phase0-object-drawer > #phase0-object-form{
    height:100dvh!important;
    max-height:100dvh!important;
  }
  #phase0-object-form > .phase0-card-editor-body{
    padding-bottom:20px!important;
  }
}

/* v76.1.1 — My Premises, add-object and competitive-analysis visual alignment. */
body.slogi-search-page{padding-top:0!important;margin-top:0!important;background:var(--slogi-bg,#f2ede8)!important;overflow-x:clip!important}
body.slogi-search-page>.site-header{position:sticky!important;top:12px!important;left:auto!important;right:auto!important;width:calc(100% - 32px)!important;height:var(--site-header-height,72px)!important;min-height:var(--site-header-height,72px)!important;max-height:var(--site-header-height,72px)!important;margin:12px auto 18px!important;border-radius:32px!important}
.slogi-search-page .phase0-main{max-width:var(--site-layout-max,1600px)!important;padding:10px var(--site-layout-gutter,24px) 72px!important;background:transparent!important}
.slogi-search-page .phase0-page-toolbar{min-height:0!important;padding:30px 34px!important;border:1px solid var(--slogi-line,#ecdcc5)!important;border-radius:30px!important;background:linear-gradient(135deg,var(--slogi-surface,#fcf5eb),#eef5f0)!important;box-shadow:var(--slogi-shadow)!important}
.slogi-search-page .phase0-page-heading h1{font-size:clamp(36px,4vw,54px)!important;line-height:1.02!important;letter-spacing:-.035em!important;color:var(--slogi-text,#3c3c3c)!important}.slogi-search-page .phase0-page-heading p{font-size:14px!important;color:var(--slogi-muted,#716d67)!important}
.slogi-search-page .phase0-kpis,.slogi-search-page .phase0-toolbar,.slogi-search-page .phase0-list-column,.slogi-search-page .phase0-map-column{border-color:var(--slogi-line,#ecdcc5)!important;background:var(--slogi-surface-strong,#fffaf3)!important;box-shadow:none!important}
.slogi-search-page .phase0-list-column,.slogi-search-page .phase0-map-column{border-radius:24px!important}.slogi-search-page .phase0-toolbar{border-radius:18px!important}
.slogi-search-page .phase0-card{border-color:var(--slogi-line,#ecdcc5)!important;border-radius:18px!important;background:#fffdf9!important}.slogi-search-page .phase0-card:hover{border-color:#cdbca8!important;box-shadow:0 10px 28px rgba(73,61,47,.08)!important}
.phase0-card-origin{display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:6px!important;color:var(--slogi-muted,#716d67)!important;font-size:10px!important}.phase0-card-origin span{padding:4px 8px!important;border-radius:999px!important;background:var(--slogi-teal-soft,#dce9e6)!important;color:var(--slogi-teal-deep,#285b58)!important;font-weight:800!important}.phase0-card-origin time{font-weight:650!important}
.phase0-drawer,.phase0-competitive-drawer{border:1px solid var(--slogi-line,#ecdcc5)!important;border-radius:28px!important;background:var(--slogi-surface,#fcf5eb)!important;box-shadow:0 28px 80px rgba(73,61,47,.22)!important}.phase0-drawer-head{background:var(--slogi-surface,#fcf5eb)!important;border-color:var(--slogi-line,#ecdcc5)!important}.phase0-card-editor-body,.phase0-competitive-drawer>.phase0-drawer-body{background:var(--slogi-bg,#f2ede8)!important}
.phase0-form-section,.phase0-card-summary-panel,.phase0-card-subpanel,.phase0-card-metrics-panel,.phase0-competitive-status,.phase0-competitive-toolbar,.phase0-competitive-source-table-wrap{border-color:var(--slogi-line,#ecdcc5)!important;border-radius:20px!important;background:var(--slogi-surface-strong,#fffaf3)!important;box-shadow:none!important}
.phase0-field input,.phase0-field select,.phase0-field textarea,.phase0-toolbar input,.phase0-toolbar select{min-height:44px!important;border-color:#d8cbbc!important;border-radius:14px!important;background:#fffdf9!important;color:var(--slogi-text,#3c3c3c)!important}.phase0-btn{min-height:44px!important;border-radius:18px!important}.phase0-btn.primary{border-color:var(--slogi-gold,#e39b2f)!important;background:var(--slogi-gold,#e39b2f)!important;color:#2f2b26!important}
.phase0-competitive-table th{background:#e5efec!important;color:var(--slogi-teal-deep,#285b58)!important}.phase0-competitive-table td{border-color:#eadfce!important;background:#fffdf9!important}.phase0-empty-actions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;margin-top:16px!important}.phase0-empty-actions a{text-decoration:none!important}
.phase0-toast{right:18px!important;bottom:18px!important;left:auto!important;z-index:var(--slogi-z-toast,2000)!important;max-width:min(420px,calc(100vw - 36px))!important;border-radius:18px!important}
@media(max-width:900px){body.slogi-search-page>.site-header{top:8px!important;width:calc(100% - 20px)!important;height:60px!important;min-height:60px!important;max-height:60px!important;margin:8px auto 14px!important;border-radius:26px!important}.slogi-search-page .phase0-main{padding:4px 14px 70px!important}.slogi-search-page .phase0-page-toolbar{padding:22px!important}.slogi-search-page .phase0-page-heading h1{font-size:clamp(32px,8vw,42px)!important}.phase0-drawer,.phase0-competitive-drawer{border-radius:0!important}.phase0-toast{right:10px!important;bottom:10px!important;max-width:calc(100vw - 20px)!important}}
