:root {
    --st-background: #F4EFE8;
    --st-surface: #ffffff;
    --st-surface-soft: #fbf7ef;
    --st-surface-active: #E6D3B3;
    --st-surface-variant: #D9C19C;
    --st-outline: #8A5A44;
    --st-outline-variant: rgba(138, 90, 68, 0.22);
    --st-text: #241713;
    --st-muted: #6F5A50;
    --st-primary: #241713;
    --st-success: #00714d;
    --st-success-soft: #e6f4ea;
    --ak-red: #C94A3A;
    --ak-red-dark: #B93E30;
    --ak-gold: #E5B75D;
    --ak-orange: #D9822B;
    --ak-brown: #8A5A44;
    --ak-danger-soft: #fff0ed;
    --ak-active-soft: #fff7e6;
    --st-sidebar: 280px;
    --st-radius-sm: 4px;
    --st-radius-md: 8px;
    --st-radius-lg: 12px;
    --st-shadow: 0 1px 3px rgba(72, 38, 24, 0.08);
    --st-shadow-hover: 0 6px 18px rgba(72, 38, 24, 0.11);
}

* {
    box-sizing: border-box;
}

body.ak-account-page {
    min-height: 100vh;
    margin: 0;
    color: var(--st-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--st-background);
    overflow-x: hidden;
}

#account-root,
.ak-account-layout,
.ak-main,
.ak-page-wrap,
.ak-card,
.ak-panel,
.ak-order-row,
.ak-detail-grid,
.ak-detail-main,
.ak-detail-side {
    min-width: 0;
    max-width: 100%;
}

a {
    color: inherit;
}

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

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ak-account-layout {
    min-height: 100vh;
}

.ak-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--st-sidebar);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-right: 1px solid var(--st-outline-variant);
    background: var(--st-surface);
}

.ak-main {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--st-sidebar);
    padding: 32px;
}

.ak-page-wrap {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ak-narrow-wrap {
    max-width: 760px;
}

.ak-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--st-primary);
    text-decoration: none;
}

.ak-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ak-brand-title {
    margin: 0;
    color: var(--st-primary);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ak-brand-subtitle,
.ak-muted-line {
    color: var(--st-muted);
}

.ak-brand-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.35;
}

.ak-side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ak-side-footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.ak-nav-item {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    border-radius: var(--st-radius-md);
    color: var(--st-muted);
    background: transparent;
    border: 0;
    appearance: none;
    font-size: 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.ak-nav-item.is-active {
    color: var(--ak-red-dark);
    background: var(--st-surface-active);
}

@media (hover: hover) {
    .ak-nav-item:hover:not(.is-active) {
        color: var(--ak-red-dark);
        background: transparent;
    }
}

.ak-icon {
    font-size: 24px;
    line-height: 1;
}

.ak-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    color: var(--st-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--st-shadow);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ak-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--st-outline);
}

.ak-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.ak-btn-dark {
    border-color: var(--ak-red);
    background: var(--ak-red);
    color: #ffffff;
}

.ak-btn-danger {
    border-color: rgba(185, 62, 48, 0.44);
    background: var(--ak-danger-soft);
    color: var(--ak-red-dark);
}

.ak-btn-danger:hover:not(:disabled) {
    border-color: var(--ak-red-dark);
    background: #ffe5df;
}

.ak-btn-outline,
.ak-btn-ghost,
.ak-btn-soft {
    background: var(--st-surface);
}

.ak-btn-soft {
    background: var(--ak-active-soft);
}

.ak-btn-ghost {
    box-shadow: none;
}

.ak-side-action {
    width: 100%;
}

.ak-full-button {
    width: 100%;
    min-width: 0;
    padding-block: 10px;
    white-space: normal;
}

.ak-mobile-header {
    display: none;
}

.ak-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

.ak-page-title,
.ak-view-title {
    margin: 0;
    color: var(--st-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.ak-page-title {
    font-size: 32px;
}

.ak-view-title {
    font-size: 32px;
}

.ak-top-subtitle,
.ak-view-subtitle {
    margin: 10px 0 0;
    color: var(--st-muted);
    font-size: 18px;
    line-height: 1.45;
}

.ak-search-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-lg);
    background: transparent;
    color: var(--st-primary);
}

.ak-search-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ak-search-input {
    width: min(320px, 72vw);
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-lg);
    color: var(--st-text);
    background: var(--st-surface);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.ak-search-input:focus {
    border-color: var(--ak-red);
    box-shadow: 0 0 0 3px rgba(201, 74, 58, 0.14);
}

.ak-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.ak-breadcrumb-link {
    color: var(--st-muted);
    text-decoration: none;
}

.ak-breadcrumb-link:hover {
    color: var(--ak-red-dark);
}

.ak-breadcrumb-current {
    color: var(--st-primary);
}

.ak-breadcrumb-separator {
    color: rgba(111, 90, 80, 0.55);
}

.ak-subscription-banner,
.ak-card,
.ak-order-row,
.ak-empty-state {
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-lg);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

.ak-subscription-banner,
.ak-address-manager-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
}

.ak-address-manager-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.ak-address-preview {
    margin: 2px 0 0;
    color: var(--st-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ak-green-label {
    margin: 0 0 12px;
    color: var(--ak-red-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ak-card-heading,
.ak-section-title,
.ak-panel-title,
.ak-item-title {
    margin: 0;
    color: var(--st-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ak-card-heading {
    font-size: 22px;
    line-height: 1.25;
}

.ak-muted-line {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.45;
}

.ak-pricing-note {
    margin: 10px 0 0;
    color: var(--st-muted);
    font-size: 13px;
    line-height: 1.45;
}

.ak-history-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ak-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--st-outline-variant);
}

.ak-section-title {
    font-size: 24px;
    line-height: 1.2;
}

.ak-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--st-muted);
    font-size: 14px;
    font-weight: 700;
}

.ak-filter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ak-filter-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ak-filter-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 12;
    min-width: 220px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface);
    box-shadow: var(--st-shadow-hover);
}

.ak-filter-option {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--st-radius-sm);
    color: var(--st-muted);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.ak-filter-option:hover,
.ak-filter-option.is-active {
    color: var(--ak-red-dark);
    background: var(--ak-active-soft);
}

.ak-order-list {
    display: grid;
    gap: 16px;
}

.ak-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 18px;
    padding: 20px;
    transition: box-shadow 160ms ease;
}

.ak-order-row:hover {
    box-shadow: var(--st-shadow-hover);
}

.ak-order-row-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(82px, 0.95fr) minmax(128px, 1.1fr) minmax(82px, 0.75fr) minmax(128px, 1.1fr);
    gap: 18px;
    align-items: center;
}

.ak-subscription-row-grid {
    grid-template-columns: minmax(150px, 1.5fr) minmax(110px, 1fr) minmax(82px, 0.75fr) minmax(128px, 1fr);
}

.ak-row-column {
    min-width: 0;
}

.ak-column-label,
.ak-info-label {
    display: block;
    min-width: 0;
    color: var(--st-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ak-column-value,
.ak-info-value {
    display: block;
    min-width: 0;
    margin-top: 8px;
    color: var(--st-primary);
    font-size: clamp(13px, 0.98vw, 16px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.ak-row-actions {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ak-row-actions .ak-btn {
    min-width: 136px;
    white-space: normal;
}

.ak-pill {
    min-height: 28px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--ak-active-soft);
    color: var(--st-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.ak-pill > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ak-status-column {
    display: grid;
    justify-items: center;
    text-align: center;
}

.ak-pill-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ak-gold);
}

.ak-pill.is-success {
    background: var(--st-success-soft);
    color: #006c49;
}

.ak-pill.is-success .ak-pill-dot {
    background: var(--st-success);
}

.ak-pill.is-danger {
    background: var(--ak-danger-soft);
    color: var(--ak-red-dark);
}

.ak-pill.is-danger .ak-pill-dot {
    background: var(--ak-red-dark);
}

.ak-pill.is-active {
    background: var(--ak-active-soft);
    color: var(--ak-brown);
}

.ak-pill.is-active .ak-pill-dot {
    background: var(--ak-orange);
}

.ak-pill.is-pending,
.ak-pill.is-neutral {
    background: var(--st-surface-soft);
    color: var(--st-muted);
}

.ak-pill.is-pending .ak-pill-dot,
.ak-pill.is-neutral .ak-pill-dot {
    background: var(--ak-gold);
}

.ak-account-box,
.ak-empty-state {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding: 24px;
}

.ak-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 8px;
}

.ak-view-copy {
    min-width: 0;
}

.ak-back-link {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--st-primary);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ak-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.ak-action-row,
.ak-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ak-action-stack {
    flex-direction: column;
    align-items: stretch;
}

.ak-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.ak-detail-main,
.ak-detail-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ak-panel {
    padding: 0;
    overflow: hidden;
}

.ak-panel-title {
    padding: 28px 28px 0;
    font-size: 24px;
    line-height: 1.2;
}

.ak-panel > .ak-info-grid,
.ak-panel > .ak-stepper,
.ak-panel > .ak-timeline,
.ak-panel > .ak-items,
.ak-panel > .ak-sub-mini,
.ak-panel > .ak-action-stack,
.ak-panel > .ak-action-row,
.ak-panel > div:not(.ak-items-header) {
    margin: 24px 28px 28px;
}

.ak-panel > .ak-info-grid {
    width: auto;
}

.ak-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 10px 4px 4px;
}

.ak-stepper::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 31px;
    height: 3px;
    border-radius: 999px;
    background: var(--st-surface-variant);
}

.ak-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 0;
}

.ak-step-marker {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-lg);
    background: var(--st-surface-active);
    color: var(--st-muted);
    box-shadow: var(--st-shadow);
}

.ak-step.is-past .ak-step-marker {
    border-color: var(--st-surface-variant);
    background: var(--st-surface-active);
    color: var(--st-primary);
}

.ak-step.is-done .ak-step-marker {
    border-color: var(--st-success);
    background: var(--st-success);
    color: #ffffff;
}

.ak-step.is-active .ak-step-marker {
    border-color: var(--ak-orange);
    background: var(--ak-orange);
    color: #ffffff;
}

.ak-stepper.is-cancelled .ak-step-marker {
    border-color: var(--st-outline-variant);
    background: var(--st-surface-soft);
    color: var(--st-primary);
}

.ak-step.is-active .ak-step-marker {
    box-shadow: 0 0 0 5px rgba(217, 130, 43, 0.16);
}

.ak-step-icon {
    font-size: 20px;
}

.ak-step-text {
    display: grid;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.ak-step-text strong {
    color: var(--st-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ak-step-text span {
    color: var(--st-muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ak-items {
    display: flex;
    flex-direction: column;
}

.ak-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px;
    color: var(--st-muted);
    font-size: 14px;
    font-weight: 700;
}

.ak-item-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--st-outline-variant);
}

.ak-item-row:first-of-type {
    border-top: 0;
}

.ak-item-image,
.ak-item-placeholder {
    width: 80px;
    height: 80px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    object-fit: cover;
    background: var(--st-surface-soft);
}

.ak-item-placeholder {
    display: grid;
    place-items: center;
    color: var(--st-muted);
    font-weight: 900;
}

.ak-item-title {
    font-size: 15px;
    line-height: 1.35;
}

.ak-item-body {
    min-width: 0;
}

.ak-item-facts {
    min-width: 0;
    max-width: min(360px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    gap: 28px;
    justify-self: end;
    text-align: right;
}

.ak-item-facts .ak-column-value {
    font-size: clamp(13px, 0.92vw, 15px);
}

.ak-info-grid {
    display: grid;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ak-info-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--st-outline-variant);
}

.ak-info-row:last-child {
    border-bottom: 0;
}

.ak-info-value {
    margin-top: 0;
    max-width: none;
    min-width: 0;
    text-align: right;
}

.ak-recent-orders-panel .ak-order-row {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.ak-recent-orders-panel .ak-order-row-grid {
    grid-template-columns: minmax(72px, 0.75fr) minmax(118px, 1fr) minmax(72px, 0.7fr) minmax(120px, 1fr);
}

.ak-recent-orders-panel .ak-row-actions {
    justify-content: flex-start;
    width: 100%;
}

.ak-recent-orders-panel .ak-row-actions .ak-btn {
    flex: 1 1 180px;
    min-width: min(180px, 100%);
}

.ak-account-box {
    width: 100%;
    display: grid;
    gap: 16px;
    justify-items: stretch;
}

.ak-account-box .ak-info-grid {
    width: min(100%, 760px);
}

.ak-account-box .ak-info-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(260px, 1fr);
    align-items: center;
}

.ak-account-box .ak-info-value {
    max-width: none;
    text-align: left;
    font-size: clamp(13px, 1.2vw, 16px);
}

.ak-account-actions {
    justify-content: flex-start;
    padding-top: 14px;
}

.ak-account-actions .ak-btn {
    flex: 0 1 auto;
    min-width: min(220px, 100%);
}

.ak-readonly-line {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface-soft);
    color: var(--st-muted);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

.ak-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(28, 25, 23, 0.48);
    backdrop-filter: blur(8px);
}

.ak-modal-card {
    width: min(100%, 520px);
    display: grid;
    gap: 16px;
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-lg);
    background: var(--st-surface);
    box-shadow: 0 24px 80px rgba(28, 25, 23, 0.22);
}

.ak-timeline {
    display: grid;
    gap: 0;
}

.ak-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 16px;
    padding: 0 0 22px;
}

.ak-timeline-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: var(--st-outline-variant);
}

.ak-timeline-item:last-child::before {
    display: none;
}

.ak-timeline-dot {
    width: 24px;
    height: 24px;
    border: 2px solid var(--st-outline-variant);
    border-radius: 50%;
    background: var(--st-surface);
}

.ak-timeline-item.is-complete .ak-timeline-dot {
    border-color: var(--ak-gold);
    box-shadow: inset 0 0 0 5px var(--st-surface), inset 0 0 0 12px var(--ak-gold);
}

.ak-timeline-item.is-complete.is-success .ak-timeline-dot {
    border-color: var(--st-success);
    box-shadow: inset 0 0 0 5px var(--st-surface), inset 0 0 0 12px var(--st-success);
}

.ak-timeline-item.is-danger .ak-timeline-dot {
    border-color: var(--ak-red-dark);
    box-shadow: inset 0 0 0 5px var(--st-surface), inset 0 0 0 12px var(--ak-red-dark);
}

.ak-timeline-item strong {
    font-size: 15px;
}

.ak-notice {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface-soft);
    color: var(--st-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ak-status-content {
    display: grid;
    gap: 18px;
}

.ak-cancelled-state {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(185, 62, 48, 0.22);
    border-radius: var(--st-radius-md);
    background: var(--ak-danger-soft);
}

.ak-cancelled-icon {
    color: var(--ak-red-dark);
    font-size: 32px;
}

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

.ak-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.ak-edit-card,
.ak-edit-summary {
    min-width: 0;
    padding: 28px;
}

.ak-edit-card {
    display: grid;
    gap: 22px;
}

.ak-edit-summary {
    position: sticky;
    top: 32px;
    display: grid;
    gap: 18px;
}

.ak-edit-card-intro {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--st-outline-variant);
}

.ak-edit-card-intro h2,
.ak-edit-card-intro p {
    grid-column: 2;
    margin: 0;
}

.ak-edit-card-icon {
    grid-row: 1 / span 2;
    color: var(--ak-red-dark);
}

.ak-edit-section-title {
    margin: 6px 0 0;
    color: var(--st-primary);
    font-size: 16px;
    line-height: 1.3;
}

.ak-edit-product {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface-soft);
}

.ak-edit-product-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ak-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.ak-choice-card {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ak-choice-card:hover:not(.is-disabled) {
    transform: translateY(-1px);
    border-color: var(--ak-red);
}

.ak-choice-card.is-selected {
    border-color: var(--ak-red);
    box-shadow: 0 0 0 3px rgba(201, 74, 58, 0.12);
}

.ak-choice-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.ak-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ak-choice-card strong,
.ak-choice-card span,
.ak-choice-card em {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ak-choice-card span,
.ak-choice-card em {
    color: var(--st-muted);
    font-size: 13px;
}

.ak-flavor-editor {
    display: grid;
    gap: 14px;
}

.ak-flavor-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface-soft);
}

.ak-qty-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.ak-qty-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ak-form-input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    background: var(--st-surface);
    color: var(--st-primary);
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea.ak-form-input {
    min-height: 104px;
    resize: vertical;
}

.ak-form-input:focus {
    border-color: var(--ak-red);
    box-shadow: 0 0 0 3px rgba(201, 74, 58, 0.12);
}

.ak-address-form {
    display: grid;
    gap: 18px;
}

.ak-form-field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.ak-form-label {
    color: var(--st-primary);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.ak-form-grid-3 {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(86px, 0.55fr) minmax(110px, 0.8fr);
    gap: 14px;
}

.ak-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 18px;
    border-top: 1px solid var(--st-outline-variant);
}

.ak-form-actions .ak-btn {
    flex: 0 1 220px;
}

.ak-form-error-host {
    display: grid;
    gap: 10px;
}

.ak-form-error {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(185, 62, 48, 0.24);
    border-radius: var(--st-radius-md);
    background: var(--ak-danger-soft);
    color: var(--ak-red-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ak-cancel-subscription {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.ak-cancel-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(185, 62, 48, 0.24);
    border-radius: var(--st-radius-md);
    background: linear-gradient(180deg, #fff9f7, var(--ak-danger-soft));
}

.ak-cancel-card[hidden] {
    display: none;
}

.ak-cancel-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ak-cancel-copy strong {
    color: var(--ak-red-dark);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.ak-cancel-copy p,
.ak-cancel-state {
    margin: 0;
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ak-cancel-actions {
    display: grid;
    gap: 10px;
}

.ak-summary-list {
    display: grid;
    gap: 0;
}

.ak-summary-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--st-outline-variant);
}

.ak-summary-line:last-child {
    border-bottom: 0;
}

.ak-summary-line span {
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 700;
}

.ak-summary-line strong {
    min-width: 0;
    color: var(--st-primary);
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
}

.ak-sub-mini {
    display: grid;
    gap: 14px;
}

.ak-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding: 28px 0 0;
    border-top: 1px solid var(--st-outline-variant);
    color: var(--st-muted);
    font-size: 13px;
}

.ak-footer strong {
    color: var(--st-primary);
}

.ak-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
}

.ak-footer-link {
    color: var(--st-muted);
    text-decoration: none;
}

.ak-toast-host {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    width: min(360px, calc(100vw - 40px));
    pointer-events: none;
}

.ak-toast {
    padding: 14px 16px;
    border: 1px solid var(--st-outline-variant);
    border-radius: var(--st-radius-md);
    color: var(--st-primary);
    background: var(--st-surface);
    box-shadow: var(--st-shadow-hover);
    font-size: 14px;
    font-weight: 800;
}

.ak-toast.is-info {
    border-color: rgba(201, 74, 58, 0.22);
    background: var(--ak-active-soft);
}

.ak-skeleton {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    background: var(--st-surface);
}

.ak-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(230, 211, 179, 0.62), transparent);
    animation: akShimmer 1.35s infinite;
}

@keyframes akShimmer {
    100% { transform: translateX(100%); }
}

.ak-fatal-state {
    width: min(720px, calc(100% - 32px));
    margin: 80px auto 0;
}

@media (max-width: 1120px) {
    .ak-sidebar {
        display: none;
    }

    .ak-main {
        margin-left: 0;
        padding: 0 16px 32px;
    }

    .ak-mobile-header {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        margin: 0 -16px 24px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--st-outline-variant);
        background: rgba(244, 239, 232, 0.94);
        backdrop-filter: blur(16px);
    }

    .ak-mobile-header .ak-brand {
        min-width: 0;
    }

    .ak-mobile-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }

    .ak-btn-compact {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

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

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

    .ak-edit-summary {
        position: static;
    }
}

@media (max-width: 1240px) {
    .ak-recent-orders-panel .ak-order-row-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .ak-order-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ak-row-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .ak-row-actions .ak-btn {
        flex: 1 1 160px;
    }
}

@media (max-width: 760px) {
    .ak-page-wrap {
        gap: 20px;
    }

    .ak-brand-logo {
        width: 34px;
        height: 34px;
    }

    .ak-mobile-header .ak-brand-title,
    .ak-mobile-header .ak-brand-subtitle {
        display: none;
    }

    .ak-mobile-actions {
        gap: 6px;
    }

    .ak-btn-compact {
        padding: 0 10px;
        font-size: 12px;
    }

    .ak-mobile-actions .ak-btn-dark {
        display: none;
    }

    .ak-topbar,
    .ak-view-header,
    .ak-subscription-banner,
    .ak-address-manager-card,
    .ak-section-header,
    .ak-order-row,
    .ak-footer {
        grid-template-columns: 1fr;
    }

    .ak-topbar,
    .ak-view-header,
    .ak-subscription-banner,
    .ak-address-manager-card,
    .ak-section-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .ak-page-title,
    .ak-view-title {
        font-size: 28px;
    }

    .ak-subscription-banner,
    .ak-address-manager-card,
    .ak-card,
    .ak-order-row {
        border-radius: var(--st-radius-md);
    }

    .ak-subscription-banner,
    .ak-address-manager-card,
    .ak-order-row,
    .ak-empty-state {
        padding: 18px;
    }

    .ak-order-row-grid,
    .ak-subscription-row-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%;
    }

    .ak-row-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .ak-row-actions .ak-btn {
        flex: 1 1 140px;
    }

    .ak-status-column {
        justify-items: start;
        text-align: left;
    }

    .ak-panel-title {
        padding: 20px 20px 0;
        font-size: 22px;
    }

    .ak-panel > .ak-info-grid,
    .ak-panel > .ak-stepper,
    .ak-panel > .ak-timeline,
    .ak-panel > .ak-items,
    .ak-panel > .ak-sub-mini,
    .ak-panel > .ak-action-stack,
    .ak-panel > .ak-action-row,
    .ak-panel > div:not(.ak-items-header) {
        margin: 20px;
    }

    .ak-stepper,
    .ak-stepper-4 {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }

    .ak-stepper::before {
        left: 20px;
        right: auto;
        top: 20px;
        bottom: 20px;
        width: 2px;
        height: auto;
    }

    .ak-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .ak-edit-card,
    .ak-edit-summary {
        padding: 20px;
    }

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

    .ak-form-actions .ak-btn {
        flex: 1 1 100%;
        width: 100%;
    }

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

    .ak-item-row {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
    }

    .ak-item-image,
    .ak-item-placeholder {
        width: 64px;
        height: 64px;
    }

    .ak-item-facts {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        justify-self: stretch;
        text-align: left;
    }

    .ak-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .ak-info-value {
        max-width: 100%;
        text-align: left;
    }

    .ak-account-box .ak-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ak-account-box .ak-info-value {
        min-width: 0;
        width: 100%;
    }

    .ak-footer-links {
        justify-content: flex-start;
    }
}

/* ── Flavor Stepper ───────────────────────────────────── */
.ak-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--st-outline-variant);
    border-radius: 999px;
    overflow: hidden;
    background: var(--st-surface);
    width: 132px;
    min-width: 132px;
    justify-self: end;
    box-shadow: 0 8px 18px rgba(74, 44, 34, 0.08);
}

.ak-qty-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 46px;
    border: 0;
    background: var(--st-surface);
    color: var(--ak-red-dark);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.ak-qty-stepper-btn:hover:not(:disabled) {
    background: var(--ak-active-soft);
    color: var(--ak-red-dark);
}

.ak-qty-stepper-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(201, 74, 58, 0.16);
}

.ak-qty-stepper-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.ak-qty-stepper-btn:active:not(:disabled) {
    background: var(--st-surface-variant);
}

.ak-qty-stepper-value {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--st-primary);
    padding: 0 6px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--st-outline-variant);
    border-right: 1px solid var(--st-outline-variant);
    background: linear-gradient(180deg, #fffaf2 0%, var(--st-surface-soft) 100%);
}

/* ── Flavor total helper ─────────────────────────────── */
.ak-flavor-total {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--st-radius-md);
    background: var(--st-surface-soft);
    font-size: 14px;
    font-weight: 700;
    color: var(--st-primary);
    text-align: center;
}

.ak-flavor-total.is-valid {
    border: 1px solid rgba(0, 113, 77, 0.22);
    background: #e6f4ea;
    color: #00714d;
}

.ak-flavor-total.is-invalid {
    border: 1px solid rgba(185, 62, 48, 0.22);
    background: var(--ak-danger-soft);
    color: var(--ak-red-dark);
}

/* ── Disabled plan option reason text ────────────────── */
.ak-disabled-reason {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--st-muted);
    line-height: 1.3;
}

/* ── Scope notice ────────────────────────────────────── */
.ak-scope-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--st-radius-md);
    background: var(--ak-active-soft);
    border: 1px solid var(--st-outline-variant);
    font-size: 13px;
    line-height: 1.45;
    color: var(--st-muted);
}

.ak-scope-notice strong {
    color: var(--st-primary);
}

/* ── Summary applies-to line ─────────────────────────── */
.ak-summary-target {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: var(--st-radius-md);
    background: var(--st-surface-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--st-primary);
    text-align: center;
    border: 1px solid var(--st-outline-variant);
}

/* ── Mobile stepper resize ───────────────────────────── */
@media (max-width: 520px) {
    .ak-mobile-header {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .ak-mobile-actions .ak-btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ak-order-row-grid,
    .ak-subscription-row-grid,
    .ak-recent-orders-panel .ak-order-row-grid {
        grid-template-columns: 1fr;
    }

    .ak-row-actions .ak-btn,
    .ak-recent-orders-panel .ak-row-actions .ak-btn {
        flex-basis: 100%;
        width: 100%;
    }

    .ak-edit-product {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .ak-qty-row,
    .ak-summary-line {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
    }

    .ak-summary-line strong {
        text-align: left;
    }
}
