/* input(3382,1): run-time error CSS1019: Unexpected token, found '}' */
/* ==========================================================================
   AECODER user theme

   This is the single source of truth for public-site colors. Change the
   palette tokens in :root to update the complete user workflow.
   ========================================================================== */

:root {
    color-scheme: light;

    /* Brand — charcoal */
    --brand-950: #090d12;
    --brand-900: #0d1117;
    --brand-800: #161b22;
    --brand-100: #e5e7eb;
    --brand-50: #f9fafb;

    /* Accent — sky blue */
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-light: #38bdf8;
    --accent-deep: #075985;
    --accent-rgb: 2, 132, 199;
    --on-accent: #ffffff;
    /* Same sheen as the gold wordmark: dark → mid → bright highlight → dark */
    --sky-gradient: linear-gradient(
        90deg,
        #0369a1 0%,
        #0284c7 18%,
        #0ea5e9 38%,
        #e0f2fe 50%,
        #0ea5e9 62%,
        #0284c7 82%,
        #0369a1 100%
    );

    /* Secondary — premium metallic gold, kept for the Pricing link */
    --gold-900: #7a5411;
    --gold-800: #aa771c;
    --gold-700: #b38728;
    --gold-600: #bf953f;
    --gold-500: #d4af37;
    --gold-400: #e6c766;
    --gold-100: #fcf6ba;
    --gold-rgb: 212, 175, 55;
    --secondary: var(--gold-500);
    --secondary-deep: var(--gold-800);
    --secondary-light: var(--gold-400);
    --secondary-rgb: var(--gold-rgb);
    --on-secondary: #1a1207;
    /* Metallic sheen: dark → rich gold → narrow bright highlight → dark */
    --gold-gradient: linear-gradient(
        90deg,
        var(--gold-800) 0%,
        var(--gold-600) 18%,
        var(--gold-500) 38%,
        var(--gold-100) 50%,
        var(--gold-500) 62%,
        var(--gold-700) 82%,
        var(--gold-800) 100%
    );

    /* Neutral scale */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic surfaces and typography */
    --canvas: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: var(--brand-50);
    --surface-muted: #edf2f7;
    --surface-raised: #ffffff;
    --border: #dbe3ee;
    --border-strong: #c5d0df;
    --text: #334155;
    --text-strong: var(--brand-950);
    --text-muted: #64748b;
    --text-subtle: #7c8aa0;
    --focus-ring: rgba(var(--accent-rgb), 0.28);

    /* Navbar and the programs strip keep the current navy.
       Announcement and footer sit one step darker. */
    --chrome: #040914;
    --chrome-deep: #000308;
    --chrome-line: rgba(148, 180, 220, 0.16);
    --nav-bg: var(--chrome);
    --nav-border: var(--chrome-line);
    --nav-text: #e5e7eb;
    --nav-text-hover: #ffffff;
    --nav-hover: rgba(255, 255, 255, 0.08);
    --nav-surface: rgba(255, 255, 255, 0.06);
    --footer-bg: var(--chrome-deep);
    --footer-text: #d1d5db;

    /* Status */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #0284c7;
    --stripe: #635bff;

    /* Legacy aliases used throughout existing user pages */
    --primary: var(--brand-950);
    --primary-light: var(--brand-100);
    --primary-mid: var(--brand-900);
    --primary-dark: #090d12;
    --font-display: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --ws-gutter: 20px;
    /* Left column shared by Shop filters and the workspace nav
       (Dashboard / Licenses / Invoices / Profile), so both pages
       draw the same two rectangles. */
    --ws-rail: 248px;
    /* Horizontal inset shared by the navbar, the footer and every page
       section, so all of them sit on the same vertical edges. */
    --page-inset: 32px;
    --ws-panel-radius: 14px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.2s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 20px -12px rgba(15, 23, 42, 0.22);
    --shadow-lg: 0 18px 42px -22px rgba(15, 23, 42, 0.28);
    --shadow-xl: 0 28px 60px -28px rgba(15, 23, 42, 0.32);

    accent-color: var(--accent);
    scrollbar-color: var(--gray-400) var(--gray-100);
}

/*
 * The public homepage scrolls on the document, while the workspace uses
 * internal scrolling. Always reserve the document scrollbar gutter so the
 * centered navbar does not shift horizontally between Account and Website.
 */
html {
    scrollbar-gutter: stable;
}

/* Shared public shell */
body {
    color: var(--text);
    background: var(--canvas);
}

.page-container {
    background: var(--canvas);
}

.site-announcement {
    min-height: 30px;
    padding: 5px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    color: #f9fafb;
    background: var(--chrome-deep);
    border-bottom: 1px solid var(--chrome-line);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-announcement-title {
    font-weight: 500;
}

.site-announcement-short,
.footer-copy-short {
    display: none;
}

.site-announcement-action {
    color: #d1d5db;
    font-weight: 700;
}

.site-announcement svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.site-announcement:hover {
    color: #ffffff;
    background: #04101c;
}

.site-announcement:hover svg {
    transform: translateX(3px);
}

.site-announcement:focus-visible {
    outline-color: #ffffff;
    outline-offset: -3px;
}

.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: none;
}

/* Wordmark — The hinge C. All letters white when dimmed. Pricing gold
   sheen lights AEC, then hands over to CODER. The C is the hinge and
   lights in both beats. No slogan. */
.logo-text {
    --brand-off: #ffffff;
    --brand-dim: 1;
    position: relative;
    align-items: baseline;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.35px;
}

.logo-text .logo-off,
.logo-text .logo-on {
    display: flex;
    align-items: baseline;
}

.logo-text .logo-off {
    color: var(--brand-off);
}

.logo-text .logo-off .brand-ae,
.logo-text .logo-off .brand-c,
.logo-text .logo-off .brand-oder {
    opacity: var(--brand-dim);
}

.logo-text .logo-off .brand-ae {
    animation: brand-dim-aec 6s ease-in-out infinite;
}

.logo-text .logo-off .brand-c {
    animation: brand-dim-c 6s ease-in-out infinite;
}

.logo-text .logo-off .brand-oder {
    animation: brand-dim-coder 6s ease-in-out infinite;
}

.logo-text .logo-on {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.logo-text .logo-on .brand-ae,
.logo-text .logo-on .brand-c,
.logo-text .logo-on .brand-oder {
    background: var(--sky-gradient);
    background-size: 220% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}

.logo-text .logo-on .brand-ae {
    animation: nav-pricing-shine 2s linear infinite,
               brand-hinge-aec 6s ease-in-out infinite;
}

.logo-text .logo-on .brand-c {
    animation: nav-pricing-shine 2s linear infinite,
               brand-hinge-c 6s ease-in-out infinite;
}

.logo-text .logo-on .brand-oder {
    animation: nav-pricing-shine 2s linear infinite,
               brand-hinge-coder 6s ease-in-out infinite;
}

@keyframes brand-hinge-aec {
    0%, 6%    { opacity: 0; }
    12%, 42%  { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes brand-hinge-coder {
    0%, 48%   { opacity: 0; }
    56%, 86%  { opacity: 1; }
    94%, 100% { opacity: 0; }
}

@keyframes brand-hinge-c {
    0%, 6%    { opacity: 0; }
    12%, 86%  { opacity: 1; }
    94%, 100% { opacity: 0; }
}

@keyframes brand-dim-aec {
    0%, 6%    { opacity: var(--brand-dim); }
    12%, 42%  { opacity: 0; }
    50%, 100% { opacity: var(--brand-dim); }
}

@keyframes brand-dim-coder {
    0%, 48%   { opacity: var(--brand-dim); }
    56%, 86%  { opacity: 0; }
    94%, 100% { opacity: var(--brand-dim); }
}

@keyframes brand-dim-c {
    0%, 6%    { opacity: var(--brand-dim); }
    12%, 86%  { opacity: 0; }
    94%, 100% { opacity: var(--brand-dim); }
}

.logo:hover .logo-text .logo-off .brand-ae,
.logo:hover .logo-text .logo-off .brand-c,
.logo:hover .logo-text .logo-off .brand-oder {
    opacity: 0;
    animation: none;
}

.logo:hover .logo-text .logo-on .brand-ae,
.logo:hover .logo-text .logo-on .brand-c,
.logo:hover .logo-text .logo-on .brand-oder {
    opacity: 1;
    animation: nav-pricing-shine 2s linear infinite;
}

.auth-logo--text .logo-text {
    --brand-off: #111111;
    --brand-dim: 1;
}

@media (prefers-reduced-motion: reduce) {
    .logo-text .logo-on {
        display: none;
    }

    .logo-text .logo-off .brand-ae,
    .logo-text .logo-off .brand-c,
    .logo-text .logo-off .brand-oder {
        animation: none;
        opacity: 1;
    }
}

.mobile-menu-btn svg {
    stroke: #ffffff;
}

.mobile-menu-btn:hover,
.nav-links a:hover,
.btn-login:hover {
    background: var(--nav-hover);
}

.nav-links a,
.btn-login {
    color: var(--nav-text);
}

.nav-links a:hover,
.btn-login:hover {
    color: var(--nav-text-hover);
}

/* Pricing — premium metallic gold sheen (secondary colour) */
.nav-pricing-text {
    background: var(--gold-gradient);
    background-size: 220% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    /* No glow around the letters — the sheen lives in the glyphs only */
    filter: none;
    animation: nav-pricing-shine 3.2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .nav-pricing-text { animation: none; }
}

.nav-user-icon {
    background: var(--nav-surface);
    border-color: var(--nav-border);
}

.nav-user-icon svg {
    stroke: var(--nav-text);
}

.nav-auth-link {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 2px;
    transition: color 0.18s ease;
}

.nav-auth-link:hover {
    color: var(--nav-text-hover);
}

.nav-auth-sep {
    color: #52525b;
    font-weight: 400;
    padding: 0 6px;
    user-select: none;
}

.nav-workspace-split {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 154px;
    width: 154px;
    height: 40px;
}

.nav-profile-button {
    flex: 0 0 42px;
    width: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-right: 0;
    border-radius: 999px 0 0 999px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-profile-button:hover {
    color: #000000;
    background: #f1f5f9;
}

.nav-profile-button .nav-user-icon {
    width: 19px;
    height: 19px;
    background: transparent;
    border: 0;
}

.nav-profile-button .nav-user-icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
}

.nav-workspace-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 112px;
    width: 112px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 0 12px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 0 999px 999px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-workspace-link:hover {
    color: #000000;
    background: #f1f5f9;
}

/* Text-only branding: the auth badge drops its tile and shows the wordmark. */
.auth-logo--text {
    width: auto;
    height: auto;
    margin-bottom: 14px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* Login and Register sit in the middle of the space under the navbar. */
.page-container:has(.auth-container) {
    min-height: 100svh;
}

.auth-container {
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
}

.auth-box {
    margin: auto;
    width: min(440px, 100%);
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .page-container:has(.auth-container) {
        height: 100svh;
        overflow: hidden;
    }

    .auth-container,
    .auth-container.register-page {
        padding: 16px;
        align-items: center;
        overflow-y: auto;
    }

    .auth-box,
    .auth-container.register-page .auth-box {
        margin: auto;
        padding: 24px 18px;
    }

    .auth-container.register-page {
        align-items: stretch;
        justify-content: flex-start;
    }

    .auth-container.register-page .auth-box {
        margin: 8px auto 16px;
    }

    .auth-container.register-page .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   Workspace chrome — top bar actions (_LayoutWorkspace)
   ========================================================================== */
/* The workspace bar reuses .navbar / .navbar-inner / .logo untouched, so its
   height, padding and left edge line up exactly with the public site navbar. */
.navbar-inner,
.lp-layout {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.navbar,
.lp-section {
    box-sizing: border-box;
    padding-inline: var(--page-inset);
}

/* The contact page and the workspace are the two viewport-locked pages: they
   fill the space between the navbar and the footer instead of scrolling the
   document. They share one inset, one max width and one symmetric vertical
   rhythm (the same top spacing the scrolling pages use), so the content edges
   land in exactly the same place when moving between the site and the
   workspace. Narrow screens keep each page's own full-bleed behaviour. */
@media (min-width: 901px) {
    .contact-page,
    .lp-section {
        box-sizing: border-box;
        padding-block: var(--user-page-pt);
        padding-inline: var(--page-inset);
    }

    .contact-page-container {
        max-width: var(--max-width);
    }
}

.ws-context-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    color: rgba(229, 229, 229, 0.62);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.ws-context-label > span {
    color: rgba(161, 161, 170, 0.7);
    font-weight: 400;
}

.ws-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

@media (max-width: 640px) {
    .ws-context-label {
        margin-left: 8px;
        font-size: 12px;
    }
}

.ws-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ws-icon-btn::-webkit-details-marker {
    display: none;
}

.ws-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ws-icon-btn:hover {
    color: var(--text-strong);
    background: var(--surface-muted);
    border-color: var(--border);
}

.ws-badge {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--surface);
    border-radius: 50%;
    background: var(--brand-950);
}

.ws-avatar-btn {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
}

.ws-avatar-btn::-webkit-details-marker {
    display: none;
}

.ws-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-950);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 700;
}

.ws-avatar-btn:hover .ws-avatar {
    background: var(--brand-800);
}

/* Dropdowns */
.ws-menu {
    position: relative;
}

.ws-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 210px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    /* Table action cells are right-aligned; menu items always read left. */
    text-align: left;
}

.ws-menu-panel--wide {
    min-width: 330px;
    padding: 0;
}

.ws-menu-panel a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.ws-menu-panel a:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.ws-menu-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.ws-menu-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-menu-mail {
    font-size: 11.5px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.ws-menu-sep {
    height: 1px;
    margin: 4px 6px;
    background: var(--border);
}

.ws-menu-danger {
    color: var(--error) !important;
}

.ws-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-menu-count {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--brand-950);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 600;
}

.ws-menu-empty {
    margin: 0;
    padding: 18px 14px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* One-line explanatory row inside an actions menu (no hover, not clickable). */
.ws-menu-note {
    display: block;
    padding: 8px 10px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.ws-menu-foot {
    display: block;
    padding: 10px 14px !important;
    border-top: 1px solid var(--border);
    border-radius: 0 0 12px 12px !important;
    color: var(--text-muted) !important;
    font-size: 12.5px;
    font-weight: 600 !important;
    text-align: center;
}

.ws-notif-list {
    max-height: 340px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
}

.ws-notif {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
}

.ws-notif.is-unread {
    background: var(--surface-soft);
}

.ws-notif.is-unread::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-950);
}

.ws-notif-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
}

.ws-notif-icon svg {
    width: 14px;
    height: 14px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ws-notif-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 12px;
}

.ws-notif-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text);
}

.ws-notif-time {
    font-size: 11px;
    color: var(--text-subtle);
}

@media print {
    .ws-shell > .site-announcement,
    .ws-shell > .navbar,
    .ws-shell > .footer {
        display: none !important;
    }

    .ws-shell {
        height: auto !important;
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .ws-search.is-open .ws-search-input {
        width: 130px;
    }

    .ws-menu-panel--wide {
        min-width: min(330px, calc(100vw - 28px));
    }
}

/* ==========================================================================
   Workspace (user portal) — app-shell dashboard
   ========================================================================== */
/* The canvas keeps an equal gutter on all four sides, and the menu and the
   content sit on it as two panels of identical height. Only the content panel
   scrolls, so the document itself never does. The footer stays pinned under
   the panels inside the same 100dvh shell. */
.ws-shell {
    height: 100dvh;
}

.ws-shell > .footer {
    flex-shrink: 0;
}

.lp-section {
    min-height: 0;
    background: var(--canvas);
}

.lp-layout {
    gap: var(--ws-gutter);
    align-items: stretch;
    min-height: 0;
    height: 100%;
}

.lp-sidebar {
    width: var(--ws-rail);
    min-width: var(--ws-rail);
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ws-panel-radius);
    box-shadow: var(--shadow-sm);
}

.lp-content {
    min-width: 0;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ws-panel-radius);
    box-shadow: var(--shadow-sm);
}

/* The invoice page renders its own document card, so its panel stays
   transparent rather than nesting a card inside a card. */
.lp-content--invoice {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.lp-content--chat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.lp-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.lp-sidebar-user .lp-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
    overflow: hidden;
}

.lp-sidebar-user .lp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-sidebar-user-name {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Short laptop screens: tighten the gap between the two panels. The page
   padding itself follows --user-page-pt, which shrinks on the same
   breakpoint as the public pages. */
@media (max-height: 800px) {
    :root {
        --ws-gutter: 12px;
    }
}

/* Editorial menu: a continuous hairline replaces the pills, and the active
   entry is marked by a solid segment sitting on top of that rule. */
.lp-nav {
    position: relative;
    flex: 1;
    margin-left: 0;
    padding: 2px 0 0;
}

/* The rule runs down to Logout, which sits at its end. */
.lp-nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.lp-nav-item {
    position: relative;
    gap: 0;
    padding: 11px 0 11px 20px;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.lp-nav-item svg {
    display: none;
}

.lp-nav-item:hover {
    background: none;
    color: var(--text-strong);
}

.lp-nav-item.active {
    background: none;
    color: var(--text-strong);
    font-weight: 800;
}

.lp-nav-item.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0;
    background: var(--text-strong);
}

.lp-nav-divider {
    display: none;
}

.lp-nav-item .lp-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 8px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--text-strong);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.lp-nav-item.logout {
    margin-top: auto;
    color: var(--error);
}

.lp-nav-item.logout:hover {
    background: none;
    color: #7f1d1d;
}

@media (max-width: 768px) {
    .navbar {
        padding-inline: 20px;
    }

    /* On phones the shell drops the inset panels: the menu becomes a horizontal
       scroller above full-bleed content, and the document scrolls normally. */
    .ws-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .lp-section {
        padding: 0;
    }

    .lp-layout {
        gap: 0;
    }

    .lp-sidebar,
    .lp-content {
        border-radius: 0;
        border-inline: 0;
        box-shadow: none;
    }

    .lp-sidebar {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
        border-top: 0;
    }

    .lp-content {
        border-block: 0;
    }

    .lp-sidebar-user {
        display: none;
    }

    .lp-nav {
        margin-left: 0;
        padding: 8px 0;
    }

    /* The nav turns into a horizontal scroller, so the vertical rule and the
       vertical active segment become an underline instead. */
    .lp-nav::before {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: 1px;
    }

    .lp-nav-item {
        padding: 8px 12px;
    }

    .lp-nav-item.logout {
        margin-top: 0;
    }

    .lp-nav-item.active::before {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 3px;
    }
}

.lp-avatar {
    background: var(--brand-950);
    color: var(--white);
}

.ws-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ws-head-text h1 {
    margin: 0 0 4px;
    font-size: 25px;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.4px;
}

.ws-head-text p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.ws-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-head-actions .ws-icon-btn {
    border-color: var(--border);
    background: var(--surface);
}

/* Match the notification bell so the pair reads as one control group. */
.ws-head-actions .ws-btn--icon svg {
    width: 17px;
    height: 17px;
}

.ws-btn--icon {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

.ws-inline-form {
    margin: 0;
}

/* ── Profile page ─────────────────────────────────────────────────────── */
.ws-profile {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ws-identity,
.ws-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ws-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.ws-identity-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: var(--brand-950);
    overflow: hidden;
}

.ws-identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-identity-initials {
    color: var(--white);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ws-identity-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-identity-mail {
    margin: -6px 0 2px;
    font-size: 12.5px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.ws-identity-upload,
.ws-identity .ws-inline-form {
    margin: 0;
}

.ws-identity .lp-alert {
    width: 100%;
    text-align: left;
}

.ws-link-btn {
    padding: 0;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ws-link-btn:hover {
    color: var(--error);
}

.ws-identity-hint {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-subtle);
}

.ws-identity-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.ws-identity-facts span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.ws-identity-facts svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ws-profile-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ws-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ws-card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
}

/* Collapsible cards: one open at a time, the chevron flips with the state. */
.ws-accordion > .ws-card-head {
    margin-bottom: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ws-accordion > .ws-card-head::-webkit-details-marker {
    display: none;
}

.ws-card-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ws-btn--sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.ws-accordion-chevron {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.18s ease;
}

.ws-accordion[open] > .ws-card-head .ws-accordion-chevron {
    transform: rotate(180deg);
}

.ws-card-body {
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
}


.ws-card-hint {
    margin: -8px 0 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.ws-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.ws-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.ws-facts > div {
    padding: 12px 14px;
    background: var(--surface);
}

.ws-facts dt {
    margin-bottom: 3px;
    color: var(--text-subtle);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ws-facts dd {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.is-hidden {
    display: none !important;
}

/* Same visual language as the status pills: white card, neutral border, and
   only the text carries the colour. */
.lp-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-strong);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lp-alert::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.lp-alert--success {
    color: var(--success);
}

.lp-alert--error {
    color: var(--error);
}

.lp-alert--warn {
    color: var(--warning);
}

.lp-alert-text {
    flex: 1;
    min-width: 0;
}

.lp-alert-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 6px;
    color: inherit;
    opacity: 0.55;
    cursor: pointer;
}

.lp-alert-close:hover {
    opacity: 1;
    background: var(--surface-muted);
}

.lp-alert-close svg {
    width: 13px;
    height: 13px;
}

.lp-alert.is-dismissed {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

@media (max-width: 900px) {
    .ws-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ws-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ws-btn svg {
    width: 15px;
    height: 15px;
}

.ws-btn:hover {
    color: var(--text-strong);
    background: var(--surface-muted);
    border-color: var(--border-strong);
}

.ws-btn:disabled,
.ws-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.ws-btn:disabled:not(.ws-btn--primary):hover,
.ws-btn[aria-disabled="true"]:not(.ws-btn--primary):hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.ws-btn--primary {
    color: var(--white);
    background: var(--brand-950);
    border-color: var(--brand-950);
}

.ws-btn--primary:hover {
    color: var(--white);
    background: var(--brand-800);
    border-color: var(--brand-800);
}

.ws-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text);
}

.ws-banner svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    flex: 0 0 auto;
}

.ws-banner-text {
    flex: 1;
    min-width: 0;
}

.ws-banner-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.ws-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.ws-banner--warn .ws-dot {
    background: var(--warning);
}

.ws-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ws-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding: 16px 20px;
    border-left: 1px solid var(--border);
}

.ws-stat:first-child {
    border-left: 0;
}

.ws-stat svg {
    grid-row: span 2;
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
}

.ws-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-strong);
}

.ws-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.ws-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.ws-side {
    display: grid;
    gap: 16px;
}

.ws-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* Panels whose rows open dropdowns must not clip them. */
.ws-panel--flow {
    overflow: visible;
}

.ws-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.ws-panel-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.ws-link:hover {
    color: var(--text-strong);
}

.ws-muted {
    font-size: 12px;
    color: var(--text-muted);
}

.ws-mono {
    font-family: ui-monospace, Consolas, Menlo, monospace;
    font-size: 12.5px;
    color: var(--text-muted);
}

.ws-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.ws-table-wrap {
    overflow-x: auto;
}

/* ── Licenses console ─────────────────────────────────────────────────────
   The rows carry dropdown menus, so this wrapper must never clip: the table
   turns into cards on narrow screens instead of scrolling sideways. */
.ws-lic-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.ws-search {
    position: relative;
    flex: 1;
    min-width: 190px;
    max-width: 320px;
}

.ws-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.ws-search input {
    width: 100%;
    padding: 8px 12px 8px 33px;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.ws-search input::placeholder {
    color: var(--gray-400);
}

.ws-search input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.ws-lic-toolbar-end {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.ws-lic-table td {
    vertical-align: middle;
}

.ws-lic-table th:last-child,
.ws-lic-table td:last-child {
    text-align: right;
}

.ws-lic-row--off {
    opacity: 0.62;
}

/* The panel can't clip (dropdowns), so the last row rounds its own corners. */
.ws-lic-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.ws-lic-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.ws-prod {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-prod-thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-deep);
}

.ws-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-prod-name {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-strong);
}

.ws-prod-plan {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* One chip shape for every state — only the label colour changes. */
.ws-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-strong);
}

.ws-pill::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ws-pill--ok {
    color: var(--success);
}

.ws-pill--warn {
    color: var(--warning);
}

.ws-pill--bad {
    color: var(--error);
}

.ws-seats {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.ws-seats-bar {
    flex: none;
    width: 64px;
    height: 5px;
    overflow: hidden;
    background: var(--gray-200);
    border-radius: 99px;
}

.ws-seats-bar i {
    display: block;
    height: 100%;
    background: var(--accent-deep);
    border-radius: 99px;
}

.ws-seats-bar i.is-full {
    background: var(--error);
}

.ws-seats-count {
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.ws-seats-count em {
    font-style: normal;
    color: var(--gray-400);
}

.ws-date strong {
    font-weight: 600;
    color: var(--text-strong);
}

.ws-date small {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.ws-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.ws-row-actions .ws-btn {
    padding: 7px 12px;
    font-size: 12.5px;
}

.ws-row-actions .ws-btn--icon {
    width: 32px;
    height: 32px;
    padding: 0;
}

summary.ws-btn {
    list-style: none;
}

summary.ws-btn::-webkit-details-marker {
    display: none;
}

.ws-menu-panel button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    background: none;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    color: var(--text);
    cursor: pointer;
}

.ws-menu-panel button:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

/* Rows near the bottom flip their menu upwards so the scrolling content
   panel doesn't clip it. */
.ws-lic-table tbody tr:nth-last-child(-n+2) .ws-menu-panel {
    top: auto;
    bottom: calc(100% + 8px);
}

.ws-cell-label {
    display: none;
}

@media (max-width: 900px) {
    .ws-lic-table,
    .ws-lic-table tbody,
    .ws-lic-table tr,
    .ws-lic-table td {
        display: block;
    }

    .ws-lic-table thead {
        display: none;
    }

    .ws-lic-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
    }

    .ws-lic-table tr[hidden] {
        display: none;
    }

    .ws-lic-table tbody tr:last-child {
        border-bottom: 0;
    }

    .ws-lic-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border: 0;
    }

    .ws-lic-table tbody tr:hover td {
        background: none;
    }

    .ws-lic-table td:first-child {
        padding-bottom: 10px;
    }

    .ws-lic-table td:last-child {
        justify-content: stretch;
        padding-top: 12px;
    }

    .ws-row-actions {
        width: 100%;
    }

    .ws-row-actions .ws-btn:not(.ws-btn--icon) {
        flex: 1;
        justify-content: center;
    }

    .ws-cell-label {
        display: inline;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-muted);
    }

    .ws-lic-table tbody tr:nth-last-child(-n+2) .ws-menu-panel {
        top: calc(100% + 8px);
        bottom: auto;
    }
}

.ws-table {
    width: 100%;
    border-collapse: collapse;
}

.ws-table th {
    padding: 10px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.ws-table td {
    padding: 13px 18px;
    font-size: 13.5px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.ws-table tbody tr:last-child td {
    border-bottom: 0;
}

.ws-table tbody tr:hover td {
    background: var(--surface-soft);
}

.ws-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 44px 20px;
    text-align: center;
}

.ws-empty svg {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    stroke: var(--gray-400);
}

.ws-empty-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-empty-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.ws-empty .ws-btn {
    margin-top: 10px;
}

.ws-empty-text--flush {
    padding: 18px;
}

.ws-actions {
    display: grid;
}

.ws-actions a {
    padding: 12px 18px;
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.ws-actions a:last-child {
    border-bottom: 0;
}

.ws-actions a:hover {
    color: var(--text-strong);
    background: var(--surface-soft);
}

.ws-activity {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.ws-activity li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px;
}

.ws-activity i {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
}

.ws-activity p {
    margin: 0;
    font-size: 13px;
    color: var(--text);
}

.ws-activity small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.ws-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
}

.ws-pager a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.ws-pager a:hover {
    color: var(--text-strong);
}

.lp-content:has(#dashboard.active) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.lp-tab#dashboard.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ws-activity-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ws-activity-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.ws-activity-table td,
.ws-activity-table th {
    padding-top: 8px;
    padding-bottom: 8px;
}

.ws-activity-link {
    color: var(--text-strong);
    font-weight: 600;
    text-decoration: none;
}

.ws-activity-link:hover {
    text-decoration: underline;
}

.ws-pager-nav {
    justify-content: center;
}

.ws-pager-nav .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ws-pager-nav .page-item.disabled .page-link {
    opacity: 0.35;
    pointer-events: none;
}

.ws-pager-nav .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.ws-pager-nav .page-item.active .page-link {
    background: var(--text-strong);
    border-color: var(--text-strong);
    color: #fff;
}

.ws-pager-nav .page-link:hover {
    color: var(--text-strong);
    border-color: var(--border-strong);
}

.ws-pager-nav .page-item.active .page-link:hover {
    color: #fff;
}

@media (max-width: 1100px) {
    .ws-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ws-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ws-stat:nth-child(odd) {
        border-left: 0;
    }

    .ws-stat:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }
}

/* ==========================================================================
   Seats console (manage seats + seat details)
   ========================================================================== */
.ws-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.ws-back:hover {
    color: var(--text-strong);
}

.ws-back svg {
    width: 14px;
    height: 14px;
}

/* License key chip in the page header — click to copy. */
.ws-key {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.ws-key:hover {
    background: var(--surface-soft);
    border-color: var(--border-strong);
}

.ws-key-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ws-key-value {
    font-family: ui-monospace, Consolas, Menlo, monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-strong);
}

.ws-key svg {
    width: 13px;
    height: 13px;
    color: var(--gray-400);
}

.ws-panel-head small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.ws-panel-body {
    padding: 16px 18px;
}

/* Subscription state and seat capacity share one card: two layers, one border. */
.ws-lic-overview {
    margin-bottom: 16px;
    overflow: hidden;
}

.ws-lic-overview-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

.ws-lic-overview-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-muted);
}

.ws-lic-overview-ic svg {
    width: 16px;
    height: 16px;
}

.ws-lic-overview--warn .ws-lic-overview-ic {
    color: var(--warning);
}

.ws-lic-overview--ok .ws-lic-overview-ic {
    color: var(--success);
}

.ws-lic-overview-body {
    flex: 1;
    min-width: 0;
    font-size: 13px;
}

.ws-lic-overview-body b {
    margin-right: 8px;
    font-size: 13.5px;
    color: var(--text-strong);
}

.ws-lic-overview-body span {
    color: var(--text-muted);
}

.ws-lic-overview-meta {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ws-lic-overview-cap {
    padding: 18px;
}

.ws-cap-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ws-cap-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ws-cap-value {
    font-size: 13px;
    color: var(--text-muted);
}

.ws-cap-value strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-cap-bar {
    height: 8px;
    overflow: hidden;
    background: var(--gray-200);
    border-radius: 99px;
}

.ws-cap-bar i {
    display: block;
    height: 100%;
    background: var(--brand-900);
    border-radius: 99px;
}

.ws-cap-bar i.is-warn {
    background: var(--warning);
}

.ws-cap-bar i.is-full {
    background: var(--error);
}

.ws-cap-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.ws-cap-foot b {
    font-weight: 600;
    color: var(--text-strong);
}

/* Seat cell: avatar + name/email, same rhythm as the product cell. */
.ws-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-av {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-deep);
}

.ws-av--lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 22px;
}

.ws-person b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-strong);
}

.ws-person small {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.ws-btn--danger {
    color: var(--error);
    border-color: #eccdcd;
}

.ws-btn--danger:hover {
    color: var(--error);
    background: #fdf2f2;
    border-color: #e3b7b7;
}

.ws-btn--block {
    width: 100%;
    justify-content: center;
}

.ws-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ── Seat details ─────────────────────────────────────────────────────── */
.ws-facts--stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    margin-top: 16px;
    padding-top: 14px;
    background: none;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    text-align: left;
}

.ws-facts--stack > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    font-size: 12.5px;
}

.ws-facts--stack dt {
    margin: 0;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text-muted);
}

.ws-facts--stack dd {
    font-size: 12.5px;
    font-weight: 500;
}

.ws-identity-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.ws-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ws-mstat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ws-mstat-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--accent-deep);
}

.ws-mstat-ic svg {
    width: 16px;
    height: 16px;
}

.ws-mstat-v {
    display: block;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-strong);
}

.ws-mstat-l {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Logins-per-day chart ─────────────────────────────────────────────── */
.ws-chart-wrap {
    padding: 16px 16px 12px;
}

.ws-chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.ws-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.ws-chart-legend i {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 99px;
}

.ws-chart-range {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.ws-chart-range a {
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.ws-chart-range a.is-on {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-strong);
    box-shadow: var(--shadow-sm);
}

.ws-bars {
    display: grid;
    align-items: end;
    gap: 8px;
    height: 160px;
    padding: 0 2px;
}

.ws-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
    min-width: 0;
}

.ws-bar-stack {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: 100%;
    max-width: 22px;
    height: 100%;
    overflow: hidden;
    background: var(--gray-100);
    border-radius: 8px;
}

.ws-bar-seg {
    width: 100%;
    background: var(--brand-900);
}

.ws-chart-legend i.ws-bar-seg {
    width: 10px;
}

.ws-bar-seg--1 {
    background: var(--brand-900);
}

.ws-bar-seg--2 {
    background: var(--gray-300);
}

.ws-bar-seg--3 {
    background: var(--accent-deep);
}

.ws-bar-seg--4 {
    background: var(--gray-500);
}

.ws-bar-seg--5 {
    background: var(--accent-light);
}

.ws-bar-day {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.ws-bar-col.is-today .ws-bar-day {
    font-weight: 600;
    color: var(--text-strong);
}

.ws-bar-col.is-today .ws-bar-stack {
    box-shadow: inset 0 0 0 1.5px var(--brand-900);
}

.ws-chart-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
}

.ws-chart-summary b {
    font-weight: 600;
    color: var(--text-strong);
}

.ws-panel-note {
    margin: 0;
    padding: 12px 18px;
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
}

.ws-pc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.ws-pc-name {
    font-weight: 600;
    color: var(--text-strong);
}

/* ── Dialogs (add seat / buy seats) ───────────────────────────────────── */
.ws-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.ws-backdrop[hidden],
.ws-sheet[hidden] {
    display: none;
}

.ws-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 61;
    width: min(430px, 92vw);
    max-height: 90vh;
    overflow: auto;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 30px 70px -30px rgba(15, 23, 42, 0.5);
}

.ws-sheet-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.ws-sheet-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
}

.ws-sheet-head small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.ws-sheet-body {
    padding: 18px;
}

.ws-sheet-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 18px;
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
}

.ws-field-grid {
    display: grid;
    gap: 12px;
}

.ws-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ws-field > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.ws-field i {
    font-style: normal;
    color: var(--error);
}

.ws-field input {
    padding: 9px 13px;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.ws-field input::placeholder {
    color: var(--gray-400);
}

.ws-field input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.ws-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 16px;
    padding: 3px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ws-stepper input {
    width: 60px;
    padding: 4px 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: var(--text-strong);
    outline: none;
}

.ws-summary {
    padding: 13px 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
}

.ws-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.ws-summary div:last-child {
    margin-bottom: 0;
}

.ws-summary b {
    color: var(--text-strong);
}

@media (max-width: 900px) {
    .ws-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-lic-overview-status {
        flex-wrap: wrap;
    }

    .ws-lic-overview-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

.footer {
    min-height: 44px;
    padding: 8px 24px;
    background: var(--footer-bg);
    border-top: 1px solid var(--chrome-line);
}

.footer-inner {
    gap: 8px 16px;
}

.footer p,
.footer-links a {
    font-size: 12px;
    color: var(--footer-text);
}

.footer-links {
    gap: 14px;
}

.footer-links a:hover,
.footer-brand:hover .footer-brand-text {
    color: var(--white);
}

.footer-brand,
.footer-brand-text {
    color: var(--footer-text);
}

.footer-brand {
    gap: 6px;
}

.footer-brand-mark {
    width: 20px;
    height: 20px;
}

.footer-brand .logo-text {
    font-size: 14px;
    --brand-off: #ffffff;
    --brand-dim: 1;
}

.footer-social {
    gap: 6px;
}

.footer-social-link {
    width: 26px;
    height: 26px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--chrome-line);
}

.footer-social-link svg {
    width: 13px;
    height: 13px;
}

.nav-ico,
.mobile-menu-btn .icon-close,
.nav-backdrop,
.nav-menu-kicker {
    display: none;
}

.mobile-menu-btn .icon-open,
.mobile-menu-btn .icon-close {
    width: 24px;
    height: 24px;
}

.mobile-menu-btn[aria-expanded="true"] .icon-open {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-close {
    display: block;
}

@media (max-width: 768px) {
    .site-announcement {
        min-height: 32px;
        padding: 6px 14px;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: center;
        font-size: 12px;
        white-space: nowrap;
    }

    .site-announcement-title,
    .site-announcement-action,
    .footer-copy-full {
        display: none;
    }

    .site-announcement-short,
    .footer-copy-short {
        display: inline;
    }

    .footer {
        padding: 6px 14px;
    }

    .footer-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .footer-social {
        display: none;
    }

    .footer-brand-text,
    .footer-links a,
    .footer-copy {
        font-size: 11px;
        white-space: nowrap;
    }

    .footer-brand-mark {
        width: 18px;
        height: 18px;
    }

    .navbar-inner {
        position: relative;
        z-index: 2;
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-menu-btn .icon-open,
    .mobile-menu-btn .icon-close {
        width: 16px;
        height: 16px;
    }

    .nav-backdrop.is-on {
        display: block;
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 1;
    }

    .navbar .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1px;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        z-index: 2;
        width: min(214px, calc(100vw - 28px));
        margin: 0;
        padding: 6px;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
        max-height: min(70dvh, 420px);
        overflow: auto;
        animation: nav-pop .16s ease;
    }

    @keyframes nav-pop {
        from { opacity: 0; transform: translateY(-6px); }
    }

    .navbar .nav-links > li {
        width: 100%;
    }

    .navbar .nav-links a {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 34px;
        padding: 4px 6px;
        border-radius: 9px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 550;
        line-height: 1.1;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a.nav-pricing:hover {
        background: #f4f6f9 !important;
        color: #0f172a;
    }

    .navbar .nav-links .nav-pricing-text {
        background: none;
        -webkit-text-fill-color: #a86b12;
        color: #a86b12;
        animation: none;
        filter: none;
        font-size: 13px;
        font-weight: 650;
    }

    .nav-ico {
        display: grid;
        width: 22px;
        height: 22px;
        place-items: center;
        flex: none;
        border-radius: 7px;
        background: #f1f4f8;
        color: #334155;
    }

    .nav-ico svg {
        width: 13px;
        height: 13px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .navbar .nav-links a.nav-pricing .nav-ico {
        background: rgba(212, 175, 55, 0.18);
        color: #a86b12;
    }

    .nav-menu-kicker {
        display: none;
    }

    .nav-mobile-account,
    .nav-mobile-trial {
        border-top: 1px solid #e7ebf0;
        display: grid;
        gap: 1px;
        margin-top: 4px;
        padding-top: 4px;
    }

    .nav-mobile-account a {
        color: #0f172a !important;
    }

    .nav-mobile-account a::before {
        display: none;
    }

    .nav-menu-auth {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .nav-menu-auth a {
        justify-content: center;
        min-height: 32px;
        padding: 0 6px;
        background: #f4f6f9;
        font-size: 12px;
        font-weight: 650;
    }

    .nav-menu-auth .nav-ico {
        width: 16px;
        height: 16px;
        background: transparent;
    }

    .nav-menu-auth .nav-ico svg {
        width: 13px;
        height: 13px;
    }

    .nav-mobile-account a.nav-menu-accent,
    .nav-menu-auth a.nav-menu-accent {
        background: #111317;
        color: #ffffff !important;
    }

    .nav-menu-auth a.nav-menu-accent .nav-ico {
        background: transparent;
        color: #ffffff;
    }

    .footer {
        padding: 6px 14px;
    }

    .footer-inner {
        gap: 8px;
    }
}

/* Home page: convert formerly dark presentation sections to light surfaces. */
.home-scroll,
.home-section--dark,
.home-features,
.home-future,
.home-compare {
    color: var(--text);
    background:
        radial-gradient(900px 480px at 88% 0%, rgba(var(--accent-rgb), 0.08), transparent 62%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.home-section--soft {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.home-heading--on-dark,
.home-feature-row h3,
.home-future-card-copy h3 {
    color: var(--text-strong);
}

.home-subhead--on-dark,
.home-feature-row p,
.home-feature-bullets li,
.home-future-card-copy p,
.home-future-list li {
    color: var(--text-muted);
}

.home-future-list li:hover {
    color: var(--text-strong);
}

.home-hero {
    color: var(--text);
    background:
        radial-gradient(720px 420px at 88% 0%, rgba(var(--accent-rgb), 0.14), transparent 64%),
        radial-gradient(620px 360px at 0% 52%, rgba(0, 0, 0, 0.05), transparent 68%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.home-hero::before,
.home-future-grid-bg,
.home-compare-bg {
    background-image:
        linear-gradient(rgba(23, 32, 51, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 32, 51, 0.045) 1px, transparent 1px);
}

.home-hero-copy h1 {
    color: var(--text-strong);
}

.home-hero-copy p.lead,
.home-hero-trust,
.home-hero-cycle {
    color: var(--text-muted);
}

.home-hero-trust .divider {
    background: var(--border-strong);
}

.home-cta--ghost,
.home-hero-scroll {
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--border-strong);
}

.home-cta--ghost:hover,
.home-hero-scroll:hover {
    color: var(--accent);
    background: var(--surface);
    border-color: var(--accent);
}

.home-hero-visual {
    background: var(--surface-raised);
    border-color: var(--border);
    box-shadow: var(--shadow-xl);
}

.home-hero-scroll,
.home-hero-badge,
.home-future-card,
.home-compare-table-wrap {
    background-color: var(--surface-raised);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.home-stat {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.home-stat:hover {
    background: var(--surface-raised);
}

.home-stat-text {
    color: var(--text);
}

.home-compare-table {
    color: var(--text);
}

.home-compare-table thead th,
.home-compare-table thead th .th-underline,
.home-compare-table tbody td,
.home-compare-table tbody td:first-child,
.home-compare-table tbody td.col-brand-cell,
.cmp-rowicon,
.cmp-none-pill {
    color: var(--text-muted);
}

.home-compare-table tbody td:first-child,
.home-compare-table tbody td.col-brand-cell {
    color: var(--text-strong);
}

.home-compare-table tbody tr {
    background: var(--surface);
}

.home-compare-table tbody tr:hover {
    background: var(--surface-soft);
}

.home-compare-table tbody td,
.home-compare-table tbody td:first-child,
.home-compare-table tbody td:last-child {
    border-color: var(--border);
}

/* =========================================================================
   Shop — viewport-locked like the workspace: the all-access billboard on top,
   then two panels (filters, results) that share the workspace panel styling
   and end on the same line. Only the results grid scrolls.
   ========================================================================= */
.shop-page {
    flex: 1;
    display: flex;
    min-height: 0;
    box-sizing: border-box;
    background: var(--canvas);
    padding-block: var(--user-page-pt);
    padding-inline: var(--page-inset);
}

.shop-shell {
    display: flex;
    flex-direction: column;
    gap: var(--ws-gutter);
    width: 100%;
    max-width: var(--max-width);
    min-height: 0;
    margin-inline: auto;
}

/* ── billboard ───────────────────────────────────────────────────────── */
.shop-bb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
    box-sizing: border-box;
    height: 92px;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 20px 24px;
    border-radius: var(--ws-panel-radius);
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(110% 140% at 85% 0%, #28324a 0%, rgba(40, 50, 74, 0) 55%),
        linear-gradient(135deg, #0b0f19 0%, #161c2b 100%);
    box-shadow: var(--shadow-lg);
}

.shop-bb-text {
    flex: 1;
    min-width: 0;
}

.shop-bb-text b,
.page-title-bb .shop-bb-text h1 {
    display: block;
    margin: 0;
    overflow: hidden;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shop-bb-text span,
.page-title-bb .shop-bb-text p {
    display: block;
    margin: 5px 0 0;
    overflow: hidden;
    max-width: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    color: #a9b3c4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shop-bb-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 11px 18px;
    border-radius: 10px;
    background: #fff;
    color: #0b0f19;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.shop-bb-cta svg {
    width: 15px;
    height: 15px;
}

.shop-bb:hover .shop-bb-cta {
    background: #e9edf3;
}

/* Page titles on Pricing and Contact use the same rectangle as the shop billboard. */
.page-title-bb {
    text-align: left;
    margin-bottom: 0;
}

.pricing-section .page-title-bb {
    margin-bottom: 28px;
}

.page-title-bb .shop-bb-text h1 {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.shop-promo:not(:has(.shop-bb)) {
    display: none;
}

/* Workspace slot for the same marketing strip. Hidden entirely when the
   admin turns the banner off, so the two columns keep their usual top edge. */
.ws-promo {
    flex: none;
    padding-inline: var(--page-inset);
}

.ws-promo-inner {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.ws-promo:not(:has(.shop-bb)) {
    display: none;
}

@media (min-width: 901px) {
    .ws-promo:has(.shop-bb) {
        padding-top: var(--user-page-pt);
    }

    .ws-shell:has(.ws-promo .shop-bb) .lp-section {
        padding-top: var(--ws-gutter);
    }
}

@media (max-width: 900px) {
    .ws-promo {
        padding: 16px var(--user-page-px) 0;
    }
}

/* ── the two panels ──────────────────────────────────────────────────── */
.shop-body {
    display: grid;
    grid-template-columns: var(--ws-rail) 1fr;
    gap: var(--ws-gutter);
    flex: 1;
    min-height: 0;
}

.shop-filters,
.shop-results {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ws-panel-radius);
    box-shadow: var(--shadow-sm);
}

.shop-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
}

.shop-panel-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
}

.shop-panel-head > a {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.shop-panel-head > a:hover {
    color: var(--text-strong);
}

.shop-filters-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 18px;
}

.shop-filters-body > .shop-search {
    display: block;
    max-width: none;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

/* The rail search carries a divider under it, so the icon is anchored to the
   input rather than centred on the whole label. */
.shop-filters-body > .shop-search svg {
    top: 17px;
    transform: none;
}

.shop-fgroup + .shop-fgroup {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.shop-fgroup h3 {
    margin: 0 0 9px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.shop-fitem {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-inline: -8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
}

.shop-fitem:hover {
    background: var(--surface-soft);
    color: var(--text-strong);
}

.shop-fitem.is-on {
    background: var(--surface-muted);
    color: var(--text-strong);
    font-weight: 600;
}

.shop-fitem .n {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.shop-fcheck {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.shop-fcheck input {
    width: 15px;
    height: 15px;
    accent-color: var(--text-strong);
}

/* ── results head ────────────────────────────────────────────────────── */
.shop-search {
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 340px;
}

.shop-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.shop-search input {
    width: 100%;
    padding: 8px 12px 8px 33px;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.shop-search input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.shop-count {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.shop-panel-head .shop-count {
    margin-left: auto;
}

.shop-select {
    padding: 8px 12px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

/* ── results grid ────────────────────────────────────────────────────── */
.shop-results-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

/* Six per page: three across, two down, so the panel never scrolls. */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shop-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shop-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.shop-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(120% 120% at 18% 0%, #fff 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--surface-soft) 0%, var(--surface-muted) 100%);
    overflow: hidden;
}

/* Faint drafting grid so an image-less product still looks designed. */
.shop-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 25%, transparent 78%);
    mask-image: radial-gradient(80% 70% at 50% 45%, #000 25%, transparent 78%);
}

.shop-thumb img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.shop-card:hover .shop-thumb img {
    transform: scale(1.04);
}

.shop-thumb > svg {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    color: var(--gray-400);
}

.shop-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--text-strong);
    color: #fff;
}

.shop-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px 0;
}

.shop-card-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-strong);
}

.shop-card-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 16px 0;
    padding: 12px 0 14px;
    border-top: 1px solid var(--border);
}

.shop-card-foot .shop-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
}

.shop-card:hover .shop-card-foot .shop-btn svg {
    transform: translateX(2px);
}

.shop-price {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-strong);
}

.shop-price small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.shop-price--free {
    color: var(--success);
}

.shop-price--quote {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── buttons, empty state, pager ─────────────────────────────────────── */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

.shop-btn:hover {
    color: var(--text-strong);
    background: var(--surface-muted);
    border-color: var(--border-strong);
}

.shop-btn--sm {
    padding: 7px 12px;
    font-size: 12.5px;
}

.shop-btn--dark {
    color: #fff;
    background: var(--text-strong);
    border-color: var(--text-strong);
}

.shop-btn--dark:hover {
    color: #fff;
    background: #262626;
    border-color: #262626;
}

.shop-btn--block {
    width: 100%;
    margin-top: 14px;
}

.shop-empty {
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 54px 20px;
    text-align: center;
}

.shop-empty svg {
    width: 32px;
    height: 32px;
    color: var(--gray-400);
}

.shop-empty b {
    font-size: 14.5px;
    color: var(--text-strong);
}

.shop-empty span {
    font-size: 13px;
    color: var(--text-muted);
}

.shop-empty .shop-btn {
    margin-top: 6px;
}

.shop-results-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: 11px 16px;
    border-top: 1px solid var(--border);
}

.shop-pager {
    display: flex;
    gap: 6px;
}

.shop-pager a,
.shop-pager span {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
}

.shop-pager a:hover {
    color: var(--text-strong);
    border-color: var(--border-strong);
}

.shop-pager svg {
    width: 15px;
    height: 15px;
}

.shop-pager span.is-on {
    color: #fff;
    background: var(--text-strong);
    border-color: var(--text-strong);
}

.shop-pager span.is-off {
    color: var(--gray-300);
    background: var(--surface-soft);
}

@media (max-width: 1100px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Narrow screens scroll the document instead, like the rest of the site. */
@media (max-width: 900px) {
    .shop-page {
        display: block;
        padding-block: var(--user-page-pt) var(--user-page-pb);
        padding-inline: var(--user-page-px);
        overflow-y: auto;
    }

    .shop-body {
        grid-template-columns: 1fr;
    }

    .shop-filters,
    .shop-results {
        overflow: visible;
    }

    .shop-filters-body,
    .shop-results-body {
        overflow: visible;
    }

    .shop-bb {
        height: 156px;
        align-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
        padding: 16px 18px;
    }

    .shop-bb-text {
        flex: 1 1 100%;
    }

    .shop-bb-text b,
    .page-title-bb .shop-bb-text h1,
    .shop-bb-text span,
    .page-title-bb .shop-bb-text p {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .shop-bb-cta {
        flex: none;
        width: auto;
        margin-left: 0;
    }

    .shop-panel-head {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

::selection {
    color: var(--on-accent);
    background: var(--accent);
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}
