/*
 | ui.css — the platform's design system (batch 5y).
 |
 | The legacy identity (mandhur/src/assets/css/style.css on Bootstrap 5):
 | deep teal ink, teal, gold, warm sand; soft shadows, 12–24px radii, Cairo.
 | Rebuilt without Bootstrap: every core and tool screen reaches it through
 | the platform's overrides of the core's components (resources/views/vendor/
 | manzoor/components), and the three frames — workspace, administration and
 | the identity pages — are drawn here. Logical properties throughout, so each
 | screen mirrors with dir="rtl|ltr". Colours are the core's tokens where the
 | theme screen should reach them.
 */

.mz-root {
  --ink: var(--brand-secondary, #0A3A4A);
  --teal: var(--brand-primary, #188283);
  --gold: var(--brand-accent, #E9B622);
  --sand: #F6EEDC;
  --paper: #FFFFFF;
  --mist: #F5F7F9;
  --line: #E6E9EE;
  --line-warm: #EDE3CC;
  --muted: #6B7280;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(10, 58, 74, .16);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
}

/* ===================================================================
   1. Components — the core's, re-drawn (vendor/manzoor/components)
   =================================================================== */

.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.15rem;
  border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-size: .92rem; font-weight: 700; line-height: 1.2;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.pf-btn:active { transform: translateY(1px); }
.pf-btn--primary { background: var(--ink); color: #fff !important; box-shadow: 0 6px 16px rgba(10, 58, 74, .18); }
.pf-btn--primary:hover { background: var(--teal); }
.pf-btn--secondary { background: var(--paper); color: var(--ink) !important; border-color: #D5DCE3; }
.pf-btn--secondary:hover { border-color: var(--ink); background: #F3F7F8; }
.pf-btn--danger { background: var(--paper); color: var(--state-danger, #A32020) !important; border-color: color-mix(in srgb, var(--state-danger, #A32020) 45%, #fff); }
.pf-btn--danger:hover { background: var(--state-danger, #A32020); color: #fff !important; }
.pf-btn--gold { background: var(--gold); color: #1F2933 !important; }
.pf-btn--gold:hover { background: #F5C33B; }
.pf-btn--block { display: flex; width: 100%; min-height: 54px; font-size: 1.02rem; }
.pf-btn .bi { font-size: 1.05em; }

.pf-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.35rem;
}
.pf-card-head { margin-block-end: 1rem; min-width: 0; }
.pf-card-title { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.pf-card-sub { margin: .2rem 0 0; font-size: .82rem; color: var(--muted); }

.pf-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .18rem .65rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; line-height: 1.5;
  background: #EEF2F5; color: #4B5563;
}
.pf-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pf-chip--success { background: #DCF5E6; color: #146C3A; }
.pf-chip--warning { background: #FEF3C7; color: #8A5A00; }
.pf-chip--danger { background: #FEE2E2; color: #991B1B; }
.pf-chip--info { background: #DCEFF7; color: #1F5D8C; }

.pf-empty {
  margin: 0; padding: 2.5rem 1.25rem; text-align: center;
  border: 1.5px dashed #D5DCE3; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--muted); font-size: .92rem;
}
.pf-empty .bi { display: block; margin-block-end: .4rem; font-size: 1.8rem; color: #B8C2CC; }

.pf-notice {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-block-end: 1rem; padding: .85rem 1rem;
  border-radius: var(--r); border: 1px solid transparent; border-inline-start-width: 4px;
  font-size: .92rem; min-width: 0;
}
.pf-notice > .bi { font-size: 1.15rem; line-height: 1.4; flex: none; }
.pf-notice p { margin: 0; }
.pf-notice ul { margin: 0; padding-inline-start: 1.1rem; }
.pf-notice--success { background: #EFFAF3; border-color: #BFE6CD; border-inline-start-color: #1E8E4E; color: #14532D; }
.pf-notice--warning { background: #FFF8E6; border-color: #F6DFA0; border-inline-start-color: #D9A10B; color: #713F12; }
.pf-notice--danger { background: #FFF5F5; border-color: #F6C9C9; border-inline-start-color: #DC3545; color: #7F1D1D; }
.pf-notice--info { background: #EEF7FB; border-color: #C5E2EE; border-inline-start-color: var(--teal); color: #164E63; }

.pf-table-wrap {
  overflow-x: auto; min-width: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.pf-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pf-table thead th {
  padding: .8rem 1rem; text-align: start; white-space: nowrap;
  background: #F8FAFB; color: #5B6B78; font-size: .76rem; font-weight: 800;
  border-block-end: 1px solid var(--line);
}
.pf-table tbody td, .pf-table tbody th { padding: .75rem 1rem; border-block-end: 1px solid #F0F2F5; vertical-align: middle; }
.pf-table tbody tr:last-child > * { border-block-end: 0; }
.pf-table tbody tr:hover { background: #FAFCFC; }

/* A field with its label inside the box, floating up — the legacy form-floating. */
.pf-field { position: relative; min-width: 0; }
.pf-field input, .pf-field select, .pf-field textarea {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 58px; padding: 1.55rem 1rem .5rem;
  border: 1.5px solid #E2E8EE; border-radius: 12px;
  background: #FCFCFC; color: #1F2933; font: inherit; font-size: 1rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.pf-field label {
  position: absolute; inset-inline-start: 1rem; top: 1.05rem;
  color: #6B7280; font-size: 1rem; pointer-events: none;
  transform-origin: var(--pf-origin, right) top;
  transition: transform .15s, color .15s, top .15s;
}
[dir="ltr"] .pf-field label { --pf-origin: left; }
.pf-field input:focus, .pf-field select:focus, .pf-field textarea:focus {
  outline: none; background: #fff; border-color: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent);
}
.pf-field input:focus + label, .pf-field input:not(:placeholder-shown) + label,
.pf-field textarea:focus + label, .pf-field textarea:not(:placeholder-shown) + label,
.pf-field select + label {
  top: .45rem; transform: scale(.78); color: var(--teal);
}
.pf-field input[dir="ltr"] { text-align: left; }
[dir="rtl"] .pf-field input[dir="ltr"]:placeholder-shown { text-align: right; }
.pf-field.has-error input { border-color: #E08A8A; }

.pf-check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; color: #4B5563; font-size: .92rem; }
.pf-check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ===================================================================
   2. The screen region — every core and tool screen's heading
   =================================================================== */

.pf-screen { width: 100%; max-width: 1240px; margin-inline: auto; padding: 1.5rem 1rem 2.5rem; box-sizing: border-box; min-width: 0; }
.pf-frame-public .pf-screen { padding-block: 2rem 3rem; }
.pf-screen-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-block-end: 1.5rem; min-width: 0;
}
.pf-screen-title { margin: 0; color: var(--ink); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 900; line-height: 1.3; }
.pf-screen-sub { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; }
.pf-screen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-width: 0; }

/* ===================================================================
   3. Identity pages — the legacy login.php / register.php
   =================================================================== */

.pf-content--auth { background: #fff; }
body.pf-frame-auth, .pf-frame-auth .pf-content { background: #fff; }

.au-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding: 3rem 1rem; box-sizing: border-box; }
.au-split { display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 992px) { .au-split { grid-template-columns: 1fr 1fr; gap: 4rem; } .au-split > .au-visual { order: 2; } }

.au-form-col { display: flex; flex-direction: column; justify-content: center; padding: .5rem; min-width: 0; }
.au-badge {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  padding: .3rem .95rem; margin-block-end: 1rem;
  background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 700; color: #1F2933;
}
.au-badge .bi { color: var(--gold); }
.au-title { margin: 0 0 .5rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; }
.au-sub { margin: 0 0 1.75rem; color: var(--muted); font-size: 1.05rem; }
.au-form { display: grid; gap: 1rem; }
.au-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-block: .25rem .5rem; }
.au-link { color: var(--teal) !important; font-weight: 800; font-size: .92rem; text-decoration: none !important; }
.au-link:hover { color: var(--ink) !important; }
.au-alt { margin-block-start: .75rem; padding-block-start: 1.25rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .95rem; }
.au-alt a { color: var(--gold) !important; font-weight: 800; text-decoration: none !important; }
.au-alt a:hover { color: var(--ink) !important; }

.au-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1.5rem; text-align: center; border-radius: 24px;
  background: linear-gradient(135deg, rgba(26, 140, 148, .06) 0%, rgba(233, 182, 34, .09) 100%);
}
.au-visual-deco { position: absolute; font-size: 8rem; line-height: 1; pointer-events: none; }
.au-visual-deco--a { top: -30px; inset-inline-end: -30px; color: rgba(26, 140, 148, .07); transform: rotate(15deg); }
.au-visual-deco--b { bottom: -30px; inset-inline-start: -30px; color: rgba(233, 182, 34, .09); transform: rotate(-15deg); }
.au-visual-logo { width: 96px; height: auto; margin-block-end: 1.75rem; opacity: .95; position: relative; }
.au-quote {
  position: relative; max-width: 420px; padding: 1.75rem 1.75rem 1.5rem; margin-block-end: 1.5rem;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px);
  border-radius: 20px; box-shadow: var(--shadow-sm);
}
.au-quote .bi-quote { display: block; color: var(--gold); font-size: 2.6rem; line-height: 1; margin-block-end: .5rem; }
.au-quote p { margin: 0; color: #4B5563; font-style: italic; font-size: 1.1rem; line-height: 1.75; }
.au-quote-by { margin-block-start: 1rem; color: var(--teal); font-weight: 800; font-size: .92rem; }
.au-trust { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; color: #4B5563; font-size: .9rem; }
.au-trust .bi-shield-lock-fill { color: #198754; }

/* Registration: the hero band, then the form card riding over its edge. */
.au-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(120deg, #0E3B4B 0%, #1B6B78 55%, #2A8E96 100%);
  padding: 4rem 0 7rem;
}
.au-hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1rem; box-sizing: border-box; }
@media (min-width: 992px) { .au-hero-grid { grid-template-columns: 1.15fr 1fr; } }
.au-hero-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 1rem; border-radius: 999px; background: var(--gold); color: #1F2933; font-weight: 800; font-size: .88rem; }
.au-hero-title { margin: 1.1rem 0 1rem; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 900; line-height: 1.35; color: #fff; }
.au-hero-title span { color: var(--gold); }
.au-hero-lead { margin: 0 0 1.5rem; max-width: 60ch; color: rgba(255, 255, 255, .78); font-size: 1.08rem; line-height: 1.9; }
.au-pills { display: grid; gap: .65rem; justify-items: start; }
.au-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.15rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; }
.au-pill .bi { color: var(--gold); font-size: 1.1rem; }
.au-pill strong { font-weight: 800; }
.au-mock { position: relative; display: none; justify-self: center; width: min(100%, 420px); }
@media (min-width: 992px) { .au-mock { display: block; } }
.au-mock::before { content: ""; position: absolute; inset: 22px -14px -26px 14px; border-radius: 22px; background: #4E7A6E; opacity: .65; transform: rotate(-3deg); }
.au-mock-card { position: relative; padding: 1.4rem; border-radius: 22px; background: #fff; color: #1F2933; box-shadow: var(--shadow-lg); transform: rotate(2.5deg); }
.au-mock-head { display: flex; align-items: center; gap: .8rem; padding-block-end: 1rem; margin-block-end: 1rem; border-bottom: 1px solid var(--line); }
.au-mock-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #F1F3F5; color: var(--ink); font-size: 1.2rem; }
.au-mock-head strong { display: block; font-weight: 900; color: var(--ink); }
.au-mock-head small { color: var(--muted); }
.au-mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-block-end: .9rem; }
.au-mock-tile { display: grid; justify-items: center; gap: .4rem; padding: 1rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: #F8FAFB; font-weight: 800; color: var(--ink); font-size: .92rem; }
.au-mock-tile .bi { font-size: 1.6rem; color: var(--teal); }
.au-mock-note { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-radius: 12px; background: #CFF4FC; color: #055160; }
.au-mock-note .bi { font-size: 1.4rem; color: #0DCAF0; }
.au-mock-note strong { display: block; font-weight: 900; }

.au-card-wrap { position: relative; z-index: 1; margin-block: -5rem 3rem; padding-inline: 1rem; }
.au-card {
  width: 100%; max-width: 640px; margin-inline: auto; box-sizing: border-box;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.25rem);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.au-card-title { margin: 0; text-align: center; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; }
.au-card-sub { margin: .35rem 0 1.75rem; text-align: center; color: var(--muted); }
.au-human { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.25rem; border-radius: 14px; background: #F6F7F9; }
.au-human-label { font-weight: 800; color: #374151; }
.au-human-q { padding: .45rem 1rem; border-radius: 10px; background: #212529; color: #fff; font-weight: 900; letter-spacing: .04em; direction: ltr; }
.au-human input { width: 120px; min-height: 46px; padding: .5rem .8rem; border: 1.5px solid #E2E8EE; border-radius: 10px; background: #fff; font: inherit; text-align: center; }
.au-human input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent); }
.au-agree { display: flex; align-items: flex-start; gap: .6rem; color: #4B5563; font-size: .93rem; }
.au-agree input { margin-block-start: .3rem; width: 18px; height: 18px; accent-color: var(--ink); }
.au-agree a { color: #4B5563 !important; text-decoration: underline; }
.au-foot { margin: 1.25rem 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.au-foot a { color: var(--ink) !important; font-weight: 900; text-decoration: none !important; }
.au-note { margin: .75rem 0 0; text-align: center; color: #9CA3AF; font-size: .82rem; }

/* The small identity cards: forgot, reset, check your email, invitation. */
.au-narrow { width: 100%; max-width: 520px; margin-inline: auto; padding: 4rem 1rem; box-sizing: border-box; }
.au-narrow .au-card { padding: 2.5rem 2rem; }
.au-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 22px; background: linear-gradient(135deg, rgba(26, 140, 148, .12), rgba(233, 182, 34, .18)); color: var(--ink); font-size: 2rem; }
.au-stack { display: grid; gap: 1rem; }

/* ===================================================================
   4. The workspace frame
   =================================================================== */

body.pf-frame-workspace, body.pf-frame-admin { background: #F4F6F8; }
.ws-app, .ad-app { display: flex; min-height: 100vh; min-width: 0; }

.ws-side {
  position: sticky; top: 0; flex: none; align-self: flex-start;
  display: flex; flex-direction: column;
  width: 290px; height: 100vh; overflow-y: auto; box-sizing: border-box;
  background:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(175deg, #0A3A4A 0%, #0E4A58 60%, #13606B 100%);
  color: #E6F1F2;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.ws-side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1.1rem .9rem; }
.ws-brand { display: flex; align-items: center; gap: .7rem; color: #fff !important; text-decoration: none !important; min-width: 0; }
.ws-brand-mark { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #FFF7E3; padding: 3px; box-sizing: border-box; object-fit: contain; }
.ws-brand-text { display: grid; line-height: 1.25; min-width: 0; }
.ws-brand-title { font-weight: 900; font-size: 1.12rem; }
.ws-brand-sub { color: var(--gold); font-size: .78rem; font-weight: 700; }
.ws-side-close { display: none; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }

.ws-user { display: flex; align-items: center; gap: .75rem; margin: .25rem 1rem 1rem; padding: .8rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
/* The member's card (2026-10-16): a link to the profile, and what waits for them. */
.ws-user { flex-direction: column; align-items: stretch; gap: .6rem; }
.ws-user-main { display: flex; align-items: center; gap: .75rem; min-width: 0; color: inherit !important; text-decoration: none !important; }
a.ws-user-main:hover .ws-user-name { color: var(--gold); }
.ws-user-alert { display: flex; align-items: center; gap: .45rem; padding: .4rem .65rem; border-radius: 10px; background: var(--gold); color: #0A3A4A !important; font-size: .8rem; font-weight: 800; text-decoration: none !important; }
.ws-user-alert:hover { filter: brightness(1.06); }
.ws-badge, .ad-badge { flex: none; margin-inline-start: auto; min-width: 1.35rem; padding: .05rem .4rem; border-radius: 999px; background: #DC2626; color: #fff; text-align: center; font-size: .7rem; font-weight: 800; line-height: 1.4; }
.ad-badge { display: inline-block; margin-inline-start: .35rem; }
.ws-fold { display: grid; place-items: center; flex: none; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; }
.ws-fold:hover { background: rgba(255, 255, 255, .18); }

.ws-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #0A3A4A; font-weight: 900; font-size: 1.05rem; }
.ws-user-text { display: grid; min-width: 0; line-height: 1.35; }
.ws-user-name { font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-user-role { font-size: .76rem; color: rgba(230, 241, 242, .65); }

.ws-nav { flex: 1 0 auto; padding: 0 .75rem 1rem; }
.ws-nav-title { margin: 1.1rem .6rem .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(230, 241, 242, .5); }
.ws-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ws-link, .ws-product-head {
  display: flex; align-items: center; gap: .7rem; width: 100%; box-sizing: border-box;
  padding: .62rem .75rem; border-radius: 11px;
  color: #DCEBEC !important; text-decoration: none !important; font-weight: 700; font-size: .93rem;
  cursor: pointer; transition: background .15s, color .15s;
}
.ws-link .bi { font-size: 1.08rem; opacity: .85; width: 1.3rem; text-align: center; }
.ws-link:hover, .ws-product-head:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.ws-link[aria-current="page"] { background: #fff; color: var(--ink) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ws-link[aria-current="page"] .bi { color: var(--teal); opacity: 1; }
.ws-link--locked { opacity: .55; }
.ws-lock { margin-inline-start: auto; font-size: .8rem !important; }

.ws-product > summary { list-style: none; }
.ws-product > summary::-webkit-details-marker { display: none; }
.ws-product-head.is-active { background: rgba(233, 182, 34, .14); color: #fff !important; }
.ws-product-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .1); font-size: 1rem; }
.ws-product-label { flex: 1; min-width: 0; }
.ws-chevron { font-size: .75rem; opacity: .6; transition: transform .2s; }
.ws-product[open] .ws-chevron { transform: rotate(180deg); }
.ws-product-items { list-style: none; margin: .2rem 0 .5rem; padding: 0 0 0; padding-inline-start: 2.6rem; display: grid; gap: 1px; position: relative; }
.ws-product-items::before { content: ""; position: absolute; inset-inline-start: 1.65rem; top: .3rem; bottom: .3rem; width: 1px; background: rgba(255, 255, 255, .14); }
.ws-sublink {
  display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: 9px;
  color: rgba(230, 241, 242, .78) !important; text-decoration: none !important; font-size: .87rem; font-weight: 600;
}
.ws-sublink:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.ws-sublink[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff !important; font-weight: 800; }
.ws-sublink span:first-child, .ws-sublink--page span { flex: 1; min-width: 0; }
.ws-sublink--page { color: rgba(233, 182, 34, .9) !important; }
.ws-sublink--page .bi { font-size: .85rem; }
.ws-count { flex: none; min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .1); text-align: center; font-size: .72rem; font-weight: 800; }

.ws-side-foot { display: grid; gap: .25rem; padding: .9rem 1rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.ws-foot-link { display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; border-radius: 9px; color: rgba(230, 241, 242, .7) !important; font-size: .85rem; text-decoration: none !important; }
.ws-foot-link:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }

.ws-main, .ad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-topbar, .ad-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem;
  min-height: 64px; padding: .6rem 1.5rem; box-sizing: border-box;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ws-topbar-title, .ad-topbar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; color: var(--ink); font-size: 1.05rem; }
.ad-topbar-title .bi { color: var(--teal); margin-inline-end: .3rem; }
.ws-topbar-actions { display: flex; align-items: center; gap: .45rem; }
.ws-chip-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem .85rem;
  border: 1px solid #DCE3E8; border-radius: 999px; background: #fff;
  color: var(--ink) !important; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none !important; cursor: pointer;
}
.ws-chip-btn:hover { border-color: var(--teal); color: var(--teal) !important; }
.ws-chip-btn--dark { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ws-chip-btn--dark:hover { background: var(--teal); border-color: var(--teal); color: #fff !important; }
.ws-burger { display: none; width: 42px; height: 42px; border: 1px solid #DCE3E8; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

.ws-stage, .ad-stage { flex: 1; min-width: 0; outline: none; }
.ws-stage > .pf-screen, .ad-stage > .pf-screen { max-width: 1280px; padding: 1.75rem 1.75rem 3rem; }

.ws-overlay { position: fixed; inset: 0; z-index: 39; background: rgba(4, 22, 29, .5); }

@media (max-width: 991.98px) {
  .ws-side, .ad-rail {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40; height: 100vh;
    transform: translateX(calc(var(--pf-flip, 1) * 100%)); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  [dir="ltr"] .ws-side, [dir="ltr"] .ad-rail { --pf-flip: -1; }
  .ws-side.is-open, .ad-rail.is-open { transform: none; }
  .ws-side-close { display: grid; place-items: center; }
  .ws-fold { display: none; }
  .ws-burger { display: grid; place-items: center; }
  .ws-topbar, .ad-topbar { padding-inline: 1rem; }
  .ws-chip-btn span { display: none; }
  .ws-stage > .pf-screen, .ad-stage > .pf-screen { padding: 1.25rem 1rem 2.5rem; }
}
/* Without JavaScript the drawer cannot open: the menu sits above the stage. */
@media (max-width: 991.98px) {
  html.no-js .ws-app, html.no-js .ad-app { flex-direction: column; }
  html.no-js .ws-side, html.no-js .ad-rail { position: static; transform: none; width: 100%; height: auto; }
}

/* Workspace home — the stage's own furniture. */
.ws-hello {
  position: relative; overflow: hidden; display: grid; gap: 1.25rem; align-items: center;
  margin-block-end: 1.5rem; padding: 1.75rem 2rem; border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(115deg, #0A3A4A 0%, #16707A 70%, #1F8C93 100%);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .ws-hello { grid-template-columns: 1fr auto; } }
.ws-hello-kicker { margin: 0; color: var(--gold); font-weight: 800; font-size: .9rem; }
.ws-hello h1 { margin: .25rem 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: #fff; }
.ws-hello p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 62ch; }
.ws-hello-stats { display: flex; flex-wrap: wrap; gap: .75rem; }
.ws-stat { flex: 1 1 96px; min-width: 96px; padding: .85rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.ws-stat strong { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.2; color: #fff; }
.ws-stat span { font-size: .8rem; color: rgba(255, 255, 255, .75); }

.ws-section { margin-block: 2rem 0; }
.ws-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-block-end: .9rem; }
.ws-section-title { margin: 0; display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.2rem; font-weight: 900; }
.ws-section-title .bi { color: var(--teal); }
.ws-section-lead { margin: -.4rem 0 1rem; color: var(--muted); font-size: .9rem; }

.ws-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ws-grid--units { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.ws-product-card {
  position: relative; display: flex; flex-direction: column; gap: .85rem; min-width: 0;
  padding: 1.35rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ws-product-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.ws-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3E3E5; }
.ws-pc-head { display: flex; align-items: center; gap: .85rem; color: var(--ink) !important; text-decoration: none !important; }
.ws-pc-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, rgba(26, 140, 148, .12), rgba(233, 182, 34, .2)); font-size: 1.6rem; }
.ws-pc-name { font-size: 1.08rem; font-weight: 900; line-height: 1.35; }
.ws-pc-types { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ws-pc-types a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border-radius: 10px; background: #F6F8F9; color: #374151 !important; font-size: .88rem; font-weight: 700; text-decoration: none !important; }
.ws-pc-types a:hover { background: #EAF4F5; color: var(--ink) !important; }
.ws-pc-types span:last-child { color: var(--teal); font-weight: 900; }
.ws-pc-foot { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block-start: .75rem; border-top: 1px solid #F0F2F5; color: var(--muted); font-size: .8rem; }
.ws-progress { flex: 1; height: 6px; border-radius: 999px; background: #EEF1F4; overflow: hidden; }
.ws-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); }

.ws-locked-card { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--r); border: 1.5px dashed #D5DCE3; background: rgba(255, 255, 255, .6); color: var(--muted) !important; text-decoration: none !important; }
.ws-locked-card:hover { border-color: var(--gold); background: #fff; }
.ws-locked-card strong { display: block; color: var(--ink); }

/* A unit as a card. */
.ws-unit {
  position: relative; display: flex; flex-direction: column; gap: .45rem; min-width: 0; height: 100%; box-sizing: border-box;
  padding: 1.1rem 1.15rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  border-inline-start: 4px solid var(--teal);
  color: #1F2933 !important; text-decoration: none !important; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.ws-unit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ws-unit--interactive { border-inline-start-color: var(--gold); }
.ws-unit-title { font-weight: 800; color: var(--ink); line-height: 1.5; }
.ws-unit-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.ws-unit-meta { margin-block-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-block-start: .45rem; color: var(--muted); font-size: .78rem; }
.ws-unit-meta .bi { margin-inline-end: .15rem; }

.ws-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 1.25rem; }
.ws-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.05rem; border-radius: 999px; background: #fff; border: 1px solid #DCE3E8; color: #374151 !important; font-weight: 800; font-size: .88rem; text-decoration: none !important; }
.ws-tab:hover { border-color: var(--teal); }
.ws-tab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ws-tab .ws-count { background: rgba(0, 0, 0, .08); color: inherit; }
.ws-tab[aria-current="page"] .ws-count { background: rgba(255, 255, 255, .2); }

.ws-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.ws-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid #CFE3E5; background: #fff; color: var(--teal) !important; font-size: .85rem; font-weight: 700; text-decoration: none !important; }
.ws-tag:hover, .ws-tag[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff !important; }
/* The topics, folded (2026-10-13). */
.ws-tags-more { margin-top: .6rem; }
.ws-tags-more > summary { list-style: none; display: inline-flex; cursor: pointer; color: var(--teal); font-size: .85rem; font-weight: 700; }
.ws-tags-more > summary::-webkit-details-marker { display: none; }
.ws-tags-more > .ws-tags { margin-top: .6rem; }
.ws-tags-more-close, .ws-tags-more[open] .ws-tags-more-open { display: none; }
.ws-tags-more[open] .ws-tags-more-close { display: inline; }

.ws-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-start: 1.5rem; color: var(--muted); font-size: .9rem; }

/* ===================================================================
   5. The administration frame — the legacy dashboard's rail
   =================================================================== */

.ad-rail {
  position: sticky; top: 0; flex: none; align-self: flex-start;
  display: flex; flex-direction: column;
  width: 268px; height: 100vh; overflow-y: auto; box-sizing: border-box;
  background: #1F2937; color: #CBD5E1;
  border-radius: 0; transition: width .2s ease;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.ad-rail-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ad-brand { display: flex; align-items: center; gap: .65rem; color: #fff !important; text-decoration: none !important; min-width: 0; }
.ad-brand-mark { flex: none; border-radius: 9px; background: #FFF7E3; padding: 3px; box-sizing: border-box; }
.ad-brand-title { font-weight: 900; }
.ad-fold { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #2563EB; color: #fff; cursor: pointer; font-size: .8rem; }
.ad-nav { padding: .75rem .6rem 1.5rem; }
.ad-group-title { margin: 1rem .65rem .35rem; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748B; }
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ad-link { overflow: hidden;
  display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 10px;
  color: #CBD5E1 !important; text-decoration: none !important; font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ad-link > .bi:first-child, .ad-emoji { flex: none; width: 1.5rem; text-align: center; font-size: 1.12rem; }
.ad-link:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }
.ad-link[aria-current="page"] { background: #2563EB; color: #fff !important; }
.ad-link.is-active { color: #fff !important; background: rgba(255, 255, 255, .05); }
.ad-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ad-group > summary { list-style: none; }
.ad-group > summary::-webkit-details-marker { display: none; }
.ad-chevron { margin-inline-start: auto; font-size: .7rem; opacity: .6; transition: transform .2s; }
.ad-group[open] > summary .ad-chevron { transform: rotate(180deg); }
.ad-sub { list-style: none; margin: .15rem 0 .4rem; padding: 0; padding-inline-start: 2.4rem; display: grid; gap: 1px; }
.ad-sublink { display: block; padding: .38rem .6rem; border-radius: 8px; color: #94A3B8 !important; font-size: .84rem; text-decoration: none !important; }
.ad-sublink:hover { color: #fff !important; background: rgba(255, 255, 255, .05); }
.ad-sublink[aria-current="page"] { color: #fff !important; background: rgba(37, 99, 235, .35); font-weight: 800; }
.ad-sublink i { margin-inline-end: .3rem; opacity: .75; }
/* The tools' fold (2026-10-13): a divider above it, each tool a fold of its own. */
.ad-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: .7rem .65rem; }
.ad-sub--groups { padding-inline-start: 1.6rem; }
.ad-sub--deep { padding-inline-start: 1.9rem; margin-block: .1rem .3rem; }
.ad-tool-head { display: flex; align-items: center; gap: .45rem; cursor: pointer; color: #CBD5E1 !important; font-weight: 700; }
.ad-tool-head.is-active { color: #fff !important; }
.ad-tool-head .ad-emoji { width: 1.2rem; font-size: 1rem; }

@media (min-width: 992px) {
  .ws-app.is-folded .ws-side { width: 78px; }
  .ws-app.is-folded .ws-side-head { flex-direction: column; padding-inline: .5rem; }
  .ws-app.is-folded .ws-foot-link { font-size: 0; justify-content: center; }
  .ws-app.is-folded .ws-brand-text, .ws-app.is-folded .ws-user-text, .ws-app.is-folded .ws-user-alert span,
  .ws-app.is-folded .ws-nav-title, .ws-app.is-folded .ws-product-label, .ws-app.is-folded .ws-chevron,
  .ws-app.is-folded .ws-product-items, .ws-app.is-folded .ws-guest-join, .ws-app.is-folded .ws-lock,
  .ws-app.is-folded .ws-link > span:not(.ws-product-icon):not(.ws-badge) { display: none; }
  .ws-app.is-folded .ws-user { margin-inline: .5rem; padding: .5rem; align-items: center; }
  .ws-app.is-folded .ws-user-alert { justify-content: center; padding: .35rem; }
  .ws-app.is-folded .ws-link, .ws-app.is-folded .ws-product-head { justify-content: center; padding-inline: 0; position: relative; }
  .ws-app.is-folded .ws-badge { position: absolute; inset-block-start: 2px; inset-inline-end: 6px; }
  .ws-app.is-folded .ws-foot-link .bi { font-size: 1.1rem; }
  .ws-app.is-folded .ws-fold .bi { transform: rotate(180deg); }
  .ad-app.is-folded .ad-rail { width: 76px; }
  .ad-app.is-folded .ad-label, .ad-app.is-folded .ad-sub, .ad-app.is-folded .ad-group-title, .ad-app.is-folded .ad-divider { display: none; }
  .ad-app.is-folded .ad-rail-head { flex-direction: column; }
  .ad-app.is-folded .ad-link { justify-content: center; padding-inline: 0; }
  .ad-app.is-folded .ad-fold .bi { transform: rotate(180deg); }
}

/* Dashboard stat cards — the legacy dashboard.php tiles. */
.ad-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); margin-block-end: 1.5rem; }
.ad-stat {
  position: relative; display: grid; gap: .35rem; padding: 1.2rem 1.3rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.ad-stat-head { display: flex; align-items: center; gap: .55rem; color: #4B5563; font-weight: 700; font-size: .92rem; }
.ad-stat-head .bi { font-size: 1.5rem; }
.ad-stat-value { font-size: 2.1rem; font-weight: 900; color: #111827; line-height: 1.2; }
.ad-stat-sub { color: var(--muted); font-size: .85rem; }
.ad-stat--accent { border-inline-start: 4px solid #22C55E; }
.ad-stat--violet { border-inline-start: 4px solid #8B5CF6; }
.ad-stat--blue .bi { color: #2563EB; } .ad-stat--teal .bi { color: var(--teal); } .ad-stat--gold .bi { color: #D9A10B; } .ad-stat--green .bi { color: #16A34A; } .ad-stat--sky .bi { color: #0EA5E9; } .ad-stat--violet .bi { color: #8B5CF6; }

/* Admin screens sit on a light grey canvas: their cards read as panels. */
.pf-frame-admin .pf-screen-title::before { content: none; }

/* ===================================================================
   6. Shared touches
   =================================================================== */

.pf-frame-workspace .pf-content, .pf-frame-admin .pf-content { background: transparent; }
.pf-kicker { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal); font-weight: 800; font-size: .85rem; }
.pf-muted { color: var(--muted); }

/* Links inside screens: no underline at rest, as the legacy cards; a hover shows it. */
.ws-stage a:not(.pf-btn), .ad-stage a:not(.pf-btn), .pf-screen a:not(.pf-btn) { text-decoration: none; }
.ws-stage a:not(.pf-btn):hover, .ad-stage a:not(.pf-btn):hover, .pf-screen a:not(.pf-btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.ws-stage a.ws-unit:hover, .ws-stage a.ws-tag:hover, .ws-stage a.ws-tab:hover, .ws-stage .ws-pc-head:hover, .ws-stage .ws-pc-types a:hover, .ws-stage a.ws-locked-card:hover { text-decoration: none; }

/* The workspace home opens on its welcome band: the screen heading would repeat it. */
.pf-screen:has(> .pf-screen-body > .ws-hello:first-child) > .pf-screen-head { display: none; }

/* Form controls inside any screen — the legacy's rounded, soft fields. */
.pf-screen :is(input:is([type="text"], [type="email"], [type="search"], [type="url"], [type="number"], [type="password"], [type="date"], [type="datetime-local"], [type="tel"], :not([type])), select, textarea):not(.pf-field *):not(.au-human input) {
  box-sizing: border-box; min-height: 44px; padding: .55rem .85rem;
  border: 1.5px solid #E2E8EE; border-radius: 12px; background: #FCFCFC; color: #1F2933;
  font: inherit; font-size: .95rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.pf-screen textarea:not(.pf-field *) { line-height: 1.7; }
.pf-screen :is(input, select, textarea):not(.pf-field *):not([type="checkbox"]):not([type="radio"]):focus {
  outline: none; background: #fff; border-color: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent);
}
.pf-screen :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ink); }
.pf-screen label { color: #374151; }

/* Overview: the range switch, the curve, the panels. */
.ad-range { display: inline-flex; border: 1.5px solid #2563EB; border-radius: 10px; overflow: hidden; }
.ad-range a { padding: .4rem .95rem; color: #2563EB !important; font-weight: 800; font-size: .9rem; text-decoration: none !important; }
.ad-range a[aria-current="page"] { background: #2563EB; color: #fff !important; }
.ad-chart-card { margin-block-end: 1.5rem; }
.ad-chart-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: flex-end; margin-block-end: .75rem; color: #4B5563; font-size: .88rem; }
.ad-chart-legend i { display: inline-block; width: 28px; height: 12px; border-radius: 3px; vertical-align: middle; margin-inline-end: .35rem; }
.ad-chart-body { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.ad-chart-y { display: flex; flex-direction: column; justify-content: space-between; height: 260px; color: #6B7280; font-size: .78rem; text-align: right; transform: translateY(-.5em); }
.ad-chart-plot { position: relative; min-width: 0; padding-block-end: 1.8rem; }
.ad-chart-plot svg { display: block; width: 100%; height: 260px; }
.ad-chart-x { position: absolute; inset-inline: 0; bottom: 0; height: 1.5rem; color: #6B7280; font-size: .78rem; }
.ad-chart-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ad-chart-x span:first-child { transform: none; }
.ad-chart-x span:last-child { transform: translateX(-100%); }
.ad-panels { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.ad-dl { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; margin: 0; font-size: .92rem; }
.ad-dl dt { color: #6B7280; }
.ad-dl dd { margin: 0; font-weight: 800; color: #111827; text-align: end; }
.ad-h3 { margin: 1.1rem 0 .5rem; font-size: .9rem; font-weight: 800; color: var(--ink); }
.ad-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: #6B7280; font-size: .82rem; }
.ad-feed li { display: flex; gap: .6rem; justify-content: space-between; padding: .35rem .5rem; border-radius: 8px; background: #F8FAFB; }

/* ===================================================================
   7. The products catalogue, a product, its trial, the join page
      (platform overrides of the core's workspace/products, product,
      try, partials/trial and join — batch 5y). Prefixes: pc- tr- jn-.
      Every one of these screens opens on its own hero, so the screen
      heading would repeat it: hidden, as on the workspace home.
   =================================================================== */

.pf-screen:has(> .pf-screen-body > :is(.pc-hero, .jn-hero):first-child) > .pf-screen-head { display: none; }

/* The hero band — the legacy home's dark teal, its rings and dot grain. */
.pc-hero, .jn-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 1.5rem; align-items: center; min-width: 0;
  margin-block-end: 1.5rem; padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.25rem, 4vw, 2.75rem);
  border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 12% 18%, rgba(26, 140, 148, .45), transparent 52%),
    radial-gradient(circle at 88% 10%, rgba(233, 182, 34, .22), transparent 46%),
    linear-gradient(160deg, var(--ink) 0%, #072832 62%, #05161C 100%);
  box-shadow: var(--shadow-lg);
}
.pc-hero::before, .jn-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 420px; height: 420px; inset-block-start: -210px; inset-inline-end: -150px; border-radius: 50%;
  border: 22px solid rgba(26, 140, 148, .22); box-shadow: inset 0 0 0 10px rgba(233, 182, 34, .12);
}
.pc-hero::after, .jn-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 380px; height: 380px; inset-block-end: -230px; inset-inline-start: -120px; border-radius: 50%;
  border: 22px solid rgba(233, 182, 34, .14);
}
@media (min-width: 900px) {
  .pc-hero { grid-template-columns: 1fr auto; }
  .pc-hero--product { grid-template-columns: 1fr minmax(260px, 320px); }
  .jn-hero { grid-template-columns: 1.2fr minmax(300px, 380px); gap: 2.5rem; }
}
.pc-hero-text { min-width: 0; }
.pc-kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  padding: .32rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9); font-size: .86rem; font-weight: 800;
}
.pc-kicker .bi { color: var(--gold); }
.pc-hero-title { margin: .85rem 0 .5rem; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.pc-hero-lead { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.9; }

.pc-hero-stats { display: flex; flex-wrap: wrap; gap: .75rem; }
.pc-stat {
  display: grid; justify-items: center; gap: .1rem; min-width: 118px; padding: 1rem 1.1rem; box-sizing: border-box;
  border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); text-align: center;
}
.pc-stat .bi { color: var(--gold); font-size: 1.35rem; }
.pc-stat strong { color: #fff; font-size: 1.75rem; font-weight: 900; line-height: 1.25; }
.pc-stat span { color: rgba(255, 255, 255, .72); font-size: .8rem; }
.pc-stat--gold { background: rgba(233, 182, 34, .16); border-color: rgba(233, 182, 34, .4); }

/* The three steps under the catalogue hero. */
.pc-steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: none; }
.pc-step {
  display: flex; align-items: flex-start; gap: .85rem; min-width: 0;
  padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pc-step-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, rgba(26, 140, 148, .14), rgba(233, 182, 34, .22)); color: var(--ink); font-size: 1.2rem; }
.pc-step-text { display: grid; gap: .15rem; min-width: 0; }
.pc-step-text strong { color: var(--ink); font-weight: 900; }
.pc-step-n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-inline-end: .2rem; border-radius: 50%; background: var(--gold); color: #1F2933; font-size: .78rem; vertical-align: 1px; }
.pc-step-text > span { color: var(--muted); font-size: .88rem; line-height: 1.7; }

.pc-grid-head { margin-block-start: .5rem; }

/* Product cards — the legacy home's tool cards: accent bar at the inline start, 900 name, meta footer. */
.pc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 420px) { .pc-grid { grid-template-columns: minmax(0, 1fr); } }
.pc-card {
  --pc-accent: var(--teal);
  position: relative; display: flex; flex-direction: column; gap: .85rem; min-width: 0; overflow: hidden;
  padding: 1.35rem 1.35rem 1.1rem; padding-inline-start: 1.6rem; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .92));
  border: 1px solid rgba(10, 58, 74, .1); box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pc-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--pc-accent); }
.pc-card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; width: 180px; height: 180px; border-radius: 50%;
  inset-block-start: -90px; inset-inline-end: -70px;
  background: radial-gradient(circle, color-mix(in srgb, var(--pc-accent) 16%, transparent), transparent 70%);
}
.pc-card > * { position: relative; z-index: 1; }
.pc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15, 23, 42, .14); border-color: color-mix(in srgb, var(--pc-accent) 35%, transparent); }
.pc-card--gold { --pc-accent: var(--gold); }
.pc-card--ink { --pc-accent: var(--ink); }

.pc-icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(26, 140, 148, .14), rgba(233, 182, 34, .24));
  box-shadow: inset 0 0 0 1px rgba(10, 58, 74, .06); font-size: 1.75rem; line-height: 1;
}
.pc-icon--lg { width: 76px; height: 76px; border-radius: 22px; font-size: 2.4rem; background: rgba(255, 255, 255, .95); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.pc-card-head { display: flex; align-items: center; gap: .9rem; min-width: 0; color: var(--ink) !important; text-decoration: none !important; }
.pc-card-titles { display: grid; gap: .15rem; min-width: 0; }
.pc-card-name { font-size: 1.15rem; font-weight: 900; line-height: 1.4; color: var(--ink); }
.pc-card-head:hover .pc-card-name { color: var(--teal); }
.pc-card-total { color: var(--muted); font-size: .8rem; font-weight: 700; }
.pc-card-text { margin: 0; color: #374151; font-size: .93rem; line-height: 1.85; }

.pc-types { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pc-types li, .pc-types a {
  display: flex; align-items: center; gap: .55rem; min-width: 0;
  padding: .45rem .7rem; border-radius: 10px; background: #F6F8F9;
  color: #374151 !important; font-size: .87rem; font-weight: 700; text-decoration: none !important;
}
.pc-types--links li { padding: 0; background: none; }
.pc-types--links a { flex: 1; }
.pc-types--links a:hover { background: #EAF4F5; color: var(--ink) !important; }
.pc-types .bi { flex: none; color: var(--teal); }
.pc-types .bi-lightning-charge-fill { color: #D9A10B; }
.pc-types li > span:not(.pc-type-n), .pc-types a > span:not(.pc-type-n) { flex: 1; min-width: 0; }
.pc-type-n { flex: none; min-width: 2rem; padding: .05rem .5rem; border-radius: 999px; background: #fff; border: 1px solid #DCE8EA; text-align: center; color: var(--teal); font-weight: 900; font-size: .8rem; }

.pc-card-foot {
  margin-block-start: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding-block-start: .85rem; border-top: 1px solid rgba(10, 58, 74, .1);
}
.pc-free { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.pc-free .bi { color: var(--gold); }
.pc-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink) !important; font-weight: 900; font-size: .92rem; text-decoration: none !important; }
.pc-more .bi { transition: transform .18s; }
.pc-more:hover { color: var(--teal) !important; }
.pc-card:hover .pc-more .bi { transform: translateX(calc(var(--pc-dir, -1) * 4px)); }
[dir="ltr"] .pc-card { --pc-dir: 1; }

/* The product page: crumb, identity, pills, doors. */
.pc-crumb { display: inline-flex; align-items: center; gap: .4rem; margin-block-end: 1rem; color: rgba(255, 255, 255, .72) !important; font-size: .88rem; font-weight: 700; text-decoration: none !important; }
.pc-crumb:hover { color: var(--gold) !important; }
.pc-hero-id { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.pc-hero-id .pc-hero-title { margin: .5rem 0 0; }
.pc-hero--product .pc-hero-lead { margin-block-start: 1rem; }
.pc-hero-pills { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-hero-pills li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: rgba(255, 255, 255, .88);
}
.pc-hero-pills .bi { color: var(--gold); }
.pc-hero-pills strong { color: #fff; font-weight: 900; }
.pc-doors {
  display: grid; gap: .7rem; min-width: 0; padding: 1.25rem; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
}
.pc-doors .pf-btn { white-space: normal; text-align: center; }
.pc-doors .pf-btn--secondary { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.pc-doors .pf-btn--secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.pc-doors-note { display: flex; gap: .45rem; margin: .15rem 0 0; color: rgba(255, 255, 255, .72); font-size: .82rem; line-height: 1.7; }
.pc-doors-note .bi { color: var(--gold); margin-block-start: .15rem; }

.pc-about { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .pc-about { grid-template-columns: 1.5fr 1fr; } }
.pc-h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; color: var(--ink); font-size: 1.08rem; font-weight: 900; }
.pc-h3 .bi { color: var(--teal); }
.pc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.pc-checks li { display: flex; align-items: flex-start; gap: .6rem; color: #374151; line-height: 1.8; }
.pc-checks .bi { flex: none; margin-block-start: .3rem; color: var(--teal); }
.pc-total { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; font-weight: 700; text-align: end; }
.pc-type-section { scroll-margin-block-start: 5rem; }

/* The closing call — the trial's pitch on a warm band. */
.pc-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-block-start: 2.25rem;
  padding: 1.25rem 1.5rem; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(233, 182, 34, .16), rgba(26, 140, 148, .1)), #fff;
  border: 1px solid #EBDDB5; box-shadow: var(--shadow-sm);
}
.pc-cta p { flex: 1 1 280px; margin: 0; color: #1F2933; font-weight: 700; line-height: 1.8; }
.pc-cta-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--gold); font-size: 1.3rem; }
.pc-cta--tight { margin-block-start: 1.5rem; }

/* The trial pop-up. */
.pc-dialog {
  width: min(100% - 2rem, 1100px); max-width: none; max-height: calc(100vh - 2rem); margin: auto; padding: 0;
  border: 0; border-radius: var(--r-xl); background: #F4F6F8; color: #1F2933;
  box-shadow: 0 40px 120px rgba(4, 22, 29, .45); overflow: hidden;
}
.pc-dialog[open] { display: flex; flex-direction: column; }
.pc-dialog::backdrop { background: rgba(4, 22, 29, .62); backdrop-filter: blur(3px); }
.pc-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .9rem .7rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.pc-dialog-title { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 900; }
.pc-dialog-title .bi { color: var(--teal); }
.pc-dialog-bar form { margin: 0; }
.pc-dialog-close { min-height: 38px; padding: .35rem .9rem; }
.pc-dialog-body { overflow-y: auto; padding: 1.25rem; min-height: 0; }

/* The trial workspace: a small copy of the workspace frame. */
.tr-wrap { min-width: 0; }
.tr-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; margin-block-end: 1rem;
  padding: 1rem 1.15rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tr-badge { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .15rem .65rem; border-radius: 999px; background: var(--gold); color: #1F2933; font-size: .76rem; font-weight: 800; }
.tr-name { margin: .3rem 0 0; color: var(--ink); font-size: 1.2rem; font-weight: 900; }
.tr-runs { display: flex; align-items: flex-start; gap: .5rem; flex: 1 1 320px; max-width: 520px; margin: 0; padding: .65rem .85rem; border-radius: 12px; background: #EEF7FB; color: #164E63; font-size: .85rem; line-height: 1.7; }
.tr-runs .bi { flex: none; margin-block-start: .2rem; color: var(--teal); }
.tr-runs.is-out { background: #FFF8E6; color: #713F12; }
.tr-runs.is-out .bi { color: #D9A10B; }
.tr-body { display: grid; gap: 1rem; min-width: 0; }
@media (min-width: 768px) { .tr-body { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.tr-side {
  min-width: 0; padding: .9rem .7rem; border-radius: var(--r-lg); color: #E6F1F2;
  background:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(175deg, #0A3A4A 0%, #0E4A58 60%, #13606B 100%);
}
@media (min-width: 768px) { .tr-side { position: sticky; top: 0; } }
.tr-side-title { margin: 0 .5rem .5rem; color: rgba(230, 241, 242, .55); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.tr-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 768px) { .tr-side ul { flex-direction: column; } }
.tr-side a { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 10px; color: #DCEBEC !important; font-size: .9rem; font-weight: 700; text-decoration: none !important; }
.tr-side a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.tr-side .bi { color: var(--gold); }
.tr-stage { display: grid; gap: 1.5rem; min-width: 0; }
.tr-section { min-width: 0; scroll-margin-block-start: 1rem; }
.tr-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-block-end: .75rem; }
.tr-section-head h3 { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 900; }
.tr-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tr-page { padding: 1rem; border-radius: var(--r-xl); background: #EEF1F4; border: 1px solid var(--line); }
.pf-frame-workspace .tr-page { background: #E9EDF1; }
.tr-back { margin: 1.25rem 0 0; }
.tr-back a { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal) !important; font-weight: 800; }

/* The join page: the legacy register.php hero, the doors on a card beside it. */
.jn-hero-text { min-width: 0; }
.jn-title { margin: 1rem 0 .6rem; color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 900; line-height: 1.3; }
.jn-lead { margin: 0 0 1.25rem; max-width: 60ch; color: rgba(255, 255, 255, .8); font-size: 1.08rem; line-height: 1.9; }
.jn-from { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: 14px; background: rgba(233, 182, 34, .16); border: 1px solid rgba(233, 182, 34, .42); color: #fff; font-weight: 700; line-height: 1.7; }
.jn-from-icon { flex: none; font-size: 1.5rem; }
.jn-what { margin: 0 0 .75rem; color: var(--gold); font-weight: 800; }
.jn-hero .au-pill { max-width: 100%; box-sizing: border-box; line-height: 1.6; }
.jn-hero .au-pills { list-style: none; margin: 0; padding: 0; }
.jn-card {
  position: relative; min-width: 0; padding: 2rem clamp(1.25rem, 3vw, 2rem) 1.5rem; border-radius: var(--r-xl);
  background: #fff; color: #1F2933; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.jn-card .au-icon { margin-block-end: .9rem; }
.jn-card-title { margin: 0 0 1.25rem; color: var(--ink); font-size: 1.5rem; font-weight: 900; }
.jn-doors { display: grid; gap: .7rem; }
.jn-doors .pf-btn { white-space: normal; }
.jn-keep { display: flex; justify-content: center; gap: .45rem; margin: 1rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.jn-keep .bi { color: var(--teal); margin-block-start: .2rem; }
.jn-trust { margin-block-start: 1rem; padding-block-start: 1rem; border-top: 1px solid var(--line); font-size: .84rem; gap: 1rem; }
.jn-products { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 420px) { .jn-products { grid-template-columns: minmax(0, 1fr); } }
.jn-product {
  display: flex; align-items: flex-start; gap: .85rem; min-width: 0; padding: 1rem 1.1rem;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-inline-start: 4px solid var(--teal);
}
.jn-product.is-from { border-inline-start-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 182, 34, .25), var(--shadow-sm); }
.jn-product .pc-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.5rem; }
.jn-product-name { display: block; color: var(--ink); font-weight: 900; }
.jn-product-text { display: block; margin-block-start: .2rem; color: var(--muted); font-size: .87rem; line-height: 1.7; }

@media (max-width: 600px) {
  .pc-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .pc-stat { min-width: 0; padding: .75rem .4rem; }
  .pc-stat strong { font-size: 1.3rem; }
  .pc-hero-id { align-items: flex-start; }
  .pc-icon--lg { width: 60px; height: 60px; font-size: 1.9rem; border-radius: 18px; }
  .pc-dialog { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .pc-dialog-body { padding: .85rem; }
}
.jn-hero .au-pill { border-radius: 16px; align-items: flex-start; }
.jn-hero .au-pill .bi { margin-block-start: .2rem; }

/* The rail's phone drawer. Restated after section 5: the rail's base rule
   (position: sticky) comes later in this file and would otherwise win. */
@media (max-width: 991.98px) {
  .ad-rail {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40; height: 100vh;
    transform: translateX(calc(var(--pf-flip, 1) * 100%)); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .ad-rail.is-open { transform: none; }
  html.no-js .ad-rail { position: static; transform: none; width: 100%; height: auto; }
}

/* Tracks (المسارات) on the catalogue — 2026-10-13. */
.pc-tracks { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.pc-track { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border, #E2E8F0); background: #fff; color: var(--brand-secondary, #0A3A4A) !important; font-weight: 700; font-size: .9rem; text-decoration: none !important; }
.pc-track:hover { border-color: var(--brand-primary, #188283); }
.pc-track.is-on { background: var(--brand-secondary, #0A3A4A); border-color: var(--brand-secondary, #0A3A4A); color: #fff !important; }
.pc-track-n { font-size: .75rem; opacity: .7; }
.pc-track-blurb { margin: -.25rem 0 1rem; color: var(--text-muted, #475569); }
.pc-card-tracks { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; }
.pc-card-track { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(24, 130, 131, .08); color: var(--brand-primary, #188283) !important; font-size: .75rem; font-weight: 700; text-decoration: none !important; }

/* The guest workspace — 2026-10-13. */
.ws-guest-join { margin: 0 .75rem .75rem; padding: .75rem; border-radius: 12px; background: rgba(233, 182, 34, .12); color: #F8FAFC; font-size: .85rem; }
.ws-guest-join p { margin: 0 0 .6rem; line-height: 1.6; }
.ws-guest-band { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(233, 182, 34, .45); background: #FFF8E6; color: var(--brand-secondary, #0A3A4A); }
.ws-guest-band > i { font-size: 1.4rem; color: #B7860B; }
.ws-guest-band p { flex: 1 1 18rem; margin: 0; line-height: 1.7; }
/* Units on a product page: the open ones marked, the members' ones locked. */
.ws-unit--locked { cursor: not-allowed; opacity: .78; background: #F8FAFC; }
.ws-unit--locked .ws-unit-title::before { content: none; }
.ws-unit-lock { color: #64748B; }
.pc-show-all { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 800; }

/* The plans page — 2026-10-13. */
.pl-card { display: flex; flex-direction: column; }
.pl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.pl-price { margin: .75rem 0 .5rem; color: var(--brand-secondary, #0A3A4A); }
.pl-price strong { font-size: 2rem; font-weight: 900; }
.pl-cur { font-weight: 800; }
.pl-per { color: var(--text-muted, #475569); font-size: .9rem; }
.pl-sub { margin: .9rem 0 .35rem; font-size: .8rem; font-weight: 800; color: var(--text-muted, #475569); }
.pl-products { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; }
.pl-products li { padding: .2rem .6rem; border-radius: 999px; background: rgba(24, 130, 131, .08); }
.pl-foot { margin-top: auto; padding-top: 1rem; }

/* The learning profile as the member's page (2026-10-16). */
.pr-top { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 1.5rem; }
.pr-card { min-width: 0; padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid #E6ECEF; box-shadow: 0 2px 10px rgba(10, 58, 74, .05); }
.pr-card-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .8rem; font-size: 1rem; font-weight: 800; color: var(--ink); }
.pr-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .9rem; margin: 0; font-size: .88rem; }
.pr-facts dt { color: #64748B; }
.pr-facts dd { margin: 0; min-width: 0; }
.pr-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-sub { margin: .9rem 0 .4rem; font-size: .82rem; font-weight: 700; color: #475569; }
.pr-chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.pr-chips li { padding: .2rem .6rem; border-radius: 999px; background: #EEF6F6; color: var(--teal); font-size: .78rem; font-weight: 700; }
.pr-big { margin: .2rem 0; font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1.1; }
.pr-big small { font-size: 1rem; color: #64748B; font-weight: 700; }
.pr-muted { margin: .35rem 0 0; color: #64748B; font-size: .86rem; }
.pr-hint { margin: .7rem 0 0; color: #94A3B8; font-size: .76rem; line-height: 1.6; }
.pr-bar { height: 8px; margin-top: .5rem; border-radius: 999px; background: #EEF1F4; overflow: hidden; }
.pr-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.pr-actions { display: grid; gap: .5rem; }
.pr-invite { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed #E2E8F0; }
.pr-invite .pr-sub { margin-top: 0; }
.pr-invite-row { display: flex; gap: .5rem; min-width: 0; }
.pr-invite-row input { flex: 1; min-width: 0; padding: .45rem .6rem; border: 1px solid #E2E8F0; border-radius: 10px; font-size: .8rem; background: #F8FAFC; }
.pr-stats { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.pr-stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: .4rem 0 .6rem; }
.pr-stat { display: grid; justify-items: center; align-content: center; gap: .15rem; min-width: 0; padding: .8rem .5rem; border-radius: 12px; background: #fff; border: 1px solid #E6ECEF; text-align: center; cursor: help; }
.pr-stat strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.35rem; font-weight: 900; color: var(--ink); }
.pr-stat span { max-width: 100%; color: #64748B; font-size: .75rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pr-stat--small { padding: .55rem .3rem; background: #F6F8F9; border-color: #EEF1F4; }
.pr-stat--small strong { font-size: 1.15rem; }
.pr-stat--small span { font-size: .7rem; }
.pr-history { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .86rem; }
.pr-history li { display: grid; min-width: 0; }
.pr-history a, .pr-history span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }
.pr-history small { color: #94A3B8; font-size: .74rem; }
.pr-invite-form { display: grid; gap: .45rem; margin-bottom: .6rem; }
.pr-invite-form input, .pr-invite-form textarea { width: 100%; box-sizing: border-box; padding: .5rem .65rem; border: 1px solid #E2E8F0; border-radius: 10px; font: inherit; font-size: .84rem; background: #fff; }
.pr-flash { margin: 0 0 .6rem; padding: .45rem .65rem; border-radius: 10px; font-size: .8rem; font-weight: 700; }
.pr-flash--ok { background: #ECFDF5; color: #047857; }
.pr-flash--warn { background: #FFFBEB; color: #B45309; }
