

:root {
  --paper: #fffefb;
  --ink: #1b1b1b;
  --muted: #666666;
  --line: #dddddd;
  color-scheme: light;
}

.portal-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.portal-body * {
  box-sizing: border-box;
}

/* Exclude buttons so their component colour wins. */
.portal-body a:not(:where(.ui-btn)) {
  color: inherit;
}

.portal-body h1,
.portal-body h2,
.portal-body h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.portal-body h2 {
  font-size: 1.25rem;
  line-height: 1.1;
}

/* Low specificity lets component paragraph margins win. */
:where(.portal-head, .portal-section, .portal-auth-card, .portal-price-block, .portal-empty) > p {
  margin: 0;
}

.portal-body table {
  font-variant-numeric: tabular-nums;
}

.portal-body a:focus-visible,
.portal-body button:focus-visible,
.portal-body input:focus-visible,
.portal-body select:focus-visible,
.portal-body textarea:focus-visible,
.portal-body summary:focus-visible,
.portal-body [tabindex]:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}

/* The focused skip link must retain paper-on-ink contrast. */
.portal-body .portal-skip {
  position: absolute;
  z-index: 50;
  top: -6rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.portal-body .portal-skip:focus {
  top: 1rem;
}



/* Cap line length on wide screens. */
.portal-body .ui-shell-main {
  max-width: 72rem;
}

.portal-head {
  display: grid;
  gap: 0.6rem;
}

.portal-lead {
  color: var(--muted);
  max-width: 52ch;
}

.portal-section {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  max-width: 48rem;
}

.portal-section-wide {
  max-width: none;
}

.portal-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.portal-empty {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding: 2rem 1.2rem;
  border: 1px dashed var(--ui-line-strong);
  max-width: 34rem;
}

.portal-empty p {
  color: var(--muted);
}

.portal-order-link {
  font-weight: 700;
}

.portal-new {
  display: inline-block;
  padding: 0 0.4rem;
  border: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.portal-price-block {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.portal-files {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.portal-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--ui-surface);
}



.portal-nav-group {
  display: grid;
  gap: 0.35rem;
}

.portal-nav-group > .ui-eyebrow {
  margin: 0;
  padding: 0 0.6rem;
}



.portal-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  font-size: 0.82rem;
}

.portal-lang a {
  padding: 0.2rem 0.45rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.portal-lang a[aria-current="true"] {
  border-color: var(--ink);
  font-weight: 700;
}

.portal-foot-account {
  display: grid;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.portal-email {
  color: var(--muted);
  overflow-wrap: anywhere;
}



.portal-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 16px;
}

.portal-auth-card {
  width: 100%;
  max-width: 30rem;
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: var(--paper);
}

.portal-auth-card h1 {
  font-size: clamp(1.6rem, 6vw, 2rem);
  line-height: 1;
}

.portal-auth-card > .ui-shell-brand {
  justify-self: start;
}

.portal-auth-langs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-or {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .portal-body {
    scroll-behavior: auto;
  }

  .portal-body *,
  .portal-body *::before,
  .portal-body *::after {
    transition: none !important;
    animation: none !important;
  }
}
