/* MASISLA visual identity. The existing app logic and map controls stay in place. */
:root{
  color-scheme:dark;
  --bg:#0d0f1b;
  --panel:#191b2b;
  --panel2:#24273a;
  --line:#34384f;
  --muted:#aaaec3;
  --text:#f7f5fd;
  --lime:#c5b2ff;
  --lime-dark:#a18be4;
  --peach:#ffbd97;
  --radius:22px;
}
body{
  background:radial-gradient(ellipse 750px 400px at 63% -130px,#322951 0,transparent 75%),
             radial-gradient(ellipse 440px 360px at 100% 640px,#211b36 0,transparent 75%),var(--bg);
  color:var(--text);
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{
  outline-color:var(--peach);
}
.topbar{
  height:80px;gap:20px;padding:0 34px;
  background:rgba(13,15,27,.92);border-color:#37344a;
  box-shadow:0 12px 36px #08091130;
}
.brand{gap:10px;font-size:27px;font-weight:900;letter-spacing:-.07em;line-height:1}
.brand-mark{width:39px;height:39px;color:var(--lime);filter:drop-shadow(0 5px 14px #a996f644)}
.brand-word{display:inline-block;transform:translateY(-1px)}
.brand small{
  align-self:center;margin:0 0 0 2px;padding:5px 6px;border-radius:5px;
  border:1px solid #595171;background:#28213f;color:#cfc2ff;
  font-size:8px;font-weight:900;letter-spacing:.12em;
}
.search-shell{width:min(380px,32vw)}
.top-search{height:44px;border-color:#48435d;background:#242237;border-radius:13px;color:#c9baf7}
.top-search input{color:#f8f6ff}
.top-search input::placeholder{color:#ada8be}
.search-suggestions{background:#252337;border-color:#685b8c;box-shadow:0 18px 45px #05050caa}
.search-suggestions button:hover,.search-suggestions button[aria-selected="true"]{background:#403754}
.search-suggestions small,.search-suggestions .hint{color:#c6bfd5}
.top-actions{gap:10px;flex:none}
.icon-btn:hover{background:#302c43}
.upload-btn{
  background:var(--peach);border-color:var(--peach);color:#271725;
  border-radius:12px;box-shadow:0 8px 24px #ffbd971c;
}
.upload-btn:hover{background:#ffd0b3;border-color:#ffd0b3}
.request-btn{background:#2d2741;border-color:#6b5a91;color:#f5edff;border-radius:12px}
.request-btn svg{color:#d0beff}
.request-btn:hover{background:#3e3458;border-color:#d0beff;color:white}
#openUpload,#openRequest{width:156px;height:44px;font-size:13px;letter-spacing:0}
.account-btn{background:#201e30;border-color:#4b4864;color:#e8e3f4;padding:11px 13px}
.account-btn:hover{border-color:var(--peach);color:var(--peach)}
.layout{grid-template-columns:208px minmax(0,750px) minmax(250px,1fr);gap:30px;padding:34px 34px 90px}
.sidebar,.rail{top:114px}
.side-label{color:#a9a0c3;letter-spacing:.17em;font-size:11px}
.side-link{color:#c1bed1;border:1px solid transparent;font-weight:700}
.side-link:hover{background:#231f37;border-color:#3c3558}
.side-link.active{background:#302840;border-color:#5f507b;color:#eedfff;box-shadow:inset 3px 0 0 var(--peach)}
.side-city{color:#d0cbdb}
.side-city:hover,.side-city.active{background:#29243e;color:var(--peach)}
.side-city b{color:#998cab}
.popular-cities{display:grid;gap:3px}
.popular-cities .side-city{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:40px;padding:8px 11px}
.city-rank{color:#9b8db7;font-size:11px;font-weight:850;letter-spacing:.04em}
.city-name{flex:1}
.popular-cities .side-city>span:last-child{color:#9f91b6;font-size:16px}
.all-cities-link{width:100%;display:flex;justify-content:space-between;align-items:center;padding:11px 12px;margin-top:7px;border:1px solid #554a6a;border-radius:10px;background:#29243a;color:#e1d6f7;font-size:12px;font-weight:800;text-align:left}
.all-cities-link:hover{border-color:var(--peach);color:var(--peach)}
.side-foot{color:#9691a6;border-top:1px solid var(--line);margin-top:18px;padding-top:21px}
.side-foot strong{color:#d9d0e6}
.hero{
  position:relative;display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);
  align-items:stretch;overflow:hidden;min-height:366px;margin:0 0 28px;
  border:1px solid #54466f;border-radius:26px;
  background:radial-gradient(circle at 76% 14%,#3d3159 0,transparent 44%),
             linear-gradient(125deg,#241d3b 0%,#1b1b2d 66%,#242033 100%);
  box-shadow:0 24px 65px #06071145;
}
.hero::before{
  content:"";position:absolute;inset:auto -80px -160px 12%;height:250px;
  border:1px solid #d0bbff16;border-radius:50%;pointer-events:none;
}
.hero-copy{position:relative;z-index:1;padding:36px 18px 30px 35px;display:flex;flex-direction:column;align-items:flex-start}
.hero .eyebrow{font-size:10px;letter-spacing:.2em;color:#d5c5ff}
.hero .eyebrow i{background:var(--peach);box-shadow:0 0 0 4px #ffbd9721}
.hero h1{font-size:clamp(31px,3.25vw,45px);line-height:1.09;letter-spacing:-.057em;margin:20px 0 14px;white-space:nowrap}
.hero h1 em{color:var(--peach);font-style:normal}
.hero p{max-width:420px;color:#c6c2d3;font-size:14px;line-height:1.62;margin:0}
.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:23px}
.hero-actions button{border-radius:11px;font-size:12px;font-weight:850;padding:11px 13px;white-space:nowrap}
.hero-primary{display:inline-flex;align-items:center;gap:7px;color:#241825;border:1px solid var(--peach);background:var(--peach)}
.hero-primary:hover{background:#ffd0b3}
.hero-primary svg{width:15px;height:15px}
.hero-secondary{color:#eadfff;background:#35304b;border:1px solid #665b84}
.hero-secondary:hover{border-color:#c8b6ff;background:#403854}
.hero-facts{display:flex;align-items:center;gap:14px;color:#aaa6bd;font-size:11px;margin-top:auto;padding-top:26px}
.hero-facts strong{font-size:14px;color:#f9f1ff}
.hero-tagline{display:inline-block;border-left:2px solid var(--peach);padding-left:12px;color:#dfd4ed;font-size:13px;line-height:1.4}
.hero-tagline strong{color:var(--peach);font-size:13px}
.fact-divider{height:15px;width:1px;background:#665d7b}
.hero-visual{position:relative;margin:13px 13px 13px 0;min-height:320px;overflow:hidden;border:1px solid #69617b;border-radius:18px;background:#282436}
.hero-visual img{height:100%;width:100%;display:block;object-fit:cover;object-position:55% center;filter:saturate(.88) contrast(1.05)}
.hero-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#17152680 0,transparent 40%,#171526c9 100%);pointer-events:none}
.hero-visual-top,.hero-visual-bottom{position:absolute;z-index:1;left:15px;right:15px;display:flex;align-items:center;color:#fff}
.hero-visual-top{top:15px;font-size:9px;font-weight:900;letter-spacing:.14em}
.live-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--peach);box-shadow:0 0 0 4px #ffbd9740}
.hero-visual-bottom{bottom:17px;gap:9px;font-size:13px}
.visual-pin{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eac8ffe8;color:#261a36}
.visual-pin svg{width:18px;height:18px}
.hero-visual-bottom b,.hero-visual-bottom small{display:block;line-height:1.35}
.hero-visual-bottom small{font-size:10px;color:#e7dce9}
.feed-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:0 2px 15px}
.feed-kicker{font-size:10px;color:var(--peach);font-weight:900;letter-spacing:.21em}
.feed-heading h2{font-size:25px;letter-spacing:-.045em;line-height:1.2;margin:2px 0 0}
.feed-heading p{font-size:12px;color:#aaa6bb;margin:0 0 4px;text-align:right}
.filter-row{padding:12px;border:1px solid #38354c;background:#1b1b2b;border-radius:16px;margin-bottom:18px}
#filters{scroll-margin-top:98px}
.city-picker{height:44px;min-width:195px;border-radius:10px;background:#292639;border-color:#504a65}
.city-picker svg{color:#d1bfff}
.city-picker .chev{color:#c0b6d2}
.city-picker select option,.sort option{background:#29253a;color:white}
.city-picker{display:block;padding:0;z-index:2}
.city-trigger{display:flex;align-items:center;gap:10px;width:100%;height:100%;padding:0 13px;border:0;border-radius:10px;background:transparent;color:#f4efff;font-size:14px;font-weight:750;text-align:left;white-space:nowrap}
.city-trigger:hover,.city-trigger[aria-expanded="true"]{background:#393149}
.city-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.city-picker .city-trigger .chev{position:static;transform:none;margin-left:auto;width:16px;height:16px;pointer-events:none}
.city-panel{position:absolute;top:calc(100% + 8px);left:0;width:min(320px,calc(100vw - 48px));padding:12px;background:#242136;border:1px solid #685c82;border-radius:14px;box-shadow:0 18px 50px #060612c9;z-index:15}
.city-panel[hidden],.city-no-results[hidden],.city-option[hidden]{display:none}
.city-panel-head{display:flex;justify-content:space-between;align-items:center;padding:1px 4px 10px;color:#f4efff;font-size:13px}
.city-panel-head span{color:#b3a8cb;font-size:12px;font-weight:650}
.city-search-wrap{display:flex;align-items:center;gap:9px;height:40px;padding:0 11px;border:1px solid #6d6383;border-radius:9px;background:#181725;color:#bfb1d8}
.city-search-wrap svg{width:17px;height:17px}
.city-search-wrap input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#f4efff;font-size:13px}
.city-search-wrap input::placeholder{color:#aa9eba}
.city-list{display:grid;gap:2px;max-height:min(320px,45vh);overflow-y:auto;overscroll-behavior:contain;margin-top:9px;padding-right:4px;scrollbar-color:#73658c transparent;scrollbar-width:thin}
.city-option{display:block;width:100%;min-height:40px;padding:8px 12px;border:0;border-radius:9px;background:transparent;color:#eee9f8;text-align:left;font-size:14px;font-weight:650}
.city-option:hover,.city-option:focus-visible{background:#3c3451}
.city-option[aria-selected="true"]{background:#53416b;color:#fff}
.city-no-results{padding:14px 6px 5px;margin:0;color:#c9bfd7;font-size:13px}
.map-filter-btn{height:44px;border-radius:10px;background:#292639;border-color:#504a65;color:#eae1fa;font-size:13px}
.map-filter-btn svg{color:var(--peach)}
.map-filter-btn:hover{background:#373149;border-color:var(--peach)}
.nearby-filter-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;padding:9px 12px;border:1px solid #625777;border-radius:10px;background:#302942;color:#ede2ff;font-size:13px;font-weight:750;white-space:nowrap}
.nearby-filter-btn svg{width:17px;height:17px;color:var(--peach)}
.nearby-filter-btn:hover,.nearby-filter-btn.active{border-color:var(--peach);background:#423350}
.nearby-filter-btn:disabled{opacity:.65;cursor:wait}
.sort{font-size:12px;color:#b6b0c5}
.sort select{font-size:12px}
.sort{position:relative;gap:8px;z-index:2}
.sort-trigger{min-width:136px;height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 11px;border:1px solid #504a65;border-radius:9px;background:#292639;color:#eee7fb;font-size:12px;font-weight:750;white-space:nowrap}
.sort-trigger:hover,.sort-trigger[aria-expanded="true"]{background:#383149;border-color:#9583b5}
.sort-trigger svg{width:14px;height:14px;color:#c9bbde}
.sort-panel{position:absolute;right:0;top:calc(100% + 7px);width:210px;padding:6px;border:1px solid #685c82;border-radius:12px;background:#242136;box-shadow:0 18px 45px #060612c9;z-index:15}
.sort-panel[hidden]{display:none}
.sort-list{display:grid;gap:2px}
.sort-option{width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:#eee9f8;text-align:left;font-size:13px;font-weight:700}
.sort-option:hover,.sort-option:focus-visible{background:#3c3451}
.sort-option[aria-selected="true"]{background:#53416b;color:white}
.tabs{gap:8px;margin-bottom:15px}
.tab{border-color:#49445f;color:#c4bbd6;background:#201e30;font-size:12px;padding:8px 14px}
.tab:hover{border-color:#ab92e2;color:white}
.tab.active{background:#d1bcff;border-color:#d1bcff;color:#261735}
.feed-count{color:#aaa3b8;font-size:12px}
.post{background:#191a29;border-color:#363449;border-radius:22px;box-shadow:0 18px 44px #06071335}
.post-header{padding:17px 19px}
.user-icon{background:#3c3656;color:#f5e7ff}
.user-icon.orange{background:#5c3e3d;color:#ffe2cd}
.user-icon.blue{background:#35435f;color:#d2e1ff}
.user-icon.purple{background:#4d3c60;color:#efdcff}
.post-author strong{color:#f9f5ff}
.post-author span{color:#aaa4ba}
.post-header>.badge{border:1px solid #494259;color:#bdb4cd;background:#242236;font-size:10px;letter-spacing:.08em}
.media{background:#302b3e}
.media::after{background:linear-gradient(transparent,rgba(11,10,21,.78))}
.badge{border-radius:7px;background:#1d192db8;border-color:#ffffff55}
.badge.highlight{background:var(--peach);border-color:var(--peach);color:#2c1b26}
.play{width:60px;height:60px;border-color:#eeddf7a8;background:#201727ae;color:#fff}
.play:hover{background:#342044e6}
.post-body{padding:19px 21px 16px}
.post-body .event-type,.community-post .event-type{display:inline-block;margin:0 0 10px;padding:5px 9px;border:1px solid #655880;border-radius:7px;background:#302741;color:#eadbff;font-size:12px;font-weight:800}
.post-body p{color:#ece5f2;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.tags span{background:#2a263c;color:#d6cae9}
.post-actions{border-color:#353147;padding:8px 13px}
.post-actions button{color:#b9b1c8}
.post-actions button:hover{background:#312b43;color:#f7efff}
.post-actions button.selected{color:var(--peach)}
.load-more{background:#292339;border-color:#62527e;color:#e5d6ff}
.load-more:hover{background:#382c4b;border-color:var(--peach)}
.rail-card{background:#1c1b2e;border-color:#3d3853;border-radius:20px}
.rail-card h2{color:#faf5ff}
.rail-card p{color:#bcb5ce}
.rail-card.accent{background:linear-gradient(147deg,#473455,#2b2844 70%,#22243a);border-color:#6c5478;box-shadow:0 15px 38px #0607113d}
.rail-card.accent .mini-icon{background:#ffd0aa;color:#382032}
.rail-card.accent h2{font-size:22px;letter-spacing:-.04em}
.rail-card.accent button{color:#ffceb0}
.rail-card.accent button.create-plus:hover{background:#ffe0c7;color:#382032;transform:translateY(-2px)}
.trend{border-color:#38334b}
.trend-num{color:var(--peach)}
.trend span{color:#a9a2b6}
.sample-note{color:#928ba3}
.request-card,.empty,.request-empty{border-color:#48405d;background:#1c1b2e}
.request-meta{color:var(--peach)}
.region-summary{background:#302a44;border-color:#6f608d;color:#ede3ff}
.region-summary button{color:var(--peach)}
#requestsView .intro{padding:27px 30px;border-radius:22px;border:1px solid #53466c;background:linear-gradient(110deg,#29213e,#1c1c31);margin-bottom:20px}
#requestsView .intro h1{font-size:33px}
dialog{background:#1d1b2e;border-color:#655978;border-radius:22px;box-shadow:0 30px 100px #05040ccc;max-height:min(90vh,860px);overflow:auto}
dialog::backdrop{background:#080916cc}
.dialog-head{border-bottom:1px solid #373247;padding:19px 23px 15px}
.dialog-head h2{font-size:23px}
.dialog-body{padding-top:17px}
.dialog-body p{color:#c5bfd0}
.field{color:#ded7eb}
.field input,.field select,.field textarea{border-color:#57506b;background:#141423;color:#f7f2fd;border-radius:10px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--lime)}
.field small{display:block;margin-top:5px;color:#aaa3bb;font-size:11px;font-weight:500}
.required-label{color:var(--peach);font-weight:700}
.account-status{border:1px solid #7a618b;border-radius:10px;background:#332944;padding:12px;color:#eee2ff;font-size:13px;line-height:1.5;margin:13px 0}
.account-status[hidden]{display:none}
.notice{background:#302b42;color:#cfc7dd}
.location-pick{background:#29283a;border-color:#625777;color:#f0e7fa}
.location-pick svg{color:var(--peach)}
.location-pick:hover{border-color:var(--peach)}
.choice-option{background:#29263b;border-color:#5b506e;border-radius:14px}
.choice-option:hover{background:#383149;border-color:var(--peach)}
.choice-icon{background:#4c3d5d;color:#e4cbff}
.choice-option small{color:#c3bacc}
.choice-option .choice-arrow{color:var(--peach)}
.map-frame{border-color:#615875}
.map-marker{background:var(--peach)}
.map-result{color:#f1e7ff!important}
.map-canvas{background:#243843}
.map-tiles img{left:0;top:0;will-change:transform}
.map-clip-markers{position:absolute;inset:0;pointer-events:none}
.map-clip-marker{position:absolute;width:16px;height:16px;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:50%;background:#a982ff;box-shadow:0 2px 8px #12101baa,0 0 0 4px #ad83ff40}
.map-clip-marker[hidden]{display:none}
.map-legend{position:absolute;left:10px;bottom:20px;z-index:3;padding:5px 8px;border-radius:7px;background:#211d36df;color:#f3eeff;font-size:10px;font-weight:750;pointer-events:none}
.map-legend[hidden]{display:none}
.map-legend i{display:inline-block;width:8px;height:8px;margin-right:4px;border-radius:50%;background:#a982ff}
.map-canvas:focus-visible{outline:3px solid var(--peach);outline-offset:-3px}
.toast{background:#ffe0c2;color:#352031}
.mobile-nav{background:#171627ee;border-color:#494057;backdrop-filter:blur(14px)}
.mobile-nav button{color:#aba3bc}
.mobile-nav button.active{color:var(--peach)}
@media(max-width:1380px){
  .layout{grid-template-columns:208px minmax(0,850px);justify-content:center;gap:28px}
  .rail{display:none}
}
@media(min-width:761px) and (max-width:1260px){
  .search-shell{display:none}
  .topbar.search-open .search-shell{
    display:block;position:absolute;top:80px;left:0;right:0;width:100%;margin:0;
    padding:11px 24px;background:#161426;box-shadow:0 18px 28px #05051299;
  }
  .topbar.search-open .search-suggestions{top:calc(100% - 5px);left:24px;right:24px}
  .top-actions{margin-left:auto}
}
@media(max-width:1100px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero-copy{padding:30px 30px 26px}
  .hero h1{white-space:normal}
  .hero-visual{height:200px;min-height:0;margin:0 14px 14px}
}
@media(max-width:980px){
  .layout{display:block;max-width:820px;margin:auto;padding:27px 23px 105px}
  .sidebar{display:none}
  .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:9;justify-content:space-around;padding:9px 15px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #494057}
  .mobile-nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;min-width:62px}
  .mobile-nav svg{width:21px;height:21px}
  .toast{bottom:84px}
}
@media(max-width:760px){
  .topbar{height:64px;padding:0 16px;gap:12px}
  .brand{font-size:22px}
  .brand-mark{width:33px;height:33px}
  .topbar.search-open .search-shell{top:64px;background:#161426}
  .top-actions{gap:8px}
  #openUpload,#openRequest{width:39px;min-width:39px;height:39px;padding:0;gap:0}
  #openUpload span,#openRequest span{display:none}
  .hero h1{font-size:clamp(31px,7vw,42px)}
  .feed-heading p{max-width:190px}
}
@media(max-width:680px){
  .brand small{display:none}
  .topbar{gap:8px}
  .top-actions{gap:6px}
  #openUpload,#openRequest{width:39px;min-width:39px;height:39px;padding:0}
  .filter-row{justify-content:flex-start}
  .sort{margin-left:auto}
}
@media(max-width:520px){
  .layout{padding:17px 12px 100px}
  .hero{border-radius:20px;margin-bottom:25px}
  .hero-copy{padding:26px 22px 22px}
  .hero h1{font-size:clamp(31px,8vw,39px);margin:16px 0 12px}
  .hero p{font-size:13px}
  .hero-actions{margin-top:20px}
  .hero-visual{height:165px;margin:0 10px 10px;border-radius:13px}
  .feed-heading{align-items:start}
  .feed-heading h2{font-size:23px}
  .feed-heading p{font-size:11px;max-width:130px}
  .filter-row{padding:10px;gap:8px}
  .city-picker{min-width:0;width:54%}
  .map-filter-btn{padding:9px 10px}
  .sort{width:100%;justify-content:flex-end;padding:3px 0}
  .post{border-radius:18px}
  .post-body{padding:15px 16px}
  #requestsView .intro{padding:24px 20px}
}
@media(max-width:410px){
  .brand{font-size:20px;gap:6px}
  .brand-mark{width:29px;height:29px}
  .account-btn{font-size:11px;padding:9px 7px}
  .top-actions{gap:5px}
  .upload-btn.submit,.request-main-btn{font-size:14px;gap:8px}
  .city-picker{width:52%}
  .map-filter-btn{font-size:12px}
  .nearby-filter-btn{font-size:12px}
}
@media(max-width:360px){
  .topbar{padding:0 9px}
  .brand-mark{display:none}
  .brand{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .hero-primary,.hero-secondary,.post,.choice-option{transition:none}
}
#communityPosts{margin-bottom:18px}#communityPosts:empty{display:none}.community-post{padding:18px}.community-post video{display:block;width:100%;max-height:450px;background:#090910;border-radius:12px;margin:16px 0 0}.community-post .event-type{margin-top:12px}.community-post p{color:#ece5f2;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.community-post .badge{display:inline-block}.community-post .community-meta{color:#a99fba;font-size:12px;margin-top:9px}
.my-videos{margin-top:17px;border-top:1px solid #5a506d;padding-top:12px}.my-videos[hidden]{display:none}.my-videos h3{margin:0 0 9px;font-size:15px}.my-video-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;padding:10px 0;border-bottom:1px solid #40394e;font-size:12px}.my-video-row span{color:#ffbd97;font-weight:800}.my-video-row small{width:100%;color:#bcb1c9}

/* Two connected streams: recordings and community requests. */
.stream-switch-wrap{display:flex;flex-direction:column;align-items:center;gap:7px;margin:0 0 24px}
.stream-switch{position:relative;display:grid;grid-template-columns:1fr 1fr;width:min(100%,430px);padding:4px;border:1px solid #625374;border-radius:16px;background:#242033;box-shadow:0 10px 26px #08071335}
.stream-switch::before{content:"";position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);border-radius:12px;background:var(--peach);box-shadow:0 6px 15px #0705104a;transition:transform .22s ease}
.stream-switch[data-view="requests"]::before{transform:translateX(100%)}
.stream-switch button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:#c9bfd8;font-size:14px;font-weight:850;cursor:pointer}
.stream-switch button[aria-selected="true"]{color:#2d1b2d}
.stream-switch button svg{width:18px;height:18px}
.stream-switch button:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.stream-swipe-hint{color:#9f96b1;font-size:11px}
.request-session-note{font-size:12px;line-height:1.5;color:#aca3bb;margin:4px 0 17px}
#requestFilters{scroll-margin-top:100px}
.request-filter-row{position:relative;z-index:3}
.request-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:7px}
.request-list-head .request-main-btn{margin:0}
.request-list-head .feed-count{text-align:right}
.request-map-marker{background:#ffb993;box-shadow:0 2px 8px #12101baa,0 0 0 4px #ffb99345}
.request-empty h2{margin:0 0 7px;font-size:18px;color:#f8f1ff}
.request-empty p{margin:0 0 15px;font-size:13px}
.request-empty button{border:1px solid #806a96;border-radius:9px;background:#352843;color:#f6d8bf;padding:9px 12px;font-weight:800;cursor:pointer}
.request-empty button:hover{background:#493556}
#requestCards{gap:17px}
.request-card{padding:0;border-radius:20px;overflow:hidden;box-shadow:0 15px 35px #0807133d}
.request-header{display:flex;align-items:center;gap:10px;padding:17px 20px 12px}
.request-header .user-icon{flex:none;width:36px;height:36px}
.request-author{flex:1;min-width:0}
.request-author strong,.request-author small{display:block}
.request-author strong{font-size:13px;color:#f8f3fc}
.request-author small{margin-top:2px;color:#a79fba;font-size:11px}
.request-header .badge{margin:0;border:1px solid #735d86;background:#35273f;color:#ffd3b4;font-size:10px;letter-spacing:.05em}
.follow-btn{flex:none;border:1px solid #8e77ba;border-radius:999px;background:#352c49;color:#f3eaff;padding:8px 11px;font-size:11px;font-weight:700;line-height:1;font-family:inherit;cursor:pointer;white-space:nowrap}
.follow-btn:hover{background:#49365f;border-color:#c8afff}
.follow-btn.active{border-color:#9e8abb;background:#4b3d60;color:#e8daff}
.follow-btn.active:hover{background:#3a2d4f}
.following-note{margin:-4px 0 14px;border:1px solid #665179;border-radius:10px;background:#30253e;color:#e4d7f5;padding:10px 13px;font-size:12px;line-height:1.5}
.following-note[hidden]{display:none}
@media(max-width:520px){.post-header>.badge,.request-header>.badge{display:none}.follow-btn{padding:8px 9px;font-size:10px}}
.request-card h2{margin:2px 20px 7px;font-size:20px;color:#fbf5ff}
.request-card .request-meta{margin:0 20px;font-size:12px;color:#e9b99b}
.request-card>p{margin:13px 20px 19px;color:#d0c9db;line-height:1.55}
.request-responses{padding:16px 20px;background:#171726;border-top:1px solid #40384f}
.request-responses h3{font-size:13px;margin:0 0 9px;color:#e8dff4}
.request-no-responses{margin:0!important;font-size:12px!important;color:#aaa1b9!important;line-height:1.5}
.request-attachment{margin-top:12px;padding:12px;border:1px solid #534760;border-radius:12px;background:#252033}
.request-attachment-label{display:block;margin-bottom:9px;color:#ffcfb3;font-size:10px;font-weight:850;letter-spacing:.08em}
.request-attachment video{display:block;width:100%;max-height:430px;border-radius:8px;background:#0b0b12}
.request-attachment p{margin:10px 0 0!important;color:#d3cadf!important;font-size:13px!important;line-height:1.45}
.request-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:49px;border:0;border-top:1px solid #40384f;background:#2b243b;color:#f7d6c1;font-size:13px;font-weight:850;cursor:pointer}
.request-add:hover{background:#3b2e4b;color:#fff}
.request-add svg{width:18px;height:18px}
.attach-request-context{display:inline-block;margin:0 0 12px!important;padding:7px 10px;border-radius:8px;background:#372c47;color:#f9d6be!important;font-size:13px;font-weight:800}
@media(max-width:520px){
  .stream-switch-wrap{margin-bottom:17px}
  .stream-switch button{min-height:43px;font-size:12px;gap:6px}
  .stream-switch button svg{width:16px;height:16px}
  .request-list-head{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .request-list-head .feed-count{text-align:left}
  .request-card h2{font-size:18px;margin-left:16px;margin-right:16px}
  .request-header{padding:15px 16px 11px}
  .request-card .request-meta,.request-card>p{margin-left:16px;margin-right:16px}
  .request-responses{padding:15px 16px}
}
@media(prefers-reduced-motion:reduce){.stream-switch::before{transition:none}}
.username-feedback{min-height:1.4em}
.username-feedback.available{color:#b4e6b2}
.username-feedback.unavailable{color:#ffb7ad}
.password-feedback{display:block;min-height:1.4em;margin-top:5px;color:#aaaec3;font-weight:600}
.password-feedback.available{color:#b4e6b2}
.password-feedback.unavailable{color:#ffb7ad}
.account-btn--login{background:transparent;border-color:#6d6485;color:#eee5ff}
.account-btn--login:hover{background:#28243c}
@media(max-width:410px){
  .top-actions{gap:4px}
  .top-actions .account-btn{padding:8px 6px}
}

/* Installable mobile layout: fixed controls stay clear of device cutouts and keyboards. */
@media(max-width:980px){
  .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:0;padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .mobile-nav button{min-width:0;min-height:49px;width:100%;justify-content:center;line-height:1.1;padding:4px 1px;white-space:nowrap;touch-action:manipulation}
  .mobile-nav #mobileUpload{color:var(--lime)}
  .mobile-nav #mobileUpload svg{box-sizing:content-box;width:22px;height:22px;padding:8px;border-radius:13px;background:var(--lime);color:#171727}
  .layout{padding-bottom:calc(105px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media(max-width:520px){
  .topbar{height:calc(64px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .topbar.search-open .search-shell{top:calc(64px + env(safe-area-inset-top))}
  .top-actions #openUpload,.top-actions #openRequest{display:none}
  .layout{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  .mobile-nav button{font-size:10px}
  dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);overflow-y:auto;overscroll-behavior:contain}
  .dialog-body{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .field input,.field select,.field textarea,.top-search input{font-size:16px}
}

/* Corporate footer follows the same violet and peach identity as the feed. */
.site-footer{
  position:relative;
  border-top:1px solid #54476c;
  background:radial-gradient(circle at 9% 0,#302341 0,transparent 36%),
             linear-gradient(140deg,#1a192b 0%,#141522 100%);
  color:#c5bed4;
  padding:0 34px;
}
.site-footer::before{
  content:"";position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,var(--peach),#b99bf3 42%,transparent 82%);
}
.site-footer-inner{
  max-width:1436px;margin:auto;padding:48px 0 42px;
  display:grid;grid-template-columns:minmax(270px,1.7fr) repeat(2,minmax(170px,1fr));gap:clamp(25px,5vw,90px);
}
.footer-brand{display:inline-flex;align-items:center;gap:10px;color:#faf6ff;font-size:27px;font-weight:900;letter-spacing:-.07em;line-height:1}
.footer-mark{height:39px;width:39px;flex:none;filter:drop-shadow(0 5px 14px #a996f644)}
.footer-about p{max-width:390px;margin:20px 0 19px;color:#bdb4ca;font-size:13px;line-height:1.7}
.footer-status{display:inline-flex;align-items:center;gap:8px;border:1px solid #66577c;border-radius:999px;background:#30263f;padding:6px 11px;color:#ddcdf8;font-size:11px;font-weight:800;letter-spacing:.02em}
.footer-status-dot{height:6px;width:6px;border-radius:50%;background:var(--peach);box-shadow:0 0 0 3px #ffbd9722}
.footer-link-group h2{margin:3px 0 16px;color:#f4eefe;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.footer-link-group nav{display:grid;gap:11px}
.footer-link-group a{width:max-content;max-width:100%;color:#c5bed4;font-size:13px;line-height:1.5;transition:color .16s ease}
.footer-link-group a:hover,.site-footer-bottom a:hover,.footer-brand:hover{color:var(--peach)}
.site-footer-bottom{max-width:1436px;margin:auto;display:flex;align-items:center;gap:24px;border-top:1px solid #494057;padding:19px 0 24px;color:#aaa1bb;font-size:11px}
.site-footer-bottom p{margin:0;flex:1}
.site-footer-bottom a{color:#e4d6f9;font-weight:750;white-space:nowrap}
.account-docs{font-size:12px;color:#bfb4cd;line-height:1.55;margin:8px 0 15px}
.account-docs a{color:#dfcaff;text-decoration:underline;text-underline-offset:3px}
.account-docs a:hover{color:var(--peach)}
@media(max-width:980px){.site-footer{padding-bottom:76px}}
@media(max-width:760px){
  .site-footer{padding:0 20px 76px}
  .site-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 20px;padding:35px 0 30px}
  .footer-about{grid-column:1/-1}
  .footer-about p{margin:14px 0 15px}
  .site-footer-bottom{flex-wrap:wrap;gap:8px 16px;padding-top:19px}
  .site-footer-bottom p{order:3;flex-basis:100%;line-height:1.5}
  .site-footer-bottom a{margin-left:auto}
}
@media(max-width:420px){
  .site-footer-inner{grid-template-columns:1fr;gap:27px}
  .footer-about{grid-column:auto}
  .footer-link-group h2{margin-bottom:10px}
  .footer-link-group nav{gap:8px}
}
@media(prefers-reduced-motion:reduce){.footer-link-group a{transition:none}}

/* Search is one compact control: the action stays attached to the input. */
.top-search{padding:4px 4px 4px 14px;gap:6px}
.top-search input{min-width:0;flex:1;width:auto}
.search-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:72px;min-height:34px;padding:0 11px;border:0;border-radius:9px;background:#c5b2ff;color:#21192d;font-size:13px;font-weight:800;cursor:pointer}
.search-submit:hover{background:#ded2ff}
.search-submit svg{width:16px;height:16px}
@media(min-width:1261px){
  .search-shell{margin-left:auto;margin-right:0;min-width:230px;flex:0 1 380px}
  #searchToggle{display:none}
}
@media(max-width:760px){
  .hero{min-height:0;margin-bottom:20px}
  .hero-copy{padding:24px 24px 20px}
  .hero h1{margin:12px 0 10px}
  .hero p{line-height:1.5}
  .hero-actions{margin-top:15px}
  .hero-facts{padding-top:16px}
  .hero-visual{height:125px;min-height:0}
}
.empty-reset{margin-top:14px;border:1px solid #776b91;background:#302a43;color:#f4edff;border-radius:10px;padding:10px 15px;font-weight:750;cursor:pointer}
.empty-reset:hover{border-color:var(--peach)}

/* Center search against the full header, while keeping actions clear. */
@media(min-width:1261px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,min(380px,calc(100vw - 1060px))) minmax(0,1fr);gap:16px}
  .search-shell{width:100%;min-width:0;margin:0}
  .top-actions{justify-self:end;min-width:0}
}
@media(min-width:1261px) and (max-width:1450px){
  #openUpload,#openRequest{width:auto;padding-inline:12px}
}

/* Topluluk akışı: ekranın odağını kayıtlara ve taleplere taşır. */
#feedView > .hero{display:none}
.sidebar .popular-cities,.sidebar .all-cities-link,.sidebar .side-foot{display:none}
.sidebar .side-label:not(:first-child){display:none}
.feed-heading{align-items:center;margin-top:4px}
.stream-switch-wrap{margin-bottom:18px}
.rail-card{border-radius:16px}
@media(max-width:760px){.layout{padding-top:14px}.feed-heading p{display:none}.stream-switch-wrap{margin-bottom:14px}}

/* Açık görünüm: kayıt ve formlarda okunabilirliği koru. */
:root[data-theme="light"]{color-scheme:light;--bg:#f4f3f8;--panel:#fff;--panel2:#eeebf4;--line:#dbd6e7;--muted:#645d73;--text:#262135;--lime:#60439e;--lime-dark:#4e347f;--peach:#8f422d}
[data-theme="light"] body{background:#f5f4f9;color:var(--text)}
[data-theme="light"] .topbar,[data-theme="light"] .mobile-nav{background:#fffffff2;border-color:#ded9e8}
[data-theme="light"] .brand,[data-theme="light"] .icon-btn,[data-theme="light"] .account-btn,[data-theme="light"] .account-trigger{color:#272137}
[data-theme="light"] .brand small,[data-theme="light"] .account-btn{background:#f0edf6;border-color:#d2c9e1;color:#493b62}
[data-theme="light"] .top-search,[data-theme="light"] .city-picker,[data-theme="light"] .sort,[data-theme="light"] .filter-row,[data-theme="light"] .request-filter-row,[data-theme="light"] .search-suggestions,[data-theme="light"] .city-panel,[data-theme="light"] .sort-panel{background:#fff;border-color:#d9d3e4;color:#30283c}
[data-theme="light"] .top-search input,[data-theme="light"] .city-search-wrap input,[data-theme="light"] .city-trigger,[data-theme="light"] .search-suggestions button,[data-theme="light"] .city-option,[data-theme="light"] .sort-trigger{color:#30283c}
[data-theme="light"] .top-search input::placeholder{color:#756d80}
[data-theme="light"] .city-search-wrap{background:#f4f1f8;border-color:#d9d3e4}
[data-theme="light"] .search-suggestions button:hover,[data-theme="light"] .city-option:hover,[data-theme="light"] .city-trigger:hover{background:#eee8f7}
[data-theme="light"] .side-link,[data-theme="light"] .side-city,[data-theme="light"] .side-label{color:#51495e}
[data-theme="light"] .side-link.active,[data-theme="light"] .side-link:hover{background:#e8e0f4;color:#49327b;border-color:#d6cbe9}
[data-theme="light"] .post,[data-theme="light"] .request-card,[data-theme="light"] .empty,[data-theme="light"] .request-empty,[data-theme="light"] .rail-card,[data-theme="light"] dialog,[data-theme="light"] .account-dropdown{background:#fff;border-color:#ded9e8;color:#262135;box-shadow:0 10px 28px #38314b12}
[data-theme="light"] .post-body p,[data-theme="light"] .request-card h2,[data-theme="light"] .request-card>p,[data-theme="light"] .dialog-head h2,[data-theme="light"] .dialog-body p,[data-theme="light"] .rail-card h2,[data-theme="light"] .rail-card p,[data-theme="light"] .account-dropdown button{color:#30283c}
[data-theme="light"] .post-actions button,[data-theme="light"] .request-meta,[data-theme="light"] .post-author span,[data-theme="light"] .feed-count,[data-theme="light"] .feed-heading p{color:#645d73}
[data-theme="light"] .post-body .event-type,[data-theme="light"] .community-post .event-type{background:#eee8f7;color:#51347c;border-color:#d5c6e8}
[data-theme="light"] .field input,[data-theme="light"] .field textarea,[data-theme="light"] .field select,[data-theme="light"] .address-search-row input{background:#f8f7fb;color:#272137;border-color:#cfc7db}
[data-theme="light"] .field,[data-theme="light"] .dialog-body label{color:#30283c}
[data-theme="light"] .stream-switch{background:#ece8f2;border-color:#d2c9e1}
[data-theme="light"] .stream-switch button{color:#50465f}
[data-theme="light"] .stream-switch button[aria-selected="true"]{background:#d6c8f5;color:#211a31}
[data-theme="light"] .tab{background:#fff;color:#51485e;border-color:#d8d1e1}
[data-theme="light"] .tab.active{background:#634a9a;color:#fff;border-color:#634a9a}
[data-theme="light"] .topbar.search-open .search-shell{background:#f5f4f9}
[data-theme="light"] .mobile-nav button{color:#625b70}
[data-theme="light"] .mobile-nav button.active{color:#61439b}
[data-theme="light"] .notice,[data-theme="light"] .request-responses{background:#f3eff9;color:#51465e;border-color:#ddd4e9}
/* Keep the theme control clear of the centered search and preserve light-mode contrast. */
@media(min-width:1261px){.topbar{grid-template-columns:minmax(0,1fr) minmax(150px,min(380px,calc(100vw - 1150px))) minmax(0,1fr)}}
#themeToggle{width:40px;height:40px;flex:0 0 40px;font-size:21px;line-height:1;border:1px solid var(--line);background:var(--panel2);cursor:pointer}
[data-theme="light"] .post-author strong{color:#30283c}
[data-theme="light"] .sort-trigger{background:#f8f7fb;border-color:#d9d3e4;color:#30283c}
[data-theme="light"] .sort-trigger svg{color:#645d73}

/* Açık temada hesap, paylaşım ve talep alanları. */
[data-theme="light"] .account-trigger{background:#f8f6fb;border-color:#d9d1e5;color:#29213a}
[data-theme="light"] .account-trigger:hover,[data-theme="light"] .account-trigger[aria-expanded="true"]{background:#eee8f7;border-color:#aa98ca}
[data-theme="light"] .account-trigger-copy small,[data-theme="light"] .account-chevron,[data-theme="light"] .account-dropdown-head small{color:#625a70}
[data-theme="light"] .account-dropdown-head,[data-theme="light"] .account-dropdown .account-signout,[data-theme="light"] .settings-divider,[data-theme="light"] .dialog-head{border-color:#e2dcea}
[data-theme="light"] .account-dropdown button:hover,[data-theme="light"] .account-dropdown button:focus-visible{background:#f1edf7;color:#30233f}
[data-theme="light"] .account-dropdown button span:first-child{color:#674998}
[data-theme="light"] .account-dropdown .account-signout{color:#a63838}
[data-theme="light"] .settings-hero{background:linear-gradient(135deg,#eee7fb,#f8f4fd);border:1px solid #e3d8f2;color:#30233f}
[data-theme="light"] .settings-hero small{color:#674998}
[data-theme="light"] .settings-hero h3{color:#30233f}
[data-theme="light"] .settings-hero p,[data-theme="light"] .settings-caption,[data-theme="light"] .settings-status{color:#61576d}
[data-theme="light"] .photo-editor,[data-theme="light"] .account-details{background:#f8f6fb;border-color:#ddd5e8;color:#30283c}
[data-theme="light"] .account-details dt,[data-theme="light"] .crop-controls label{color:#61576d}
[data-theme="light"] .upload-btn{background:#624394;border-color:#624394;color:#fff;box-shadow:none}
[data-theme="light"] .upload-btn:hover{background:#4f347d;border-color:#4f347d;color:#fff}
[data-theme="light"] .upload-btn:disabled{background:#dfd9e8;border-color:#dfd9e8;color:#6c6572}
[data-theme="light"] .request-btn{background:#f6f2fb;border-color:#cfc2e1;color:#4f3478}
[data-theme="light"] .request-btn svg{color:#674998}
[data-theme="light"] .request-btn:hover{background:#ece4f5;border-color:#ac98c9;color:#3d285e}
[data-theme="light"] .upload-drop{background:#f8f5fc;border-color:#b6a3d1;color:#30283c}
[data-theme="light"] .upload-drop:hover,[data-theme="light"] .upload-drop.dragging{background:#f0eaf8;border-color:#8165a7}
[data-theme="light"] .upload-drop small,[data-theme="light"] .upload-drop input{color:#61576d}
[data-theme="light"] .upload-drop input::file-selector-button{background:#e3d8f3;color:#3e2a5b}
[data-theme="light"] .upload-picker summary,[data-theme="light"] .upload-picker-menu{background:#f9f7fc;border-color:#d6cce2;color:#30283c}
[data-theme="light"] .upload-picker summary::after{color:#674998}
[data-theme="light"] .upload-picker-menu{box-shadow:0 12px 28px #30223e24}
[data-theme="light"] .upload-picker-menu button{color:#30283c}
[data-theme="light"] .upload-picker-menu button:hover,[data-theme="light"] .upload-picker-menu button:focus-visible,[data-theme="light"] .upload-picker-menu button[aria-pressed=true]{background:#eae2f4;color:#3e285c}
[data-theme="light"] .location-pick,[data-theme="light"] .map-filter-btn{background:#f8f5fc;border-color:#d6cce2;color:#49355d}
[data-theme="light"] .location-pick:hover,[data-theme="light"] .map-filter-btn:hover{background:#eee7f6;border-color:#ac98c9}
[data-theme="light"] .address-results button{background:#f7f4fb;border-color:#d6cce2;color:#30283c}
[data-theme="light"] .address-note,[data-theme="light"] .map-result{color:#5e536d!important}
[data-theme="light"] .region-summary{background:#eee8f6;border-color:#d6c9e6;color:#443653}
[data-theme="light"] .region-summary button,[data-theme="light"] .rail-card.accent button{color:#674394}
[data-theme="light"] .rail-card.accent .create-plus{color:#382032}
.language-select{height:40px;max-width:94px;padding:0 7px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font-size:12px;font-weight:700;cursor:pointer}
.language-notice{margin:0;padding:8px 20px;text-align:center;background:#342c47;color:#f4edff;font-size:12px}
.language-notice[hidden]{display:none}
[data-theme="light"] .language-select{background:#f8f6fb;border-color:#d9d1e5;color:#30283c}
[data-theme="light"] .language-notice{background:#eee8f6;color:#49355d}
@media(max-width:760px){.language-select{max-width:67px;padding:0 3px;font-size:11px}}
@media(min-width:1261px){.topbar{grid-template-columns:minmax(0,1fr) minmax(150px,min(380px,calc(100vw - 1300px))) minmax(0,1fr)}}
/* The action group grows in translated languages; let search shrink without overlap. */
@media(min-width:1261px){.topbar{display:flex;gap:16px}.search-shell{flex:1 1 180px;min-width:100px;max-width:380px;margin-left:auto;margin-right:auto}.top-actions{margin-left:0}}
/* Language preference is grouped with profile settings. */
.language-settings{display:grid;gap:9px}
.language-settings label{font-size:13px;font-weight:800;color:var(--text)}
.language-settings .language-select{width:100%;max-width:none;height:44px;padding:0 12px;font-size:14px}
.language-settings .language-notice{margin:3px 0 0;padding:10px 12px;border-radius:9px;text-align:left;line-height:1.45}
