/* HOTFIX 035 — compact character dossier, in-page tabs and expandable power entries.
   Keeps the existing Naruto visual language while reducing the oversized sheet. */
#app .ninja-v04.game-layout.route-character .workspace>main#main>.empire-dossier{
 width:min(100%,1200px)!important;max-width:1200px!important;min-width:0!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier{
 padding:16px!important;margin:0 auto 18px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-tabbar{
 display:flex!important;gap:5px!important;flex-wrap:nowrap!important;overflow-x:auto!important;
 padding:0 0 10px!important;margin:0 0 12px!important;scrollbar-width:thin!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-tabbar button{
 flex:1 0 auto!important;min-width:max-content!important;min-height:38px!important;
 padding:8px 12px!important;background:#29483c!important;color:#f5d9b2!important;
 border:1px solid #ae8958!important;border-radius:3px 3px 0 0!important;
 font:700 12px/1.2 Manrope,Arial,sans-serif!important;letter-spacing:.025em!important;
 cursor:pointer!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-tabbar button:hover{
 background:#3a5d4c!important;color:#fff0d2!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-tabbar button.selected,
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-tabbar button[aria-selected=true]{
 background:#764734!important;color:#fff0d2!important;border-color:#d0a365!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .empire-character-cover{
 height:clamp(135px,19vw,225px)!important;min-height:0!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-titlebar{
 gap:12px!important;padding:13px 15px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-titlebar h1{
 font-size:clamp(25px,3vw,38px)!important;line-height:1.05!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier .dossier-titlebar .avatar{
 width:62px!important;height:62px!important;flex:0 0 62px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier-content{
 padding:15px 0 0!important;
}
#app .ninja-v04.game-layout.route-character .empire-profile-grid{
 gap:14px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier-content :is(.profile-facts,.profile-status,.dossier-special-section,.panel,.career-box,.storybook,.png-intro,.png-card){
 padding:13px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier-content :is(.profile-facts,.profile-status) h2{
 margin:0 0 9px!important;font-size:clamp(21px,2vw,27px)!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier-content .attribute-track{
 padding:9px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier-content .combat-disciplines{
 margin-top:14px!important;
}
#app .ninja-v04.game-layout.route-character .empire-dossier-content .dossier-reading{
 max-width:100%!important;
}
#app .ninja-v04.game-layout.route-character .title-audio-player{
 flex:0 0 auto!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-accordion{
 min-width:0!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-name-row{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;min-height:38px!important;padding:8px 12px!important;
 text-align:left!important;background:#e8dcc3!important;color:#352d28!important;
 border:1px solid #ae9a78!important;border-radius:4px!important;
 font:500 14px/1.35 Manrope,Arial,sans-serif!important;cursor:pointer!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-name-row:hover,
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-name-row[aria-expanded=true]{
 background:#f3e8d2!important;border-color:#90664a!important;color:#63303a!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-name-chevron{
 flex:0 0 auto!important;margin-left:12px!important;transition:transform .18s ease!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-name-row[aria-expanded=true] .power-name-chevron{
 transform:rotate(90deg)!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline[hidden]{
 display:none!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline:not([hidden]){
 margin:0 0 8px!important;padding:12px!important;
 background:#f4e9cf!important;border:1px solid #baa17d!important;border-top:0!important;
 border-radius:0 0 4px 4px!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline-sheet{
 padding:0!important;background:transparent!important;border:0!important;
 color:#352d28!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-table{
 width:100%!important;border-collapse:collapse!important;font-size:12px!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-table th,
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-table td{
 padding:7px 9px!important;border:1px solid #c7b38f!important;text-align:left!important;
 vertical-align:top!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-table th{
 width:34%!important;background:#e2d2b2!important;color:#63303a!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-table td{
 background:#f8efdE!important;color:#352d28!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-description{
 margin-top:10px!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-description h4{
 margin:0 0 5px!important;color:#63303a!important;font-size:13px!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-description .prose{
 margin:0!important;padding:10px!important;background:#eee1c3!important;
 border:1px solid #c7b38f!important;color:#352d28!important;
 font-size:12px!important;line-height:1.55!important;white-space:pre-wrap!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-actions{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:10px!important;flex-wrap:wrap!important;margin-top:10px!important;
}
#app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-actions p{
 margin:0!important;font-size:12px!important;
}
@media(max-width:820px){
 #app .ninja-v04.game-layout.route-character .workspace>main#main>.empire-dossier{
  width:100%!important;max-width:none!important;
 }
 #app .ninja-v04.game-layout.route-character .empire-dossier{padding:11px!important}
 #app .ninja-v04.game-layout.route-character .empire-dossier .dossier-tabbar button{
  flex:0 0 auto!important;padding:8px 10px!important;font-size:11px!important;
 }
 #app .ninja-v04.game-layout.route-character .empire-dossier .empire-character-cover{
  height:clamp(125px,32vw,190px)!important;
 }
}
@media(max-width:520px){
 #app .ninja-v04.game-layout.route-character .empire-dossier .dossier-titlebar{
  align-items:flex-start!important;flex-wrap:wrap!important;
 }
 #app .ninja-v04.game-layout.route-character .empire-dossier .dossier-titlebar .avatar{
  width:52px!important;height:52px!important;flex-basis:52px!important;
 }
 #app .ninja-v04.game-layout.route-character .empire-dossier-content .empire-profile-grid{
  grid-template-columns:minmax(0,1fr)!important;
 }
 #app .ninja-v04.game-layout:is(.route-character,.route-techniques) .power-detail-inline .power-detail-table th{
  width:40%!important;
 }
}
