/* Portfolio Manager workstation. Scoped to this plan's dashboard.
   Colours sampled from the December 2026 desktop concept:
   page off-white, surface #edf3f5, Ask panel #101c2e, teal #087f72.
   Foundations and Investor Mindset do not use these selectors. */

body.pm-studio-on.foundation-shell{background:#f7f8f8}
body.pm-studio-on.foundation-shell .content{max-width:1080px}
body.pm-studio-on .foundation-nav{display:none}
body.pm-studio-on #how-aimi-card,
body.pm-studio-on #youtube-card{display:none !important}

.pm-studio{
  background:#edf3f5;
  border-radius:22px;
  padding:22px 22px 18px;
  color:#101c2e;
}
.pm-studio button,
.pm-tabbar button{
  font-family:'Space Grotesk',sans-serif;
  cursor:pointer;
}
.pm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.pm-brand{
  font:700 22px/1.2 'Space Grotesk',sans-serif;
  letter-spacing:-.03em;
  color:#101c2e;
  white-space:nowrap;
}
.pm-brand span{font-weight:500;color:#3d4c5c}
.pm-nav{display:flex;flex-wrap:wrap;gap:4px 2px;justify-content:flex-end}
.pm-nav button,
.pm-tabbar button{
  background:transparent;
  color:#5c6b7a;
  border:0;
  border-radius:8px;
  padding:8px 10px;
  font:600 14px/1 'Space Grotesk',sans-serif;
}
.pm-nav button:hover,
.pm-tabbar button:hover{color:#101c2e}
.pm-nav button.active,
.pm-tabbar button.active{color:#101c2e}
.pm-nav button:focus-visible,
.pm-tile:focus-visible,
.pm-btn:focus-visible,
.pm-tabbar button:focus-visible{outline:2px solid #087f72;outline-offset:2px}

.pm-hero{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);gap:16px;align-items:stretch}
.pm-ask{
  background:#101c2e;
  color:#fff;
  border-radius:18px;
  padding:26px 26px 22px;
  display:flex;
  flex-direction:column;
  min-height:292px;
}
.pm-ask-title{margin:0;font:700 28px/1.15 'Space Grotesk',sans-serif;letter-spacing:-.03em;color:#fff}
.pm-mob-title{display:none}
.pm-ask-sub{margin:6px 0 0;color:#c5d0dc;font-size:15px}
.pm-wave{
  width:74px;height:74px;border-radius:50%;
  background:#087f72;
  display:grid;place-items:center;
  margin:22px 0 18px;
}
.pm-wave svg{display:block}
.pm-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border:0;border-radius:12px;
  background:#087f72;color:#fff;
  font:700 16px/1 'Space Grotesk',sans-serif;
}
.pm-btn:hover{background:#0a6d63}
.pm-btn.is-on{background:#0a5c5a}
.pm-speak{margin:14px 0 0;color:#d5dee8;font-size:14px}
.pm-prompt{
  display:block;
  width:100%;
  margin-top:16px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  font:600 16px/1.35 'Space Grotesk',sans-serif;
}
.pm-prompt:hover{color:#b7ebe4}
.pm-type{margin-top:10px}
body.foundation-shell .pm-studio .pm-type input,
.pm-type input{
  width:100%;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.28);
  border-radius:0;
  box-shadow:none;
  color:#d5dee8;
  font:400 15px/1.4 'Space Grotesk',sans-serif;
  padding:8px 0;
  min-height:0;
}
.pm-type input::placeholder{color:#8ea0b3}
.pm-type input:focus{outline:none;border-bottom-color:#087f72}
.pm-voice-status,.pm-voice-caption{
  margin:10px 0 0;
  color:#d5dee8;
  font-size:13px;
  line-height:1.45;
  white-space:pre-wrap;
}
.pm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

.pm-book{
  background:#fff;
  border-radius:18px;
  padding:22px 22px 18px;
  display:flex;
  flex-direction:column;
  box-shadow:0 1px 2px rgba(16,28,46,.04);
}
.pm-book-kicker{margin:0;color:#087f72;font:700 20px/1.2 'Space Grotesk',sans-serif}
.pm-flag{
  display:inline-block;
  margin-top:10px;
  color:#5c6b7a;
  font:600 13px/1.3 'Space Grotesk',sans-serif;
}
.pm-book-name{margin:8px 0 0;color:#5c6b7a;font-size:15px}
.pm-book-value{
  margin:8px 0 0;
  color:#101c2e;
  font:700 40px/1 'Space Grotesk',sans-serif;
  letter-spacing:-.04em;
}
.pm-book-return{margin:6px 0 0;color:#087f72;font:600 15px/1.3 'Space Grotesk',sans-serif}
.pm-chart{width:100%;height:78px;margin:12px 0 8px;display:block}
.pm-chart-empty{
  height:78px;margin:12px 0 8px;
  border-radius:10px;
  background:linear-gradient(#fff,#fff) padding-box, repeating-linear-gradient(90deg,#d7e3ea 0 8px,transparent 8px 14px) center/100% 2px no-repeat;
  display:flex;align-items:flex-end;
}
.pm-chart-empty span{color:#7d8b99;font-size:12px}
.pm-book .pm-btn{margin-top:auto}
.pm-book-note{margin:8px 0 0;color:#5c6b7a;font-size:12px;line-height:1.45}

.pm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.pm-metric{
  background:#fff;
  border-radius:16px;
  padding:16px 16px 14px;
  min-height:92px;
}
.pm-metric span{display:block;color:#5c6b7a;font-size:14px}
.pm-metric b{
  display:block;
  margin-top:8px;
  color:#101c2e;
  font:700 28px/1 'Space Grotesk',sans-serif;
  letter-spacing:-.03em;
}
.pm-metric-note{margin:10px 2px 0;color:#5c6b7a;font-size:12px;line-height:1.45}

.pm-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.pm-tile{
  background:#fff;
  color:#087f72;
  border:0;
  border-radius:16px;
  min-height:64px;
  padding:16px;
  font:600 18px/1.2 'Space Grotesk',sans-serif;
  text-align:center;
}
.pm-tile:hover{background:#f4fbfa}
.pm-tools-m{display:none}
.pm-foot{
  margin:14px 4px 2px;
  color:#5c6b7a;
  font-size:12px;
  line-height:1.45;
}

.pm-panel{margin-top:14px}
.pm-panel[hidden]{display:none !important}
.pm-panel .pm-jump{margin:0 0 8px;font-size:13px}
.pm-inline-link{
  background:transparent;border:0;padding:0;
  color:#087f72;font:600 13px/1.4 'Space Grotesk',sans-serif;
}

.pm-tabbar{display:none}

@media (max-width:760px){
  body.pm-studio-on.foundation-shell .content{padding:16px 12px 92px}
  .pm-studio{padding:16px 14px 14px;border-radius:18px}
  .pm-head{align-items:flex-start}
  .pm-nav{display:none}
  .pm-brand{font-size:18px}
  .pm-hero{grid-template-columns:1fr}
  .pm-ask{min-height:0;padding:20px 18px 16px}
  .pm-ask-title{font-size:24px}
  .pm-desk-title{display:none}
  .pm-mob-title{display:inline}
  .pm-wave{margin:16px 0 14px}
  .pm-book-value{font-size:34px}
  .pm-metrics{grid-template-columns:1fr 1fr}
  .pm-metric b{font-size:22px}
  .pm-tools-d{display:none}
  .pm-tools-m{display:grid}
  .pm-chart,.pm-chart-empty{height:56px}
  .pm-ask.is-live{
    position:fixed;inset:0;z-index:30;border-radius:0;
    min-height:100vh;overflow:auto;
  }
  body.pm-studio-on .pm-tabbar{
    display:flex;
    position:fixed;left:0;right:0;bottom:0;z-index:25;
    background:#fff;
    border-top:1px solid #d5e0e6;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content:space-around;
  }
  .pm-tabbar button{
    flex:1;
    font-size:11px;
    padding:8px 2px;
    color:#5c6b7a;
  }
  .pm-tabbar button.active{color:#087f72}
}
