/* Мобильное приложение покупателя и жильца: макет телефона + консоль администратора */
.app-layout{display:grid;grid-template-columns:400px minmax(0,1fr);gap:18px;align-items:start}
.app-users td{white-space:nowrap}.app-users td:first-child{white-space:normal}.app-users td:nth-child(2){white-space:normal}
@media(max-width:1750px){.app-layout .app-users td:nth-child(3),.app-layout .app-users th:nth-child(3),.app-layout .app-users td:nth-child(4),.app-layout .app-users th:nth-child(4){display:none}}
.app-phone-col{position:sticky;top:0}
.app-user-pick{margin-bottom:12px;display:flex;flex-direction:column;gap:8px}
.app-role-switch{display:flex;gap:6px}.app-role-switch .chip{flex:1;justify-content:center;text-align:center}
.app-user-pick .erp-select{width:100%}.app-user-pick select{width:100%}
@media(max-width:1300px){.app-layout{grid-template-columns:1fr}.app-phone-col{position:static}}

/* корпус */
.ph-frame{width:392px;max-width:100%;margin:0 auto;padding:12px;border-radius:44px;background:#15171a;box-shadow:0 22px 50px rgba(10,14,10,.35),inset 0 0 0 2px #2c3036;position:relative}
.ph-frame::before{content:'';position:absolute;left:50%;top:20px;transform:translateX(-50%);width:112px;height:26px;border-radius:14px;background:#0b0c0e;z-index:3}
.ph-screen{position:relative;height:740px;border-radius:34px;overflow:hidden;background:#f4f5f0;display:flex;flex-direction:column;color:#171914}
.ph-status{display:flex;justify-content:space-between;align-items:center;padding:14px 22px 6px;font-size:12px;font-weight:700;color:#171914}
.ph-status i{flex:1}
.ph-body{flex:1;overflow:auto;padding:8px 14px 16px;scrollbar-width:thin}
.ph-body h4{margin:8px 0 10px;font-size:19px;letter-spacing:-.3px}
.ph-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:8px 8px 12px;background:#fff;border-top:1px solid #e6e8e1}
.ph-tabs button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9.5px;font-weight:700;color:#8a8f84;padding:4px 0;border-radius:10px;font-family:inherit}
.ph-tabs button i{font-style:normal;font-size:17px;line-height:1}
.ph-tabs button.active{color:#171914;background:#f1f3ea}
.ph-notif{position:absolute;left:12px;right:12px;top:52px;z-index:5;background:rgba(23,25,20,.94);color:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 12px 30px rgba(0,0,0,.3);cursor:pointer;animation:phNotif .35s ease-out}
.ph-notif b{display:block;font-size:13px}.ph-notif small{display:block;font-size:11.5px;color:#c9cdc0;margin-top:2px}
@keyframes phNotif{from{transform:translateY(-20px);opacity:0}to{transform:none;opacity:1}}

/* главная */
.ph-hello{margin:4px 2px 10px}.ph-hello small{display:block;font-size:12px;color:#7d8278}.ph-hello b{font-size:22px;letter-spacing:-.4px}
.ph-unit{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#1d2119,#2f3527);color:#fff;border-radius:18px;padding:14px 16px;margin-bottom:12px;border-left:4px solid var(--pc)}
.ph-unit small{display:block;font-size:11px;color:#b8bdae}.ph-unit b{display:block;font-size:15px;margin:2px 0}.ph-unit span{font-size:11px;color:#d6f12b}.ph-unit i{margin-left:auto;font-style:normal;font-size:26px}
.ph-card{background:#fff;border:1px solid #e6e8e1;border-radius:16px;padding:13px 14px;margin-bottom:12px}
.ph-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.ph-row b{font-size:13.5px}.ph-row small{color:#7d8278;font-size:11px}
.ph-card > small,.ph-card .ph-muted{display:block;font-size:11px;color:#7d8278}
.ph-progress{height:7px;border-radius:5px;background:#eef0e8;overflow:hidden;margin:8px 0 6px}.ph-progress i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#9cae13,#d6f12b)}
.ph-pay.overdue .ph-progress i{background:linear-gradient(90deg,#c53030,#e5484d)}
.ph-next{display:flex;flex-direction:column;margin:10px 0 8px}.ph-next span{font-size:11px;color:#7d8278}.ph-next b{font-size:22px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.ph-next small{font-size:11px;color:#7d8278}
.ph-btn{width:100%;border:1px solid #d9dccf;background:#f1f3ea;color:#171914;border-radius:12px;padding:11px 12px;font-weight:700;font-size:13px;font-family:inherit;cursor:pointer;margin-top:6px}
.ph-btn.primary{background:#171914;color:#fff;border-color:#171914}
.ph-btn.primary:hover{background:#2b2f24}
.ph-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.ph-quick.two{grid-template-columns:1fr 1fr;margin-top:10px;margin-bottom:0}
.ph-quick button{border:1px solid #e6e8e1;background:#fff;border-radius:14px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10.5px;font-weight:700;color:#171914;font-family:inherit;cursor:pointer}
.ph-quick button i{font-style:normal;font-size:20px;line-height:1}
.ph-quick button:hover{border-color:#9cae13;background:#f6f9e4}
.ph-photo{position:relative;border-radius:12px;overflow:hidden;height:130px;margin:4px 0 6px}.ph-photo img{width:100%;height:100%;object-fit:cover;display:block}.ph-photo span{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,.55);color:#fff;font-size:10px;padding:3px 7px;border-radius:8px}
.ph-notice{padding:8px 0;border-top:1px solid #eef0e8}.ph-notice:first-of-type{border-top:0;padding-top:0}.ph-notice b{display:block;font-size:12.5px}.ph-notice small{display:block;font-size:11px;color:#7d8278;margin-top:2px}

/* умный ЖК */
.ph-cams{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.ph-cam{position:relative;border-radius:12px;overflow:hidden;height:96px;background:#111;cursor:pointer}
.ph-cam img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.8) contrast(1.05)}
.ph-cam.night img{filter:grayscale(1) contrast(1.25) brightness(.7)}
.ph-cam.offline img{filter:grayscale(1) blur(2px) brightness(.35)}
.ph-cam::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.65));pointer-events:none}
.ph-cam b,.ph-cam small{position:absolute;left:8px;color:#fff;z-index:1}.ph-cam b{bottom:18px;font-size:11px}.ph-cam small{bottom:6px;font-size:9.5px;opacity:.8}
.ph-live{position:absolute;right:7px;top:7px;z-index:1;background:rgba(229,72,77,.92);color:#fff;font-size:9px;font-weight:800;padding:2px 6px;border-radius:6px;letter-spacing:.3px}
.ph-cam.offline .ph-live{background:rgba(60,60,60,.85)}
.ph-devlist{display:flex;flex-direction:column;gap:6px}
.ph-dev{display:flex;align-items:center;gap:10px;border:1px solid #e6e8e1;background:#fafbf7;border-radius:12px;padding:9px 11px;font-family:inherit;cursor:pointer;text-align:left;color:#171914;transition:.15s}
.ph-dev i{font-style:normal;font-size:16px}.ph-dev span{flex:1;font-size:12.5px;font-weight:600}.ph-dev b{font-size:11px;color:#9cae13}
.ph-dev.offline{opacity:.55}.ph-dev.offline b{color:#e5484d}
.ph-dev.opening{background:#e9f5d5;border-color:#9cae13;animation:devOpen .5s ease}.ph-dev.opening b{color:#177a47}
@keyframes devOpen{0%{transform:scale(.98)}50%{transform:scale(1.02)}100%{transform:none}}
.ph-guest{margin-top:12px;padding-top:10px;border-top:1px solid #eef0e8}.ph-guest > b{display:block;font-size:12.5px;margin-bottom:6px}
.ph-guest form{display:flex;gap:6px}.ph-guest input{flex:1;min-width:0;border:1px solid #d9dccf;border-radius:10px;padding:8px 10px;font-size:12px;font-family:inherit;background:#fff}.ph-guest .ph-btn{width:auto;margin:0;padding:8px 10px;white-space:nowrap}
.ph-pass{display:flex;justify-content:space-between;font-size:11.5px;padding:6px 0;border-top:1px dashed #e6e8e1;margin-top:6px}.ph-pass span{font-weight:700;font-variant-numeric:tabular-nums}.ph-pass small{color:#7d8278}
.ph-locked{background:#f7f8f2;text-align:center}.ph-locked b{display:block;font-size:13px;margin-bottom:4px}.ph-locked small{font-size:11px;color:#7d8278}

/* платежи, заявки, профиль */
.ph-payrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eef0e8}.ph-payrow:first-of-type{border-top:0}
.ph-payrow b{font-size:12.5px;display:block}.ph-payrow small{font-size:10.5px;color:#7d8278;display:block}.ph-payrow > span{font-size:12px;color:#5c6157;white-space:nowrap;font-variant-numeric:tabular-nums}
.ph-payrow.total{border-top:2px solid #171914}.ph-payrow.total > span{font-weight:800;color:#171914;font-size:14px}
.ph-card .erp-kv{margin:4px 0 8px}.ph-card .erp-kv .info{padding:8px 10px}.ph-card .erp-kv .info span{font-size:10px}.ph-card .erp-kv .info b{font-size:12px}
.ph-switch{display:flex;align-items:center;gap:10px;font-size:12.5px;padding:9px 0;border-top:1px solid #eef0e8;cursor:pointer}.ph-switch:first-child{border-top:0}
.ph-switch input{display:none}.ph-switch span{width:38px;height:22px;border-radius:12px;background:#d9dccf;position:relative;transition:.2s;flex:0 0 38px}.ph-switch span::after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s}
.ph-switch input:checked + span{background:#22a06b}.ph-switch input:checked + span::after{left:19px}
.ph-meters{margin-top:12px;padding-top:10px;border-top:1px solid #eef0e8}.ph-meters b{display:block;font-size:12.5px;margin-bottom:6px}.ph-meters form{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.ph-meters input{min-width:0;border:1px solid #d9dccf;border-radius:10px;padding:8px;font-size:11.5px;font-family:inherit;background:#fff}.ph-meters .ph-btn{grid-column:1/-1;margin:0}
.ph-newreq{display:flex;flex-direction:column;gap:8px}.ph-newreq select,.ph-newreq textarea{border:1px solid #d9dccf;border-radius:10px;padding:9px 10px;font-size:12.5px;font-family:inherit;background:#fff;resize:vertical}.ph-newreq .ph-btn{margin:0}
.ph-req small{display:block;font-size:11px;color:#7d8278}
.ph-rate{display:flex;gap:2px;margin-top:6px}.ph-rate button{border:0;background:transparent;font-size:18px;color:#d9dccf;cursor:pointer;padding:0 2px}.ph-rate button:hover{color:#f5b301}
.ph-stars{color:#f5b301!important;letter-spacing:1px;margin-top:4px}
.ph-profile{display:flex;align-items:center;gap:12px}.ph-profile .avatar{width:44px;height:44px;font-size:14px;margin:0}.ph-profile b{display:block;font-size:14px}.ph-profile small{font-size:11.5px;color:#7d8278}

/* консоль */
.app-row-active td{background:#f6f9e4}
.app-devgroup{margin-bottom:16px}
.app-devhead{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px}.app-devhead small{color:var(--muted);margin-left:auto}
.app-devgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px}
.app-dev{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.app-dev i{font-style:normal;font-size:18px;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--soft)}
.app-dev > div{flex:1;min-width:0}.app-dev b{display:block;font-size:12.5px}.app-dev small{display:block;font-size:10.5px;color:var(--muted)}
.app-dev.offline{border-color:#f0c2c4;background:#fff7f7}.app-dev.offline i{background:#fdeaea}
.app-cam-big{position:relative;border-radius:14px;overflow:hidden;background:#111;height:420px}.app-cam-big img{width:100%;height:100%;object-fit:cover;display:block}
.app-cam-big.night img{filter:grayscale(1) contrast(1.25) brightness(.7)}.app-cam-big.offline img{filter:grayscale(1) blur(3px) brightness(.35)}
.app-cam-big small{position:absolute;left:12px;bottom:10px;color:#fff;font-size:11px;background:rgba(0,0,0,.5);padding:3px 8px;border-radius:8px}
.app-cam-big .ph-live{top:12px;right:12px;font-size:11px}
body.dark .ph-screen{background:#f4f5f0}
