:root {
    --prl-page: #f4f7fb;
    --prl-surface: #ffffff;
    --prl-soft: #f8fafc;
    --prl-line: #dfe7f1;
    --prl-line-soft: #e9eef5;
    --prl-text: #111827;
    --prl-muted: #64748b;
    --prl-blue: #2563eb;
    --prl-blue-soft: #eff6ff;
    --prl-radius: 8px;
    --prl-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

body.risk-library-theme {
    --prl-sidebar-width: 244px;
    --prl-sidebar-collapsed-width: 72px;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4f7fb;
    color: var(--prl-text);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.risk-library-theme.risk-sidebar-collapsed {
    --prl-sidebar-width: var(--prl-sidebar-collapsed-width);
}

.risk-library-theme a {
    text-decoration: none;
}

.risk-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--prl-sidebar-width);
    flex-direction: column;
    padding: 12px 10px 10px;
    background: #ffffff;
    border-right: 1px solid var(--prl-line);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.02);
    transition: width 0.24s cubic-bezier(0.2, 0, 0, 1), padding 0.24s cubic-bezier(0.2, 0, 0, 1);
    will-change: width;
}

.risk-sidebar-toggle {
    position: absolute;
    top: 14px;
    right: 10px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--prl-line);
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.risk-sidebar-toggle:hover,
.risk-sidebar-toggle:focus-visible {
    background: #f3f6fb;
    color: #0f172a;
}

.risk-sidebar-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.brand-title {
    display: flex;
    height: 40px;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    padding: 0 38px 0 8px;
    overflow: hidden;
    border-radius: 8px;
    color: #05070d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    transition: background 0.16s ease, padding 0.24s cubic-bezier(0.2, 0, 0, 1), justify-content 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.brand-title:hover {
    background: #f7f7f8;
}

.brand-logo {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e8d640;
    border-radius: 50%;
    background: #fff159;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.brand-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-name {
    min-width: 0;
    max-width: 128px;
    opacity: 1;
    overflow: hidden;
    transform: translateX(0);
    transition: max-width 0.24s cubic-bezier(0.2, 0, 0, 1), opacity 0.14s ease, transform 0.2s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.risk-nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.risk-nav-bottom {
    margin-top: auto;
}

.risk-sidebar > .risk-nav-bottom {
    position: absolute;
    right: 14px;
    bottom: 24px;
    left: 14px;
    margin-top: 0;
}

.risk-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 0 0 5px;
    border-radius: var(--prl-radius);
    color: #171923;
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;
    transition: background 0.16s ease, color 0.16s ease, gap 0.24s cubic-bezier(0.2, 0, 0, 1), padding 0.24s cubic-bezier(0.2, 0, 0, 1), justify-content 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.risk-nav-link:hover {
    background: #14b8a6;
    color: #FFF;
}

.risk-nav-link.is-active {
    background: linear-gradient(90deg, #12bfa6, #f9c20b);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    color: #ffffff;
}

.risk-nav-link > span:not(.nav-icon) {
    min-width: 0;
    max-width: 154px;
    opacity: 1;
    overflow: hidden;
    transform: translateX(0);
    transition: max-width 0.24s cubic-bezier(0.2, 0, 0, 1), opacity 0.14s ease, transform 0.2s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    transform: scale(var(--nav-icon-scale, 1));
    transform-origin: center;
}

.nav-icon-add-product,
.nav-icon-overweight {
    --nav-icon-scale: 1.14;
}

.nav-icon-my-products,
.nav-icon-profile-center {
    --nav-icon-scale: 1.05;
}

.nav-icon-plugin-license,
.nav-icon-risk-violation {
    --nav-icon-scale: 0.94;
}

.nav-icon-out-of-stock,
.nav-icon-infringement {
    --nav-icon-scale: 0.9;
}

.risk-nav-link:hover .nav-icon-add-product path,
.risk-nav-link:hover .nav-icon-my-products path,
.risk-nav-link:hover .nav-icon-plugin-license path,
.risk-nav-link:hover .nav-icon-out-of-stock path,
.risk-nav-link:hover .nav-icon-overweight path,
.risk-nav-link:hover .nav-icon-infringement path,
.risk-nav-link:hover .nav-icon-risk-violation path,
.risk-nav-link:hover .nav-icon-profile-center path {
    opacity: 1;
    fill: currentColor;
    fill-opacity: 1;
}

.risk-sidebar-collapsed .risk-sidebar {
    width: var(--prl-sidebar-collapsed-width);
    padding: 12px 12px 20px;
}

.risk-sidebar-collapsed .risk-sidebar-toggle {
    right: -14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    transform: none;
}

.risk-sidebar-collapsed .risk-sidebar-toggle svg {
    transform: rotate(180deg);
}

.risk-sidebar-collapsed .brand-title {
    justify-content: center;
    padding: 0;
}

.risk-sidebar-collapsed .brand-name {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
}

.risk-sidebar-collapsed .brand-logo {
    transform: scale(1.02);
}

.risk-sidebar-collapsed .risk-nav:not(.risk-nav-bottom) {
    margin-top: 14px;
}

.risk-sidebar-collapsed .risk-nav-bottom {
    right: 12px;
    bottom: 20px;
    left: 12px;
    margin-top: 0;
}

.risk-sidebar-collapsed .risk-nav-link {
    justify-content: center;
    gap: 0;
    padding: 0;
}

.risk-sidebar-collapsed .risk-nav-link > span:not(.nav-icon) {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-6px);
    white-space: nowrap;
}

.mobile-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 62px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--prl-line);
}

.mobile-title {
    font-size: 20px;
    font-weight: 800;
}

.mobile-menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--prl-line);
    background: var(--prl-surface);
}

.mobile-menu-lines,
.mobile-menu-lines::before,
.mobile-menu-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--prl-text);
    content: "";
}

.mobile-menu-lines::before {
    transform: translateY(-6px);
}

.mobile-menu-lines::after {
    transform: translateY(4px);
}

.risk-mobile-panel {
    width: min(86vw, 320px);
}

.risk-mobile-panel .brand-title {
    height: 40px;
    max-width: none;
    padding: 0;
    font-size: 16px;
}

.risk-mobile-panel .brand-name {
    max-width: none;
}

.risk-mobile-panel .risk-nav {
    margin-top: 18px;
}

.risk-main {
    min-height: 100vh;
    margin-left: var(--prl-sidebar-width);
    padding: 10px 20px 30px;
    transition: margin-left 0.18s ease;
}

.risk-sidebar-collapsed .risk-main {
    margin-left: var(--prl-sidebar-collapsed-width);
}

.risk-access-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.access-panel {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid var(--prl-line);
    border-radius: var(--prl-radius);
    background: #ffffff;
    box-shadow: var(--prl-shadow);
    text-align: center;
}

.access-kicker {
    margin: 0 0 8px;
    color: var(--prl-blue);
    font-size: 13px;
    font-weight: 800;
}

.access-panel h1 {
    margin: 0 0 12px;
    color: var(--bs-red);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.access-text {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.7;
}

.access-meta {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--prl-line-soft);
    border-radius: 6px;
    background: #f8fafc;
}

.access-meta span {
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.access-meta strong {
    min-width: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    word-break: break-word;
}

.access-actions {
    margin-top: 22px;
}

.access-actions .btn-add-record {
    width: auto;
    min-width: 112px;
}

.access-actions .access-logout-form {
    width: auto;
}

.overview-header {
    position: static;
    display: flex;
    justify-content: end;
    margin-bottom: 22px;
}

.overview-title {
    min-width: 0;
}

.overview-kicker {
    display: block;
    margin-bottom: 2px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.eyebrow {
    color: #526071;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.overview-title h1 {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-search {
    width: min(430px, 48vw);
    min-width: 240px;
}

.search-field {
    position: relative;
}

.search-field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #8a96a8;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-field-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.overview-search .form-control {
    height: 50px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    border: none;
    -webkit-box-shadow: 1px 5px 24px 0 rgba(68, 102, 242, 0.05);
    box-shadow: 1px 5px 24px 0 rgba(68, 102, 242, 0.05);
    padding-left: 38px;
}

.overview-search .form-control:focus {border: none;
}

.btn-add-record {
    text-align: center;
    min-width: 96px;
    height: 44px;
    border: 1px solid #4ec968;
    border-radius: 7px;
    color: #ffffff;
    background: #17c0a1c2;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 5px;
    text-shadow: 1px 1px 1px #000;
    box-shadow: 0 13px 24px rgb(159 228 84 / 18%);
    line-height: 32px;
}

.btn-add-record:hover {
    color: #ffffff;
    background: #04a285;
}

.category-section {
    margin-bottom: 28px;
}

.section-heading {
    --tone-main: var(--prl-blue);
    --tone-soft: var(--prl-blue-soft);
    --tone-ink: #475569;
    --tone-border: var(--prl-line-soft);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding: 7px 8px 7px 10px;
    border-radius: var(--prl-radius);
    border: 1px solid var(--tone-border);
    background: linear-gradient(90deg, var(--tone-soft) 0%, #ffffff 54%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

#risk-category-violation .section-heading {
    --tone-main: #ff0000;
    --tone-soft: rgba(255, 0, 0, 0.12);
    --tone-ink: #ff0000;
    --tone-border: rgba(255, 0, 0, 0.28);
}

#risk-category-duanhuo .section-heading {
    --tone-main: #00ac46;
    --tone-soft: rgba(0, 172, 70, 0.12);
    --tone-ink: #008539;
    --tone-border: rgba(0, 172, 70, 0.28);
}

#risk-category-qinquan .section-heading {
    --tone-main: #ff6600;
    --tone-soft: rgba(255, 102, 0, 0.1);
    --tone-ink: #ff6600;
    --tone-border: rgba(255, 102, 0, 0.24);
}

#risk-category-chaozhong .section-heading {
    --tone-main: #ffae1a;
    --tone-soft: rgba(255, 174, 26, 0.16);
    --tone-ink: #9a5b00;
    --tone-border: rgba(255, 174, 26, 0.34);
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    min-width: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.section-count {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--tone-border, var(--prl-line));
    border-radius: 999px;
    color: var(--tone-ink, #475569);
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.section-marker {
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: var(--tone-main);
}

.btn-more {
    padding: 3px 15px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(31, 41, 55, 0.045);
}

.btn-more::after {
    margin-left: 5px;
    content: "›";
}

.btn-more:hover {
    border-color: #111827;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 8px 16px rgba(31, 41, 55, 0.08);
}

.product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e0e8f2;
    border-radius: var(--prl-radius);
    background: var(--prl-surface);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.04);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
    border-color: var(--tone-border, #cfd9e8);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.04);
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fbfcfe;
    border-bottom: 1px solid var(--prl-line-soft);
}

.product-media::after {
    content: none;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

.product-media.has-link {
    cursor: pointer;
}

.product-card:hover .product-media.has-link img,
.product-media.has-link:focus-visible img {
    transform: none;
}

.product-card:hover .product-media.has-link::after,
.product-media.has-link:focus-visible::after {
    opacity: 0;
}

.product-category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 16px);
    min-height: 25px;
    padding: 0 9px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--tone-badge-text, #ffffff);
    background: var(--tone-main, #111827);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.035);
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100%;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: all 0.3s ease;
}

.product-card:hover .product-link-overlay,
.product-media.has-link:focus-visible .product-link-overlay {
    border-radius: 0;
    opacity: 1;
    transform: scale(1);
}

.product-link-icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #59667a;
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, color 0.3s ease;
}

.product-link-icon:hover {
    background: var(--tone-main, #006666);
    color: #ffffff;
}

.product-link-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.tone-style-1,
.tone-violation {
    --tone-main: #ff0000;
    --tone-soft: rgba(255, 0, 0, 0.12);
    --tone-ink: #ff0000;
    --tone-border: rgba(255, 0, 0, 0.28);
    --tone-badge-text: #ffffff;
}

.tone-style-2,
.tone-stockout {
    --tone-main: #00ac46;
    --tone-soft: rgba(0, 172, 70, 0.12);
    --tone-ink: #008539;
    --tone-border: rgba(0, 172, 70, 0.28);
    --tone-badge-text: #ffffff;
}

.tone-style-3,
.tone-infringement {
    --tone-main: #ff6600;
    --tone-soft: rgba(255, 102, 0, 0.1);
    --tone-ink: #ff6600;
    --tone-border: rgba(255, 102, 0, 0.24);
    --tone-badge-text: #ffffff;
}

.tone-style-4,
.tone-overweight {
    --tone-main: #ffae1a;
    --tone-soft: rgba(255, 174, 26, 0.16);
    --tone-ink: #9a5b00;
    --tone-border: rgba(255, 174, 26, 0.34);
    --tone-badge-text: #ffffff;
}

.tone-style-5 {
    --tone-main: #173878;
    --tone-soft: rgba(23, 56, 120, 0.1);
    --tone-ink: #173878;
    --tone-border: rgba(23, 56, 120, 0.25);
    --tone-badge-text: #ffffff;
}

.product-body {
    display: grid;
    gap: 8px;
    padding: 12px 12px 13px;
}

.product-title-zone {
    position: relative;
    min-height: 43px;
    padding: 4px 4px 3px 12px;
}

.product-title-zone::before {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: var(--tone-main, var(--prl-blue));
    content: "";
}

.product-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #7a808f;
    padding-left: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.keyword-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    max-width: 100%;
    padding: 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    color: #3569ad;
    background: var(--prl-blue-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.keyword-chip:hover,
.keyword-chip:focus-visible {
    color: #2457a6;
    background: #e1ebff;
}

.keyword-chip.is-copied {
    color: #166534;
    background: #dcfce7;
}

.keyword-copy-hint {
    position: absolute;
    z-index: 1000;
    padding: 4px 7px;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    color: #166534;
    background: #dcfce7;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
}

.keyword-token-source {
    display: none !important;
}

.form-floating.has-keyword-tokenizer {
    display: grid;
    gap: 6px;
}

.form-floating.has-keyword-tokenizer > label {
    position: static;
    order: 1;
    width: auto;
    height: auto;
    padding: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    opacity: 1;
    transform: none;
}

.keyword-tokenizer {
    order: 2;
    display: flex;
    min-height: 42px;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid var(--prl-line);
    border-radius: 6px;
    background: #ffffff;
    cursor: text;
}

.form-floating.has-keyword-tokenizer .keyword-tokenizer {
    min-height: 56px;
}

.keyword-tokenizer:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.16);
}

.keyword-token {
    display: inline-flex;
    max-width: 100%;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    margin: 1px 0;
    padding: 0 5px 0 9px;
    border-radius: 5px;
    color: #374151;
    background: #eef2f7;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
}

.keyword-token-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-token-remove {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.keyword-token-remove:hover,
.keyword-token-remove:focus-visible {
    color: #ffffff;
    background: #6b7280;
    outline: none;
}

.keyword-token-input {
    flex: 1 1 120px;
    min-width: 92px;
    padding: 4px 2px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 14px;
}

.keyword-token-input::placeholder {
    color: #94a3b8;
}

.keyword-empty {
    color: var(--prl-muted);
    font-size: 12px;
    font-weight: 700;
}

.empty-state {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cfdae8;
    border-radius: var(--prl-radius);
    color: #64748b;
    background: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    font-weight: 700;
}

.empty-state.compact {
    min-height: 58px;
}

.submission-notice {
    padding-right: 42px;
}

.submission-notice .btn-close {
    top: 50%;
    right: 12px;
    width: 12px;
    height: 12px;
    padding: 8px;
    transform: translateY(-50%) scale(0.72);
    transform-origin: center;
}

.category-section-masonry {
    margin-bottom: 36px;
}

.masonry-grid {
    column-count: 5;
    column-gap: 16px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 16px;
    break-inside: avoid;
}

.btn-load-more {
    display: flex;
    width: min(220px, 100%);
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    border: 1px solid #c5d4ea;
    border-radius: 7px;
    color: #2457a6;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.btn-load-more:hover {
    border-color: var(--prl-blue);
    color: #ffffff;
    background: var(--prl-blue);
}

.submission-section {
    margin-top: 34px;
    padding-top: 4px;
}

.submission-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.submission-form,
.my-products-panel,
.login-panel {
    border: 1px solid #dfe6ef;
    border-radius: var(--prl-radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.045);
}

.submission-form {
    padding: 18px;
}

.submission-form .form-label {
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.submission-form .form-control,
.submission-form .form-select {
    min-height: 42px;
    border-color: var(--prl-line);
    border-radius: 6px;
    font-size: 14px;
}

.submission-form .form-floating > .form-control,
.submission-form .form-floating > .form-select {
    min-height: 56px;
    padding-top: 1.55rem;
    padding-bottom: 0.5rem;
}

.submission-form .form-floating > label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.submission-form .form-floating > .form-control:focus ~ label,
.submission-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.submission-form .form-floating > .form-select ~ label {
    color: #526071;
}

.modal-category-field .form-select {
    min-height: 56px;
    color: #334155;
    font-weight: 700;
}

.product-category-radio-group {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 7px 10px;
}

.product-category-radio-title {
    margin: 0;
    color: #64748b;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.product-category-radio-options {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
}

.product-category-radio-option {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.product-category-radio-input:checked + .product-category-radio-option {
    box-shadow: 0 5px 12px rgba(37, 99, 235, .18);
}

.upload-dropzone {
    position: relative;
    display: grid;
    min-height: 132px;
    place-items: center;
    gap: 6px;
    padding: 16px;
    overflow: hidden;
    border: 1px dashed #b9c9de;
    border-radius: var(--prl-radius);
    color: #334155;
    background: #fbfcfe;
    cursor: pointer;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: var(--prl-blue);
    background: #f2f7ff;
    box-shadow: 0 0 0 4px rgba(47, 101, 232, 0.08);
}

.upload-dropzone.has-file {
    border-style: solid;
    background: #ffffff;
}

.upload-dropzone.has-removed-image {
    border-color: #dc2626;
    background: #fff7f7;
}

.upload-dropzone.has-file .upload-icon,
.upload-dropzone.has-file .upload-title {
    display: none;
}

.upload-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--prl-blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.upload-title {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.upload-meta {
    order: 3;
    max-width: 100%;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-dropzone.has-file .upload-meta {
    order: 2;
    width: 100%;
    padding: 0 30px;
    color: #475569;
}

.upload-dropzone.has-file .upload-preview-wrap {
    order: 1;
    width: min(100%, 260px);
    height: 142px;
}

.upload-dropzone.has-file .upload-preview {
    width: 100%;
    height: 100%;
}

.upload-preview {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border: 1px solid var(--prl-line-soft);
    border-radius: 6px;
    background: #ffffff;
}

.submission-submit {
    margin-top: 16px;
}

.submission-submit:disabled,
.btn-add-record:disabled {
    opacity: 0.66;
    cursor: not-allowed;
}

.my-products-panel {
    padding: 15px;
}

.my-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.my-products-heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.my-product-list {
    display: grid;
    gap: 8px;
}

.my-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 9px 10px;
    border: 1px solid var(--prl-line-soft);
    border-radius: 6px;
    background: #fbfcfe;
}

.my-product-row strong,
.my-product-row span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-product-row strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.my-product-row span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: #eef2f7;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-publish {
    color: #166534;
    background: #dcfce7;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.login-panel p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.risk-submit-modal .modal-content,
.risk-login-modal .modal-content,
.my-products-offcanvas {
    border: 1px solid var(--prl-line);
    border-radius: var(--prl-radius);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.risk-submit-modal .modal-header,
.risk-login-modal .modal-header {
    border-bottom-color: var(--prl-line-soft);
    border-bottom: 0;
    background: linear-gradient(90deg, #12bfa6, #a8d90a);
    color: #ffffff;
}

.risk-submit-modal .modal-title,
.risk-login-modal .modal-title {
    color: #FFF;
    font-weight: 800;
}

.risk-submit-modal .modal-title {
    color: #ffffff;
}

.risk-submit-modal .modal-body {
    padding: 14px 16px 16px;
}

.submission-form.is-modal-form .form-floating > .form-control,
.submission-form.is-modal-form .form-floating > .form-select,
.submission-form.is-modal-form .modal-category-field .form-select,
.submission-form.is-modal-form .product-category-radio-group {
    min-height: 46px;
}

.submission-form.is-modal-form .form-floating > .form-control,
.submission-form.is-modal-form .form-floating > .form-select {
    padding-top: 1.2rem;
    padding-bottom: 0.25rem;
}

.submission-form.is-modal-form .form-floating.has-keyword-tokenizer .keyword-tokenizer {
    min-height: 46px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.risk-submit-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.86;
}

.risk-submit-modal .btn-close:hover,
.risk-submit-modal .btn-close:focus-visible {
    opacity: 1;
}

.risk-login-modal .modal-dialog {
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin-right: auto;
    margin-left: auto;
}

.auth-login-form {
    display: grid;
    gap: 14px;
}

.auth-login-form .form-control {
    border-color: var(--prl-line);
    border-radius: 6px;
}

.auth-login-options {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.auth-login-actions {
    display: grid;
}

.login-alert {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.access-page-form {
    margin-top: 18px;
}

.access-logout-form {
    display: inline-flex;
}

.submission-form.is-modal-form,
.login-panel.in-modal {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.modal-upload-field .form-label {
    display: block;
}

.modal-upload-field .upload-dropzone {
    min-height: 185px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.my-products-offcanvas {
    width: min(440px, 92vw);
    border-radius: 0;
}

.my-products-offcanvas .offcanvas-body {
    padding-top: 18px;
}

.my-products-heading.in-panel {
    justify-content: flex-end;
    margin-bottom: 14px;
}

@media (max-width: 1399.98px) {
    body.risk-library-theme {
        --prl-sidebar-width: 224px;
    }

    .masonry-grid {
        column-count: 4;
    }
}

@media (max-width: 991.98px) {
    .risk-main {
        margin-left: 0;
        padding: 10px 20px 30px;
    }

    .overview-header {
        position: static;
        display: grid;
        align-items: start;
    }

    .overview-search {
        width: 100%;
    }

    .overview-title h1 {
        white-space: normal;
    }

    .category-section {
        margin-bottom: 24px;
    }

    .submission-grid {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 575.98px) {
    .access-panel {
        padding: 22px;
    }

    .access-panel h1 {
        font-size: 24px;
    }

    .access-actions {
        display: grid;
    }

    .access-actions .btn-add-record {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 16px;
    }

    .section-heading {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .overview-header {
        padding: 12px;
    }

    .overview-title h1 {
        font-size: 19px;
    }

    .btn-more {
        justify-self: start;
        min-width: 66px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .category-section .row {
        --bs-gutter-x: 0;
    }

    .product-body {
        padding: 10px;
    }

    .btn-add-record {
        width: 100%;
    }

    .keyword-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .submission-form,
    .my-products-panel,
    .login-panel {
        padding: 12px;
    }

    .login-panel,
    .my-products-heading {
        display: grid;
    }

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

    .masonry-grid {
        column-count: 1;
    }

    .modal-actions {
        display: grid;
    }

    .risk-login-modal .modal-dialog {
        width: min(300px, calc(100vw - 24px));
    }

    .access-actions,
    .access-actions .access-logout-form {
        width: 100%;
    }
}
