/* Client portal concept and fictional concept sites.
   Shared by /services/websites/ and /services/ecommerce/. Concept sites
   (.mk-*) reflow with container queries, so one markup shows desktop and
   phone layouts. Moved from websites.css when the portal became shared. */
@layer components {
  .ws-main,
  .cp-host {
    --ws-panel: rgb(8 15 25 / 82%);
    --ws-edge: rgb(140 200 235 / 22%);
    --ws-soft: rgb(67 216 242 / 9%);
  }
  .ws-ticks {
    list-style: none;
    display: grid;
    gap: 8px;
  }
  .ws-ticks li {
    position: relative;
    padding-left: 26px;
    color: #c9d6e3;
  }
  .ws-ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 12px;
    height: 7px;
    border: solid var(--accent);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
  }

  /* ---------- Concept sites ---------- */
  .mk-frame {
    container: site / inline-size;
    color-scheme: light;
  }
  .mk {
    --mk-bg: #fff;
    --mk-ink: #14202c;
    --mk-soft: #5a6878;
    --mk-brand: #1d4f8a;
    --mk-accent: #f2b84b;
    --mk-on-accent: #1a1404;
    --mk-card: #f2f5f8;
    --mk-head: var(--sans);
    font-size: clamp(10px, 3.7cqw, 15px);
    line-height: 1.5;
    color: var(--mk-ink);
    background: var(--mk-bg);
    font-family: var(--sans);
    text-align: left;
  }
  .mk-retail {
    --mk-bg: #f6f3ea;
    --mk-ink: #18231b;
    --mk-soft: #4f5c51;
    --mk-brand: #1f3a26;
    --mk-accent: #b5381a;
    --mk-on-accent: #fff;
    --mk-card: #ebe6d6;
    --mk-head: Georgia, "Times New Roman", serif;
  }
  .mk-booking {
    --mk-bg: #f2f7f4;
    --mk-ink: #17302a;
    --mk-soft: #4a615a;
    --mk-brand: #2f5d50;
    --mk-accent: #2f5d50;
    --mk-on-accent: #fff;
    --mk-card: #e1ece6;
    --mk-head: "Trebuchet MS", "Segoe UI", sans-serif;
  }
  .mk p {
    margin: 0;
  }
  .mk-promo {
    padding: 0.5em 1em;
    font-size: 0.86em;
    font-weight: 600;
    text-align: center;
    color: var(--mk-on-accent);
    background: var(--mk-accent);
  }
  .mk-nav {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.9em 1.3em;
    border-bottom: 1px solid rgb(0 0 0 / 8%);
  }
  .mk-logo {
    margin-right: auto;
    font: 700 1em/1.2 var(--mk-head);
    color: var(--mk-brand);
  }
  .mk-links {
    display: none;
    gap: 1.4em;
    font-size: 0.86em;
    color: var(--mk-soft);
  }
  .mk-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6em 1.1em;
    border-radius: 0.35em;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--mk-on-accent);
    background: var(--mk-accent);
  }
  .mk-btn-sm {
    display: none;
    font-size: 0.78em;
  }
  .mk-booking .mk-btn {
    border-radius: 99px;
  }
  .mk-hero {
    display: grid;
    gap: 1.2em;
    padding: 1.4em 1.3em;
  }
  .mk-eyebrow {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mk-brand);
  }
  .mk-h {
    margin-top: 0.3em !important;
    font: 700 2em/1.05 var(--mk-head);
    letter-spacing: -0.01em;
    color: var(--mk-ink);
    overflow-wrap: anywhere;
  }
  .mk-intro {
    margin-top: 0.7em !important;
    max-width: 36em;
    color: var(--mk-soft);
  }
  .mk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em 1em;
    margin-top: 1.1em !important;
  }
  .mk-hours {
    font-size: 0.82em;
    color: var(--mk-soft);
  }
  .mk-art {
    margin: 0;
    overflow: hidden;
    border-radius: 0.6em;
    background: var(--mk-card);
  }
  .mk-art svg {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
  }
  .mk-retail .mk-art svg {
    padding: 0.4em;
  }
  .mk-shop,
  .mk-services,
  .mk-booker {
    display: grid;
    gap: 0.8em;
    padding: 1.2em 1.3em 1.4em;
    background: var(--mk-card);
  }
  .mk-filters,
  .mk-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
  }
  .mk-chip,
  .mk-slot {
    min-height: 2.6em;
    padding: 0.35em 0.95em;
    border: 1px solid rgb(0 0 0 / 18%);
    border-radius: 99px;
    font-size: 0.86em;
    font-weight: 600;
    color: var(--mk-ink);
    background: var(--mk-bg);
  }
  .mk-slot {
    border-radius: 0.4em;
    font-variant-numeric: tabular-nums;
  }
  .mk-chip[aria-pressed="true"],
  .mk-slot[aria-pressed="true"] {
    color: #fff;
    background: var(--mk-brand);
    border-color: var(--mk-brand);
  }
  .mk-chip:focus-visible,
  .mk-slot:focus-visible {
    outline: 2px solid var(--mk-brand);
    outline-offset: 2px;
  }
  .mk-products {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6em;
    margin: 0;
    padding: 0;
  }
  .mk-products li {
    display: grid;
    gap: 0.15em;
    padding: 0.7em;
    border-radius: 0.5em;
    background: var(--mk-bg);
  }
  .mk-products small {
    font-size: 0.72em;
    color: var(--mk-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .mk-products b {
    font-size: 0.9em;
    line-height: 1.25;
  }
  .mk-products span {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--mk-accent);
  }
  .mk-thumb {
    height: 3.6em;
    margin-bottom: 0.4em;
    border-radius: 0.35em;
    background:
      radial-gradient(circle at 30% 75%, #222 0 16%, transparent 17%),
      radial-gradient(circle at 76% 78%, #222 0 11%, transparent 12%),
      linear-gradient(transparent 30%, #c8401f 30% 66%, transparent 66%) 18% 0 /
        64% 100% no-repeat,
      #ddd6c2;
  }
  .mk-thumb-push {
    background:
      radial-gradient(circle at 34% 78%, #222 0 10%, transparent 11%),
      radial-gradient(circle at 66% 78%, #222 0 10%, transparent 11%),
      linear-gradient(transparent 46%, #3f7a3a 46% 70%, transparent 70%) 26% 0 /
        48% 100% no-repeat,
      linear-gradient(60deg, transparent 47%, #333 47% 53%, transparent 53%) 60%
        0 / 30% 60% no-repeat,
      #ddd6c2;
  }
  .mk-thumb-parts {
    background:
      radial-gradient(circle, #8a8f8a 0 22%, transparent 23%),
      linear-gradient(90deg, transparent 30%, #6b706b 30% 70%, transparent 70%)
        0 50% / 100% 14% no-repeat,
      #ddd6c2;
  }
  .mk-live {
    font-size: 0.82em;
    color: var(--mk-soft);
  }
  .mk-service {
    display: grid;
    gap: 0.35em;
    padding: 1em;
    border-left: 0.25em solid var(--mk-accent);
    border-radius: 0.4em;
    background: var(--mk-bg);
  }
  .mk-service[hidden] {
    display: none;
  }
  .mk-link {
    font-size: 0.86em;
    font-weight: 700;
    color: var(--mk-brand);
  }
  .mk-label {
    font-weight: 700;
    color: var(--mk-brand);
  }
  .mk-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4em 1em;
    padding: 0.9em 1.3em;
    font-size: 0.74em;
    color: rgb(255 255 255 / 78%);
    background: var(--mk-brand);
  }
  @container site (min-width: 560px) {
    .mk {
      font-size: clamp(8px, 1.5cqw, 15px);
    }
    .mk-links,
    .mk-btn-sm {
      display: flex;
    }
    .mk-hero {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
      align-items: center;
      gap: 2em;
      padding: 3em 2.4em;
    }
    .mk-h {
      font-size: 3em;
    }
    .mk-nav,
    .mk-foot {
      padding-inline: 2.4em;
    }
    .mk-shop,
    .mk-services,
    .mk-booker {
      padding: 1.8em 2.4em 2em;
    }
    .mk-products {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .mk-thumb {
      height: 5em;
    }
    .mk-art svg {
      aspect-ratio: 32 / 21;
    }
  }

  /* ---------- Portal ---------- */
  .ws-portal-flag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: -14px 0 22px;
    color: var(--muted);
    font-size: 0.95rem;
  }
  .ws-console {
    border: 1px solid rgb(140 200 235 / 30%);
    background: #060c15;
    box-shadow:
      0 50px 100px rgb(0 0 0 / 50%),
      0 0 0 1px rgb(0 0 0 / 60%);
  }
  .ws-console-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ws-edge);
    background: #0a1320;
  }
  .ws-console-brand {
    font: 700 0.95rem/1 var(--display);
  }
  .ws-console-brand b {
    padding: 4px 6px;
    margin-right: 4px;
    color: #031018;
    background: var(--cyan);
  }
  .ws-console-site {
    margin-right: auto;
    font: 500 0.84rem/1.3 var(--mono);
    color: var(--muted);
  }
  .ws-console-site em {
    margin-left: 8px;
    white-space: nowrap;
    padding: 2px 8px;
    font-style: normal;
    font-size: 0.72rem;
    color: #ffc978;
    border: 1px solid currentColor;
  }
  .ws-console-body {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: 600px;
  }
  .ws-tabs {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 12px 8px;
    border-right: 1px solid var(--ws-edge);
    background: #08101b;
  }
  .ws-tabs button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-left: 2px solid transparent;
    font: 500 0.92rem/1.2 var(--sans);
    text-align: left;
    color: var(--muted);
    background: transparent;
  }
  .ws-tabs button:hover {
    color: #fff;
    background: rgb(140 200 235 / 6%);
  }
  .ws-tabs button[aria-selected="true"] {
    color: #fff;
    border-left-color: var(--cyan);
    background: rgb(67 216 242 / 11%);
  }
  .ws-tabs button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
  }
  .ws-tab-icon {
    width: 14px;
    height: 14px;
    flex: none;
    border: 1.5px solid currentColor;
    border-radius: 3px;
  }
  .ws-tab-content {
    border-radius: 0;
    border-width: 1.5px 0;
  }
  .ws-tab-media {
    border-radius: 50%;
  }
  .ws-tab-seo {
    border-radius: 50% 50% 50% 0;
  }
  .ws-tab-insights {
    border-width: 0 0 1.5px 1.5px;
    border-radius: 0;
  }
  .ws-tab-requests {
    border-radius: 3px 3px 3px 0;
  }
  .ws-panels {
    min-width: 0;
    border-right: 1px solid var(--ws-edge);
  }
  .ws-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px clamp(16px, 2vw, 26px) 26px;
  }
  .ws-panel:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -4px;
  }
  .ws-panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
  }
  .ws-panel h4 {
    margin-top: 8px;
    font: 500 0.76rem/1.3 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .ws-panel-note {
    font-size: 0.88rem;
    color: var(--faint);
  }
  .ws-sample {
    padding: 2px 8px;
    font: 500 0.7rem/1.4 var(--mono);
    color: #ffc978;
    border: 1px solid currentColor;
  }
  .ws-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .ws-tile {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--ws-edge);
    background: #0a1320;
  }
  .ws-tile small,
  .ws-tile span {
    font-size: 0.74rem;
    color: var(--faint);
  }
  .ws-tile b {
    font: 700 1.25rem/1.2 var(--display);
    font-variant-numeric: tabular-nums;
  }
  .ws-online {
    color: #7ff0b8;
  }
  .ws-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ws-btn {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--ws-edge);
    font: 700 0.86rem/1.2 var(--display);
    color: #e6f1fa;
    background: #0d1828;
    transition:
      background 0.2s,
      border-color 0.2s;
  }
  .ws-btn:hover:not(:disabled) {
    border-color: var(--cyan);
    background: #12233a;
  }
  .ws-btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }
  .ws-btn:disabled {
    opacity: 0.45;
  }
  .ws-btn-primary {
    color: #031018;
    background: var(--cyan);
    border-color: var(--cyan);
  }
  .ws-btn-primary:hover:not(:disabled) {
    color: #031018;
    background: #fff;
  }
  .ws-btn-quiet {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .ws-activity,
  .ws-history,
  .ws-requests {
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .ws-activity li,
  .ws-history li,
  .ws-requests li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px 12px;
    min-height: 44px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
  }
  .ws-activity span,
  .ws-requests small {
    font-size: 0.78rem;
    color: var(--faint);
  }
  .ws-history .ws-btn {
    min-height: 36px;
    padding: 4px 6px;
    font-size: 0.8rem;
  }
  .ws-requests li {
    display: grid;
    padding: 10px 0;
  }
  .ws-requests p {
    color: #c9d6e3;
  }
  .ws-form {
    display: grid;
    gap: 12px;
  }
  .ws-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    min-width: 0;
  }
  .ws-field label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #d9e5f0;
  }
  .ws-field input,
  .ws-field textarea,
  .ws-field select {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #2c3f55;
    font-size: 0.95rem;
    color: #fff;
    background: #050a12;
  }
  .ws-field input:focus-visible,
  .ws-field textarea:focus-visible,
  .ws-field select:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
    border-color: var(--cyan);
  }
  .ws-field [aria-invalid="true"] {
    border-color: var(--alarm);
    box-shadow: 0 0 0 1px var(--alarm);
  }
  .ws-count {
    grid-column: 2;
    grid-row: 1;
    font: 500 0.74rem/1.6 var(--mono);
    color: var(--faint);
    font-variant-numeric: tabular-nums;
  }
  .ws-hint,
  .ws-error {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--faint);
  }
  .ws-error {
    color: #ff8a97;
  }
  .ws-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 12px;
  }
  .ws-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ws-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .ws-media-item {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--ws-edge);
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
  }
  .ws-media-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .ws-media-art svg {
    width: 100%;
    height: auto;
    background: #ebe6d6;
  }
  .ws-media-item:has(input:checked) {
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 0 1px var(--cyan);
  }
  .ws-media-item:has(input:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .ws-snippet {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #4d5156;
  }
  .ws-snippet small {
    font-size: 0.78rem;
    color: #202124;
  }
  .ws-snippet b {
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.3;
    color: #1a0dab;
    overflow-wrap: anywhere;
  }
  .ws-snippet span {
    font-size: 0.86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .ws-tips {
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
  }
  .ws-tips li {
    position: relative;
    padding-left: 22px;
    color: #c9d6e3;
  }
  .ws-tips li::before {
    content: "i";
    position: absolute;
    left: 0;
    top: 0.18em;
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font: 700 0.66rem/1 var(--mono);
    color: #031018;
    background: var(--cyan-soft);
  }
  .ws-tips li[data-tone="ok"]::before {
    content: "✓";
    background: #7ff0b8;
  }
  .ws-tips li[data-tone="warn"]::before {
    content: "!";
    background: #ffc978;
  }
  .ws-columns {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    height: 140px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
  }
  .ws-col {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: end;
    height: 100%;
    gap: 4px;
    text-align: center;
  }
  .ws-col i {
    display: block;
    width: 100%;
    max-width: 26px;
    margin-inline: auto;
    border-radius: 4px 4px 0 0;
    background: var(--cyan);
  }
  .ws-col:hover i {
    background: var(--cyan-soft);
  }
  .ws-col small {
    font-size: 0.72rem;
    color: var(--faint);
  }
  .ws-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .ws-bars {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 10px;
  }
  .ws-bars li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 8px;
    font-size: 0.82rem;
  }
  .ws-bars li:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }
  .ws-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 6px;
    border-radius: 3px;
    background: rgb(140 200 235 / 10%);
  }
  .ws-bar-track i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--cyan);
  }
  .ws-bar-value {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .ws-preview {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    background:
      linear-gradient(rgb(140 200 235 / 4%) 1px, transparent 1px) 0 0 / 24px
        24px,
      linear-gradient(90deg, rgb(140 200 235 / 4%) 1px, transparent 1px) 0 0 /
        24px 24px,
      #050a12;
  }
  .ws-preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ws-edge);
  }
  .ws-toggle {
    display: flex;
    border: 1px solid var(--ws-edge);
  }
  .ws-toggle button {
    min-height: 40px;
    padding: 6px 12px;
    border: 0;
    font: 700 0.82rem/1 var(--display);
    color: var(--muted);
    background: transparent;
  }
  .ws-toggle button[aria-pressed="true"] {
    color: #031018;
    background: var(--cyan);
  }
  .ws-toggle button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
  }
  .ws-preview-badge {
    padding: 3px 10px;
    font: 500 0.74rem/1.4 var(--mono);
    color: #7ff0b8;
    border: 1px solid currentColor;
  }
  .ws-preview-badge[data-view="draft"] {
    color: #ffc978;
  }
  .ws-preview-frame {
    align-self: start;
    margin: 16px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow:
      0 20px 50px rgb(0 0 0 / 50%),
      0 0 0 1px rgb(140 200 235 / 25%);
  }
  .ws-console-status {
    min-height: 44px;
    padding: 12px 16px;
    border-top: 1px solid var(--ws-edge);
    font-size: 0.9rem;
    color: #c9d6e3;
    background: #0a1320;
  }
  .ws-console-status:empty::before {
    content: "Try it: open Website pages, change the headline, then select Preview changes.";
    color: var(--faint);
  }
  [data-plan="store"] .ws-console-status:empty::before {
    content: "Try it: open Products, change a price or stock level, then check the storefront.";
  }
  [data-role="fulfilment"] .ws-console-status:empty::before {
    content: "Try it: open Orders and mark an order as packed.";
  }
  .ws-portal-fallback {
    padding: 22px;
    border: 1px solid var(--ws-edge);
    color: var(--muted);
  }
  .ws-portal-more {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: clamp(20px, 3vw, 40px);
    margin-top: clamp(30px, 4vw, 48px);
  }
  .ws-portal-caps h3 {
    margin-bottom: 14px;
    font-size: 1.15rem;
  }
  .ws-caps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  .ws-caps li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--muted);
  }
  .ws-caps b {
    display: block;
    font: 700 0.98rem/1.35 var(--display);
    color: #fff;
  }
  .ws-portal-real {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: clamp(20px, 2.6vw, 30px);
    border: 1px solid var(--ws-edge);
  }
  .ws-portal-real p:not(.kicker) {
    font-size: 0.94rem;
    color: var(--muted);
  }
  .ws-portal-real .button {
    justify-self: start;
  }

  /* Chart sizes as classes: the CSP forbids inline style attributes. */
  .ws-w-0 {
    width: 0%;
  }
  .ws-h-0 {
    height: 0%;
  }
  .ws-w-5 {
    width: 5%;
  }
  .ws-h-5 {
    height: 5%;
  }
  .ws-w-10 {
    width: 10%;
  }
  .ws-h-10 {
    height: 10%;
  }
  .ws-w-15 {
    width: 15%;
  }
  .ws-h-15 {
    height: 15%;
  }
  .ws-w-20 {
    width: 20%;
  }
  .ws-h-20 {
    height: 20%;
  }
  .ws-w-25 {
    width: 25%;
  }
  .ws-h-25 {
    height: 25%;
  }
  .ws-w-30 {
    width: 30%;
  }
  .ws-h-30 {
    height: 30%;
  }
  .ws-w-35 {
    width: 35%;
  }
  .ws-h-35 {
    height: 35%;
  }
  .ws-w-40 {
    width: 40%;
  }
  .ws-h-40 {
    height: 40%;
  }
  .ws-w-45 {
    width: 45%;
  }
  .ws-h-45 {
    height: 45%;
  }
  .ws-w-50 {
    width: 50%;
  }
  .ws-h-50 {
    height: 50%;
  }
  .ws-w-55 {
    width: 55%;
  }
  .ws-h-55 {
    height: 55%;
  }
  .ws-w-60 {
    width: 60%;
  }
  .ws-h-60 {
    height: 60%;
  }
  .ws-w-65 {
    width: 65%;
  }
  .ws-h-65 {
    height: 65%;
  }
  .ws-w-70 {
    width: 70%;
  }
  .ws-h-70 {
    height: 70%;
  }
  .ws-w-75 {
    width: 75%;
  }
  .ws-h-75 {
    height: 75%;
  }
  .ws-w-80 {
    width: 80%;
  }
  .ws-h-80 {
    height: 80%;
  }
  .ws-w-85 {
    width: 85%;
  }
  .ws-h-85 {
    height: 85%;
  }
  .ws-w-90 {
    width: 90%;
  }
  .ws-h-90 {
    height: 90%;
  }
  .ws-w-95 {
    width: 95%;
  }
  .ws-h-95 {
    height: 95%;
  }
  .ws-w-100 {
    width: 100%;
  }
  .ws-h-100 {
    height: 100%;
  }

  /* ---------- Unified portal: packages, roles and store sections ---------- */
  .ws-tab-products {
    border-radius: 2px 2px 6px 6px;
  }
  .ws-tab-orders {
    border-width: 1.5px 1.5px 4px;
  }
  .ws-tab-store {
    border-radius: 50%;
    border-style: dashed;
  }
  .ws-tab-team {
    border-radius: 50% 50% 3px 3px;
  }
  .cp-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px 28px;
    margin-bottom: 18px;
  }
  .cp-plans {
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .cp-plans legend,
  .cp-role label {
    margin-bottom: 8px;
    font: 600 0.78rem/1.2 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .cp-plan-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cp-plan-options label {
    position: relative;
    cursor: pointer;
  }
  .cp-plan-options input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
  }
  .cp-plan-options span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--ws-edge);
    border-radius: 999px;
    background: rgb(5 12 20 / 70%);
    color: #d5e2ee;
    font-size: 0.92rem;
  }
  .cp-plan-options label:hover span {
    border-color: var(--accent);
  }
  .cp-plan-options input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: #fff;
  }
  .cp-plan-options input:focus-visible + span {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }
  .cp-role {
    display: grid;
    gap: 4px;
  }
  .cp-role-summary {
    font-size: 0.86rem;
    color: var(--muted);
  }
  .cp-perm {
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px dashed rgb(255 201 120 / 45%);
    font-size: 0.86rem;
    color: #ffdca6;
  }
  .cp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
  }
  .cp-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    list-style: none;
  }
  .cp-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 10px 12px;
    border: 1px solid var(--ws-edge);
    background: #0a1320;
  }
  .cp-item[data-low] {
    border-color: rgb(255 201 120 / 40%);
  }
  .cp-item-text {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .cp-item-text b {
    font-size: 0.95rem;
  }
  .cp-item-text span {
    font-size: 0.82rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .cp-item-actions {
    display: flex;
    gap: 6px;
  }
  .cp-order .store-badge {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgb(255 200 97 / 16%);
    color: #ffe2a8;
    font-size: 0.74rem;
    font-weight: 500;
  }
  .cp-order[data-status="Packed"] .store-badge {
    background: rgb(67 216 242 / 14%);
    color: #c8f6ff;
  }
  .cp-order[data-status="Dispatched"] .store-badge {
    background: rgb(127 240 184 / 14%);
    color: #d9f8e8;
  }
  .cp-product-form {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgb(67 216 242 / 35%);
    background: #08111d;
  }
  .cp-product-form h4 {
    margin-top: 0;
  }
  .cp-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    font-size: 0.92rem;
    cursor: pointer;
  }
  .cp-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--cyan);
  }
  .cp-settings,
  .cp-discount {
    display: grid;
    gap: 8px;
  }
  .cp-pay {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--ws-edge);
    background: #0a1320;
    font-size: 0.9rem;
    color: var(--muted);
  }
  .cp-pay b {
    color: var(--text);
  }
  .cp-pay .ws-btn {
    justify-self: start;
  }
  .cp-package {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--ws-edge);
    background: #0a1320;
  }
  .cp-package p:first-child {
    display: grid;
    gap: 2px;
  }
  .cp-package small {
    font-size: 0.74rem;
    color: var(--faint);
  }
  .cp-package b {
    font: 700 1.05rem/1.3 var(--display);
  }
  .cp-package .cp-off {
    color: var(--faint);
  }
  .cp-package .cp-off::before {
    border-color: var(--faint);
    transform: none;
    width: 10px;
    height: 0;
    top: 0.75em;
  }
  .cp-preview-site {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
  }
  .cp-preview-store .ws-preview-bar b {
    font: 600 0.82rem/1 var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .cp-shop {
    margin: 16px;
    padding: 16px;
    border-radius: 10px;
    background: #f4f1e6;
    color: #1b1f1b;
  }
  .cp-shop-name {
    margin-bottom: 10px;
    font:
      700 0.86rem/1 Georgia,
      serif;
    letter-spacing: 0.08em;
    color: #2c3a33;
  }
  .cp-shop ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
  }
  .cp-shop li {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
  }
  .cp-shop li b {
    font-size: 0.86rem;
  }
  .cp-shop li span,
  .cp-shop-meta {
    font-size: 0.78rem;
    color: #4a5550;
  }
  .cp-shop-meta {
    margin-top: 10px;
  }
  .cp-controls[hidden],
  .ws-console[data-plan] [hidden] {
    display: none !important;
  }
  @media (max-width: 760px) {
    .cp-controls {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 420px) {
    .cp-shop ul {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- Responsive (portal) ---------- */
  @media (max-width: 1180px) {
    .ws-console-body {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .ws-tabs {
      grid-column: 1 / -1;
      display: flex;
      overflow-x: auto;
      padding: 6px;
      border-right: 0;
      border-bottom: 1px solid var(--ws-edge);
      scrollbar-width: thin;
    }
    .ws-tabs button {
      flex: none;
      border-left: 0;
      border-bottom: 2px solid transparent;
    }
    .ws-tabs button[aria-selected="true"] {
      border-bottom-color: var(--cyan);
    }
  }
  @media (max-width: 960px) {
    .ws-portal-more {
      grid-template-columns: 1fr;
    }
    .ws-console-body {
      grid-template-columns: 1fr;
    }
    .ws-panels {
      border-right: 0;
      border-bottom: 1px solid var(--ws-edge);
    }
  }
  @media (max-width: 640px) {
    .ws-caps,
    .ws-two,
    .ws-field-row,
    .ws-quick {
      grid-template-columns: 1fr;
    }
    .ws-tiles {
      grid-template-columns: 1fr 1fr;
    }
    .ws-tiles .ws-tile:first-child {
      grid-column: 1 / -1;
    }
    .ws-media {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
    .ws-media-item span:last-child {
      font-size: 0.72rem;
    }
    .ws-preview-frame {
      margin: 10px;
    }
  }
}
