/* Match the supplied Pilot AI composition and keep its branding visible. */
.sidebar { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.sidebar .brand { flex-shrink: 0; min-height: 165px; margin-bottom: 9px; }
.sidebar .practice, .sidebar .profile { display: none; }
.sidebar .nav-label { flex-shrink: 0; padding-top: 5px; padding-bottom: 11px; }
.sidebar .nav { overflow-y: auto; flex: 0 1 auto; min-height: 88px; scrollbar-width: thin; }
.sidebar .nav button { flex-shrink: 0; min-height: 44px; }
.sidebar-bottom { flex-shrink: 0; margin-top: auto; padding-top: 17px; }
.sidebar-rhino { padding: 15px 10px 13px; }
.sidebar-rhino .rhino-reference { height: 232px; }
.sidebar-rhino h3 { font-size: 14px; }
.sidebar-rhino p { margin: 5px 0 14px; }
.sidebar-rhino button { min-height: 40px; }
.mobile-brand-row { display: none; }
.header-profile { display: flex; align-items: center; gap: 9px; }
.header-profile strong { display: block; color: #f1f5fb; font-size: 13px; font-weight: 550; }
.header-profile small { display: block; color: #b9c3d2; font-size: 12px; }
.header-profile .avatar { display: grid; }
.header-rhino { display: none; }
.topbar { min-height: 94px; padding-top: 11px; }
.metrics { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; margin-bottom: 13px; }
.metric { padding: 20px 15px 17px; grid-template-columns: 50px minmax(0,1fr); column-gap: 14px; min-height: 137px; }
.metric-icon { width: 50px; height: 50px; }
.metric-value { font-size: 33px; }
.metric-top > span:first-child { font-size: 13px; font-weight: 450; }
.metric-bottom { font-size: 12px; }
.metric:nth-child(2) .metric-icon { background: linear-gradient(145deg,#30a50e,#165b08); }
.metric:nth-child(3) .metric-icon { background: linear-gradient(145deg,#7b2ec0,#3b127a); }
.metric:nth-child(5) .metric-icon { background: linear-gradient(145deg,#0597b9,#014c75); }
.workspace { grid-template-columns: minmax(0,1.8fr) minmax(320px,1fr); gap: 14px; align-items: start; }
.workspace.single-view { grid-template-columns: minmax(0,1fr); }
.overview-top { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 13px; margin-bottom: 13px; }
.overview-top > .card { margin: 0; }
.overview-top .card-head { padding: 15px 16px 8px; align-items: start; }
.overview-top .card-head h2 { font-size: 14px; line-height: 1.5; }
.overview-top .card-head p { font-size: 12px; }
.readiness-rings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 8px 12px 13px; }
.ring-item { display: flex; flex-direction: column; align-items: center; color: #c4cddd; min-width: 0; padding: 0 2px; }
.ring-item:hover .progress-ring { filter: brightness(1.15); }
.ring-item h3 { font-size: 12px; font-weight: 450; margin-bottom: 7px; }
.ring-count { color: #e5eaf3; font-size: 17px; margin-bottom: 9px; white-space: nowrap; }
.ring-count strong { color: var(--ring-color); font-weight: 600; }
.progress-ring { width: 107px; height: 107px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--ring-color) calc(var(--ring-value) * 1%),#1b2a3a 0); }
.progress-ring:before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #07121e; }
.ring-value { position: relative; display: flex; align-items: center; flex-direction: column; }
.ring-value strong { font-size: 27px; font-weight: 600; line-height: 1.2; color: #f3f6fb; }
.ring-value small { font-size: 11px; font-weight: 450; color: #c0ccdc; }
.ring-caption { color: #a8b8cd; font-size: 11px; margin-top: 9px; text-align: center; line-height: 1.5; }
.ring-foot { color: #a3b4ca; font-size: 11px; text-align: center; padding: 0 10px 13px; }
.chart-summary { text-align: center; font-size: 16px; color: #e4ebf8; padding: 2px 10px 2px; }
.chart-summary strong { color: #66c543; font-weight: 550; }
.readiness-chart { width: 100%; height: 170px; stroke: none; overflow: visible; }
.readiness-chart text { fill: #b2c0d4; stroke: none; font-size: 12px; font-family: inherit; }
.chart-legend { display: flex; gap: 16px; justify-content: center; align-items: center; padding: 0 10px 11px; flex-wrap: wrap; color: #c2cde0; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 20px; height: 2px; background: #296dff; display: inline-block; }
.chart-legend .ready-line { background: #58b92d; }
.practice-insights { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.practice-insights .card { margin: 0; }
.practice-insights .card-head { padding: 13px 17px 10px; }
.practice-insights .card-head h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.5; }
.practice-insights .card-head h2 svg { width: 18px; height: 18px; }
.insight-rows { padding: 0 17px 10px; }
.insight-row { display: flex; align-items: center; gap: 9px; border-top: 1px solid #152331; padding: 6px 0; color: #c8d2e2; font-size: 13px; }
.insight-row svg { width: 16px; height: 16px; color: #9eacc4; }
.insight-row strong { margin-left: auto; color: #f0f5ff; font-weight: 500; }
.needs-attention { background: linear-gradient(125deg,#1c141c,#0d0f1a); border-color: #362332; }
.needs-attention .card-head h2, .attention-total { color: #f36970; }
.attention-total { font-size: 20px; font-weight: 550; }
.attention-rows { padding: 0 17px; }
.attention-row { width: 100%; display: flex; gap: 9px; align-items: start; text-align: left; padding: 7px 0; border-top: 1px solid #2e202b; color: #ece4eb; }
.attention-row span { font-size: 13px; white-space: nowrap; }
.attention-row small { margin-left: auto; font-size: 12px; color: #bdabb7; text-align: right; }
.needs-attention .card-foot { justify-content: center; border-color: #2e202b; padding: 8px 15px; }
.guide-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #142938; width: 100%; text-align: left; color: #dbe5f4; font-size: 13px; }
.guide-row:hover { color: #74afff; }
.guide-number { color: #63c684; width: 14px; flex-shrink: 0; }
.guide-row svg { margin-left: auto; width: 14px; height: 14px; color: #6282ad; }
.guides-card .card-head h2 { color: #96e0c1; }
.guides-card .card-foot { justify-content: center; padding: 8px 15px; }
.quick-row { display: flex; gap: 10px; padding: 11px 0; text-align: left; width: 100%; border-top: 1px solid #152a3e; }
.quick-row > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #0b3baa; color: #f1f7ff; }
.quick-row:nth-child(2) > span:first-child { background: #176729; }
.quick-row:nth-child(3) > span:first-child { background: #662297; }
.quick-row svg { width: 18px; height: 18px; }
.quick-row strong { font-size: 13px; font-weight: 500; color: #e0e8f7; }
.quick-row small { display: block; color: #aabed7; font-size: 11px; margin-top: 2px; }
.rhino-panel { display: none; position: fixed; width: 370px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); right: 17px; top: auto; bottom: 17px; overflow-y: auto; z-index: 65; box-shadow: 0 15px 80px #000a; }
.rhino-panel.mobile-open { display: block; position: fixed; inset: auto 17px 17px auto; width: 370px; max-height: calc(100dvh - 28px); background: #071423; }
.rhino-panel .rhino-mobile-close { display: inline-flex!important; }
.rhino-log { max-height: 44dvh; }
.float-rhino { display: none; }
.workspace-note { margin-top: 14px; }

@media (max-height: 820px) and (min-width: 801px) {
  .sidebar { padding-top: 12px; padding-bottom: 12px; }
  .sidebar .brand { min-height: 165px; margin-bottom: 4px; }
  .sidebar .nav-label { padding-bottom: 6px; }
  .sidebar-bottom { padding-top: 11px; }
  .sidebar-rhino { padding-top: 11px; padding-bottom: 10px; }
  .sidebar-rhino .rhino-reference { width: 157px; height: 200px; margin-top: 5px; }
  .sidebar-rhino .rhino-reference img { width: 1274.88px; height: 849.92px; left: -16.6px; top: -494.4px; }
  .sidebar-rhino p { margin: 4px 0 10px; }
}
@media (max-height: 650px) and (min-width: 801px) {
  .sidebar-rhino .rhino-reference { width: 133px; height: 167px; }
  .sidebar-rhino .rhino-reference img { width: 1075.2px; height: 716.8px; left: -14px; top: -416.9px; }
  .sidebar .nav { flex: 1 1 auto; min-height: 50px; }
  .sidebar-bottom { margin-top: 5px; }
}
@media (max-width: 1450px) {
  .metric { grid-template-columns: 40px minmax(0,1fr); column-gap: 10px; padding: 18px 12px 15px; }
  .metric-icon { width: 40px; height: 40px; }
  .metric-icon svg { width: 23px; height: 23px; }
  .metric-top > span:first-child { font-size: 12px; }
  .metric-bottom { font-size: 11px; }
  .workspace { grid-template-columns: minmax(0,1.75fr) minmax(295px,1fr); }
  .overview-top { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  .readiness-rings { padding-top: 10px; }
  .ring-foot { padding-bottom: 15px; }
  .readiness-chart { height: 180px; }
}
@media (min-width: 1161px) and (max-width: 1260px) {
  .overview-top { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1160px) {
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric { min-height: 120px; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .overview-top { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .practice-insights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-profile { display: none; }
}
@media (max-width: 800px) {
  .mobile-brand-row { display: flex; flex: 1 0 100%; align-items: center; justify-content: space-between; min-height: 126px; height: auto; width: 100%; padding-bottom: 4px; border-bottom: 1px solid #16293c; margin-bottom: 3px; }
  .mobile-brand-row .brand-logo { display: block; flex-shrink: 0; width: 148px; height: auto; margin-left: 0; }
  .mobile-brand-row .mobile-menu { display: inline-flex; padding: 10px; color: #e6f0ff; border: 1px solid #2b4668; border-radius: 6px; }
  .topbar { padding: 8px 16px 14px; gap: 9px; align-items: center; }
  .topbar-main { flex: 1 1 100%; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .subtitle { max-width: none; font-size: 12px; }
  .top-actions { margin-left: 0; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .metric { min-height: 116px; grid-template-columns: 39px minmax(0,1fr); }
  .metric:nth-child(5) { grid-column: 1 / -1; grid-template-columns: 45px minmax(0,1fr); min-height: 94px; }
  .metric:nth-child(5) .metric-icon { grid-row: 1 / span 3; }
  .metric:nth-child(5) .metric-bottom { grid-column: 2; padding-top: 0; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .overview-top { grid-template-columns: minmax(0,1fr); }
  .practice-insights { grid-template-columns: minmax(0,1fr); }
  .progress-ring { width: 118px; height: 118px; }
  .readiness-rings { padding: 12px 12px 15px; }
  .ring-item h3 { font-size: 13px; }
  .ring-count { font-size: 18px; }
  .ring-caption { font-size: 12px; }
  .readiness-chart { height: 187px; }
  .page { padding-bottom: 210px; }
  .sidebar.mobile-open { z-index: 70; }
  .menu-shade.mobile-open { z-index: 69; }
  .sidebar-rhino .rhino-reference { height: 232px; }
  .float-rhino { display: flex; flex-direction: column; align-items: center; position: fixed; left: 12px; right: auto; bottom: 12px; width: 108px; height: 166px; z-index: 45; padding: 7px 5px 5px; border-radius: 9px; background: #030d19; border: 1px solid #305797; color: #e9f1ff; box-shadow: 0 8px 30px #0008; gap: 0; }
  .float-rhino .mobile-rhino-title { display: block; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .5px; }
  .mini-rhino-art { position: relative; display: block; width: 93px; height: 118px; overflow: hidden; flex-shrink: 0; }
  .mini-rhino-art img { position: absolute; max-width: none; width: 752.64px; height: 501.76px; left: -9.8px; top: -292px; pointer-events: none; }
  .mobile-rhino-label { display: block; width: 100%; background: #0b49ee; border: 1px solid #3e71e9; padding: 5px 1px; border-radius: 4px; font-size: 11px; font-weight: 500; line-height: 1.2; }
  .rhino-panel.mobile-open { width: 370px; inset: auto 14px 14px auto; z-index: 80; }
  .toast { bottom: 185px; }
}
@media (max-height: 600px) {
  .sidebar { overflow-y: auto; padding-top: 8px; padding-bottom: 8px; }
  .sidebar .brand { margin-bottom: 0; }
  .sidebar .nav-label { display: none; }
  .sidebar .nav { flex: 1 1 auto; min-height: 36px; max-height: 120px; }
  .sidebar-bottom { margin-top: 7px; padding-top: 0; }
  .sidebar-rhino { padding: 8px; }
  .sidebar-rhino h3 { font-size: 12px; }
  .sidebar-rhino .rhino-reference { width: 100px; height: 128px; margin-top: 4px; }
  .sidebar-rhino .rhino-reference img { width: 798.72px; height: 532.48px; left: -10.4px; top: -309.92px; }
  .sidebar-rhino p { font-size: 11px; margin: 3px 0 6px; }
  .sidebar-rhino button { min-height: 33px; padding: 7px 5px; font-size: 12px; }
}
@media (max-height: 650px) {
  .sidebar .brand { min-height: 138px; }
  .sidebar .brand-logo { width: 160px; }
}
