/* Admin panel: family + currencies */

.admin-tabs { margin-bottom: 16px; }

.admin-user-top { display: flex; align-items: center; gap: 12px; }
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.admin-user-name.inactive { opacity: .5; }
.admin-user-sub { color: var(--muted); font-size: 13px; }
.admin-user-actions {
  display: flex; gap: 8px; margin-top: 12px;
  border-top: 1px solid var(--line); padding-top: 12px;
}

/* iOS-style toggle */
.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--line); border-radius: 999px; transition: background .2s;
}
.switch-slider::before {
  content: ""; position: absolute; width: 21px; height: 21px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .switch-slider { background: var(--green); }
.switch input:checked + .switch-slider::before { transform: translateX(19px); }
.switch input:disabled + .switch-slider { opacity: .5; cursor: default; }

/* one-time setup code reveal */
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 700; letter-spacing: .06em;
  background: var(--green-softer); color: var(--green-dark);
  border: 1.5px dashed var(--green);
  border-radius: var(--radius-sm);
  padding: 16px; text-align: center; margin: 14px 0 10px;
  user-select: all; cursor: pointer;
  overflow-wrap: anywhere;
}
.admin-code-note { font-size: 13.5px; margin-bottom: 14px; }

.emoji-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.emoji-btn {
  width: 40px; height: 40px; font-size: 20px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer;
}
.emoji-btn:active { background: var(--green-soft); }

/* currencies — inputs laid out on a grid so nothing gets crushed on phones */
.fx-line1 {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 52px 34px;
  gap: 8px;
  align-items: center;
}
.fx-line2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.fx-line1 input, .fx-line2 input {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 14.5px; font-family: inherit;
  background: var(--card); color: var(--ink);
  width: 100%; min-width: 0;
}
input.fx-code { font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; }
input.fx-code[readonly] { background: var(--bg); border-color: transparent; }
input.fx-symbol { text-align: center; }
.fx-eq { color: var(--muted); font-size: 13px; white-space: nowrap; }
.fx-eq-code { font-weight: 700; }
.fx-dec-label {
  color: var(--muted); font-size: 11.5px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.fx-dec-label input.fx-dec { width: 52px; text-align: center; padding: 6px 4px; }
.fx-del {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--red-soft); color: var(--red);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.fx-actions { display: flex; gap: 10px; margin-top: 14px; }
.fx-footnote { color: var(--muted); font-size: 13px; margin-top: 12px; }
