/*
 * HeavyPack Admin theme.
 * Plain CSS loaded after Filament's compiled stylesheet (no build step needed).
 * Filament's styles live in cascade layers, so these unlayered rules take precedence.
 *
 * Colours follow the public website (public_html/css/heavypack-masterpiece.css):
 * orange #ff6600 / #e65c00, ink #242424, graphite #181818, canvas #f5f5f7, muted #6e6e73.
 */

:root {
    color-scheme: light;

    /* Filament's radius scale, softened to match the website's rounded cards. */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;

    --hp-orange: #ff6600;
    --hp-orange-dark: #e65c00;
    --hp-orange-soft: #fff1e6;
    --hp-orange-ring: rgba(255, 102, 0, 0.28);
    --hp-accent-text: #bf4c00;
    --hp-accent-icon: #e65c00;
    --hp-ink: #242424;
    --hp-graphite: #181818;
    --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --hp-canvas: #f5f5f7;
    --hp-chrome: rgba(251, 251, 253, 0.82);
    --hp-sidebar: #fbfbfd;
    --hp-card: #ffffff;
    --hp-raised: #f9f9fa;
    --hp-line: #e8e8ed;
    --hp-line-soft: #f0f0f3;
    --hp-hover: rgba(36, 36, 36, 0.05);
    --hp-row-hover: #fffaf6;
    --hp-text: #242424;
    --hp-text-muted: #6e6e73;
    --hp-icon: #8e8e93;
    --hp-input: #ffffff;
    --hp-scrollbar: #d2d2d7;
    --hp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --hp-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -20px rgba(0, 0, 0, 0.2);
    --hp-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.04), 0 22px 44px -24px rgba(0, 0, 0, 0.3);
    --hp-shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.08);
    --hp-live: #1fae63;
    --hp-testing: #f59e0b;
}

.dark {
    color-scheme: dark;

    --hp-orange-soft: rgba(255, 102, 0, 0.14);
    --hp-orange-ring: rgba(255, 102, 0, 0.42);
    --hp-accent-text: #ff9a52;
    --hp-accent-icon: #ff8a36;

    --hp-canvas: #181818;
    --hp-chrome: rgba(30, 30, 30, 0.82);
    --hp-sidebar: #1e1e1e;
    --hp-card: #242424;
    --hp-raised: #2a2a2c;
    --hp-line: #333336;
    --hp-line-soft: #2c2c2e;
    --hp-hover: rgba(255, 255, 255, 0.06);
    --hp-row-hover: rgba(255, 102, 0, 0.05);
    --hp-text: #f5f5f7;
    --hp-text-muted: #a1a1a6;
    --hp-icon: #8e8e93;
    --hp-input: #1e1e1e;
    --hp-scrollbar: #48484c;
    --hp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --hp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -20px rgba(0, 0, 0, 0.7);
    --hp-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 44px -24px rgba(0, 0, 0, 0.8);
    --hp-shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
    --hp-live: #34d27f;
}

.fi-body {
    background-color: var(--hp-canvas);
    color: var(--hp-text);
    scrollbar-color: var(--hp-scrollbar) transparent;
}

::selection {
    background-color: rgba(255, 102, 0, 0.2);
}

/* ---------- Shared surfaces ---------- */

.fi-ta-ctn,
.fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-section.fi-aside > .fi-section-content-ctn,
.fi-wi-stats-overview-stat {
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside).fi-section-has-header:not(.fi-collapsed) > .fi-section-content-ctn,
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-footer,
.fi-ta-ctn .fi-ta-header-toolbar {
    border-color: var(--hp-line);
}

.fi-section .fi-section-header-heading {
    color: var(--hp-text);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.fi-section .fi-section-header-description {
    color: var(--hp-text-muted);
}

:is(.hp-action, .hp-stat, .fi-sidebar-item-btn, .hp-login-footer__link):focus-visible {
    outline: 2px solid var(--hp-orange);
    outline-offset: 3px;
}

/* ---------- Buttons ---------- */

/* Pill buttons as on the website; joined button groups keep their square inner edges. */
.fi-btn:not(.fi-btn-group > .fi-btn) {
    border-radius: 999px;
}

.fi-btn {
    font-weight: 600;
}

.fi-btn.fi-color-primary:not(.fi-outlined) {
    background-color: var(--hp-orange);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(191, 76, 0, 0.25);
}

.fi-btn.fi-color-primary:not(.fi-outlined) > .fi-icon,
.fi-btn.fi-color-primary:not(.fi-outlined) .fi-loading-indicator {
    color: inherit;
}

.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-disabled):not([disabled]):hover {
    background-color: var(--hp-orange-dark);
    color: #ffffff;
    box-shadow: 0 10px 22px -12px rgba(255, 102, 0, 0.7);
}

.fi-btn.fi-color-primary:not(.fi-outlined):focus-visible {
    box-shadow: 0 0 0 3px var(--hp-orange-ring);
}

/* ---------- Inputs ---------- */

.fi-input-wrp:not(.fi-disabled) {
    background-color: var(--hp-input);
}

.fi-input-wrp:not(.fi-disabled):not(.fi-invalid):focus-within {
    box-shadow: 0 0 0 1px var(--hp-orange), 0 0 0 4px rgba(255, 102, 0, 0.14);
}

/* ---------- Badges, menus, dialogs ---------- */

.fi-badge {
    border-radius: 999px;
}

.fi-dropdown-panel {
    border-radius: 0.875rem;
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), 0 18px 40px -16px rgba(0, 0, 0, 0.25);
}

.fi-modal-window,
.fi-global-search-results-ctn {
    background-color: var(--hp-card);
}

.fi-modal > .fi-modal-close-overlay,
.fi-sidebar-close-overlay {
    background-color: rgba(24, 24, 24, 0.45);
    backdrop-filter: blur(3px);
}

.fi-tabs-item.fi-active {
    background-color: var(--hp-orange-soft);
}

.fi-tabs-item.fi-active .fi-tabs-item-label,
.fi-tabs-item.fi-active > .fi-icon,
.fi-pagination .fi-pagination-item.fi-active .fi-pagination-item-label {
    color: var(--hp-accent-text);
}

.fi-pagination .fi-pagination-item.fi-active .fi-pagination-item-btn {
    background-color: var(--hp-orange-soft);
}

.fi-ta-empty-state .fi-ta-empty-state-icon-bg {
    background-color: var(--hp-orange-soft);
}

.fi-ta-empty-state .fi-ta-empty-state-icon-bg .fi-icon {
    color: var(--hp-accent-icon);
}

/* ---------- Brand ---------- */

.hp-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    height: 100%;
}

/* The logo has dark lettering, so it sits on a white plate that stays visible in dark mode. */
.hp-brand__logo {
    display: block;
    height: 2.25rem;
    width: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 0.625rem;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px var(--hp-line);
    object-fit: contain;
}

.hp-brand__tag {
    padding: 0.1875rem 0.5625rem;
    border-radius: 999px;
    background-color: var(--hp-orange-soft);
    color: var(--hp-accent-text);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ---------- Login ---------- */

.fi-simple-layout {
    background:
        radial-gradient(60rem 36rem at 88% -12%, rgba(255, 102, 0, 0.16), transparent 62%),
        radial-gradient(40rem 28rem at -8% 108%, rgba(255, 102, 0, 0.08), transparent 62%),
        linear-gradient(180deg, #fbfbfd 0%, #f1f1f3 100%);
}

.dark .fi-simple-layout {
    background:
        radial-gradient(60rem 36rem at 88% -12%, rgba(255, 102, 0, 0.2), transparent 62%),
        radial-gradient(40rem 28rem at -8% 108%, rgba(255, 102, 0, 0.08), transparent 62%),
        linear-gradient(180deg, #202020 0%, #141414 100%);
}

.fi-simple-main {
    border-radius: 1.75rem;
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-lg);
}

.fi-simple-layout .fi-logo {
    height: auto !important;
}

.fi-simple-layout .hp-brand__logo {
    height: 2.75rem;
    padding: 0.375rem 0.625rem;
}

.fi-simple-header-heading {
    color: var(--hp-text);
    font-size: 1.625rem;
    letter-spacing: -0.03em;
}

.fi-simple-header-subheading {
    color: var(--hp-text-muted);
}

.fi-simple-main input.fi-input {
    padding-block: 0.6875rem;
}

.fi-simple-main .fi-form-actions .fi-btn {
    padding-block: 0.75rem;
    font-size: 0.9375rem;
}

.hp-login-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding: 0 1rem 2rem;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
}

.hp-login-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 999px;
    color: var(--hp-text);
    font-weight: 600;
    transition: color 0.2s;
}

.hp-login-footer__link:hover {
    color: var(--hp-accent-text);
}

.hp-login-footer__link .fi-icon {
    width: 1rem;
    height: 1rem;
}

/* ---------- Login: split layout (brand panel + form) ---------- */
/* Only the login page renders .hp-login-brand (render hook scoped to App\Filament\Pages\Auth\Login). */

.fi-simple-layout:has(.hp-login-brand) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(26rem, 47%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 100dvh;
    background: var(--hp-card);
}

.hp-login-brand {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 4rem;
    background:
        radial-gradient(48rem 48rem at 80% 88%, rgba(255, 102, 0, 0.26), transparent 62%),
        #1c1d20;
    color: #fff;
}

.hp-login-brand__mark {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-login-brand__mark span {
    display: grid;
    width: 2.125rem;
    height: 2.125rem;
    place-items: center;
    border-radius: 0.5625rem;
    background: var(--hp-orange);
    font-family: "Arial Black", "Segoe UI Black", sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0;
}

.hp-login-brand__copy {
    position: relative;
    z-index: 2;
    max-width: 33rem;
    margin-top: 4.5rem;
}

.hp-login-brand__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: #ff7a1f;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-login-brand__kicker::before {
    content: "";
    width: 2.125rem;
    height: 2px;
    background: var(--hp-orange);
}

.hp-login-brand__title {
    margin-top: 1.375rem;
    font-family: "Arial Black", "Segoe UI Black", sans-serif;
    font-size: clamp(2.25rem, 3.3vw, 2.875rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.hp-login-brand__title em {
    color: var(--hp-orange);
    font-style: normal;
}

.hp-login-brand__text {
    max-width: 27.5rem;
    margin-top: 1.375rem;
    color: #b9bec4;
    font-size: 1rem;
    line-height: 1.6;
}

.hp-login-brand__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.hp-login-brand__stats li {
    padding: 0.4375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #b9bec4;
    font-size: 0.75rem;
}

.hp-login-brand__stats strong {
    margin-right: 0.25rem;
    color: #fff;
    font-weight: 700;
}

.hp-login-brand__art {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 56%;
    /* Stays below the copy block on short screens, never taller than the design. */
    height: clamp(13rem, calc(100% - 31rem), 34rem);
}

.hp-login-brand__art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hp-orange);
    clip-path: polygon(53% 0, 100% 0, 100% 100%, 0 100%);
}

.hp-login-brand__halo {
    position: absolute;
    right: 4%;
    bottom: 12%;
    width: 80%;
    aspect-ratio: 1;
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.hp-login-brand__art img {
    position: absolute;
    right: 3%;
    bottom: 0;
    width: auto;
    height: 98%;
    max-width: none;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
}

.hp-login-brand__watermark {
    position: absolute;
    z-index: 0;
    left: -0.625rem;
    bottom: -1.5rem;
    color: rgba(255, 255, 255, 0.035);
    font-family: "Arial Black", sans-serif;
    font-size: 7.5rem;
    line-height: 1;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.hp-login-env {
    position: absolute;
    z-index: 3;
    top: 2rem;
    right: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.625rem;
    border-radius: 999px;
    background: var(--hp-raised);
    box-shadow: 0 0 0 1px var(--hp-line-soft);
    color: var(--hp-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.fi-simple-layout:has(.hp-login-brand) .fi-simple-main-ctn {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem 2rem;
}

.fi-simple-layout:has(.hp-login-brand) .fi-simple-main {
    width: 100%;
    max-width: 25rem;
    margin-block: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fi-simple-layout:has(.hp-login-brand) .fi-simple-header {
    align-items: flex-start;
    text-align: start;
}

.fi-simple-layout:has(.hp-login-brand) .fi-simple-header-heading {
    margin-top: 0.75rem;
    font-size: 1.75rem;
    text-align: start;
}

.fi-simple-layout:has(.hp-login-brand) .fi-simple-header-subheading {
    text-align: start;
}

.fi-simple-layout:has(.hp-login-brand) .fi-input-wrp {
    border-radius: 0.75rem;
}

.fi-simple-layout:has(.hp-login-brand) .fi-simple-main input.fi-input {
    padding-block: 0.8125rem;
}

.fi-simple-layout:has(.hp-login-brand) .fi-form-actions .fi-btn {
    padding-block: 0.875rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px -8px rgba(255, 102, 0, 0.55);
}

.hp-login-help {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: var(--hp-raised);
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.hp-login-help .fi-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.0625rem;
    color: var(--hp-icon);
}

.fi-simple-layout:has(.hp-login-brand) .hp-login-footer {
    grid-column: 2;
    grid-row: 2;
    justify-content: space-between;
    padding: 0 3rem 2rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.dark .hp-login-brand {
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Desktop: the page is exactly one screen tall, no scrolling. Only on very short
   windows (under 36rem) does it fall back to scrolling instead of cutting off the form. */
@media (min-width: 64rem) {
    .fi-simple-layout:has(.hp-login-brand) {
        height: 100dvh;
        min-height: 36rem;
        overflow: hidden;
    }
}

/* Laptops with display scaling (e.g. 1280×670 at 150%): tighten spacing so everything fits. */
@media (min-width: 64rem) and (max-height: 50rem) {
    .hp-login-brand {
        padding: 2.75rem 3rem;
    }

    .hp-login-brand__copy {
        margin-top: 2.5rem;
    }

    .hp-login-brand__title {
        margin-top: 1rem;
        font-size: clamp(2rem, min(3.3vw, 6.2vh), 2.875rem);
    }

    .hp-login-brand__text {
        margin-top: 1rem;
        font-size: 0.9375rem;
    }

    .hp-login-brand__stats {
        margin-top: 1.25rem;
    }

    .hp-login-brand__art {
        height: clamp(11rem, calc(100% - 25.5rem), 34rem);
    }

    .hp-login-env {
        top: 1.25rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-main-ctn {
        padding: 4.25rem 3rem 0.5rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-page-content {
        row-gap: 1.125rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-header .fi-logo {
        margin-bottom: 0.625rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .hp-brand__logo {
        height: 2.25rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-header-heading {
        margin-top: 0.375rem;
        font-size: 1.5rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-header-subheading {
        margin-top: 0.25rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-sc-form,
    .fi-simple-layout:has(.hp-login-brand) form > .fi-sc {
        row-gap: 1rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-main input.fi-input {
        padding-block: 0.625rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-form-actions .fi-btn {
        padding-block: 0.75rem;
    }

    .hp-login-help {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .hp-login-footer {
        padding-bottom: 1rem;
    }
}

/* Very short windows: drop the extras, keep the form. */
@media (min-width: 64rem) and (max-height: 40rem) {
    .hp-login-brand__text,
    .hp-login-help {
        display: none;
    }

    .hp-login-brand__art {
        height: clamp(10rem, calc(100% - 20rem), 34rem);
    }
}

/* Phone and tablet: brand panel becomes a short header, the form slides up over it like a sheet. */
@media (max-width: 63.99rem) {
    .fi-simple-layout:has(.hp-login-brand) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        background: #1c1d20;
    }

    .hp-login-brand {
        grid-column: 1;
        grid-row: 1;
        min-height: 12.5rem;
        padding: 2.25rem 1.5rem 2.5rem;
    }

    /* The brand header already names the panel, so the second logo goes; spacing tightens to fit one screen. */
    .fi-simple-layout:has(.hp-login-brand) .fi-simple-header .fi-logo {
        display: none;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-header-heading {
        margin-top: 0;
        font-size: 1.5rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-page-content {
        row-gap: 1rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-sc-form,
    .fi-simple-layout:has(.hp-login-brand) form > .fi-sc {
        row-gap: 1rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-main input.fi-input {
        padding-block: 0.625rem;
    }

    .hp-login-help {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .hp-login-footer > span {
        display: none;
    }

    .hp-login-brand__mark {
        font-size: 0.75rem;
    }

    .hp-login-brand__mark span {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9375rem;
    }

    .hp-login-brand__copy {
        max-width: 55%;
        margin-top: 1.25rem;
    }

    .hp-login-brand__kicker,
    .hp-login-brand__text,
    .hp-login-brand__stats,
    .hp-login-brand__watermark {
        display: none;
    }

    .hp-login-brand__title {
        margin-top: 0;
        font-size: 1.5625rem;
        line-height: 1;
    }

    .hp-login-brand__art {
        top: 0;
        width: 50%;
        height: 100%;
    }

    .hp-login-brand__art img {
        right: 4%;
        bottom: 1.75rem;
        height: 78%;
    }

    .hp-login-brand__halo {
        display: none;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-main-ctn {
        position: relative;
        z-index: 2;
        grid-column: 1;
        grid-row: 2;
        margin-top: -1.5rem;
        padding: 1.75rem 1.5rem 1.5rem;
        border-radius: 1.5rem 1.5rem 0 0;
        background: var(--hp-card);
        align-items: flex-start;
    }

    .fi-simple-layout:has(.hp-login-brand) .fi-simple-main {
        max-width: 28rem;
    }

    .fi-simple-layout:has(.hp-login-brand) .hp-login-footer {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
        padding: 0.25rem 1.5rem 0.5rem;
        background: var(--hp-card);
    }

    .hp-login-env {
        position: static;
        grid-column: 1;
        grid-row: 4;
        justify-self: stretch;
        justify-content: center;
        padding: 0 1.5rem 1.25rem;
        border-radius: 0;
        background: var(--hp-card);
        box-shadow: none;
        color: var(--hp-text-muted);
    }
}

/* ---------- Topbar ---------- */

/* Frosted bar like the website header; the blur sits on a pseudo-element so menus keep their positioning. */
.fi-topbar {
    position: relative;
    isolation: isolate;
    background-color: transparent;
    box-shadow: 0 1px 0 var(--hp-line);
    color: var(--hp-text);
}

.fi-topbar::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--hp-chrome);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    content: '';
}

.fi-topbar-start .fi-logo {
    margin-inline-start: 0.75rem;
}

.fi-topbar .fi-icon-btn,
.fi-sidebar .fi-icon-btn {
    color: var(--hp-icon);
}

.fi-topbar .fi-icon-btn:hover,
.fi-topbar .fi-icon-btn:focus-visible,
.fi-sidebar .fi-icon-btn:hover,
.fi-sidebar .fi-icon-btn:focus-visible {
    background-color: var(--hp-hover);
    color: var(--hp-text);
}

/* A panel icon makes the sidebar control distinct from browser navigation. */
.fi-topbar-collapse-sidebar-btn-ctn {
    width: 2.5rem;
}

.fi-topbar :is(
    .fi-topbar-open-collapse-sidebar-btn,
    .fi-topbar-close-collapse-sidebar-btn,
    .fi-topbar-open-sidebar-btn,
    .fi-topbar-close-sidebar-btn
) {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 1px solid var(--hp-line);
    border-radius: 0.75rem;
    background-color: var(--hp-card);
    color: var(--hp-text);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.fi-topbar :is(
    .fi-topbar-open-collapse-sidebar-btn,
    .fi-topbar-close-collapse-sidebar-btn,
    .fi-topbar-open-sidebar-btn,
    .fi-topbar-close-sidebar-btn
):is(:hover, :focus-visible) {
    border-color: rgba(255, 102, 0, 0.45);
    background-color: var(--hp-orange-soft);
    color: var(--hp-accent-text);
}

.fi-topbar :is(.fi-topbar-open-collapse-sidebar-btn, .fi-topbar-close-collapse-sidebar-btn) > .fi-icon {
    display: none;
}

.fi-topbar :is(.fi-topbar-open-collapse-sidebar-btn, .fi-topbar-close-collapse-sidebar-btn)::before {
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M9 4v16m7-11-3 3 3 3'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    content: '';
}

.fi-topbar .fi-topbar-open-collapse-sidebar-btn::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M9 4v16m5-11 3 3-3 3'/%3E%3C/svg%3E");
}

.fi-topbar .fi-global-search-field .fi-input-wrp {
    min-width: 16rem;
    border-radius: 999px;
    background-color: var(--hp-hover);
    box-shadow: none;
}

.fi-topbar .fi-global-search-field .fi-input-wrp:focus-within {
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-orange), 0 0 0 4px rgba(255, 102, 0, 0.14);
}

.fi-topbar .fi-global-search-field .fi-input {
    color: var(--hp-text);
}

.fi-topbar .fi-global-search-field .fi-input::placeholder {
    color: var(--hp-text-muted);
}

.fi-topbar .fi-global-search-field .fi-input-wrp-prefix .fi-icon,
.fi-topbar .fi-global-search-field .fi-input-wrp-suffix {
    color: var(--hp-icon);
}

.fi-topbar .fi-global-search-field .fi-input-wrp-suffix * {
    color: inherit;
}

.fi-topbar .fi-user-avatar {
    box-shadow: 0 0 0 2px var(--hp-card), 0 0 0 3.5px var(--hp-orange);
}

@media (max-width: 767px) {
    .fi-topbar .fi-global-search-field .fi-input-wrp {
        min-width: 0;
    }
}

/* ---------- Sidebar ---------- */

.fi-sidebar {
    background-color: var(--hp-sidebar);
    box-shadow: 1px 0 0 var(--hp-line);
}

.fi-sidebar .fi-sidebar-header,
.fi-body-has-topbar .fi-sidebar-header {
    background-color: var(--hp-sidebar);
    box-shadow: 0 1px 0 var(--hp-line);
}

.fi-sidebar-nav {
    gap: 1.5rem;
    padding: 1.25rem 0.875rem 1.5rem;
    scrollbar-color: var(--hp-scrollbar) transparent;
    scrollbar-width: thin;
}

.fi-sidebar-nav-groups {
    gap: 1.25rem;
    margin-inline: 0;
}

.fi-sidebar-group-btn {
    padding: 0 0.75rem 0.375rem;
}

.fi-sidebar-group-btn .fi-icon {
    color: var(--hp-icon);
}

.fi-sidebar-group-label {
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fi-sidebar-item-btn {
    gap: 0.75rem;
    padding: 0.5625rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.fi-sidebar-item-btn > .fi-icon {
    color: var(--hp-icon);
    transition: color 0.2s;
}

.fi-sidebar-item-label {
    color: var(--hp-text);
    font-weight: 500;
    transition: color 0.2s;
}

.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover,
.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:focus-visible {
    background-color: var(--hp-hover);
}

.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover > .fi-icon,
.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:focus-visible > .fi-icon {
    color: var(--hp-text);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--hp-orange-soft);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    position: absolute;
    inset-block: 25%;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 999px;
    background-color: var(--hp-orange);
    content: '';
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: var(--hp-accent-icon);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label {
    color: var(--hp-accent-text);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-inline: 0.75rem;
    }

    .fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn {
        padding: 0.5rem;
    }
}

.hp-sidebar-footer {
    padding: 0 0.875rem 1rem;
}

.hp-env-card {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.875rem;
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line);
}

.hp-env-card__title {
    color: var(--hp-text);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.hp-env-card__text {
    margin-top: 0.125rem;
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    line-height: 1.45;
}

.hp-dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.3rem;
    border-radius: 999px;
    background-color: var(--hp-live);
    box-shadow: 0 0 0 3px rgba(31, 174, 99, 0.2);
}

.hp-dot--testing {
    background-color: var(--hp-testing);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ---------- Page header ---------- */

.fi-header-heading {
    color: var(--hp-text);
    font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);
    letter-spacing: -0.03em;
}

.fi-header-subheading {
    color: var(--hp-text-muted);
}

/* ---------- Tables ---------- */

.fi-ta-table > thead {
    background-color: var(--hp-raised);
}

.fi-ta-header-cell,
.fi-ta-header-cell .fi-ta-header-cell-sort-btn {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.fi-ta-table > tbody > .fi-ta-row:hover {
    background-color: var(--hp-row-hover);
}

.fi-ta-row.fi-selected:not(.fi-striped) {
    background-color: var(--hp-orange-soft);
}

.fi-ta-image img {
    border-radius: 0.5rem;
    object-fit: cover;
}

.fi-ta-header-heading {
    color: var(--hp-text);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.fi-ta-header-description {
    color: var(--hp-text-muted);
}

/* ---------- Dashboard: hero ---------- */

/* Dark charcoal with an orange glow, echoing the website hero and search bar. */
.hp-hero {
    position: relative;
    display: grid;
    gap: 1.75rem;
    padding: 1.75rem;
    overflow: hidden;
    border-radius: 1.75rem;
    background:
        radial-gradient(70% 130% at 100% 0%, rgba(255, 102, 0, 0.3) 0%, transparent 60%),
        radial-gradient(45% 90% at 0% 100%, rgba(255, 102, 0, 0.08) 0%, transparent 70%),
        linear-gradient(135deg, #2b2b2b 0%, #181818 100%);
    box-shadow: var(--hp-shadow);
    color: #ffffff;
    isolation: isolate;
}

.dark .hp-hero {
    box-shadow: 0 0 0 1px #2e2e30, var(--hp-shadow);
}

.hp-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 18px 18px;
    content: '';
    mask-image: linear-gradient(110deg, transparent 40%, #000 100%);
}

.hp-hero::after {
    position: absolute;
    top: -9rem;
    right: -7rem;
    z-index: -1;
    width: 24rem;
    height: 24rem;
    border: 2.25rem solid rgba(255, 102, 0, 0.14);
    border-radius: 999px;
    content: '';
}

.hp-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hp-hero__eyebrow .fi-icon {
    width: 1rem;
    height: 1rem;
    color: var(--hp-orange);
}

.hp-hero__title {
    margin-top: 0.5rem;
    font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hp-hero__title-name {
    color: var(--hp-orange);
}

.hp-hero__text {
    max-width: 38rem;
    margin-top: 0.625rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.hp-hero__status {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    line-height: 1.5;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hp-hero__status .hp-dot {
    margin-top: 0.3125rem;
}

.hp-hero__status strong {
    color: #ffffff;
    font-weight: 600;
}

.hp-hero__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.625rem;
}

.hp-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.6875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background-color 0.3s, border-color 0.3s, transform 0.45s var(--hp-ease), box-shadow 0.45s var(--hp-ease);
}

.hp-action:hover,
.hp-action:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.hp-action--primary {
    border-color: var(--hp-orange);
    background-color: var(--hp-orange);
    box-shadow: 0 14px 30px -14px rgba(255, 102, 0, 0.75);
}

.hp-action--primary:hover,
.hp-action--primary:focus-visible {
    border-color: var(--hp-orange-dark);
    background-color: var(--hp-orange-dark);
}

.hp-action .fi-icon {
    width: 1.125rem;
    height: 1.125rem;
}

@media (min-width: 1024px) {
    .hp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
        align-items: center;
        padding: 2.25rem 2.5rem;
    }

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

    .hp-hero__actions > .hp-action:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ---------- Dashboard: stat cards ---------- */

.hp-stats-ctn {
    container-type: inline-size;
}

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

@container (min-width: 44rem) {
    .hp-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (min-width: 72rem) {
    .hp-stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.hp-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.125rem 1.25rem 1rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
    color: var(--hp-text);
    transition: transform 0.45s var(--hp-ease), box-shadow 0.45s var(--hp-ease);
    isolation: isolate;
}

.hp-stat::after {
    position: absolute;
    top: -3rem;
    right: -3rem;
    z-index: -1;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.16), transparent 70%);
    content: '';
    opacity: 0;
    transition: opacity 0.3s;
}

a.hp-stat:hover,
a.hp-stat:focus-visible {
    box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.35), var(--hp-shadow-hover);
    transform: translateY(-2px);
}

a.hp-stat:hover::after,
a.hp-stat:focus-visible::after {
    opacity: 1;
}

.hp-stat__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.875rem;
    border-radius: 0.75rem;
    background-color: var(--hp-orange-soft);
    color: var(--hp-accent-icon);
    transition: background-color 0.3s, color 0.3s;
}

a.hp-stat:hover .hp-stat__icon,
a.hp-stat:focus-visible .hp-stat__icon {
    background-color: var(--hp-orange);
    color: #ffffff;
}

.hp-stat__icon .fi-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hp-stat__label {
    overflow: hidden;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-stat__value {
    margin-top: 0.125rem;
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hp-stat__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.375rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.hp-stat__arrow {
    flex-shrink: 0;
    color: var(--hp-accent-icon);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s, transform 0.3s var(--hp-ease);
}

.hp-stat__arrow.fi-icon {
    width: 1rem;
    height: 1rem;
}

a.hp-stat:hover .hp-stat__arrow,
a.hp-stat:focus-visible .hp-stat__arrow {
    opacity: 1;
    transform: none;
}

/* ---------- Dashboard: latest content tables ---------- */

.hp-dashboard .fi-wi-table .fi-ta-ctn {
    overflow: hidden;
}

/* ---------- Dashboard: activity feeds ---------- */

.hp-feed {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
    color: var(--hp-text);
}

.hp-feed__header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem 1rem;
    border-bottom: 1px solid var(--hp-line);
}

.hp-feed__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.75rem;
    background-color: var(--hp-orange-soft);
    color: var(--hp-accent-icon);
}

.hp-feed__icon .fi-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hp-feed__heading {
    flex: 1;
    min-width: 0;
}

.hp-feed__title {
    font-size: 0.9375rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hp-feed__description {
    margin-top: 0.125rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.hp-feed__total {
    flex-shrink: 0;
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    background-color: var(--hp-raised);
    box-shadow: 0 0 0 1px var(--hp-line);
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.hp-feed__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem;
}

.hp-feed__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.875rem;
    color: inherit;
    transition: background-color 0.2s;
}

.hp-feed__item--top {
    align-items: flex-start;
}

a.hp-feed__item:hover {
    background-color: var(--hp-hover);
}

a.hp-feed__item:focus-visible {
    background-color: var(--hp-hover);
    outline: 2px solid var(--hp-orange);
    outline-offset: -2px;
}

.hp-feed__avatar {
    --avatar: #bf4c00;
    --avatar-soft: #fff1e6;

    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background-color: var(--avatar-soft);
    color: var(--avatar);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.hp-feed__avatar--icon {
    border-radius: 0.625rem;
}

.hp-feed__avatar .fi-icon {
    width: 1rem;
    height: 1rem;
}

.hp-avatar--ink {
    --avatar: #ffffff;
    --avatar-soft: #242424;
}

.hp-avatar--sand {
    --avatar: #6b5434;
    --avatar-soft: #f2efe9;
}

.hp-avatar--stone {
    --avatar: #48484c;
    --avatar-soft: #efeff2;
}

.dark .hp-feed__avatar {
    --avatar: #ffa766;
    --avatar-soft: rgba(255, 102, 0, 0.16);
}

.dark .hp-avatar--ink {
    --avatar: #242424;
    --avatar-soft: #f5f5f7;
}

.dark .hp-avatar--sand {
    --avatar: #e9dcc6;
    --avatar-soft: rgba(242, 239, 233, 0.12);
}

.dark .hp-avatar--stone {
    --avatar: #d2d2d7;
    --avatar-soft: rgba(255, 255, 255, 0.08);
}

.hp-feed__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
}

.hp-feed__line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.hp-feed__primary {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-feed__secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.hp-feed__secondary .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.hp-feed__time {
    flex-shrink: 0;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.hp-feed__excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hp-feed__context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
    margin-top: 0.25rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.hp-feed__context-link {
    color: var(--hp-accent-text);
    font-weight: 500;
}

.hp-feed__context-link:hover,
.hp-feed__context-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-feed__chevron.fi-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--hp-icon);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.3s var(--hp-ease);
}

a.hp-feed__item:hover .hp-feed__chevron,
a.hp-feed__item:focus-visible .hp-feed__chevron {
    color: var(--hp-accent-icon);
    opacity: 1;
    transform: translateX(2px);
}

.hp-feed__empty {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 2.5rem 1rem;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

.hp-feed__footer {
    margin-top: auto;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--hp-line);
}

.hp-feed__more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.375rem;
    color: var(--hp-accent-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hp-feed__more .fi-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s var(--hp-ease);
}

.hp-feed__more:hover .fi-icon,
.hp-feed__more:focus-visible .fi-icon {
    transform: translateX(2px);
}

.hp-feed__more:focus-visible {
    outline: 2px solid var(--hp-orange);
    outline-offset: 3px;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.hp-chip--warning {
    background-color: #fdf1cf;
    color: #8a4b05;
}

.dark .hp-chip--warning {
    background-color: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

/* ---------- List pages: shared header, overview and table ---------- */

.hp-list {
    padding-block: 0.5rem;
}

.hp-list .fi-page-header-main-ctn {
    gap: 1.75rem;
}

.hp-list-header {
    display: grid;
    gap: 1.75rem;
}

.hp-list .fi-header {
    align-items: center;
}

.hp-list .fi-header-heading {
    margin-block-start: 0.625rem;
    line-height: 1.25;
}

.hp-list .fi-header-subheading {
    margin-block-start: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.hp-list .fi-breadcrumbs-item-label {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 450;
}

.hp-list .fi-header-actions-ctn .fi-btn {
    min-height: 2.625rem;
    padding-inline: 1.25rem;
}

.hp-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
}

.hp-metric {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    transition: background-color 0.2s;
}

.hp-metric + .hp-metric {
    border-inline-start: 1px solid var(--hp-line);
}

.hp-metric--link:hover {
    background-color: var(--hp-row-hover);
}

.hp-metric__body {
    flex: 1;
    min-width: 0;
}

.hp-metric dt {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.hp-metric__percent {
    color: var(--hp-text);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.hp-metric dd {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-block-start: 0.375rem;
}

.hp-metric__value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--hp-text);
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hp-metric__unit {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0;
}

.hp-metric__progress {
    display: block;
    width: 100%;
    height: 0.375rem;
    margin-block-start: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--hp-line);
}

.hp-metric__progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: var(--hp-orange);
    transition: width 0.6s var(--hp-ease);
}

.hp-metric__note {
    margin-block-start: 0.5rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.hp-metric__warning {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    margin-block-start: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background-color: #fdf1cf;
    color: #8a4b05;
    font-size: 0.6875rem;
    font-weight: 600;
}

.dark .hp-metric__warning {
    background-color: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

.hp-metric__warning .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.hp-metric__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: 0.625rem;
    color: var(--hp-accent-text);
    font-size: 0.75rem;
    font-weight: 600;
}

/* The whole metric is clickable while the link text keeps its accessible name. */
.hp-metric__link::after {
    position: absolute;
    inset: 0;
    content: '';
}

.hp-metric__link:focus-visible {
    outline: none;
}

.hp-metric__link:focus-visible::after {
    box-shadow: inset 0 0 0 2px var(--hp-orange);
}

.hp-metric__link .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s var(--hp-ease);
}

.hp-metric--link:hover .hp-metric__link .fi-icon {
    transform: translateX(2px);
}

.hp-metric__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 0.75rem;
    background: var(--hp-raised);
    box-shadow: 0 0 0 1px var(--hp-line);
    color: var(--hp-text-muted);
}

.hp-metric__icon .fi-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hp-metric--primary .hp-metric__icon {
    background: var(--hp-orange-soft);
    box-shadow: none;
    color: var(--hp-accent-icon);
}

.hp-products .hp-metric {
    padding: 1rem 1.5rem;
}

.hp-table-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0.75rem 1.5rem 0;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.hp-table-notice .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    margin-block-start: 0.125rem;
    color: var(--hp-accent-icon);
}

.hp-list .fi-ta-header {
    padding: 1.25rem 1.5rem 0.875rem;
}

.hp-list .fi-ta-header-heading {
    font-size: 0.9375rem;
}

.hp-list .fi-ta-header-description {
    font-size: 0.75rem;
}

.hp-list .fi-ta-header-toolbar {
    padding: 0.25rem 1.5rem 1.25rem;
    border: 0;
}

.hp-list .fi-ta-header-toolbar > .fi-ta-actions {
    display: none;
}

/* Kecuali tombol "Susun ulang" (Kategori mesin, setelah satu kelompok dipilih). */
.hp-list .fi-ta-header-toolbar > .fi-ta-actions:has([wire\:click="toggleTableReordering"]) {
    display: flex;
}

.hp-list .fi-ta-header-toolbar > div:last-child {
    width: 100%;
    gap: 0.625rem;
}

.hp-list .fi-ta-search-field {
    width: min(100%, 25rem);
    margin-inline-end: auto;
}

.hp-list .fi-ta-header-toolbar .fi-btn {
    min-height: 2.5rem;
    font-size: 0.75rem;
}

.hp-list .fi-ta-table > thead {
    border-block: 1px solid var(--hp-line);
}

.hp-list .fi-ta-header-cell {
    padding-block: 0.875rem;
    font-size: 0.6875rem;
}

.hp-list .fi-ta-cell {
    border-color: var(--hp-line-soft);
}

.hp-list .fi-ta-text {
    padding-block: 0.875rem;
    font-size: 0.875rem;
}

.hp-list .fi-ta-actions .fi-btn {
    min-height: 2rem;
    padding-inline: 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.hp-list .fi-ta-actions .fi-icon-btn {
    min-width: 2rem;
    min-height: 2rem;
    color: var(--hp-text-muted);
}

.hp-list .fi-pagination {
    padding: 1rem 1.5rem;
    border-block-start: 1px solid var(--hp-line);
}

.hp-list .fi-pagination-overview,
.hp-list .fi-pagination-records-per-page-select {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

/* ---------- Machine categories ---------- */

/* Summary as separate KPI cards: label and icon on top, the number below, an optional link at the foot. */
:is(.hp-categories, .hp-menus) .hp-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

:is(.hp-categories, .hp-menus) .hp-metric {
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
    transition: box-shadow 0.2s, transform 0.3s var(--hp-ease);
}

:is(.hp-categories, .hp-menus) .hp-metric + .hp-metric {
    border-inline-start: 0;
}

:is(.hp-categories, .hp-menus) .hp-metric--link:hover {
    background-color: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-hover);
    transform: translateY(-2px);
}

:is(.hp-categories, .hp-menus) .hp-metric dt {
    min-height: 2.5rem;
    align-items: center;
    font-size: 0.8125rem;
}

:is(.hp-categories, .hp-menus) .hp-metric dd {
    margin-block-start: 0.25rem;
}

:is(.hp-categories, .hp-menus) .hp-metric__value {
    font-size: 2rem;
}

:is(.hp-categories, .hp-menus) .hp-metric__note,
:is(.hp-categories, .hp-menus) .hp-metric__link {
    margin-block-start: 0.75rem;
}

:is(.hp-categories, .hp-menus) .hp-metric__link::after {
    border-radius: inherit;
}

:is(.hp-categories, .hp-menus) .hp-metric__icon {
    width: 2.5rem;
    height: 2.5rem;
}

.hp-metric--warning .hp-metric__icon {
    background: #fdf1cf;
    box-shadow: none;
    color: #b45309;
}

.dark .hp-metric--warning .hp-metric__icon {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

/* Rows: a two-letter mark, the name and the website path it opens. */
.hp-category-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .hp-category-title {
        min-width: 15rem;
    }
}

.hp-category-title__mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 0.625rem;
    background: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.fi-ta-row:hover .hp-category-title__mark {
    background: var(--hp-orange-soft);
    box-shadow: none;
    color: var(--hp-accent-icon);
}

.hp-category-title__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.hp-category-title__name {
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.hp-category-title__slug {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hp-category-title__slug--missing {
    color: var(--hp-accent-text);
}

.hp-categories .hp-category-name,
.hp-categories .hp-category-group,
.hp-categories .hp-category-products {
    padding-block: 0.75rem;
}

.hp-categories .hp-category-group .fi-badge {
    padding: 0.3125rem 0.625rem;
    background: var(--hp-raised);
    color: var(--hp-text-muted);
    box-shadow: 0 0 0 1px var(--hp-line);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s, box-shadow 0.2s;
}

.hp-categories .fi-ta-col-has-column-url:hover .hp-category-group .fi-badge,
.hp-categories .fi-ta-col-has-column-url:focus-visible .hp-category-group .fi-badge {
    color: var(--hp-accent-text);
    box-shadow: 0 0 0 1px var(--hp-orange-ring);
}

.hp-categories .hp-category-products {
    color: var(--hp-text);
    white-space: nowrap;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.hp-categories .fi-ta-col-has-column-url:hover .hp-category-products,
.hp-categories .fi-ta-col-has-column-url:focus-visible .hp-category-products {
    color: var(--hp-accent-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-categories .hp-category-products--empty > span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.1875rem 0.625rem 0.1875rem 0.5rem;
    border-radius: 999px;
    background: #fdf1cf;
    color: #8a4b05;
    font-size: 0.75rem;
    font-weight: 600;
}

.dark .hp-categories .hp-category-products--empty > span {
    background: rgba(251, 191, 36, 0.14);
    color: #fcd34d;
}

.hp-categories .hp-category-products--empty .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: inherit;
}

/* ---------- Category form: website preview and usage ---------- */

/*
 * The preview stays in view while the description is edited further down.
 * On short screens the panel is taller than the window, so it gets its own scroll:
 * otherwise the Google card at its top scrolls away before the description field is reached.
 * The 2px padding keeps the section borders from being clipped by the scroll area.
 */
@media (min-width: 1024px) {
    .hp-form-aside {
        position: sticky;
        top: 5.5rem;
        align-self: start;
        max-height: calc(100dvh - 7rem);
        margin: -2px;
        padding: 2px;
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

/* minmax(0, 1fr): the one-line URL is cut with an ellipsis instead of widening the panel past the screen. */
.hp-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

/* Google result card, in Google's own type and colours for both themes. */
.hp-serp {
    padding: 1rem;
    border-radius: 0.875rem;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--hp-line);
    font-family: Arial, Helvetica, sans-serif;
}

.dark .hp-serp {
    background: #1f1f1f;
}

.hp-serp__site {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.hp-serp__favicon {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 999px;
    background: #f1f3f4;
}

.dark .hp-serp__favicon {
    background: #303134;
}

.hp-serp__favicon img {
    width: 1.125rem;
    height: 1.125rem;
}

.hp-serp__source {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.hp-serp__name {
    color: #202124;
    font-size: 0.875rem;
}

.hp-serp__url {
    overflow: hidden;
    color: #4d5156;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-serp__title {
    margin-block-start: 0.625rem;
    color: #1a0dab;
    font-size: 1.125rem;
    line-height: 1.35;
}

.hp-serp__snippet {
    margin-block-start: 0.25rem;
    color: #4d5156;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.dark .hp-serp__name {
    color: #dadce0;
}

.dark .hp-serp__url,
.dark .hp-serp__snippet {
    color: #bdc1c6;
}

.dark .hp-serp__title {
    color: #99c3ff;
}

.hp-preview__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
}

.hp-preview__label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hp-preview__label .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--hp-icon);
}

/*
 * Halaman kategori di website, diperkecil: kelompok (oranye), nama, ringkasan 180 karakter,
 * tempat daftar mesin, lalu teks lengkap "Tentang …" dengan gaya yang sama seperti di website.
 */
.hp-site {
    overflow: hidden;
    border-radius: 0.875rem;
    background: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line);
}

.hp-site__hero {
    padding: 0.875rem 1rem;
    background: var(--hp-raised);
    border-block-end: 1px solid var(--hp-line);
}

.hp-site__kicker {
    display: block;
    color: var(--hp-accent-text);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-site__name {
    margin-block-start: 0.125rem;
    color: var(--hp-text);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.hp-site__intro {
    margin-block-start: 0.375rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

/* Kerangka abu-abu tempat kartu mesin, supaya jelas "Tentang …" ada di bawah daftar mesin. */
.hp-site__machines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    padding: 0.625rem 1rem;
}

.hp-site__machines span {
    height: 1.75rem;
    border-radius: 0.375rem;
    background: var(--hp-line-soft);
}

.hp-site__machines small {
    grid-column: 1 / -1;
    color: var(--hp-icon);
    font-size: 0.625rem;
    text-align: center;
}

.hp-site__about {
    padding: 0.75rem 1rem 1rem;
    border-block-start: 1px solid var(--hp-line);
}

.hp-site__about-title {
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 700;
}

/* Teks lengkap bisa panjang: dibatasi tingginya dan digulir di dalam kartu. */
.hp-site__about-body {
    max-height: 18rem;
    margin-block-start: 0.375rem;
    overflow-y: auto;
    color: var(--hp-text);
    font-size: 0.75rem;
    line-height: 1.6;
    scrollbar-width: thin;
}

.hp-site__about-body > :first-child {
    margin-block-start: 0;
}

.hp-site__about-body p {
    margin-block: 0 0.5rem;
}

.hp-site__about-body h3 {
    margin-block: 0.875rem 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.hp-site__about-body ul,
.hp-site__about-body ol {
    margin-block: 0 0.625rem;
    padding-inline-start: 1.125rem;
}

.hp-site__about-body ul {
    list-style: disc;
}

.hp-site__about-body ol {
    list-style: decimal;
}

.hp-site__about-body li {
    margin-block: 0.125rem;
}

.hp-site__about-body li::marker {
    color: var(--hp-orange);
}

.hp-site__about-body :is(strong, b) {
    font-weight: 700;
}

.hp-site__about-body :is(em, i) {
    font-style: italic;
}

.hp-site__short {
    padding: 0.625rem 1rem 0.875rem;
    border-block-start: 1px solid var(--hp-line);
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    line-height: 1.5;
}

.hp-preview .hp-preview__missing {
    color: var(--hp-text-muted);
    font-style: italic;
}

.hp-preview__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    justify-self: start;
    color: var(--hp-accent-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hp-preview__link:hover,
.hp-preview__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-preview__link .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.hp-preview__hint {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.hp-usage__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
    border-block-end: 1px solid var(--hp-line-soft);
}

.hp-usage__list li:first-child {
    padding-block-start: 0;
}

.hp-usage__label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.hp-usage__label .fi-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--hp-icon);
}

.hp-usage__count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--hp-text);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

a.hp-usage__count:hover,
a.hp-usage__count:focus-visible {
    color: var(--hp-accent-text);
}

.hp-usage__count .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--hp-icon);
}

.hp-usage__count--empty {
    color: var(--hp-text-muted);
    font-weight: 500;
}

.hp-usage__note {
    margin-block-start: 0.75rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ---------- Machine products ---------- */

.hp-products .hp-product-no .fi-ta-text-item {
    color: var(--hp-text);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.hp-products .hp-product-id .fi-ta-text-item {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

/* Machine photos sit on white tiles like the website cards; contain keeps the whole machine visible. */
.hp-products .hp-product-photo img {
    padding: 0.125rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px var(--hp-line);
    object-fit: contain;
}

.hp-products .hp-product-name {
    min-width: 20rem;
}

.hp-products .hp-product-name .fi-ta-text-item {
    color: var(--hp-text);
    font-size: 0.875rem;
}

.hp-products .hp-product-name .fi-ta-text-description {
    display: -webkit-box;
    margin-block-start: 0.125rem;
    overflow: hidden;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hp-products .hp-product-category {
    min-width: 12rem;
}

.hp-products .hp-product-category .fi-ta-text-item {
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hp-product-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
}

.hp-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.6;
    white-space: nowrap;
}

/* Brand pills follow the website machine cards: HEAVYPACK ink, HEAVYPRO orange. */
.hp-pill--brand {
    background-color: var(--hp-raised);
    color: var(--hp-text);
    box-shadow: inset 0 0 0 1px var(--hp-line);
}

.hp-pill--heavypack {
    background-color: var(--hp-ink);
    color: #ffffff;
    box-shadow: none;
}

.hp-pill--heavypro {
    background-color: var(--hp-orange);
    color: var(--hp-ink);
    box-shadow: none;
}

.dark .hp-pill--heavypack {
    background-color: #f5f5f7;
    color: var(--hp-ink);
}

.hp-pill--status {
    background-color: rgba(31, 174, 99, 0.12);
    color: #137a45;
    letter-spacing: 0.02em;
}

.dark .hp-pill--status {
    background-color: rgba(52, 210, 127, 0.16);
    color: #6ee7a8;
}

.hp-pill--warning {
    gap: 0.25rem;
    background-color: #fdf1cf;
    color: #8a4b05;
    letter-spacing: 0.02em;
}

.dark .hp-pill--warning {
    background-color: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

.hp-pill .fi-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.hp-products .hp-product-price .fi-ta-text-item {
    color: var(--hp-text);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.hp-products .hp-product-price--empty .fi-ta-text-item {
    padding: 0.125rem 0.5625rem;
    border-radius: 999px;
    background-color: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.hp-products .hp-product-price .fi-ta-text-description {
    color: var(--hp-accent-text);
    font-size: 0.6875rem;
    font-weight: 600;
}

.hp-products .hp-product-sales .fi-ta-text-item {
    font-variant-numeric: tabular-nums;
}

.hp-products .hp-product-sales .fi-ta-text-description {
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    white-space: nowrap;
}

/* Quick-filter tabs along the top edge of the table card, underlined when active. */
.hp-table-tabs {
    margin-block-end: 1rem;
}

.hp-table-tabs .fi-tabs.fi-contained {
    gap: 0.25rem;
    padding: 0.25rem 1.25rem 0;
    border-color: var(--hp-line);
    scrollbar-width: none;
}

.hp-table-tabs .fi-tabs-item {
    position: relative;
    flex-shrink: 0;
    padding: 1rem 0.75rem 0.875rem;
    border-radius: 0;
    white-space: nowrap;
}

.hp-table-tabs .fi-tabs-item::after {
    position: absolute;
    inset-inline: 0.5rem;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background-color: transparent;
    content: '';
    transition: background-color 0.2s;
}

.hp-table-tabs .fi-tabs-item.fi-active,
.hp-table-tabs .fi-tabs-item:hover {
    background-color: transparent;
}

.hp-table-tabs .fi-tabs-item:not(.fi-active):hover::after {
    background-color: var(--hp-line);
}

.hp-table-tabs .fi-tabs-item.fi-active::after {
    background-color: var(--hp-orange);
}

.hp-table-tabs .fi-tabs-item .fi-tabs-item-label {
    color: var(--hp-text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

.hp-table-tabs .fi-tabs-item:hover .fi-tabs-item-label {
    color: var(--hp-text);
}

.hp-table-tabs .fi-tabs-item.fi-active .fi-tabs-item-label {
    color: var(--hp-accent-text);
}

.hp-table-tabs .fi-tabs-item .fi-badge {
    min-width: 1.75rem;
    background-color: var(--hp-raised);
    color: var(--hp-text-muted);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    font-variant-numeric: tabular-nums;
}

.hp-table-tabs .fi-tabs-item.fi-active .fi-badge {
    background-color: var(--hp-orange);
    color: #ffffff;
    box-shadow: none;
}

/* Filters sit beside the search field: [search] [category] [brand] [columns] on products, [search] [group] [columns] on categories. */
:is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-filters-above-content-ctn {
    padding: 0 1rem 0.75rem;
    border: 0;
}

:is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

:is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-filters .fi-ta-filters-header {
    order: 2;
}

:is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-filters .fi-ta-filters-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

:is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-filters .fi-ta-filters-header .fi-link {
    font-size: 0.75rem;
}

:is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-filters > .fi-sc {
    flex: 1;
    gap: 0.5rem;
}

/* A long group name stays on one line in the filter instead of growing the toolbar. */
.hp-categories .fi-ta-filters .fi-select-input-value-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    :is(.hp-products, .hp-categories) .fi-ta-header-ctn {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: 0.625rem;
        padding-block-end: 1.25rem;
    }

    :is(.hp-products, .hp-categories) .fi-ta-header-ctn > * {
        grid-column: 1 / -1;
    }

    :is(.hp-products, .hp-categories) .fi-ta-header-toolbar,
    :is(.hp-products, .hp-categories) .fi-ta-header-toolbar > div:last-child {
        display: contents;
    }

    :is(.hp-products, .hp-categories) .fi-ta-header-toolbar .fi-ta-search-field {
        grid-row: 2;
        grid-column: 1;
        width: min(100% - 1.5rem, 28rem);
        margin-inline-start: 1.5rem;
    }

    :is(.hp-products, .hp-categories) .fi-ta-ctn .fi-ta-header-ctn > .fi-ta-filters-above-content-ctn {
        grid-row: 2;
        grid-column: 2;
        padding: 0;
    }

    .hp-products .fi-ta-ctn .fi-ta-filters > .fi-sc {
        grid-template-columns: repeat(2, 13rem);
    }

    .hp-categories .fi-ta-ctn .fi-ta-filters > .fi-sc {
        grid-template-columns: 19rem;
    }

    :is(.hp-products, .hp-categories) .fi-ta-header-toolbar .fi-ta-col-manager-dropdown {
        grid-row: 2;
        grid-column: 3;
        margin-inline-end: 1.5rem;
    }
}

@media (max-width: 1100px) {
    .hp-metric {
        padding: 1.125rem;
    }
}

@media (max-width: 1199px) {
    :is(.hp-categories, .hp-menus) .hp-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .hp-list {
        padding-block: 0;
    }

    .hp-list-header {
        gap: 1.25rem;
    }

    .hp-list .fi-header-actions-ctn,
    .hp-list .fi-header-actions-ctn .fi-btn {
        width: 100%;
    }

    .hp-overview {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-metric {
        padding: 1rem 1.125rem;
    }

    .hp-metric + .hp-metric {
        border-inline-start: 0;
        border-block-start: 1px solid var(--hp-line);
    }

    .hp-metric__value {
        font-size: 1.5rem;
    }

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

    .hp-products .hp-metric {
        padding: 0.875rem 0.75rem;
    }

    .hp-products .hp-metric + .hp-metric {
        border-block-start: 0;
        border-inline-start: 1px solid var(--hp-line);
    }

    .hp-products .hp-metric dt {
        min-height: 2rem;
        font-size: 0.625rem;
    }

    .hp-products .hp-metric__icon,
    .hp-products .hp-metric__unit {
        display: none;
    }

    :is(.hp-categories, .hp-menus) .hp-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    :is(.hp-categories, .hp-menus) .hp-metric {
        padding: 1rem;
    }

    :is(.hp-categories, .hp-menus) .hp-metric + .hp-metric {
        border-block-start: 0;
    }

    :is(.hp-categories, .hp-menus) .hp-metric dt {
        min-height: 0;
        font-size: 0.75rem;
    }

    :is(.hp-categories, .hp-menus) .hp-metric__icon,
    :is(.hp-categories, .hp-menus) .hp-metric__note {
        display: none;
    }

    :is(.hp-categories, .hp-menus) .hp-metric__link {
        margin-block-start: 0.5rem;
    }

    .hp-table-notice {
        margin-inline: 1rem;
    }

    .hp-list .fi-ta-header {
        padding: 1rem;
    }

    .hp-list .fi-ta-header-toolbar {
        padding: 0 1rem 1rem;
    }

    .hp-list .fi-ta-header-toolbar > div:last-child {
        flex-wrap: wrap;
    }

    .hp-list .fi-ta-search-field {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .hp-list .fi-pagination {
        padding: 1rem;
    }

    .hp-products .hp-product-name {
        min-width: 12rem;
    }

    .hp-categories .fi-ta-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .hp-categories .fi-ta-table > thead {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .hp-categories .fi-ta-header-cell {
        padding: 0.75rem 0.5rem;
        font-size: 0.625rem;
    }

    .hp-categories .fi-ta-header-cell:last-child {
        display: none;
    }

    .hp-categories .fi-ta-table > tbody {
        display: block;
    }

    .hp-categories .fi-ta-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.375rem 0.75rem;
        padding: 1rem;
        border-block-end: 1px solid var(--hp-line-soft);
    }

    .hp-categories .fi-ta-row > .fi-ta-cell {
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .hp-categories .fi-ta-row > .fi-ta-cell:not(.fi-ta-cell-products-count):not(:last-child) {
        grid-column: 1 / -1;
    }

    .hp-categories .fi-ta-text {
        padding-block: 0.125rem;
    }

    .hp-categories .hp-category-name {
        padding-inline: 0;
    }

    /* Group and product count line up with the name, past the 2.25rem mark and its gap. */
    .hp-categories .hp-category-group,
    .hp-categories .hp-category-products {
        padding-inline: 3.125rem 0;
    }

    .hp-categories .fi-ta-row > .fi-ta-cell:last-child {
        padding-block-start: 0.25rem;
    }

    .hp-categories .fi-ta-row .fi-ta-actions {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-action,
    .hp-stat,
    .hp-stat::after,
    .hp-stat__icon,
    .hp-stat__arrow,
    .hp-feed__item,
    .hp-feed__chevron,
    .hp-feed__more .fi-icon,
    .hp-metric__link .fi-icon,
    .hp-metric__progress > span,
    :is(.hp-categories, .hp-menus) .hp-metric,
    .hp-category-title__mark,
    .fi-btn,
    .fi-topbar .fi-icon-btn,
    .fi-sidebar-item-btn {
        transition: none;
    }

    .hp-action:hover,
    .hp-action:focus-visible,
    a.hp-stat:hover,
    a.hp-stat:focus-visible,
    :is(.hp-categories, .hp-menus) .hp-metric--link:hover {
        transform: none;
    }
}

/* Tautan di teks bantuan form, misalnya "Menu katalog" di bawah pilihan Kelompok. */
.hp-helper-link {
    color: var(--hp-accent-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-helper-link:hover {
    color: var(--hp-orange-dark);
}

/* ---------- Menu katalog: daftar ringkas per brand, baris langsung diseret ---------- */

/* Petunjuk netral di bawah tab (bukan peringatan). */
.hp-table-notice--hint .fi-icon {
    color: var(--hp-icon);
}

.hp-mk {
    overflow: hidden;
    border-radius: 1rem;
    background: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
}

.hp-mk > .hp-table-tabs {
    margin: 0;
    padding-block-end: 0.25rem;
}

.hp-mk-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    list-style: none;
}

/* Satu kelompok: pegangan, posisi, nama dan alamat, isi, status, aksi. */
.hp-mk-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.375rem;
    border-radius: 0.875rem;
    background: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    transition: box-shadow 0.2s, background-color 0.2s;
}

.hp-mk-row:hover {
    box-shadow: inset 0 0 0 1px var(--hp-orange-ring);
}

.hp-mk-grip {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    color: var(--hp-icon);
    cursor: grab;
    touch-action: none;
}

.hp-mk-grip svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.hp-mk-grip:hover {
    background: var(--hp-hover);
    color: var(--hp-text);
}

.hp-mk-grip:active {
    cursor: grabbing;
}

.hp-mk-grip:focus-visible {
    outline: 2px solid var(--hp-orange);
    outline-offset: 2px;
}

/* Posisi = urutan yang dilihat pengunjung di filter website. */
.hp-mk-pos {
    flex-shrink: 0;
    width: 1.5rem;
    color: var(--hp-text-muted);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: end;
    transition: color 0.2s;
}

.hp-mk-row:hover .hp-mk-pos {
    color: var(--hp-accent-text);
}

.hp-mk-name {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    padding-inline-start: 0.25rem;
}

.hp-mk-title {
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

a.hp-mk-title:hover,
a.hp-mk-title:focus-visible {
    color: var(--hp-accent-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-mk-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hp-menu-chip {
    display: inline-flex;
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--hp-line);
    color: var(--hp-text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

/* Isi: "3 jenis · 11 mesin", mengarah ke jenis-jenisnya di Kategori mesin. */
.hp-mk-meta {
    flex-shrink: 0;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

a.hp-mk-meta:hover,
a.hp-mk-meta:focus-visible {
    color: var(--hp-accent-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-mk-meta__warn {
    color: #8a4b05;
}

.dark .hp-mk-meta__warn {
    color: #fcd34d;
}

/* Di website: tampil (hijau) atau belum tampil (pil kuning). */
.hp-mk-status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.375rem;
    min-width: 6.75rem;
    color: #15803d;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.dark .hp-mk-status {
    color: #4ade80;
}

.hp-mk-status .fi-icon {
    width: 1rem;
    height: 1rem;
}

.hp-mk-status--off {
    min-width: 0;
    padding: 0.1875rem 0.625rem 0.1875rem 0.5rem;
    border-radius: 999px;
    background: #fdf1cf;
    color: #8a4b05;
    font-size: 0.75rem;
    font-weight: 600;
}

.dark .hp-mk-status--off {
    background: rgba(251, 191, 36, 0.14);
    color: #fcd34d;
}

.hp-mk-more {
    flex-shrink: 0;
}

/* Saat diseret (wire:sort memakai SortableJS). */
.hp-mk-list .sortable-chosen {
    background: var(--hp-card);
    box-shadow: inset 0 0 0 1px var(--hp-orange-ring), var(--hp-shadow-hover);
}

.hp-mk-list .sortable-ghost {
    opacity: 0.4;
}

.hp-mk-empty {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 3rem 1.5rem;
    color: var(--hp-text-muted);
    text-align: center;
}

.hp-mk-empty .fi-icon {
    width: 2rem;
    height: 2rem;
    color: var(--hp-icon);
}

.hp-mk-empty h2 {
    margin: 0;
    color: var(--hp-text);
    font-size: 1rem;
    font-weight: 600;
}

.hp-mk-empty p {
    max-width: 32rem;
    margin: 0;
    font-size: 0.875rem;
}

/* HP: nama dan aksi di baris pertama, isi dan status di baris kedua. */
@media (max-width: 639px) {
    .hp-mk-list {
        padding: 0.75rem;
    }

    .hp-mk-row {
        display: grid;
        grid-template-areas:
            "grip pos name more"
            "grip pos meta status";
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        gap: 0.25rem 0.5rem;
        padding: 0.625rem 0.5rem 0.625rem 0.25rem;
    }

    .hp-mk-grip { grid-area: grip; }
    .hp-mk-pos { grid-area: pos; width: 1.25rem; }
    .hp-mk-name { grid-area: name; padding-inline-start: 0; }
    .hp-mk-more { grid-area: more; }

    .hp-mk-meta {
        grid-area: meta;
        white-space: normal;
    }

    .hp-mk-status {
        grid-area: status;
        justify-self: end;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-mk-row,
    .hp-mk-pos {
        transition: none;
    }
}

/* ---------- Form Kategori mesin: posisi di kelompok, hitungan judul, editor deskripsi ---------- */

/* Pengganti kolom angka "Urutan di kelompok": posisi saat ini + tautan ke daftar untuk diseret. */
.hp-position {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line);
}

.hp-position__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 0.625rem;
    background: var(--hp-orange-soft);
    color: var(--hp-accent-icon);
}

.hp-position__icon .fi-icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Basis 12rem: di layar sempit tombol "Atur urutan" turun ke baris sendiri, teks tidak terjepit. */
.hp-position__body {
    min-width: 0;
    flex: 1 1 12rem;
}

.hp-position__text {
    color: var(--hp-text);
    font-size: 0.875rem;
    line-height: 1.45;
}

.hp-position__text b {
    font-weight: 650;
}

.hp-position__note {
    margin-block-start: 0.125rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.hp-position__link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--hp-card);
    box-shadow: inset 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
    color: var(--hp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: box-shadow 0.15s var(--hp-ease), color 0.15s var(--hp-ease);
}

.hp-position__link:hover,
.hp-position__link:focus-visible {
    box-shadow: inset 0 0 0 1px var(--hp-orange), var(--hp-shadow-sm);
    color: var(--hp-accent-text);
}

.hp-position__link .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
}

@media (max-width: 639px) {
    .hp-position {
        flex-wrap: wrap;
    }

    .hp-position__link {
        margin-inline-start: 2.75rem;
    }
}

/* Hitungan karakter judul; oranye bila judul + " | Heavypack Indonesia" melewati ±60 karakter. */
.hp-count {
    font-variant-numeric: tabular-nums;
}

.hp-count--over {
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--hp-orange-soft);
    color: var(--hp-accent-text);
    font-weight: 600;
}

/*
 * Editor deskripsi: area tulis cukup tinggi untuk teks panjang, dan semua tingkat subjudul
 * (isi lama memakai h5) tampil sama seperti subjudul di website.
 */
.hp-desc-editor .fi-fo-rich-editor-content,
.hp-desc-editor .tiptap {
    min-height: 16rem;
}

.hp-desc-editor .tiptap :is(h1, h2, h3, h4, h5, h6) {
    margin-block: 1.1em 0.4em;
    font-size: 1.0625em;
    font-weight: 700;
    line-height: 1.35;
}

.hp-desc-editor .tiptap li > p {
    margin-block: 0.15em;
}

/* ---------- Form Produk mesin: rak brand di website (di bawah Kategori dan Merek) ---------- */

.hp-shelves {
    display: grid;
    gap: 0.375rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background-color: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line-soft);
}

.hp-shelves__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.hp-shelves__label {
    margin-inline-end: 0.125rem;
    color: var(--hp-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hp-shelves .hp-pill {
    font-size: 0.6875rem;
}

.hp-shelves__none,
.hp-shelves__note {
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.hp-shelves__warning {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background-color: #fdf1cf;
    color: #8a4b05;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.dark .hp-shelves__warning {
    background-color: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

.hp-shelves__warning .fi-icon {
    flex: none;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
}

/* Heavypack Industries: rak, bukan merek, jadi tampil sebagai garis oranye, bukan blok warna. */
.hp-pill--industries {
    background-color: var(--hp-orange-soft);
    color: var(--hp-accent-text);
    box-shadow: inset 0 0 0 1px var(--hp-orange-ring);
}

.dark .hp-pill--industries {
    background-color: rgba(255, 102, 0, 0.16);
    color: #ffb380;
}

/* ---------- Banner utama: gaya hero, daftar banner, form (desain FigCraft 2 Des 2026) ---------- */

/* Kartu "Gaya hero di beranda": dua pilihan bergambar + pengaturan geser di kanan. */
.hp-bhero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 1.5rem 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--hp-card);
    box-shadow: 0 0 0 1px var(--hp-line), var(--hp-shadow-sm);
}

.hp-bhero__head h2 {
    margin: 0;
    color: var(--hp-text);
    font-size: 1rem;
    font-weight: 600;
}

.hp-bhero__head p {
    margin: 0.25rem 0 0;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
}

.hp-bhero__gaya {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.hp-bgaya {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 1rem;
    border-radius: 0.875rem;
    background: var(--hp-card);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    cursor: pointer;
    transition: box-shadow 0.2s, background-color 0.2s;
}

.hp-bgaya:hover {
    box-shadow: inset 0 0 0 1px var(--hp-orange-ring);
}

.hp-bgaya.is-active {
    background: var(--hp-row-hover);
    box-shadow: inset 0 0 0 2px var(--hp-orange);
}

.hp-bgaya:has(input:focus-visible) {
    outline: 2px solid var(--hp-orange);
    outline-offset: 2px;
}

.hp-bgaya__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.hp-bgaya__title input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--hp-orange);
}

.hp-bgaya__desc {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Gambar kecil: kartu tengah dengan dua kartu mengintip, atau satu gambar selebar layar. */
.hp-bgaya__art {
    display: flex;
    gap: 4%;
    align-items: stretch;
    justify-content: center;
    height: 6.5rem;
    padding: 0.625rem 0;
    overflow: hidden;
    border-radius: 0.625rem;
    background: var(--hp-raised);
}

.hp-bgaya__art i,
.hp-bgaya__art b {
    display: block;
    flex-shrink: 0;
    border-radius: 0.375rem;
}

.hp-bgaya__art i {
    width: 10%;
    background: #d2d2d7;
}

.dark .hp-bgaya__art i {
    background: #48484c;
}

.hp-bgaya__art b {
    position: relative;
    width: 72%;
    overflow: hidden;
    background: #1c1d20;
}

.hp-bgaya__art b::after {
    position: absolute;
    inset: 0 0 0 58%;
    background: #ff6600;
    clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.hp-bgaya__art em {
    position: absolute;
    top: 24%;
    left: 8%;
    width: 38%;
    height: 34%;
    background:
        linear-gradient(#fff 0 0) 0 0 / 90% 22% no-repeat,
        linear-gradient(#fff 0 0) 0 40% / 70% 22% no-repeat,
        linear-gradient(#ff6600 0 0) 0 100% / 45% 22% no-repeat;
}

.hp-bgaya__art--landscape {
    padding: 0;
}

.hp-bgaya__art--landscape b {
    width: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, #141416 30%, rgba(20, 20, 22, 0.15)), linear-gradient(120deg, #6b4a2c, #c98b4f 60%, #3b2a1d);
}

.hp-bgaya__art--landscape b::after {
    display: none;
}

.hp-bhero__side {
    display: grid;
    align-content: start;
    gap: 0.875rem;
    padding-left: 2rem;
    border-left: 1px solid var(--hp-line);
}

.hp-bhero__saved {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-self: end;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.hp-bhero__saved .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--hp-live);
}

.hp-bhero__note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: var(--hp-raised);
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hp-bhero__note .fi-icon {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.0625rem;
    color: var(--hp-accent-text);
}

.hp-bfield {
    display: grid;
    gap: 0.375rem;
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.hp-bfield select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 0;
    border-radius: 0.625rem;
    background-color: var(--hp-input);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    color: var(--hp-text);
    font-size: 0.875rem;
}

.hp-bfield select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--hp-orange);
}

/* Sakelar sederhana (checkbox role=switch) untuk pengaturan yang langsung tersimpan. */
.hp-bswitch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--hp-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.hp-bswitch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hp-bswitch__track,
.hp-brow__switch {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.375rem;
    border-radius: 999px;
    background: #d2d2d7;
    transition: background-color 0.2s;
}

.dark .hp-bswitch__track,
.dark .hp-brow__switch {
    background: #48484c;
}

.hp-bswitch__track::after,
.hp-brow__switch span {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s var(--hp-ease);
    content: "";
}

.hp-bswitch input:checked + .hp-bswitch__track,
.hp-brow__switch[aria-checked="true"] {
    background: var(--hp-orange);
}

.hp-bswitch input:checked + .hp-bswitch__track::after,
.hp-brow__switch[aria-checked="true"] span {
    transform: translateX(1.125rem);
}

.hp-bswitch input:focus-visible + .hp-bswitch__track,
.hp-brow__switch:focus-visible {
    outline: 2px solid var(--hp-orange);
    outline-offset: 2px;
}

.hp-bswitch input:disabled + .hp-bswitch__track {
    opacity: 0.5;
}

/* Daftar banner: baris seperti Menu katalog, ditambah gambar kecil dan kolom jenis/jadwal/status. */
/* Kolom baris: pegangan, posisi, gambar, nama, jenis, tampil di, jadwal, sakelar, status, edit, ⋯ */
.hp-blist {
    --hp-bcols: 2rem 1.5rem 7rem minmax(10rem, 1fr) 8.75rem 8rem 8rem 2.5rem 6rem 2rem 2rem;
    margin-top: 1.5rem;
}

.hp-blist__head {
    display: grid;
    grid-template-columns: var(--hp-bcols);
    column-gap: 0.75rem;
    padding: 0.75rem 2rem 0 1.625rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.hp-blist__head span:nth-child(1) { grid-column: 2; text-align: end; }
.hp-blist__head span:nth-child(2) { grid-column: 3 / 5; }
.hp-blist__head span:nth-child(3) { grid-column: 5; }
.hp-blist__head span:nth-child(4) { grid-column: 6; }
.hp-blist__head span:nth-child(5) { grid-column: 7; }
.hp-blist__head span:nth-child(6) { grid-column: 8 / 10; }

.hp-brow.hp-mk-row {
    display: grid;
    grid-template-columns: var(--hp-bcols);
    grid-template-areas: "grip pos thumb name jenis device jadwal switch status edit more";
    min-height: 4.75rem;
}

.hp-brow > .hp-mk-grip,
.hp-brow > .hp-brow__nogrip { grid-area: grip; }
.hp-brow > .hp-mk-pos { grid-area: pos; }
.hp-brow > .hp-brow__thumb { grid-area: thumb; }
.hp-brow > .hp-mk-name { grid-area: name; }
.hp-brow > .hp-bjenis { grid-area: jenis; justify-self: start; }
.hp-brow > .hp-brow__device { grid-area: device; }
.hp-brow > .hp-brow__jadwal { grid-area: jadwal; }
.hp-brow > .hp-brow__switch { grid-area: switch; }
.hp-brow > .hp-bstatus { grid-area: status; justify-self: start; }
.hp-brow > .hp-brow__edit { grid-area: edit; }
.hp-brow > .hp-mk-more { grid-area: more; }

.hp-brow__nogrip {
    flex-shrink: 0;
    width: 2rem;
}

.hp-brow__thumb {
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px var(--hp-line);
}

.hp-brow__link-icon {
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    color: var(--hp-icon);
}

.hp-brow__alamat {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-bjenis {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    width: max-content;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
    background: var(--hp-orange-soft);
    color: var(--hp-accent-text);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.hp-bjenis--landscape {
    background: #eef2ff;
    color: #3730a3;
}

.dark .hp-bjenis--landscape {
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
}

.hp-bjenis .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
}


.hp-brow__device {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
    color: var(--hp-text);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.hp-brow__device .fi-icon {
    width: 0.9375rem;
    height: 0.9375rem;
    color: var(--hp-icon);
}

.hp-brow__jadwal {
    flex-shrink: 0;
    min-width: 0;
    color: var(--hp-text);
    font-size: 0.8125rem;
}

.hp-brow__switch {
    padding: 0;
    border: 0;
    cursor: pointer;
}

.hp-brow__switch:disabled {
    cursor: default;
    opacity: 0.6;
}

.hp-bstatus {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.375rem;
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.hp-bstatus::before {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.hp-bstatus--tayang { background: #e8f7ef; color: #137a45; }
.hp-bstatus--terjadwal { background: #fff4db; color: #965a00; }
.hp-bstatus--berakhir,
.hp-bstatus--nonaktif { background: var(--hp-line-soft); color: var(--hp-text-muted); }

.dark .hp-bstatus--tayang { background: rgba(52, 210, 127, 0.16); color: #6ee7a8; }
.dark .hp-bstatus--terjadwal { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }

.hp-brow > .hp-bstatus {
    justify-content: flex-start;
    min-width: 0;
}

.hp-blist__foot {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
}


/* Layar di bawah 1440 px: dua baris per banner (nama di atas; jenis, jadwal, status di bawah). */
@media (max-width: 1439px) {
    .hp-blist__head { display: none; }

    .hp-brow.hp-mk-row {
        grid-template-columns: 2rem 1.5rem 7rem auto auto minmax(0, 1fr) auto auto 2rem 2rem;
        grid-template-areas:
            "grip pos thumb name   name   name   name   name   edit more"
            "grip pos thumb jenis  device jadwal switch status status status";
        row-gap: 0.375rem;
        padding-block: 0.625rem;
    }

    .hp-brow > .hp-bstatus { justify-self: start; }
}

@media (max-width: 1023px) {
    .hp-bhero { grid-template-columns: 1fr; }
    .hp-bhero__side { padding-top: 1.25rem; padding-left: 0; border-top: 1px solid var(--hp-line); border-left: 0; }
    .hp-bhero__saved { justify-self: start; }
}

/* HP: gambar kecil, nama dan ⋯ di atas, status dan sakelar di bawah. */
@media (max-width: 639px) {
    .hp-bhero { padding: 1rem; }
    .hp-bhero__gaya { grid-template-columns: 1fr; }

    .hp-brow.hp-mk-row {
        grid-template-columns: 2rem 5.5rem minmax(0, 1fr) auto;
        grid-template-areas:
            "grip thumb name   more"
            "grip thumb status switch";
        padding: 0.625rem 0.5rem 0.625rem 0.25rem;
    }

    .hp-brow > .hp-mk-pos,
    .hp-brow > .hp-bjenis,
    .hp-brow > .hp-brow__device,
    .hp-brow > .hp-brow__jadwal,
    .hp-brow > .hp-brow__edit { display: none; }
}

/* Banner mini: pratinjau form & gambar kecil di daftar. Ukuran ikut lebar kotak (cqw). */
.hp-bmini {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    container-type: inline-size;
    border-radius: 0.5rem;
    background: #1c1d20;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.hp-bmini::after {
    position: absolute;
    inset: 0 0 0 58%;
    background: var(--hp-bmini-slab, #ff6600);
    clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.hp-bmini--foto {
    aspect-ratio: 12 / 5;
    background: var(--hp-raised);
}

.hp-bmini--foto::after,
.hp-bmini--hp::after {
    display: none;
}

.hp-bmini--foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-bmini--foto.hp-bmini--hp {
    aspect-ratio: 1 / 1;
}

.hp-bmini__kosong {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.25rem;
    height: 100%;
    color: var(--hp-text-muted);
    font-size: max(0.625rem, 5cqw);
}

.hp-bmini__kosong .fi-icon {
    width: 14cqw;
    height: 14cqw;
    max-width: 2rem;
    max-height: 2rem;
}

.hp-bmini__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6cqw;
    width: 50%;
    height: 100%;
    padding: 0 0 0 5.3cqw;
}

.hp-bmini__label {
    color: var(--hp-bmini-eyebrow, #ff7a1f);
    font-size: 1.1cqw;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-bmini__title {
    margin: 0;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 4.4cqw;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hp-bmini__title span {
    color: var(--hp-bmini-kata, #ff6600);
}

.hp-bmini__placeholder {
    opacity: 0.35;
}

.hp-bmini__desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--hp-bmini-body, #c4c8cd);
    font-size: 1.4cqw;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hp-bmini__btns,
.hp-bmini__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1cqw;
}

.hp-bmini__btns i {
    padding: 1.1cqw 2cqw;
    border-radius: 0.35cqw;
    background: #ff6600;
    color: #fff;
    font-size: 1.1cqw;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hp-bmini__btns i + i {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--hp-bmini-garis, rgba(255, 255, 255, 0.3));
    color: inherit;
}

.hp-bmini__chips i {
    padding: 0.5cqw 1.1cqw;
    border-radius: 999px;
    background: var(--hp-bmini-chip, rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0 0 1px var(--hp-bmini-garis, rgba(255, 255, 255, 0.14));
    font-size: 1cqw;
    font-style: normal;
}

.hp-bmini__img {
    position: absolute;
    z-index: 1;
    right: 3.4cqw;
    bottom: 4%;
    width: 39cqw;
    height: 92%;
    object-fit: contain;
    object-position: center bottom;
}

.hp-bmini__card {
    position: absolute;
    z-index: 2;
    right: 2.7cqw;
    bottom: 4.3cqw;
    display: grid;
    gap: 0.3cqw;
    width: 22cqw;
    padding: 1.3cqw;
    border-radius: 1.2cqw;
    background: #fff;
    color: #687078;
    font-size: 1cqw;
    line-height: 1.5;
}

.hp-bmini__card b {
    color: #1c1d20;
    font-size: 1.2cqw;
}

.hp-bmini--terang {
    --hp-bmini-slab: #1c1d20;
    --hp-bmini-eyebrow: #e65c00;
    --hp-bmini-body: #4a5057;
    --hp-bmini-garis: rgba(28, 29, 32, 0.2);
    --hp-bmini-chip: rgba(28, 29, 32, 0.04);
    background: #fff;
    color: #1c1d20;
}

.hp-bmini--oranye {
    --hp-bmini-slab: #1c1d20;
    --hp-bmini-eyebrow: #1c1d20;
    --hp-bmini-body: #1c1d20;
    --hp-bmini-kata: #fff;
    --hp-bmini-garis: rgba(28, 29, 32, 0.3);
    --hp-bmini-chip: rgba(255, 255, 255, 0.12);
    background: #f26100;
    color: #1c1d20;
}

.hp-bmini--oranye .hp-bmini__btns i:first-child {
    background: #1c1d20;
}

/* Thumbnail daftar: judul lebih besar supaya terbaca di 128 px. */
.hp-bmini--ringkas .hp-bmini__text {
    gap: 3cqw;
    width: 58%;
}

.hp-bmini--ringkas .hp-bmini__title {
    font-size: 7cqw;
}

.hp-bmini--ringkas .hp-bmini__btns i {
    padding: 1.6cqw 3cqw;
    font-size: 2.6cqw;
}

/* HP: slide disusun tegak, mesin di bawah teks. */
.hp-bmini--hp:not(.hp-bmini--foto) {
    aspect-ratio: 9 / 14;
}

.hp-bmini--hp .hp-bmini__text {
    justify-content: flex-start;
    gap: 3cqw;
    width: 100%;
    height: auto;
    padding: 9cqw 7cqw 0;
}

.hp-bmini--hp .hp-bmini__label { font-size: 2.6cqw; }
.hp-bmini--hp .hp-bmini__title { font-size: 9cqw; }
.hp-bmini--hp .hp-bmini__desc { font-size: 3.4cqw; }
.hp-bmini--hp .hp-bmini__btns i { padding: 2.6cqw 4cqw; font-size: 2.8cqw; }
.hp-bmini--hp .hp-bmini__chips,
.hp-bmini--hp .hp-bmini__card { display: none; }

.hp-bmini--hp .hp-bmini__img {
    right: 10%;
    bottom: 2%;
    width: 80%;
    height: 38%;
}

/* Pratinjau di beranda (kolom kanan form). */
.hp-bprev {
    display: grid;
    gap: 0.75rem;
}

.hp-bprev__switch {
    display: inline-flex;
    justify-self: end;
    gap: 0.125rem;
    padding: 0.1875rem;
    border-radius: 0.625rem;
    background: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line);
}

.hp-bprev__switch button {
    padding: 0.25rem 0.625rem;
    border: 0;
    border-radius: 0.4375rem;
    background: none;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.hp-bprev__switch button.is-active {
    background: var(--hp-card);
    box-shadow: var(--hp-shadow-sm), 0 0 0 1px var(--hp-line);
    color: var(--hp-text);
}

.hp-bprev__browser,
.hp-bprev__phone {
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0 0 1px var(--hp-line);
}

.hp-bprev__phone {
    justify-self: center;
    width: 12rem;
    padding-bottom: 0.5rem;
    border-radius: 1.25rem;
}

.hp-bprev__bar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: #f5f5f7;
}

.hp-bprev__bar i {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: #ff5f57;
}

.hp-bprev__bar i:nth-child(2) { background: #febc2e; }
.hp-bprev__bar i:nth-child(3) { background: #28c840; }

.hp-bprev__bar span {
    flex: 1;
    margin-left: 0.25rem;
    padding: 0.0625rem 0.5rem;
    border-radius: 0.25rem;
    background: #fff;
    color: #6e6e73;
    font-size: 0.5625rem;
    text-align: center;
}

.hp-bprev__nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: #fff;
}

.hp-bprev__nav b {
    width: 2.75rem;
    height: 0.25rem;
    margin-right: auto;
    border-radius: 999px;
    background: #ff6600;
}

.hp-bprev__nav span {
    width: 1.25rem;
    height: 0.1875rem;
    border-radius: 999px;
    background: #d2d2d7;
}

.hp-bprev__nav em {
    width: 1.75rem;
    height: 0.375rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: #ff6600;
}

.hp-bprev__stage {
    padding: 0.375rem 0.5rem;
    background: #f5f2ee;
}

.hp-bprev__lines {
    display: grid;
    gap: 0.3125rem;
    padding: 0.625rem 0.75rem 0.75rem;
}

.hp-bprev__lines span {
    width: 40%;
    height: 0.25rem;
    border-radius: 999px;
    background: #ffd0a8;
}

.hp-bprev__lines span + span { width: 70%; background: #e8e8ed; }
.hp-bprev__lines span + span + span { width: 50%; }

.hp-bprev__dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.25rem;
}

.hp-bprev__dots b,
.hp-bprev__dots i {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: #d2d2d7;
}

.hp-bprev__dots b {
    width: 1rem;
    background: #ff6600;
}

.hp-bprev__note {
    margin: 0;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Gambar desktop dengan garis area aman. */
.hp-bimg {
    display: grid;
    gap: 0.5rem;
}

.hp-bimg__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hp-bimg__label {
    color: var(--hp-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.hp-bimg__switch {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
}

.hp-bimg__switch input {
    accent-color: var(--hp-orange);
}

.hp-bimg__frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 12 / 5;
    border-radius: 0.75rem 0.75rem 0 0;
    background: var(--hp-raised);
}

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

/* Area aman = kiri, tempat tulisan tidak tertutup panah, tab, atau gradasi. */
.hp-bimg__safe {
    position: absolute;
    top: 9%;
    left: 6%;
    width: 52%;
    height: 72%;
    border: 2px dashed rgba(255, 255, 255, 0.85);
    border-radius: 0.375rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.hp-bimg__safe span {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background: #fff;
    color: #242424;
    font-size: 0.6875rem;
    font-weight: 600;
}

.hp-bimg__nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 14%;
    padding-left: 1rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
}

.hp-bimg__file {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: -0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: inset 0 0 0 1px var(--hp-line);
}

.hp-bimg__file > .fi-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--hp-icon);
}

.hp-bimg__name {
    display: grid;
    flex: 1;
    min-width: 0;
}

.hp-bimg__name strong {
    overflow: hidden;
    color: var(--hp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-bimg__name small,
.hp-bmesin__info small {
    color: var(--hp-text-muted);
    font-size: 0.75rem;
}

.hp-bimg__empty {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.375rem;
    aspect-ratio: 12 / 5;
    border-radius: 0.75rem;
    background: var(--hp-raised);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

.hp-bimg__empty p {
    margin: 0;
}

.hp-bimg__empty > .fi-icon {
    width: 2rem;
    height: 2rem;
    color: var(--hp-icon);
}

.hp-bimg__empty--warn {
    color: #8a4b05;
}

.dark .hp-bimg__empty--warn {
    color: #fcd34d;
}

.hp-bimg__safe--empty {
    border-color: var(--hp-text-muted);
    box-shadow: none;
}

.hp-btag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: max-content;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.hp-btag .fi-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.hp-btag--ok { background: #e8f7ef; color: #137a45; }
.hp-btag--warn { background: #fff4db; color: #965a00; }
.dark .hp-btag--ok { background: rgba(52, 210, 127, 0.16); color: #6ee7a8; }
.dark .hp-btag--warn { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }

/* Gambar mesin slide desain. */
.hp-bmesin {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 1px var(--hp-line);
}

.hp-bmesin__thumb {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.5rem;
    background: repeating-conic-gradient(#ececf0 0% 25%, #fff 0% 50%) 50% / 12px 12px;
}

.dark .hp-bmesin__thumb {
    background: repeating-conic-gradient(#333336 0% 25%, #2a2a2c 0% 50%) 50% / 12px 12px;
}

.hp-bmesin__thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.hp-bmesin__info {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.hp-bmesin__info strong {
    overflow: hidden;
    color: var(--hp-text);
    font-size: 0.8125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cek otomatis & riwayat. */
.hp-bcek {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-bcek__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: var(--hp-text);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hp-bcek__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
}

.hp-bcek__icon .fi-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.hp-bcek__item--ok .hp-bcek__icon { background: #e8f7ef; color: #137a45; }
.hp-bcek__item--peringatan .hp-bcek__icon { background: #fff4db; color: #965a00; }
.hp-bcek__item--info .hp-bcek__icon { background: var(--hp-orange-soft); color: var(--hp-accent-text); }
.dark .hp-bcek__item--ok .hp-bcek__icon { background: rgba(52, 210, 127, 0.16); color: #6ee7a8; }
.dark .hp-bcek__item--peringatan .hp-bcek__icon { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }

.hp-briwayat {
    display: grid;
    gap: 0.625rem;
    margin: 0;
}

.hp-briwayat div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
}

.hp-briwayat dt {
    color: var(--hp-text-muted);
}

.hp-briwayat dd {
    margin: 0;
    color: var(--hp-text);
    font-weight: 600;
    text-align: right;
}

/* Judul halaman Ubah banner: jenis, status, terakhir diubah. */
.hp-bmeta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--hp-text-muted);
    font-size: 0.8125rem;
}

/* Pilihan berbentuk kartu: Jenis banner dan Tema warna. */
.hp-choice.fi-fo-radio > .fi-fo-radio-label {
    position: relative;
    align-self: stretch;
    padding: 1rem 2.75rem 1rem 1rem;
    border-radius: 0.875rem;
    background: var(--hp-card);
    box-shadow: inset 0 0 0 1px var(--hp-line);
    cursor: pointer;
    transition: box-shadow 0.2s, background-color 0.2s;
}

.hp-choice.fi-fo-radio > .fi-fo-radio-label:hover {
    box-shadow: inset 0 0 0 1px var(--hp-orange-ring);
}

.hp-choice.fi-fo-radio > .fi-fo-radio-label:has(.fi-radio-input:checked) {
    background: var(--hp-row-hover);
    box-shadow: inset 0 0 0 2px var(--hp-orange);
}

.hp-choice.fi-fo-radio > .fi-fo-radio-label > .fi-radio-input {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
}

.hp-choice--tema.fi-fo-radio {
    gap: 0.75rem;
}

.hp-choice--tema.fi-fo-radio > .fi-fo-radio-label {
    padding: 0.5rem 0.5rem 0.625rem;
}

.hp-choice--tema.fi-fo-radio > .fi-fo-radio-label > .fi-radio-input {
    opacity: 0;
}

.hp-choice--tema .fi-fo-radio-label-text p {
    display: grid;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.hp-swatch {
    position: relative;
    display: block;
    width: 6rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #1c1d20;
}

.hp-swatch::after {
    position: absolute;
    inset: 0 0 0 45%;
    background: #ff6600;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.hp-swatch i {
    position: absolute;
    left: 12%;
    width: 30%;
    height: 0.1875rem;
    border-radius: 999px;
    background: #fff;
}

.hp-swatch i:first-child { top: 35%; background: #ff6600; }
.hp-swatch i + i { top: 55%; }

.hp-swatch--terang { background: #fff; box-shadow: inset 0 0 0 1px #e8e8ed; }
.hp-swatch--terang::after { background: #1c1d20; }
.hp-swatch--terang i + i { background: #1c1d20; }
.hp-swatch--oranye { background: #f26100; }
.hp-swatch--oranye::after { background: #1c1d20; }
.hp-swatch--oranye i:first-child,
.hp-swatch--oranye i + i { background: #1c1d20; }

@media (prefers-reduced-motion: reduce) {
    .hp-bgaya,
    .hp-bswitch__track,
    .hp-bswitch__track::after,
    .hp-brow__switch,
    .hp-brow__switch span,
    .hp-choice.fi-fo-radio > .fi-fo-radio-label {
        transition: none;
    }
}

/* ---------- Banner jenis "Lini Industries" (3 Des 2026) ---------- */

.hp-bjenis--lini {
    background: #1c1d20;
    color: #ffb27a;
}

.dark .hp-bjenis--lini {
    background: rgba(255, 102, 0, 0.16);
    color: #ffb27a;
}

/* Banner mini: teks kiri, panel mesin + conveyor kanan. */
.hp-bmini--industri {
    background: radial-gradient(40% 60% at 74% 40%, rgba(255, 102, 0, 0.22), transparent 70%), #17181b;
}

.hp-bmini--industri::after {
    display: none;
}

.hp-bmini__lini {
    position: absolute;
    z-index: 1;
    top: 6%;
    right: 3.4cqw;
    bottom: 6%;
    display: flex;
    flex-direction: column;
    gap: 2.2cqw;
    width: 46cqw;
}

.hp-bmini__panel {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 0.8cqw;
    padding: 2cqw;
    border-radius: 1.6cqw;
    background: radial-gradient(75% 80% at 62% 58%, #fff 30%, #e9e6e1);
    box-shadow: inset 0 -0.5cqw 0 #ff6600;
    color: #1c1d20;
    font-size: 1.5cqw;
    font-weight: 700;
    line-height: 1.25;
}

.hp-bmini__panel b {
    color: #ff6600;
    font-weight: 900;
}

/* Foto mesin stasiun pertama (pilihan admin atau terlaris), seperti panel di website. */
.hp-bmini__panel {
    position: relative;
    overflow: hidden;
}

.hp-bmini__panelteks {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.8cqw;
}

.hp-bmini__panel img {
    position: absolute;
    top: 18%;
    left: 8%;
    width: 84%;
    height: 74%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.hp-bmini__jalur {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    height: 4cqw;
}

.hp-bmini__sabuk {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1cqw;
    border-radius: 999px;
    background: #2a2c31;
    translate: 0 -50%;
}

.hp-bmini__jalur i {
    position: relative;
    width: 3.6cqw;
    height: 3.6cqw;
    border: 0.3cqw solid #3a3d43;
    border-radius: 1cqw;
    background: #1f2024;
}

.hp-bmini__jalur i:first-of-type {
    border-color: #ff6600;
}

.hp-bmini__jalur em {
    position: absolute;
    top: 50%;
    left: 0;
    width: 2.6cqw;
    height: 2.6cqw;
    border-radius: 0.6cqw;
    background: #fff;
    translate: -50% -50%;
    animation: hp-bmini-jalan 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hp-bmini-jalan {
    from { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { left: 100%; opacity: 0; }
}

.hp-bmini--ringkas .hp-bmini__panel {
    font-size: 0;
}

.hp-bmini--hp .hp-bmini__lini {
    top: auto;
    left: 7cqw;
    right: 7cqw;
    bottom: 5%;
    width: auto;
    height: 40%;
}

.hp-bmini--hp .hp-bmini__panel { font-size: 3.4cqw; }
.hp-bmini--hp .hp-bmini__jalur { height: 8cqw; }
.hp-bmini--hp .hp-bmini__sabuk { height: 2cqw; }
.hp-bmini--hp .hp-bmini__jalur i { width: 7cqw; height: 7cqw; border-width: 0.6cqw; border-radius: 2cqw; }
.hp-bmini--hp .hp-bmini__jalur em { width: 5cqw; height: 5cqw; border-radius: 1.2cqw; }

@media (prefers-reduced-motion: reduce) {
    .hp-bmini__jalur em { animation: none; left: 12%; }
}

/* Form: daftar mesin yang masuk ke lini. */
.hp-blini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-blini li {
    display: grid;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--hp-border, #e5e7eb);
    border-radius: 0.625rem;
    background: var(--hp-raised, #fff);
}

.hp-blini b {
    color: #ff6600;
    font-size: 0.875rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hp-blini span {
    color: var(--hp-text, #1c1d20);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.hp-blini small {
    color: var(--hp-text-muted, #6b7280);
    font-size: 0.75rem;
}

/* Foto mesin yang tampil di kelompok itu (latar putih seperti panel mesin di website). */
.hp-blini__foto {
    display: grid;
    place-items: center;
    aspect-ratio: 985 / 768;
    margin-bottom: 0.375rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #fff;
    color: #9ca3af;
}

.hp-blini__foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hp-blini__foto .fi-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.hp-blini small.hp-blini__sumber {
    margin-top: 0.125rem;
    overflow-wrap: anywhere;
}

.hp-blini small.hp-blini__sumber.is-pilihan {
    color: var(--hp-accent-text, #c2410c);
    font-weight: 600;
}

.hp-blini__note,
.hp-blini__kosong {
    margin: 0.75rem 0 0;
    color: var(--hp-text-muted, #6b7280);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.hp-blini__kosong {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    color: #b45309;
}

.hp-blini__kosong .fi-icon {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
}

.hp-blini__note a,
.hp-blini__kosong a {
    color: var(--hp-accent-text, #c2410c);
    font-weight: 600;
    text-decoration: underline;
}
