/* v13 – keyboard-safe conversation composer and focused founder workspace. */
:root{--ma-chat-viewport:100dvh}
#main-content:has(.v7-chat-shell){min-width:0}
.v7-chat-shell,.v7-chat-shell form,.v7-chat-shell input{touch-action:auto}
.v7-chat-form{position:relative;z-index:3}
.v7-chat-form input{font-size:16px!important;touch-action:manipulation;user-select:text;-webkit-user-select:text;appearance:none;-webkit-appearance:none}
.v7-chat-form input:focus{outline:2px solid #31875c;outline-offset:1px}
.v7-chat-send{flex-shrink:0;touch-action:manipulation}
/* Six management areas, one obvious navigation surface, compact status cards. */
#main-content:has(.v13-admin-nav){display:grid;grid-template-columns:minmax(190px,224px) minmax(0,1fr);column-gap:22px;align-content:start;max-width:1250px;margin:0 auto}
#main-content:has(.v13-admin-nav)>.v10-page-head{grid-column:1/-1;padding:22px 25px;margin:0 0 20px;border:1px solid #dce9e1;border-radius:22px;background:linear-gradient(115deg,#f7fcf8,#e9f5ee)}
#main-content:has(.v13-admin-nav)>.v10-page-head h1{font-size:clamp(25px,3vw,34px);letter-spacing:-1.1px}
.v13-admin-nav{display:flex;flex-direction:column;gap:7px;align-self:start;position:sticky;top:94px;background:#fff;border:1px solid #e0eae4;border-radius:19px;padding:13px;box-shadow:0 12px 35px #123c2310}
.v13-admin-label{font-size:11px;letter-spacing:1.25px;color:#719082;font-weight:850;padding:10px 10px 6px;text-transform:uppercase}
.v13-admin-nav button{width:100%;border:1px solid transparent;background:transparent;text-align:left;display:flex;align-items:center;gap:11px;padding:13px 12px;color:#456554;border-radius:12px;font-weight:750;font-size:12.5px;min-height:51px;cursor:pointer}
.v13-admin-nav button:hover{background:#f4faf6}
.v13-admin-nav button.active{border-color:#cae3d3;color:#16583d;background:#e9f6ee;box-shadow:inset 3px 0 #238352}
.v13-admin-nav button:focus-visible{outline:3px solid #408e65;outline-offset:2px}
.v13-admin-symbol{width:31px;height:31px;display:grid;place-items:center;background:#ecf5ef;border-radius:10px;flex-shrink:0;font-size:17px}
.v13-admin-nav button.active .v13-admin-symbol{background:white}
.v13-admin-nav button>span:last-child{flex:1}
#main-content:has(.v13-admin-nav)>.v10-admin-layout{min-width:0}
#main-content:has(.v13-admin-nav) .v10-panel{border-radius:20px;padding:23px;box-shadow:0 9px 28px #123c2308}
#main-content:has(.v13-admin-nav) .v10-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
#main-content:has(.v13-admin-nav) .v10-metric{min-height:104px;border-radius:16px;padding:17px}
#main-content:has(.v13-admin-nav) .v10-metric strong{font-size:27px}
#main-content:has(.v13-admin-nav) .v10-record{background:#fcfefd}
.v13-admin-footnote{margin-top:12px;padding:13px;background:#f5faf7;border-radius:12px;color:#607b6b;font-size:11px;line-height:1.6}
@media(max-width:1080px){#main-content:has(.v13-admin-nav){grid-template-columns:minmax(170px,194px) minmax(0,1fr);gap:13px}.v13-admin-nav{padding:9px}}
@media(max-width:860px){#main-content:has(.v13-admin-nav){display:block}.v13-admin-nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:15px;padding:8px;gap:6px}.v13-admin-label{grid-column:1/-1;padding:6px 8px 2px}.v13-admin-nav button{padding:10px;min-height:48px;font-size:12px}#main-content:has(.v13-admin-nav)>.v10-page-head{padding:18px;margin-bottom:14px}#main-content:has(.v13-admin-nav) .v10-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 body:has(.v7-chat-shell) .main-content{padding-bottom:calc(85px + var(--ma-bottom-safe))!important}
 .v7-chat-intro{margin:0 0 12px;gap:6px}
 .v7-chat-intro h1{font-size:22px;margin:3px 0}
 .v7-chat-intro p{font-size:11px}
 .v7-chat-private{display:none}
 .v7-chat-shell{display:flex;flex-direction:column;overflow:hidden;max-width:100%;border-radius:17px;min-height:0}
 .v7-chat-channels{flex:0 0 auto;max-width:100%;overflow-x:auto}
 .v7-chat-head{flex:0 0 auto;padding:8px 12px}
 .v7-chat-log{flex:1 1 auto;height:clamp(125px,calc(var(--ma-chat-viewport) - 390px),460px)!important;min-height:125px!important;max-height:460px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .v7-chat-form{display:flex!important;flex:0 0 auto;min-height:68px;padding:9px!important;padding-bottom:11px!important;background:#fff;gap:8px;z-index:3}
 .v7-chat-form input{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;height:48px!important;line-height:22px!important;min-width:0!important;flex:1 1 0!important;width:0!important;max-width:100%!important;font-size:16px!important;background:#f6faf7!important;color:#163e2a!important}
 .v7-chat-send{min-width:49px;min-height:48px;flex:0 0 49px}
 .v7-chat-tip{flex:0 0 auto;padding:0 12px 11px}
 html.ma-chat-typing .mobile-bottom-nav,body.ma-chat-typing .mobile-bottom-nav{display:none!important}
 html.ma-chat-typing #main-content{padding-bottom:calc(12px + var(--ma-bottom-safe))!important}
 html.ma-chat-typing .v7-chat-log{height:clamp(105px,calc(var(--ma-chat-viewport) - 270px),270px)!important;min-height:105px!important}
 html.ma-chat-typing .v7-chat-intro,html.ma-chat-typing .v7-chat-tip{display:none}
 html.ma-chat-typing .v7-chat-form{padding-bottom:calc(8px + var(--ma-bottom-safe))!important}
}
@media(max-width:360px){.v13-admin-symbol{width:24px;height:24px;font-size:14px}.v13-admin-nav button{gap:6px;font-size:11px}.v7-chat-head-icon{height:33px;width:33px}}
/* Finishing touches after 320/390 px rendering checks. */
.v7-chat-send{white-space:nowrap;overflow:hidden}
@media(max-width:860px){.v13-admin-footnote{grid-column:1/-1;margin-top:5px}.v13-admin-label{grid-column:1/-1}}
