:root {
    --hk-admin-ink: #231f20;
    --hk-admin-muted: #5f5953;
    --hk-admin-line: #e4dbd0;
    --hk-admin-paper: #fffaf4;
    --hk-admin-surface: #ffffff;
    --hk-admin-sage: #6f4e37;
    --hk-admin-sage-dark: #4e3425;
    color-scheme: light;
}

html,
body,
html.dark,
html.dark body {
    color-scheme: light !important;
}

html.dark {
    background: #efe3d2 !important;
}

html.dark body,
html.dark .fi-body,
html.dark .fi-main,
html.dark .fi-page,
html.dark .fi-main-ctn,
html.dark .fi-simple-layout {
    background-color: #efe3d2 !important;
    color: var(--hk-admin-ink) !important;
}

html.dark .fi-sidebar,
html.dark .fi-sidebar-header,
html.dark .fi-topbar,
html.dark .fi-section,
html.dark .fi-ta-ctn,
html.dark .fi-fo-component-ctn,
html.dark .fi-wi-widget,
html.dark .fi-dropdown-panel,
html.dark .fi-simple-main {
    background-color: #fffaf4 !important;
    color: var(--hk-admin-ink) !important;
    border-color: var(--hk-admin-line) !important;
}

html.dark .fi-input,
html.dark .fi-select-input,
html.dark .fi-textarea,
html.dark input,
html.dark textarea,
html.dark select {
    background-color: #fff !important;
    color: var(--hk-admin-ink) !important;
    border-color: var(--hk-admin-line) !important;
}

html.dark label,
html.dark .fi-fo-field-wrp-label,
html.dark .fi-fo-field-wrp-label span,
html.dark .fi-ta-header-cell-label,
html.dark .fi-ta-text,
html.dark .fi-sidebar-item-label,
html.dark .fi-link,
html.dark .fi-header-heading,
html.dark .fi-section-header-heading,
html.dark .fi-section-content,
html.dark .fi-modal-heading {
    color: var(--hk-admin-ink) !important;
}

html.dark .fi-color-gray,
html.dark .fi-ta-text-item-label,
html.dark .fi-fo-field-wrp-helper-text,
html.dark .fi-section-header-description {
    color: var(--hk-admin-muted) !important;
}

.fi-body {
    background-color: #efe3d2;
    background-image:
        linear-gradient(45deg, rgba(111, 78, 55, .035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(111, 78, 55, .035) 25%, transparent 25%),
        linear-gradient(180deg, #fffaf3 0%, #efe3d2 100%);
    background-size: 28px 28px, 28px 28px, auto;
}

.fi-sidebar,
.fi-topbar {
    background: var(--hk-admin-paper);
}

.fi-sidebar {
    border-right: 1px solid var(--hk-admin-line);
}

.fi-logo,
.fi-sidebar-header .fi-logo,
.fi-topbar .fi-logo {
    color: var(--hk-admin-sage-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.hk-filament-brand {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-right: .55rem;
    border-radius: .5rem;
    background: var(--hk-admin-sage);
    color: #fff;
    font-size: .8rem;
}

.fi-sidebar-nav {
    padding-top: .75rem;
}

.fi-sidebar-item-active > .fi-sidebar-item-button,
.fi-sidebar-item-button:hover {
    background: #edf4eb;
    color: var(--hk-admin-sage-dark);
}

.fi-main,
.fi-page {
    color: var(--hk-admin-ink);
}

.fi-header-heading {
    letter-spacing: 0;
}

.fi-ta,
.fi-section,
.fi-fo-component-ctn,
.fi-wi-widget {
    border-radius: .5rem;
}

.fi-ta,
.fi-section {
    border-color: var(--hk-admin-line);
    box-shadow: 0 16px 40px rgba(35, 31, 32, .06);
}

.fi-btn {
    border-radius: .5rem;
    font-weight: 700;
}

.hk-filament-marketplace-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0 .85rem;
    border: 1px solid var(--hk-admin-line);
    border-radius: .5rem;
    background: #fff;
    color: var(--hk-admin-sage-dark);
    font-size: .875rem;
    font-weight: 800;
}

.hk-filament-marketplace-link:hover {
    border-color: var(--hk-admin-sage);
    color: var(--hk-admin-sage-dark);
}

.fi-simple-layout {
    min-height: 100vh;
    background: #f6efe6;
}

.fi-simple-main-ctn {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.fi-simple-main {
    width: min(100%, 30rem);
    border: 1px solid var(--hk-admin-line);
    border-radius: .75rem;
    background: var(--hk-admin-surface);
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(35, 31, 32, .12);
}

.fi-simple-main .fi-logo {
    display: none;
}

.hk-filament-login-intro {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    color: var(--hk-admin-muted);
    font-weight: 800;
}

.hk-filament-login-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: .5rem;
    background: var(--hk-admin-sage);
    color: #fff;
}

.fi-simple-header-heading {
    color: var(--hk-admin-ink);
    font-size: 1.65rem;
    letter-spacing: 0;
}

.fi-simple-header-subheading {
    color: var(--hk-admin-muted);
}

.fi-simple-main label,
.fi-simple-main .fi-fo-field-wrp-label span,
.fi-simple-main .fi-fo-field-label-col,
.fi-simple-main .fi-fo-field-label-ctn,
.fi-simple-main .fi-fo-field-label,
.fi-simple-main .fi-fo-field-label-content,
.fi-simple-main .fi-checkbox-input + span,
.fi-simple-main .fi-link {
    color: var(--hk-admin-ink) !important;
}

.fi-simple-main .fi-input,
.fi-simple-main input {
    color: var(--hk-admin-ink) !important;
    background: #fff !important;
}

.fi-simple-main input::placeholder {
    color: #8a8178 !important;
    opacity: 1;
}

.fi-simple-main .fi-fo-field-wrp-error-message {
    color: #9f3a24;
}

.hk-auth-inline-link {
    color: var(--hk-admin-sage-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.hk-admin-dashboard {
    display: grid;
    gap: 1.25rem;
    color: var(--hk-admin-ink);
}

.hk-admin-hero,
.hk-admin-stat-card,
.hk-admin-list-card {
    border: 1px solid var(--hk-admin-line);
    border-radius: .75rem;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 16px 40px rgba(35, 31, 32, .07);
}

.hk-admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding: 1.5rem;
    background:
        linear-gradient(135deg, rgba(111, 78, 55, .1), rgba(184, 111, 80, .07)),
        #fffaf3;
}

.hk-admin-hero span {
    display: block;
    margin-bottom: .45rem;
    color: #b86f50;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hk-admin-hero h2 {
    margin: 0;
    color: var(--hk-admin-ink);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0;
}

.hk-admin-hero p {
    margin: .35rem 0 0;
    color: var(--hk-admin-muted);
}

.hk-admin-hero a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: .5rem;
    background: var(--hk-admin-sage);
    color: #fff;
    font-weight: 800;
}

.hk-admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hk-admin-stat-card {
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hk-admin-stat-card::after,
.hk-vendor-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -2rem -2rem auto;
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: rgba(184, 111, 80, .1);
}

.hk-admin-stat-card:hover,
.hk-vendor-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(111, 78, 55, .4);
    box-shadow: 0 22px 46px rgba(35, 31, 32, .11);
}

.hk-admin-stat-card span {
    display: block;
    color: var(--hk-admin-muted);
    font-size: .85rem;
    font-weight: 700;
}

.hk-admin-stat-card strong {
    display: block;
    margin-top: .45rem;
    color: var(--hk-admin-ink);
    font-size: 1.7rem;
    font-weight: 900;
}

.hk-admin-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hk-admin-list-card {
    padding: 1.25rem;
}

.hk-admin-list-card h3 {
    margin: 0 0 1rem;
    color: var(--hk-admin-ink);
    font-size: 1rem;
    font-weight: 900;
}

.hk-admin-list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--hk-admin-line);
}

.hk-admin-list-row:last-child {
    border-bottom: 0;
}

.hk-admin-list-row strong,
.hk-admin-list-row span,
.hk-admin-list-row em {
    display: block;
}

.hk-admin-list-row strong {
    color: var(--hk-admin-ink);
    font-weight: 800;
}

.hk-admin-list-row span,
.hk-admin-list-row em,
.hk-admin-list-card p {
    color: var(--hk-admin-muted);
    font-size: .85rem;
    font-style: normal;
}

.hk-vendor-dashboard {
    display: grid;
    gap: 1.25rem;
    color: var(--hk-admin-ink);
}

.hk-vendor-hero,
.hk-vendor-stat-card,
.hk-vendor-list-card {
    border: 1px solid var(--hk-admin-line);
    border-radius: .75rem;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 16px 40px rgba(35, 31, 32, .07);
}

.hk-vendor-hero {
    position: relative;
    overflow: hidden;
    min-height: 9.25rem;
    padding: 1.9rem 2rem;
    background:
        linear-gradient(135deg, rgba(111, 78, 55, .12), rgba(184, 111, 80, .06)),
        #fffaf3;
}

.hk-vendor-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(42%, 28rem);
    background:
        repeating-linear-gradient(135deg, rgba(111, 78, 55, .08) 0 1px, transparent 1px 16px),
        linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(239, 227, 210, .62));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.hk-vendor-hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.5rem;
    min-height: 5.6rem;
}

.hk-vendor-hero span {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    margin-bottom: .55rem;
    color: #b86f50;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.hk-vendor-hero h2 {
    margin: 0;
    color: var(--hk-admin-ink);
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.hk-vendor-hero p {
    margin: .55rem 0 0;
    color: var(--hk-admin-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.hk-vendor-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0 .8rem;
    background: #fff4d9;
    color: #8a5d00;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(35, 31, 32, .08);
}

.hk-vendor-status-active {
    background: #edf6e9;
    color: #3f6434;
}

.hk-vendor-status-suspended {
    background: #fff0ea;
    color: #9f3a24;
}

.hk-vendor-notice {
    margin-top: 1rem;
    border: 1px solid var(--hk-admin-line);
    border-radius: .65rem;
    background: #fff;
    padding: 1rem;
}

.hk-vendor-notice strong {
    display: block;
    color: var(--hk-admin-ink);
    font-weight: 900;
}

.hk-vendor-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hk-vendor-stat-card {
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hk-vendor-stat-card span {
    display: block;
    color: var(--hk-admin-muted);
    font-size: .85rem;
    font-weight: 700;
}

.hk-vendor-stat-card strong {
    display: block;
    margin-top: .45rem;
    color: var(--hk-admin-ink);
    font-size: 1.7rem;
    font-weight: 900;
}

.hk-vendor-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hk-vendor-list-card {
    padding: 1.25rem;
}

.hk-vendor-list-card h3 {
    margin: 0 0 1rem;
    color: var(--hk-admin-ink);
    font-size: 1rem;
    font-weight: 900;
}

.hk-vendor-list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--hk-admin-line);
}

.hk-vendor-list-row:last-child {
    border-bottom: 0;
}

.hk-vendor-list-row strong,
.hk-vendor-list-row span {
    display: block;
}

.hk-vendor-list-row strong {
    color: var(--hk-admin-ink);
    font-weight: 800;
}

.hk-vendor-list-row span,
.hk-vendor-list-card p {
    color: var(--hk-admin-muted);
    font-size: .85rem;
}

.hk-vendor-finance-row {
    align-items: flex-start;
    border-bottom: 0;
    padding-bottom: .35rem;
}

.hk-vendor-finance-items {
    display: grid;
    gap: .45rem;
    margin: 0 0 .9rem;
    padding: .7rem .85rem;
    border: 1px solid var(--hk-admin-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}

.hk-vendor-finance-items div {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    font-size: .85rem;
}

.hk-vendor-finance-items span {
    color: var(--hk-admin-ink);
}

.hk-vendor-finance-items strong {
    color: var(--hk-admin-brown);
    white-space: nowrap;
}

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

@media (max-width: 700px) {
    .hk-admin-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .hk-vendor-hero {
        padding: 1.35rem;
    }

    .hk-vendor-hero::before {
        width: 70%;
        opacity: .45;
    }

    .hk-vendor-hero-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hk-vendor-status {
        justify-self: start;
    }

    .hk-admin-stat-grid,
    .hk-admin-lists,
    .hk-vendor-stat-grid,
    .hk-vendor-lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fi-simple-main-ctn {
        padding: 1rem;
    }

    .fi-simple-main {
        padding: 1.25rem;
    }
}

/* Modern admin and seller panel refresh */
:root {
    --hk-admin-shadow-soft: 0 16px 42px rgba(80, 48, 28, .1);
    --hk-admin-shadow-strong: 0 24px 70px rgba(67, 38, 22, .18);
    --hk-admin-clay: #b86f50;
    --hk-admin-gold: #d7a35c;
}

.fi-body,
.fi-main,
.fi-simple-layout {
    background:
        linear-gradient(135deg, rgba(255, 252, 247, .98), rgba(240, 224, 204, .92)),
        repeating-linear-gradient(45deg, rgba(111, 78, 55, .045) 0 1px, transparent 1px 20px) !important;
}

.fi-topbar,
.fi-sidebar,
.fi-sidebar-header {
    background: rgba(255, 252, 247, .9) !important;
    backdrop-filter: blur(16px);
}

.fi-topbar {
    border-bottom: 1px solid rgba(111, 78, 55, .14) !important;
    box-shadow: 0 14px 36px rgba(80, 48, 28, .08);
}

.fi-sidebar {
    border-right: 1px solid rgba(111, 78, 55, .13) !important;
    box-shadow: 14px 0 40px rgba(80, 48, 28, .06);
}

.fi-sidebar-item a,
.fi-sidebar-group-button {
    border-radius: 8px !important;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.fi-sidebar-item a:hover,
.fi-sidebar-group-button:hover {
    transform: translateX(2px);
    background: rgba(111, 78, 55, .08) !important;
}

.fi-sidebar-item-active a,
.fi-sidebar-item-active a:hover {
    background: linear-gradient(135deg, rgba(122, 79, 53, .16), rgba(184, 111, 80, .12)) !important;
    color: #6b432b !important;
}

.fi-main-ctn {
    position: relative;
}

.fi-main {
    max-width: none !important;
}

.fi-section,
.fi-ta-ctn,
.fi-fo-component-ctn,
.fi-simple-main,
.fi-dropdown-panel {
    border-radius: 8px !important;
    border-color: rgba(111, 78, 55, .14) !important;
    box-shadow: var(--hk-admin-shadow-soft) !important;
}

.fi-ta-ctn,
.fi-ta,
.fi-ta-table {
    max-width: 100% !important;
}

.fi-ta-cell,
.fi-ta-text {
    overflow-wrap: anywhere;
}

.hk-vendor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hk-vendor-form-grid label {
    display: grid;
    gap: .45rem;
    color: #4f4238;
    font-weight: 800;
}

.hk-vendor-form-grid input {
    width: 100%;
    border: 1px solid rgba(96, 63, 42, .24);
    border-radius: 10px;
    background: rgba(255, 252, 247, .92);
    padding: .78rem .9rem;
    color: #231b16;
    outline: none;
}

.hk-vendor-form-grid input:focus {
    border-color: #8a5638;
    box-shadow: 0 0 0 3px rgba(138, 86, 56, .12);
}

.hk-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    align-items: start;
}

.hk-pricing-field {
    display: flex !important;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    color: #4f4238;
    font-weight: 800;
}

.hk-pricing-field span {
    display: block;
    font-size: .92rem;
    line-height: 1.25;
}

.hk-pricing-field input {
    display: block !important;
    width: 100% !important;
    min-height: 44px;
    border: 1px solid rgba(96, 63, 42, .28) !important;
    border-radius: 10px !important;
    background: #fffaf3 !important;
    padding: .72rem .85rem !important;
    color: #231b16 !important;
    font-weight: 750;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.hk-pricing-field input:focus {
    border-color: #7a4a30 !important;
    box-shadow: 0 0 0 3px rgba(122, 74, 48, .14) !important;
    outline: none;
}

.hk-pricing-note {
    margin: -.25rem 0 1rem;
    color: #6e6258;
    font-weight: 700;
}

.hk-pricing-warning {
    margin: .75rem 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(196, 120, 71, .28);
    border-radius: 8px;
    background: rgba(255, 239, 213, .72);
    color: #6f3d1f;
    font-weight: 750;
    line-height: 1.55;
}

.hk-vendor-todo-card small {
    color: #6e6258;
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .hk-vendor-form-grid {
        grid-template-columns: 1fr;
    }

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

.fi-input-wrp,
.fi-select-input,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea {
    border-radius: 8px !important;
}

.fi-btn {
    border-radius: 8px !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.hk-admin-dashboard,
.hk-vendor-dashboard {
    box-sizing: border-box;
    padding: clamp(1rem, 2vw, 2rem);
    width: min(1680px, 100%);
    max-width: none;
    margin-inline: auto;
}

.hk-admin-hero,
.hk-vendor-hero-main {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(111, 78, 55, .16);
    border-radius: 8px;
    background:
        linear-gradient(116deg, rgba(255, 252, 247, .98) 0 58%, rgba(122, 79, 53, .12) 58% 100%),
        repeating-linear-gradient(135deg, rgba(111, 78, 55, .05) 0 2px, transparent 2px 24px);
    box-shadow: var(--hk-admin-shadow-strong);
}

.hk-admin-hero::before,
.hk-vendor-hero-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #7a4f35, var(--hk-admin-clay), var(--hk-admin-gold), #6f7d61);
}

.hk-admin-hero > *,
.hk-vendor-hero-main > * {
    position: relative;
    z-index: 1;
}

.hk-admin-stat-card,
.hk-vendor-stat-card,
.hk-admin-list-card,
.hk-vendor-list-card {
    border: 1px solid rgba(111, 78, 55, .14);
    border-radius: 8px;
    background: rgba(255, 252, 247, .88);
    box-shadow: var(--hk-admin-shadow-soft);
    backdrop-filter: blur(10px);
}

.hk-admin-stat-card::before,
.hk-vendor-stat-card::before,
.hk-admin-list-card::before,
.hk-vendor-list-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--hk-admin-clay), var(--hk-admin-gold), #6f7d61);
    opacity: .85;
}

.hk-admin-stat-card:hover,
.hk-vendor-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hk-admin-shadow-strong);
}

.hk-admin-stat-value,
.hk-vendor-stat-value {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    letter-spacing: 0;
}

.hk-admin-list-row,
.hk-vendor-list-row {
    border-radius: 8px;
    padding-inline: .75rem;
    transition: background .16s ease, transform .16s ease;
}

.hk-admin-list-row:hover,
.hk-vendor-list-row:hover {
    background: rgba(111, 78, 55, .06);
    transform: translateX(2px);
}

.hk-admin-scroll-list {
    max-height: 28rem;
    overflow-y: auto;
    padding-right: .35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 78, 55, .42) rgba(255, 250, 243, .72);
}

.hk-admin-scroll-list::-webkit-scrollbar {
    width: .45rem;
}

.hk-admin-scroll-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(111, 78, 55, .42);
}

.fi-fo-rich-editor,
.fi-fo-rich-editor .ProseMirror,
.fi-fo-rich-editor textarea {
    min-height: var(--hk-rich-editor-min-height, 18rem);
}

.fi-simple-main {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 252, 247, .96), rgba(244, 231, 214, .86)),
        repeating-linear-gradient(135deg, rgba(111, 78, 55, .045) 0 1px, transparent 1px 18px) !important;
}

.fi-simple-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #7a4f35, var(--hk-admin-clay), var(--hk-admin-gold), #6f7d61);
}
.hk-filament-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* Seller dashboard final layout pass */
.hk-vendor-dashboard {
    max-width: none;
    margin-inline: auto;
}

.hk-vendor-hero {
    border-radius: 8px;
    border: 1px solid rgba(111, 78, 55, .16);
    background:
        radial-gradient(circle at 16% 20%, rgba(215, 163, 92, .18), transparent 28%),
        linear-gradient(116deg, rgba(255, 252, 247, .98) 0 58%, rgba(122, 79, 53, .12) 58% 100%),
        repeating-linear-gradient(135deg, rgba(111, 78, 55, .05) 0 2px, transparent 2px 24px);
    box-shadow: var(--hk-admin-shadow-strong);
}

.hk-vendor-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #7a4f35, var(--hk-admin-clay), var(--hk-admin-gold), #6f7d61);
}

.hk-vendor-hero-main {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    grid-template-columns: minmax(14rem, 1fr) minmax(18rem, auto);
    align-items: center;
}

.hk-vendor-hero-main::before {
    content: none;
}

.hk-vendor-identity h2 {
    max-width: 24ch;
}

.hk-vendor-hero-side {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .85rem;
    justify-items: end;
}

.hk-vendor-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    width: min(100%, 27rem);
}

.hk-vendor-hero-metrics a {
    display: block;
    min-width: 0;
    border: 1px solid rgba(111, 78, 55, .13);
    border-radius: 8px;
    background: rgba(255, 252, 247, .78);
    padding: .65rem .75rem;
    color: var(--hk-admin-ink);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(80, 48, 28, .08);
    transition: transform .16s ease, box-shadow .16s ease;
}

.hk-vendor-hero-metrics a:hover {
    transform: translateY(-2px);
    box-shadow: var(--hk-admin-shadow-soft);
}

.hk-vendor-hero-metrics span {
    margin: 0 0 .25rem;
    min-height: auto;
    font-size: .68rem;
}

.hk-vendor-hero-metrics strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    line-height: 1.2;
}

.hk-vendor-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.25rem;
}

.hk-vendor-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    border-radius: 8px;
    border: 1px solid rgba(111, 78, 55, .18);
    background: #fffaf3;
    padding: 0 1rem;
    color: #5b3724;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(80, 48, 28, .08);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.hk-vendor-hero-actions a:first-child {
    background: linear-gradient(135deg, #7a4f35, #b86f50);
    color: #fffaf3;
}

.hk-vendor-hero-actions a:hover {
    transform: translateY(-2px);
    box-shadow: var(--hk-admin-shadow-soft);
}

.hk-vendor-list-card {
    position: relative;
    overflow: hidden;
}

.hk-admin-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hk-admin-health-card {
    display: grid;
    gap: .45rem;
    min-height: 6rem;
    border: 1px solid rgba(111, 78, 55, .14);
    border-radius: 8px;
    background: rgba(255, 252, 247, .9);
    padding: 1rem;
    color: var(--hk-admin-ink);
    text-decoration: none;
    box-shadow: var(--hk-admin-shadow-soft);
    transition: transform .16s ease, box-shadow .16s ease;
}

.hk-admin-health-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hk-admin-shadow-strong);
}

.hk-admin-health-card span {
    color: var(--hk-admin-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hk-admin-health-card strong {
    font-size: .98rem;
    line-height: 1.35;
}

.hk-admin-health-warning {
    border-top: 4px solid var(--hk-admin-gold);
}

.hk-admin-health-danger {
    border-top: 4px solid #b86f50;
}

.hk-admin-health-ok {
    border-top: 4px solid #6f7d61;
}

.hk-vendor-optimization-card {
    grid-column: span 2;
}

.hk-vendor-optimization-row {
    display: grid;
    grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.2fr);
    gap: 1rem;
    border-bottom: 1px solid var(--hk-admin-line);
    padding: .9rem 0;
    color: var(--hk-admin-ink);
    text-decoration: none;
}

.hk-vendor-optimization-row:last-child {
    border-bottom: 0;
}

.hk-vendor-optimization-row strong,
.hk-vendor-optimization-row span {
    display: block;
}

.hk-vendor-optimization-row span {
    margin-top: .25rem;
    color: var(--hk-admin-muted);
    font-size: .82rem;
}

.hk-vendor-optimization-row ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--hk-admin-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.hk-autosave-badge {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    transform: translateY(1rem);
    opacity: 0;
    border: 1px solid rgba(111, 78, 55, .18);
    border-radius: 8px;
    background: #fffaf3;
    padding: .75rem 1rem;
    color: #4b2d1f;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: var(--hk-admin-shadow-strong);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.hk-autosave-badge.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.hk-system-health code {
    border: 1px solid rgba(111, 78, 55, .18);
    border-radius: 8px;
    background: #f7efe6;
    padding: .35rem .55rem;
    color: #4b2d1f;
    font-size: .78rem;
    font-weight: 800;
    white-space: normal;
}

.hk-health-status {
    display: inline-flex !important;
    width: fit-content;
    margin-top: .35rem;
    border-radius: 999px;
    padding: .22rem .55rem;
    font-size: .72rem !important;
    font-weight: 900;
}

.hk-health-ok {
    background: #eef7e9;
    color: #355b32 !important;
}

.hk-health-warning {
    background: #fff3d9;
    color: #7a4b12 !important;
}

.hk-health-danger {
    background: #fde8e1;
    color: #8c2f1d !important;
}

.hk-action-group {
    display: grid;
    gap: .9rem;
}

.hk-action-group + .hk-action-group {
    margin-top: 1.1rem;
}

.hk-action-group-head h3 {
    margin: 0;
    color: var(--hk-admin-ink);
    font-size: 1rem;
    font-weight: 900;
}

.hk-vendor-todo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hk-vendor-todo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hk-admin-line);
    border-radius: 8px;
    background: rgba(255, 250, 244, .86);
    padding: 1rem;
    color: var(--hk-admin-ink);
    text-decoration: none;
    box-shadow: var(--hk-admin-shadow-soft);
    transition: transform .16s ease, box-shadow .16s ease;
}

.hk-vendor-todo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--hk-admin-clay), var(--hk-admin-gold), #6f7d61);
}

.hk-vendor-todo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hk-admin-shadow-strong);
}

.hk-vendor-todo-card span,
.hk-vendor-todo-card strong {
    display: block;
}

.hk-vendor-todo-card span {
    color: var(--hk-admin-muted);
    font-size: .8rem;
    font-weight: 800;
}

.hk-vendor-todo-card strong {
    margin-top: .35rem;
    font-size: 1.65rem;
    font-weight: 950;
}

.hk-vendor-todo-ok::before {
    background: #6f7d61;
}

.hk-vendor-todo-warning::before {
    background: var(--hk-admin-gold);
}

.hk-vendor-todo-danger::before {
    background: #b85a3f;
}

@media (max-width: 860px) {
    .hk-admin-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hk-vendor-hero-main {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hk-vendor-hero-side {
        justify-items: start;
        width: 100%;
    }

    .hk-vendor-hero-metrics {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .hk-admin-health-grid,
    .hk-vendor-todo-grid,
    .hk-vendor-optimization-row {
        grid-template-columns: 1fr;
    }

    .hk-vendor-hero-metrics {
        grid-template-columns: 1fr;
    }
}

.hk-seller-help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 1rem;
    align-items: stretch;
}

.hk-seller-help-hero-card,
.hk-seller-help-step,
.hk-seller-help-card,
.hk-seller-help-detail {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(111, 78, 55, .16);
    border-radius: 10px;
    background: rgba(255, 250, 243, .88);
    box-shadow: 0 18px 44px rgba(72, 43, 28, .08);
}

.hk-seller-help-hero-card {
    padding: 1.25rem;
    align-self: center;
}

.hk-seller-help-hero-card strong,
.hk-seller-help-hero-card p {
    display: block;
}

.hk-seller-help-hero-card strong {
    font-size: 1.05rem;
    font-weight: 950;
    color: var(--hk-admin-brown);
}

.hk-seller-help-hero-card p {
    margin: .45rem 0 0;
    color: var(--hk-admin-muted);
    line-height: 1.6;
}

.hk-seller-help-steps,
.hk-seller-help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hk-seller-help-step {
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease;
}

.hk-seller-help-step::before,
.hk-seller-help-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--hk-admin-clay), var(--hk-admin-gold), #6f7d61);
}

.hk-seller-help-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--hk-admin-shadow-strong);
}

.hk-seller-help-step strong,
.hk-seller-help-step span {
    display: block;
}

.hk-seller-help-step strong {
    font-weight: 950;
    color: var(--hk-admin-text);
}

.hk-seller-help-step span {
    margin-top: .45rem;
    color: var(--hk-admin-muted);
    line-height: 1.55;
}

.hk-seller-help-tools {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
    gap: 1rem;
    margin: 1rem 0;
}

.hk-seller-help-tools label {
    display: grid;
    gap: .4rem;
    font-weight: 850;
    color: var(--hk-admin-text);
}

.hk-seller-help-tools input,
.hk-seller-help-tools select {
    width: 100%;
    border: 1px solid rgba(111, 78, 55, .22);
    border-radius: 10px;
    background: rgba(255, 250, 243, .95);
    padding: .85rem 1rem;
    color: var(--hk-admin-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.hk-seller-help-featured h3 {
    margin-bottom: 1rem;
}

.hk-seller-help-card {
    padding: 1rem;
}

.hk-seller-help-card span {
    display: inline-flex;
    margin-bottom: .65rem;
    color: var(--hk-admin-clay);
    font-size: .75rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hk-seller-help-card h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 950;
}

.hk-seller-help-card p {
    margin: .55rem 0 0;
    color: var(--hk-admin-muted);
    line-height: 1.55;
}

.hk-seller-help-section + .hk-seller-help-section {
    margin-top: 1.5rem;
}

.hk-seller-help-section h4 {
    margin: 0 0 .75rem;
    color: var(--hk-admin-brown);
    font-size: .9rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hk-seller-help-accordion {
    display: grid;
    gap: .75rem;
}

.hk-seller-help-detail summary {
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    list-style: none;
}

.hk-seller-help-detail summary::-webkit-details-marker {
    display: none;
}

.hk-seller-help-detail summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(111, 78, 55, .1);
    color: var(--hk-admin-brown);
    font-weight: 950;
}

.hk-seller-help-detail[open] summary::after {
    content: "-";
}

.hk-seller-help-detail summary strong,
.hk-seller-help-detail summary small {
    display: block;
}

.hk-seller-help-detail summary strong {
    color: var(--hk-admin-text);
    font-size: 1rem;
}

.hk-seller-help-detail summary small {
    margin-top: .3rem;
    color: var(--hk-admin-muted);
    line-height: 1.45;
}

.hk-seller-help-content {
    padding: 0 1.1rem 1.1rem;
    color: var(--hk-admin-text);
    line-height: 1.75;
}

.hk-seller-help-content h2,
.hk-seller-help-content h3 {
    margin: 1rem 0 .45rem;
    font-weight: 950;
}

.hk-seller-help-content p,
.hk-seller-help-content ul,
.hk-seller-help-content ol {
    margin-top: .65rem;
}

.hk-seller-help-content li + li {
    margin-top: .35rem;
}

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

@media (max-width: 760px) {
    .hk-seller-help-hero,
    .hk-seller-help-tools,
    .hk-seller-help-steps,
    .hk-seller-help-grid {
        grid-template-columns: 1fr;
    }
}
