:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:var(--tg-bg,#f2f4f7);--surface:#fff;--surface-2:#f5f6f8;--text:var(--tg-text,#17191c);--muted:var(--tg-hint,#727983);--line:#e7e9ed;--accent:var(--tg-button,#087bff);--accent-text:var(--tg-button-text,#fff);--green:#17a568;--orange:#e79527;--red:#e34b4b;--shadow:0 14px 40px #131c2d1f;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}[data-theme=dark]{--bg:var(--tg-bg,#111316);--surface:#1b1e22;--surface-2:#24282d;--text:var(--tg-text,#f5f6f7);--muted:var(--tg-hint,#9299a3);--line:#30343a;--shadow:0 18px 48px #00000059}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{background:var(--bg);min-height:100%;color:var(--text);margin:0}body{overscroll-behavior:none}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.app{max-width:720px;min-height:100vh;padding-bottom:calc(82px + env(safe-area-inset-bottom));margin:auto}.header{height:88px;padding:calc(14px + env(safe-area-inset-top)) 20px 12px;align-items:center;gap:12px;display:flex;position:relative}.header h1,.screen-title h2{letter-spacing:-.04em;margin:1px 0 0}.header h1{font-size:21px}.eyebrow{text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-size:10px;font-weight:750}.header-user{color:#fff;background:linear-gradient(145deg,#278cff,#6a5cff);border-radius:14px;place-items:center;width:40px;height:40px;margin-left:auto;font-size:12px;font-weight:800;display:grid;position:relative}.online{border:2px solid var(--bg);background:#20c47a;border-radius:50%;width:10px;height:10px;position:absolute;bottom:-1px;right:-2px}.demo-badge{right:66px;top:calc(13px + env(safe-area-inset-top));text-transform:uppercase;letter-spacing:.08em;color:#fff;background:#7b61ff;border-radius:20px;padding:3px 6px;font-size:9px;position:absolute}.screen{padding:11px 16px 24px;animation:.22s appear}@keyframes appear{0%{opacity:0;transform:translateY(4px)}}.screen-title{justify-content:space-between;align-items:center;margin:8px 3px 17px;display:flex}.screen-title h2{font-size:29px}.count{background:var(--surface);border-radius:12px;place-items:center;min-width:32px;height:32px;font-size:13px;font-weight:700;display:grid}.segmented{background:var(--surface);border-radius:14px;gap:3px;margin-bottom:12px;padding:4px;display:flex}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:10px;flex:1;padding:10px 7px;font-size:13px;font-weight:650}.segmented button.active{background:var(--surface-2);color:var(--text);box-shadow:0 1px 4px #0000000f}.search{background:var(--surface);border:1px solid var(--line);border-radius:14px;align-items:center;gap:9px;height:46px;margin-bottom:14px;padding:0 13px;display:flex}.search .icon{width:19px;color:var(--muted)}.search input{background:0 0;border:0;outline:0;width:100%;font-size:14px}.icon{width:24px;height:24px;display:inline-grid}.icon svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:100%;height:100%}.dialog-list{flex-direction:column;gap:9px;display:flex}.dialog-card{text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:17px;gap:11px;width:100%;padding:13px;transition:transform .12s,border-color .2s;display:flex}.dialog-card:active{transform:scale(.985)}.dialog-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dialog-avatar,.employee-avatar{background:var(--surface-2);width:45px;height:45px;color:var(--accent);border-radius:15px;flex:none;place-items:center;font-size:12px;font-weight:800;display:grid}.dialog-main{flex:1;min-width:0}.card-line{justify-content:space-between;align-items:center;gap:8px;display:flex}.card-line strong{font-size:15px}.card-line time{color:var(--muted);font-size:11px}.listing-name{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:2px 0 7px;font-size:11px;overflow:hidden}.card-line p{white-space:nowrap;text-overflow:ellipsis;color:var(--text);opacity:.84;margin:0;font-size:13px;overflow:hidden}.unread{background:var(--accent);min-width:20px;height:20px;color:var(--accent-text);border-radius:50%;place-items:center;font-size:10px;font-weight:800;display:grid}.card-footer{color:var(--muted);align-items:center;gap:5px;margin-top:10px;font-size:10px;display:flex}.status{white-space:nowrap;text-transform:uppercase;letter-spacing:.04em;background:var(--surface-2);color:var(--muted);border-radius:30px;align-items:center;padding:4px 8px;font-size:9px;font-weight:700;display:inline-flex}.status-new{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.status-in_progress,.status-waiting{background:color-mix(in srgb,var(--orange) 15%,transparent);color:var(--orange)}.status-published{background:color-mix(in srgb,var(--green) 14%,transparent);color:var(--green)}.status-draft{background:color-mix(in srgb,var(--muted) 14%,transparent);color:var(--muted)}.state{text-align:center;min-height:230px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.state strong{color:var(--text);font-size:16px}.state p{max-width:300px;margin:0;font-size:13px}.state-symbol{background:var(--surface);border-radius:16px;place-items:center;width:46px;height:46px;font-size:20px;font-weight:800;display:grid}.state-error .state-symbol{color:var(--red)}.spinner{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:26px;height:26px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.text-button{color:var(--accent);background:0 0;border:0;font-weight:700}.bottom-nav{z-index:30;width:min(100%,720px);height:calc(70px + env(safe-area-inset-bottom));padding:5px 8px env(safe-area-inset-bottom);background:color-mix(in srgb,var(--surface) 92%,transparent);border-top:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav button{color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:9px;font-weight:650;display:flex}.bottom-nav button.active{color:var(--accent)}.bottom-nav .icon{width:23px;height:23px}.bottom-nav button.active .icon{transform:translateY(-1px)}.sheet-overlay{z-index:50;background:#0000007a;justify-content:center;align-items:flex-end;animation:.2s fade;display:flex;position:fixed;inset:0}@keyframes fade{0%{opacity:0}}.sheet{background:var(--bg);width:min(100%,720px);max-height:94dvh;padding:6px 16px calc(14px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;flex-direction:column;animation:.26s cubic-bezier(.2,.8,.2,1) slide;display:flex}@keyframes slide{0%{transform:translateY(100%)}}.grabber{background:var(--line);border-radius:4px;width:38px;height:4px;margin:2px auto 11px}.sheet-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sheet-head h2,.sheet-head h3{letter-spacing:-.03em;margin:3px 0;font-size:22px}.sheet-head p{color:var(--muted);margin:0;font-size:12px}.round-button{border:1px solid var(--line);background:var(--surface);border-radius:12px;width:38px;height:38px;padding:9px}.round-button .icon{width:18px}.assignment{background:var(--surface);color:var(--muted);border-radius:12px;align-items:center;gap:8px;margin:12px 0;padding:9px 10px;font-size:11px;display:flex}.action-wide{margin:0 0 10px}.primary{background:var(--accent);color:var(--accent-text);border:0;border-radius:13px;padding:13px;font-weight:750}.primary:disabled{opacity:.55}.messages{flex-direction:column;flex:1;gap:7px;min-height:210px;padding:8px 0;display:flex;overflow-y:auto}.message{max-width:84%;font-size:14px;line-height:1.4}.message>div{background:var(--surface);border-radius:15px 15px 15px 4px;padding:10px 12px}.message small{color:var(--muted);margin:3px 4px;font-size:9px;display:block}.message.outbound{align-self:flex-end}.message.outbound>div{background:var(--accent);color:var(--accent-text);border-radius:15px 15px 4px}.message.outbound small{text-align:right}.reply-form{border-top:1px solid var(--line);align-items:flex-end;gap:8px;padding-top:10px;display:flex}.reply-form label{flex:1}.reply-form textarea{resize:none;border:1px solid var(--line);background:var(--surface);border-radius:15px;outline:none;width:100%;max-height:110px;padding:12px;display:block}.send-button{background:var(--accent);width:43px;height:43px;color:var(--accent-text);border:0;border-radius:14px;font-size:20px}.send-button:disabled{opacity:.4}.admin-actions{background:var(--surface);border-radius:13px;margin-top:9px;font-size:12px}.admin-actions summary{cursor:pointer;color:var(--muted);padding:11px;font-weight:650}.admin-actions>div{grid-template-columns:1fr auto;gap:7px;padding:0 9px 9px;display:grid}.admin-actions select{grid-column:1/-1}.admin-actions select,.admin-actions button{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;padding:9px}.admin-actions .danger{color:var(--red)}.chips{gap:7px;margin-bottom:14px;display:flex;overflow:auto}.chips button{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:20px;padding:8px 13px;font-size:12px}.chips button.active{background:var(--text);border-color:var(--text);color:var(--bg)}.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.listing-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;overflow:hidden}.listing-photo{background:var(--surface-2);height:148px;color:var(--muted);place-items:center;display:grid;position:relative}.listing-photo img{object-fit:cover;width:100%;height:100%}.listing-photo>.status{background:color-mix(in srgb,var(--surface) 90%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:absolute;top:8px;left:8px}.listing-photo>.icon{width:35px;height:35px}.listing-info{padding:10px}.listing-info strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;display:block;overflow:hidden}.listing-info b{margin-top:5px;font-size:15px;display:block}.listing-info p{color:var(--muted);margin:5px 0 0;font-size:10px}.create-form{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:15px}.create-form>label,.mini-modal label{flex-direction:column;gap:7px;margin-bottom:14px;font-size:12px;font-weight:700;display:flex}.create-form input,.create-form select,.create-form textarea,.mini-modal input{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;outline:none;width:100%;padding:12px;font-weight:400}.create-form input:focus,.create-form select:focus,.create-form textarea:focus{border-color:var(--accent)}.create-form label small{text-align:right;color:var(--muted);font-weight:400}.create-form fieldset{border:0;margin:4px 0 15px;padding:0}.create-form legend{width:100%;margin-bottom:9px;font-size:12px;font-weight:700}.create-form legend span{float:right;color:var(--muted)}.create-form fieldset>p{color:var(--muted);font-size:10px}.photo-grid{grid-template-columns:repeat(3,1fr);gap:7px;display:grid}.photo-preview,.photo-add{aspect-ratio:1;border-radius:12px;position:relative;overflow:hidden}.photo-preview img{object-fit:cover;width:100%;height:100%}.photo-preview button{color:#fff;background:#000000a6;border:0;border-radius:50%;width:23px;height:23px;position:absolute;top:5px;right:5px}.photo-add{border:1px dashed var(--muted);color:var(--muted);justify-content:center;align-items:center;gap:2px!important;margin:0!important;font-size:10px!important;display:flex!important}.photo-add .icon{width:23px}.submit-listing{width:100%;padding:14px}.circle-add{background:var(--accent);width:38px;height:38px;color:var(--accent-text);border:0;border-radius:13px;font-size:25px;line-height:1}.admin-tabs button{font-size:11px}.management-list,.membership-list{flex-direction:column;gap:8px;display:flex}.management-list article{background:var(--surface);border:1px solid var(--line);border-radius:15px;align-items:center;gap:10px;padding:11px;display:flex}.management-list article>div:nth-child(2){flex:1;min-width:0}.management-list strong{font-size:13px}.management-list p,.membership-list p{color:var(--muted);margin:3px 0;font-size:10px}.management-icon{background:var(--surface-2);border-radius:13px;place-items:center;width:42px;height:42px;display:grid}.dot{background:var(--green);border-radius:50%;width:8px;height:8px}.dot.off{background:var(--muted)}.management-list em{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);border-radius:10px;margin-left:5px;padding:2px 5px;font-size:8px;font-style:normal}.switch{background:var(--line);border:0;border-radius:20px;width:42px;height:24px;padding:3px}.switch span{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .2s;display:block}.switch.on{background:var(--green)}.switch.on span{transform:translate(18px)}.membership-list article{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:13px}.membership-list article>strong{font-size:13px}.membership-list article>div{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.membership-list label input{opacity:0;position:absolute}.membership-list label span{border:1px solid var(--line);color:var(--muted);border-radius:10px;padding:7px 9px;font-size:10px;display:block}.membership-list label input:checked+span{background:color-mix(in srgb,var(--accent) 12%,transparent);border-color:var(--accent);color:var(--accent)}.modal-center{align-items:center;padding:18px}.mini-modal{background:var(--surface);width:min(100%,400px);box-shadow:var(--shadow);border-radius:20px;padding:17px}.mini-modal .sheet-head{margin-bottom:15px}.mini-modal .primary{width:100%}.toast{z-index:100;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));color:#fff;box-shadow:var(--shadow);opacity:0;pointer-events:none;text-align:center;background:#202328;border-radius:13px;max-width:calc(100% - 32px);padding:11px 15px;font-size:12px;font-weight:650;transition:all .25s;position:fixed;transform:translate(-50%,20px)}.toast.show{opacity:1;transform:translate(-50%)}.toast-error{background:var(--red)}.boot{place-content:center;min-height:100vh;padding:20px;display:grid}.boot .state{min-height:auto}.brand-mark{background:var(--accent);width:55px;height:55px;color:var(--accent-text);border-radius:18px;place-items:center;margin:auto;font-size:28px;font-weight:900;display:grid}.sr-only{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}@media (width>=560px){.screen{padding-left:24px;padding-right:24px}.listing-grid{grid-template-columns:repeat(3,1fr)}.listing-photo{height:165px}.photo-grid{grid-template-columns:repeat(5,1fr)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
