:root {
  --blue-950: #08234d;
  --blue-900: #0d2f66;
  --blue-800: #164d94;
  --blue-700: #1e6fae;
  --sky-500: #3ab2df;
  --sky-200: #d7eef8;
  --teal-600: #05859d;
  --orange-500: #f48322;
  --orange-600: #d96815;
  --green-500: #4aa96c;
  --red-500: #df604f;
  --yellow-500: #eeb949;
  --ink: #142a43;
  --muted: #6c7e8e;
  --line: #d9e7ef;
  --panel: rgba(255, 255, 255, .86);
  --panel-strong: #ffffff;
  --shadow: 0 18px 45px rgba(20, 48, 83, .14);
  --soft-shadow: 0 8px 22px rgba(20, 48, 83, .10);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f4f8fb;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.demo-switch {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(28, 87, 133, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 24px rgba(14, 38, 66, .12);
  backdrop-filter: blur(14px);
}

.demo-switch a {
  min-width: 118px;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.demo-switch a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--teal-600));
  box-shadow: 0 8px 18px rgba(20, 77, 148, .24);
}

.page-journey {
  display: grid;
  place-items: center;
  padding: 72px 28px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(240, 247, 250, .94)),
    url("assets/mapear-bg.svg") center / cover fixed no-repeat;
}

.journey-shell {
  width: min(1240px, 100%);
  min-height: 710px;
  overflow: hidden;
  border: 1px solid rgba(11, 57, 102, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 252, 253, .84)),
    url("assets/mapear-bg.svg") center bottom / cover no-repeat;
  box-shadow:
    0 28px 80px rgba(9, 34, 67, .20),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.journey-header {
  display: grid;
  grid-template-columns: 230px minmax(320px, 1fr) 210px;
  align-items: center;
  gap: 22px;
  min-height: 108px;
  padding: 18px 30px 16px;
  border-bottom: 1px solid rgba(24, 85, 130, .13);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 198px;
  height: auto;
}

.journey-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 12px;
}

.journey-heading h1 {
  grid-column: 1 / 3;
  margin: 0 0 9px;
  color: var(--blue-950);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.journey-heading strong {
  color: #678096;
  font-size: 12px;
  font-weight: 900;
}

.header-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e7ef;
  box-shadow: inset 0 1px 2px rgba(8, 35, 77, .12);
}

.header-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4abbe4, var(--blue-800));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .34) inset;
}

.participant-card {
  justify-self: end;
  display: grid;
  grid-template-columns: 44px auto 42px;
  align-items: center;
  gap: 9px;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(28, 87, 133, .12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  box-shadow: var(--soft-shadow);
}

.participant-card img {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
}

.participant-card span {
  min-width: 0;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.participant-card b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border-radius: 999px;
  color: var(--blue-950);
  background: #f1bd55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.journey-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 602px;
}

.journey-sidebar {
  position: relative;
  padding: 24px 22px 34px 30px;
  border-right: 1px solid rgba(24, 85, 130, .13);
  background: rgba(219, 242, 249, .42);
}

.trail {
  position: absolute;
  top: 46px;
  bottom: 64px;
  left: 56px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky-500), #94c9db 42%, #cfdee7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.step-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px 8px 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 18px rgba(19, 57, 88, .08);
}

.step-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid #9fd5e6;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #5fb7ce, #1e6d94);
  box-shadow: 0 5px 11px rgba(17, 82, 112, .23);
  font-size: 20px;
  font-weight: 900;
}

.step-card strong {
  display: block;
  color: var(--blue-950);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.step-card small {
  display: block;
  margin-top: 4px;
  color: #607c91;
  font-size: 12px;
  font-weight: 750;
}

.step-card svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #78a1b5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.step-card.is-complete svg {
  stroke: var(--green-500);
}

.step-card.is-current {
  border-color: rgba(14, 73, 130, .16);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 14px 26px rgba(19, 76, 132, .24);
}

.step-card.is-current .step-number {
  border-color: rgba(255, 255, 255, .62);
  color: var(--blue-900);
  background: #fff;
}

.step-card.is-current strong,
.step-card.is-current small {
  color: #fff;
}

.step-card.is-locked {
  opacity: .8;
}

.step-card.is-locked .step-number {
  background: linear-gradient(180deg, #98b5c3, #6f8ea1);
  border-color: #d2e4eb;
}

.journey-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px 34px 34px;
}

.content-title span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-800);
  background: rgba(58, 178, 223, .13);
  font-size: 12px;
  font-weight: 850;
}

.content-title h2 {
  margin: 10px 0 5px;
  color: var(--blue-950);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.content-title p,
.message-panel p {
  margin: 0;
  color: #344b61;
  font-size: 16px;
  line-height: 1.5;
}

.video-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(26, 77, 120, .22);
  border-radius: 8px;
  background: #d8e8eb;
  box-shadow: 0 18px 38px rgba(16, 48, 83, .18);
}

.video-panel img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.video-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 45%),
    linear-gradient(180deg, transparent 54%, rgba(5, 23, 45, .58));
  pointer-events: none;
}

.video-controls {
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  display: grid;
  grid-template-columns: 44px auto minmax(160px, 1fr) 36px 36px;
  align-items: center;
  gap: 10px;
}

.play-button,
.control-icon {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 28, 50, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.play-button {
  width: 44px;
  height: 38px;
}

.play-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.control-icon {
  width: 36px;
  height: 34px;
}

.control-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.time {
  color: #eaf4f8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.video-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
}

.video-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-500), #f3c15c);
}

.message-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 22px;
  padding: 19px 18px 19px 20px;
  border: 1px solid rgba(26, 77, 120, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--soft-shadow);
}

.message-panel h3 {
  margin: 0 0 6px;
  color: var(--blue-950);
  font-size: 21px;
  font-weight: 900;
}

.continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(147, 86, 28, .28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #f4aa54, var(--orange-500));
  box-shadow:
    0 12px 22px rgba(196, 96, 21, .24),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: 16px;
  font-weight: 900;
}

.continue-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.continue-button[aria-disabled="true"] {
  cursor: default;
  filter: saturate(.72);
  opacity: .8;
}

.continue-button.is-ready {
  border-color: rgba(212, 104, 21, .35);
  background: linear-gradient(180deg, #ffad52, var(--orange-600));
  transform: translateY(-1px);
}

.page-dashboard {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(246, 250, 253, .86)),
    url("assets/mapear-bg.svg") center bottom / cover fixed no-repeat;
}

.admin-switch {
  top: 12px;
  right: 14px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid rgba(22, 77, 148, .13);
  background: rgba(230, 245, 250, .76);
  backdrop-filter: blur(12px);
}

.admin-logo {
  display: block;
  margin: 0 0 26px 8px;
}

.admin-logo img {
  width: 190px;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 8px;
  color: #28465f;
  font-size: 14px;
  font-weight: 800;
}

.admin-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), #167ca2);
  box-shadow: 0 10px 18px rgba(21, 91, 141, .24);
}

.nav-icon {
  position: relative;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: .9;
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  content: "";
  border: 2px solid currentColor;
}

.nav-icon.chart::before {
  inset: 2px 2px 2px 2px;
  border-top: 0;
  border-right: 0;
}

.nav-icon.chart::after {
  left: 4px;
  right: 0;
  bottom: 4px;
  height: 8px;
  border: 0;
  border-top: 2px solid currentColor;
  transform: rotate(-25deg);
  transform-origin: left center;
}

.nav-icon.user::before {
  top: 1px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.nav-icon.user::after {
  right: 2px;
  bottom: 1px;
  left: 2px;
  height: 8px;
  border-radius: 8px 8px 2px 2px;
}

.nav-icon.ticket::before {
  inset: 3px 1px;
  border-radius: 3px;
}

.nav-icon.ticket::after {
  top: 8px;
  left: 4px;
  width: 10px;
  border: 0;
  border-top: 2px solid currentColor;
}

.nav-icon.form::before,
.nav-icon.doc::before {
  inset: 1px 3px;
  border-radius: 2px;
}

.nav-icon.form::after,
.nav-icon.doc::after {
  top: 6px;
  left: 7px;
  width: 6px;
  height: 6px;
  border: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-icon.profile::before {
  inset: 2px;
  border-radius: 50%;
}

.nav-icon.profile::after {
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  border: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.nav-icon.video::before {
  inset: 4px 1px;
  border-radius: 3px;
}

.nav-icon.video::after {
  top: 6px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.nav-icon.chat::before {
  inset: 3px 1px 5px;
  border-radius: 8px;
}

.nav-icon.chat::after {
  left: 5px;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-top: 0;
  border-right: 0;
  transform: rotate(-15deg);
}

.nav-icon.age::before {
  inset: 2px 4px;
  border-radius: 2px;
}

.nav-icon.age::after {
  top: 7px;
  right: 1px;
  left: 1px;
  height: 0;
  border: 0;
  border-top: 2px solid currentColor;
}

.nav-icon.gear::before {
  inset: 2px;
  border-radius: 50%;
}

.nav-icon.gear::after {
  top: 7px;
  left: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.doctor-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(22, 77, 148, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--soft-shadow);
}

.doctor-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.doctor-card strong,
.doctor-card small {
  display: block;
}

.doctor-card strong {
  color: var(--blue-950);
  font-size: 15px;
  font-weight: 900;
}

.doctor-card small {
  margin-top: 3px;
  color: #557086;
  font-size: 12px;
  font-weight: 750;
}

.admin-main {
  padding: 26px 30px 36px;
}

.admin-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  margin-bottom: 20px;
  padding-right: 374px;
}

.admin-topbar span {
  color: #668196;
  font-size: 13px;
  font-weight: 800;
}

.admin-topbar h1 {
  margin: 2px 0 0;
  color: var(--blue-950);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  width: 250px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(27, 81, 128, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 6px 16px rgba(22, 77, 148, .07);
}

.search-field svg,
.notify-button svg {
  fill: none;
  stroke: #7d98aa;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-field svg {
  width: 18px;
  height: 18px;
}

.search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.notify-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(27, 81, 128, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.notify-button svg {
  width: 20px;
  height: 20px;
}

.top-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(26, 77, 120, .11);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--soft-shadow);
}

.metric-card div {
  min-width: 0;
}

.metric-card small {
  display: block;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-950);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.metric-card em {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: var(--green-500);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.metric-card.warning strong,
.metric-card.warning em {
  color: var(--red-500);
}

.metric-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.metric-icon span {
  width: 24px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.metric-icon span::after {
  display: block;
  width: 12px;
  height: 0;
  margin: 5px auto 0;
  border-top: 3px solid currentColor;
  content: "";
}

.metric-icon.blue {
  color: var(--blue-700);
  background: #dceff8;
}

.metric-icon.green {
  color: #239563;
  background: #dcf1e5;
}

.metric-icon.sky {
  color: #41a8db;
  background: #e4f4fb;
}

.metric-icon.red {
  color: var(--red-500);
  background: #fde8e4;
}

.metric-icon.orange {
  color: #c66b1f;
  background: #f8ead9;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(360px, .9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(26, 77, 120, .11);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(8px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 15px 18px 8px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.panel-heading small {
  display: block;
  margin-top: 4px;
  color: #6c8296;
  font-size: 12px;
  font-weight: 750;
}

.panel-heading a,
.panel-heading button {
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.panel-heading button {
  padding: 7px 10px;
  border-radius: 7px;
  color: #536b7c;
  background: #f2f5f7;
}

.line-chart {
  position: relative;
  padding: 0 14px 10px;
}

.line-chart svg {
  width: 100%;
  height: 255px;
}

.chart-callout {
  position: absolute;
  top: 90px;
  left: 96px;
  min-width: 136px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 77, 120, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 22px rgba(16, 47, 74, .13);
}

.chart-callout strong {
  display: inline-block;
  color: var(--blue-950);
  font-size: 26px;
  font-weight: 900;
  vertical-align: middle;
}

.chart-callout span {
  margin-left: 8px;
  color: var(--green-500);
  font-size: 13px;
  font-weight: 900;
}

.chart-callout small {
  display: block;
  margin-top: 4px;
  color: #6a8193;
  font-size: 12px;
  font-weight: 750;
}

.profile-distribution {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 26px;
  padding: 14px 24px 28px;
}

.donut-chart {
  display: grid;
  place-items: center;
  align-content: center;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 45%, transparent 46%),
    conic-gradient(var(--sky-500) 0 36.2%, var(--green-500) 36.2% 64.9%, #f0764f 64.9% 87.3%, var(--yellow-500) 87.3% 100%);
  box-shadow: inset 0 0 0 1px rgba(8, 35, 77, .08), var(--soft-shadow);
}

.donut-chart span {
  color: var(--blue-950);
  font-size: 34px;
  font-weight: 900;
}

.donut-chart small {
  margin-top: 2px;
  color: #698093;
  font-size: 12px;
  font-weight: 850;
}

.legend-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend-list li {
  display: grid;
  grid-template-columns: 16px minmax(100px, 1fr) 58px;
  align-items: center;
  gap: 8px;
  color: #25465e;
  font-size: 14px;
  font-weight: 800;
}

.legend-list strong {
  justify-self: end;
  color: var(--blue-950);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.blue {
  background: var(--sky-500);
}

.dot.green {
  background: var(--green-500);
}

.dot.orange {
  background: #f0764f;
}

.dot.yellow {
  background: var(--yellow-500);
}

.table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
}

.table-panel th,
.table-panel td {
  padding: 11px 18px;
  border-top: 1px solid #e5edf3;
  color: #314d64;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.table-panel th {
  color: #6f8798;
  background: rgba(242, 247, 250, .88);
  font-size: 12px;
  font-weight: 900;
}

.table-panel td:first-child {
  color: var(--blue-800);
  font-weight: 900;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr .92fr .92fr;
  gap: 18px;
}

.mini-panel {
  min-height: 172px;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 104px;
  margin: 6px 20px 22px;
  padding: 14px 16px 0;
  border-left: 1px solid #dbe8ef;
  border-bottom: 1px solid #dbe8ef;
}

.mini-bars span {
  flex: 1;
  min-width: 14px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #8ed6e8, #3caad9);
}

.mini-bars span:nth-child(2n) {
  background: linear-gradient(180deg, #9fd482, #55a66c);
}

.expiry-panel {
  min-height: 172px;
}

.expiry-item,
.ticket-expire {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 12px;
  margin: 6px 18px 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(246, 250, 252, .9);
}

.expiry-item span,
.ticket-expire strong {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--blue-800);
  background: #dff1f7;
  font-size: 19px;
  font-weight: 900;
}

.expiry-item strong,
.ticket-expire span {
  display: block;
  color: var(--blue-950);
  font-size: 14px;
  font-weight: 900;
}

.expiry-item small,
.ticket-expire small {
  display: block;
  margin-top: 4px;
  color: #6d8495;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .journey-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .journey-header {
    grid-template-columns: 200px minmax(260px, 1fr) 190px;
  }

  .brand img,
  .admin-logo img {
    width: 170px;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .chart-grid,
  .table-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .demo-switch {
    right: 10px;
    left: 10px;
    justify-content: center;
  }

  .page-journey {
    padding: 78px 14px 24px;
  }

  .journey-header,
  .journey-layout {
    grid-template-columns: 1fr;
  }

  .journey-header {
    gap: 16px;
  }

  .brand,
  .participant-card {
    justify-self: center;
  }

  .journey-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(24, 85, 130, .13);
  }

  .journey-content {
    padding: 24px 18px 26px;
  }

  .message-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    gap: 18px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-main {
    padding: 24px 16px 32px;
  }

  .admin-topbar {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .search-field {
    width: min(100%, 360px);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .profile-distribution {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .demo-switch a {
    min-width: 0;
    flex: 1 1 30%;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .journey-shell {
    min-height: auto;
  }

  .journey-heading h1 {
    font-size: 23px;
  }

  .step-card {
    grid-template-columns: 48px 1fr 20px;
  }

  .step-number {
    width: 46px;
    height: 46px;
  }

  .video-panel,
  .video-panel img {
    min-height: 250px;
  }

  .video-controls {
    grid-template-columns: 42px 1fr 34px 34px;
  }

  .video-controls .time {
    display: none;
  }

  .admin-nav,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar h1 {
    font-size: 27px;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .line-chart svg {
    min-width: 580px;
  }

  .line-chart {
    overflow-x: auto;
  }

  .table-panel {
    overflow-x: auto;
  }
}

.page-questionnaire {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 72px 28px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .54), rgba(239, 248, 251, .92)),
    url("assets/mapear-bg.svg") center / cover fixed no-repeat;
}

.question-shell {
  width: min(1120px, 100%);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(11, 57, 102, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(244, 251, 253, .82)),
    url("assets/mapear-bg.svg") center bottom / cover no-repeat;
  box-shadow:
    0 28px 80px rgba(9, 34, 67, .18),
    inset 0 1px 0 rgba(255, 255, 255, .88);
}

.question-header {
  display: grid;
  grid-template-columns: 230px minmax(320px, 1fr) 210px;
  align-items: center;
  gap: 22px;
  min-height: 108px;
  padding: 18px 30px 16px;
  border-bottom: 1px solid rgba(24, 85, 130, .13);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
}

.question-progress-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 12px;
}

.question-progress-block span {
  display: block;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
}

.question-progress-block h1 {
  margin: 3px 0 0;
  color: var(--blue-950);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.question-progress-block strong {
  color: #678096;
  font-size: 12px;
  font-weight: 900;
}

.question-progress-block .header-progress {
  grid-column: 1 / 3;
}

.question-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  padding: 34px;
}

.question-summary {
  min-height: 500px;
  padding: 24px;
  border: 1px solid rgba(26, 77, 120, .12);
  border-radius: 8px;
  background: rgba(223, 243, 249, .54);
  box-shadow: var(--soft-shadow);
}

.question-summary h2 {
  margin: 0 0 20px;
  color: var(--blue-950);
  font-size: 21px;
  font-weight: 900;
}

.summary-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
}

.summary-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #9cb5c3, #6e8da0);
  font-weight: 900;
}

.summary-step strong,
.summary-step small {
  display: block;
}

.summary-step strong {
  color: var(--blue-950);
  font-size: 14px;
  font-weight: 900;
}

.summary-step small {
  margin-top: 3px;
  color: #657f91;
  font-size: 12px;
  font-weight: 750;
}

.summary-step.is-done span {
  background: linear-gradient(180deg, #63bd83, #398d59);
}

.summary-step.is-current {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 14px 26px rgba(19, 76, 132, .2);
}

.summary-step.is-current span {
  color: var(--blue-900);
  background: #fff;
}

.summary-step.is-current strong,
.summary-step.is-current small {
  color: #fff;
}

.question-card {
  align-self: start;
  width: min(760px, 100%);
  max-width: none;
  padding: 30px;
  border: 1px solid rgba(26, 77, 120, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}

.questionnaire-content {
  align-content: start;
  padding-top: 28px;
}

.questionnaire-content .content-title {
  max-width: 760px;
}

.question-card-top span {
  display: block;
  max-width: 640px;
  color: var(--blue-950);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0;
}

.question-card-top small {
  display: block;
  margin-top: 9px;
  color: #5c7488;
  font-size: 14px;
  font-weight: 750;
}

.answer-list {
  display: grid;
  gap: 11px;
  margin: 28px 0 24px;
}

.answer-option {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 54px;
  padding: 8px 16px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(29, 86, 134, .13);
  border-radius: 8px;
  background: rgba(247, 251, 253, .9);
  box-shadow: 0 5px 14px rgba(16, 48, 83, .06);
}

.answer-option input {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.answer-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #7893a5;
  background: #e8f1f6;
  font-size: 18px;
  font-weight: 900;
}

.answer-mark.star {
  color: #fff;
  background: #ecc250;
  font-size: 14px;
}

.answer-option strong {
  color: #2a465c;
  font-size: 16px;
  font-weight: 900;
}

.answer-option.is-selected {
  border-color: rgba(42, 153, 213, .34);
  color: #fff;
  background: linear-gradient(135deg, #1b7fb8, #42b8de);
  box-shadow: 0 12px 22px rgba(32, 132, 184, .24);
}

.answer-option.is-selected strong {
  color: #fff;
}

.answer-option.is-selected .answer-mark {
  color: var(--blue-900);
  background: #fff;
}

.question-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}

.question-count span {
  display: block;
  color: #5b7387;
  font-size: 13px;
  font-weight: 850;
}

.mini-progress {
  height: 8px;
  max-width: 180px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e7ef;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4abbe4, var(--blue-800));
}

.save-question {
  min-height: 52px;
  border: 1px solid rgba(147, 86, 28, .28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #f4aa54, var(--orange-500));
  box-shadow:
    0 12px 22px rgba(196, 96, 21, .24),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .page-questionnaire {
    padding: 78px 14px 24px;
  }

  .question-header,
  .question-layout {
    grid-template-columns: 1fr;
  }

  .question-header {
    gap: 16px;
  }

  .question-layout {
    padding: 22px;
  }

  .question-summary {
    min-height: 0;
  }

  .question-card {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .question-progress-block h1 {
    font-size: 23px;
  }

  .question-card {
    padding: 20px;
  }

  .question-card-top span {
    font-size: 22px;
  }

  .question-footer {
    grid-template-columns: 1fr;
  }
}
