:root {
    --led-bg: #eef1f5;
    --led-surface: #ffffff;
    --led-head: #192231;
    --led-line: #cfd6df;
    --led-text: #1e293b;
    --led-muted: #64748b;
    --led-primary: #334155;
    --led-blue: #2563eb;
    --led-green: #166534;
    --led-amber: #92400e;
    --led-red: #b91c1c;
}

body.led-body {
    margin: 0;
    background: var(--led-bg);
    color: var(--led-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.led-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.led-container {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
}

.led-main {
    flex: 1 0 auto;
    padding: 22px 0 52px;
}

.led-nav {
    border-bottom: 1px solid #101827;
    background: var(--led-head);
    color: #fff;
}

.led-nav-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.led-brand,
.led-link,
.led-button,
.led-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 760;
}

.led-brand {
    min-width: 0;
    color: #fff;
}

.led-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.led-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.led-links {
    display: flex;
    gap: 8px;
}

.led-link,
.led-ghost,
.led-button {
    min-height: 38px;
    border: 1px solid var(--led-line);
    border-radius: 4px;
    padding: 7px 12px;
}

.led-link {
    color: #dbeafe;
    border-color: rgba(255, 255, 255, .18);
}

.led-link:hover,
.led-link.active {
    color: #fff;
    border-color: rgba(255, 255, 255, .48);
}

.led-button {
    color: #fff;
    border-color: var(--led-blue);
    background: var(--led-blue);
}

.led-ghost {
    color: var(--led-primary);
    background: #fff;
}

.led-dashboard {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.led-side,
.led-panel,
.led-row,
.led-notice {
    border: 1px solid var(--led-line);
    border-radius: 5px;
    background: var(--led-surface);
}

.led-side {
    position: sticky;
    top: 12px;
    padding: 14px;
}

.led-panel {
    padding: 16px;
}

.led-title {
    margin: 8px 0 10px;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.1;
    letter-spacing: 0;
}

.led-kicker {
    color: var(--led-blue);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.led-muted {
    color: var(--led-muted);
}

.led-notice {
    padding: 12px;
    color: var(--led-muted);
    overflow-wrap: anywhere;
}

.led-search input,
.led-form input,
.led-form select,
.led-form textarea {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--led-line);
    border-radius: 4px;
    padding: 0 10px;
    color: var(--led-text);
    background: #fff;
}

.led-tabs {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.led-tab {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--led-line);
    border-radius: 4px;
    padding: 9px 10px;
    color: var(--led-muted);
    background: #f8fafc;
    cursor: pointer;
}

.led-tab.is-active {
    color: #fff;
    border-color: var(--led-primary);
    background: var(--led-primary);
}

.led-table-head,
.led-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 140px 120px 82px 82px 120px 96px;
    gap: 10px;
    align-items: center;
}

.led-table-head {
    padding: 10px 12px;
    color: var(--led-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.led-row {
    margin-bottom: 8px;
    padding: 12px;
}

.led-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.led-product img {
    width: 54px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    background: #e2e8f0;
}

.led-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.led-desc {
    margin: 0;
    color: var(--led-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.led-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 3px 7px;
    color: var(--led-muted);
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 760;
}

.led-green {
    color: var(--led-green);
}

.led-amber {
    color: var(--led-amber);
}

.led-red {
    color: var(--led-red);
}

.led-price {
    color: var(--led-blue);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.led-buy {
    display: grid;
    gap: 14px;
}

.led-summary-top {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: center;
}

.led-cover {
    width: 180px;
    height: 132px;
    object-fit: cover;
    border-radius: 4px;
    background: #e2e8f0;
}

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

.led-form .wide {
    grid-column: 1 / -1;
}

.led-form label,
.led-label {
    display: block;
    margin-bottom: 5px;
    color: var(--led-muted);
    font-weight: 820;
}

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

.led-payways label {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--led-line);
    border-radius: 4px;
    padding: 9px;
    background: #f8fafc;
}

.led-summary {
    display: grid;
    border-top: 1px solid var(--led-line);
}

.led-summary-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--led-line);
    overflow-wrap: anywhere;
}

.led-summary-row label {
    color: var(--led-muted);
}

.led-qr {
    width: min(280px, 100%);
    margin: 16px auto;
    padding: 16px;
    border: 1px solid var(--led-line);
    border-radius: 4px;
    background: #fff;
}

.led-qr img {
    width: 100%;
    height: auto;
}

.led-kami {
    width: 100%;
    min-height: 160px;
    border: 1px solid var(--led-line);
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
}

.led-empty {
    padding: 28px;
    border: 1px dashed var(--led-line);
    border-radius: 4px;
    color: var(--led-muted);
    text-align: center;
    background: #fff;
}

.led-footer {
    flex-shrink: 0;
    padding: 24px 0;
    border-top: 1px solid var(--led-line);
    color: var(--led-muted);
    background: #fff;
    text-align: center;
}

.led-footer a {
    color: var(--led-blue);
}

.led-body :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 2px;
}

@media (max-width: 1080px) {
    .led-dashboard,
    .led-summary-top {
        grid-template-columns: 1fr;
    }

    .led-side {
        position: static;
    }

    .led-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .led-table-head {
        display: none;
    }

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

    .led-product {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .led-container {
        width: min(100% - 22px, 1220px);
    }

    .led-nav-inner,
    .led-links {
        align-items: stretch;
        flex-direction: column;
        padding: 10px 0;
    }

    .led-link,
    .led-button,
    .led-ghost {
        width: 100%;
        box-sizing: border-box;
    }

    .led-row,
    .led-form,
    .led-payways,
    .led-summary-row {
        grid-template-columns: 1fr;
    }
}

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