:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #1f2430;
    --muted: #7f8696;
    --line: #e7e9ef;
    --accent: #8a4dff;
    --accent-soft: rgba(138, 77, 255, 0.12);
    --dark-card: linear-gradient(135deg, #12131a, #242533);
}

:root[data-theme="dark"] {
    --bg: #11141b;
    --card: #171c26;
    --text: #f2f5fb;
    --muted: #9da8bc;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #a97bff;
    --accent-soft: rgba(169, 123, 255, 0.18);
}

body.opc-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(138, 77, 255, 0.1), transparent 28%), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

:root[data-theme="dark"] body.opc-body {
    background: radial-gradient(circle at top, rgba(169, 123, 255, 0.14), transparent 28%), var(--bg);
}

.opc-shell {
    max-width: 1360px;
    margin: 0 auto;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    padding: 28px 24px 48px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.opc-shell-wide {
    max-width: 1480px;
}

.opc-admin-body {
    --admin-accent: #2a6df6;
    --admin-accent-strong: #1849b8;
    --admin-accent-soft: rgba(42, 109, 246, 0.12);
    --admin-surface: rgba(255, 255, 255, 0.92);
    --admin-border: rgba(132, 152, 184, 0.2);
    --admin-text: #14233d;
    --admin-muted: #6e7b91;
    background:
        radial-gradient(circle at top left, rgba(42, 109, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #f5f8fc 0%, #edf2f8 100%);
}

.opc-topbar,
.opc-brand,
.opc-top-actions,
.opc-search-form,
.opc-section-head,
.opc-meta,
.opc-user-head,
.opc-inline-form,
.opc-progress-meta,
.opc-lock-actions,
.opc-member-plan,
.opc-detail-meta {
    display: flex;
    align-items: center;
}

.opc-topbar,
.opc-section-head,
.opc-member-plan {
    justify-content: space-between;
}

.opc-brand {
    gap: 12px;
}

.opc-brand-mark,
.opc-thumb,
.opc-feature-cover,
.opc-archive-cover,
.opc-member-cover,
.opc-detail-cover,
.opc-contact-code {
    display: flex;
    align-items: center;
    justify-content: center;
}

.opc-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.opc-brand-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.opc-brand-subtitle,
.opc-muted,
.opc-meta,
.opc-detail-meta,
.opc-feature-body p,
.opc-archive-body p,
.opc-member-card p,
.opc-story p,
.opc-user-head p {
    color: var(--muted);
}

.opc-action-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
}

.opc-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding-bottom: 16px;
    background: linear-gradient(180deg, rgba(245, 246, 248, 0.96), rgba(245, 246, 248, 0.82) 72%, rgba(245, 246, 248, 0));
    backdrop-filter: blur(10px);
}

.opc-main {
    margin-top: 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 24px;
}

.opc-card,
.opc-story,
.opc-feature-card,
.opc-archive-card,
.opc-member-card,
.opc-stat-card,
.opc-tile-card {
    background: var(--card);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(23, 28, 45, 0.06);
}

.opc-card {
    padding: 24px;
    margin-bottom: 20px;
}

.opc-search-panel {
    display: flex;
    gap: 12px;
}

.opc-search-form {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 10px 12px;
}

.opc-search-form input {
    flex: 1;
    min-width: 0;
}

.opc-search-submit {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0 14px;
    font-weight: 700;
}

.opc-search-form input,
.opc-inline-form input,
.opc-inline-form select {
    border: 0;
    box-shadow: none;
}

.opc-search-form input:focus,
.opc-inline-form input:focus,
.opc-inline-form select:focus {
    box-shadow: none;
}

.opc-side-cta,
.opc-role-chip {
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 20px;
    padding: 12px 18px;
    font-weight: 700;
    min-width: 112px;
    text-align: center;
}

.opc-calendar-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.opc-date-pill {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px 0;
    text-align: center;
}

.opc-date-pill strong,
.opc-date-pill span {
    display: block;
}

.opc-date-pill.active {
    border-color: rgba(138, 77, 255, 0.4);
    background: var(--accent-soft);
    color: var(--accent);
}

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

.opc-section-head h2,
.opc-card h1,
.opc-detail h1 {
    margin-bottom: 8px;
    font-weight: 800;
}

.opc-section-head a,
.opc-list-row strong,
.opc-banner-link span {
    color: var(--muted);
}

.opc-list {
    display: grid;
    gap: 14px;
}

.opc-story {
    padding: 22px;
    display: flex;
    gap: 18px;
}

.opc-story h3,
.opc-feature-body h3,
.opc-archive-body h3,
.opc-member-card h3 {
    font-size: 22px;
    font-weight: 800;
}

.opc-thumb,
.opc-feature-cover,
.opc-archive-cover,
.opc-member-cover,
.opc-detail-cover {
    background: var(--dark-card);
    color: #fff;
    border-radius: 24px;
    min-height: 120px;
}

.opc-thumb {
    width: 140px;
    flex-shrink: 0;
}

.opc-grid {
    display: grid;
    gap: 16px;
}

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

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

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

.opc-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opc-feature-card,
.opc-archive-card,
.opc-member-card {
    overflow: hidden;
}

.opc-feature-cover,
.opc-archive-cover,
.opc-member-cover {
    min-height: 160px;
}

.opc-feature-body,
.opc-archive-body,
.opc-member-card {
    padding: 16px;
}

.opc-member-card.locked {
    opacity: 0.86;
}

.opc-inline-lock,
.opc-banner-link,
.opc-banner-link-dark,
.opc-list-row,
.opc-benefit-row,
.opc-progress-wrap,
.opc-demo-item {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.opc-inline-lock,
.opc-banner-link,
.opc-list-row,
.opc-benefit-row {
    padding: 16px 18px;
}

.opc-inline-lock,
.opc-banner-link,
.opc-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opc-inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.opc-settings-stack {
    display: grid;
    gap: 18px;
}

.opc-settings-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 20px;
    background: var(--card);
}

.opc-settings-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.opc-settings-chevron {
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
}

.opc-theme-options {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.opc-settings-panel:not(.expanded) .opc-theme-options[hidden] {
    display: none;
}

.opc-theme-option {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--card);
    color: var(--text);
    text-align: left;
    padding: 22px 24px;
    font-size: 22px;
    font-weight: 700;
    transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.opc-theme-option.active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(138, 77, 255, 0.08);
}

.opc-list-button {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    text-align: left;
}

.opc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(24, 28, 38, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}

.opc-modal-card {
    width: min(640px, 100%);
    background: var(--card);
    border-radius: 30px;
    padding: 34px 28px;
    box-shadow: 0 24px 60px rgba(17, 22, 36, 0.18);
    text-align: center;
}

.opc-modal-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 18px;
}

.opc-modal-card p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 26px;
}

.opc-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

:root[data-theme="dark"] .opc-topbar,
:root[data-theme="dark"] .opc-search-form,
:root[data-theme="dark"] .opc-inline-lock,
:root[data-theme="dark"] .opc-banner-link,
:root[data-theme="dark"] .opc-list-row,
:root[data-theme="dark"] .opc-benefit-row,
:root[data-theme="dark"] .opc-settings-panel,
:root[data-theme="dark"] .opc-theme-option {
    background: var(--card);
}

.opc-banner-link {
    background: linear-gradient(135deg, rgba(138, 77, 255, 0.12), rgba(138, 77, 255, 0.04));
    margin-top: 18px;
}

.opc-banner-link-dark {
    background: linear-gradient(135deg, rgba(31, 36, 48, 0.96), rgba(47, 54, 73, 0.96));
    color: #fff;
}

.opc-tile-card,
.opc-stat-card {
    padding: 20px;
    text-align: center;
    font-weight: 700;
}

.opc-stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.opc-stat-card strong,
.opc-price {
    font-size: 34px;
    font-weight: 800;
}

.opc-user-head {
    gap: 16px;
}

.opc-avatar {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(138, 77, 255, 0.2), rgba(255, 255, 255, 0.8));
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opc-mini-stats {
    margin-left: auto;
    text-align: center;
}

.opc-mini-stats strong,
.opc-mini-stats span {
    display: block;
}

.opc-mini-stats strong {
    font-size: 28px;
}

.opc-list-simple {
    display: grid;
    gap: 12px;
}

.opc-auth-card {
    max-width: 720px;
    margin: 24px auto;
    padding: 32px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(23, 28, 45, 0.08);
}

.opc-auth-copy {
    margin-bottom: 22px;
}

.opc-demo-box {
    margin: 22px 0;
    padding: 20px;
    border-radius: 24px;
    background: rgba(138, 77, 255, 0.06);
}

.opc-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.opc-demo-item {
    padding: 14px;
}

.opc-demo-item span,
.opc-demo-item code {
    display: block;
}

.opc-detail {
    display: grid;
    gap: 20px;
}

.opc-detail-cover {
    min-height: 260px;
    margin-top: 20px;
    font-size: 20px;
}

.opc-raw-box,
.opc-richtext {
    padding: 20px;
    border-radius: 22px;
    background: rgba(138, 77, 255, 0.08);
}

.opc-inline-form {
    gap: 12px;
}

.opc-inline-form .form-control {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.opc-inline-form.mb-3 {
    margin-bottom: 18px !important;
}

.opc-benefit-table {
    display: grid;
}

.opc-benefit-row {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-top: -1px;
}

.opc-benefit-row-head,
.opc-benefit-row-compare {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr);
    align-items: center;
    gap: 16px;
}

.opc-benefit-row-head {
    font-weight: 800;
    background: rgba(138, 77, 255, 0.06);
}

.opc-member-option {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.96));
}

.opc-member-option.active {
    border-color: rgba(138, 77, 255, 0.34);
    box-shadow: 0 18px 36px rgba(138, 77, 255, 0.08);
}

.opc-member-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.opc-member-option-head h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.opc-member-option-head span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(138, 77, 255, 0.1);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.opc-progress-wrap {
    padding: 16px;
    margin: 18px 0;
}

.opc-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #eceef4;
    overflow: hidden;
}

.opc-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7f4dff, #c16cff);
}

.opc-progress-meta {
    justify-content: space-between;
    margin-top: 10px;
}

.opc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.opc-calendar-day {
    border: 1px solid var(--line);
    border-radius: 18px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
}

.opc-calendar-day.checked {
    background: rgba(138, 77, 255, 0.12);
    color: var(--accent);
    border-color: rgba(138, 77, 255, 0.4);
}

.opc-calendar-day.today {
    box-shadow: inset 0 0 0 2px rgba(138, 77, 255, 0.36);
}

.opc-contact-code {
    min-height: 220px;
    border-radius: 28px;
    font-size: 22px;
    font-weight: 800;
    margin: 20px 0;
    background: linear-gradient(135deg, rgba(138, 77, 255, 0.12), rgba(255, 255, 255, 0.92));
}

.opc-lock-card {
    text-align: center;
}

.opc-lock-actions {
    justify-content: center;
    gap: 12px;
}

.opc-flashes {
    margin-bottom: 20px;
}

.opc-alert {
    border-radius: 16px;
    border: 0;
}

.opc-bottom-nav {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 40px rgba(23, 28, 45, 0.12);
    backdrop-filter: blur(12px);
    margin: 18px 0 28px;
}

.opc-bottom-nav-admin {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opc-nav-item-admin {
    display: block;
}

.opc-nav-item {
    padding: 12px;
    text-align: center;
    color: var(--muted);
    border-radius: 18px;
    font-weight: 700;
}

.opc-nav-item.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.opc-admin-app {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.opc-admin-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.95));
    border-right: 1px solid var(--admin-border);
    padding: 26px 18px 22px;
    display: grid;
    align-content: start;
    gap: 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scrollbar-width: thin;
    box-shadow: 14px 0 40px rgba(20, 35, 61, 0.04);
    backdrop-filter: blur(14px);
}

.opc-admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--admin-text);
    text-decoration: none;
}

.opc-admin-mobile-head {
    display: none;
}

.opc-admin-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2a6df6, #183a8f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 18px 32px rgba(42, 109, 246, 0.22);
}

.opc-admin-brand-copy {
    min-width: 0;
}

.opc-admin-brand strong,
.opc-admin-brand span {
    display: block;
}

.opc-admin-brand strong {
    font-size: 18px;
    letter-spacing: 0.01em;
}

.opc-admin-brand span {
    color: var(--admin-muted);
    font-size: 13px;
}

.opc-admin-menu {
    display: grid;
    gap: 14px;
}

.opc-admin-menu-group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(132, 152, 184, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.opc-admin-menu-title {
    padding: 2px 8px 4px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.opc-admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--admin-accent);
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.opc-admin-menu-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(42, 109, 246, 0.08);
    color: currentColor;
    flex-shrink: 0;
}

.opc-admin-menu-icon svg {
    width: 20px;
    height: 20px;
}

.opc-admin-menu-text {
    min-width: 0;
}

.opc-admin-menu-item:hover,
.opc-admin-menu-item.active {
    background: var(--admin-accent-soft);
    color: var(--admin-accent-strong);
    box-shadow: inset 0 0 0 1px rgba(42, 109, 246, 0.12);
}

.opc-admin-menu-item:hover {
    transform: translateY(-1px);
}

.opc-admin-menu-item.active .opc-admin-menu-icon {
    background: linear-gradient(135deg, rgba(42, 109, 246, 0.18), rgba(42, 109, 246, 0.06));
}

.opc-admin-sidecard {
    margin-top: 8px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(42, 109, 246, 0.12);
    background: linear-gradient(145deg, rgba(42, 109, 246, 0.12), rgba(255, 255, 255, 0.96));
}

.opc-admin-sidecard span,
.opc-admin-sidecard strong {
    display: block;
}

.opc-admin-sidecard strong {
    margin: 6px 0 10px;
    font-size: 20px;
}

.opc-admin-sidecard p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.7;
}

.opc-admin-main {
    min-width: 0;
    padding: 24px 28px 32px;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.opc-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    background: var(--admin-surface);
    box-shadow: 0 10px 24px rgba(20, 35, 61, 0.05);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 25;
}

.opc-admin-topactions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.opc-admin-topactions .opc-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border-color: rgba(42, 109, 246, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: var(--admin-text);
    font-weight: 700;
    text-decoration: none;
}

.opc-admin-topactions .opc-action-pill svg,
.opc-admin-iconbtn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.opc-admin-topactions .opc-action-pill:hover {
    background: var(--admin-accent-soft);
    color: var(--admin-accent-strong);
}

.opc-admin-welcome {
    color: var(--admin-muted);
    font-weight: 700;
}

.opc-admin-userchip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 999px;
    border: 1px solid rgba(42, 109, 246, 0.12);
    background: rgba(240, 245, 255, 0.9);
}

.opc-admin-userchip strong,
.opc-admin-userchip span {
    display: block;
    line-height: 1.2;
}

.opc-admin-userchip strong {
    color: var(--admin-text);
    font-size: 14px;
}

.opc-admin-userchip span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 700;
}

.opc-admin-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #2a6df6, #183a8f);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(42, 109, 246, 0.22);
}

.opc-admin-iconbtn,
.opc-admin-avatar-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(42, 109, 246, 0.14);
    background: rgba(255, 255, 255, 0.86);
    color: var(--admin-text);
    text-decoration: none;
}

.opc-admin-avatar-link .opc-admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 14px;
}

.opc-admin-summary-grid {
    margin-bottom: 14px;
}

.opc-admin-content {
    display: grid;
    gap: 20px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 12px;
}

.opc-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.opc-bulk-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(42, 109, 246, 0.06);
    color: var(--admin-text);
    font-weight: 700;
}

.opc-bulk-check input {
    margin: 0;
}

.opc-table-hint {
    display: none;
    margin-bottom: 10px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.opc-admin-filter-summary,
.opc-admin-pagination,
.opc-admin-pagination-actions,
.opc-admin-pagination-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opc-admin-filter-summary,
.opc-admin-pagination {
    flex-wrap: wrap;
}

.opc-admin-filter-summary {
    margin-bottom: 14px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 700;
}

.opc-admin-filter-summary span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(42, 109, 246, 0.06);
}

.opc-admin-pagination {
    justify-content: space-between;
    margin-top: 16px;
}

.opc-admin-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.opc-admin-page-jump input {
    width: 86px;
}

.opc-admin-table-wrap {
    border-radius: 22px;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    position: relative;
}

.opc-admin-data-table th,
.opc-admin-data-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.opc-admin-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

.opc-admin-data-table th:first-child,
.opc-admin-data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
}

.opc-admin-data-table th:last-child,
.opc-admin-data-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #fff;
}

.opc-admin-data-table tbody td:first-child,
.opc-admin-data-table tbody td:last-child {
    box-shadow: 0 0 0 1px rgba(231, 233, 239, 0.7);
}

.opc-home-layout,
.opc-me-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
}

.opc-home-main,
.opc-home-side,
.opc-me-main,
.opc-me-side {
    display: grid;
    gap: 20px;
}

.opc-page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.opc-overview-metrics,
.opc-action-row,
.opc-zone-meta,
.opc-status-list,
.opc-action-grid {
    display: flex;
    gap: 12px;
}

.opc-overview-metrics,
.opc-action-grid {
    flex-wrap: wrap;
}

.opc-stat-chip {
    min-width: 124px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(138, 77, 255, 0.08);
    text-align: center;
}

.opc-stat-chip strong,
.opc-stat-chip span {
    display: block;
}

.opc-stat-chip strong {
    font-size: 24px;
    font-weight: 800;
}

.opc-status-card .opc-role-chip {
    min-width: 0;
}

.opc-status-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.opc-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(31, 36, 48, 0.04);
}

.opc-action-row {
    margin-top: 18px;
    flex-wrap: wrap;
}

.opc-zone-board {
    margin-bottom: 22px;
}

.opc-zone-meta {
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.opc-zone-meta a {
    color: var(--accent);
}

.opc-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.opc-icon-tile {
    min-height: 144px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    padding: 24px 22px;
}

.opc-icon-tile-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.opc-icon-tile strong,
.opc-icon-tile small {
    display: block;
}

.opc-icon-tile strong {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.opc-icon-tile small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.opc-icon-tile-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: rgba(138, 77, 255, 0.1);
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(138, 77, 255, 0.08);
}

.opc-member-option-foot {
    margin-top: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.opc-inline-form-tight {
    gap: 8px;
    align-items: center;
}

.opc-inline-form-tight .form-control {
    min-width: 156px;
}

.opc-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.opc-toast {
    min-width: 220px;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #fff;
    background: rgba(31, 36, 48, 0.94);
    box-shadow: 0 18px 32px rgba(31, 36, 48, 0.24);
    font-weight: 700;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.opc-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.opc-toast.info {
    background: rgba(42, 109, 246, 0.96);
}

.opc-toast.success {
    background: rgba(37, 153, 94, 0.96);
}

.opc-toast.warn {
    background: rgba(224, 144, 20, 0.96);
}

.opc-toast.error {
    background: rgba(213, 66, 66, 0.96);
}

.opc-editor-form {
    margin-top: 18px;
}

.opc-editor-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.opc-editor-main,
.opc-editor-side {
    display: grid;
    gap: 18px;
}

.opc-editor-hero,
.opc-editor-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 253, 0.96));
    border: 1px solid rgba(138, 77, 255, 0.08);
    border-radius: 24px;
    padding: 20px;
}

.opc-editor-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.opc-editor-eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opc-editor-hero h2,
.opc-editor-panel h3 {
    margin-bottom: 8px;
    font-weight: 800;
}

.opc-editor-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.opc-status-pill {
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(138, 77, 255, 0.1);
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.opc-editor-slug-preview {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(31, 36, 48, 0.04);
    color: var(--muted);
}

.opc-editor-slug-preview code {
    color: var(--accent);
    font-weight: 700;
}

.opc-editor-section-head,
.opc-editor-preview-head,
.opc-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.opc-editor-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opc-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.opc-editor-textarea {
    min-height: 320px;
    border-radius: 20px;
    border: 1px solid var(--line);
    font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
    font-size: 14px;
    line-height: 1.7;
    padding: 16px 18px;
    resize: vertical;
}

.opc-editor-preview-wrap {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.opc-editor-preview-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(138, 77, 255, 0.06);
    font-weight: 700;
}

.opc-editor-preview {
    min-height: 320px;
    margin: 0;
    border-radius: 0;
    background: #fff;
}

.opc-editor-empty {
    color: var(--muted);
    margin-bottom: 0;
}

.opc-editor-panel-sticky {
    position: sticky;
    top: 18px;
}

.opc-editor-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.opc-editor-actions .btn {
    border-radius: 16px;
    min-height: 48px;
    font-weight: 700;
}

.opc-editor-tips {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(31, 36, 48, 0.04);
}

.opc-editor-tips h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
}

.opc-editor-tips ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.opc-editor-upload {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.opc-upload-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(31, 36, 48, 0.04);
    color: var(--muted);
    word-break: break-all;
}

.opc-upload-status a {
    color: var(--accent);
    font-weight: 700;
}

.opc-richtext h2,
.opc-richtext h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.opc-richtext p,
.opc-richtext li {
    line-height: 1.8;
}

.opc-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(23, 28, 45, 0.12);
}

.opc-richtext blockquote {
    margin: 1rem 0;
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: rgba(138, 77, 255, 0.08);
}

.opc-note-box {
    margin: 1rem 0;
    padding: 16px 18px;
    border: 1px solid rgba(138, 77, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(138, 77, 255, 0.1), rgba(255, 255, 255, 0.96));
}

@media (max-width: 768px) {
    .opc-shell {
        min-height: 100vh;
        height: 100vh;
        height: 100dvh;
        padding: 16px 12px 0;
    }

    .opc-brand-title {
        font-size: 24px;
    }

    .opc-search-panel,
    .opc-inline-form,
    .opc-user-head {
        flex-direction: column;
        align-items: stretch;
    }

    .opc-grid-2,
    .opc-grid-3,
    .opc-grid-4,
    .opc-action-grid {
        grid-template-columns: 1fr;
    }

    .opc-calendar-strip {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 2px 2px 8px;
        margin-bottom: 24px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .opc-calendar-strip::-webkit-scrollbar {
        display: none;
    }

    .opc-date-pill {
        flex: 0 0 82px;
        min-width: 82px;
        padding: 14px 0;
    }

    .opc-editor-shell,
    .opc-editor-grid,
    .opc-home-layout,
    .opc-me-layout {
        grid-template-columns: 1fr;
    }

    .opc-admin-app {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 100vh;
        height: 100vh;
        height: 100dvh;
    }

    .opc-admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 35;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--admin-border);
        padding: 14px 12px 12px;
        gap: 14px;
        box-shadow: 0 8px 22px rgba(20, 35, 61, 0.06);
    }

    .opc-admin-main {
        padding: 16px 12px 90px;
    }

    .opc-admin-brand,
    .opc-admin-brand-copy,
    .opc-admin-sidecard,
    .opc-admin-menu-title,
    .opc-admin-menu-text {
        display: none;
    }

    .opc-admin-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .opc-admin-mobile-head .opc-admin-brand {
        display: inline-flex;
        min-width: 0;
    }

    .opc-admin-mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .opc-admin-menu {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .opc-admin-menu::-webkit-scrollbar {
        display: none;
    }

    .opc-admin-menu-group {
        display: contents;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .opc-admin-menu-item {
        justify-content: center;
        padding: 10px;
        min-width: 58px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: inset 0 0 0 1px rgba(132, 152, 184, 0.16);
    }

    .opc-admin-menu-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .opc-admin-topbar {
        display: none;
    }

    .opc-admin-userchip {
        justify-content: flex-start;
        border-radius: 22px;
    }

    .opc-editor-hero,
    .opc-editor-section-head,
    .opc-editor-preview-head,
    .opc-page-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .opc-table-hint {
        display: block;
    }

    .opc-admin-data-table {
        min-width: 760px;
    }

    .opc-admin-data-table th:first-child,
    .opc-admin-data-table td:first-child,
    .opc-admin-data-table th:last-child,
    .opc-admin-data-table td:last-child {
        position: static;
        box-shadow: none;
    }

    .opc-editor-panel-sticky {
        position: static;
    }

    .opc-story {
        flex-direction: column;
    }

    .opc-benefit-row-head,
    .opc-benefit-row-compare {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .opc-thumb {
        width: 100%;
        min-height: 180px;
    }

    .opc-bottom-nav {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        width: min(820px, calc(100% - 24px));
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0;
    }

    .opc-bottom-nav .opc-nav-item-admin {
        display: none;
    }

    .opc-main {
        padding-bottom: 104px;
    }

    .opc-icon-tile {
        min-height: 132px;
    }

    .opc-toast-stack {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
}
