
    :root {
      --bg:#f4f5f7;
      --surface:#ffffff;
      --surface-2:#f8f8f8;
      --text:#15171a;
      --muted:#747982;
      --line:#e9e9ec;
      --yellow:#ffc928;
      --yellow-soft:#fff5c7;
      --purple:#6256e8;
      --purple-soft:#eeecff;
      --green:#20a46b;
      --green-soft:#e9f8f1;
      --blue:#3d77ea;
      --blue-soft:#edf3ff;
      --red:#e45b62;
      --orange:#e9972e;
      --shadow:0 18px 55px rgba(24, 29, 39, .12);
      --nav-h:78px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);overflow:hidden}
    button,input,textarea,select{font:inherit}
    button{cursor:pointer}
    .desktop-bg{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 30% 0%,#fff9dc 0,transparent 34%),linear-gradient(145deg,#f0f1f4,#f8f8f9);padding:18px}
    .phone{position:relative;width:min(430px,100%);height:min(920px,calc(100vh - 36px));background:#fff;border-radius:34px;overflow:hidden;box-shadow:0 30px 90px rgba(30,35,50,.18);border:1px solid rgba(20,20,20,.07)}
    .view{position:absolute;inset:0 0 var(--nav-h);display:none;background:var(--bg);overflow:auto;overscroll-behavior:contain}
    .view.active{display:block}
    .header{position:sticky;top:0;z-index:40;padding:17px 18px 12px;background:linear-gradient(#fff 72%,rgba(255,255,255,.94));border-bottom:1px solid rgba(233,233,236,.75)}
    .header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
    .brand{display:flex;align-items:center;gap:10px}
    .brand-mark{width:40px;height:40px;border-radius:13px;background:var(--yellow);display:grid;place-items:center;font-size:21px;box-shadow:0 7px 18px rgba(255,201,40,.3)}
    .brand h1,.title-block h1{margin:0;font-size:20px;line-height:1.1;letter-spacing:-.02em}
    .brand p,.title-block p{margin:4px 0 0;color:var(--muted);font-size:12.5px}
    .avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#1d1f23;color:#fff;font-size:13px;font-weight:800;flex:0 0 auto}
    .icon-btn{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:13px;display:grid;place-items:center;color:#333}
    .section{padding:16px 16px 0}
    .section:last-child{padding-bottom:26px}
    .section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
    .section-head h2{margin:0;font-size:16px;letter-spacing:-.015em}
    .section-head button{border:0;background:none;padding:0;color:var(--purple);font-size:12px;font-weight:750}
    .card{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 18px rgba(23,28,38,.035)}

    /* MAP */
    #mapView{overflow:hidden;background:#e8ebe9}
    #map{position:absolute;inset:0;z-index:1}
    .map-top{position:absolute;z-index:500;top:12px;left:12px;right:12px;display:grid;gap:9px;pointer-events:none}
    .map-bar{display:flex;align-items:center;gap:9px;pointer-events:auto}
    .map-search{flex:1;height:48px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border:1px solid rgba(224,226,229,.95);border-radius:17px;box-shadow:0 10px 30px rgba(31,37,47,.13);display:flex;align-items:center;gap:10px;padding:0 14px}
    .map-search input{border:0;outline:0;background:transparent;width:100%;font-size:14px}
    .map-profile{width:48px;height:48px;border:3px solid #fff;box-shadow:0 10px 30px rgba(31,37,47,.13)}
    .hive-chip{pointer-events:auto;justify-self:start;background:rgba(30,31,34,.91);backdrop-filter:blur(12px);color:#fff;border-radius:14px;padding:9px 12px;display:flex;gap:8px;align-items:center;font-size:12px;box-shadow:0 8px 20px rgba(31,37,47,.14)}
    .hive-chip span:last-child{opacity:.78}
    .map-filters{position:absolute;z-index:500;top:112px;left:12px;right:12px;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
    .map-filters::-webkit-scrollbar{display:none}
    .filter-chip{white-space:nowrap;border:1px solid rgba(224,226,229,.95);background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-radius:999px;padding:9px 12px;font-size:12px;font-weight:700;box-shadow:0 6px 18px rgba(31,37,47,.08)}
    .filter-chip.active{background:#1e2024;color:#fff;border-color:#1e2024}
    .map-bottom-card{position:absolute;z-index:510;left:12px;right:12px;bottom:14px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border:1px solid rgba(229,231,235,.95);border-radius:22px;padding:14px;box-shadow:0 18px 42px rgba(28,34,44,.16)}
    .map-bottom-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
    .map-bottom-card h3{margin:0;font-size:15px}
    .map-bottom-card p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
    .hive-progress{margin-top:11px;height:7px;border-radius:99px;background:#ededee;overflow:hidden}
    .hive-progress>div{height:100%;width:23%;background:var(--yellow)}
    .map-bottom-meta{display:flex;justify-content:space-between;margin-top:7px;color:var(--muted);font-size:11px}
    .mini-button{border:0;background:var(--yellow-soft);color:#775c00;border-radius:12px;padding:9px 10px;font-weight:800;font-size:11px;white-space:nowrap}
    .marker{width:38px;height:38px;border-radius:13px 13px 13px 5px;transform:rotate(-45deg);display:grid;place-items:center;border:3px solid #fff;box-shadow:0 6px 17px rgba(0,0,0,.22)}
    .marker span{transform:rotate(45deg);font-size:15px}
    .marker.master{background:var(--purple)}
    .marker.listing{background:var(--green)}
    .marker.event{background:var(--blue)}
    .leaflet-popup-content-wrapper{border-radius:18px;box-shadow:var(--shadow)}
    .leaflet-popup-content{margin:15px 16px;width:220px!important}
    .popup h3{margin:0 0 5px;font-size:15px}
    .popup p{margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.45}
    .popup .meta{font-size:11px;margin-top:3px;color:#60656e}
    .popup button{width:100%;border:0;border-radius:11px;background:#1e2024;color:#fff;padding:9px 10px;margin-top:10px;font-size:11px;font-weight:750}

    /* CHAT */
    .chat-list{padding:10px 12px 24px}
    .chat-search{margin:0 4px 10px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px 12px;display:flex;gap:8px;align-items:center}
    .chat-search input{border:0;outline:0;width:100%;background:transparent;font-size:13px}
    .chat-item{display:flex;gap:12px;align-items:center;padding:13px 8px;border-bottom:1px solid var(--line);cursor:pointer}
    .chat-item:last-child{border-bottom:0}
    .chat-icon{width:48px;height:48px;border-radius:16px;background:var(--surface-2);display:grid;place-items:center;font-size:20px;flex:0 0 auto}
    .chat-main{min-width:0;flex:1}
    .chat-title{display:flex;justify-content:space-between;gap:10px;align-items:center}
    .chat-title strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .chat-title span{font-size:10px;color:var(--muted)}
    .chat-preview{display:flex;justify-content:space-between;gap:8px;margin-top:4px}
    .chat-preview p{margin:0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:245px}
    .unread{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--yellow);display:grid;place-items:center;font-size:10px;font-weight:800}

    /* BILLS */
    .summary-card{margin:2px 16px 0;padding:18px;border-radius:24px;background:#1c1e22;color:#fff;box-shadow:0 14px 35px rgba(28,30,34,.18)}
    .summary-card .label{font-size:12px;color:#b8bbc2}
    .summary-card .total{font-size:30px;font-weight:850;letter-spacing:-.04em;margin-top:5px}
    .summary-row{display:flex;gap:8px;margin-top:14px}
    .summary-pill{background:#2a2d32;border-radius:12px;padding:9px 10px;font-size:11px;flex:1}
    .summary-pill span{display:block;color:#9da1a8;margin-bottom:3px}
    .bill-grid{display:grid;gap:10px}
    .bill{padding:15px}
    .bill-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
    .bill-service{display:flex;gap:10px;align-items:center}
    .service-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--blue-soft);font-size:18px}
    .bill:nth-child(2) .service-icon{background:var(--yellow-soft)}
    .bill:nth-child(3) .service-icon{background:#fff0ea}
    .bill:nth-child(4) .service-icon{background:var(--purple-soft)}
    .bill h3{margin:0;font-size:13.5px}
    .bill small{display:block;color:var(--muted);margin-top:3px;font-size:10.5px}
    .bill-amount{text-align:right;font-size:13px;font-weight:850}
    .bill-amount.ok{color:var(--green)}
    .bill-bottom{margin-top:12px;padding-top:11px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:end}
    .reading span{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}
    .reading strong{font-size:12px}
    .bill-action{border:0;background:#f1f2f4;border-radius:10px;padding:8px 10px;font-size:10.5px;font-weight:800}
    .provider-card{padding:15px;display:flex;gap:11px;align-items:center}
    .provider-logo{width:42px;height:42px;border-radius:14px;background:var(--yellow);display:grid;place-items:center;font-weight:900}
    .provider-card h3{margin:0;font-size:13px}
    .provider-card p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.4}

    /* PROFILE */
    .profile-hero{padding:22px 18px 18px;text-align:center;background:#fff;border-bottom:1px solid var(--line)}
    .profile-avatar{width:82px;height:82px;border-radius:28px;background:#1e2024;color:#fff;display:grid;place-items:center;margin:0 auto 11px;font-size:24px;font-weight:850;box-shadow:0 12px 28px rgba(30,32,36,.18)}
    .profile-hero h2{margin:0;font-size:20px}
    .profile-hero p{margin:5px 0 0;color:var(--muted);font-size:12px}
    .verified{display:inline-flex;align-items:center;gap:5px;margin-top:9px;background:var(--green-soft);color:#18764d;border-radius:999px;padding:6px 9px;font-size:10.5px;font-weight:800}
    .info-card{padding:4px 14px}
    .info-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
    .info-row:last-child{border-bottom:0}
    .info-symbol{width:36px;height:36px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;flex:0 0 auto}
    .info-text{flex:1;min-width:0}
    .info-text span{display:block;color:var(--muted);font-size:10.5px;margin-bottom:2px}
    .info-text strong{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .chev{color:#aaa;font-size:18px}
    .toggle{width:42px;height:24px;border-radius:999px;background:#e1e2e5;padding:3px;flex:0 0 auto;transition:.2s}
    .toggle:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.2s}
    .toggle.on{background:#1f2125}.toggle.on:after{transform:translateX(18px)}

    /* BOTTOM NAV */
    .bottom-nav{position:absolute;z-index:900;left:0;right:0;bottom:0;height:var(--nav-h);padding:8px 10px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr 72px 1fr 1fr;align-items:center;background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border-top:1px solid var(--line)}
    .nav-btn{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;color:#93979e;font-size:9.5px;font-weight:700;padding:5px 2px}
    .nav-btn .nav-icon{font-size:20px;line-height:1;filter:grayscale(1);opacity:.7}
    .nav-btn.active{color:#1a1c20}.nav-btn.active .nav-icon{filter:none;opacity:1}
    .plus-btn{width:58px;height:58px;border:0;border-radius:20px;background:var(--yellow);font-size:29px;font-weight:500;display:grid;place-items:center;margin:-27px auto 0;box-shadow:0 10px 24px rgba(255,201,40,.4),0 0 0 6px #fff;color:#1a1a1a}

    /* MODALS */
    .modal-backdrop{display:none;position:absolute;z-index:1200;inset:0;background:rgba(18,22,29,.38);backdrop-filter:blur(3px);align-items:flex-end}
    .modal-backdrop.open{display:flex}
    .sheet{width:100%;max-height:89%;overflow:auto;background:#fff;border-radius:28px 28px 0 0;padding:8px 18px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px rgba(24,28,38,.15)}
    .sheet-handle{width:42px;height:5px;border-radius:999px;background:#ddd;margin:0 auto 13px}
    .sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:17px}
    .sheet-head h2{margin:0;font-size:20px;letter-spacing:-.025em}
    .sheet-head p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
    .close-btn{border:0;background:#f2f2f3;border-radius:12px;width:38px;height:38px;font-size:16px}
    .create-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}
    .create-type{border:1.5px solid var(--line);border-radius:17px;background:#fff;padding:14px;text-align:left}
    .create-type.active{border-color:#202226;background:#f8f8f8}
    .create-type .big{font-size:22px;margin-bottom:8px}.create-type strong{display:block;font-size:12.5px}.create-type span{display:block;color:var(--muted);font-size:10.5px;margin-top:4px;line-height:1.35}
    .form{display:grid;gap:11px}
    label{display:grid;gap:6px;font-size:11.5px;font-weight:750}
    input,textarea,select{border:1px solid var(--line);border-radius:13px;padding:11px 12px;outline:0;background:#fff;color:var(--text);width:100%}
    textarea{min-height:86px;resize:vertical}
    .form-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
    .photo-drop{border:1.5px dashed #d8dade;border-radius:16px;padding:18px;text-align:center;background:#fafafa;color:var(--muted);font-size:11px}
    .primary{border:0;border-radius:14px;background:#1e2024;color:#fff;padding:13px 14px;font-weight:800;width:100%}
    .secondary{border:1px solid var(--line);border-radius:14px;background:#fff;color:#222;padding:12px 14px;font-weight:750;width:100%}
    .chat-sheet{padding-bottom:12px}
    .messages{display:grid;gap:9px;padding:4px 0 14px}
    .bubble{max-width:82%;padding:10px 12px;border-radius:15px;background:#f0f1f3;font-size:11.5px;line-height:1.45}
    .bubble.me{justify-self:end;background:var(--yellow-soft)}
    .composer{display:flex;gap:8px;position:sticky;bottom:0;background:#fff;padding:8px 0}
    .composer input{flex:1}
    .composer button{width:44px;border:0;border-radius:13px;background:#1e2024;color:#fff}
    .toast{position:absolute;z-index:1500;left:50%;bottom:98px;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#1d1f23;color:#fff;border-radius:12px;padding:10px 13px;font-size:11px;transition:.2s;white-space:nowrap;max-width:84%;overflow:hidden;text-overflow:ellipsis}
    .toast.show{opacity:1;transform:translate(-50%,0)}
    @media(max-width:500px){.desktop-bg{padding:0;background:#fff}.phone{width:100%;height:100%;border-radius:0;border:0}.modal-backdrop{position:fixed}.toast{position:fixed}}
  
/* Keep the prototype's yellow, rounded visual language. */
body{overflow:auto} .desktop-bg{min-height:100dvh;height:auto}.phone{width:min(1180px,100%);height:calc(100dvh - 36px);min-height:520px;display:flex;flex-direction:column;border-radius:24px}
.header{position:relative}.brand h1{font-size:23px}.brand p{max-width:620px}.header-actions{display:flex;gap:8px;align-items:center}.header-actions button,.filters button{min-height:44px}.header-actions .primary{width:auto}.workspace{display:grid;grid-template-columns:380px 1fr;flex:1;min-height:0}.catalog{overflow:auto;padding:16px;background:var(--bg)}.search-label{font-size:12px;color:#515761}.filters{display:flex;gap:6px;overflow:auto;padding:12px 0}.filter-chip{box-shadow:none}.catalog-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.catalog-head h2{font-size:15px}.text-btn{border:0;background:transparent;color:#5143cc;min-height:44px}.listing-card{padding:17px;margin-bottom:10px;cursor:pointer;width:100%;text-align:left;color:var(--text)}.listing-card:hover{border-color:#aaa}.listing-card h3{margin:9px 0;font-size:16px}.listing-card p{font-size:13px;color:#565d67;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}.listing-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#616772}.badge{display:inline-block;padding:4px 7px;border-radius:7px;background:var(--yellow-soft);color:#6b5200;font-size:10px}.price{font-size:14px;font-weight:750}.map-wrap{position:relative;min-height:320px;background:#e8ebe9}#map{inset:0}.map-label{position:absolute;top:14px;left:14px;right:14px;z-index:500;pointer-events:none;background:#fff;border-radius:14px;padding:12px;font-size:12px;box-shadow:0 6px 18px #0001}.map-label strong{display:block;font-size:14px;margin-bottom:4px}.map-label span{color:#5c626d}.leaflet-top{top:85px}.leaflet-control-attribution{font-size:10px}.notice{margin:0;padding:10px 18px;background:var(--yellow-soft);color:#6b5200;font-size:12px;line-height:1.45}.status{font-size:12px;color:#515761;line-height:1.5;overflow-wrap:anywhere}.status.error{color:#a32c34}.empty{padding:24px 0;color:#515761;font-size:14px;line-height:1.6}dialog{border:0;border-radius:24px;padding:22px;width:min(480px,calc(100% - 24px));max-height:90dvh;box-shadow:var(--shadow);color:var(--text)}dialog::backdrop{background:#18202b66;backdrop-filter:blur(3px)}dialog h2{margin:0;font-size:22px}dialog p{font-size:13px;line-height:1.6;color:#565d67}.sheet-head{margin-bottom:14px}.close-btn{flex-shrink:0;min-width:44px;min-height:44px}.form{gap:14px}label{font-size:12px}input,textarea,select{font-size:16px;min-height:44px}.form-note{font-size:12px;margin:0}.dialog-actions{display:flex;gap:10px;margin-top:18px}.dialog-actions>*{flex:1;text-align:center;text-decoration:none}.detail-body{white-space:pre-wrap;overflow-wrap:anywhere}.primary:disabled{opacity:.6;cursor:wait}.danger{color:#a32c34}.account-email{overflow-wrap:anywhere}.mobile-tabs{display:none}:focus-visible{outline:3px solid var(--purple);outline-offset:3px}button,input,textarea{touch-action:manipulation}.leaflet-popup-content button{min-height:44px}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;z-index:2000;background:white;padding:12px}
@media(max-width:700px){.desktop-bg{padding:0}.phone{width:100%;height:100dvh;min-height:0;border:0;border-radius:0}.header{padding:14px 12px}.brand-mark{width:36px;height:36px}.brand p{font-size:11px}.header-actions{gap:4px}.header-actions button{font-size:12px;padding:10px}.workspace{display:block;position:relative}.catalog,.map-wrap{height:100%;width:100%}.map-wrap{display:none}.workspace.show-map .catalog{display:none}.workspace.show-map .map-wrap{display:block}.mobile-tabs{display:flex;gap:8px;padding:9px 12px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.mobile-tabs button{flex:1;min-height:44px;border:0;border-radius:12px;background:#f0f1f4}.mobile-tabs button[aria-pressed=true]{background:var(--yellow);font-weight:750}.notice{font-size:11px;padding:8px 12px}.header-actions .primary{max-width:110px}.map-label{font-size:11px}.brand h1{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
[hidden]{display:none!important}summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px} .header,.notice,.mobile-tabs{flex-shrink:0}
@media(max-width:700px){.map-wrap{min-height:0}.brand{min-width:0}.brand p{white-space:normal}.brand-mark{flex-shrink:0}}
