:root {
  --suga-navy: #073b73;
  --suga-sky: #339eea;
  --suga-teal: #0e7c78;
  --suga-canvas: #f7f9fc;
  --suga-ink: #172b45;
  --suga-muted: #52657a;
  --suga-border: #dde5ef;
}

body {
  background: var(--suga-canvas);
  color: var(--suga-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--suga-sky);
  outline-offset: 2px;
}

.suga-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.suga-logo {
  height: 2.5rem;
  width: auto;
  flex-shrink: 0;
}

.suga-word {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--suga-navy);
  font-size: 1.15rem;
  line-height: 1;
}

.suga-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(70vw, 22rem);
}

.suga-user-name {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--suga-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suga-rol {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid transparent;
}

.suga-rol-0 { background: #073b73; color: #ffffff; }
.suga-rol-1 { background: #e6f3fc; color: #073b73; border-color: #b9daf3; }
.suga-rol-2 { background: #e7f8f6; color: #0b5c58; border-color: #b7e4df; }
.suga-rol-3 { background: #e8eef6; color: #073b73; border-color: #c5d4e8; }
.suga-rol-4 { background: #f3e8f6; color: #4a1d6a; border-color: #e0c8ea; }
.suga-rol-5 { background: #e8f0f6; color: #0c3a5c; border-color: #c5d7e6; }
.suga-rol-6 { background: #eef2f6; color: #172b45; border-color: #d5dee8; }
.suga-rol-9 { background: #f8f1e6; color: #6b4e1a; border-color: #ead9b8; }
.suga-rol-10 { background: #f3ede8; color: #5c3a2e; border-color: #e2d2c8; }
.suga-rol-x { background: #eef2f6; color: #172b45; border-color: #d5dee8; }

@media (max-width: 640px) {
  .suga-word { display: none; }
  .suga-user-name { max-width: 7rem; }
}

@media print {
  nav,
  aside,
  .suga-account,
  .suga-rol {
    display: none !important;
  }
}
