:root {
  --nav: #122840;
  --nav2: #091b2d;
  --blue: #2b86d9;
  --blue2: #0c5eaa;
  --body: #f4f7fb;
  --line: #e7edf3;
  --ink: #1c324c;
  --muted: #7d8ba0;
  --green: #1da98b;
  --orange: #f1a54c;
  --red: #eb6b73;
  --purple: #8578cb;
  --white: #fff;
  --radius: 15px;
  --shadow: 0 5px 26px rgba(29, 59, 89, 0.035);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--body);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9cd2ff;
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(155deg, #162e49 0%, #10263f 55%, #0d2135 100%);
  width: 253px;
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  color: #d3dfeb;
  display: flex;
  flex-direction: column;
  padding: 29px 15px 19px;
  border-right: 1px solid #1f3d59;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 12px 34px;
}
.brand-icon {
  width: 41px;
  height: 41px;
  border: 1px solid #5599d4;
  border-radius: 12px;
  background: linear-gradient(145deg, #2e90e5, #1b5c9e);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px #0b152a4d;
}
.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: white;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.65px;
  color: #8eafcb;
  margin-top: 4px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.55px;
  text-transform: uppercase;
  color: #7796b1;
  font-weight: 800;
  padding: 0 16px;
  margin: 0 0 11px;
}
.nav-scroll {
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
}
.nav-group {
  margin-bottom: 23px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a7bbce;
  padding: 11px 14px;
  margin: 2px 0;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
  transition: 0.16s ease;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}
.nav:hover {
  background: #23415d;
  color: white;
}
.nav.active {
  background: linear-gradient(95deg, #247ac3, #215f99);
  color: #fff;
  box-shadow: 0 5px 15px #001f3840;
  font-weight: 700;
}
.nav-ico {
  width: 17px;
  height: 17px;
  opacity: 0.93;
}
.side-bottom {
  border-top: 1px solid #2c4661;
  padding: 17px 11px 0;
}
.side-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b1c5d7;
  font-size: 11px;
}
.online-dot {
  width: 7px;
  height: 7px;
  background: #38d6a2;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #38d6a21c;
}
.side-credit {
  font-size: 10px;
  color: #6e8ba5;
  margin-top: 13px;
}
.main {
  margin-left: 253px;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #97a3b3;
  font-size: 11px;
  white-space: nowrap;
}
.crumb strong {
  color: #314762;
  font-weight: 700;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f7f9fc;
  border: 1px solid #edf1f6;
  padding: 10px 13px;
  border-radius: 9px;
  width: 245px;
  color: #91a0b4;
}
.searchbox input {
  border: 0;
  outline: 0 !important;
  background: transparent;
  width: 100%;
  min-width: 0;
  color: #344963;
  font-size: 12px;
}
.small-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #fff;
  color: #7d8fa5;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #dcecff;
  color: #2a75b5;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.mob-toggle {
  display: none;
}
.content {
  padding: 32px 36px 45px;
  max-width: 1770px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: #162d49;
}
.subtitle {
  font-size: 12.5px;
  margin-top: 8px;
  color: #8694a6;
}
.header-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  min-height: 37px;
  padding: 0 14px;
  border: 1px solid #e1e8f0;
  color: #4e6077;
  background: #fff;
  font-weight: 700;
  font-size: 11.5px;
  white-space: nowrap;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #91bce3;
}
.btn-primary {
  background: linear-gradient(105deg, #328ce0, #1c70bd);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px #2c87d538;
}
.btn-primary:hover {
  background: #1268b8;
}
.btn-quiet {
  background: #f3f7fb;
}
.period {
  border: 1px solid #e4ebf1;
  padding: 3px;
  border-radius: 10px;
  display: inline-flex;
  background: white;
  gap: 1px;
}
.period button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #8a98a9;
  padding: 7px 10px;
  border-radius: 7px;
  font-weight: 700;
}
.period button.selected {
  background: #e8f2fd;
  color: #1776ce;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #173d67, #1e72b9 73%, #348bcb);
  padding: 27px 28px;
  margin-bottom: 24px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  min-height: 133px;
  color: white;
}
.hero:before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 54px solid #ffffff0b;
  right: 25px;
  top: -138px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 22px solid #ffffff0a;
  right: -80px;
  top: 58px;
}
.hero-left {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 1px;
  background: #ffffff21;
  padding: 6px 10px;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  margin-bottom: 11px;
  text-transform: uppercase;
  font-weight: 800;
}
.hero h2 {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  letter-spacing: -0.35px;
  font-size: 19px;
}
.hero p {
  font-size: 11.5px;
  color: #d1e5f7;
  margin-top: 8px;
  max-width: 570px;
  line-height: 1.5;
}
.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero-metric {
  text-align: right;
  white-space: nowrap;
}
.hero-metric b {
  font-size: 23px;
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
}
.hero-metric small {
  display: block;
  color: #bfddf5;
  margin-top: 4px;
  font-size: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 19px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat {
  padding: 20px 19px 17px;
  min-height: 139px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.stat-label {
  color: #8b99aa;
  font-size: 11.5px;
  font-weight: 600;
}
.stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eaf4ff;
  color: #2d8bdd;
}
.stat-value {
  font-family: "Plus Jakarta Sans";
  font-size: 27px;
  font-weight: 800;
  color: #1c3653;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-top: 8px;
}
.stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 11px;
  color: #8d9cad;
  font-size: 10px;
}
.change {
  color: #179e7c;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}
.chart-area {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 17px;
  margin-bottom: 17px;
}
.panel {
  padding: 21px 21px 19px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-title {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.25px;
  color: #243e59;
}
.panel-sub {
  color: #91a0ae;
  font-size: 10.5px;
  margin-top: 5px;
}
.panel-tools {
  color: #8d9fb2;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart {
  height: 260px;
  min-width: 0;
  position: relative;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart canvas {
  max-width: 100%;
}
.legend {
  display: flex;
  gap: 15px;
  color: #8998aa;
  font-size: 10.5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.donut-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 260px;
}
.donut {
  position: relative;
  width: 175px;
  height: 175px;
  flex-shrink: 0;
}
.donut svg {
  width: 100%;
  height: 100%;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.donut-center strong {
  font-family: "Plus Jakarta Sans";
  font-size: 24px;
  color: #213b58;
}
.donut-center span {
  font-size: 10px;
  color: #9aabba;
  margin-top: 3px;
}
.donut-legend {
  display: grid;
  gap: 14px;
  min-width: 100px;
}
.donut-legend .line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8192a4;
}
.donut-legend strong {
  display: block;
  font-size: 13px;
  color: #29435e;
  margin: 4px 0 0 13px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 17px;
}
.table-wrap {
  overflow: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 550px;
}
.tbl th {
  text-align: left;
  color: #9ba9b9;
  font-weight: 700;
  font-size: 10px;
  background: #f8fafd;
  padding: 12px 13px;
  white-space: nowrap;
  border-bottom: 1px solid #edf0f3;
}
.tbl td {
  color: #506982;
  padding: 13px;
  border-bottom: 1px solid #f1f4f7;
  white-space: nowrap;
}
.tbl td strong {
  color: #25405c;
  font-weight: 700;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl tbody tr:hover {
  background: #f9fbff;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 6px;
}
.badge.ok {
  background: #e7f9f1;
  color: #16987f;
}
.badge.warning {
  background: #fff5e8;
  color: #bb7e27;
}
.badge.danger {
  background: #ffeef0;
  color: #d46b74;
}
.badge.info {
  background: #e8f3fe;
  color: #287fc9;
}
.insight {
  display: flex;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f5;
}
.insight:last-child {
  border-bottom: 0;
}
.insight-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eaf3fd;
  color: #398ad0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.insight h4 {
  font-size: 11.5px;
  color: #304b65;
  line-height: 1.35;
}
.insight p {
  margin-top: 5px;
  font-size: 10.5px;
  color: #91a0b1;
  line-height: 1.6;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 19px;
}
.sector-tile {
  border: 1px solid #e7edf3;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  min-width: 0;
  transition: 0.18s;
  box-shadow: var(--shadow);
}
.sector-tile:hover {
  border-color: #91bfe7;
  transform: translateY(-2px);
}
.sector-tile .tile-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2c4965;
  font-size: 11px;
}
.tile-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef5fe;
  color: #3f91dc;
}
.sector-tile .tile-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.sector-tile strong {
  font-size: 19px;
  font-family: "Plus Jakarta Sans";
}
.sector-tile small {
  font-size: 10px;
  color: #94a1af;
}
.bar-track {
  height: 4px;
  background: #e8eff6;
  border-radius: 6px;
  margin-top: 9px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #3b94d9;
  border-radius: 6px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 15px;
  background: #edf6ff;
  color: #4d7da7;
  border-radius: 10px;
  border: 1px solid #d6eafd;
  font-size: 11px;
  line-height: 1.55;
}
.muted {
  color: #91a2b4;
}
.muted-sm {
  font-size: 11px;
  color: #91a2b4;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-weight: 700;
  color: #526880;
  font-size: 11px;
}
.control {
  border: 1px solid #e3ebf3;
  border-radius: 9px;
  min-height: 39px;
  background: #fff;
  color: #4a6179;
  padding: 9px 11px;
  width: 100%;
  outline: none;
}
.control:focus {
  border-color: #3889d1;
  box-shadow: 0 0 0 3px #e5f2ff;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.data-intro {
  margin-bottom: 21px;
}
.dropzone {
  border: 1.5px dashed #b8d5ee;
  background: #fafdff;
  border-radius: 15px;
  padding: 34px 18px;
  text-align: center;
  transition: 0.2s;
}
.dropzone.dragging {
  background: #ddecfc;
  border-color: #3686d1;
}
.drop-symbol {
  width: 55px;
  height: 55px;
  border-radius: 18px;
  background: #e9f4ff;
  color: #2a81cf;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.dropzone h3 {
  font-family: "Plus Jakarta Sans";
  font-size: 14px;
  color: #294762;
}
.dropzone p {
  margin: 8px auto 14px;
  max-width: 390px;
  color: #8ba0b4;
  line-height: 1.65;
  font-size: 11px;
}
.file-input {
  display: none;
}
.file-list {
  display: grid;
  gap: 10px;
}
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e9eef4;
  border-radius: 10px;
}
.file-row strong {
  font-size: 11px;
}
.file-row small {
  display: block;
  margin-top: 6px;
  color: #9ba9b7;
}
.file-row .btn {
  min-height: 30px;
}
.info-box {
  background: #f4f9ff;
  border: 1px solid #e2effb;
  padding: 16px;
  border-radius: 11px;
  line-height: 1.7;
  font-size: 11px;
  color: #6b87a2;
}
.section-space {
  margin-top: 19px;
}
.small-title {
  font-size: 12px;
  font-weight: 800;
  color: #324f69;
  margin-bottom: 11px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: auto;
  padding-bottom: 6px;
}
.tabs button {
  border: 1px solid #e7edf3;
  background: white;
  border-radius: 8px;
  color: #8b9aad;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 10.5px;
  white-space: nowrap;
}
.tabs button.active {
  background: #257cc7;
  color: white;
  border-color: #257cc7;
}
.empty {
  padding: 45px 20px;
  color: #95a4b4;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.empty svg {
  margin: 0 auto 12px;
  opacity: 0.45;
}
.preview-table {
  max-height: 340px;
  overflow: auto;
}
.preview-table .tbl {
  min-width: 500px;
}
.help {
  font-size: 10.5px;
  color: #9aa9b8;
  line-height: 1.55;
  margin-top: 5px;
}
.chat {
  min-height: 345px;
  max-height: 460px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 3px 20px;
}
.msg {
  max-width: 87%;
  padding: 12px 15px;
  border-radius: 13px;
  line-height: 1.65;
  font-size: 12px;
  white-space: pre-wrap;
}
.msg.bot {
  align-self: flex-start;
  background: #f0f6fd;
  color: #415b76;
  border-top-left-radius: 3px;
}
.msg.user {
  align-self: flex-end;
  background: #247acc;
  color: #fff;
  border-top-right-radius: 3px;
}
.chat-input {
  border-top: 1px solid #ebeff4;
  padding-top: 15px;
  display: flex;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  min-width: 0;
}
.quick {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 17px;
}
.quick button {
  border: 1px solid #dce9f4;
  background: #f6faff;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 10px;
  color: #5380a8;
}
.progress {
  height: 7px;
  background: #eaf0f5;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 7px;
}
.progress > div {
  height: 100%;
  background: #318bd2;
  border-radius: 10px;
  transition: 0.3s;
}
.settings-list {
  display: grid;
  gap: 15px;
}
.settings-item {
  display: grid;
  grid-template-columns: 1fr 145px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eef3f6;
  padding-bottom: 13px;
}
.settings-item:last-child {
  border-bottom: 0;
}
.settings-item strong {
  font-size: 11.5px;
}
.settings-item small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #8c9caf;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 28px;
  right: 28px;
  max-width: 340px;
  padding: 14px 17px;
  color: #fff;
  background: #173f62;
  border-radius: 11px;
  box-shadow: 0 16px 36px #12304945;
  font-size: 12px;
  animation: in 0.2s;
}
.toast.error {
  background: #ae4550;
}
@keyframes in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.footer {
  padding: 18px 36px;
  color: #9caab9;
  border-top: 1px solid #eaf0f5;
  background: #fff;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.backdrop {
  display: none;
}
.report-summary {
  padding: 20px 22px;
  background: #f7fafd;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  color: #55708a;
  font-size: 12px;
  line-height: 1.85;
}
.report-summary strong {
  color: #203e5c;
}
.print-header {
  display: none;
}
@media (max-width: 1350px) {
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .sector-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .donut {
    width: 142px;
    height: 142px;
  }
  .donut-block {
    gap: 8px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 222px;
  }
  .main {
    margin-left: 222px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-area,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .donut {
    width: 170px;
    height: 170px;
  }
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .searchbox {
    width: 160px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: 276px;
    transform: translateX(-100%);
    transition: transform 0.22s;
    box-shadow: 10px 0 35px #0012222d;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #08192891;
    z-index: 35;
  }
  .main {
    margin-left: 0;
  }
  .mob-toggle {
    display: grid;
  }
  .topbar {
    padding: 0 15px;
    height: 61px;
  }
  .head-actions {
    gap: 7px;
  }
  .searchbox {
    display: none;
  }
  .crumb {
    font-size: 10px;
  }
  .content {
    padding: 19px 14px 28px;
  }
  .overview-head {
    gap: 14px;
    flex-direction: column;
    margin-bottom: 18px;
  }
  .title {
    font-size: 23px;
  }
  .subtitle {
    font-size: 11.5px;
    line-height: 1.5;
  }
  .header-buttons {
    width: 100%;
    gap: 7px;
  }
  .header-buttons .btn {
    flex: 1;
  }
  .period {
    margin-left: auto;
  }
  .hero {
    padding: 20px;
    min-height: 165px;
    align-items: flex-start;
  }
  .hero h2 {
    font-size: 17px;
    line-height: 1.4;
  }
  .hero p {
    max-width: 275px;
    font-size: 10.5px;
  }
  .hero-right {
    display: none;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    min-height: 122px;
    padding: 13px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
  }
  .stat-footer {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .panel {
    padding: 16px 13px;
  }
  .chart {
    height: 215px;
  }
  .donut-block {
    min-height: 205px;
  }
  .donut {
    height: 155px;
    width: 155px;
  }
  .donut-legend {
    gap: 9px;
  }
  .page-grid {
    grid-template-columns: 1fr;
  }
  .sector-grid {
    gap: 9px;
  }
  .sector-tile {
    padding: 12px;
  }
  .sector-tile strong {
    font-size: 17px;
  }
  .footer {
    padding: 15px;
    font-size: 9px;
  }
  .settings-item {
    grid-template-columns: 1fr 105px;
  }
  .toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .file-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 370px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-value {
    font-size: 20px;
  }
  .period button {
    padding: 7px;
  }
  .header-buttons {
    gap: 5px;
  }
  .header-buttons .btn {
    font-size: 10px;
    padding: 0 9px;
  }
  .donut {
    width: 128px;
    height: 128px;
  }
  .donut-center strong {
    font-size: 20px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .header-buttons,
  .footer,
  .notice,
  .btn,
  .tabs,
  .quick,
  .chat-input {
    display: none !important;
  }
  .main {
    margin: 0 !important;
  }
  .content {
    padding: 0 !important;
    width: 100%;
  }
  .hero {
    background: #eff7ff !important;
    color: #173f65 !important;
  }
  .hero p {
    color: #567692 !important;
  }
  .print-header {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 15px;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
  .chart-area,
  .bottom-grid {
    display: block;
  }
  .panel {
    margin-bottom: 15px;
  }
  .tbl {
    min-width: 0;
  }
  .page-grid {
    display: block;
  }
  body {
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Michelle Motion System: leveza tátil e animações discretas */
:root {
  --motion-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-quick: cubic-bezier(0.2, 0.75, 0.25, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  background: radial-gradient(
    ellipse at 83% 2%,
    #f8fbff 0%,
    #f4f7fb 42%,
    #f4f7fb 100%
  );
}
.sidebar {
  box-shadow: 9px 0 36px rgba(15, 38, 65, 0.045);
}
.topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.content > * {
  animation: softAppear 0.45s var(--motion-soft) both;
}
.content > *:nth-child(2) {
  animation-delay: 45ms;
}
.content > *:nth-child(3) {
  animation-delay: 80ms;
}
.content > *:nth-child(4) {
  animation-delay: 115ms;
}
.content > *:nth-child(5) {
  animation-delay: 140ms;
}
@keyframes softAppear {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
.btn,
.nav,
.sector-tile,
.small-icon-btn,
.stat-icon,
.card,
.period button,
.quick button {
  transition:
    transform 0.36s var(--motion-soft),
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.4s var(--motion-soft);
}
.card {
  box-shadow:
    0 2px 6px rgba(16, 45, 74, 0.012),
    0 16px 36px rgba(16, 45, 74, 0.023);
  border-color: #e6edf5;
}
.card:hover {
  box-shadow:
    0 7px 22px rgba(26, 65, 100, 0.035),
    0 24px 48px rgba(26, 65, 100, 0.035);
  border-color: #dae6f0;
}
.stat:hover {
  transform: translateY(-2px);
}
.sector-tile:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 14px 30px rgba(25, 73, 112, 0.075);
}
.nav:hover,
.btn:hover,
.small-icon-btn:hover {
  transform: translateY(-1px);
}
.nav.active:hover {
  transform: none;
}
.nav:hover {
  background: #24435d;
}
.nav.active {
  background: linear-gradient(115deg, #2d87cc, #1e629e);
}
.hero {
  background: linear-gradient(110deg, #16395f, #2169a8 58%, #398dcc 100%);
  box-shadow: 0 15px 35px rgba(43, 117, 184, 0.075);
}
.hero:before,
.hero:after {
  transition: transform 1.1s var(--motion-soft);
}
.hero:hover:before {
  transform: translate(-11px, 12px) scale(1.06);
}
.hero:hover:after {
  transform: translate(-8px, -6px);
}
.chart,
.bar-fill,
.progress > div,
.tab,
.badge {
  transition: all 0.5s var(--motion-soft);
}
input.control,
textarea.control,
select.control {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
input.control:focus,
textarea.control:focus,
select.control:focus {
  border-color: #9fc8ee;
  box-shadow: 0 0 0 4px rgba(60, 145, 222, 0.09);
  outline: none;
}
.top-assistant {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: #3778b7;
  border: 1px solid #dcebf8;
  border-radius: 999px;
  background: linear-gradient(105deg, #f8fbff, #f2f8fe);
  font-size: 11px;
  font-weight: 750;
  transition: all 0.34s var(--motion-soft);
  white-space: nowrap;
}
.top-assistant:hover {
  background: #eaf4ff;
  border-color: #bddbf5;
  transform: translateY(-2px);
  box-shadow: 0 8px 21px rgba(51, 128, 199, 0.09);
}
/* Assistente em destaque discreto: não cobre métricas ao navegar */
.assistant-fab {
  position: fixed;
  z-index: 91;
  bottom: 24px;
  right: 26px;
  border: 1px solid rgba(169, 204, 232, 0.75);
  color: #fff;
  background: linear-gradient(118deg, #276fae 0%, #318ed2 56%, #2675b6 100%);
  border-radius: 18px;
  padding: 9px 17px 9px 9px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 12px 29px rgba(24, 90, 153, 0.16),
    0 2px 8px rgba(27, 99, 155, 0.1);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition:
    transform 0.36s var(--motion-soft),
    box-shadow 0.36s ease,
    background 0.36s ease;
  isolation: isolate;
  overflow: hidden;
}
.assistant-fab:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    104deg,
    transparent 12%,
    rgba(255, 255, 255, 0.17) 45%,
    transparent 72%
  );
  transform: translateX(-130%);
  pointer-events: none;
  animation: fabricShimmer 12s ease-in-out 3s infinite;
}
@keyframes fabricShimmer {
  0%,
  81%,
  100% {
    transform: translateX(-140%);
  }
  88% {
    transform: translateX(140%);
  }
}
.assistant-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 35px rgba(35, 106, 171, 0.21);
}
.assistant-fab.active {
  box-shadow: 0 8px 25px rgba(30, 95, 155, 0.15);
}
.fab-emblem {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.fab-presence {
  width: 6px;
  height: 6px;
  background: #a4f6db;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(178, 255, 217, 0.15);
}
.assistant-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}
.assistant-layer.open {
  pointer-events: auto;
}
.assistant-dismiss {
  display: none;
}
.assistant-window {
  position: absolute;
  bottom: 90px;
  right: 26px;
  width: min(430px, calc(100vw - 28px));
  height: min(610px, calc(100dvh - 120px));
  min-height: 380px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid #e2ecf5;
  border-radius: 21px;
  box-shadow:
    0 28px 85px rgba(18, 54, 88, 0.2),
    0 4px 18px rgba(18, 54, 88, 0.06);
  transform: translateY(15px) scale(0.965);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.39s var(--motion-soft),
    opacity 0.26s ease,
    visibility 0.26s;
}
.assistant-layer.open .assistant-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.assistant-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  padding: 16px 20px;
  background: linear-gradient(128deg, #eff6fd 0%, #f8fbff 70%, #eaf5fd 100%);
  border-bottom: 1px solid #e7eef6;
}
.assistant-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.assistant-identity strong {
  display: block;
  font:
    800 14px "Plus Jakarta Sans",
    sans-serif;
  color: #173a58;
  letter-spacing: -0.2px;
}
.assistant-identity small {
  font-size: 10px;
  color: #8296aa;
  display: block;
  margin-top: 4px;
}
.assistant-emblem {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dceeff, #f7fbff);
  color: #277ec5;
  border: 1px solid #cfe6fb;
  box-shadow: 0 6px 18px rgba(34, 120, 203, 0.09);
}
.assistant-header-actions {
  display: flex;
  gap: 4px;
}
.assistant-header-actions button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8295a9;
  display: grid;
  place-items: center;
  transition: 0.22s;
}
.assistant-header-actions button:hover {
  background: #e3f0fc;
  color: #247fc5;
}
.assistant-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  background: #f3f7fb;
  border: 1px solid #e9f0f6;
  border-radius: 12px;
  margin: 14px 18px 0;
}
.assistant-mode {
  min-height: 38px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8496a8;
  background: transparent;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.32s var(--motion-soft);
}
.assistant-mode.is-current {
  background: #fff;
  color: #267bbd;
  box-shadow: 0 3px 12px rgba(26, 77, 119, 0.075);
}
.assistant-mode:hover:not(.is-current) {
  color: #426c93;
  background: #edf4fc;
}
.assistant-context {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8899a9;
  font-size: 9.6px;
  line-height: 1.5;
  padding: 9px 18px 10px;
  border-bottom: 1px solid #f1f4f8;
  text-align: center;
}
.assistant-context svg {
  color: #33ab93;
}
.assistant-context-dot {
  width: 6px;
  height: 6px;
  background: #c5a268;
  border-radius: 50%;
  flex-shrink: 0;
}
.assistant-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 19px 17px 14px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  scrollbar-width: thin;
  scrollbar-color: #d8e6f2 transparent;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}
.assistant-line {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  animation: messageArrive 0.34s var(--motion-soft) both;
  animation-delay: var(--message-delay, 0ms);
}
@keyframes messageArrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.assistant-line.user {
  flex-direction: row-reverse;
}
.assistant-mini-avatar {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: #e9f4ff;
  color: #3b8ccd;
  font-weight: 800;
  font-size: 11px;
}
.assistant-line.user .assistant-mini-avatar {
  background: #edf2f8;
  color: #647e97;
}
.assistant-bubble {
  font-size: 11.5px;
  line-height: 1.73;
  max-width: calc(100% - 47px);
  padding: 12px 14px;
  border: 1px solid #e8f0f8;
  border-radius: 15px 15px 15px 5px;
  color: #536c83;
  background: #f2f7fc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-line.user .assistant-bubble {
  background: linear-gradient(128deg, #348fd4, #237bbd);
  color: #fff;
  border-color: #3d93d3;
  border-radius: 15px 15px 5px 15px;
  box-shadow: 0 4px 15px rgba(39, 120, 186, 0.08);
}
.assistant-bottom {
  padding: 12px 16px 14px;
  border-top: 1px solid #eaf0f6;
  background: #fff;
}
.assistant-quick {
  display: flex;
  gap: 6px;
  overflow: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding: 2px 0 11px;
}
.assistant-quick::-webkit-scrollbar {
  display: none;
}
.assistant-quick button {
  flex-shrink: 0;
  border: 1px solid #dceaf6;
  border-radius: 999px;
  background: #f8fbff;
  color: #547997;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
  padding: 8px 10px;
  transition: all 0.28s var(--motion-soft);
}
.assistant-quick button:hover {
  background: #eaf5ff;
  border-color: #bedcf4;
  transform: translateY(-1px);
}
.assistant-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #f8fafd;
  border: 1px solid #e2eaf3;
  padding: 7px 8px 7px 13px;
  border-radius: 13px;
  transition: all 0.3s var(--motion-soft);
}
.assistant-form:focus-within {
  background: #fff;
  border-color: #91c5ef;
  box-shadow: 0 0 0 4px rgba(43, 130, 205, 0.07);
}
.assistant-form textarea {
  resize: none;
  display: block;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  color: #28445e;
  font-size: 12px;
  line-height: 1.5;
  padding: 7px 0;
  min-height: 31px;
  max-height: 114px;
  scrollbar-width: thin;
}
.assistant-form textarea::placeholder {
  color: #9eacba;
}
.assistant-form button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(125deg, #3895dd, #2a7fc4);
  color: white;
  transition: 0.28s var(--motion-soft);
}
.assistant-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 135, 205, 0.2);
}
.assistant-disclaimer {
  color: #9aa9b8;
  text-align: center;
  font-size: 9px;
  margin: 9px 0 0;
  line-height: 1.5;
}
.assistant-full-card {
  display: flex;
  flex-direction: column;
  min-height: 620px;
}
.assistant-full-card .assistant-messages {
  min-height: 340px;
}
.assistant-full-card .assistant-modes {
  margin: 0 0 0;
}
.assistant-full-card .assistant-bottom {
  padding: 14px 0 0;
}
.assistant-full-card .assistant-context {
  margin: 0 -3px;
}
.assistant-full-card .assistant-messages {
  margin: 0 -5px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .top-assistant {
    padding: 8px;
    border-radius: 11px;
  }
  .top-assistant span {
    display: none;
  }
  .assistant-fab {
    bottom: max(15px, env(safe-area-inset-bottom));
    right: 14px;
    padding: 8px 12px 8px 8px;
    min-height: 49px;
    border-radius: 15px;
  }
  .fab-emblem {
    height: 32px;
    width: 32px;
    border-radius: 11px;
  }
  .assistant-fab .fab-label {
    font-size: 11px;
  }
  .assistant-window {
    bottom: 82px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 100px);
    height: min(620px, calc(100dvh - 112px));
    border-radius: 19px;
  }
  .assistant-window-header {
    min-height: 70px;
    padding: 12px 15px;
  }
  .assistant-identity strong {
    font-size: 13px;
  }
  .assistant-identity small {
    font-size: 9.5px;
  }
  .assistant-emblem {
    width: 37px;
    height: 37px;
  }
  .assistant-full-card {
    min-height: 580px;
  }
  .toast {
    bottom: 79px;
  }
}
@media (max-width: 370px) {
  .assistant-mode {
    font-size: 10px;
    gap: 4px;
  }
  .assistant-modes {
    margin-inline: 12px;
  }
  .assistant-bottom {
    padding: 10px 12px 12px;
  }
  .assistant-line {
    gap: 6px;
  }
  .assistant-bubble {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .assistant-window {
    transform: none !important;
  }
}
@media print {
  .assistant-layer,
  .assistant-fab,
  .top-assistant,
  .assistant-full-card .assistant-modes,
  .assistant-full-card .assistant-context,
  .assistant-full-card .assistant-bottom {
    display: none !important;
  }
}

.assistant-chat-root {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.assistant-full-card .assistant-chat-root {
  min-height: 520px;
}
@media (max-width: 700px) {
  .topbar > .row {
    min-width: 0;
    flex: 1;
  }
  .topbar .crumb {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .avatar {
    display: none;
  }
  .head-actions {
    flex-shrink: 0;
  }
}
@media (max-width: 370px) {
  .topbar .head-actions > .badge.info {
    display: none;
  }
}

/* A janela é não modal: manter o dashboard clicável ao fundo. */
.assistant-layer.open {
  pointer-events: none;
}
.assistant-layer.open .assistant-window {
  pointer-events: auto;
}
@media (max-height: 580px) {
  .assistant-window {
    min-height: 0;
    height: calc(100dvh - 104px);
  }
  .assistant-window-header {
    min-height: 58px;
    padding-block: 8px;
  }
  .assistant-modes {
    margin-top: 8px;
  }
  .assistant-messages {
    padding-top: 12px;
  }
  .assistant-quick {
    padding-bottom: 5px;
  }
}

/* Michelle Studio: grafite, azul e geometria executiva com movimento contido */
:root {
  --nav: #10233d;
  --nav2: #071827;
  --blue: #1266c7;
  --blue2: #0e55a2;
  --body: #eaf0f7;
  --line: #dce5ef;
  --ink: #122e4d;
  --muted: #6e8298;
  --radius: 6px;
  --shadow: 0 7px 22px rgba(17, 52, 88, 0.045);
}
body {
  background: linear-gradient(145deg, #edf3fa 0%, #e7eef7 55%, #eef2f6 100%);
}
.card,
.sector-tile,
.stat,
.btn,
.control,
.period,
.badge,
.info-box,
.notice,
.toast,
.searchbox,
.assistant-window,
.assistant-fab,
.top-assistant {
  border-radius: 7px !important;
}
.hero {
  border-radius: 9px !important;
  background: linear-gradient(108deg, #0d2644 0%, #124d8b 48%, #1177ca 100%);
  box-shadow: 0 19px 33px rgba(20, 71, 130, 0.13);
}
.card,
.sector-tile {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border-color: #d8e2ee !important;
  box-shadow: 0 6px 20px rgba(12, 45, 82, 0.052);
}
.card:hover,
.sector-tile:hover {
  box-shadow: 0 13px 31px rgba(12, 45, 82, 0.095);
}
.stat {
  border-top: 3px solid #1c7bd5 !important;
}
.stat:nth-child(2) {
  border-top-color: #1f9b89 !important;
}
.stat:nth-child(3) {
  border-top-color: #546c98 !important;
}
.stat:nth-child(4) {
  border-top-color: #577ec4 !important;
}
.title {
  color: #0d2d52;
}
.eyebrow {
  color: #0c64bd;
  letter-spacing: 1.45px;
}
.panel-title {
  color: #183351;
}
.topbar {
  background: #fbfdffeb;
}
.side-label {
  color: #8fb0cc;
}
.nav.active {
  background: linear-gradient(98deg, #0b5cae, #187bcc);
  box-shadow: inset 3px 0 #6bc4ff;
}
.sidebar {
  background: linear-gradient(170deg, #162d47, #0b1f35 75%, #081726);
}
.btn-primary {
  background: linear-gradient(118deg, #135aa8, #1478d1);
  color: #fff;
  border-color: #1e70b8;
}
.btn-primary:hover {
  background: #125aab;
}
.small-icon-btn,
.top-assistant,
.avatar {
  border-radius: 7px !important;
}
.studio-promo {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 17px 19px;
  margin: 0 0 18px;
  background: linear-gradient(100deg, #102a49 0%, #164a7e 58%, #1669ae 100%);
  color: #fff;
  border: 1px solid #235c94;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(17, 65, 112, 0.11);
  animation: softAppear 0.4s ease both;
}
.studio-promo-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #ffffff1b;
  border: 1px solid #ffffff34;
  border-radius: 6px;
  flex: none;
}
.studio-promo > div:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.studio-promo strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
}
.studio-promo span {
  color: #bbd7f4;
  font-size: 11px;
  line-height: 1.6;
}
.studio-promo .btn {
  flex: none;
  background: #eff7ff;
  color: #14538e;
  border-color: #daeafd;
}
.studio-container {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.studio-intro {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  background: linear-gradient(116deg, #0e233f 0%, #143c68 50%, #126cbc 100%);
  color: #fff;
  border: 1px solid #23659e;
  border-radius: 8px;
}
.studio-intro:after {
  content: "";
  position: absolute;
  border: 1px solid #9cd8ff28;
  width: 240px;
  height: 240px;
  right: -54px;
  top: -95px;
  transform: rotate(28deg);
  border-radius: 24px;
}
.studio-intro h2 {
  font:
    800 clamp(19px, 2.2vw, 25px) "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.7px;
  margin: 6px 0 7px;
}
.studio-intro p {
  color: #c0dbf4;
  max-width: 690px;
  line-height: 1.7;
  font-size: 12px;
}
.studio-intro .caption-over {
  color: #68c6ff;
  font-weight: 800;
  letter-spacing: 1.9px;
  font-size: 10px;
  text-transform: uppercase;
}
.studio-wizard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.studio-step {
  border: 1px solid #d4e0ec;
  background: #f9fcff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border-radius: 6px;
}
.studio-step b {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #e5effa;
  color: #0e66bb;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}
.studio-step span {
  color: #4d647b;
  font-size: 11px;
  font-weight: 750;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(245px, 300px) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.studio-controls,
.studio-workspace {
  min-width: 0;
}
.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.studio-panel {
  background: #fff;
  border: 1px solid #d6e1ed;
  border-radius: 7px;
  padding: 18px;
  box-shadow: 0 8px 27px #162f490b;
}
.studio-panel h3 {
  font:
    800 13px "Plus Jakarta Sans",
    sans-serif;
  color: #1d3d60;
  margin-bottom: 5px;
}
.studio-panel .studio-hint {
  color: #798aa0;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.studio-field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.studio-field label {
  font-weight: 750;
  color: #4f6882;
  font-size: 11px;
}
.studio-field input,
.studio-field select,
.studio-field textarea {
  width: 100%;
  border: 1px solid #cfdfed;
  color: #1b3c5a;
  background: #f9fbfe;
  border-radius: 5px;
  min-height: 37px;
  padding: 9px 10px;
  outline: none;
}
.studio-field textarea {
  min-height: 95px;
  line-height: 1.55;
  resize: vertical;
}
.studio-field :is(input, select, textarea):focus {
  border-color: #348add;
  box-shadow: 0 0 0 3px #2a86df1b;
}
.studio-field-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.studio-check {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d9e6f2;
  background: #f9fbfe;
  border-radius: 5px;
  color: #45617d;
  font-weight: 700;
  font-size: 10.5px;
  cursor: pointer;
}
.studio-check:has(input:checked) {
  color: #1159a2;
  background: #eaf4ff;
  border-color: #82b9ea;
}
.studio-check input {
  accent-color: #126bc6;
}
.studio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.studio-actions .btn {
  justify-content: center;
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.studio-actions .btn-primary {
  flex: 1;
}
.studio-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.studio-palette label {
  cursor: pointer;
  padding: 5px 5px 7px;
  border: 1px solid #d8e2ed;
  border-radius: 5px;
  color: #536b82;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}
.studio-palette label:has(input:checked) {
  border-color: #1872c8;
  box-shadow: 0 0 0 2px #277dd721;
}
.studio-palette input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.studio-swatch {
  display: block;
  height: 22px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: linear-gradient(105deg, #071e36, #197cc9);
}
.studio-palette label:nth-child(2) .studio-swatch {
  background: linear-gradient(105deg, #181f2c, #47566e);
}
.studio-palette label:nth-child(3) .studio-swatch {
  background: linear-gradient(105deg, #e6eff9, #6aa6df);
}
.studio-workspace {
  display: grid;
  gap: 11px;
}
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.studio-toolbar h3 {
  color: #153553;
  font-weight: 800;
  font-size: 13px;
}
.studio-toolbar small {
  color: #71859b;
}
.studio-toolbar .btn {
  padding: 9px 11px;
}
.studio-stage {
  padding: 15px;
  background: linear-gradient(120deg, #dae5f1, #e8eff7);
  border: 1px solid #cbd9e9;
  border-radius: 8px;
}
.studio-slide {
  --deck-a: #071c34;
  --deck-b: #176ebe;
  --deck-accent: #72c7ff;
  position: relative;
  aspect-ratio: 16/9;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(125deg, var(--deck-a), var(--deck-b));
  color: #fff;
  padding: clamp(15px, 3.6vw, 50px);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 29px #0a27482c;
  isolation: isolate;
}
.studio-slide.theme-graphite {
  --deck-a: #111a2b;
  --deck-b: #3b4961;
  --deck-accent: #98b2d4;
}
.studio-slide.theme-claro {
  --deck-a: #dce9f7;
  --deck-b: #8bb7e1;
  --deck-accent: #1761ad;
  color: #123757;
}
.studio-slide:before {
  content: "";
  position: absolute;
  right: -11%;
  top: -35%;
  height: 118%;
  aspect-ratio: 1;
  border: 1px solid #ffffff26;
  transform: rotate(21deg);
  border-radius: 13%;
  z-index: -1;
}
.studio-slide:after {
  content: "";
  position: absolute;
  right: -17%;
  bottom: -70%;
  height: 117%;
  aspect-ratio: 1;
  background: #ffffff0a;
  transform: rotate(31deg);
  z-index: -1;
}
.slide-topline,
.slide-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(7px, 0.8vw, 11px);
  color: var(--deck-accent);
}
.slide-main {
  display: grid;
  gap: clamp(7px, 1.6vw, 21px);
  align-content: center;
  max-width: 90%;
  margin: auto 0;
}
.slide-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 850;
  font-size: clamp(7px, 0.85vw, 12px);
  color: var(--deck-accent);
}
.slide-title {
  font:
    800 clamp(15px, 3.1vw, 49px)/1.13 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.04em;
  max-width: 900px;
  overflow-wrap: anywhere;
}
.slide-subtitle {
  font-size: clamp(8px, 1.12vw, 17px);
  line-height: 1.58;
  color: inherit;
  opacity: 0.76;
  max-width: 790px;
}
.slide-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 1.4vw, 18px);
  margin-top: 1.3vw;
}
.slide-num {
  padding: clamp(8px, 1.6vw, 23px);
  border: 1px solid #ffffff32;
  background: #ffffff13;
  border-radius: 3px;
}
.slide-num strong {
  display: block;
  font:
    800 clamp(17px, 3.5vw, 47px) "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.05em;
}
.slide-num span {
  display: block;
  font-size: clamp(7px, 0.9vw, 13px);
  opacity: 0.8;
  line-height: 1.5;
}
.slide-bars {
  display: grid;
  gap: clamp(4px, 0.8vw, 12px);
  width: min(83%, 740px);
  margin-top: 6px;
}
.slide-bar-row {
  display: grid;
  grid-template-columns: minmax(62px, 28%) 1fr auto;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: clamp(7px, 0.9vw, 13px);
}
.slide-track {
  height: clamp(5px, 0.8vw, 12px);
  background: #ffffff28;
  border-radius: 1px;
  overflow: hidden;
}
.slide-fill {
  display: block;
  background: var(--deck-accent);
  height: 100%;
  border-radius: 1px;
  transition: width 0.4s;
}
.slide-points {
  list-style: none;
  margin: 0;
  display: grid;
  gap: clamp(5px, 0.9vw, 13px);
  padding: 0;
}
.slide-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(9px, 1.15vw, 18px);
}
.slide-points li:before {
  content: "";
  height: 5px;
  width: 5px;
  background: var(--deck-accent);
  flex: none;
}
.studio-slide.cover .slide-main {
  max-width: 85%;
}
.studio-slide.cover .slide-title {
  font-size: clamp(21px, 4.4vw, 67px);
}
.studio-slides-list {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 5px 3px 7px;
  scrollbar-width: thin;
}
.studio-thumb {
  flex: 0 0 140px;
  border: 1px solid #d5e1ed;
  border-radius: 5px;
  background: #fff;
  padding: 5px;
  text-align: left;
  color: #3b5470;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.3s,
    border 0.2s;
}
.studio-thumb.active {
  border-color: #1468bc;
  box-shadow: 0 0 0 2px #1a7dc228;
}
.studio-thumb:hover {
  transform: translateY(-2px);
}
.studio-thumb-screen {
  aspect-ratio: 16/9;
  padding: 10px;
  border-radius: 3px;
  background: linear-gradient(120deg, #0d2948, #236fb5);
  color: white;
  display: flex;
  align-items: center;
  font:
    750 9px "Plus Jakarta Sans",
    sans-serif;
  overflow: hidden;
}
.studio-thumb.graphite .studio-thumb-screen {
  background: linear-gradient(120deg, #141f31, #4e5f79);
}
.studio-thumb.claro .studio-thumb-screen {
  background: linear-gradient(120deg, #dfeafb, #7dacda);
  color: #133957;
}
.studio-thumb small {
  display: block;
  padding: 6px 3px 2px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.studio-editor .studio-field {
  margin-top: 0;
}
.studio-editor-controls {
  display: flex;
  gap: 7px;
  align-items: end;
  flex-wrap: wrap;
}
.studio-editor-controls button {
  height: 36px;
}
.studio-help {
  font-size: 11px;
  line-height: 1.65;
  color: #577088;
}
.studio-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 50px 20px;
  background: #f4f8fd;
  border: 1px dashed #aac9e7;
  border-radius: 6px;
  color: #4c6882;
  gap: 10px;
}
.studio-empty b {
  font-size: 14px;
  color: #174470;
}
.tv-stage {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #071426;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: white;
  animation: softAppear 0.3s ease;
}
.tv-stage .tv-canvas {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(8px, 2vw, 28px);
}
.tv-stage .studio-slide {
  height: min(calc(100dvh - 104px), 56.25vw);
  width: min(100%, calc((100dvh - 104px) * 16 / 9));
  max-width: 100%;
  padding: clamp(20px, 5vw, 85px);
  border-radius: 0;
}
.tv-stage .studio-slide .slide-title {
  font-size: clamp(28px, 4vw, 72px);
}
.tv-stage .studio-slide.cover .slide-title {
  font-size: clamp(34px, 5.2vw, 100px);
}
.tv-stage .studio-slide .slide-subtitle {
  font-size: clamp(14px, 1.5vw, 26px);
}
.tv-stage .studio-slide .slide-kicker,
.tv-stage .studio-slide .slide-topline,
.tv-stage .studio-slide .slide-bottomline {
  font-size: clamp(12px, 1vw, 20px);
}
.tv-stage .studio-slide .slide-points li {
  font-size: clamp(14px, 2vw, 32px);
}
.tv-stage .studio-slide .slide-num strong {
  font-size: clamp(27px, 4.4vw, 80px);
}
.tv-stage .studio-slide .slide-num span {
  font-size: clamp(12px, 1.4vw, 24px);
}
.tv-stage .studio-slide .slide-bar-row {
  font-size: clamp(12px, 1.5vw, 24px);
}
.tv-controls {
  background: #07182b;
  border-top: 1px solid #28435e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(12px, 3vw, 38px);
  min-height: 74px;
}
.tv-controls button {
  border: 1px solid #43617c;
  background: #173856;
  color: #fff;
  border-radius: 4px;
  min-height: 38px;
  padding: 9px 15px;
  font-weight: 700;
}
.tv-controls button:hover {
  background: #2564a1;
}
.tv-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.tv-counter {
  display: grid;
  gap: 5px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}
.tv-counter small {
  color: #9ebad5;
  font-weight: 500;
}
.tv-counter progress {
  width: 150px;
  height: 4px;
  accent-color: #48acfa;
}
@media (max-width: 1050px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .studio-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .studio-slide .slide-title {
    font-size: clamp(17px, 4vw, 46px);
  }
  .studio-slide .slide-subtitle {
    font-size: clamp(9px, 1.6vw, 16px);
  }
  .studio-slide .slide-kicker {
    font-size: clamp(9px, 1.2vw, 12px);
  }
  .studio-slide .slide-points li {
    font-size: clamp(9px, 1.4vw, 16px);
  }
}
@media (max-width: 700px) {
  .studio-promo {
    padding: 13px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .studio-promo .btn {
    width: 100%;
    justify-content: center;
  }
  .studio-promo-icon {
    width: 34px;
    height: 34px;
  }
  .studio-wizard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-controls {
    grid-template-columns: 1fr;
  }
  .studio-intro {
    padding: 19px;
  }
  .studio-stage {
    padding: 6px;
  }
  .studio-slide {
    padding: 17px;
  }
  .studio-slide .slide-title {
    font-size: clamp(17px, 5.4vw, 27px);
  }
  .studio-slide.cover .slide-title {
    font-size: clamp(18px, 6vw, 31px);
  }
  .studio-slide .slide-subtitle {
    font-size: clamp(8px, 2.1vw, 11px);
  }
  .studio-slide .slide-topline,
  .studio-slide .slide-bottomline,
  .studio-slide .slide-kicker {
    font-size: clamp(6px, 1.6vw, 10px);
  }
  .studio-slide .slide-points li {
    font-size: clamp(8px, 2vw, 12px);
    gap: 6px;
  }
  .studio-slide .slide-main {
    gap: 9px;
  }
  .studio-slide .slide-nums {
    gap: 6px;
  }
  .studio-slide .slide-num {
    padding: 7px;
  }
  .studio-slide .slide-num strong {
    font-size: clamp(17px, 4vw, 25px);
  }
  .studio-slide .slide-num span {
    font-size: 7px;
  }
  .studio-slide .slide-bar-row {
    gap: 5px;
    font-size: 7px;
  }
  .studio-slide .slide-bars {
    width: 100%;
  }
  .studio-editor {
    grid-template-columns: 1fr;
  }
  .studio-toolbar {
    gap: 7px;
  }
  .studio-toolbar .btn {
    flex: 1;
    justify-content: center;
  }
  .tv-stage .studio-slide {
    height: auto;
    width: min(100%, calc((100dvh - 96px) * 16 / 9));
    aspect-ratio: 16/9;
    padding: 5vw;
  }
  .tv-stage .studio-slide .slide-title {
    font-size: clamp(18px, 6vw, 36px);
  }
  .tv-stage .studio-slide.cover .slide-title {
    font-size: clamp(20px, 7vw, 42px);
  }
  .tv-stage .studio-slide .slide-subtitle {
    font-size: clamp(8px, 2vw, 14px);
  }
  .tv-stage .studio-slide .slide-points li {
    font-size: clamp(9px, 2.6vw, 14px);
  }
  .tv-stage .studio-slide .slide-num strong {
    font-size: clamp(16px, 4vw, 27px);
  }
  .tv-controls {
    gap: 4px;
    min-height: 65px;
    padding: 7px;
  }
  .tv-controls button {
    font-size: 11px;
    padding: 8px;
    min-height: 37px;
  }
  .tv-counter progress {
    width: 70px;
  }
  .tv-counter small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-thumb,
  .studio-slide,
  .studio-promo,
  .tv-stage {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .studio-wizard,
  .studio-controls,
  .studio-toolbar,
  .studio-slides-list,
  .studio-editor,
  .studio-intro,
  .tv-stage {
    display: none !important;
  }
  .studio-layout {
    display: block;
  }
  .studio-stage {
    background: #fff !important;
    border: 0 !important;
  }
  .studio-stage .studio-slide {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
    width: 100% !important;
  }
}
/* Não permitir que prévia 16:9 expanda o flex-container em resoluções menores. */
.app > .main {
  min-width: 0;
  width: calc(100% - 253px);
  flex: 1 1 auto;
}
.main > .content {
  min-width: 0;
  max-width: 100%;
}
.studio-container,
.studio-workspace,
.studio-panel,
.studio-stage {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1050px) {
  .app > .main {
    width: calc(100% - 222px);
  }
}
@media (max-width: 700px) {
  .app > .main {
    width: 100%;
  }
}
