@font-face { font-display: swap; font-family: "Asap"; font-style: normal; font-weight: 100 900; src: url("/assets/asap-latin-variable.woff2") format("woff2"); }
:root {
    color: #12313d;
    background: #f4f6f7;
    font-family: "Asap", Arial, system-ui, sans-serif;
    font-size: 16px;
    font-synthesis: none;
    line-height: 24px;
    text-rendering: optimizeLegibility;

    --color-accent: #16bae7;
    --color-accent-dark: var(--color-accent-hover);
    --color-accent-hover: #0f9fc7;
    --color-border: #d9e1e5;
    --color-border-strong: #c4ccd1;
    --color-canvas: #f4f6f7;
    --color-muted: #6f8590;
    --color-panel: #fff;
    --color-panel-muted: #f7fafc;
    --color-rail: #eef2f4;
    --color-text: #12313d;
    --color-text-muted: var(--color-muted);
    --content-width: 1440px;
    --radius-small: 4px;
    --radius-medium: 8px;
    --shadow-floating: 0 10px 28px rgb(18 49 61 / 12%);
    --type-body-size: 16px;
    --type-body-line: 24px;
    --type-meta-size: 14px;
    --type-meta-line: 20px;
    --type-title-size: 20px;
    --type-title-line: 26px;
    --type-h1-size: 24px;
    --type-h1-line: 30px;
    --type-h2-size: 22px;
    --type-h2-line: 28px;
    --type-h3-size: 20px;
    --type-h3-line: 26px;
    --type-h4-size: 18px;
    --type-h4-line: 24px;
    --type-h5-size: 16px;
    --type-h5-line: 22px;
    --type-h6-size: 16px;
    --type-h6-line: 22px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--color-canvas);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--color-canvas);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

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

.portal-shell {
    min-height: 100vh;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar {
    height: 64px;
    color: #fff;
    background: linear-gradient(105deg, #16bae7 0%, #0f8fb3 58%, #5b4fd6 100%);
    box-shadow: 0 1px 7px rgb(18 49 61 / 24%);
}

.topbar-inner,
.contextbar-inner,
.portal-main,
.mobile-navigation {
    width: min(100% - 48px, var(--content-width));
    margin: 0 auto;
}

.topbar-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 14px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8.8px;
    min-width: 292px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 33px;
    filter: brightness(0) invert(1);
}

.brand-product {
    padding-left: 8.8px;
    border-left: 1px solid rgb(255 255 255 / 48%);
    color: #fff;
    font-size: 23.2px;
    font-weight: 100;
    letter-spacing: -.03em;
    line-height: .9;
    transform: translateY(2px);
    white-space: nowrap;
}

.desktop-navigation {
    display: flex;
    min-width: 0;
    height: 32px;
    align-items: stretch;
    gap: 2px;
    margin-left: auto;
}

.desktop-navigation button,
.mobile-navigation button {
    border: 0;
    cursor: pointer;
}

.desktop-navigation button {
    padding: 0 9px;
    border-radius: var(--radius-small);
    color: rgb(255 255 255 / 82%);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

.desktop-navigation button:hover {
    color: #fff;
    background: rgb(255 255 255 / 12%);
}

.desktop-navigation button.active {
    color: var(--color-text);
    background: #fff;
    box-shadow: 0 1px 2px rgb(18 49 61 / 12%);
}

.topbar-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
}

.icon-button,
.account-button {
    display: inline-flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-small);
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.icon-button {
    width: 32px;
}

.icon-button:hover,
.account-button:hover {
    background: rgb(255 255 255 / 14%);
}

.account-button {
    gap: 6px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
}

.account-button > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #285263;
    background: #fff;
    font-size: 9px;
}

.topbar-divider {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: rgb(255 255 255 / 28%);
}

.icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.menu-button {
    display: none;
}

.contextbar {
    height: 44px;
    border-bottom: 1px solid var(--color-border);
    background: rgb(247 250 252 / 96%);
    box-shadow: 0 1px 2px rgb(18 49 61 / 5%);
    backdrop-filter: blur(8px);
}

.contextbar-inner {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb,
.admin-link {
    display: flex;
    align-items: center;
}

.breadcrumb {
    overflow: hidden;
    min-width: 0;
    gap: 7px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 16px;
}

.breadcrumb a,
.breadcrumb span {
    flex: 0 0 auto;
    color: inherit;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: var(--color-text);
}

.breadcrumb .icon {
    width: 12px;
    height: 12px;
}

.breadcrumb strong {
    overflow: hidden;
    color: var(--color-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-link {
    height: 32px;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: #4f6874;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.admin-link:hover {
    border-color: var(--color-accent);
    color: #0a7898;
}

.portal-main {
    padding-top: 32px;
    padding-bottom: 64px;
}

.page-header {
    display: flex;
    min-height: 86px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 2px 24px;
}

.page-header h1 {
    margin: 0;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 30px;
}

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

.asset-overview {
    display: grid;
    gap: 16px;
}

.asset-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-panel);
    box-shadow: 0 2px 8px rgb(18 49 61 / 4%);
}

.search-field {
    display: flex;
    width: min(100%, 430px);
    height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    color: var(--color-muted);
    background: #fff;
}

.search-field:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgb(22 186 231 / 14%);
}

.search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--color-text);
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.search-field input::placeholder {
    color: #82959e;
}

.toolbar-controls,
.filter-button,
.sort-field {
    display: flex;
    align-items: center;
}

.toolbar-controls {
    gap: 8px;
}

.filter-button {
    height: 36px;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: #4f6874;
    background: var(--color-panel-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.filter-button:hover {
    border-color: var(--color-accent);
    color: #087b9c;
}

.sort-field {
    height: 36px;
    gap: 8px;
    padding-left: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: var(--color-muted);
    background: var(--color-panel-muted);
    font-size: 11px;
    font-weight: 700;
}

.sort-field select {
    align-self: stretch;
    padding: 0 28px 0 8px;
    border: 0;
    border-left: 1px solid var(--color-border);
    outline: 0;
    color: var(--color-text);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.category-navigation {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 1px;
    scrollbar-width: thin;
}

.category-navigation button {
    height: 32px;
    flex: 0 0 auto;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    color: #4f6874;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.category-navigation button:hover {
    background: var(--color-rail);
}

.category-navigation button.active {
    border-color: #a8dce9;
    color: #087b9c;
    background: #eaf8fc;
}

.result-heading {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    color: var(--color-muted);
    font-size: 11px;
}

.result-heading > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.result-heading strong {
    color: var(--color-text);
    font-size: 13px;
}

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

.product-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: #fff;
    box-shadow: 0 2px 8px rgb(18 49 61 / 4%);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
    border-color: #b8dce5;
    box-shadow: 0 10px 24px rgb(18 49 61 / 10%);
}

.product-preview {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 0;
    background: #e7ecef;
    cursor: pointer;
}

.product-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 80px;
    place-items: center;
    padding: 12px;
    color: var(--color-muted);
    font-size: 12px;
    text-align: center;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: var(--radius-small);
    color: #12313d;
    background: rgb(255 255 255 / 92%);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
}

.product-badge.configurable {
    color: #087b9c;
    background: #eaf8fc;
}

.product-badge.stock {
    color: #456214;
    background: #f0f6df;
}

.favorite-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-small);
    color: #12313d;
    background: rgb(255 255 255 / 88%);
    cursor: pointer;
}

.favorite-button:hover {
    color: #087b9c;
    background: #fff;
}

.product-card-content {
    display: flex;
    min-height: 256px;
    flex-direction: column;
    padding: 14px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #0a829f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 16px;
    text-transform: uppercase;
}

.product-meta span:last-child {
    overflow: hidden;
    color: var(--color-muted);
    font-weight: 400;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.product-title {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.product-card h2 {
    margin: 8px 0 5px;
    font-size: 16px;
    letter-spacing: -0.01em;
    line-height: 22px;
}

.product-title:hover h2 {
    color: #087b9c;
}

.product-card-content > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 13px;
}

.product-price small,
.product-price span {
    color: var(--color-muted);
    font-size: 10px;
}

.product-price strong {
    color: var(--color-text);
    font-size: 18px;
    line-height: 24px;
}

.product-price span {
    margin-left: 2px;
}

.product-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e8edef;
    margin-top: auto;
}

.product-card-footer > div {
    display: grid;
}

.product-card-footer span {
    color: #4f6874;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

.product-card-footer small {
    color: #8b9ba3;
    font-size: 9px;
    line-height: 14px;
}

.product-card-footer button {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-small);
    color: #fff;
    background: var(--color-accent);
    cursor: pointer;
}

.product-card-footer button:hover {
    background: var(--color-accent-hover);
}
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.desktop-navigation button,
.mobile-navigation button,
.admin-link,
.filter-button,
.sort-field,
.sort-field select,
.category-navigation button,
.back-button,
.primary-action,
.secondary-action,
.profile-flyout nav button,
.account-navigation nav button,
.account-readiness button,
.connection-list button,
.workspace-toolbar strong {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.desktop-navigation button.active,
.mobile-navigation button.active,
.category-navigation button.active,
.account-navigation nav button.active {
    font-weight: 500;
}

.page-header h1 {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}
.portal-shell {
    font-size: var(--type-body-size);
    line-height: var(--type-body-line);
}

.portal-shell h1,
.portal-shell h2 {
    font-size: var(--type-title-size);
    font-weight: 500;
    line-height: var(--type-title-line);
}

.portal-shell h3,
.portal-shell h4,
.portal-shell p,
.portal-shell label,
.portal-shell button,
.portal-shell input,
.portal-shell select,
.portal-shell textarea {
    font-size: var(--type-body-size);
    line-height: var(--type-body-line);
}

.portal-shell h3,
.portal-shell h4 {
    font-weight: 500;
}

.portal-shell p,
.portal-shell label,
.portal-shell button,
.portal-shell input,
.portal-shell select,
.portal-shell textarea {
    font-weight: 400;
}

.portal-shell small,
.product-badge,
.product-meta,
.product-price small,
.product-price span,
.product-card-footer small,
.result-heading,
.type-label,
.cart-item-copy small,
.cart-item-copy p,
.cart-item-price span,
.account-save-notice,
.media-toolbar span,
.media-copy p,
.media-copy small,
.connection-copy span,
.connection-status,
.account-orders th,
.account-orders td:first-child span,
.order-status,
.asset-status,
.setting-list span {
    font-size: var(--type-meta-size);
    line-height: var(--type-meta-line);
}

.product-badge,
.type-label,
.connection-status,
.account-orders th,
.order-status,
.asset-status {
    font-weight: 500;
}

.configuration-fields label > span,
.account-form-grid label > span {
    font-size: var(--type-body-size);
    font-weight: 400;
    line-height: var(--type-body-line);
}

.product-card-footer span,
.connection-copy strong,
.media-copy h3,
.setting-list strong,
.account-orders td,
.account-orders td:first-child strong {
    font-size: var(--type-body-size);
    line-height: var(--type-body-line);
}

.portal-shell input[type="checkbox"],
.portal-shell input[type="radio"] {
    accent-color: #526b75;
}
