#start-screen[hidden]{display:none!important}
html.start-screen-open,html.start-screen-open body{overflow:hidden!important;background:var(--start-surface,var(--start-bg))!important}
html.start-screen-open #app{visibility:hidden;pointer-events:none}
html.start-screen-open .home-hero-photo,html.start-screen-open .welcome-background{display:none}
:root{--start-bg:#fff8ed;--start-ink:#0b1830;--start-muted:#566379;--start-accent:#1263df;--start-sun:#ffbf45;--start-window:#c8e9fb;--start-tree:#b7d1a1}
:root[data-start-period=afternoon]{--start-bg:#edf6ff;--start-sun:#ffd257}
:root[data-start-period=evening]{--start-bg:#ed9a62;--start-surface:linear-gradient(180deg,#24476b 0%,#365a85 32%,#777c99 57%,#ed9a62 100%);--start-ink:#fff;--start-muted:#edf2fa;--start-accent:#fff;--start-sun:#ffb05d;--start-window:#ffd18a;--start-tree:#9aa57c}
:root[data-start-period=night]{--start-bg:#0d1428;--start-ink:#fff;--start-muted:#c1c9df;--start-accent:#d9cdfb;--start-window:#f4cd7d;--start-tree:#607a78}
#start-screen{position:fixed;inset:0;z-index:1100;background:var(--start-surface,var(--start-bg));color:var(--start-ink);font-family:Heebo,Arial,sans-serif;direction:rtl;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;text-align:center}
#start-screen *{box-sizing:border-box;animation:none!important;transition:none!important}
#start-screen .start-layout{width:min(100%,470px);height:100svh;min-height:560px;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:12px}
#start-screen .start-brand{display:flex;direction:ltr;align-items:center;justify-content:center;gap:9px;margin:0 auto;color:var(--start-ink);font-size:36px;font-weight:800;line-height:1;letter-spacing:-1.2px}
#start-screen .start-brand img{width:46px;height:46px;display:block}
#start-screen .start-heading{display:grid;gap:5px;justify-items:center;align-self:center;width:max-content;max-width:100%}
#start-screen .start-greeting{justify-self:stretch;text-align:right;display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0;font-size:26px!important;line-height:1.3;font-weight:700;color:var(--start-accent)}
#start-screen .start-time-icon{width:30px;height:30px;flex:none;color:var(--start-sun)}
#start-screen .start-time-icon>g{display:none}
:root[data-start-period=morning] #start-screen .time-morning,:root[data-start-period=afternoon] #start-screen .time-afternoon,:root[data-start-period=evening] #start-screen .time-evening,:root[data-start-period=night] #start-screen .time-night{display:block}
#start-screen h1{justify-self:stretch;text-align:right;margin:0;color:var(--start-ink);font-size:clamp(24px,6.9vw,32px);font-weight:800;line-height:1.3;letter-spacing:-.7px}
#start-screen .start-subtitle{margin:0;font-size:clamp(14px,4.1vw,18px);line-height:1.5;color:var(--start-muted)}
#start-screen .start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:none}
#start-screen .start-tile{min-width:0;aspect-ratio:1/1.08;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;border:1px solid var(--tile-border);border-radius:22px;text-decoration:none;color:#0b1830;background:var(--tile-bg);box-shadow:0 8px 18px -5px #243d6530,0 2px 4px #243d6507;cursor:pointer;-webkit-tap-highlight-color:transparent}
#start-screen .start-tile:focus-visible{outline:3px solid #1671ef;outline-offset:4px}
#start-screen .start-tile:active{filter:brightness(.96)}
#start-screen .start-tile strong{display:block;font-size:clamp(20px,5.8vw,27px);line-height:1.25;font-weight:800;letter-spacing:-.6px;margin:0}
#start-screen .start-tile small{font-size:clamp(11px,3.05vw,14px);line-height:1.4;font-weight:700;color:#536075;display:block;white-space:nowrap}
#start-screen .start-search{--tile-bg:#eaf5ff;--tile-border:#cce5ff}
#start-screen .start-discover{--tile-bg:#fff0f3;--tile-border:#f8d9e0}
#start-screen .start-publish{--tile-bg:#eafbf2;--tile-border:#cff0df}
#start-screen .start-browse{--tile-bg:#f2eeff;--tile-border:#ded7fa}
#start-screen .start-visual{width:100%;height:clamp(75px,24vw,116px);display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:3px}
#start-screen .start-photo,#start-screen .start-map{width:100%;height:100%;object-fit:cover;border-radius:15px;display:block}
#start-screen .start-clapper{width:112px;height:112px;max-height:100%;max-width:82%}
#start-screen .start-mini-search{background:white;border-radius:13px;padding:9px 7px;box-shadow:0 4px 10px #36618a10;display:flex;flex-direction:column;gap:6px;width:100%}
#start-screen .start-mini-search b{font-size:clamp(9px,2.6vw,12px);font-weight:800;line-height:1.4}
#start-screen .start-mini-input{height:25px;border:1px solid #bdcce1;border-radius:9px;display:flex;align-items:center;padding:4px 7px}
#start-screen .start-mini-input svg{width:17px;height:17px;color:#1468ff}
#start-screen .start-mini-button{background:#1264f5;color:#fff;font-size:clamp(10px,2.9vw,13px);font-weight:800;border-radius:99px;line-height:1.4;padding:6px 2px}
#start-screen .start-price{position:absolute;font:700 10px Arial,sans-serif;background:#0869f4;color:#fff;padding:4px 5px;border-radius:5px;border:2px solid white;box-shadow:0 3px 5px #214b8c2b;direction:ltr}
#start-screen .start-price:after{content:'';position:absolute;bottom:-5px;left:45%;width:6px;height:6px;background:#0869f4;transform:rotate(45deg)}
#start-screen .start-price.one{top:14%;right:28%}#start-screen .start-price.two{top:48%;right:7%}#start-screen .start-price.three{bottom:8%;left:17%}
#start-screen .start-map-credit{position:absolute;left:4px;bottom:2px;font:7px Arial,sans-serif;background:#ffffffd9;color:#304057;padding:1px 2px;border-radius:2px}
#start-screen .start-footer{width:65%;max-width:260px;height:clamp(50px,10svh,85px);margin:0 auto;color:#5c789f;flex-shrink:1}
#start-screen .start-footer svg{width:100%;height:100%;display:block}
#start-screen .scene-day{display:block}#start-screen .scene-night,#start-screen .scene-evening{display:none}
:root[data-start-period=evening] #start-screen .scene-day,:root[data-start-period=night] #start-screen .scene-day{display:none}
:root[data-start-period=evening] #start-screen .scene-evening,:root[data-start-period=night] #start-screen .scene-night{display:block}
:root[data-start-period=evening] #start-screen .start-tile{--tile-bg:#fff;--tile-border:#e4d6d0;box-shadow:0 8px 18px -5px #594b4826,0 2px 4px #594b4808}
:root[data-start-period=evening] #start-screen .start-footer{color:#5d6375}
:root[data-start-period=evening] #start-screen-status{color:#182a43}
:root[data-start-period=night] #start-screen .start-tile{box-shadow:0 5px 15px #00000014}
#start-screen-status{margin:0;min-height:0;font-size:13px;color:var(--start-muted)}
#start-screen-status:empty{display:none}
#start-screen-status button{font:inherit;color:inherit;border:1px solid currentColor;background:none;border-radius:99px;padding:5px 12px}
#start-screen[aria-busy=true] .start-tile{pointer-events:none}
[data-start-screen]{display:none!important}
@media(pointer:coarse) and (max-device-width:599px),(pointer:coarse) and (max-device-height:599px){[data-start-screen]{display:flex!important}}
@media(max-height:700px){#start-screen .start-layout{gap:8px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}#start-screen .start-brand{font-size:29px}#start-screen .start-brand img{width:36px;height:36px}#start-screen .start-tile{aspect-ratio:auto;height:clamp(153px,26svh,178px);padding:9px 7px;gap:4px}#start-screen .start-visual{height:75px}#start-screen .start-footer{height:48px}#start-screen .start-grid{gap:10px}#start-screen .start-heading{gap:2px}}

/* Header stays in the same row: brand on the right, Menu then Profile on the left. */
#start-screen .start-topbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:46px}
#start-screen .start-topbar .start-brand{margin:0;padding:0;border:0;background:none;font-family:inherit}
#start-screen .start-tools{display:flex;direction:ltr;align-items:center;gap:6px;color:var(--start-ink)}
#start-screen .start-tools details{position:static}
#start-screen .start-tools summary{display:grid;place-items:center;width:44px;height:44px;padding:9px;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer;list-style:none}
#start-screen .start-tools summary::-webkit-details-marker{display:none}
#start-screen .start-tools summary svg{width:26px;height:26px}
#start-screen .start-tools details[open]>summary{background:color-mix(in srgb,var(--start-ink) 9%,transparent)}
#start-screen .start-menu-panel{position:absolute;z-index:20;left:0;right:auto;top:calc(100% + 8px);width:min(336px,100%);max-height:min(60svh,440px);overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;direction:rtl;text-align:center;padding:12px;background:#fff;color:#000;border:1px solid #e5ebf2;border-radius:26px;box-shadow:0 8px 30px #19324820}
#start-screen .start-menu-panel a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;min-height:74px;padding:8px 4px;margin:0;border:0;background:transparent;box-shadow:none;color:#000;font-size:13px;font-weight:400;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-decoration:none;border-radius:16px}
#start-screen .start-menu-panel a>span{display:block;color:#000;font-size:13px;font-weight:400;line-height:1.35}
#start-screen .start-menu-panel a>svg{display:block;flex:0 0 21px;width:21px;height:21px;margin:0;color:#000}
#start-screen .start-menu-panel a:is(:hover,:focus-visible){background:#eef5ff;color:#1256ec}
#start-screen .start-menu-panel a:is(:hover,:focus-visible)>svg{color:#1256ec}
@media(max-width:350px){#start-screen .start-menu-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
#start-screen :is(.start-tools summary,.start-menu-panel a,.start-brand):focus-visible{outline:2px solid var(--start-accent);outline-offset:2px}

/* Inbox sits beside Profile and only appears for incoming unread conversations. */
#start-screen .start-inbox{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;padding:9px;color:var(--start-ink);background:transparent;border:0;border-radius:12px}
#start-screen .start-inbox[hidden]{display:none!important}
#start-screen .start-inbox>svg{width:26px;height:26px}
#start-screen .start-inbox:focus-visible{outline:2px solid var(--start-accent);outline-offset:2px}
#start-screen .start-inbox .inbox-unread-badge{right:0;left:auto;top:2px;transform:none;direction:ltr}
@media(max-width:350px){#start-screen .start-topbar .start-brand{font-size:29px}#start-screen .start-topbar .start-brand img{width:36px;height:36px}}
