:root {
  --bg: #050b14;
  --bg-soft: #091220;
  --surface: #0d1828;
  --surface-raised: #122239;
  --card: rgba(14, 28, 47, 0.86);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #f7f9fc;
  --muted: #91a2b8;
  --cyan: #49dcff;
  --blue: #6097ff;
  --violet: #9a86ff;
  --green: #4be1a5;
  --amber: #ffc768;
  --danger: #ff7c91;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 5% 0%, rgba(73, 220, 255, 0.13), transparent 25%),
    radial-gradient(circle at 92% 4%, rgba(154, 134, 255, 0.13), transparent 27%),
    linear-gradient(145deg, #050b14 0%, #07101c 48%, #050a12 100%);
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

::selection { color: #04101b; background: var(--cyan); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.25); border: 2px solid transparent; border-radius: 99px; background-clip: padding-box; }

.globalHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(90deg, rgba(7,15,27,.98), rgba(12,25,42,.97) 50%, rgba(7,15,27,.98));
  box-shadow: 0 14px 42px rgba(0,0,0,.22);
  backdrop-filter: blur(24px);
}

.globalHeader::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(73,220,255,.38), rgba(154,134,255,.28), transparent);
}

.headerBrand { display: inline-flex; width: fit-content; align-items: center; text-decoration: none; }
.headerBrand img { display: block; width: auto; height: 40px; }
.headerTitle { display: flex; align-items: center; justify-content: center; gap: 10px; color: #b9c5d4; font-size: clamp(15px, 1.45vw, 21px); font-weight: 580; letter-spacing: -.02em; white-space: nowrap; }
.headerTitle strong { color: #fff; font-weight: 820; }
.titleDivider { color: var(--cyan); font-size: 25px; font-weight: 400; }
.headerRight { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.headerLive { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(75,225,165,.17); border-radius: 12px; background: rgba(75,225,165,.045); }
.headerLive div { display: grid; gap: 2px; }
.headerLive strong { color: #dce8e2; font-size: 10px; font-weight: 800; }
.headerLive small { color: #72869a; font-size: 8px; }
.shell { display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: calc(100vh - 84px); }

.sidebar {
  position: sticky;
  top: 84px;
  z-index: 10;
  height: calc(100vh - 84px);
  padding: 27px 22px 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,15,27,.94), rgba(5,11,20,.88));
  box-shadow: 20px 0 60px rgba(0,0,0,.12);
  backdrop-filter: blur(24px);
}

.brand { display: flex; align-items: center; min-height: 52px; padding: 0 9px 26px; text-decoration: none; }
.brandLogo { display: block; width: 100%; max-width: 215px; height: auto; }
.brandMark { display: none; width: 44px; height: 44px; object-fit: contain; }

.workspaceLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 15px;
  color: #718399;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.workspaceLabel span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(73,220,255,.24);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(73,220,255,.08);
  font-size: 9px;
}

.nav { display: grid; gap: 8px; }

.nav button {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 64px;
  gap: 11px;
  padding: 10px 11px;
  overflow: hidden;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.nav button::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  content: "";
  border-radius: 0 5px 5px 0;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0;
}

.nav button:hover { color: #fff; background: rgba(255,255,255,.035); transform: translateX(2px); }
.nav button.active { color: #fff; border-color: rgba(73,220,255,.17); background: linear-gradient(90deg, rgba(73,220,255,.105), rgba(154,134,255,.055)); }
.nav button.active::before { opacity: 1; }

.navIcon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  transition: .2s ease;
}

.navIcon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav button.active .navIcon { color: #06101b; border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 8px 22px rgba(73,220,255,.18); }
.navLabel { min-width: 0; }
.navLabel strong, .navLabel small { display: block; }
.navLabel strong { color: inherit; font-size: 13px; font-weight: 760; }
.navLabel small { margin-top: 3px; overflow: hidden; color: #6f8299; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.stepno { color: #60738a; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.nav button.active .stepno { color: var(--cyan); }

.dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(75,225,165,.9); }
.tiny { color: var(--muted); font-size: 10px; }

.main { width: 100%; max-width: 1640px; margin: auto; padding: 34px 40px 58px; }

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 180px;
  margin-bottom: 18px;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(110deg, rgba(16,34,57,.96), rgba(10,23,40,.82)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.topbar::before {
  position: absolute;
  width: 340px;
  height: 340px;
  top: -230px;
  right: -70px;
  content: "";
  border: 1px solid rgba(73,220,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(73,220,255,.08), inset 0 0 60px rgba(154,134,255,.06);
}

.topbar::after {
  position: absolute;
  right: 52px;
  bottom: -72px;
  width: 220px;
  height: 150px;
  content: "";
  opacity: .22;
  transform: rotate(-8deg);
  background-image: radial-gradient(circle, rgba(73,220,255,.7) 1px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.topbarContent, .headerMeta { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrowIcon { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(73,220,255,.22); border-radius: 8px; background: rgba(73,220,255,.07); }
.topbar h1 { margin: 12px 0 10px; font-size: clamp(30px, 3vw, 43px); line-height: 1.05; letter-spacing: -.05em; }
.topbar h1 span { color: transparent; background: linear-gradient(90deg, var(--cyan), #7eabff 48%, #ae91ff); background-clip: text; -webkit-background-clip: text; }
.subtitle { max-width: 800px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.headerMeta { display: grid; flex: 0 0 auto; gap: 10px; justify-items: end; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; color: var(--green); border: 1px solid rgba(75,225,165,.23); border-radius: 999px; background: rgba(75,225,165,.07); box-shadow: inset 0 0 20px rgba(75,225,165,.025); font-size: 11px; font-weight: 800; white-space: nowrap; }
.headerStatus { color: #72849a; font-size: 10px; font-weight: 650; letter-spacing: .05em; }
.headerStatus span { margin-right: 6px; padding: 3px 6px; color: #aab8c8; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.03); font-size: 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { --accent: var(--cyan); position: relative; min-height: 162px; padding: 17px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, rgba(19,38,63,.88), rgba(9,22,38,.82)); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
.kpi::after { position: absolute; right: -30px; bottom: -48px; width: 110px; height: 110px; content: ""; border-radius: 50%; background: var(--accent); opacity: .055; filter: blur(2px); }
.kpi:hover { z-index: 1; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.kpiViolet { --accent: var(--violet); }
.kpiAmber { --accent: var(--amber); }
.kpiGreen { --accent: var(--green); }
.kpiTop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.kpiIcon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 13px; font-weight: 900; }
.kpiTrend { padding: 4px 7px; color: #73869d; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kpiLabel { color: var(--muted); font-size: 11px; font-weight: 650; }
.kpiValue { margin-top: 5px; font-size: 27px; font-weight: 860; letter-spacing: -.035em; }
.kpiHint { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #71849a; font-size: 9px; }
.kpiHint span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.panel { display: none; animation: panelIn .32s ease both; }
.panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(17,35,58,.9), rgba(8,20,35,.88)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.card + .card { margin-top: 18px; }
.cardHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid rgba(148,163,184,.11); }
.card h2, .card h3 { margin: 0; letter-spacing: -.025em; }
.card h2 { font-size: 19px; }
.card h3 { font-size: 16px; }
.cardHeader .muted { margin-top: 5px; font-size: 12px; }
.muted { color: var(--muted); line-height: 1.55; }
.tag { display: inline-flex; align-items: center; padding: 5px 8px; color: var(--cyan); border: 1px solid rgba(73,220,255,.18); border-radius: 999px; background: rgba(73,220,255,.075); font-size: 9px; font-weight: 850; white-space: nowrap; }
.tag.good { color: var(--green); border-color: rgba(75,225,165,.18); background: rgba(75,225,165,.07); }

.formGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field label { display: block; margin: 0 0 7px; color: #9dacc0; font-size: 9px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; color: #edf4fb; border: 1px solid rgba(148,163,184,.17); border-radius: 13px; outline: none; background: rgba(4,12,23,.56); box-shadow: inset 0 1px 0 rgba(255,255,255,.015); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input, .field select { height: 44px; padding: 0 13px; }
.field textarea { min-height: 220px; padding: 13px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(148,163,184,.29); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(73,220,255,.62); background: rgba(5,15,28,.78); box-shadow: 0 0 0 3px rgba(73,220,255,.075), 0 10px 30px rgba(0,0,0,.12); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 11px; font-weight: 820; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btnPrimary { color: #04101b; border: 0; background: linear-gradient(115deg, var(--cyan), #72a9ff 52%, var(--violet)); box-shadow: 0 12px 30px rgba(73,220,255,.14); }
.btnPrimary:hover { filter: brightness(1.06); box-shadow: 0 15px 34px rgba(73,220,255,.22); }
.btnSecondary { color: #e5edf6; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); }
.btnSecondary:hover { border-color: rgba(148,163,184,.4); background: rgba(255,255,255,.065); }
.btnGhost { color: var(--cyan); border: 1px solid rgba(73,220,255,.2); background: rgba(73,220,255,.045); }

.preview { position: relative; min-height: 500px; padding: 28px; overflow: hidden; color: #182233; border-radius: 18px; background: linear-gradient(145deg, #fff, #f2f6fb); box-shadow: 0 20px 50px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.9); }
.preview::after { position: absolute; width: 160px; height: 160px; right: -75px; top: -80px; content: ""; border-radius: 50%; background: linear-gradient(135deg, rgba(38,180,218,.18), rgba(104,91,220,.12)); }
.previewTop { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 19px; border-bottom: 1px solid #dbe4ee; }
.previewTop img { width: 165px; filter: invert(1); }
.documentBadge { padding: 6px 9px; color: #59677b; border: 1px solid #dce4ed; border-radius: 999px; background: #f5f8fb; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.mailMeta { margin-top: 17px; color: #708096; font-size: 10px; }
.mailMeta span { margin-right: 8px; color: #96a3b4; font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.emailBody { min-height: 345px; margin-top: 18px; color: #334155; font-size: 12px; line-height: 1.68; white-space: pre-wrap; }
.previewFooter { padding-top: 14px; color: #98a5b5; border-top: 1px solid #e3e9f0; font-size: 9px; }

.tableWrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,14,25,.25); }
.dataTable { width: 100%; min-width: 850px; border-collapse: collapse; }
.dataTable th { padding: 12px 13px; color: #71849c; background: rgba(255,255,255,.028); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.dataTable td { padding: 14px 13px; color: #c9d4e2; border-top: 1px solid var(--line); font-size: 11px; }
.dataTable td strong { color: #f3f7fb; }
.dataTable tbody tr { transition: background .18s ease; }
.dataTable tbody tr:hover { background: rgba(73,220,255,.025); }
.score { color: var(--cyan) !important; font-weight: 900; }

.reco { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin-top: 16px; padding: 18px; overflow: hidden; border: 1px solid rgba(75,225,165,.19); border-radius: 18px; background: linear-gradient(100deg, rgba(75,225,165,.095), rgba(73,220,255,.055)); }
.recoIcon { display: grid; width: 45px; height: 45px; place-items: center; color: var(--green); border: 1px solid rgba(75,225,165,.18); border-radius: 14px; background: rgba(75,225,165,.1); font-size: 20px; }
.reco strong { display: block; font-size: 15px; }
.reco p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.recoScore { color: var(--green); font-size: 26px; font-weight: 900; letter-spacing: -.04em; }

.quotePaper { padding: 34px; color: #142033; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.quoteBrand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.quoteBrand img { width: 175px; filter: invert(1); }
.quoteBrand span { color: #8290a2; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.quoteHead { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid #e4eaf1; border-bottom: 2px solid #e6edf5; }
.quoteTitle { color: #122033; font-size: 27px; font-weight: 900; letter-spacing: -.04em; }
.quoteSubtitle { margin-top: 6px; color: #718095; font-size: 11px; }
.quoteMeta { display: grid; grid-template-columns: auto auto; gap: 6px 12px; color: #8a98a9; font-size: 9px; text-align: right; }
.quoteMeta strong { color: #344357; font-size: 10px; }
.quoteTable { width: 100%; margin-top: 24px; border-collapse: collapse; }
.quoteTable th, .quoteTable td { padding: 12px 10px; border-bottom: 1px solid #e6edf5; font-size: 10px; text-align: left; }
.quoteTable th { color: #647286; background: #f5f8fb; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.quoteSummary { display: flex; justify-content: flex-end; margin-top: 24px; }
.quoteTotal { min-width: 310px; padding: 18px; border: 1px solid #e7edf3; border-radius: 14px; background: #f7f9fc; }
.quoteTotal div { display: flex; justify-content: space-between; margin: 6px 0; color: #5d6b7d; font-size: 11px; }
.quoteTotal .grand { margin-top: 12px; padding-top: 12px; color: #142033; border-top: 1px solid #dce4ed; font-size: 17px; font-weight: 900; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 12px 16px; color: #f0f6fc; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(13,29,48,.96); box-shadow: var(--shadow); opacity: 0; transform: translateY(110px); transition: .25s ease; backdrop-filter: blur(18px); font-size: 11px; font-weight: 700; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  .shell { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { padding: 26px 14px; }
  .brand { justify-content: center; padding-right: 0; padding-left: 0; }
  .brandLogo, .workspaceLabel, .navLabel, .stepno { display: none; }
  .brandMark { display: block; }
  .nav button { display: flex; justify-content: center; min-height: 54px; padding: 8px; }
  .nav button:hover { transform: none; }
  .nav button::before { top: 10px; bottom: 10px; }
  .main { padding: 28px; }
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .globalHeader { grid-template-columns: 1fr auto 1fr; padding-right: 20px; padding-left: 20px; }
  .headerRight { min-width: 170px; }
  .headerLive { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { align-items: flex-start; }
  .headerMeta { display: none; }
}

@media (max-width: 720px) {
  .globalHeader { position: relative; grid-template-columns: 118px minmax(0, 1fr); min-height: 78px; padding: 12px 14px; }
  .headerTitle { display: grid; gap: 2px; justify-content: end; text-align: right; white-space: normal; }
  .headerTitle strong { font-size: 14px; }
  .headerTitle > span:last-child { font-size: 10px; line-height: 1.25; }
  .titleDivider, .headerRight { display: none; }
  .shell { display: block; }
  .sidebar { position: sticky; display: flex; align-items: center; width: 100%; height: auto; padding: 10px 12px; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { min-height: 0; margin-right: 8px; padding: 0; }
  .brandMark { width: 34px; height: 34px; }
  .nav { display: flex; flex: 1; justify-content: space-around; gap: 4px; overflow-x: auto; }
  .nav button { width: auto; min-width: 46px; min-height: 42px; padding: 4px; border-radius: 12px; }
  .navIcon { width: 33px; height: 33px; }
  .navIcon svg { width: 16px; }
  .nav button::before { display: none; }
  .main { padding: 16px 13px 40px; }
  .topbar { min-height: auto; padding: 22px; border-radius: 21px; }
  .topbar h1 { font-size: 29px; }
  .subtitle { font-size: 12px; }
  .kpis { gap: 10px; }
  .kpi { min-height: 148px; padding: 15px; }
  .grid3, .formGrid { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 19px; }
  .preview, .quotePaper { padding: 20px; }
  .quoteHead { display: block; }
  .quoteMeta { justify-content: start; margin-top: 16px; text-align: left; }
  .quoteBrand img { width: 145px; }
}

@media (max-width: 480px) {
  .topbar h1 { font-size: 25px; }
  .eyebrow { font-size: 8px; letter-spacing: .1em; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { min-height: 138px; }
  .cardHeader { display: block; }
  .cardHeader .tag { margin-top: 10px; }
  .reco { grid-template-columns: auto 1fr; }
  .recoScore { grid-column: 2; }
  .actions .btn { width: 100%; }
}

@media print {
  body { background: #fff; }
  .globalHeader, .sidebar, .topbar, .kpis, .actions, .field, .cardHeader, .toast { display: none !important; }
  .shell, .main, .panel.active, .card { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; box-shadow: none !important; }
  .quotePaper { padding: 0; box-shadow: none; }
  .panel:not(#quote) { display: none !important; }
}
