*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#f2f4f6;color:#16202e;padding-bottom:70px}
#topbar{position:sticky;top:0;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;box-shadow:0 1px 4px rgba(0,0,0,.06);z-index:20}
.logo{display:flex;gap:10px;align-items:center;font-size:22px}
.logo b{color:#0e7a4a;font-size:17px;display:block}
.logo span{color:#8a94a3;font-size:11px;display:block}
.iconbtn{background:none;border:none;font-size:22px;cursor:pointer}
#tabbar{position:fixed;bottom:0;left:0;right:0;background:#fff;display:flex;box-shadow:0 -1px 6px rgba(0,0,0,.08);z-index:20}
#tabbar button{flex:1;border:none;background:none;padding:10px 0 8px;color:#8a94a3;font-size:12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px}
#tabbar .ti{font-size:19px}
#tabbar button.active{color:#0e7a4a;background:#e7f5ee;box-shadow:inset 0 3px 0 #0e7a4a;font-weight:600}
#view{max-width:760px;margin:0 auto;padding:12px}
.card{background:#fff;border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 1px 5px rgba(0,0,0,.07)}
.muted{color:#8a94a3;font-size:14px}
.big{font-size:20px;font-weight:700}
.green{color:#0e7a4a}
.btn{display:block;width:100%;background:#17784a;color:#fff;border:none;border-radius:12px;padding:14px;font-size:16px;font-weight:600;cursor:pointer;text-align:center}
.btn.gray{background:#eef1f4;color:#16202e}
.btn.red{background:#d64545}
.btn.half{display:inline-block;width:auto;padding:10px 16px;font-size:14px;margin:4px 6px 0 0}
input,select,textarea{width:100%;border:1px solid #e3e7ec;border-radius:10px;padding:12px;font-size:15px;margin:6px 0;background:#fff}
input:focus,textarea:focus{outline:2px solid #f0a500}
label.chk{display:flex;gap:8px;align-items:center;font-size:15px;margin:8px 0}
label.chk input{width:auto;margin:0}
.chips{display:flex;gap:8px;overflow-x:auto;padding:6px 0}
.chip{border:1px solid #e0e4e9;background:#fff;border-radius:20px;padding:8px 16px;font-size:14px;white-space:nowrap;cursor:pointer}
.chip.active{background:#0e7a4a;border-color:#0e7a4a;color:#fff}
.tag{display:inline-block;border:1px solid #e0e4e9;border-radius:18px;padding:6px 12px;font-size:13px;color:#555;margin:4px 6px 0 0;background:#fff}
.row{display:flex;gap:8px;align-items:flex-start;margin:6px 0;font-size:15px}
.row .ic{width:22px;text-align:center;flex:none}
.carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:12px;gap:8px}
.carousel img{width:100%;flex:none;height:230px;object-fit:cover;border-radius:12px;scroll-snap-align:start}
.thumbs{display:flex;gap:8px;margin-top:8px}
.thumbs img{width:70px;height:70px;object-fit:cover;border-radius:10px}
.head-row{display:flex;gap:10px;align-items:center;margin:8px 0}
.search-row{display:flex;gap:8px}
.search-row input{margin:0}
.search-row .chip{flex:none;margin:6px 0}
#modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}
#modal .mcard{background:#fff;border-radius:16px;padding:20px;width:100%;max-width:420px;max-height:85vh;overflow-y:auto}
.rt-bar{display:flex;gap:4px;background:#f4f6f8;border-radius:10px 10px 0 0;padding:8px}
.rt-bar button{border:none;background:none;font-size:15px;padding:6px 10px;border-radius:6px;cursor:pointer}
.rt-bar button.on{background:#16202e;color:#fff}
[contenteditable]{border:1px solid #e3e7ec;border-radius:0 0 10px 10px;min-height:120px;padding:12px;background:#fff}
.empty{text-align:center;color:#8a94a3;padding:60px 0;font-size:16px}
.status{font-size:13px;padding:3px 10px;border-radius:12px;background:#e7f5ee;color:#0e7a4a}
.status.pending{background:#fff4d6;color:#a06b00}
.status.canceled{background:#fde8e8;color:#c22}
svg{vertical-align:-3px}
.iconbtn svg{width:22px;height:22px}
#tabbar svg{width:21px;height:21px}
.row .ic{color:#5f6c7b}
.row .ic svg{width:18px;height:18px}
.chip svg{width:16px;height:16px;vertical-align:-3px;margin-right:2px}
.btn svg{width:18px;height:18px;vertical-align:-4px;margin-right:4px}
.logo #logoIc svg{width:36px;height:36px;color:#0e7a4a}
details summary{cursor:pointer;padding:8px 0}
.ipick{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ipick button{border:1px solid #e0e4e9;background:#fff;border-radius:10px;padding:9px;cursor:pointer;color:#334}
.ipick button:active{background:#e7f5ee}
.gimg{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.lrow{display:flex;gap:12px;align-items:flex-start}
.limg{width:92px;height:92px;object-fit:cover;border-radius:12px;flex:none}
.noimg{background:#eef1f4;display:flex;align-items:center;justify-content:center;color:#8a94a3}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.thumbs>div{position:relative}
.thumbs img{width:70px;height:70px;object-fit:cover;border-radius:10px}
.phx{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:none;background:#d64545;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.upwrap{display:none;margin:10px 0}
.upbar{height:8px;background:#eef1f4;border-radius:6px;overflow:hidden;margin-top:4px}
.upbar div{height:100%;width:0;background:#17784a;transition:width .2s}
.dots{display:flex;gap:6px;justify-content:center;margin:10px 0 2px}
.dot{width:8px;height:8px;border-radius:50%;background:#cfd6dd;cursor:pointer;transition:background .2s}
.dot.on{background:#17784a}
.card{overflow:hidden}
.carousel{margin:-16px -16px 12px;border-radius:0}
.carousel img{border-radius:0}
.gimg{margin:-16px -16px 10px;width:calc(100% + 32px);border-radius:0}
.lrow{padding-left:0;align-items:stretch}
.limg{width:110px;height:auto;border-radius:16px 0 0 16px}
.noimg{border-radius:16px 0 0 16px}
.lrow{padding:0 16px 0 0}
.lrow>div{padding:12px 0}
.limg{width:110px;height:auto;align-self:stretch;border-radius:16px 0 0 16px}
.noimg{border-radius:16px 0 0 16px}
.fab-back{position:absolute;top:16px;left:16px;z-index:10;width:40px;height:40px;border-radius:50%;border:none;background:rgba(255,255,255,.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.25);color:#16202e}
.fab-back:active{transform:scale(.92)}
.fab-right{position:absolute;top:16px;right:16px;z-index:10;display:flex;gap:8px}
.fab-right .fab-back{position:static}
.fab-back.on{color:#17784a}
.fab-back.on svg{fill:rgba(23,120,74,.3)}
.map-pin{position:absolute;top:50%;left:50%;transform:translate(-50%,-70%);z-index:5;pointer-events:none;color:#17784a;filter:drop-shadow(0 2px 3px rgba(0,0,0,.4))}
/* список-меню профиля */
.plist{margin:10px 0 4px}
.pitem{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid #eef1f4;cursor:pointer;color:#16202e;font-weight:600}
.pitem:last-child{border-bottom:none}
.pitem .pic{color:#0e7a4a;display:flex}
.pitem .arr{margin-left:auto;color:#b6c0cc;display:flex}
/* контурный выход */
.btn-outline{background:none;border:1.5px solid #d6dce4;color:#8a94a3;margin-top:12px}
/* мои события: строки с серыми иконками */
.evrow{display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #eef1f4}
.evrow:last-child{border-bottom:none}
.evrow .t{flex:1;min-width:0}
.icbtn{border:none;background:none;padding:9px;cursor:pointer;color:#8a94a3;border-radius:10px;display:flex}
.icbtn:active{background:#eef1f4;color:#334}
.icbtn.danger:active{background:#fdecec;color:#d64545}
.dotst{display:inline-block;width:8px;height:8px;border-radius:50%;background:#17b26a;margin:0 4px 1px}
/* FAB «Создать» в таббаре */
#tabbar .cic{background:#0e7a4a;color:#fff;border-radius:50%;width:46px;height:46px;display:flex;align-items:center;justify-content:center;margin:-26px auto 2px;box-shadow:0 4px 14px rgba(14,122,74,.4)}
#tabbar button[data-tab=create]{color:#0e7a4a}
/* оверлей темнее */
#modal{background:rgba(10,15,25,.62)}
/* окно: воздух, тень, скругление */
.mcard{padding:24px;border-radius:20px;box-shadow:0 16px 48px rgba(0,0,0,.32);margin:20px;width:calc(100% - 40px);max-width:420px}
.mcard .big{font-size:24px;font-weight:800;margin-bottom:14px}
/* поля ввода */
.mcard input{height:50px;border:1.5px solid #e3e8ee;border-radius:14px;margin:6px 0}
.mcard input::placeholder{color:#a8b3c0}
.inwrap{position:relative}
.inwrap>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#9aa6b4;pointer-events:none}
.inwrap input{padding-left:42px}
/* иерархия кнопок */
.mcard .btn{height:50px;margin-top:12px;border-radius:14px;font-size:16px}
.btn-ghost{background:none;border:1.5px solid #0e7a4a;color:#0e7a4a}
.btn-text{background:none;border:none;color:#8a94a3}
/* ===== АДМИНКА v2 ===== */
.adm-h{margin:8px;font-size:20px;font-weight:800;display:flex;gap:8px;align-items:center}
details summary{display:flex;align-items:center;gap:8px;font-weight:600;color:#64748b;cursor:pointer;list-style:none}
details summary::-webkit-details-marker{display:none}
details summary::before{content:'▸';color:#b6c0cc}
details[open] summary::before{content:'▾'}
.flabel{display:block;font-size:12px;font-weight:600;color:#64748b;margin:10px 0 4px}
.fhint{font-size:12px;color:#6c757d;margin:4px 0 8px}
.file-upload-zone{display:block;border:2px dashed #e2e8f0;border-radius:12px;padding:16px;text-align:center;color:#64748b;background:#f8fafc;cursor:pointer;margin:6px 0}
.logo-prev{width:52px;border-radius:10px;margin:6px 0}
.adm-row{padding:8px 0;border-bottom:1px solid #eef1f4}
.adm-row:last-child{border-bottom:none}
.ric{width:36px;height:36px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#475569;flex:none}
.uav{width:36px;height:36px;border-radius:50%;background:#e7f5ee;color:#0e7a4a;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.small{font-size:12px}
.role-admin,.role-organizer,.role-user,.role-block{display:inline-block;font-size:11px;font-weight:700;border-radius:20px;padding:2px 8px;margin-left:4px;vertical-align:1px}
.role-admin{background:#e7f5ee;color:#0e7a4a}
.role-organizer{background:#e8f0fe;color:#2563eb}
.role-user{background:#f1f5f9;color:#64748b}
.role-block{background:#fdecec;color:#d64545}
.addmod{display:flex;gap:6px;align-items:center;margin-top:10px}
.addmod input{flex:1}
.icbtn.add{color:#0e7a4a}
.btn-clear-archive{border:1px solid #f87171;color:#ef4444;background:transparent;padding:6px 12px;border-radius:8px;font-size:12px;font-weight:600;margin-left:auto;cursor:pointer}
.st-active,.st-canceled,.st-archived{font-weight:600}
.st-active{color:#10b981}.st-active::before{content:'● '}
.st-canceled{color:#ef4444}.st-canceled::before{content:'● '}
.st-archived{color:#94a3b8}.st-archived::before{content:'● '}
.scrim{position:fixed;inset:0;background:rgba(10,15,25,.45);z-index:55}
.sheet{position:fixed;left:0;right:0;bottom:0;background:#fff;border-radius:20px 20px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));z-index:60;max-height:82vh;overflow:auto;animation:shup .25s}
@keyframes shup{from{transform:translateY(100%)}to{transform:translateY(0)}}
.fsec{margin:14px 0}
.fsec b{font-size:12px;color:#64748b;display:block;margin-bottom:6px;font-weight:600}
.frow{display:flex;gap:8px;flex-wrap:wrap}
.fscroll{max-height:190px;overflow:auto;padding:2px}
/* шторка: строки скроллятся влево-вправо как меню */
.sheet .frow{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.sheet .frow .chip{flex:none}
.sheet .frow input{min-width:220px;flex:none}
.fscroll{max-height:none;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;padding-bottom:4px}
.fscroll .chip{flex:none}
.sheet-actions{position:sticky;bottom:0;background:#fff;display:flex;gap:8px;padding:12px 0 4px;border-top:1px solid #eef1f4;margin-top:16px}
.logi{margin:10px 0 4px;padding:10px 12px;background:#f6f9f7;border-radius:12px}
.logi .row{margin:4px 0}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.incl{margin:4px 0}
.org{border-top:1px solid #eef1f4;margin-top:12px;padding-top:10px}
.logi{margin:10px 0 4px;padding:10px 12px;background:#f6f9f7;border-radius:12px}
.logi .row{margin:4px 0}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.incl{margin:4px 0}
.org{border-top:1px solid #eef1f4;margin-top:12px;padding-top:10px}
.uava{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 2px 8px rgba(0,0,0,.15)}
/* компактные кнопки заявок */
.btn-yes{background:#e6f4ea;color:#0e7a4a;border:none;border-radius:20px;padding:8px 12px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;flex:none}
.btn-no{background:none;border:1.5px solid #d6dce4;color:#8a94a3;border-radius:20px;padding:8px 12px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;flex:none}
.btn-yes:active{background:#d3ecd9}
.btn-no:active{background:#fdecec;color:#d64545;border-color:#f87171}
.joinrow{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #eef1f4;border-radius:14px;margin:8px 0;cursor:pointer;background:#fff}
.joinrow:active{background:#f6f9f7}
.status{white-space:nowrap}
.mcard{max-height:85vh;overflow:auto}
/* строка участника: всё влезает */
.prow{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #eef1f4;flex-wrap:wrap}
.prow:last-child{border-bottom:none}
.prow .pinfo{flex:1;min-width:120px}
.prow .status{flex:none}
.prow .btn-yes,.prow .btn-no{flex:none}
.pendb{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;background:#f59e0b;color:#fff;font-size:12px;font-weight:700;margin-left:6px;vertical-align:2px}
.range-wrap{margin-top:10px;background:#f6f9f7;border-radius:12px;padding:10px 12px}
.range-wrap .prlab{font-weight:700;font-size:14px;color:#0e7a4a;margin-bottom:6px}
.range-wrap label{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;margin:4px 0}
.range-wrap input[type=range]{flex:1;accent-color:#0e7a4a;height:28px}
/* один слайдер с двумя ручками */
.dualrange{position:relative;height:32px;margin-top:4px}
.dualrange .track{position:absolute;top:50%;transform:translateY(-50%);height:4px;border-radius:2px;background:#dbe3ea;width:100%}
.dualrange .fill{position:absolute;top:50%;transform:translateY(-50%);height:4px;background:#0e7a4a;border-radius:2px}
.dualrange input[type=range]{position:absolute;inset:0;width:100%;height:32px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none;outline:none}
.dualrange input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:24px;height:24px;border-radius:50%;background:#0e7a4a;border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.35);cursor:pointer}
.dualrange input[type=range]::-moz-range-thumb{pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#0e7a4a;border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.35);cursor:pointer}
.dualrange input[type=range]::-moz-range-track{background:none}
/* шторка v4 */
.sheet{padding-bottom:96px}
.sheet-actions{position:fixed;left:0;right:0;bottom:0;z-index:61;background:#fff;display:flex;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eef1f4;box-shadow:0 -4px 16px rgba(0,0,0,.08);margin:0}
.sheet .frow{flex-wrap:wrap}
.sheet .chip{background:#f1f5f9;border-color:transparent;color:#334155}
.sheet .chip.active{background:#0e7a4a;border-color:#0e7a4a;color:#fff}
.sheet .fscroll{flex-wrap:nowrap;overflow-x:auto}
/* шторка v5 */
.shandle{width:44px;height:5px;border-radius:3px;background:#d6dce4;margin:0 auto 10px;cursor:pointer}
.segm{display:flex;background:#f1f5f9;border-radius:12px;padding:3px;margin-top:8px}
.segm button{flex:1;border:none;background:none;padding:9px;border-radius:10px;font-weight:600;font-size:13px;color:#64748b;cursor:pointer}
.segm button.on{background:#fff;color:#0e7a4e;box-shadow:0 1px 4px rgba(0,0,0,.1)}
input:focus,select:focus,textarea:focus{border-color:#0e7a4e !important;outline:none;box-shadow:0 0 0 3px rgba(14,122,74,.12)}
.sheet-actions{box-shadow:0 -4px 12px rgba(0,0,0,.05)}
/* шторка v5 */
.shandle{width:44px;height:5px;border-radius:3px;background:#d6dce4;margin:0 auto 10px;cursor:pointer}
.segm{display:flex;background:#f1f5f9;border-radius:12px;padding:3px;margin-top:8px}
.segm button{flex:1;border:none;background:none;padding:9px;border-radius:10px;font-weight:600;font-size:13px;color:#64748b;cursor:pointer}
.segm button.on{background:#fff;color:#0e7a4e;box-shadow:0 1px 4px rgba(0,0,0,.1)}
input:focus,select:focus,textarea:focus{border-color:#0e7a4e !important;outline:none;box-shadow:0 0 0 3px rgba(14,122,74,.12)}
.sheet-actions{box-shadow:0 -4px 12px rgba(0,0,0,.05)}
.ncard{display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:14px;padding:14px;margin:8px;box-shadow:0 1px 4px rgba(0,0,0,.06);cursor:pointer}
.ncard.new{background:#f0f7f3}
.ncard .nic{flex:none;display:flex}
.bellb{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;box-shadow:0 0 0 2px #fff}
.nhead{display:flex;align-items:center;gap:12px;margin:10px 8px}
.nhead .big{margin:0;flex:1}
.rbtn{width:44px;height:44px;border-radius:50%;background:#fff;border:none;box-shadow:0 1px 6px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#16202e;flex:none}
.rbtn:active{background:#f1f5f9}
