:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #eef2f7;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef2f7;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid #c9d2e3;
  border-radius: 6px;
  padding: 8px 14px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
}

button:hover {
  border-color: #7c8da8;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button.primary {
  border-color: #2868df;
  background: #2868df;
  color: #ffffff;
}

button.success {
  border-color: #22965c;
  background: #22965c;
  color: #ffffff;
}

button.danger {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(45, 31, 92, 0.96), rgba(52, 20, 65, 0.95)),
    radial-gradient(circle at 70% 70%, rgba(206, 66, 116, 0.26), transparent 34%);
  color: #ffffff;
  box-shadow: 10px 0 22px rgba(31, 42, 68, 0.18);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.side-menu {
  display: grid;
  gap: 2px;
  padding: 14px 0;
}

.side-menu-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.side-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.side-menu-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.side-menu-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: #ff4f8f;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.content-shell {
  min-width: 0;
  padding: 0 26px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.search-box {
  width: min(320px, 100%);
}

.search-box input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d4dce9;
  border-radius: 999px;
  padding: 7px 14px;
  background: #ffffff;
  color: #172033;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.topbar-actions span {
  width: 16px;
  height: 16px;
  border: 2px solid #7d8797;
  border-radius: 4px;
}

.view-pane {
  display: none;
}

.view-pane.active {
  display: block;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 18px;
}

h1,
h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: 18px;
}

.muted {
  margin: 0;
  color: #687387;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e4eaf4;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.android-mail-panel {
  display: none;
}

.android-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 30px;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.22), transparent 36%),
    radial-gradient(circle at 98% 90%, rgba(20, 184, 166, 0.2), transparent 34%),
    linear-gradient(160deg, #121b25 0%, #0a0f18 70%, #08130f 100%);
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.android-head,
.android-title-row,
.android-field-top,
.android-copy-row,
.android-app-actions {
  display: flex;
  align-items: center;
}

.android-head,
.android-title-row,
.android-field-top {
  justify-content: space-between;
}

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

.android-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #27d7e9, #12aaa4);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.android-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.android-brand p,
.android-field-top span,
.android-title-row span {
  margin: 0;
  color: #a9b8cf;
  font-size: 14px;
}

.android-online {
  border: 1px solid rgba(187, 247, 208, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(220, 252, 231, 0.92);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.android-title-row {
  margin-top: 30px;
}

.android-title-row strong,
.android-field label {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.android-title-row span {
  margin-left: 14px;
  color: #67e8f9;
  font-weight: 800;
}

.android-install {
  color: #fecdd3;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.android-field {
  margin-top: 22px;
}

.android-copy-row {
  gap: 16px;
  margin-top: 12px;
}

.android-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid rgba(96, 123, 167, 0.34);
  border-radius: 20px;
  padding: 17px 20px;
  background: rgba(15, 23, 42, 0.52);
  color: #f8fafc;
  font: 16px Consolas, "Courier New", monospace;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.android-copy {
  min-width: 134px;
  min-height: 58px;
  border: 0;
  border-radius: 28px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.android-copy.copied {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-size: 28px;
}

.android-copy.blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.android-copy.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.android-copy.cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.android-get-mail,
.android-buy-mail {
  width: 100%;
  border: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.android-get-mail {
  min-height: 58px;
  margin-top: 24px;
  border-radius: 24px;
  background: linear-gradient(90deg, #fb16b9, #b21fe3);
}

.android-buy-mail {
  min-height: 56px;
  margin-top: 16px;
  border-radius: 24px;
  background: linear-gradient(90deg, #2867ee, #06b6d4);
}

.android-app-actions {
  gap: 14px;
  margin-top: 16px;
}

.android-app-actions a {
  flex: 1;
  min-width: 0;
  min-height: 64px;
  border: 1px solid rgba(104, 128, 166, 0.42);
  border-radius: 20px;
  padding: 18px 12px;
  background: rgba(30, 41, 59, 0.68);
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.android-ready {
  margin-top: 16px;
  border: 1px solid rgba(74, 222, 128, 0.26);
  border-radius: 22px;
  padding: 20px;
  background: rgba(20, 83, 45, 0.72);
  color: #bbf7d0;
  font-size: 20px;
  font-weight: 800;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.summary span {
  min-height: 76px;
  border: 0;
  border-radius: 4px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #2868df, #23a7f2);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(55, 88, 135, 0.16);
  font-size: 18px;
  font-weight: 600;
}

.summary span:nth-child(2) {
  background: linear-gradient(135deg, #e13c4a, #ff6c32);
}

.summary span:nth-child(3) {
  background: linear-gradient(135deg, #15736f, #45b54a);
}

.summary span:nth-child(4) {
  background: linear-gradient(135deg, #8038d9, #d946c6);
}

.summary span:nth-child(5) {
  background: linear-gradient(135deg, #475569, #0f766e);
}

.summary span:nth-child(6) {
  background: linear-gradient(135deg, #9f1239, #f97316);
}

.dashboard-section {
  margin: 0 0 18px;
}

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

.dashboard-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid #e0e6f0;
  border-radius: 4px;
  padding: 12px 14px;
  background: #ffffff;
  color: #172033;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(30, 45, 75, 0.07);
}

.dashboard-table {
  max-height: 320px;
}

.dashboard-table table {
  min-width: 760px;
}

.recon-dashboard {
  --recon-card: #ffffff;
  --recon-muted: #66758f;
  --recon-line: #e3eaf3;
  --recon-red: #dc2626;
  --recon-green: #16a34a;
  --recon-yellow: #d97706;
  --recon-red-bg: #fff1f2;
  --recon-green-bg: #ecfdf5;
  --recon-yellow-bg: #fffbeb;
  --recon-shadow: 0 8px 24px rgba(30, 41, 59, 0.08);
  margin: 0 0 18px;
}

.recon-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.recon-top h2,
.recon-section-title h3 {
  margin: 0;
}

.recon-top h2 {
  font-size: 24px;
}

.recon-sub {
  color: var(--recon-muted);
  font-size: 14px;
}

.recon-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.recon-card {
  border: 1px solid var(--recon-line);
  border-radius: 8px;
  padding: 16px;
  background: var(--recon-card);
  box-shadow: var(--recon-shadow);
}

.recon-label {
  color: var(--recon-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.recon-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.recon-note {
  margin-top: 4px;
  color: var(--recon-muted);
  font-size: 12px;
}

.recon-danger {
  color: var(--recon-red);
}

.recon-ok {
  color: var(--recon-green);
}

.recon-warn {
  color: var(--recon-yellow);
}

.recon-main {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 18px;
}

.recon-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.recon-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.recon-section-title h3 {
  font-size: 18px;
}

.recon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recon-pill {
  border: 1px solid var(--recon-line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8fafc;
  color: var(--recon-muted);
  font-size: 13px;
}

.recon-table-scroll {
  overflow: auto;
}

.recon-table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.recon-table th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--recon-line);
  background: #f8fafc;
  color: #34496b;
  font-size: 12px;
}

.recon-table td {
  padding: 14px;
  border-bottom: 1px solid var(--recon-line);
}

.recon-table tr:hover {
  background: #f8fbff;
}

.recon-row-bad {
  background: linear-gradient(90deg, var(--recon-red-bg), #ffffff 35%);
}

.recon-date {
  font-weight: 700;
}

.recon-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.recon-small {
  display: block;
  margin-top: 3px;
  color: var(--recon-muted);
  font-size: 12px;
}

.recon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.recon-bad {
  background: var(--recon-red-bg);
  color: var(--recon-red);
}

.recon-good {
  background: var(--recon-green-bg);
  color: var(--recon-green);
}

.recon-diff {
  color: var(--recon-red);
  font-weight: 800;
}

.recon-chart {
  min-height: 210px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px 4px 0;
}

.recon-chart-empty {
  align-items: center;
  justify-content: center;
  color: var(--recon-muted);
}

.recon-bar-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}

.recon-bar-wrap:hover {
  border-color: transparent;
}

.recon-bar {
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ef4444, #fca5a5);
}

.recon-bar-val {
  margin-bottom: 5px;
  color: var(--recon-red);
  font-size: 11px;
  font-weight: 700;
}

.recon-bar-label {
  margin-top: 6px;
  color: var(--recon-muted);
  font-size: 11px;
}

.recon-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.recon-mini {
  border: 1px solid var(--recon-line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  color: #35425a;
}

.recon-mini b {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 18px;
}

.recon-mini b.recon-danger {
  color: var(--recon-red);
}

.recon-link-title {
  margin: 8px 0 12px;
  font-size: 16px;
}

.recon-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
  color: var(--recon-muted);
  text-align: center;
}

.recon-link-line {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap,
.naptien-panel {
  overflow-x: auto;
  border: 1px solid #e0e6f0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(30, 45, 75, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fbfcff;
  color: #4a5870;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

tr.used-row {
  background: #f8fbf6;
}

tr.focus-row {
  outline: 2px solid #2868df;
  outline-offset: -2px;
}

.email-cell,
.password,
.checked-at,
.url-cell {
  font-family: Consolas, "Courier New", monospace;
}

.password,
.checked-at,
.note-cell {
  color: #526078;
}

.index-cell {
  width: 58px;
  color: #647087;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.used-cell {
  width: 150px;
}

.copy-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.copy-value-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.qr-cell {
  width: 300px;
}

.checked-at {
  width: 180px;
  font-size: 13px;
  white-space: nowrap;
}

.used-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.used-toggle {
  inline-size: 22px;
  block-size: 22px;
  accent-color: #2f8f46;
}

.qr-toggle {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.inline-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 220px;
  min-height: 0;
  border-color: #b7c5da;
  padding: 10px;
  text-align: center;
}

.inline-qr img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}

.inline-qr span,
.qr-email-label {
  display: block;
  width: 100%;
  max-width: 196px;
  color: #526078;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: #647087;
}

.empty[hidden],
[hidden] {
  display: none !important;
}

.naptien-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
}

.manual-links-panel {
  margin: 0 0 18px;
}

.manual-links-field textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid #c9d2e3;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  color: #172033;
  font: 13px Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.manual-links-field textarea:focus {
  border-color: #2868df;
  outline: 2px solid rgba(40, 104, 223, 0.18);
}

.terminal-panel {
  margin: 0 0 18px;
}

.terminal-panel .section-head {
  margin-bottom: 8px;
}

.terminal-panel button {
  min-height: 34px;
  padding: 6px 10px;
}

.gift-terminal {
  min-height: 180px;
  max-height: 360px;
  margin: 0;
  overflow: auto;
  border: 1px solid #263244;
  border-radius: 4px;
  padding: 12px;
  background: #0f172a;
  color: #dbeafe;
  font: 13px/1.5 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 30px rgba(30, 45, 75, 0.12);
}

.gift-terminal.running {
  border-color: #2868df;
}

.gift-terminal.error {
  border-color: #b42318;
  color: #fee2e2;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #35425a;
  font-weight: 600;
}

.field.compact {
  margin: 0;
  min-width: 180px;
}

.field input {
  min-height: 40px;
  border: 1px solid #c9d2e3;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: #172033;
}

.field input:focus {
  border-color: #2868df;
  outline: 2px solid rgba(40, 104, 223, 0.18);
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #35425a;
}

.check-field input {
  inline-size: 18px;
  block-size: 18px;
}

.naptien-status {
  flex: 1 1 280px;
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #526078;
  overflow-wrap: anywhere;
}

.split-layout {
  display: grid;
  gap: 18px;
}

.data-section {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.compact-table {
  max-height: 420px;
  overflow: auto;
}

.compact-table table {
  min-width: 860px;
}

.compact-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.money-cell,
.status-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.status-redeemed .status-cell {
  color: #1f7a4a;
  font-weight: 700;
}

.status-skipped .status-cell {
  color: #8a6200;
  font-weight: 700;
}

.status-error .status-cell {
  color: #b42318;
  font-weight: 700;
}

.note-cell {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.url-cell {
  max-width: 520px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.url-cell a {
  color: #2868df;
  text-decoration: none;
}

.url-cell a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 6px;
  padding: 12px 14px;
  background: #172033;
  color: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 51, 0.42);
  z-index: 20;
}

.modal {
  width: min(420px, 100%);
  border: 1px solid #d8dfec;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.22);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  margin-bottom: 16px;
}

.modal h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.modal-copy {
  margin: 0 0 12px;
  color: #35425a;
  line-height: 1.5;
}

.modal-warning {
  margin: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff4e5;
  color: #8a6200;
  font-weight: 600;
}

.icon-button {
  min-width: 38px;
  min-height: 38px;
  padding: 4px 10px;
  font-size: 24px;
  line-height: 1;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 860px) {
  body {
    background: #e8edf4;
  }

  body.android-mobile-mode {
    min-height: 100vh;
    background:
      radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.22), transparent 36%),
      radial-gradient(circle at 98% 90%, rgba(20, 184, 166, 0.2), transparent 34%),
      linear-gradient(160deg, #121b25 0%, #0a0f18 70%, #08130f 100%);
  }

  .app-layout {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    display: none;
  }

  .brand-block {
    height: 64px;
  }

  .side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .side-menu-item.active::after {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
  }

  .content-shell {
    min-height: 100vh;
    padding: 20px 16px 32px;
  }

  body.android-mobile-mode .content-shell,
  body.android-mobile-mode #emailView {
    min-height: 100vh;
    background:
      radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.22), transparent 36%),
      radial-gradient(circle at 98% 90%, rgba(20, 184, 166, 0.2), transparent 34%),
      linear-gradient(160deg, #121b25 0%, #0a0f18 70%, #08130f 100%);
  }

  .email-desktop-block {
    display: none;
  }

  .android-mail-panel {
    display: block;
    width: min(100%, 530px);
    min-height: calc(100vh - 52px);
    margin: 0 auto;
  }

  .android-card {
    min-height: calc(100vh - 52px);
    box-shadow: none;
  }

  .page-head,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
    width: 100%;
  }

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

  .recon-main {
    grid-template-columns: 1fr;
  }

  .recon-top,
  .recon-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .content-shell {
    padding: 0;
  }

  .android-mail-panel {
    width: 100%;
    min-height: 100vh;
  }

  .android-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 24px 16px 28px;
  }

  .android-copy-row {
    gap: 10px;
  }

  .android-copy {
    min-width: 96px;
    font-size: 18px;
  }

  .android-value {
    padding-inline: 14px;
    font-size: 14px;
  }

  .android-title-row strong,
  .android-field label,
  .android-get-mail,
  .android-buy-mail {
    font-size: 19px;
  }

  .android-app-actions {
    gap: 8px;
  }

  .android-app-actions a {
    min-height: 56px;
    padding: 16px 8px;
    font-size: 16px;
  }
}

