:root {
  color-scheme: dark;
  --bg: #08111d;
  --panel: #131f2d;
  --panel-soft: #162434;
  --line: #28384d;
  --line-soft: rgba(130, 164, 214, 0.18);
  --text: #f4f8ff;
  --muted: #a2b0c3;
  --brand: #59bdd8;
  --brand-strong: #2f95b9;
  --danger: #d83f52;
  --warning: #b77a20;
  --success: #4bc070;
  --chip: #0f1b2a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #030913;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  min-height: 100dvh;
}

.mobile-app {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(circle at top, rgba(28, 64, 106, 0.18), transparent 32%),
    linear-gradient(180deg, #07111d 0%, #07101a 100%);
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1;
  padding: 8px 8px 0;
  overflow: auto;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

.top-flow {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.top-flow::-webkit-scrollbar {
  display: none;
}

.top-flow__step {
  min-width: 72px;
  padding: 8px 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #111d2b 0%, #0d1724 100%);
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #dce8ff;
}

.top-flow__step.is-active {
  border-color: rgba(119, 179, 255, 0.34);
}

.top-flow__number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.top-flow__step.is-active .top-flow__number {
  background: #8eb8f3;
  color: #18304a;
}

.top-flow__label {
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

.top-flow__rail {
  height: 14px;
  border-left: 1px solid var(--line-soft);
  padding-left: 6px;
  display: flex;
  align-items: center;
}

.top-flow__rail-track {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-strip {
  height: 16px;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-strip__arrow {
  width: 10px;
  height: 10px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.progress-strip__arrow--left {
  border-right: 6px solid rgba(255, 255, 255, 0.55);
}

.progress-strip__arrow--right {
  border-left: 6px solid rgba(255, 255, 255, 0.55);
}

.progress-strip__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-strip__fill {
  display: block;
  width: 82%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: inherit;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, #152131 0%, #101b29 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.access-card {
  padding: 14px 12px 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #7bc8ec;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.title-xl {
  margin: 0 0 6px;
  font-size: 1.6rem;
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.pin-box {
  min-height: 58px;
  border: 1px solid rgba(126, 156, 201, 0.16);
  border-radius: 14px;
  background: rgba(11, 20, 34, 0.72);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.pin-dots {
  display: flex;
  gap: 12px;
}

.pin-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.pin-dot.is-filled {
  background: #93b7eb;
}

.pin-feedback {
  min-height: 16px;
  margin: 0 0 10px;
  color: #f29ba6;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.pin-feedback.is-ok {
  color: #92d9a8;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.pin-key {
  min-height: 46px;
  border: 1px solid rgba(126, 156, 201, 0.14);
  border-radius: 14px;
  background: #152234;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(180deg, #61c3df 0%, #58b7d4 100%);
  color: #ffffff;
}

.primary-button:disabled {
  opacity: 0.55;
}

.secondary-button {
  background: #2a3648;
  color: #ffffff;
}

.reset-wrap {
  padding: 6px 0 0;
  display: flex;
  justify-content: center;
}

.reset-wrap .secondary-button {
  width: auto;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.banner {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1a6f88 0%, #1b6481 100%);
  margin-bottom: 12px;
}

.banner__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}

.banner__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.hero-card {
  padding: 12px;
  margin-bottom: 10px;
}

.hero-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.hero-card__brand {
  margin: 0;
  color: #4d83ff;
  font-size: 1.85rem;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-card__role {
  margin: 4px 0 0;
  color: #d5deee;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-tools {
  display: flex;
  gap: 8px;
}

.hero-tool {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 27, 43, 0.96);
  position: relative;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.hero-tool__count,
.nav-item__count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff414f;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-color: rgba(94, 144, 255, 0.38);
}

.summary-card__icon {
  width: 44px;
  height: 44px;
  border: 2px solid #2f7bff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #78a9ff;
  flex-shrink: 0;
}

.summary-card__title {
  margin: 0 0 2px;
  font-size: 0.84rem;
  font-weight: 700;
}

.summary-card__text {
  margin: 0;
  font-size: 0.8rem;
  color: #dce7ff;
}

.summary-card__text strong {
  color: #ffb321;
}

.section {
  margin-bottom: 10px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.section__title {
  margin: 0;
  color: #2f7bff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section__link {
  border: 0;
  background: transparent;
  color: #5b95ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.decision-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 10px 12px;
}

.decision-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.decision-card__icon--danger {
  background: linear-gradient(180deg, #ff4854 0%, #de2937 100%);
}

.decision-card__icon--warning {
  background: linear-gradient(180deg, #ffb32a 0%, #f09a1a 100%);
}

.decision-card__title {
  margin: 0 0 3px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
}

.decision-card__amount {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.decision-card__actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.severity {
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
}

.severity--high {
  background: #8e2332;
}

.severity--medium {
  background: #a0691c;
}

.mini-button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: #3971ff;
  color: #ffffff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 96px;
}

.risk-item {
  padding: 12px 8px 8px;
  text-align: center;
}

.risk-item + .risk-item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.risk-item__label {
  margin: 0 0 8px;
  font-size: 0.76rem;
}

.risk-item__value {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.risk-item__value--danger {
  color: #ff4d5d;
}

.risk-item__value--warning {
  color: #ffb321;
}

.risk-item__value--success {
  color: #47d86a;
}

.meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.meter__fill--danger {
  background: #ff4d5d;
}

.meter__fill--warning {
  background: #ffb321;
}

.meter__fill--success {
  background: #47d86a;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.business-item {
  padding: 10px 7px;
}

.business-item + .business-item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.business-item__label {
  margin: 0 0 5px;
  font-size: 0.67rem;
  color: #d4def0;
  line-height: 1.1;
}

.business-item__value {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 800;
}

.business-item__delta {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
}

.business-item__delta--up {
  color: #47d86a;
}

.business-item__delta--down {
  color: #ffb321;
}

.message-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.message-bar__title {
  flex: 1;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.message-bar__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff414f;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.detail-card,
.message-card {
  padding: 12px;
}

.detail-card__title,
.message-card__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.detail-card__text,
.message-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.message-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.message-card__from {
  margin: 0 0 6px;
  color: #7bc8ec;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  background: #09111c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-item {
  border: 0;
  background: transparent;
  color: #cbd7e9;
  font: inherit;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 0 4px;
  position: relative;
}

.nav-item.is-active {
  color: #7bc8ec;
}

.nav-item__label {
  font-size: 0.72rem;
  font-weight: 700;
}

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