/* Browser layout only. Telegram Mini App keeps its existing interface. */
.web-login{max-width:520px;margin:40px auto 0}
.web-login-eyebrow{font-size:11px;letter-spacing:.15em;color:#8b4b19;margin-bottom:22px}
.web-login h1{margin-bottom:20px!important}
.web-login h1:focus{outline:none}
.web-login-copy{font-size:18px;line-height:1.6;margin-bottom:28px;color:#706b65}
.web-login form{padding:28px;background:#fff;border:1px solid #ded7cd;border-radius:16px}
.web-login form label{display:flex;flex-direction:column;gap:8px;font-size:14px;margin-bottom:22px}
.web-login form small{color:#706b65;line-height:1.5;font-size:12px}
.web-login form input{width:100%;min-height:50px;font-size:16px;border:1px solid #cdc5b9;border-radius:8px;padding:12px;background:#fff;color:#242126}
.web-password{position:relative;display:block;width:100%}
.web-login form .web-password input{padding-right:54px}
.web-login form .web-password-eye{position:absolute;right:3px;top:3px;display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:6px;background:transparent;color:#61594f}
.web-password-eye:hover{background:#f2eee8!important}
.web-password-eye:focus-visible{outline:2px solid #a95b23;outline-offset:1px}
.web-login form .m-primary{width:100%;min-height:50px;background:#242126;color:#fff;margin:4px 0 0}
.web-login-link{background:transparent;color:#8b4b19;font-size:14px;min-height:44px;margin:18px 0;padding:10px 0;text-align:left}
.web-login-help{margin-top:30px;color:#706b65;font-size:13px}
.web-login-help a,.web-bot-link{text-decoration:underline;text-underline-offset:4px}
.web-bot-link{display:inline-block;margin:22px 0}
#webLoginError{color:#963b22;line-height:1.5;margin-bottom:16px;font-size:14px}
.web-code-input,.web-pair-code{font-family:ui-monospace,monospace;font-size:25px!important;letter-spacing:.15em}
.web-pair-code{margin:24px 0;padding:20px;background:#fff1e3;color:#242126;border:1px solid #edc59f;border-radius:10px;text-align:center}
body.web-mode.login-mode .app-shell{display:block}
body.web-mode.login-mode main{max-width:720px;padding-top:28px}
body.web-mode.login-mode #mode{display:none}
body.web-mode.login-mode.local-web-preview #mode{display:block}
body.web-mode #webSignOut{min-height:40px;margin:0;font-size:12px;white-space:nowrap}
@media(max-width:699px){.web-login{margin-top:12px}.web-login form{padding:22px 18px}.web-login-copy{font-size:16px}body.web-mode #webSignOut{margin-left:auto}body.web-mode.login-mode main{padding-top:18px}}
.web-skip{position:fixed;left:16px;top:-100px;padding:12px 18px;background:#242126;color:#fff;z-index:100}
.web-skip:focus{top:12px}
body.web-mode{--web-header:88px;--web-sidebar:220px;background:#f4f0e9;color:#242126}
body.web-mode>header{display:flex!important;position:relative;min-height:var(--web-header);padding:20px 32px;border-bottom:1px solid #d9d2c7;background:#f4f0e9;gap:18px}
body.web-mode .brand{display:flex;align-items:center;gap:22px;min-width:0}
body.web-mode .brand img{width:150px;height:40px}
body.web-mode .brand>span{display:block;font-size:12px;font-weight:500;letter-spacing:.06em;border-left:1px solid #cdc5b9;padding-left:22px;color:#706b65}
body.web-mode #mode{display:block;font-size:11px;line-height:1.4;max-width:200px;background:#eae4db;color:#61594f;margin-left:auto;padding:8px 12px}
body.web-mode #ownerSwitcher{font-size:12px;min-height:40px;margin:0}
body.web-mode .app-shell{display:grid;grid-template-columns:var(--web-sidebar) minmax(0,1fr);max-width:1600px;min-height:calc(100dvh - var(--web-header));margin:0 auto}
body.web-mode #navigation{position:sticky;top:0;bottom:auto;left:auto;right:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;height:100dvh;padding:32px 18px;border-right:1px solid #d9d2c7;border-top:0;background:transparent;overflow-y:auto}
body.web-mode #navigation button{display:flex;flex:none;flex-direction:row;justify-content:flex-start;gap:14px;font-size:14px;min-height:48px;padding:14px 16px;text-align:left;color:#625c66}
body.web-mode #navigation button.active{background:#242126;color:#fff}
body.web-mode #navigation button.active svg{color:#f29441}
body.web-mode main{width:100%;max-width:1280px;margin:0 auto;padding:36px clamp(24px,3.5vw,56px) 72px;min-width:0}
body.web-mode h1{font-size:clamp(30px,2.5vw,40px);line-height:1.16;letter-spacing:-.035em;margin:0 0 14px}
body.web-mode h2{font-size:20px;line-height:1.3}
body.web-mode .muted{color:#706b65;font-size:14px;line-height:1.6}
body.web-mode .card,body.web-mode form{border-color:#ded7cd;border-radius:16px}
body.web-mode button{transition:background .15s ease,color .15s ease;touch-action:manipulation}
body.web-mode button:focus-visible,body.web-mode a:focus-visible{outline:2px solid #9b4c12;outline-offset:4px}
body.web-mode :is(input,select,textarea){font-size:16px}
body.web-mode #screen{min-width:0}
body.web-mode #screen>*{min-width:0}
body.web-mode .m-subtitle{max-width:760px}
body.web-mode .m-empty{padding:36px 28px;border-style:dashed;background:#faf8f4}
body.web-mode .x-home-overview .x-counters{gap:12px;margin-top:0}
body.web-mode .x-home-overview .x-counters button{min-height:104px;padding:18px;background:#fff;border:1px solid #ded7cd;color:#242126;border-radius:14px}
body.web-mode .x-home-overview .x-counters strong{font-size:32px;color:#242126!important}
body.web-mode .x-home-overview .x-counters span{font-size:12px;color:#706b65}
body.web-mode .x-home-summary{margin:0;padding:24px;border-radius:16px;display:flex;flex-direction:column;justify-content:center}
body.web-mode #xHomeWork .m-primary{width:auto;min-width:240px;padding:14px 24px;margin:0}
body.web-mode #xHomeWork #xHomeResume{margin-top:12px}
body.web-mode #xHomeGoal{font-size:13px;color:#706b65;line-height:1.5}
body.web-mode #xHomeAchievements{margin:0;padding:6px 0;text-align:left}
body.web-mode .x-post-cover img{height:220px}
body.web-mode .x-post-copy{padding:22px}
body.web-mode #mItemForm{max-width:880px;margin-right:auto}
body.web-mode .m-geometry{gap:10px}
body.web-mode #mItemForm .m-primary{min-height:50px}
body.web-mode .m-catalog-item{min-height:86px}
body.web-mode .x-product-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1100px){
 body.web-mode #screen:has(>#xHomeWork){display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px 28px;align-items:start}
 body.web-mode #screen:has(>#xHomeWork)>*{grid-column:1/-1;margin-top:0}
 body.web-mode #screen:has(>#xHomeWork)>h1{grid-column:1;grid-row:1;margin-bottom:0}
 body.web-mode .x-home-greeting{grid-column:1!important;grid-row:2;margin:0}
 body.web-mode #xHomeWork{grid-column:1!important;grid-row:4;padding-bottom:8px}
 body.web-mode .x-home-overview{grid-column:1!important;grid-row:5}
 body.web-mode .x-home-overview .x-counters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.web-mode .x-home-summary{grid-column:2!important;grid-row:1/4;align-self:stretch}
 body.web-mode #xHomeGoal{grid-column:2!important;grid-row:4}
 body.web-mode #xHomeAchievements{grid-column:2!important;grid-row:5}
 body.web-mode .x-phrase-row{grid-column:1!important;grid-row:3}
 body.web-mode #mFeed{display:none}
 body.web-mode #xHomeFeed{grid-column:1/-1;margin-top:18px}
 body.web-mode #screen:has(>.m-project){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 body.web-mode #screen:has(>.m-project)>*{grid-column:1/-1}
 body.web-mode #screen>.m-project{grid-column:auto!important;margin:0}
 body.web-mode #screen:has(>.m-catalog-item){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 body.web-mode #screen:has(>.m-catalog-item)>*{grid-column:1/-1}
 body.web-mode #screen>.m-catalog-item{grid-column:auto!important;margin:0}
}
@media(min-width:700px) and (max-width:1099px){
 body.web-mode{--web-sidebar:164px;--web-header:76px}
 body.web-mode>header{padding:16px 22px}
 body.web-mode .brand img{width:126px}
 body.web-mode .brand>span{display:none}
 body.web-mode #navigation{padding:24px 12px;gap:6px}
 body.web-mode #navigation button{padding:13px 10px;gap:10px;font-size:13px}
 body.web-mode main{padding:28px 24px 60px}
 body.web-mode .x-home-summary{margin:20px 0}
 body.web-mode .x-home-overview .x-counters{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}
 body.web-mode #xHomeAchievements{text-align:center}
}
@media(max-width:699px){
 body.web-mode{--web-header:72px}
 body.web-mode>header{padding:14px 18px;gap:8px;flex-wrap:wrap}
 body.web-mode .brand img{width:116px;height:32px}
 body.web-mode .brand>span{display:none}
 body.web-mode #mode{font-size:9px;max-width:140px;padding:6px 8px}
 body.web-mode #ownerSwitcher{width:100%;min-height:32px;padding:6px 10px;font-size:10px}
 body.web-mode .app-shell{display:block;min-height:calc(100dvh - var(--web-header))}
 body.web-mode main{max-width:620px;padding:24px 18px calc(112px + env(safe-area-inset-bottom))}
 body.web-mode h1{font-size:30px}
 body.web-mode #navigation{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding:7px 3px calc(8px + env(safe-area-inset-bottom));background:#fff;border-right:0;border-top:1px solid #ded7cd;overflow:visible;z-index:20}
 body.web-mode #navigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;min-height:54px;padding:5px 1px;margin:0;border-radius:8px}
 body.web-mode #navigation button.active{background:#fff1e3;color:#934407}
 body.web-mode #navigation button.active svg{color:#934407}
 body.web-mode #navigation svg{width:21px;height:21px}
 body.web-mode #xHomeWork .m-primary{width:100%;min-width:0}
 body.web-mode .x-home-overview .x-counters{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px;gap:10px}
 body.web-mode .x-home-overview .x-counters button{min-height:92px;padding:16px}
 body.web-mode .x-home-summary{margin:18px 0}
 body.web-mode #xHomeAchievements{text-align:center}
 body.web-mode .x-product-gallery{grid-template-columns:1fr}
 body.web-mode .x-post-copy{padding:16px}
 body.web-mode #toast{bottom:100px}
 body.web-mode.keyboard-open #navigation{display:none}
}
