:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #02334d;
  --muted: #5f7e96;
  --line: #c9d9e6;
  --accent: #1f95eb;
  --accent-dark: #0f78c4;
  --danger: #cb2c45;
  --ok: #0a7d57;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 100% -20%, #d9ebff 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 10%, #eaf4ff 0%, transparent 55%),
    var(--bg);
}

.page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-row img {
  width: 150px;
  height: auto;
}

.card-panel {
  background: var(--card);
  border: 1px solid #dbe7f1;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 14px 38px rgba(12, 45, 74, 0.1);
}

.title {
  margin: 0;
  font-size: 33px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.banner {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 15px;
  font-size: 14px;
}

.banner.error {
  color: #7b1728;
  background: #ffe8ed;
  border: 1px solid #f6b8c5;
}

.banner.info {
  color: #0b4164;
  background: #eaf4ff;
  border: 1px solid #c7e3ff;
}

.banner.ok {
  color: #0a5238;
  background: #e8f8f2;
  border: 1px solid #b9ebd8;
}

.form-group {
  margin-bottom: 13px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #f8fbff;
}

.secret-input-wrap {
  position: relative;
}

.secret-input-wrap .secret-input-field {
  padding-right: 44px;
}

.secret-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #557991;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.secret-toggle-btn:hover {
  background: rgba(32, 131, 199, 0.08);
}

.secret-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 149, 235, 0.2);
}

.secret-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-group input:focus {
  outline: none;
  border-color: #6dbaf4;
  box-shadow: 0 0 0 4px rgba(31, 149, 235, 0.14);
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 12px;
  border: 1px solid #cfe1ef;
  border-radius: 12px;
  background: #f0f7ff;
}

.checkbox-row input {
  margin-top: 3px;
}

.checkbox-row p {
  margin: 0;
  font-size: 13px;
  color: #1c5476;
}

.hint {
  margin: 0 0 15px;
  font-size: 13px;
  color: var(--muted);
}

.primary-btn,
.ghost-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 8px 18px rgba(31, 149, 235, 0.3);
}

.primary-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.ghost-btn {
  margin-top: 10px;
  background: #eaf4ff;
  color: #14547b;
}

.verify-email-action-row {
  margin-top: 10px;
}

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

.link-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #0c6ba8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.link-btn:hover {
  color: #0a4d7a;
  text-decoration: underline;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.error {
  background: var(--danger);
}

.meta-block {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #cddfee;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c6b82;
  margin-bottom: 3px;
}

.meta-value {
  color: #124564;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  word-break: break-word;
}

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

.dashboard-card {
  border: 1px solid #cfe1ef;
  border-radius: 12px;
  background: #f5faff;
  padding: 12px;
  font-size: 14px;
  color: #0f476b;
}

.dashboard-card p {
  margin: 0 0 8px;
}

.loading-wrap {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid #cae2f6;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-page-shell {
  max-width: 560px;
  padding: 14px 12px 128px;
}

.login-page-shell {
  max-width: 560px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 14px;
}

.login-page-shell .brand-row {
  justify-content: center;
  margin-bottom: 18px;
}

.login-page-shell .brand-row img {
  width: 146px;
}

.login-card-panel {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.app-card-panel {
  border-radius: 26px;
  padding: 16px 14px 22px;
  border-color: #cbdeed;
  background:
    radial-gradient(220px 140px at 0% 0%, #ebf5ff 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 18px 34px rgba(11, 45, 72, 0.16);
}

.mobile-app-shell {
  position: relative;
  padding-bottom: 116px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.app-topbar-copy {
  min-width: 0;
}

.mobile-eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f7e96;
}

.mobile-app-title {
  font-size: 37px;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-mini-logo-btn {
  border: 1px solid #c4dbec;
  border-radius: 14px;
  width: 60px;
  height: 40px;
  padding: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(26, 88, 132, 0.18);
}

.app-mini-logo-btn img {
  width: 48px;
  height: auto;
}

.app-avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.app-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #0c7fcf, #2ea2f0);
  box-shadow: 0 10px 22px rgba(31, 149, 235, 0.35);
}

.account-ready-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b7e7d3;
  border-radius: 12px;
  background: #ecfaf3;
  padding: 9px 10px;
  margin-bottom: 12px;
}

.account-ready-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #0f9a68;
}

.account-ready-text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #0f6f4c;
}

.pending-task-shell {
  margin-bottom: 14px;
  border: 1px solid #c8dff0;
  border-radius: 16px;
  padding: 12px 10px 10px;
  background:
    radial-gradient(260px 160px at 100% 0%, #d7ecff 0%, transparent 72%),
    linear-gradient(135deg, #e7f4ff 0%, #f4f9ff 100%);
}

.pending-task-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pending-task-hint {
  margin: 0;
  color: #5a7991;
  font-size: 11px;
  font-weight: 600;
}

.pending-task-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 78%);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.pending-task-rail::-webkit-scrollbar {
  height: 5px;
}

.pending-task-rail::-webkit-scrollbar-thumb {
  background: rgba(26, 94, 138, 0.25);
  border-radius: 99px;
}

.pending-task-card {
  border-radius: 14px;
  border: 1px solid #c8dff0;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 12px 11px;
  scroll-snap-align: start;
}

.pending-task-card.done {
  border-color: #b8e4d3;
  background: rgba(235, 250, 244, 0.84);
}

.pending-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pending-task-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.pending-task-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pending-task-state.pending {
  color: #8b4b08;
  background: #ffe7cf;
}

.pending-task-state.done {
  color: #0b6a46;
  background: #d6f4e9;
}

.pending-task-text {
  margin: 0 0 10px;
  color: #53748c;
  font-size: 12px;
  line-height: 1.4;
}

.pending-task-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #0f78c4, #1f95eb);
  cursor: pointer;
}

.pending-task-btn:disabled {
  background: #a6c9df;
  cursor: default;
}

.app-content-panel {
  border: 1px solid #cbdfed;
  border-radius: 16px;
  background: #f8fcff;
  padding: 12px;
}

.app-content-head {
  margin-bottom: 10px;
}

.app-content-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-content-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.1;
}

.app-content-head p {
  margin: 0;
  font-size: 12px;
  color: #5f7e96;
}

.app-content-refresh {
  width: auto;
  min-width: 88px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: #edf6ff;
  border: 1px solid #c9e0f2;
  color: #14547b;
}

.activity-feed-list,
.cards-list,
.stations-list {
  display: grid;
  gap: 10px;
}

.activity-item-card,
.card-item-card,
.station-item-card {
  border-radius: 14px;
  border: 1px solid #cee2f1;
  background: #fff;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(9, 55, 88, 0.06);
}

.activity-item-card {
  background:
    radial-gradient(220px 120px at 100% 0%, #edf6ff 0%, transparent 72%),
    #fff;
}

.activity-item-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.activity-item-main {
  min-width: 0;
  flex: 1;
}

.activity-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #cde1f1;
  color: #476980;
  background: #f2f8ff;
  flex-shrink: 0;
}

.activity-item-icon.success {
  color: #0a7d57;
  border-color: #b8e4d3;
  background: #e9f8f1;
}

.activity-item-icon.pending {
  color: #8b5f0a;
  border-color: #eed8b4;
  background: #fff5e6;
}

.activity-item-icon.warning {
  color: #a32f35;
  border-color: #f0c5c8;
  background: #fff0f1;
}

.activity-item-status {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.activity-item-status.success {
  color: #0a6b48;
  background: #daf3e8;
}

.activity-item-status.pending {
  color: #8b5b08;
  background: #ffe8cc;
}

.activity-item-status.warning {
  color: #90282f;
  background: #ffdce0;
}

.activity-empty-state {
  background: #f8fbff;
  border-style: dashed;
}

.activity-item-card.activity-success {
  border-color: #c2e6d8;
}

.activity-item-card.activity-pending {
  border-color: #ecdabf;
}

.activity-item-card.activity-warning {
  border-color: #f0c7ca;
}

.activity-item-title,
.card-item-title,
.station-item-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}

.activity-item-meta,
.card-item-state {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #3a7295;
}

.activity-item-detail,
.card-item-detail,
.station-item-detail {
  margin: 0;
  color: #5e7b92;
  font-size: 12px;
  line-height: 1.4;
}

.card-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-item-preview-btn {
  width: 100%;
  border: none;
  padding: 2px 2px 4px;
  margin: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 10px;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

.card-item-preview-btn:hover {
  background: #f3f9ff;
}

.card-item-preview-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 149, 235, 0.24);
}

.card-item-preview-btn:active {
  transform: translateY(1px);
}

.card-item-main {
  min-width: 0;
  flex: 1;
}

.card-item-bank-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  padding-top: 2px;
  min-width: max-content;
}

.card-item-bank-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.card-item-bank-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #5e7b92;
}

.card-item-bank-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #153b58;
}

.card-item-bank-expiry {
  margin: 2px 0 0;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #5b7a90;
}

.bank-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 22px;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  border: 1px solid #bdd6e8;
  background: #eef6fd;
  color: #1f5f8d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  gap: 5px;
}

.bank-card-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  background: #3a74a1;
}

.bank-card-brand-text {
  line-height: 1;
}

.bank-card-brand.visa {
  border-color: #89bbe2;
  background: linear-gradient(135deg, #e9f4ff 0%, #d5ebff 100%);
  color: #0b5fa7;
}

.bank-card-brand.visa .bank-card-brand-mark {
  background: #0b5fa7;
}

.bank-card-brand.mastercard {
  border-color: #e5c8b6;
  background: linear-gradient(135deg, #fff2e8 0%, #fbe7d8 100%);
  color: #a64f1a;
}

.bank-card-brand.mastercard .bank-card-brand-mark {
  background: linear-gradient(90deg, #c5421f 0%, #f59a2c 100%);
}

.bank-card-brand.verve {
  border-color: #96d4bb;
  background: linear-gradient(135deg, #ebfbf4 0%, #dcf5e9 100%);
  color: #147b52;
}

.bank-card-brand.verve .bank-card-brand-mark {
  background: linear-gradient(90deg, #147b52 0%, #2aa271 100%);
}

.card-item-actions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.card-item-action-btn {
  width: 100%;
}

.card-item-action-btn.ghost-btn {
  margin-top: 0;
}

.mobile-home-hero {
  margin: 12px 0 12px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid #c6dff1;
  background:
    radial-gradient(240px 140px at 100% 0%, #d7ecff 0%, transparent 70%),
    linear-gradient(135deg, #e7f4ff 0%, #f4f9ff 100%);
}

.mobile-hero-label {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #50728a;
}

.mobile-hero-main {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}

.mobile-hero-sub {
  margin: 7px 0 13px;
  font-size: 13px;
  color: #42657f;
}

.mobile-hero-btn {
  margin-top: 2px;
}

.mobile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-summary-card {
  text-align: left;
  border: 1px solid #cde0ef;
  border-radius: 14px;
  background: #f7fbff;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 12px;
}

.mobile-summary-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
}

.mobile-summary-text {
  margin: 0;
  font-size: 12px;
  color: #5f7e96;
}

.mobile-profile-card {
  margin: 0 0 12px;
}

.mobile-profile-card code {
  word-break: break-all;
}

.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(95vw, 430px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  border: 1px solid rgba(168, 202, 226, 0.4);
  background: rgba(4, 37, 62, 0.9);
  box-shadow: 0 20px 38px rgba(9, 39, 61, 0.38);
  z-index: 40;
  backdrop-filter: blur(14px) saturate(150%);
}

.mobile-nav-item {
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #bcd4e6;
  font-family: inherit;
  padding: 9px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.mobile-nav-item:hover {
  color: #dceeff;
}

.mobile-nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #1288db 0%, #20a2ef 100%);
  box-shadow: 0 8px 18px rgba(20, 132, 210, 0.42);
}

.mobile-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-1px);
}

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

.mobile-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 40, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 50;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-drawer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 106%);
  width: min(100vw, 430px);
  max-height: min(76vh, 620px);
  overflow: auto;
  border-radius: 24px 24px 0 0;
  border: 1px solid #c7dceb;
  border-bottom: none;
  padding: 10px 15px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -20px 40px rgba(10, 41, 66, 0.25);
  transition: transform 0.25s ease;
  z-index: 60;
}

.bottom-drawer.open {
  transform: translate(-50%, 0);
}

.drawer-handle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.drawer-handle {
  display: inline-block;
  width: 52px;
  height: 5px;
  border-radius: 99px;
  background: #ccdeec;
}

.drawer-close-btn {
  border: none;
  background: #eef6ff;
  color: #164f74;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.drawer-section h3 {
  margin: 4px 0 8px;
  font-size: 23px;
  line-height: 1.1;
}

.drawer-section p {
  margin: 0 0 10px;
  color: #5b7a91;
  font-size: 14px;
}

.drawer-meta {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #d0e1ed;
}

.drawer-meta p {
  margin: 0;
  font-size: 12px;
}

.drawer-meta code {
  word-break: break-all;
}

.drawer-list {
  margin: 0;
  padding-left: 18px;
  color: #174f74;
  display: grid;
  gap: 8px;
}

.drawer-list li {
  font-size: 14px;
  line-height: 1.45;
}

.security-action-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.security-action-card {
  border: 1px solid #c8ddef;
  background:
    radial-gradient(210px 120px at 100% 0%, #e4f2ff 0%, transparent 72%),
    #f7fbff;
  border-radius: 14px;
  width: 100%;
  padding: 12px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.security-action-card:hover {
  border-color: #1f95eb;
  box-shadow: 0 8px 16px rgba(20, 98, 147, 0.14);
  transform: translateY(-1px);
}

.security-action-title {
  font-size: 15px;
  line-height: 1.3;
  color: #0f3d5c;
  font-weight: 700;
}

.security-action-sub {
  font-size: 12px;
  color: #5d7a90;
}

.drawer-loading {
  margin-top: 10px;
  min-height: 72px;
  display: grid;
  place-items: center;
}

.drawer-group {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d3e3ee;
  border-radius: 14px;
  background: #f7fbff;
}

.drawer-subheading {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c6f89;
  font-weight: 800;
}

.drawer-note {
  margin: 0;
  font-size: 13px;
  color: #4f6e84;
}

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

.drawer-choice-item {
  width: 100%;
  border: 1px solid #c7dceb;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.drawer-choice-item:hover {
  border-color: #2f95de;
}

.drawer-choice-item.active {
  border-color: #198fdc;
  box-shadow: 0 0 0 2px rgba(25, 143, 220, 0.16);
  transform: translateY(-1px);
}

.drawer-choice-item:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.drawer-choice-title {
  font-size: 15px;
  line-height: 1.3;
  color: #0f3d5c;
  font-weight: 700;
}

.drawer-choice-meta {
  font-size: 12px;
  color: #63809a;
}

.drawer-cta-row {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.drawer-pin-form {
  display: grid;
  gap: 8px;
}

.drawer-form-group {
  margin-bottom: 0;
}

.drawer-action-btn {
  margin-top: 14px;
}

.card-qr-card-meta {
  margin-top: 12px;
}

.card-qr-card-label {
  font-size: 15px;
  font-weight: 700;
  color: #103e5e;
}

.card-qr-card-number {
  font-size: 12px;
  color: #5f7e96;
}

.card-qr-frame {
  margin-top: 14px;
  border: 1px solid #cbe0ef;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  place-items: center;
}

.card-qr-image {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.card-qr-hint {
  margin: 10px 2px 0;
  text-align: center;
  font-size: 12px;
  color: #5b7a91;
}

@media (max-width: 640px) {
  .title {
    font-size: 27px;
  }

  .app-page-shell {
    padding: 10px 8px 122px;
  }

  .login-page-shell {
    min-height: 100dvh;
    padding: 18px 10px;
  }

  .login-page-shell .brand-row img {
    width: 132px;
  }

  .card-panel {
    padding: 18px 16px;
  }

  .app-card-panel {
    border-radius: 22px;
    padding: 14px 12px 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mobile-app-title {
    font-size: 32px;
  }

  .app-mini-logo-btn {
    width: 52px;
    height: 36px;
  }

  .app-mini-logo-btn img {
    width: 42px;
  }

  .app-avatar {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .pending-task-rail {
    grid-auto-columns: minmax(210px, 84%);
  }

  .mobile-summary-grid {
    grid-template-columns: 1fr;
  }

  .app-content-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .app-content-refresh {
    width: 100%;
  }

  .mobile-bottom-nav {
    width: calc(100vw - 10px);
    bottom: max(4px, env(safe-area-inset-bottom));
    border-radius: 18px;
    gap: 6px;
    padding: 6px;
  }

  .mobile-nav-item {
    padding: 8px 2px;
  }

  .mobile-nav-label {
    font-size: 10px;
  }

  .bottom-drawer {
    width: 100vw;
    border-radius: 20px 20px 0 0;
  }
}
