[hidden]{display:none!important}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes fadeout{from{opacity:1}to{opacity:0}}
@keyframes pop{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
@keyframes popout{from{opacity:1;transform:none}to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes slideup{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes slidedown{from{transform:none;opacity:1}to{transform:translateY(40px);opacity:0}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes shake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
@keyframes sp{to{transform:rotate(360deg)}}

/* page */
.hero.flat{margin-top:0;padding-top:44px}
.hero.flat>*{animation:rise .45s cubic-bezier(.2,.8,.2,1) both}
.hero.flat h1{animation-delay:.05s}.hero.flat p{animation-delay:.1s}
.btn{transition:transform .12s ease,opacity .15s ease,background .15s ease}
.btn:active{transform:scale(.97)}
.side-note{font-size:.85rem;color:var(--mute);line-height:1.5;margin:0 0 14px}
.card.col .btn.full{width:100%;padding:14px}

/* category tabs: always one line */
#ftabs{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:2px 1px 4px;margin-bottom:14px;scrollbar-width:none}
#ftabs::-webkit-scrollbar{display:none}
#ftabs .tab{flex:none;padding:8px 12px;transition:background .18s,color .18s,border-color .18s,transform .12s}
#ftabs .tab:active{transform:scale(.95)}
#ftabs .tab i{margin-left:6px;transition:background .18s}

/* offer cards */
.offer{align-items:flex-start;animation:rise .38s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--n,0)*45ms);transition:transform .18s ease,border-color .18s ease}
.offer:hover{transform:translateY(-2px);border-color:var(--accent)}
.offer .thumb{width:96px;height:96px;border-radius:6px}
.offer .info h3{font-size:1.3rem}
.offer.taken .thumb,.offer.taken .info{opacity:.55}
.odesc{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;color:var(--text);line-height:1.55;font-size:.93rem}
.badge.open{background:#d9f5e5;color:#17653a}.badge.gray{background:var(--soft);color:var(--mute)}
.meta .badge{font-size:.7rem}
.acts button{transition:color .15s,border-color .15s,transform .12s}
.acts button:hover{border-color:var(--accent)}.acts button:active{transform:scale(.9)}
#offers .empty{animation:rise .35s both}
@media(max-width:560px){.offer .thumb{width:72px;height:72px;aspect-ratio:1}}

/* modal */
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px}
.modal-bg{position:absolute;inset:0;background:rgba(0,0,0,.58);backdrop-filter:blur(3px);animation:fade .2s ease both}
.sheet{position:relative;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.45);padding:26px;animation:pop .26s cubic-bezier(.2,.9,.25,1) both}
.modal.out .modal-bg{animation:fadeout .16s ease both}
.modal.out .sheet{animation:popout .16s ease both}
@media(max-width:560px){
  .modal{place-items:end center;padding:0}
  .sheet{width:100%;border-radius:18px 18px 0 0;border-bottom:0;max-height:92dvh;padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px));animation:slideup .28s cubic-bezier(.2,.9,.25,1) both}
  .modal.out .sheet{animation:slidedown .18s ease both}}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
.sheet h2{margin:0 0 4px;font-size:1.5rem;letter-spacing:-.5px;color:var(--head)}
.sheet-sub{margin:0;color:var(--mute);font-size:.9rem;line-height:1.45}
.x{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:var(--soft);color:var(--mute);display:grid;place-items:center;cursor:pointer;transition:color .15s,transform .15s,background .15s}
.x:hover{color:var(--head);transform:rotate(90deg)}
.x svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;fill:none}

/* fields */
.field{margin-bottom:18px}
.fl{display:block;font-size:.8rem;font-weight:700;color:var(--head);margin:0 0 8px}
.inp,.ta{position:relative;display:flex;align-items:center;border:1px solid var(--line);background:var(--bg);border-radius:12px;transition:border-color .15s,box-shadow .15s}
.inp:focus-within,.ta:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.field.bad .inp,.field.bad .ta,.field.bad .up,.field.bad .seg{border-color:var(--danger)}
.inp input,.ta textarea{border:0;background:none;box-shadow:none;border-radius:12px;width:100%;padding:13px 14px;font:inherit;font-size:1rem;color:var(--text)}
.inp input:focus,.ta textarea:focus{outline:none}
.inp .at{padding-left:14px;color:var(--mute);font-weight:600}.inp .at+input{padding-left:4px}
.ta{display:block}.ta textarea{display:block;resize:none;min-height:112px;padding-bottom:30px;line-height:1.5}
.cnt{position:absolute;right:12px;bottom:8px;font-size:.72rem;color:var(--mute);font-variant-numeric:tabular-nums;pointer-events:none}

/* segmented category control (one line) */
.seg{--i:2;position:relative;display:grid;grid-template-columns:repeat(5,1fr);background:var(--soft);border:1px solid transparent;border-radius:12px;padding:4px;transition:border-color .15s}
.seg-ind{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/5);background:var(--btn);border-radius:9px;transform:translateX(calc(var(--i)*100%));transition:transform .24s cubic-bezier(.3,.9,.3,1);box-shadow:0 2px 8px rgba(0,0,0,.2)}
.seg button{position:relative;z-index:1;border:0;background:none;font:inherit;padding:8px 0;border-radius:9px;cursor:pointer;color:var(--mute);display:grid;justify-items:center;line-height:1.15;transition:color .2s}
.seg button b{font-size:1.05rem}
.seg button small{font-size:.6rem;letter-spacing:.5px;text-transform:uppercase;opacity:.8}
.seg button[aria-checked=true]{color:var(--btn-text)}
.seg button:not([aria-checked=true]):hover{color:var(--head)}
.seg button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* picture upload */
.up{display:flex;align-items:center;gap:14px;padding:12px;border:1.5px dashed var(--line);border-radius:12px;cursor:pointer;transition:border-color .15s,background .15s}
.up:hover,.up.over,.up:focus-visible{border-color:var(--accent);background:var(--soft);outline:none}
.up-av{flex:none;width:56px;height:56px;border-radius:50%;background:var(--soft);color:var(--mute);display:grid;place-items:center;overflow:hidden;transition:transform .2s}
.up:hover .up-av{transform:scale(1.05)}
.up-av img{width:100%;height:100%;object-fit:cover;animation:fade .25s both}
.up-av .ico{width:22px;height:22px}
.up-t{flex:1;min-width:0;display:grid;gap:2px}.up-t b{font-size:.92rem;color:var(--head)}.up-t small{font-size:.78rem;color:var(--mute)}
.up .btn{flex:none;padding:8px 14px;font-size:.8rem;pointer-events:none}

/* agreement */
.tick{display:flex;gap:12px;align-items:flex-start;width:100%;border:0;background:none;padding:2px 0;text-align:left;font:inherit;font-size:.85rem;color:var(--text);line-height:1.45;cursor:pointer}
.tick .box{flex:none;width:20px;height:20px;margin-top:1px;border:1.5px solid var(--line);border-radius:6px;display:grid;place-items:center;background:var(--bg);transition:background .18s,border-color .18s,transform .12s}
.tick:active .box{transform:scale(.9)}
.tick:hover .box{border-color:var(--accent)}
.tick .box svg{width:14px;height:14px;fill:none;stroke:var(--btn-text);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tick .box path{stroke-dasharray:20;stroke-dashoffset:20;transition:stroke-dashoffset .22s ease}
.tick[aria-checked=true] .box{background:var(--btn);border-color:var(--btn)}
.tick[aria-checked=true] .box path{stroke-dashoffset:0}
.tick:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.field.bad .tick .box{border-color:var(--danger)}

/* errors, actions */
.err{color:var(--danger);font-size:.84rem;margin:2px 0 0}
.err:empty{display:none}
.err.show{animation:shake .32s ease}
.sheet-acts{display:flex;gap:10px;margin-top:20px}
.sheet-acts .btn{flex:1;padding:14px}
.spin{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sp .6s linear infinite}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* success */
.done{text-align:center;padding:14px 4px 4px;animation:rise .3s ease both}
.okc{width:64px;height:64px;margin:0 auto 14px;display:block}
.okc circle{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:151;stroke-dashoffset:151;animation:draw .5s .05s ease forwards}
.okc path{fill:none;stroke:var(--head);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:draw .35s .4s ease forwards}
.done h3{margin:0 0 6px;font-size:1.3rem;color:var(--head)}
.done p{margin:0 0 20px;color:var(--mute);font-size:.92rem;line-height:1.5}
#of{animation:rise .25s ease both}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}}

.seg button.standard-7-frame {
  border-radius: 9px;
}

