:root {
  --canvas: #070a0f;
  --bg: #0b1017;
  --surface: #121925;
  --surface-raised: #182231;
  --surface-quiet: #0e141e;
  --line: rgba(218, 232, 255, 0.1);
  --line-strong: rgba(218, 232, 255, 0.17);
  --text: #f4f7fc;
  --muted: #9ca9bb;
  --muted-2: #6d7a8d;
  --brand: #93f5d5;
  --brand-ink: #05251e;
  --blue: #94b9ff;
  --blue-ink: #101f3d;
  --yellow: #ffcf73;
  --danger: #ff9cab;
  --danger-ink: #3a141e;
  --success: #8de7bd;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 30px;
  --tap: 56px;
  --content: 680px;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(87, 129, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 82% 88%, rgba(79, 223, 178, 0.07), transparent 28rem),
    var(--canvas);
  color: var(--text);
}

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

button {
  border: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(147, 245, 213, 0.85);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.app {
  width: min(100%, var(--content));
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.screen {
  min-height: 100vh;
  padding: var(--safe-top) 18px calc(104px + var(--safe-bottom));
}

.screen--form {
  padding-bottom: calc(124px + var(--safe-bottom));
}

.pin-screen {
  display: flex;
  min-height: 100vh;
  padding: var(--safe-top) 24px var(--safe-bottom);
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-name {
  letter-spacing: 0.08em;
  font-size: 18px;
  font-weight: 900;
}

.brand-caption,
.eyebrow,
.micro-label {
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pin-body {
  display: grid;
  gap: 26px;
  margin: auto 0;
  padding: 48px 0;
  text-align: center;
}

.pin-title {
  margin: 0;
  font-size: clamp(31px, 8vw, 43px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.pin-copy {
  max-width: 28ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 13px;
  min-height: 38px;
}

.pin-entry {
  min-height: 62px;
}

.pin-entry--error {
  animation: pin-shake 420ms ease-in-out;
}

.pin-dot {
  width: 18px;
  height: 18px;
  margin-top: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
}

.pin-dot--filled {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(147, 245, 213, 0.1);
}

.pin-dot--error,
.pin-dot--filled.pin-dot--error {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 156, 171, 0.14);
}

.pin-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.keypad {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 0 auto;
}

.key {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  font-weight: 750;
}

.key:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.key--utility {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.pin-footnote {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .pin-entry--error {
    animation: none;
  }
}

.page-header {
  display: grid;
  min-height: 52px;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.page-header--simple {
  grid-template-columns: 1fr auto;
}

.header-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.header-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-button,
.header-sector {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
}

.header-sector {
  color: var(--brand);
  font-size: 18px;
}

.header-spacer {
  width: 48px;
  height: 48px;
}

.section {
  margin-top: 30px;
}

.section:first-of-type {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.section-title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.section-action {
  padding: 8px 4px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(147, 245, 213, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 6%, rgba(147, 245, 213, 0.25), transparent 31%),
    linear-gradient(145deg, #163130, #14222f);
  box-shadow: var(--shadow);
}

.hero-card--counterparty {
  background:
    radial-gradient(circle at 95% 5%, rgba(148, 185, 255, 0.24), transparent 31%),
    linear-gradient(145deg, #172540, #15202f);
  border-color: rgba(148, 185, 255, 0.2);
}

.hero-label {
  color: #bee7db;
  font-size: 13px;
  font-weight: 750;
}

.hero-card--counterparty .hero-label {
  color: #ccdcff;
}

.hero-amount {
  margin: 10px 0 0;
  font-size: clamp(34px, 9vw, 49px);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(147, 245, 213, 0.13);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  min-height: 116px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.stat-value {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.action-stack {
  display: grid;
  gap: 11px;
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button {
  display: flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
}

.primary-button {
  background: var(--brand);
  color: var(--brand-ink);
}

.secondary-button {
  border: 1px solid rgba(148, 185, 255, 0.26);
  background: rgba(148, 185, 255, 0.11);
  color: #dce7ff;
}

.quiet-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.danger-button {
  background: rgba(255, 156, 171, 0.14);
  color: #ffd6dd;
}

.button-symbol {
  font-size: 22px;
  line-height: 0;
}

.list {
  display: grid;
  gap: 10px;
}

.list-card,
.menu-card,
.operation-card,
.record-card,
.audit-card,
.report-card,
.allocation-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.list-card,
.menu-card {
  display: grid;
  min-height: 80px;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.list-card:hover,
.menu-card:hover,
.key:hover,
.icon-button:hover,
.header-sector:hover {
  border-color: var(--line-strong);
}

.card-title {
  display: block;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.card-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.card-amount {
  color: var(--brand);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.chevron {
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
}

.operation-card,
.record-card,
.audit-card,
.report-card,
.allocation-card {
  padding: 16px;
}

.debt-card-button {
  display: block;
  cursor: pointer;
  text-align: left;
}

.debt-card-button:hover {
  border-color: var(--line-strong);
}

.operation-topline,
.record-topline,
.audit-topline,
.allocation-topline,
.report-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.operation-name,
.record-title,
.audit-title,
.report-title,
.allocation-name {
  font-size: 15px;
  font-weight: 780;
}

.operation-time,
.record-meta,
.audit-meta,
.report-copy,
.allocation-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.operation-amount,
.record-amount,
.allocation-amount {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.positive {
  color: var(--brand);
}

.negative {
  color: var(--blue);
}

.pill,
.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pill {
  background: rgba(147, 245, 213, 0.12);
  color: var(--brand);
}

.status-pill--open {
  background: rgba(148, 185, 255, 0.13);
  color: #bcd1ff;
}

.status-pill--partial {
  background: rgba(255, 207, 115, 0.13);
  color: var(--yellow);
}

.status-pill--closed {
  background: rgba(141, 231, 189, 0.12);
  color: var(--success);
}

.status-pill--archive {
  background: rgba(156, 169, 187, 0.12);
  color: var(--muted);
}

.search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-wrap::before {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--muted);
  content: "⌕";
  font-size: 23px;
  pointer-events: none;
  transform: translateY(-53%);
}

.field,
.select-field,
.text-field {
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}

.search-wrap .field {
  padding-left: 48px;
}

.field::placeholder,
.text-field::placeholder {
  color: var(--muted-2);
}

.form-stack {
  display: grid;
  gap: 17px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.text-field {
  min-height: 104px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.calculation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border: 1px solid rgba(147, 245, 213, 0.2);
  border-radius: var(--radius);
  background: rgba(147, 245, 213, 0.07);
}

.calculation-value {
  color: var(--brand);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.sticky-action {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 14px 18px var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.94);
  backdrop-filter: blur(18px);
}

.sticky-action .primary-button {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.two-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.archive-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.archive-panel[hidden] {
  display: none;
}

.archive-card {
  opacity: 0.48;
  filter: grayscale(0.7);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-quiet);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice--error {
  border-color: rgba(255, 156, 171, 0.35);
  color: #ffd5dc;
}

.secret-notice {
  margin-bottom: 8px;
  border-color: rgba(255, 207, 115, 0.36);
  color: #fff0cf;
}

.secret-notice .section-action {
  flex: 0 0 auto;
}

.secret-value {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.notice-mark {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 999px;
  background: rgba(148, 185, 255, 0.15);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.choice-card--selected {
  border-color: rgba(147, 245, 213, 0.58);
  background: rgba(147, 245, 213, 0.08);
}

.choice-title {
  display: block;
  font-size: 15px;
  font-weight: 780;
}

.choice-caption {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.choice-check {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: transparent;
}

.choice-card--selected .choice-check {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.switch-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.switch-copy {
  display: grid;
  gap: 4px;
}

.switch-title {
  font-size: 15px;
  font-weight: 750;
}

.switch-caption {
  color: var(--muted);
  font-size: 12px;
}

.switch {
  position: relative;
  width: 52px;
  height: 32px;
  flex: 0 0 52px;
  border-radius: 999px;
  background: #2a3443;
  cursor: pointer;
}

.switch::after {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
}

.switch--on {
  background: rgba(147, 245, 213, 0.32);
}

.switch--on::after {
  left: 25px;
  background: var(--brand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: grid;
  width: min(100%, var(--content));
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto;
  padding: 9px 6px var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.96);
  backdrop-filter: blur(18px);
}

.bottom-nav--four {
  grid-template-columns: repeat(4, 1fr);
}

.nav-item {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 3px;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.nav-item--active {
  color: var(--brand);
}

.nav-symbol {
  font-size: 20px;
  line-height: 1;
}

.menu-card {
  grid-template-columns: 42px 1fr 20px;
}

.menu-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--brand);
  font-size: 19px;
}

.menu-copy {
  display: grid;
  gap: 4px;
}

.audit-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.audit-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-ink);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.audit-time {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 5px;
  border-radius: 17px;
  background: var(--surface-quiet);
}

.tab {
  min-height: 44px;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.tab--active {
  background: var(--surface-raised);
  color: var(--text);
}

.report-card {
  display: grid;
  gap: 8px;
}

.report-number {
  margin-top: 4px;
  color: var(--brand);
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.manual-allocation {
  display: grid;
  gap: 10px;
}

.allocation-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.debt-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.debt-amount-grid span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.debt-amount-grid strong {
  color: var(--text);
  font-size: 16px;
}

.attachment-upload {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.attachment-actions,
.directory-actions,
.user-actions {
  margin-top: 12px;
}

.allocation-input {
  width: 110px;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-quiet);
  color: var(--text);
  text-align: right;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(148, 185, 255, 0.1);
  color: #bfceef;
  font-size: 11px;
  font-weight: 750;
}

.prototype-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wireframe {
  display: grid;
  min-height: 188px;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #0e141e;
}

.wireframe-name {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wire-top {
  height: 14px;
  border-radius: 6px;
  background: #243143;
}

.wire-hero {
  height: 42px;
  border-radius: 11px;
  background: #244047;
}

.wire-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.wire-box,
.wire-line,
.wire-button {
  border-radius: 7px;
  background: #263343;
}

.wire-box {
  min-height: 29px;
}

.wire-line {
  height: 8px;
}

.wire-button {
  height: 28px;
  background: #2b574f;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.token {
  display: flex;
  min-height: 65px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.token-swatch {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-name {
  display: block;
  font-size: 12px;
  font-weight: 780;
}

.token-value {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  padding: 28px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(98px + var(--safe-bottom));
  left: 18px;
  z-index: 30;
  width: min(calc(100% - 36px), 644px);
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid rgba(147, 245, 213, 0.24);
  border-radius: 16px;
  background: #18352f;
  box-shadow: var(--shadow);
  color: #ddfff2;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .app {
    min-height: calc(100vh - 32px);
    margin-top: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  }

  .screen,
  .pin-screen {
    min-height: calc(100vh - 32px);
  }

  .bottom-nav,
  .sticky-action {
    bottom: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0 0 31px 31px;
  }
}

@media (max-width: 390px) {
  .screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .stat-card {
    min-height: 108px;
    padding: 12px 10px;
  }

  .stat-value {
    font-size: 22px;
  }

  .hero-card {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
