/* Dropdown navigation, touch controls and compact attachment inside composer. */
.site-header{position:relative;z-index:100}.menu-drawer{position:absolute;top:var(--header-height,100px);inset-inline-end:20px;width:min(320px,calc(100% - 32px));display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;padding:10px;border:1px solid #ddd;border-radius:0 0 18px 18px;background:var(--paper);box-shadow:0 16px 35px #0002;z-index:110;max-height:75dvh;overflow-y:auto}.menu-drawer a{padding:14px 16px;min-height:44px;border-radius:10px}.menu-drawer a:hover,.menu-drawer a[aria-current=page]{background:#00000008;color:var(--orange)}.menu-toggle{min-width:44px;min-height:44px;display:grid;align-content:center;justify-content:center;gap:5px}.menu-toggle span{width:22px;height:2px;background:currentColor;display:block}.chat{z-index:1000}.chat-form{display:flex;align-items:center;gap:8px}.message-compose{display:flex;align-items:center;flex:1;min-width:0;background:#fff;border:1px solid #cbd3dd;border-radius:16px;padding:3px}.chat-form .message-compose #message-input{min-width:0;flex:1;width:auto;border:0;background:transparent;box-shadow:none;padding:12px 6px;font-size:16px}.chat-form .chat-attach{flex:none;display:grid;place-items:center;width:30px;height:30px;min-width:30px;min-height:30px;border:0;background:#edf1f6;border-radius:9px;margin-inline:4px;padding:0;font-size:23px;line-height:1;color:var(--ink)}.chat-form #send-button{flex:none;min-height:44px;border-radius:14px}.chat-attachment{display:flex;align-items:center;gap:8px;padding:6px 16px;min-width:0}.chat-attachment img{width:38px;height:38px;object-fit:cover;border-radius:8px}.chat-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px}.chat-attachment button{border:0;background:#edf1f6;border-radius:8px;width:30px;height:30px}.chat-upload-status{display:block;padding:0 16px 8px;font-size:11px;line-height:1.6;color:#536170}.chat-upload-status:empty{display:none}
@media(max-width:700px){
 body{background:#f5f6f8;padding-bottom:env(safe-area-inset-bottom)}
 .site-header{height:68px!important;padding:8px 16px!important;gap:12px!important;position:sticky;top:0;border-bottom:1px solid #e5e8ed;background:var(--paper);box-shadow:0 2px 10px #00000005}
 .menu-drawer{position:fixed;top:68px;inset-inline:12px;width:auto;border-radius:0 0 20px 20px;max-height:calc(100dvh - 84px)}
 .logo-slot{max-width:100px}.lang-switch{min-height:40px;display:flex;align-items:center;border-radius:12px}.nav-links{display:none!important}
 main{background:var(--paper)}.biography,.section{padding:30px 20px!important}.biography p{text-align:start;line-height:1.9}.feature-panel,.project-card{border-radius:18px;overflow:hidden}.project-cards,.work-gallery{gap:16px!important;padding-inline:16px!important}.talk,.downloads a{min-height:44px;border-radius:16px}.site-footer{padding:28px 20px 100px!important}.site-footer .contacts{gap:12px}.site-footer button{min-height:44px}.footer-email{font-size:14px;overflow-wrap:anywhere}
 .chat-launch{bottom:calc(16px + env(safe-area-inset-bottom));inset-inline-end:16px;border-radius:18px;min-height:48px;box-shadow:0 6px 24px #0002}
 .chat{position:fixed!important;inset:68px 0 0!important;width:100%!important;max-width:none!important;height:calc(100dvh - 68px)!important;max-height:none!important;border-radius:22px 22px 0 0!important;display:flex;flex-direction:column;box-shadow:0 -6px 24px #0002;padding-bottom:env(safe-area-inset-bottom);background:#fff}
 .chat-head{flex:none;padding:16px!important}.chat-head button{min-width:44px;min-height:44px;border-radius:12px}.chat .messages{flex:1;min-height:0;height:auto!important;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;padding:16px}.message{border-radius:16px;line-height:1.8}.chat-note{flex:none;margin:4px 14px;font-size:10px}.chat-form{flex:none;padding:10px 12px!important}.chat-attachment,.chat-upload-status{flex:none}
}

.chat-message-image{max-width:180px;max-height:140px;object-fit:contain;border-radius:12px;margin-top:8px}
