/* MicroMind Owner Repair R1: composition-only layer. Product behavior stays in existing scripts. */
:root{--r1-ink:#10251c;--r1-green:#0b5b3c;--r1-gold:#d9a33c;--r1-cream:#f4f5ef}
.stage{height:max(864px,100vh);background:var(--r1-cream)}
.stage-photo{background-position:35% 62%;background-size:cover;opacity:.9}
.stage-wash{background:linear-gradient(180deg,rgba(240,247,246,.32),rgba(245,243,231,.54) 62%,rgba(233,239,232,.82))}
.topbar{gap:18px}
.brand-medal{width:58px;height:58px}.brand-wordmark{width:142px;height:auto}
.top-tabs{background:rgba(249,252,250,.58);box-shadow:0 10px 24px rgba(17,55,39,.12),inset 0 1px 0 rgba(255,255,255,.7)}
.main-content{height:695px}
.hero-copy h1{font-size:34px;letter-spacing:-.035em}.hero-copy p{max-width:520px;font-size:13px}
.hero-search{width:520px;height:48px;border-radius:12px}.hero-search button{height:38px;padding-inline:22px;border-radius:10px}
.status-card,.dashboard-card,.rail-card{background:linear-gradient(145deg,rgba(252,254,252,.78),rgba(237,244,240,.58));}
.ai-panel{background:radial-gradient(circle at 50% 25%,rgba(53,164,111,.4),transparent 50%),linear-gradient(160deg,#06271b,#03140e);}
.ai-head h2{font-size:16px}.ai-copy{font-size:11px}
.mobile-menu-toggle{display:none}

@media (max-width:900px){
  html,body{background:#eef2ed;overflow-x:hidden}
  .viewport-shell{display:block;overflow-x:hidden;background:#eef2ed}
  .stage{width:100%;height:auto;min-height:100vh;overflow:visible;transform:none!important;padding-bottom:18px}
  .stage-photo{position:absolute;inset:0 0 auto;height:430px;background-position:42% 35%;background-size:auto 430px;opacity:.72}
  .stage-wash{height:520px;background:linear-gradient(180deg,rgba(236,246,247,.18),rgba(241,245,237,.9) 88%,#eef2ed)}
  .water-layer{height:520px}
  .topbar{position:relative;inset:auto;width:100%;height:auto;min-height:72px;padding:10px 14px;display:flex;flex-wrap:wrap;gap:10px;background:rgba(248,251,249,.78);backdrop-filter:blur(16px);border-bottom:1px solid rgba(20,48,36,.12);z-index:60}
  .brand{width:auto;flex:1;height:50px;min-width:0}.brand-medal{width:46px;height:46px}.brand-wordmark{width:112px}.brand-copy small{font-size:9px}
  .mobile-menu-toggle{display:grid;place-items:center;min-width:92px;height:42px;padding:0 12px;border-radius:11px;background:linear-gradient(180deg,#168357,#075638);color:#fff;font-size:12px;font-weight:800;box-shadow:0 5px 12px rgba(7,86,56,.24)}
  .top-tabs,.top-actions{display:none;order:3;width:100%;height:auto;flex:none}
  .topbar.menu-open .top-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:5px}
  .topbar.menu-open .top-actions{display:flex;flex-wrap:wrap;padding:8px;gap:6px}
  .topbar.menu-open .top-tab{height:40px;justify-content:center;font-size:12px}.topbar.menu-open .top-actions .cta{flex:1;justify-content:center;min-width:140px}
  .left-rail{position:relative;left:auto;top:auto;width:auto;height:auto;margin:12px 14px;padding:10px;display:none;z-index:45}
  .topbar.menu-open ~ .left-rail{display:block}.side-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.side-link{min-height:42px;font-size:11px}.rail-brand{display:none}
  .main-content{position:relative;left:auto;top:auto;width:auto;height:auto;margin:14px;display:flex;flex-direction:column;gap:12px;z-index:10}
  .hero-copy{position:relative;left:auto;top:auto;width:auto;height:auto;padding:22px 18px 18px}.hero-copy h1{font-size:clamp(27px,8vw,35px)}.hero-copy p{font-size:12.5px}
  .hero-search{width:100%;height:48px;margin-top:24px}.hero-search input{font-size:12px}.hero-search button{padding-inline:15px}
  .filter-row{flex-wrap:wrap;gap:6px}.filter-pill{height:36px;padding-inline:11px;font-size:10.5px}
  .status-grid,.dashboard-grid,.ai-panel,.right-rail{position:relative;left:auto;top:auto;width:auto;height:auto}
  .status-grid{order:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.status-card{min-height:78px;padding:10px}.status-card strong{font-size:13px}.status-card b{font-size:10px}
  .dashboard-grid{order:3;display:grid;grid-template-columns:1fr;gap:8px}.dashboard-card{min-height:180px}.compact-list li,.tool-list li{min-height:30px}
  .ai-panel{order:4;min-height:430px;padding:16px 14px}.ai-orbit{height:112px}.ai-medal{width:88px;height:88px}.ai-actions button{height:36px;font-size:11px}.ai-input{height:42px}
  .right-rail{order:5;display:grid;grid-template-columns:1fr;gap:8px}.rail-card,.rail-card:first-child,.team-card{min-height:0}.trust-bar{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:58px;margin:8px 14px;padding:10px 12px;display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:flex-start}.trust-bar>span,.trust-bar>a{font-size:10px}
  .main-content .right-rail{display:grid}
}
@media (max-width:520px){.hero-copy{padding-inline:14px}.status-grid{grid-template-columns:1fr}.topbar.menu-open .top-tabs{grid-template-columns:1fr 1fr}.topbar.menu-open .top-actions .icon-btn{display:none}.trust-bar{gap:8px 12px}.trust-bar>span,.trust-bar>a{font-size:9.5px}}
