:root {
  --frnsw-red: #c8102e;
  --frnsw-blue: #003e7e;
  --bg: #05060a;
  --card-bg: #101320;
  --card-border: rgba(255, 255, 255, 0.06);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #151b2f 0, #05060a 55%, #020308 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  padding: 12px 18px 4px;
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--frnsw-red), var(--frnsw-blue));
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.brand-text {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.app-main {
  flex: 1;
  padding: 6px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.screen-title {
  margin: 10px 4px;
  font-size: 22px;
  font-weight: 700;
}

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

.card {
  background: radial-gradient(circle at top left, #1f2937 0, var(--card-bg) 55%);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead {
  font-size: 16px;
  margin: 4px 0 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

input {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  padding: 10px 10px;
  font-size: 15px;
}

input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 1px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-main);
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--frnsw-red), var(--frnsw-blue));
}

.btn.danger {
  background: var(--danger);
}

.btn.warning {
  background: var(--warning);
  color: #111827;
}

.btn.subtle {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn:active {
  transform: translateY(1px);
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
  font-size: 14px;
}

.list-label {
  font-weight: 500;
}

.list-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin: 6px 2px 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  #app {
    margin-top: 18px;
    margin-bottom: 18px;
  }
}

