:root {
  --bg: #f0f4f8;
  --card: #fff;
  --navy: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --green: #16a34a;
  --green-dark: #15803d;
  --tile: #fef08a;
  --tile-ink: #713f12;
  --tile-edge: #ca8a04;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}
.container {
  max-width: 600px;
  margin: 30px auto;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* Header: tile logo (Lexulous values: L1 E1 X8 U1 O1 S1) */
.header { background: var(--navy); padding: 32px 20px; text-align: center; }
.tiles { display: inline-flex; gap: 4px; }
.tile {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--tile); color: var(--tile-ink);
  font-weight: 800; font-size: 20px;
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--tile-edge);
}
.tile sub { position: absolute; right: 3px; bottom: 1px; font-size: 8px; font-weight: 700; }

.content { padding: 40px 36px; }

/* Profile */
.profile { text-align: center; }
.avatar {
  /* Avatars are 50px icons: show them at native size, padded so the
     circle does not clip their corners (25 * sqrt(2) < 36). */
  width: 72px; height: 72px;
  padding: 11px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--tile), 0 4px 12px rgba(15,23,42,.12);
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 5px 12px;
  background: #f0fdf4; color: var(--green-dark);
  border-radius: 20px; font-size: 13px; font-weight: 600;
}
.status::before { content: "\2713"; font-weight: 800; }
h1 { margin: 12px 0 4px; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.3; word-break: break-word; }
.lead { margin: 0; font-size: 16px; }

.section-title {
  margin: 32px 0 10px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}

/* Account details */
.details { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 22px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row dt { font-size: 14px; color: var(--muted); }
.row dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); text-align: right; word-break: break-word; }

/* Actions */
.actions { display: grid; gap: 12px; margin-top: 32px; }
.btn {
  display: block; text-align: center; text-decoration: none;
  padding: 16px 28px; border-radius: 50px;
  font-size: 16px; font-weight: 700;
  transition: background .15s, color .15s;
}
.btn:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
.btn-primary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid #cbd5e1; }
.btn-secondary:hover { border-color: var(--navy); }
.hint { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Stats notice */
.notice {
  margin-top: 32px;
  padding: 16px 20px;
  background: #fffbeb;
  border-left: 3px solid var(--tile-edge);
  border-radius: 0 8px 8px 0;
  font-size: 14px; color: var(--tile-ink);
}
.notice strong { display: block; margin-bottom: 2px; font-size: 15px; }
.notice-done {
  background: #f0fdf4;
  border-left-color: var(--green-dark);
  color: var(--green-dark);
}

.signoff { margin: 32px 0 0; font-size: 16px; }
.signoff strong { color: var(--navy); }

.footer {
  padding: 24px; text-align: center;
  background: var(--panel); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.footer a { color: var(--muted); }

@media (max-width: 480px) {
  .container { margin: 0; border-radius: 0; box-shadow: none; }
  .content { padding: 32px 22px; }
  .tiles { gap: 2px; }
  .tile { width: 28px; height: 28px; font-size: 15px; box-shadow: 0 2px 0 var(--tile-edge); }
  .tile sub { font-size: 7px; right: 2px; }
  h1 { font-size: 22px; }
}

/* Loading / invalid-link message (not in the design; reuses its type scale) */
.state { margin: 0; text-align: center; font-size: 16px; color: var(--muted); }
