:root {
    --pw-bg: #eef3f8;
    --pw-surface: rgba(255, 255, 255, 0.88);
    --pw-surface-strong: #ffffff;
    --pw-border: rgba(24, 47, 83, 0.1);
    --pw-text: #17304f;
    --pw-muted: #617592;
    --pw-primary: #0f74ff;
    --pw-primary-deep: #0a3f8f;
    --pw-accent: #11a27a;
    --pw-shadow: 0 24px 60px rgba(16, 42, 79, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--pw-text);
    background:
        radial-gradient(circle at top left, rgba(15, 116, 255, 0.14), transparent 35%),
        radial-gradient(circle at top right, rgba(17, 162, 122, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.pw-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.pw-topbar,
.pw-grid,
.pw-card,
.pw-table-card {
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    backdrop-filter: blur(16px);
    box-shadow: var(--pw-shadow);
}

.pw-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: 24px;
    margin-bottom: 18px;
}

.pw-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 1.15rem;
}

.pw-brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.pw-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pw-nav a,
.pw-nav button {
    border: 0;
    background: rgba(15, 116, 255, 0.08);
    color: var(--pw-primary-deep);
    padding: 11px 16px;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}

.pw-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.pw-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 116, 255, 0.08);
    color: var(--pw-primary-deep);
    font-size: 0.9rem;
    font-weight: 600;
}

.pw-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.pw-portal-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 34px;
    border-radius: 30px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(15, 33, 61, 0.18);
}

.pw-portal-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(6px);
}

body[data-entity="vendor"] .pw-portal-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
        linear-gradient(135deg, #0f2f52 0%, #0f74ff 52%, #11a27a 100%);
}

body[data-entity="business"] .pw-portal-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
        linear-gradient(135deg, #102944 0%, #1174b8 46%, #0ea572 100%);
}

body[data-entity="company"] .pw-portal-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
        linear-gradient(135deg, #1a2744 0%, #7c4d12 52%, #d97706 100%);
}

.pw-portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    font-size: 0.9rem;
}

.pw-portal-title {
    margin: 18px 0 12px;
    max-width: 16ch;
    font-size: clamp(2.35rem, 3.7vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.pw-portal-copy {
    margin: 0;
    max-width: 70ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.pw-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.pw-portal-actions .pw-btn.primary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--pw-primary-deep);
}

.pw-portal-actions .pw-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.pw-portal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.pw-portal-chip {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pw-portal-chip span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.pw-portal-chip strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
}

.pw-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pw-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pw-billing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.pw-billing-summary {
    min-height: 100%;
}

.pw-billing-plan-card {
    min-height: 100%;
}

.pw-billing-note {
    margin-top: 16px;
}

.pw-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pw-inventory-toolbar-card {
    position: sticky;
    top: 18px;
}

.pw-inventory-summary-grid {
    margin-top: 18px;
}

.pw-toolbar-actions {
    margin-top: 18px;
}

.pw-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 23, 41, 0.42);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 1200;
}

.pw-modal-dialog {
    width: min(100%, 760px);
    max-height: min(92vh, 980px);
    overflow: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--pw-border);
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(16, 42, 79, 0.22);
    padding: 24px;
}

.pw-modal-lg {
    width: min(100%, 980px);
}

.pw-modal-md {
    width: min(100%, 700px);
}

.pw-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pw-modal-close {
    border: 1px solid rgba(15, 116, 255, 0.12);
    background: rgba(15, 116, 255, 0.06);
    color: var(--pw-primary-deep);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pw-modal-actions {
    justify-content: flex-end;
    margin-top: 8px;
}

.pw-portal-panel {
    padding: 26px 28px;
    border-radius: 28px;
    border: 1px solid var(--pw-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--pw-shadow);
}

.pw-portal-panel-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
}

.pw-portal-panel-copy {
    margin: 0 0 18px;
    color: var(--pw-muted);
    line-height: 1.7;
}

.pw-portal-list {
    display: grid;
    gap: 12px;
}

.pw-portal-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(240, 246, 252, 0.9);
    border: 1px solid rgba(15, 116, 255, 0.08);
}

.pw-portal-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.pw-portal-item span {
    display: block;
    color: var(--pw-muted);
    line-height: 1.65;
}

.pw-card {
    border-radius: 28px;
    padding: 28px;
}

.pw-card-soft {
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--pw-border);
    background: rgba(255, 255, 255, 0.78);
}

.pw-tab-shell {
    display: grid;
    gap: 18px;
}

.pw-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 116, 255, 0.08);
}

.pw-tab-button {
    border: 1px solid rgba(15, 116, 255, 0.1);
    background: rgba(15, 116, 255, 0.04);
    color: var(--pw-primary-deep);
    padding: 11px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pw-tab-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
}

.pw-tab-button:hover {
    transform: translateY(-1px);
    background: rgba(15, 116, 255, 0.08);
}

.pw-tab-button.active {
    background: linear-gradient(135deg, var(--pw-primary-deep), var(--pw-primary));
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 116, 255, 0.18);
}

.pw-tab-panel {
    display: grid;
    gap: 18px;
}

.pw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 116, 255, 0.08);
    color: var(--pw-primary-deep);
    font-weight: 700;
    font-size: 0.9rem;
}

.pw-title {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
}

.pw-copy {
    margin: 0;
    color: var(--pw-muted);
    line-height: 1.7;
    max-width: 62ch;
}

.pw-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pw-stat {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,246,252,0.88));
    border: 1px solid rgba(15, 116, 255, 0.08);
}

.pw-stat strong {
    display: block;
    font-size: 1.8rem;
    margin-top: 10px;
}

.pw-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    border-radius: 28px;
    padding: 18px;
}

.pw-dashboard-grid,
.pw-landing-grid,
.pw-auth-grid {
    display: grid;
    gap: 18px;
}

.pw-auth-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.pw-auth-stage {
    display: grid;
    gap: 18px;
}

.pw-auth-sidecard {
    padding: 24px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--pw-border);
    box-shadow: var(--pw-shadow);
    position: sticky;
    top: 28px;
}

.pw-auth-sidecard strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.pw-auth-sidecard p {
    margin: 0 0 18px;
    color: var(--pw-muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

.pw-auth-side-links {
    display: grid;
    gap: 10px;
}

.pw-auth-side-link {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,253,0.94));
    border: 1px solid rgba(15, 116, 255, 0.08);
}

.pw-auth-side-link strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.pw-auth-side-link span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.pw-dashboard-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.pw-dashboard-grid.business {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pw-landing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.pw-auth-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    margin-top: 18px;
}

body[data-screen="login"] .pw-auth-shell {
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
}

body[data-screen="login"] .pw-auth-stage {
    gap: 20px;
}

body[data-screen="login"] .pw-auth-sidecard {
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(15, 33, 61, 0.18);
    overflow: hidden;
    position: sticky;
}

body[data-screen="login"][data-entity="vendor"] .pw-auth-sidecard {
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(145deg, #0f2f52 0%, #0f74ff 56%, #11a27a 100%);
    color: #fff;
}

body[data-screen="login"][data-entity="business"] .pw-auth-sidecard {
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(145deg, #102944 0%, #1174b8 52%, #0ea572 100%);
    color: #fff;
}

body[data-screen="login"][data-entity="company"] .pw-auth-sidecard {
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(145deg, #1a2744 0%, #7c4d12 52%, #d97706 100%);
    color: #fff;
}

body[data-screen="login"] .pw-auth-sidecard p,
body[data-screen="login"] .pw-auth-side-link span {
    color: rgba(255, 255, 255, 0.82);
}

body[data-screen="login"] .pw-auth-side-link {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

body[data-screen="login"] .pw-auth-side-link strong {
    color: #fff;
}

body[data-screen="login"] .pw-auth-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(380px, 0.9fr);
    align-items: stretch;
}

.pw-auth-intro-card {
    display: grid;
    gap: 18px;
    min-height: 100%;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.92));
    border: 1px solid rgba(24, 47, 83, 0.08);
    box-shadow: var(--pw-shadow);
}

.pw-auth-intro-card .pw-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
}

.pw-auth-intro-card .pw-copy {
    max-width: 52ch;
}

.pw-auth-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pw-auth-metric {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 47, 83, 0.08);
}

.pw-auth-metric span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.76rem;
    margin-bottom: 8px;
}

.pw-auth-metric strong {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.pw-auth-form-card {
    display: grid;
    gap: 20px;
    min-height: 100%;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(24, 47, 83, 0.08);
    box-shadow: 0 24px 60px rgba(16, 42, 79, 0.12);
}

.pw-auth-form-head {
    display: grid;
    gap: 10px;
}

.pw-auth-form-head h2 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.pw-auth-form-head p {
    margin: 0;
    color: var(--pw-muted);
    line-height: 1.65;
}

.pw-auth-form-grid {
    display: grid;
    gap: 16px;
}

.pw-auth-input {
    display: grid;
    gap: 8px;
}

.pw-auth-input span {
    font-size: 0.92rem;
    font-weight: 700;
}

.pw-auth-input input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 47, 83, 0.12);
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(243, 248, 252, 0.92));
    font: inherit;
    color: var(--pw-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pw-auth-input input:focus {
    outline: none;
    border-color: rgba(15, 116, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(15, 116, 255, 0.12);
    transform: translateY(-1px);
}

.pw-auth-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pw-auth-submit {
    min-width: 180px;
    justify-content: center;
}

.pw-auth-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.pw-auth-meta-links {
    display: grid;
    gap: 6px;
}

.pw-auth-meta-links a {
    color: var(--pw-primary-deep);
    font-weight: 700;
}

.pw-auth-meta-links span {
    color: var(--pw-muted);
    font-size: 0.88rem;
}

.pw-auth-notice {
    display: none;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 47, 83, 0.08);
    background: rgba(244, 248, 252, 0.94);
    color: var(--pw-muted);
    line-height: 1.55;
}

.pw-auth-notice.active {
    display: block;
}

.pw-auth-notice.error {
    border-color: rgba(222, 92, 83, 0.22);
    background: rgba(255, 239, 237, 0.96);
    color: #9b2c23;
}

.pw-stack {
    display: grid;
    gap: 18px;
}

.pw-side-tabs {
    display: grid;
    gap: 10px;
}

.pw-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--pw-border);
    background: rgba(255,255,255,0.88);
    cursor: pointer;
    font: inherit;
    color: var(--pw-text);
}

.pw-tab.active {
    background: linear-gradient(135deg, rgba(15, 116, 255, 0.16), rgba(15, 116, 255, 0.06));
    border-color: rgba(15, 116, 255, 0.2);
}

.pw-panel {
    display: none;
}

.pw-panel.active {
    display: block;
}

.pw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pw-field {
    display: grid;
    gap: 8px;
}

.pw-field label {
    font-size: 0.92rem;
    font-weight: 700;
}

.pw-field input,
.pw-field textarea,
.pw-field select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--pw-border);
    background: rgba(247, 250, 253, 0.92);
    font: inherit;
    color: var(--pw-text);
}

.pw-field textarea {
    min-height: 120px;
    resize: vertical;
}

.pw-field.full {
    grid-column: 1 / -1;
}

.pw-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pw-actions.tight {
    margin-top: 12px;
}

.pw-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pw-btn {
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pw-btn.primary {
    background: linear-gradient(135deg, var(--pw-primary), var(--pw-primary-deep));
    color: #fff;
}

.pw-btn.secondary {
    background: rgba(15, 116, 255, 0.08);
    color: var(--pw-primary-deep);
}

.pw-btn.tertiary {
    background: rgba(15, 23, 42, 0.06);
    color: var(--pw-text);
}

.pw-btn.danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.pw-btn-small {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.pw-table-card {
    border-radius: 24px;
    padding: 18px;
    margin-top: 18px;
}

.pw-summary-grid,
.pw-directory-grid {
    display: grid;
    gap: 16px;
}

.pw-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pw-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.pw-kpi-card,
.pw-directory-card {
    border-radius: 22px;
    border: 1px solid var(--pw-border);
    background: rgba(255, 255, 255, 0.92);
    padding: 18px;
}

.pw-kpi-card strong {
    display: block;
    font-size: 1.65rem;
    margin-top: 10px;
}

.pw-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 116, 255, 0.08);
    color: var(--pw-primary-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.pw-directory-card h3 {
    margin: 10px 0 8px;
    font-size: 1.15rem;
}

.pw-tier-card {
    border-top: 4px solid var(--tier-color, var(--pw-primary));
}

.pw-directory-card p {
    margin: 0;
    color: var(--pw-muted);
    line-height: 1.7;
}

.pw-directory-meta {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.pw-directory-meta span {
    color: var(--pw-muted);
    font-size: 0.92rem;
}

.pw-banner {
    margin-bottom: 18px;
}

.pw-shell-note {
    color: var(--pw-muted);
    line-height: 1.7;
    margin-top: 10px;
}

.pw-section-title {
    font-size: 1.25rem;
}

.pw-toolbar {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.pw-toolbar input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--pw-border);
    background: rgba(247, 250, 253, 0.92);
    font: inherit;
    color: var(--pw-text);
}

.pw-inline-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 47, 83, 0.08);
    background: rgba(246, 249, 252, 0.9);
    color: var(--pw-muted);
}

.pw-inline-note.warn {
    border-color: rgba(255, 176, 32, 0.2);
    background: rgba(255, 244, 218, 0.9);
    color: #8b5a00;
}

.pw-empty-card {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 20px;
    border-radius: 22px;
    border: 1px dashed rgba(24, 47, 83, 0.14);
    background: rgba(255, 255, 255, 0.7);
    color: var(--pw-muted);
}

.pw-panel-shell {
    min-height: 320px;
}

.pw-tier-bronze {
    background: rgba(180, 83, 9, 0.12);
    color: #9a4f08;
}

.pw-tier-silver {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.pw-tier-gold {
    background: rgba(202, 138, 4, 0.14);
    color: #a16207;
}

.pw-tier-platinum {
    background: rgba(79, 70, 229, 0.14);
    color: #4338ca;
}

.pw-tier-newbie {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.pw-status-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.pw-inline-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pw-border);
}

.pw-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

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

.pw-table th,
.pw-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(24, 47, 83, 0.08);
    text-align: left;
    vertical-align: top;
}

.pw-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pw-muted);
}

.pw-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.pw-badge.success {
    color: #0a8559;
    background: rgba(18, 164, 95, 0.12);
}

.pw-badge.info {
    color: var(--pw-primary-deep);
    background: rgba(15, 116, 255, 0.12);
}

.pw-badge.warn {
    color: #a26700;
    background: rgba(255, 176, 32, 0.14);
}

.pw-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--pw-muted);
}

.pw-meta {
    color: var(--pw-muted);
    font-size: 0.92rem;
}

.pw-auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 18px;
    align-items: start;
}

.pw-auth-page > .pw-topbar {
    grid-column: 1 / -1;
}

.pw-auth-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.pw-auth-showcase-card,
.pw-auth-context-card {
    border-radius: 28px;
    border: 1px solid var(--pw-border);
    box-shadow: var(--pw-shadow);
}

.pw-auth-showcase-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    color: #fff;
}

.pw-auth-showcase-card::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -56px;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

body[data-entity="vendor"] .pw-auth-showcase-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #103055 0%, #1068d5 54%, #11a27a 100%);
}

body[data-entity="business"] .pw-auth-showcase-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #132d4a 0%, #0f6baa 48%, #0ea572 100%);
}

body[data-entity="company"] .pw-auth-showcase-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #192743 0%, #945b12 52%, #d97706 100%);
}

.pw-auth-showcase-card .pw-kicker {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

.pw-auth-showcase-card .pw-title,
.pw-auth-showcase-card .pw-copy {
    position: relative;
    z-index: 1;
}

.pw-auth-showcase-card .pw-copy {
    color: rgba(255, 255, 255, 0.82);
    max-width: 58ch;
}

.pw-vendor-auth-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
    align-items: stretch;
}

.pw-vendor-story-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.pw-vendor-story-card::after {
    content: "";
    position: absolute;
    inset: auto -70px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.pw-vendor-stat-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pw-vendor-stat {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.pw-vendor-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.pw-vendor-stat strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.pw-vendor-story-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.pw-vendor-story-item {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pw-vendor-story-item strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.pw-vendor-story-item span {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    font-size: 0.88rem;
}

.pw-vendor-auth-panel {
    display: grid;
    align-items: stretch;
}

body[data-entity="vendor"] .pw-vendor-auth-panel .pw-auth-form-card {
    min-height: 100%;
    padding: 34px 32px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(15, 33, 61, 0.14);
}

body[data-entity="vendor"] .pw-vendor-auth-panel .pw-auth-form-head {
    gap: 8px;
}

body[data-entity="vendor"] .pw-vendor-auth-panel .pw-auth-form-head h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.3rem);
}

body[data-entity="vendor"] .pw-vendor-auth-panel .pw-auth-form-head p {
    font-size: 0.95rem;
}

body[data-entity="vendor"] .pw-vendor-auth-panel .pw-auth-input input {
    min-height: 56px;
}

body.pw-vendor-auth-body {
    background:
        radial-gradient(circle at top left, rgba(15, 116, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #eef4fb 52%, #f9fbfd 100%);
}

body.pw-vendor-auth-body .pw-shell {
    width: min(1280px, calc(100% - 32px));
    padding-top: 22px;
}

body.pw-vendor-auth-body .pw-auth-page {
    display: block;
}

body.pw-vendor-auth-body .pw-topbar {
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(16, 42, 79, 0.10);
}

body.pw-vendor-auth-body .pw-brand {
    gap: 12px;
    font-size: 1.02rem;
}

body.pw-vendor-auth-body .pw-brand img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

body.pw-vendor-auth-body .pw-nav a {
    background: #fff;
    border: 1px solid rgba(24, 47, 83, 0.10);
    color: var(--pw-text);
    padding: 10px 14px;
}

body.pw-vendor-auth-body .pw-auth-page,
body.pw-vendor-auth-body .pw-vendor-auth-grid {
    gap: 22px;
    grid-template-columns: minmax(0, 1.14fr) minmax(460px, 0.86fr);
    min-height: calc(100vh - 148px);
}

body.pw-vendor-auth-body .pw-vendor-auth-grid {
    width: 100%;
    display: grid;
    margin-top: 22px;
}

body.pw-vendor-auth-body .pw-vendor-hero-card {
    padding: 38px;
    border-radius: 34px;
    min-height: 100%;
    box-shadow: 0 30px 80px rgba(15, 33, 61, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.pw-vendor-auth-body[data-screen="login"] .pw-vendor-hero-card {
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(145deg, #0d2745 0%, #0c4ea9 48%, #118c74 100%);
}

body.pw-vendor-auth-body[data-screen="register"] .pw-vendor-hero-card {
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(145deg, #102a4a 0%, #1368d7 52%, #1f9366 100%);
}

body.pw-vendor-auth-body .pw-vendor-hero-card .pw-kicker {
    width: fit-content;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
}

body.pw-vendor-auth-body .pw-vendor-hero-card .pw-title {
    margin: 0;
    max-width: 9ch;
    font-size: clamp(2.7rem, 4vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

body.pw-vendor-auth-body .pw-vendor-hero-card .pw-copy {
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.7;
}

body.pw-vendor-auth-body .pw-vendor-stat {
    padding: 18px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.pw-vendor-auth-body .pw-vendor-story-item {
    padding: 18px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

body.pw-vendor-auth-body .pw-vendor-auth-panel {
    display: block;
    height: 100%;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-form-card {
    padding: 36px 34px;
    border-radius: 34px;
    background: #ffffff;
    border: 1px solid rgba(24, 47, 83, 0.08);
    box-shadow: 0 26px 72px rgba(15, 33, 61, 0.12);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-form-head {
    gap: 8px;
    margin-bottom: 6px;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-form-head h2 {
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    line-height: 1;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-form-head p {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 28ch;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-input input,
body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-field input,
body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-field textarea,
body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-field select {
    min-height: 56px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(24, 47, 83, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-submit-row {
    flex-direction: column;
    align-items: stretch;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-submit {
    width: 100%;
    min-width: 0;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-meta-links {
    align-items: flex-start;
}

body.pw-vendor-auth-body .pw-vendor-story-list {
    gap: 10px;
}

body.pw-vendor-auth-body .pw-vendor-story-item span {
    font-size: 0.84rem;
    line-height: 1.45;
}

body.pw-vendor-auth-body .pw-vendor-auth-panel .pw-auth-notice {
    border-radius: 16px;
}

.pw-auth-pill-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pw-auth-pill {
    display: inline-flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
}

.pw-auth-context-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
}

.pw-auth-context-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
}

.pw-auth-context-card p {
    margin: 0;
    color: var(--pw-muted);
    line-height: 1.7;
}

.pw-auth-mini-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.pw-auth-mini-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 116, 255, 0.08);
    background: rgba(246, 249, 253, 0.94);
}

.pw-auth-mini-item span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.pw-auth-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.pw-auth-content-grid > .pw-panel-shell {
    order: 1;
}

.pw-auth-content-grid > .pw-auth-context-card {
    order: 2;
}

.pw-auth-simple-shell {
    width: min(840px, calc(100% - 28px));
    padding-top: 20px;
}

.pw-auth-simple-head {
    margin-bottom: 16px;
    padding: 22px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--pw-border);
    box-shadow: var(--pw-shadow);
}

.pw-auth-simple-head .pw-kicker {
    margin-bottom: 12px;
}

.pw-auth-simple-head .pw-title {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.pw-auth-simple-head .pw-copy {
    margin: 0;
    color: var(--pw-muted);
    line-height: 1.6;
}

.pw-auth-simple-panel {
    display: grid;
    gap: 16px;
}

.pw-auth-register-grid {
    gap: 16px;
}

.pw-auth-register-grid .pw-field.full:last-child {
    margin-top: -4px;
}

.pw-auth-success-card {
    display: grid;
    gap: 18px;
}

.pw-auth-success-dot {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 162, 122, 0.12);
    color: #0b7a5b;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pw-auth-success-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pw-auth-success-meta span {
    display: inline-flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(15, 116, 255, 0.08);
    color: var(--pw-primary-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .pw-auth-page {
        grid-template-columns: 1fr;
    }

    .pw-hero,
    .pw-grid,
    .pw-billing-grid,
    .pw-overview-grid,
    .pw-dashboard-grid,
    .pw-landing-grid,
    .pw-auth-grid,
    .pw-auth-shell,
    .pw-auth-showcase,
    .pw-auth-content-grid,
    .pw-portal-grid,
    .pw-portal-strip,
    .pw-summary-grid,
    .pw-directory-grid {
        grid-template-columns: 1fr;
    }

    .pw-auth-content-grid > .pw-panel-shell,
    .pw-auth-content-grid > .pw-auth-context-card {
        order: initial;
    }

    .pw-auth-metric-grid {
        grid-template-columns: 1fr;
    }

    .pw-vendor-auth-grid,
    .pw-vendor-stat-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pw-shell {
        width: min(100% - 20px, 100%);
    }

    .pw-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pw-auth-sidecard {
        position: static;
    }

    .pw-auth-intro-card,
    .pw-auth-form-card {
        padding: 22px;
        border-radius: 24px;
    }

    .pw-auth-simple-head {
        padding: 20px 22px;
        border-radius: 22px;
    }

    .pw-auth-showcase-card,
    .pw-auth-context-card {
        padding: 22px;
        border-radius: 24px;
    }

    .pw-portal-hero {
        padding: 26px 22px;
    }

    .pw-portal-title {
        max-width: none;
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .pw-form-grid {
        grid-template-columns: 1fr;
    }

    .pw-auth-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pw-auth-submit {
        width: 100%;
    }

    .pw-toolbar {
        flex-direction: column;
    }
}
