:root {
    --ink: #102321;
    --muted: #647572;
    --line: #d8e4e1;
    --surface: #ffffff;
    --soft: #eef6f4;
    --brand: #087a75;
    --brand-strong: #055f5b;
    --accent: #d8efea;
    --navy: #12313a;
    --warning: #d48a00;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(8, 122, 117, .12), transparent 34rem),
        var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

a,
button,
summary,
.button,
.nav-action,
.nav-cart,
.auth-card,
.auth-story,
.auth-proof-grid span,
.auth-proof-list span {
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        opacity .18s ease,
        transform .18s ease;
}

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand > span:last-child {
    min-width: 0;
}

.brand strong,
.brand small {
    overflow-wrap: anywhere;
}

.brand-mark,
.brand-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
    font-weight: 700;
}

.brand-mark img,
.brand-logo img {
    max-width: 28px;
    max-height: 28px;
}

.brand-logo {
    width: 64px;
    background: white;
    border: 1px solid var(--line);
}

.brand-logo img {
    max-width: 56px;
    max-height: 36px;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.menu-toggle,
.sidebar-toggle,
.sidebar-mobile-open {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0;
    color: white;
    background: var(--brand);
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.site-footer {
    margin-top: 40px;
    color: white;
    background: linear-gradient(135deg, var(--navy), #0b4d4a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr 1fr 1.05fr 1fr;
    gap: 28px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin-top: 0;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
    text-decoration: none;
}

.footer-dialog-button {
    min-height: 40px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    padding: 0 14px;
    color: white;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.footer-dialog-button:hover {
    background: rgba(255, 255, 255, .2);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-brand img:first-child {
    max-width: 170px;
    background: white;
    border-radius: 8px;
    padding: 8px;
}

.footer-brand img:last-child {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 7px;
}

.developer-dialog {
    width: min(780px, calc(100vw - 32px));
}

.developer-card {
    display: grid;
    gap: 20px;
}

.developer-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #f4fbf9, #ffffff);
}

.developer-card-head .brand-mark {
    width: 58px;
    height: 58px;
}

.developer-card h2 {
    margin: 4px 0 0;
}

.developer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.developer-detail-grid > div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfefd;
}

.developer-detail-grid span,
.developer-detail-grid a {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.developer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.developer-socials a {
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--brand);
    box-shadow: 0 12px 30px rgba(18, 49, 58, .22);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .72);
}

.site-nav a,
.site-nav button {
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.nav-link-icon i {
    width: 18px;
    color: var(--brand-strong);
    font-size: .95em;
    text-align: center;
}

.site-nav > a:not(.nav-action):not(.nav-cart) {
    position: relative;
    padding: 9px 2px;
}

.site-nav > a:not(.nav-action):not(.nav-cart)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.site-nav > a:not(.nav-action):not(.nav-cart):hover {
    color: var(--brand-strong);
}

.site-nav > a:not(.nav-action):not(.nav-cart):hover::after {
    transform: scaleX(1);
}

.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}

.nav-cart:hover {
    color: var(--brand-strong);
    background: var(--accent);
    transform: translateY(-1px);
}

.cart-count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    color: white;
    background: #d62424;
    box-shadow: 0 6px 14px rgba(214, 36, 36, .28);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 4px 0;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.account-menu summary:hover {
    color: var(--brand-strong);
    transform: translateY(-1px);
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 6px;
    width: 260px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 42px rgba(18, 49, 58, .18);
    animation: menuReveal .16s ease both;
}

.account-menu-panel small {
    margin-bottom: 8px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.account-menu-panel a,
.account-menu-panel button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: #f4fbf9;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.account-menu-panel a i,
.account-menu-panel button i {
    width: 18px;
    color: var(--brand-strong);
    text-align: center;
}

.account-menu-panel form {
    margin: 0;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    color: var(--brand-strong);
    background: var(--accent);
    transform: translateX(3px);
}

.nav-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.button.primary,
.nav-action {
    border-color: var(--brand);
    color: white;
    background: var(--brand);
}

.button.primary:hover,
.nav-action:hover {
    background: var(--brand-strong);
    box-shadow: 0 12px 24px rgba(8, 122, 117, .18);
    transform: translateY(-1px);
}

.button.secondary {
    border-color: var(--accent);
    color: var(--brand-strong);
    background: var(--accent);
}

.button.secondary:hover {
    border-color: #b7ddd7;
    background: #c5e7e1;
    transform: translateY(-1px);
}

.button.wide {
    width: 100%;
}

@keyframes menuReveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.page-header,
.section,
.workspace,
.auth-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 32px;
    padding: 64px 0 36px;
}

.hero-wide {
    grid-template-columns: 1fr;
    padding-bottom: 22px;
}

.hero h1,
.page-header h1 {
    margin: 8px 0 14px;
    font-size: 48px;
    line-height: 1.05;
}

.lead,
.page-header p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.status-panel,
.tile,
.price-row,
.workspace-panel,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.status-panel {
    align-self: end;
    padding: 24px;
}

.status-panel span,
.status {
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 700;
}

.status-panel strong {
    display: block;
    margin: 12px 0;
    font-size: 22px;
}

.section {
    padding: 34px 0;
}

.section-heading {
    margin-bottom: 18px;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 30px;
}

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

.tile {
    padding: 22px;
}

.module-grid {
    align-items: stretch;
}

.module-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(18, 49, 58, .04);
}

.module-card:hover {
    border-color: rgba(8, 122, 117, .38);
    box-shadow: 0 18px 34px rgba(18, 49, 58, .09);
    transform: translateY(-2px);
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #6d3c00;
    background: #fff0c4;
    font-size: 12px;
    font-weight: 700;
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.module-actions form {
    margin: 0;
}

.module-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.module-price-row > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfffe, var(--soft));
}

.module-price-row span,
.module-price-row small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.module-price-row strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 18px;
}

.module-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 2px;
}

.module-catalog-controls {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(190px, 230px) minmax(max-content, 1fr);
    gap: 10px;
    align-items: center;
    justify-content: end;
}

.module-search input,
.module-sort select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--ink);
    background: white;
    font: inherit;
}

.module-sort {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.module-filters button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    color: var(--brand-strong);
    background: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.module-filters button.active,
.module-filters button:hover {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
}

.module-empty {
    margin-top: 16px;
}

.tile h2,
.tile h3 {
    margin: 12px 0 8px;
}

.tile p,
.price-row span,
.workspace-panel p,
.workspace-panel li,
.status-panel p {
    color: var(--muted);
    line-height: 1.55;
}

.pricing-list {
    display: grid;
    gap: 10px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.full-suite-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}

.full-suite-card {
    box-shadow: none;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}

.plan-card.highlight {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(8, 122, 117, .12);
}

.plan-ribbon {
    margin: -22px -22px 18px;
    padding: 10px;
    border-radius: 14px 14px 0 0;
    color: white;
    background: var(--brand);
    text-align: center;
    font-weight: 700;
}

.plan-card h3 {
    margin: 0 0 8px;
}

.plan-card p {
    color: var(--muted);
    line-height: 1.55;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 18px 0;
}

.plan-price strong {
    font-size: 34px;
}

.plan-price span {
    color: var(--muted);
}

.plan-features {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 18px 0 0 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.45;
}

.module-detail-header {
    max-width: min(1180px, calc(100% - 40px));
}

.product-hero,
.product-overview-grid,
.product-info-grid,
.section.product-overview-grid,
.section.product-info-grid {
    width: min(100% - 40px, 1400px);
    margin: 0 auto;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: stretch;
    padding: 46px 0 18px;
}

.product-copy,
.product-purchase-card,
.product-media-panel,
.product-info-grid .panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 38px rgba(18, 49, 58, .06);
}

.product-copy {
    padding: 34px;
}

.product-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.04;
}

.product-badges,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-badges {
    margin: 22px 0 24px;
}

.product-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--brand-strong);
    background: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

.product-purchase-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
}

.product-purchase-card h2 {
    margin: 4px 0;
    font-size: 34px;
}

.product-purchase-card small {
    color: var(--muted);
    font-size: 16px;
}

.product-purchase-card form {
    margin: 0;
}

.product-purchase-card .button,
.product-plan-grid .button {
    width: 100%;
    justify-content: center;
}

.product-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 16px;
}

.product-media-panel,
.product-info-grid .panel {
    padding: 28px;
}

.product-preview-frame {
    display: grid;
    place-items: center;
    min-height: 270px;
    margin-top: 18px;
    border: 1px solid rgba(8, 122, 117, .18);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(8, 122, 117, .92), rgba(18, 49, 58, .9)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 34px);
    color: white;
}

.product-preview-frame div {
    width: min(82%, 620px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.product-preview-frame strong,
.product-preview-frame span {
    display: block;
}

.product-preview-frame strong {
    margin-bottom: 12px;
    font-size: 28px;
}

.product-preview-frame span {
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}

.spec-list {
    display: grid;
    gap: 10px;
}

.spec-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.spec-list span {
    color: var(--muted);
}

.spec-list strong {
    text-align: right;
}

.product-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.clean-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.5;
}

.product-info-grid details {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.product-info-grid summary {
    cursor: pointer;
    font-weight: 700;
}

.product-info-grid details p {
    color: var(--muted);
    line-height: 1.5;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
}

.account-page {
    width: min(100% - 40px, 1480px);
    margin: 0 auto;
    padding: 34px 0 58px;
}

.account-main {
    display: grid;
    gap: 20px;
}

.cart-panel {
    overflow-x: auto;
}

.cart-panel .data-table {
    min-width: 760px;
}

.cart-panel .data-table td:first-child,
.cart-panel .data-table th:first-child {
    width: 48px;
    color: var(--muted);
    font-weight: 700;
}

.checkout-summary {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.checkout-summary strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.checkout-page {
    width: min(100% - 40px, 1560px);
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(460px, .65fr);
    gap: 18px;
    align-items: start;
}

.checkout-order-panel,
.checkout-billing-panel {
    min-height: 520px;
}

.checkout-billing-panel {
    padding: 28px;
}

.checkout-amount-card {
    margin-bottom: 18px;
}

.invoice-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfefd;
}

.invoice-preview > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.invoice-preview > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.invoice-preview span {
    color: var(--muted);
}

.invoice-preview-total {
    color: var(--brand-strong);
    font-size: 18px;
}

.checkout-billing-panel .form-grid.compact {
    grid-template-columns: 1fr;
    gap: 14px;
}

.checkout-billing-panel .form-field input {
    min-height: 48px;
}

.checkout-billing-panel .form-actions {
    margin-top: 18px;
}

.coupon-field {
    padding: 14px;
    border: 1px solid rgba(214, 148, 28, .34);
    border-radius: 10px;
    background: #fff8e8;
}

.coupon-field label {
    color: #865300;
}

.coupon-apply-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.coupon-apply-row input {
    border-color: rgba(214, 148, 28, .45);
    background: #fffdf6;
}

.coupon-apply-button {
    min-width: 112px;
    justify-content: center;
}

.coupon-success,
.coupon-hint {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}

.coupon-success {
    color: var(--brand-strong);
    font-weight: 700;
}

.coupon-hint {
    color: #7d5b23;
}

.page-header {
    padding: 52px 0 16px;
}

.workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0 48px;
}

.workspace-panel {
    padding: 24px;
}

.access-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.access-pill.granted {
    color: #075f32;
    background: #dff7e9;
}

.access-pill.denied {
    color: #8a250e;
    background: #ffe3db;
}

.metrics,
.admin-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 0 30px;
}

.metric-card,
.admin-panel,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric-card {
    padding: 20px;
    min-width: 0;
}

.metric-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 8px 0;
    font-size: 34px;
    overflow-wrap: anywhere;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
}

.metric-card.dark {
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--brand-strong));
    border-color: transparent;
}

.metric-card.dark span,
.metric-card.dark p {
    color: rgba(255, 255, 255, .78);
}

.account-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.account-card-row > div:last-child {
    min-width: 0;
}

.account-summary-card {
    overflow: hidden;
}

.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 50%;
    color: var(--brand-strong);
    background: white;
    font-size: 24px;
    font-weight: 700;
}

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

.mini-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.mini-actions a {
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.mini-actions.dark-link a {
    color: var(--brand-strong);
}

.account-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-settings-panel {
    max-width: none;
}

.profile-settings-form {
    display: grid;
    gap: 24px;
}

.profile-settings-panel .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-photo-editor {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fbfa, #ffffff);
}

.profile-photo-preview {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 4px solid white;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--navy));
    box-shadow: 0 14px 26px rgba(18, 49, 58, .16);
    font-size: 44px;
    font-weight: 800;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-copy h2 {
    margin: 3px 0 6px;
}

.profile-photo-copy .form-control[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.profile-upload-button {
    width: fit-content;
    margin-top: 10px;
}

.clean-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 700;
}

.clean-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.login-detail-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.login-detail-strip > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.login-detail-strip span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-detail-strip strong {
    overflow-wrap: anywhere;
}

.settings-note {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #f0c16b;
    border-radius: 8px;
    color: #704200;
    background: #fff8e6;
}

.settings-note span {
    color: #75572a;
    line-height: 1.5;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 16px;
    padding: 0 0 24px;
}

.admin-panel {
    padding: 22px;
    overflow: hidden;
}

.bar-chart {
    display: grid;
    gap: 12px;
}

.bar-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.bar-track {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.bar-fill {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: var(--brand);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.data-table th,
.data-table td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.form-panel {
    max-width: 920px;
}

.form-panel.profile-settings-panel {
    max-width: none;
}

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

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

.case-setup-grid {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
    gap: 24px;
    align-items: start;
}

.case-setup-stack {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--ink);
    font-weight: 700;
}

.form-control,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fbfefd;
    font: inherit;
}

.form-control:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 0;
    border-color: rgba(8, 122, 117, .62);
    box-shadow: 0 0 0 4px rgba(8, 122, 117, .12);
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.checkbox-field {
    align-content: end;
}

.checkbox-field input {
    width: auto;
    min-height: auto;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.field-error,
.form-errors {
    color: #9f2a12;
}

.info-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 22px;
}

.info-hero h1 {
    margin: 8px 0 12px;
    font-size: 44px;
}

.info-logo-panel,
.info-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.info-logo-panel {
    display: grid;
    gap: 18px;
    place-items: center;
    padding: 26px;
}

.info-logo-panel img:first-child {
    max-width: 240px;
}

.info-logo-panel img:last-child {
    max-width: 84px;
}

.info-panel p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 48px;
}

.profile-menu,
.profile-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.profile-menu {
    align-self: start;
    padding: 10px;
}

.profile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.profile-menu a:hover,
.profile-menu .admin-entry {
    color: var(--brand-strong);
    background: var(--accent);
}

.profile-content {
    display: grid;
    gap: 16px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-card {
    padding: 22px;
}

.profile-card h2,
.profile-card h3 {
    margin-top: 0;
}

.profile-card p {
    color: var(--muted);
    line-height: 1.55;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    min-width: 0;
}

.app-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
    min-height: calc(100vh - 112px);
    padding: 16px;
    color: white;
    background: linear-gradient(180deg, var(--navy), #0b4d4a);
    border-radius: 10px;
    min-width: 0;
}

.sidebar-mobile-open {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-head,
.sidebar-title {
    display: flex;
    align-items: center;
}

.sidebar-head {
    justify-content: space-between;
    gap: 10px;
}

.sidebar-title {
    gap: 10px;
    padding: 6px 6px 18px;
}

.sidebar-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: white;
}

.sidebar-logo img {
    width: 44px;
    max-height: 32px;
    object-fit: contain;
}

.app-sidebar-menu {
    display: block;
}

.app-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    padding: 12px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .84);
    text-decoration: none;
    font-weight: 700;
}

.app-sidebar a i {
    width: 18px;
    flex: 0 0 18px;
    color: rgba(255, 255, 255, .82);
    text-align: center;
}

.app-sidebar a.active,
.app-sidebar a:hover,
.app-sidebar .admin-entry {
    color: white;
    background: rgba(255, 255, 255, .14);
}

.app-sidebar a.active i,
.app-sidebar a:hover i,
.app-sidebar .admin-entry i {
    color: white;
}

.sidebar-divider {
    height: 1px;
    margin: 14px 6px;
    background: rgba(255, 255, 255, .2);
}

.sidebar-label {
    display: block;
    padding: 0 13px 6px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-main {
    min-width: 0;
}

body:has(.module-workspace-shell) main {
    min-height: calc(100vh - 86px);
}

.module-workspace-shell {
    height: auto;
    min-height: calc(100vh - 180px);
    width: min(1680px, calc(100% - 24px));
    padding: 16px 0 36px;
    overflow: visible;
}

.module-workspace-shell .app-sidebar {
    position: static;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.module-workspace-shell .app-main {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
}

.module-workspace-header {
    flex: 0 0 auto;
    padding-right: 8px;
}

.module-workspace-content,
.module-workspace-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding: 0 8px 12px 0;
    scroll-behavior: smooth;
}

.module-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    overflow: visible;
}

.module-workspace-grid.has-result {
    grid-template-columns: minmax(0, 1fr);
}

.module-input-pane,
.module-result-content {
    min-height: 0;
    overflow: visible;
    padding-right: 8px;
    scroll-behavior: smooth;
}

.module-input-pane {
    display: grid;
    grid-template-rows: minmax(0, auto) auto;
    gap: 12px;
}

.module-input-pane > .engineering-form {
    max-height: none;
    overflow: visible;
    padding-right: 8px;
}

.module-workspace-content > .panel:first-child,
.module-workspace-content > .engineering-form:first-child,
.module-input-pane > .engineering-form > .panel:first-child {
    margin-top: 0;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.app-topbar h1 {
    margin: 6px 0 0;
    font-size: 34px;
}

.message-stack {
    display: grid;
    gap: 8px;
    width: min(1180px, calc(100% - 40px));
    margin: 16px auto 0;
}

.notice {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
}

.notice.success {
    border-color: #a5dfbd;
    background: #e7f8ee;
}

.notice.error {
    border-color: #f0b6a7;
    background: #fff3ef;
}

.notice.warning {
    border-color: rgba(212, 138, 0, .42);
    background: #fff8e8;
    color: #6d4300;
}

.notice.compact-notice {
    margin-top: 12px;
}

.button:disabled,
.button[disabled] {
    cursor: not-allowed;
    opacity: .62;
    box-shadow: none;
    transform: none;
}

.module-menubar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.module-menu-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.module-menu-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.module-workspace-header .module-menubar {
    margin-bottom: 12px;
}

.module-menubar details {
    position: relative;
}

.module-menubar summary {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--brand-strong);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.module-menubar summary::-webkit-details-marker {
    display: none;
}

.module-menubar details[open] summary,
.module-menubar summary:hover {
    border-color: #c5e7e1;
    background: var(--accent);
    transform: translateY(-1px);
}

.module-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 12;
    display: grid;
    min-width: 240px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 16px 30px rgba(18, 49, 58, .12);
}

.module-menu a,
.module-menu button,
.module-menu span,
.file-menu-upload {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-decoration: none;
    font-weight: 700;
    text-align: left;
}

.module-menu span {
    color: var(--muted);
    font-weight: 400;
}

.module-menu a:hover,
.module-menu button:hover,
.file-menu-upload:hover {
    background: var(--soft);
}

.module-menu button {
    cursor: pointer;
}

.file-menu-upload {
    cursor: pointer;
}

.file-menu-upload input {
    display: none;
}

.suite-dialog {
    width: min(920px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(18, 49, 58, .24);
    overflow: auto;
}

.suite-dialog::backdrop {
    background: rgba(7, 35, 40, .42);
}

.dialog-close-form {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.dialog-close-form button {
    min-height: 34px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: var(--brand-strong);
    cursor: pointer;
    font-weight: 700;
}

.dialog-actions {
    margin-top: 18px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.single {
    grid-template-columns: 1fr;
}

.content-grid .panel.large {
    min-height: 320px;
}

.panel {
    padding: 22px;
    min-width: 0;
}

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

.tool-list {
    display: grid;
    gap: 10px;
}

.tool-row,
.compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfefd;
    min-width: 0;
}

.compact-row > strong,
.compact-row > span {
    min-width: 0;
}

.compact-row > strong {
    flex: 0 0 38%;
    overflow-wrap: anywhere;
}

.compact-row > span {
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.tool-row p,
.muted {
    margin: 4px 0 0;
    color: var(--muted);
}

.quick-actions.vertical {
    display: grid;
}

.empty-state {
    min-height: 280px;
    display: grid;
    align-content: center;
    justify-items: start;
}

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

.sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 7;
    width: fit-content;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
}

.calculation-actions {
    padding: 16px 0 4px;
}

.module-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 8px 0 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(234, 247, 244, .55), rgba(234, 247, 244, .95));
}

.module-result-content {
    max-height: none;
    overflow: visible;
    animation: resultPaneIn .32s ease both;
}

.module-result-content .result-summary-panel {
    margin-top: 0;
}

@keyframes resultPaneIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-suggestion {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fcfb;
}

.analysis-suggestion h3 {
    margin: 0 0 8px;
}

.analysis-suggestion p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.analysis-suggestion.pass {
    border-color: #a5dfbd;
    background: #effbf4;
}

.analysis-suggestion.review {
    border-color: #f3c46d;
    background: #fff7e5;
}

.result-visual-panel {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfefd;
}

.section-heading.compact {
    margin-bottom: 12px;
}

.section-heading.compact h3 {
    margin: 4px 0 0;
}

.result-bars {
    display: grid;
    gap: 14px;
}

.result-bar-row {
    display: grid;
    grid-template-columns: minmax(170px, .6fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.result-bar-row > span {
    color: var(--muted);
    font-weight: 700;
}

.result-bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft);
}

.result-bar-track span {
    display: block;
    width: 0;
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.result-bar-track.review span {
    background: var(--warning);
}

.result-action-panel {
    margin-bottom: 16px;
}

.calculation-progress {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(7, 35, 40, .46);
}

.calculation-progress[hidden] {
    display: none;
}

.calculation-progress-card {
    width: min(620px, 100%);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 24px 80px rgba(18, 49, 58, .24);
}

.progress-track {
    height: 10px;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft);
}

.progress-track span {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
    transition: width .35s ease;
}

.progress-log {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.result-dialog {
    width: min(980px, calc(100vw - 32px));
}

.compact-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.error-panel {
    border-color: #f0b6a7;
    background: #fff3ef;
}

.notice-panel {
    border-color: #b7ded8;
    background: #f2fbf9;
}

.result-section {
    margin-bottom: 16px;
}

.result-summary-panel {
    margin: 16px 0;
    border-color: #9dd5cd;
    background: linear-gradient(180deg, #ffffff, #f2fbf9);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

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

.result-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfefd;
}

.result-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.result-card strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    overflow-wrap: anywhere;
}

.result-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.status-card.pass {
    color: #064d2a;
    border-color: #a5dfbd;
    background: #e7f8ee;
}

.status-card.review {
    color: #7a3e00;
    border-color: #f0c16b;
    background: #fff5dd;
}

.observation-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.observation-box h3 {
    margin: 0 0 10px;
}

.observation-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.hint-grid {
    display: grid;
    gap: 14px;
}

.hint-grid p {
    margin: 5px 0 0;
}

.intermediate-values {
    margin-top: 16px;
}

.intermediate-values summary {
    cursor: pointer;
    color: var(--brand-strong);
    font-weight: 700;
}

.admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-link {
    color: var(--brand-strong);
    font-weight: 700;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.text-button {
    border: 0;
    padding: 0;
    color: var(--brand-strong);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.text-link.danger,
.text-button.warning {
    color: #9c4b00;
}

.button.danger {
    color: white;
    background: #9c2f2f;
}

.button.danger:hover {
    background: #7e2424;
    transform: translateY(-1px);
}

.icon-action {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--brand);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.icon-action:hover {
    background: var(--brand-strong);
    box-shadow: 0 8px 16px rgba(8, 122, 117, .18);
    transform: translateY(-1px);
}

.icon-action.edit {
    background: #0f83d8;
}

.icon-action.delete {
    background: #d82f3a;
    font-size: 21px;
}

.icon-action.edit:hover {
    background: #096daf;
}

.icon-action.delete:hover {
    background: #aa1f29;
}

.license-details-popup {
    padding-bottom: 22px;
}

.license-details-popup .swal2-title {
    margin-bottom: 8px;
    font-size: 28px;
}

.swal-license-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.swal-license-row {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfefd;
}

.swal-license-row strong {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.swal-license-row span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.compact-info-button {
    margin-left: 8px;
    vertical-align: middle;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 78vh;
    padding: 54px 0;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1fr);
    gap: 28px;
    width: 100%;
}

.auth-story,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.auth-story {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(8, 122, 117, .96), rgba(18, 49, 58, .96)),
        var(--brand);
    color: white;
}

.auth-story:hover,
.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(18, 49, 58, .12);
}

.auth-story .eyebrow,
.auth-story .muted {
    color: rgba(255, 255, 255, .78);
}

.auth-story h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
}

.auth-story p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.65;
}

.auth-proof-grid,
.auth-proof-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.auth-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-proof-grid span,
.auth-proof-list span {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    font-weight: 700;
}

.auth-proof-grid span:hover,
.auth-proof-list span:hover {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.auth-card {
    width: 100%;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(18, 49, 58, .08);
}

.auth-card h2 {
    margin: 6px 0 8px;
    font-size: 34px;
}

.auth-card .form-field {
    margin-top: 18px;
}

.auth-card .button {
    margin-top: 22px;
}

.auth-card input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.auth-card input:focus {
    outline: 0;
    border-color: rgba(8, 122, 117, .62);
    box-shadow: 0 0 0 4px rgba(8, 122, 117, .12);
}

@keyframes pullHint {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.auth-card-wide {
    max-width: 760px;
}

.form-grid.compact {
    gap: 14px 16px;
}

.span-2 {
    grid-column: span 2;
}

.auth-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
}

.auth-card-footer a {
    color: var(--brand-strong);
    font-weight: 700;
}

.form-errors {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #f0b8b8;
    border-radius: 8px;
    color: #7a1f1f;
    background: #fff4f4;
}

@media (max-width: 1180px) {
    .site-header {
        padding: 14px 22px;
    }

    .app-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    .insight-grid,
    .admin-metrics,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .full-suite-offer {
        grid-template-columns: 1fr;
    }

    .product-hero,
    .product-overview-grid,
    .product-info-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .product-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-settings-panel .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-workspace-grid.has-result {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .module-menubar {
        align-items: stretch;
    }

    .module-menu-action {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .module-input-pane,
    .module-result-content,
    .module-input-pane > .engineering-form {
        max-height: none;
        overflow-y: visible;
    }

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

@media (max-width: 960px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .menu-toggle,
    .sidebar-toggle,
    .sidebar-mobile-open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 12px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: white;
    }

    .site-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-nav a,
    .site-nav form,
    .site-nav button,
    .account-menu,
    .account-menu summary {
        width: 100%;
        text-align: center;
    }

    .site-nav form {
        margin: 0;
    }

    .site-nav a,
    .site-nav button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        border-radius: 8px;
        background: var(--soft);
    }

    .account-menu {
        grid-column: 1 / -1;
    }

    .account-menu summary {
        justify-content: center;
        background: var(--soft);
    }

    .account-menu-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .hero,
    .workspace,
    .info-hero {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
        width: min(100% - 20px, 1320px);
        padding-top: 14px;
    }

    .sidebar-mobile-open {
        position: fixed;
        left: -26px;
        top: 43vh;
        z-index: 22;
        width: 58px;
        height: 54px;
        border: 1px solid rgba(255, 255, 255, .72);
        border-left: 0;
        border-radius: 0 14px 14px 0;
        box-shadow: 10px 12px 26px rgba(18, 49, 58, .18);
        overflow: hidden;
        isolation: isolate;
    }

    .sidebar-mobile-open::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    }

    .sidebar-mobile-open::after {
        content: "";
        position: absolute;
        top: 9px;
        right: 7px;
        width: 4px;
        height: 36px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .32);
    }

    .sidebar-mobile-open i {
        margin-left: 26px;
        color: white;
        font-size: 20px;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .18));
        animation: pullHint 1.8s ease-in-out infinite;
    }

    .sidebar-mobile-open:hover,
    .sidebar-mobile-open:focus-visible {
        left: 0;
        width: 58px;
        outline: 0;
        box-shadow: 14px 16px 32px rgba(18, 49, 58, .24);
        transform: translateX(0);
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(330px, calc(100vw - 58px));
        min-height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        padding: 16px;
        color: white;
        background: linear-gradient(180deg, var(--navy), #0b4d4a);
        border-radius: 0 12px 12px 0;
        box-shadow: none;
        transform: translateX(-120%);
        transition: transform .22s ease;
    }

    .app-sidebar.is-open {
        box-shadow: 22px 0 44px rgba(18, 49, 58, .26);
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 24;
        display: block;
        pointer-events: none;
        background: rgba(8, 24, 28, 0);
        opacity: 0;
        transition: opacity .22s ease, background-color .22s ease;
    }

    .sidebar-backdrop.is-open {
        pointer-events: auto;
        background: rgba(8, 24, 28, .28);
        opacity: 1;
    }

    .sidebar-head {
        justify-content: space-between;
        gap: 12px;
        padding: 0 0 14px;
    }

    .sidebar-title {
        display: flex;
        padding: 0;
    }

    .app-sidebar-menu {
        display: grid;
        gap: 7px;
        margin-top: 8px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .app-sidebar-menu.is-open {
        display: grid;
    }

    .app-sidebar-menu a {
        margin: 0;
        text-align: left;
        white-space: normal;
    }

    .sidebar-divider {
        grid-column: 1 / -1;
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }

    .sidebar-label {
        grid-column: 1 / -1;
        padding: 0 4px;
    }

    .app-topbar {
        align-items: flex-start;
    }

    .split-heading {
        display: grid;
    }

    .module-filters {
        justify-content: flex-start;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .site-header,
    .hero,
    .workspace,
    .footer-bottom {
        display: block;
    }

    .site-header {
        display: grid;
    }

    .menu-toggle,
    .sidebar-toggle,
    .sidebar-mobile-open {
        display: inline-flex;
    }

    .hero h1,
    .page-header h1,
    .info-hero h1 {
        font-size: 36px;
    }

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

    .metrics,
    .admin-grid,
    .app-shell,
    .insight-grid,
    .content-grid,
    .case-setup-grid,
    .tool-grid,
    .plan-grid,
    .result-grid,
    .summary-grid,
    .form-grid,
    .footer-grid,
    .info-hero,
    .profile-layout,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-settings-panel .form-grid {
        grid-template-columns: 1fr;
    }

    .product-hero,
    .product-overview-grid,
    .product-info-grid,
    .section.product-overview-grid,
    .section.product-info-grid {
        width: min(100% - 24px, 1400px);
    }

    .product-copy,
    .product-purchase-card,
    .product-media-panel,
    .product-info-grid .panel {
        padding: 22px;
    }

    .product-plan-grid {
        grid-template-columns: 1fr;
    }

    .module-catalog-controls {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .module-sort {
        grid-template-columns: 1fr;
    }

    .profile-photo-editor {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .login-detail-strip {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

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

    .app-topbar {
        display: block;
    }

    .status-panel,
    .workspace-panel {
        margin-top: 16px;
    }

    .price-row {
        display: block;
    }

    .module-price-row {
        grid-template-columns: 1fr;
    }

    .account-page {
        width: min(100% - 24px, 1480px);
        padding-top: 22px;
    }

    .checkout-page {
        width: min(100% - 24px, 1560px);
    }

    .checkout-order-panel,
    .checkout-billing-panel {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 10px;
        padding: 12px 14px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 58px;
        height: 50px;
        border-radius: 8px;
    }

    .brand-logo img {
        max-width: 50px;
        max-height: 38px;
    }

    .brand strong {
        display: block;
        font-size: 18px;
        line-height: 1.15;
    }

    .brand small {
        font-size: 14px;
        line-height: 1.2;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .site-nav a,
    .site-nav button {
        font-size: 14px;
    }

    .nav-action,
    .button {
        min-height: 38px;
        padding: 0 12px;
    }

    .site-nav.is-open,
    .app-sidebar-menu.is-open {
        grid-template-columns: 1fr;
    }

    .app-topbar h1,
    .section-heading h2 {
        font-size: 28px;
    }

    .metric-card strong {
        font-size: 28px;
    }

    .account-card-row,
    .tool-row,
    .compact-row,
    .price-row,
    .result-bar-row,
    .form-actions,
    .sticky-actions {
        display: block;
    }

    .result-bar-track {
        margin: 8px 0;
    }

    .avatar {
        margin-bottom: 10px;
    }

    .tool-row .status {
        display: inline-block;
        margin-top: 8px;
    }

    .panel,
    .tile,
    .workspace-panel,
    .auth-story,
    .auth-card {
        padding: 16px;
    }

    .auth-card h2 {
        font-size: 28px;
    }

    .data-table {
        min-width: 100%;
    }

    .data-table thead,
    .data-table tbody,
    .data-table tr {
        width: 100%;
    }

    .data-table th,
    .data-table td {
        min-width: 120px;
    }

    .license-details-popup .swal2-title {
        font-size: 23px;
    }

    .swal-license-card {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .footer-brand {
        display: block;
    }

    .footer-brand img {
        margin: 0 10px 10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
