
/* =========================================================
   NEXORA v13 — final readability / minimalist UI polish
   ========================================================= */
html{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
html,body,.app{width:100%;max-width:100%;overflow:hidden}
.main{min-width:0}

/* Minimalist theme: more readable proportions */
html[data-theme-style="minimal"] .sidebar{
  width:272px!important;
  padding:15px 13px 12px!important;
}
html[data-theme-style="minimal"] .brandrow{
  height:50px!important;
  padding:0 6px 8px!important;
}
html[data-theme-style="minimal"] .brand{
  font-size:18px!important;
  font-weight:650!important;
  letter-spacing:-.025em!important;
}
html[data-theme-style="minimal"] .newchat{
  height:46px!important;
  padding:0 13px!important;
  font-size:13px!important;
  font-weight:580!important;
}
html[data-theme-style="minimal"] .sidebar .navs{
  padding:10px 2px 10px 0!important;
  margin-top:3px!important;
}
html[data-theme-style="minimal"] .sidebar .nav{
  height:38px!important;
  min-height:38px!important;
  padding:0 11px!important;
  gap:10px!important;
  font-size:13px!important;
  font-weight:480!important;
  line-height:1.25!important;
}
html[data-theme-style="minimal"] .sidebar :is(.navgroup-label,.label){
  padding-left:10px!important;
  font-size:9.5px!important;
  font-weight:650!important;
  letter-spacing:.055em!important;
}
html[data-theme-style="minimal"] .sidebar .history{
  max-height:156px!important;
  margin-top:5px!important;
  padding-right:2px!important;
}
html[data-theme-style="minimal"] .sidebar .history .item{
  height:32px!important;
  font-size:10.5px!important;
  font-weight:500!important;
}
html[data-theme-style="minimal"] .session-sidebar-row{gap:5px!important}
html[data-theme-style="minimal"] .session-mini{
  width:29px!important;height:29px!important;min-width:29px!important;
  font-size:11px!important;
}

/* Bottom profile — no clipping */
html[data-theme-style="minimal"] .bottom{
  padding-top:8px!important;
  margin-top:5px!important;
}
html[data-theme-style="minimal"] .profile.auth-profile{
  min-height:50px!important;
  padding:7px 5px!important;
  gap:8px!important;
  overflow:visible!important;
}
html[data-theme-style="minimal"] .profile.auth-profile .avatar{
  width:34px!important;height:34px!important;min-width:34px!important;
  font-size:12px!important;
}
html[data-theme-style="minimal"] .profile.auth-profile .pc{
  min-width:0!important;
}
html[data-theme-style="minimal"] .profile.auth-profile .pc strong{
  font-size:11.5px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html[data-theme-style="minimal"] .profile.auth-profile .pc span{
  font-size:9.5px!important;
  line-height:1.25!important;
}
html[data-theme-style="minimal"] .profile-logout.logout-visible{
  min-width:74px!important;
  height:32px!important;
  padding:0 8px!important;
  font-size:9.5px!important;
  font-weight:600!important;
  flex:none!important;
}

/* Header */
html[data-theme-style="minimal"] .top{
  height:64px!important;
  min-height:64px!important;
  padding:0 24px 0 28px!important;
}
html[data-theme-style="minimal"] .workspace-title{gap:3px!important}
html[data-theme-style="minimal"] .workspace-name{
  font-size:14.5px!important;
  font-weight:600!important;
  letter-spacing:-.01em!important;
}
html[data-theme-style="minimal"] .eyebrow{
  font-size:9px!important;
  font-weight:700!important;
  letter-spacing:.075em!important;
}
html[data-theme-style="minimal"] .top-actions{gap:9px!important}
html[data-theme-style="minimal"] .top-new-session{
  min-height:36px!important;
  padding:0 12px!important;
  font-size:12px!important;
}
html[data-theme-style="minimal"] .status{
  font-size:10.5px!important;
  font-weight:500!important;
}

/* Chat: bigger and easier to scan */
html[data-theme-style="minimal"] .messages{
  width:min(860px,calc(100% - 64px))!important;
  padding-top:34px!important;
  padding-bottom:184px!important;
}
html[data-theme-style="minimal"] .row{
  gap:15px!important;
  margin-bottom:30px!important;
}
html[data-theme-style="minimal"] .bubble{
  font-size:15.5px!important;
  line-height:1.72!important;
  letter-spacing:-.005em!important;
}
html[data-theme-style="minimal"] .user .bubble{
  max-width:80%!important;
  padding:12px 17px!important;
}
html[data-theme-style="minimal"] .actions{margin-top:9px!important}
html[data-theme-style="minimal"] .actions button{
  min-width:30px!important;
  min-height:30px!important;
}

/* Composer */
html[data-theme-style="minimal"] .composerwrap{
  width:min(860px,calc(100% - 48px))!important;
  bottom:16px!important;
}
html[data-theme-style="minimal"] .composer{
  min-height:68px!important;
  padding:9px 11px!important;
  border-radius:22px!important;
}
html[data-theme-style="minimal"] .composer textarea{
  min-height:42px!important;
  font-size:15.5px!important;
  line-height:1.55!important;
  padding:9px 6px!important;
}
html[data-theme-style="minimal"] .cb{
  width:38px!important;height:38px!important;
}
html[data-theme-style="minimal"] .send{
  width:39px!important;height:39px!important;
}
html[data-theme-style="minimal"] .note{
  font-size:10.5px!important;
  margin-top:7px!important;
}

/* Welcome and fast actions */
html[data-theme-style="minimal"] .welcome{
  width:min(840px,calc(100% - 64px))!important;
}
html[data-theme-style="minimal"] .welcome h1{
  font-size:clamp(34px,3.2vw,46px)!important;
  font-weight:620!important;
}
html[data-theme-style="minimal"] .welcome .sub{
  font-size:14.5px!important;
}
html[data-theme-style="minimal"] .card{
  min-height:104px!important;
}
html[data-theme-style="minimal"] .card strong{
  font-size:13.5px!important;
  font-weight:620!important;
}
html[data-theme-style="minimal"] .card span{
  font-size:12.5px!important;
  line-height:1.5!important;
}
html[data-theme-style="minimal"] .nx-chat-command-grid button{
  font-size:12.5px!important;
  font-weight:500!important;
}

/* Business views */
html[data-theme-style="minimal"] .control-view{
  font-size:13px!important;
}
html[data-theme-style="minimal"] .panel-copy h2{
  font-size:28px!important;
  font-weight:650!important;
  letter-spacing:-.035em!important;
}
html[data-theme-style="minimal"] .panel-copy p{
  font-size:13px!important;
  line-height:1.6!important;
}
html[data-theme-style="minimal"] :is(.nx-panel-head h3,.finance-section-head h3,.settings-card-head h3){
  font-size:15px!important;
  font-weight:630!important;
}
html[data-theme-style="minimal"] :is(.nx-muted,.nx-issue p,.nx-card-top p,.nx-card-note,.nx-brief-line span){
  font-size:10.5px!important;
  line-height:1.5!important;
}
html[data-theme-style="minimal"] .data-table th{
  font-size:10px!important;
}
html[data-theme-style="minimal"] .data-table td{
  font-size:12.5px!important;
}

/* Keep the fixed sidebar practical on narrower desktops */
@media(max-width:1100px) and (min-width:721px){
  html[data-theme-style="minimal"] .sidebar{width:250px!important}
  html[data-theme-style="minimal"] .profile-logout.logout-visible{
    min-width:34px!important;width:34px!important;padding:0!important;font-size:0!important;
  }
  html[data-theme-style="minimal"] .profile-logout.logout-visible span{font-size:14px!important}
}
@media(max-width:720px){
  html[data-theme-style="minimal"] .sidebar{
    width:min(286px,88vw)!important;
    padding:14px 12px!important;
  }
  html[data-theme-style="minimal"] .top{height:60px!important;min-height:60px!important;padding-right:12px!important}
  html[data-theme-style="minimal"] .messages{width:calc(100% - 28px)!important;padding-top:24px!important}
  html[data-theme-style="minimal"] .composerwrap{width:calc(100% - 20px)!important;bottom:10px!important}
  html[data-theme-style="minimal"] .bubble{font-size:14.5px!important}
}
