/* OrderCounter Events — styles for admin pages + public microsite.
 *
 * Builds on the existing brand tokens (--oc-orange, --oc-black, --oc-gray-*,
 * --oc-radius-*, --oc-space-*, --oc-shadow-*) declared in oc-theme.css.
 * Nothing here should hard-code colors that bypass those tokens.
 */

/* ── Admin: form grid ────────────────────────────────────────────── */

.oc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--oc-space-4, 16px) var(--oc-space-4, 16px);
}

.oc-form-grid--two {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
    .oc-form-grid,
    .oc-form-grid--two {
        grid-template-columns: 1fr;
    }
}

.oc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oc-field-label {
    font-size: 13px;
    color: var(--oc-text-muted);
    font-weight: 500;
}

.oc-field-hint {
    font-size: 12px;
    color: var(--oc-text-muted);
}

.oc-field-hint code {
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-danger);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.oc-input--textarea {
    min-height: 160px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
}

.oc-md-preview {
    background: var(--oc-gray-100, #f4f5f8);
    border-radius: var(--oc-radius-md, 12px);
    padding: 16px 20px;
    min-height: 160px;
    overflow: auto;
    line-height: 1.6;
    color: var(--oc-text);
}

.oc-md-preview p { margin: 0 0 12px; }
.oc-md-preview h1, .oc-md-preview h2, .oc-md-preview h3 { margin: 16px 0 8px; color: var(--oc-gray-900); }
.oc-md-preview a { color: var(--oc-orange, #ee572c); }

.oc-form-actions {
    display: flex;
    gap: 12px;
    margin: 16px 0 24px;
}

.oc-filterbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.oc-input--inline {
    max-width: 240px;
}

.oc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.oc-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--oc-text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--oc-gray-200, #e5e7eb);
}

.oc-table td {
    padding: 12px;
    border-bottom: 1px solid var(--oc-gray-100, #f4f5f8);
    vertical-align: top;
}

.oc-table tr:last-child td { border-bottom: 0; }

.oc-keyvalue {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.oc-keyvalue > div {
    display: flex;
    flex-direction: column;
}

/* ── Per-event shell (Backstage-style sub-nav) ──────────────────── */

.oc-event-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
}

.oc-event-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 28px;
    background: var(--oc-surface);
    border-bottom: 1px solid var(--oc-gray-200, #e5e7eb);
}

.oc-event-shell-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oc-event-shell-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.12s ease;
}

.oc-event-shell-back:hover {
    background: var(--oc-gray-200, #e5e7eb);
}

.oc-event-shell-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oc-event-shell-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--oc-text);   /* was var(--oc-black,#111418): #111418 never flips, so the event
                                title was near-black-on-dark (invisible) in dark mode. --oc-text
                                self-inverts (light ≈ same dark text, dark ≈ near-white). */
    line-height: 1.2;
}

.oc-event-shell-status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--oc-gray-200, #e5e7eb);
    color: var(--oc-text-muted);
}

.oc-event-shell-status--draft     { background: rgba(107, 114, 128, 0.12); color: var(--oc-gray-600); }
.oc-event-shell-status--published { background: var(--oc-success-bg);  color: var(--oc-success-text); }
.oc-event-shell-status--closed    { background: var(--oc-warning-bg); color: var(--oc-warning-text); }
.oc-event-shell-status--cancelled { background: var(--oc-danger-bg);  color: var(--oc-danger-text); }

.oc-event-shell-meta {
    margin-top: 4px;
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--oc-text-muted);
    flex-wrap: wrap;
}

.oc-event-shell-meta i { margin-right: 4px; opacity: 0.7; }

.oc-event-shell-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: var(--oc-orange, #ee572c);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.12s ease;
}
.oc-event-shell-cta:hover { background: var(--oc-orange-600, #d44a23); color: #fff; }
.oc-event-shell-cta--ghost {
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-text);
}
.oc-event-shell-cta--ghost:hover { background: var(--oc-gray-200, #e5e7eb); color: var(--oc-gray-900); }

.oc-event-shell-body {
    display: flex;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.oc-event-subnav {
    width: 220px;
    flex-shrink: 0;
    background: var(--oc-surface);
    border-right: 1px solid var(--oc-gray-200, #e5e7eb);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oc-event-subnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 0 4px;
    border-radius: 8px;
    color: var(--oc-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.oc-event-subnav-item i {
    width: 16px;
    text-align: center;
}

.oc-event-subnav-item:hover {
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-text);
}

.oc-event-subnav-item.active {
    background: rgba(238, 87, 44, 0.08);
    color: var(--oc-orange-text);   /* readable deep orange on the light-orange active tint */
    font-weight: 600;
}

.oc-event-subnav-badge {
    margin-left: auto;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--oc-gray-200, #e5e7eb);
    color: var(--oc-text-muted);   /* gray-500 was too dim on the dark gray-200 pill (~3.2:1); muted (gray-600) passes both modes */
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.oc-event-shell-content {
    flex: 1;
    padding: 24px 28px 48px;
    overflow-y: auto;
    min-width: 0;
}

.oc-event-loading {
    padding: 64px 0;
    text-align: center;
    color: var(--oc-text-muted);
}

/* ── Dashboard tiles ────────────────────────────────────────────── */

.oc-dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.oc-dashboard-tile {
    background: var(--oc-surface);
    border-radius: var(--oc-radius-md, 12px);
    padding: 18px 20px;
    box-shadow: var(--oc-shadow-md, 0 6px 18px rgba(17, 20, 24, 0.06));
    display: flex;
    align-items: center;
    gap: 14px;
}

.oc-dashboard-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.oc-dashboard-tile-icon--money  { background: rgba(245, 158, 11, 0.14); color: var(--oc-amber-700); }
.oc-dashboard-tile-icon--people { background: rgba(238, 87, 44, 0.14); color: var(--oc-orange, #ee572c); }
.oc-dashboard-tile-icon--check  { background: rgba(22, 163, 74, 0.14); color: var(--oc-emerald-600); }

.oc-dashboard-tile-label {
    font-size: 13px;
    color: var(--oc-text-muted);
    font-weight: 500;
}

.oc-dashboard-tile-value {
    font-size: 26px;
    color: var(--oc-text);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2px;
}

.oc-dashboard-tile-value-sub {
    font-size: 14px;
    color: var(--oc-text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.oc-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 20px;
}

@media (max-width: 960px) {
    .oc-dashboard-row { grid-template-columns: 1fr; }
}

.oc-dashboard-card {
    background: var(--oc-surface);
    border-radius: var(--oc-radius-md, 12px);
    padding: 20px 22px;
    box-shadow: var(--oc-shadow-md, 0 6px 18px rgba(17, 20, 24, 0.06));
    margin: 0 0 20px;
}

.oc-dashboard-card header {
    margin: 0 0 14px;
}

.oc-dashboard-card header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--oc-gray-900);
}

.oc-dashboard-card header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--oc-gray-500);
}

.oc-dashboard-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.oc-dashboard-empty {
    text-align: center;
    padding: 32px 0;
    color: var(--oc-text-muted);
}

.oc-dashboard-empty p { margin: 8px 0; }

.oc-link {
    color: var(--oc-orange-text);   /* readable deep-orange link (was bright #ee572c → ~3.5:1 on white) */
    text-decoration: none;
    font-weight: 500;
}
.oc-link:hover { text-decoration: underline; }

/* Quick actions grid */
.oc-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.oc-quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-text);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: background-color 0.12s ease, transform 0.06s ease;
}

.oc-quick-action i { font-size: 18px; color: var(--oc-orange, #ee572c); }
.oc-quick-action:hover { background: var(--oc-gray-200, #e5e7eb); transform: translateY(-1px); }

.oc-quick-action--disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: auto;
    color: var(--oc-text-muted);
}

.oc-quick-action--disabled:hover { transform: none; background: var(--oc-gray-100, #f4f5f8); }

.oc-quick-action-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--oc-gray-200, #e5e7eb);
    color: var(--oc-text-muted);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Donut */
.oc-donut-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.oc-donut {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    transform: rotate(-90deg);
}

.oc-donut-center {
    fill: var(--oc-black, #111418);
    font-size: 7px;
    font-weight: 700;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: 21px 21px;
}

.oc-donut-center-sub {
    fill: var(--oc-gray-500, #6b7280);
    font-size: 3px;
    font-weight: 500;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: 21px 21px;
}

.oc-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--oc-text-muted);
}

.oc-donut-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oc-donut-legend strong {
    color: var(--oc-gray-900);
    margin-left: auto;
}

.oc-donut-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

/* Event Numbers grid */
.oc-event-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.oc-number-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    background: var(--oc-gray-100, #f4f5f8);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--oc-text);
    transition: background-color 0.12s ease;
}

a.oc-number-tile:hover { background: var(--oc-gray-200, #e5e7eb); }

.oc-number-tile-icon {
    font-size: 18px;
    color: var(--oc-orange, #ee572c);
}

.oc-number-tile-label {
    font-size: 11px;
    color: var(--oc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.oc-number-tile-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--oc-gray-900);
}

/* Website preview card */
.oc-website-preview {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.oc-website-preview-frame {
    flex: 1;
    border: 1px solid var(--oc-gray-200, #e5e7eb);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--oc-gray-100, #f4f5f8);
    position: relative;
    min-height: 130px;
}

.oc-website-preview-banner {
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: var(--oc-gray-200, #e5e7eb);
    margin: 0 0 8px;
}

.oc-website-preview-name {
    font-weight: 600;
    color: var(--oc-gray-900);
    margin-bottom: 4px;
}

.oc-website-preview-meta {
    font-size: 12px;
    color: var(--oc-text-muted);
}

.oc-website-preview-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.oc-website-preview-pill--draft     { background: rgba(107,114,128,0.18); color: var(--oc-gray-600); }
.oc-website-preview-pill--published { background: var(--oc-success-bg); color: var(--oc-success-text); }
.oc-website-preview-pill--closed    { background: var(--oc-warning-bg); color: var(--oc-warning-text); }
.oc-website-preview-pill--cancelled { background: var(--oc-danger-bg);  color: var(--oc-danger-text); }

.oc-website-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
}

/* Pills for registration status */
.oc-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.oc-pill--published { background: var(--oc-success-bg); color: var(--oc-success-text); }
.oc-pill--info      { background: var(--oc-info-bg);    color: var(--oc-info-text); }
.oc-pill--warning   { background: var(--oc-warning-bg); color: var(--oc-warning-text); }
.oc-pill--neutral   { background: var(--oc-neutral-bg); color: var(--oc-neutral-text); }
.oc-pill--cancelled { background: var(--oc-danger-bg);  color: var(--oc-danger-text); }

/* Mini progress bar for ticket sold/capacity */
.oc-mini-bar {
    height: 4px;
    background: var(--oc-gray-200, #e5e7eb);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
    max-width: 160px;
}
.oc-mini-bar-fill {
    height: 100%;
    background: var(--oc-orange, #ee572c);
}

/* Clickable rows */
.oc-table--clickable tbody tr { cursor: pointer; }
.oc-table--clickable tbody tr:hover { background: var(--oc-gray-100, #f4f5f8); }

/* Icon button */
.oc-icon-btn {
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--oc-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.oc-icon-btn:hover { background: var(--oc-gray-100, #f4f5f8); color: var(--oc-gray-900); }

/* Drawer (slides in from right; used for ticket-type editor) */
.oc-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 20, 24, 0.32);
    z-index: 200;
    animation: oc-fade-in 0.16s ease;
}

@keyframes oc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.oc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 96vw);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow-lg);
    z-index: 201;
    display: flex;
    flex-direction: column;
    animation: oc-slide-in 0.2s ease;
}

@keyframes oc-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* Phone: fill the screen and scroll internally. At ~390px the desktop
   min(520px, 96vw) leaves a 374px box the crawler flags as overflowing, and if an
   event-shell ancestor forms a containing block the fixed drawer loses its viewport
   height so .oc-drawer-body (flex:1; overflow-y:auto) has no bounded height to
   scroll. Pinning width/height to the small-viewport box fixes both: the header +
   footer stay put and the body scrolls. */
@media (max-width: 768px) {
    .oc-drawer {
        /* Override the base top:0/bottom:0 anchoring. If an event-shell ancestor forms
           a containing block, top+bottom size the drawer to the ANCESTOR (taller than the
           screen) so the body never gets a bounded height to scroll. Pin height to the
           small-viewport unit and drop the bottom anchor so height wins → body scrolls.
           left:0/right:auto + width just under 100vw keeps the box inside the viewport
           (the crawler flags width >= viewport). */
        left: 0;
        right: auto;
        top: 0;
        bottom: auto;
        width: calc(100vw - 2px);
        max-width: calc(100vw - 2px);
        height: 100vh;   /* fallback for WebKit without svh support */
        height: 100svh;
        max-height: 100svh;
        /* No slide-in on phone: the translateX(100%→0) entry transiently pushes the box
           off the right edge (a false overlay-overflow) and leaves the scroll state
           unsettled while animating (a false overlay-no-scroll). Appear in place instead. */
        animation: none;
        /* Make the DRAWER itself the scroll container. Per-page drawer bodies vary (some
           use .oc-drawer-body, others a bare form/div), and a flex child's default
           min-height:auto refuses to shrink — so its content pushes the drawer past 100svh
           with nothing scrolling. Scrolling the whole drawer works regardless of inner
           markup and always leaves a working scroll region. */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .oc-drawer-body { min-height: 0; }
}

.oc-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--oc-gray-200, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.oc-drawer-eyebrow {
    font-size: 11px;
    color: var(--oc-orange, #ee572c);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 4px;
}

.oc-drawer-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--oc-gray-900);
}

.oc-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.oc-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--oc-gray-200, #e5e7eb);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--oc-gray-100, #f4f5f8);
}

/* Settings page row */
.oc-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.oc-settings-row + .oc-settings-row {
    border-top: 1px solid var(--oc-gray-100, #f4f5f8);
    padding-top: 16px;
    margin-top: 8px;
}

.oc-settings-row-title {
    font-weight: 500;
    color: var(--oc-gray-900);
    margin-bottom: 4px;
}

.oc-settings-row-desc {
    font-size: 13px;
    color: var(--oc-text-muted);
    max-width: 640px;
}

.oc-settings-row--danger .oc-settings-row-title { color: var(--oc-danger); }

/* ── Sponsors (admin) ───────────────────────────────────────────── */

.oc-sponsors-tier-group + .oc-sponsors-tier-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--oc-gray-100, #f4f5f8);
}

.oc-sponsors-tier-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.oc-sponsors-tier-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--oc-gray-200, #e5e7eb);
    color: var(--oc-text-muted);
}

.oc-sponsors-tier-pill--platinum  { background: linear-gradient(135deg, #e5e4e2, #c8c8c8); color: #3a3a3a; }
.oc-sponsors-tier-pill--gold      { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; }
.oc-sponsors-tier-pill--silver    { background: linear-gradient(135deg, var(--oc-gray-300), var(--oc-gray-400)); color: var(--oc-gray-800); }
.oc-sponsors-tier-pill--bronze    { background: linear-gradient(135deg, #fed7aa, #b45309); color: #5a2a06; }
.oc-sponsors-tier-pill--community { background: rgba(238, 87, 44, 0.12); color: var(--oc-amber-700); }

.oc-sponsors-tier-count {
    font-size: 12px;
    color: var(--oc-text-muted);
    font-weight: 500;
}

.oc-sponsors-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.oc-sponsor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--oc-gray-100, #f4f5f8);
    border-radius: var(--oc-radius-md, 12px);
    cursor: pointer;
    transition: background-color 0.12s ease;
    position: relative;
}

.oc-sponsor-card:hover {
    background: var(--oc-gray-200, #e5e7eb);
}

.oc-sponsor-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--oc-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--oc-text-muted);
    font-size: 20px;
}

.oc-sponsor-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.oc-sponsor-card-body {
    flex: 1;
    min-width: 0;
}

.oc-sponsor-card-name {
    font-weight: 600;
    color: var(--oc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-sponsor-card-url {
    font-size: 12px;
    color: var(--oc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sponsors (public microsite) ────────────────────────────────── */

.oc-public-sponsors-tier {
    margin: 0 0 24px;
}

.oc-public-sponsors-tier-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--oc-text-muted);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--oc-gray-200, #e5e7eb);
}

.oc-public-sponsors-tier--platinum  .oc-public-sponsors-tier-label { color: #3a3a3a; }
.oc-public-sponsors-tier--gold      .oc-public-sponsors-tier-label { color: var(--oc-amber-700); }
.oc-public-sponsors-tier--silver    .oc-public-sponsors-tier-label { color: var(--oc-gray-600); }

.oc-public-sponsors-tier-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.oc-public-sponsor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--oc-surface);
    border-radius: var(--oc-radius-md, 12px);
    text-decoration: none;
    color: var(--oc-text);
    border: 1px solid var(--oc-gray-200, #e5e7eb);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    overflow: hidden;
}

.oc-public-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: var(--oc-shadow-md, 0 6px 18px rgba(17, 20, 24, 0.08));
}

.oc-public-sponsors-tier--platinum .oc-public-sponsor { width: 200px; height: 100px; padding: 14px; }
.oc-public-sponsors-tier--gold     .oc-public-sponsor { width: 160px; height: 82px;  padding: 12px; }
.oc-public-sponsors-tier--silver   .oc-public-sponsor { width: 130px; height: 68px;  padding: 10px; }
.oc-public-sponsors-tier--bronze   .oc-public-sponsor { width: 110px; height: 58px;  padding: 8px; }
.oc-public-sponsors-tier--community .oc-public-sponsor { padding: 8px 14px; font-size: 13px; font-weight: 600; }

.oc-public-sponsor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.oc-public-sponsor-fallback {
    font-weight: 600;
    text-align: center;
    padding: 8px;
    font-size: 13px;
}

/* ── Speakers (admin) ───────────────────────────────────────────── */

.oc-speakers-role-group + .oc-speakers-role-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--oc-gray-100, #f4f5f8);
}

.oc-speakers-role-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.oc-speakers-role-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.oc-speakers-role-pill--keynote  { background: rgba(238, 87, 44, 0.16); color: var(--oc-orange, #ee572c); }
.oc-speakers-role-pill--host     { background: rgba(245, 158, 11, 0.16); color: var(--oc-amber-700); }
.oc-speakers-role-pill--speaker  { background: rgba(59, 130, 246, 0.16); color: var(--oc-info-text); }
.oc-speakers-role-pill--panelist { background: rgba(168, 85, 247, 0.16); color: #6d28d9; }
.oc-speakers-role-pill--workshop { background: rgba(22, 163, 74, 0.16); color: var(--oc-emerald-600); }

.oc-speakers-role-count {
    font-size: 12px;
    color: var(--oc-text-muted);
    font-weight: 500;
}

.oc-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.oc-speaker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--oc-gray-100, #f4f5f8);
    border-radius: var(--oc-radius-md, 12px);
    cursor: pointer;
    transition: background-color 0.12s ease;
    position: relative;
}

.oc-speaker-card:hover { background: var(--oc-gray-200, #e5e7eb); }

.oc-speaker-card-photo {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--oc-orange, #ee572c);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.oc-speaker-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-speaker-card-body {
    flex: 1;
    min-width: 0;
}

.oc-speaker-card-name {
    font-weight: 600;
    color: var(--oc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-speaker-card-title {
    font-size: 12px;
    color: var(--oc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-speaker-card-socials {
    margin-top: 4px;
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--oc-text-muted);
}

/* ── Speakers (public microsite) ────────────────────────────────── */

.oc-public-speakers-group {
    margin: 0 0 24px;
}

.oc-public-speakers-role-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--oc-text-muted);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--oc-gray-200, #e5e7eb);
}

.oc-public-speakers-group--keynote .oc-public-speakers-role-label { color: var(--oc-orange, #ee572c); }

.oc-public-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.oc-public-speakers-group--keynote .oc-public-speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.oc-public-speaker {
    background: var(--oc-surface);
    border: 1px solid var(--oc-gray-200, #e5e7eb);
    border-radius: var(--oc-radius-md, 12px);
    padding: 18px 18px 16px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.oc-public-speaker:hover {
    transform: translateY(-2px);
    box-shadow: var(--oc-shadow-md, 0 6px 18px rgba(17, 20, 24, 0.06));
}

.oc-public-speaker-photo {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: var(--oc-orange, #ee572c);
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    overflow: hidden;
}

.oc-public-speakers-group--keynote .oc-public-speaker-photo {
    width: 128px;
    height: 128px;
    font-size: 36px;
}

.oc-public-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-public-speaker-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--oc-text);
    margin: 0 0 2px;
}

.oc-public-speakers-group--keynote .oc-public-speaker-name { font-size: 20px; }

.oc-public-speaker-title {
    font-size: 13px;
    color: var(--oc-text-muted);
    margin: 0 0 8px;
}

.oc-public-speaker-bio {
    font-size: 13px;
    color: var(--oc-text);
    line-height: 1.55;
}

.oc-public-speaker-bio p { margin: 0 0 8px; }

.oc-public-speaker-socials {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.oc-public-speaker-socials a {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.oc-public-speaker-socials a:hover {
    background: var(--oc-orange, #ee572c);
    color: #fff;
}

/* ── Promo Codes (admin) ────────────────────────────────────────── */

.oc-promo-code-cell {
    background: var(--oc-gray-100, #f4f5f8);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--oc-orange, #ee572c);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.oc-input--code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ── Promo Codes (public microsite) ─────────────────────────────── */

.oc-promo-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.oc-promo-row-input {
    flex: 1;
    min-width: 0;
}

.oc-promo-input {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.oc-promo-apply {
    background: var(--oc-black, #111418);
    color: #fff;
    border: 0;
    border-radius: var(--oc-radius-sm, 8px);
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    height: 42px;
    white-space: nowrap;
    transition: background-color 0.12s ease;
}

.oc-promo-apply:hover:not(:disabled) { background: var(--oc-gray-800); }
.oc-promo-apply:disabled { background: var(--oc-gray-500, #6b7280); cursor: wait; }

.oc-promo-applied {
    background: var(--oc-success-bg);
    border: 1px solid rgba(22, 163, 74, 0.30);
    color: var(--oc-success-text);
    padding: 10px 14px;
    border-radius: var(--oc-radius-sm, 8px);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oc-promo-applied strong { color: var(--oc-success-text); }

.oc-promo-invalid {
    background: var(--oc-danger-bg);
    border: 1px solid rgba(220, 38, 38, 0.24);
    color: var(--oc-danger-text);
    padding: 10px 14px;
    border-radius: var(--oc-radius-sm, 8px);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oc-keyvalue dt {
    font-size: 12px;
    color: var(--oc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.oc-keyvalue dd {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--oc-text);
    word-break: break-word;
}

/* ── Public microsite ─────────────────────────────────────────────── */

.oc-public-event-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--oc-gray-100, #f4f5f8);
    color: var(--oc-text);
    font-family: var(--oc-font-sans, Inter, sans-serif);
}

.oc-public-event-topbar {
    background: var(--oc-surface);
    border-bottom: 1px solid var(--oc-gray-200, #e5e7eb);
    padding: 14px 24px;
}

.oc-public-event-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.oc-public-event-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--oc-orange, #ee572c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.oc-public-event-brand-name {
    font-weight: 600;
    font-size: 14px;
}

.oc-public-event-main {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.oc-public-event-loading {
    text-align: center;
    color: var(--oc-text-muted);
    padding: 64px 0;
}

.oc-public-event-banner {
    width: 100%;
    aspect-ratio: 16 / 6;
    border-radius: var(--oc-radius-lg, 16px);
    background-size: cover;
    background-position: center;
    background-color: var(--oc-gray-200, #e5e7eb);
    margin: 0 0 24px;
    box-shadow: var(--oc-shadow-md, 0 6px 18px rgba(17, 20, 24, 0.06));
}

.oc-public-event-card {
    background: var(--oc-surface);
    border-radius: var(--oc-radius-lg, 16px);
    box-shadow: var(--oc-shadow-md, 0 6px 18px rgba(17, 20, 24, 0.06));
    padding: 40px;
}

.oc-public-event-card.oc-public-event-notfound {
    text-align: center;
    color: var(--oc-text-muted);
}

.oc-public-event-eyebrow {
    color: var(--oc-orange, #ee572c);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin: 0 0 8px;
}

.oc-public-event-title {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 1.15;
    color: var(--oc-text);
    font-weight: 700;
}

.oc-public-event-when {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--oc-gray-100, #f4f5f8);
    border-radius: var(--oc-radius-md, 12px);
    padding: 20px 24px;
    margin: 0 0 28px;
}

.oc-public-event-when-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.oc-public-event-when-icon {
    font-size: 20px;
    line-height: 1.1;
}

.oc-public-event-when-local {
    font-size: 13px;
    color: var(--oc-text-muted);
    margin-top: 4px;
}

.oc-public-event-section {
    margin: 32px 0 0;
}

.oc-public-event-section h2 {
    font-size: 18px;
    color: var(--oc-gray-900);
    margin: 0 0 16px;
    font-weight: 600;
}

.oc-md-rendered { line-height: 1.7; color: var(--oc-gray-900); }
.oc-md-rendered p { margin: 0 0 14px; }
.oc-md-rendered a { color: var(--oc-orange, #ee572c); }
.oc-md-rendered h1, .oc-md-rendered h2, .oc-md-rendered h3 { margin: 20px 0 10px; font-weight: 600; }
.oc-md-rendered ul, .oc-md-rendered ol { margin: 0 0 14px 24px; }

.oc-public-event-tickets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.oc-public-event-ticket {
    appearance: none;
    text-align: left;
    background: var(--oc-surface);
    border: 2px solid var(--oc-gray-200, #e5e7eb);
    border-radius: var(--oc-radius-md, 12px);
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
    font: inherit;
}

.oc-public-event-ticket:hover:not(:disabled) {
    border-color: var(--oc-orange, #ee572c);
}

.oc-public-event-ticket--active {
    border-color: var(--oc-orange, #ee572c);
    box-shadow: 0 0 0 3px rgba(238, 87, 44, 0.16);
}

.oc-public-event-ticket--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.oc-public-event-ticket-name {
    font-weight: 600;
    color: var(--oc-gray-900);
    margin: 0 0 6px;
}

.oc-public-event-ticket-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--oc-orange, #ee572c);
}

.oc-public-event-ticket-status {
    font-size: 12px;
    color: var(--oc-text-muted);
    margin-top: 6px;
}

.oc-public-event-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0 0;
}

.oc-public-event-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--oc-text-muted);
}

.oc-public-event-form input[type="text"],
.oc-public-event-form input[type="email"] {
    border: 1px solid var(--oc-gray-200, #e5e7eb);
    border-radius: var(--oc-radius-sm, 8px);
    padding: 10px 12px;
    font: inherit;
    color: var(--oc-gray-900);
    background: var(--oc-surface);
}

.oc-public-event-form input:focus {
    outline: none;
    border-color: var(--oc-orange, #ee572c);
    box-shadow: 0 0 0 3px rgba(238, 87, 44, 0.16);
}

.oc-public-event-form-full {
    grid-column: 1 / -1;
}

.oc-public-event-consent {
    grid-column: 1 / -1;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--oc-gray-900);
}

.oc-public-event-consent input { margin-top: 3px; }
.oc-public-event-consent a { color: var(--oc-orange, #ee572c); }

.oc-public-event-error {
    grid-column: 1 / -1;
    background: var(--oc-danger-bg);
    color: var(--oc-danger-text);
    border-radius: var(--oc-radius-sm, 8px);
    padding: 10px 14px;
    font-size: 13px;
}

.oc-public-event-cta {
    grid-column: 1 / -1;
    background: var(--oc-orange, #ee572c);
    color: #fff;
    border: 0;
    border-radius: var(--oc-radius-md, 12px);
    padding: 14px 20px;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.oc-public-event-cta:hover:not(:disabled) {
    background: var(--oc-orange-600, #d44a23);
}

.oc-public-event-cta:disabled {
    background: var(--oc-gray-500, #6b7280);
    cursor: not-allowed;
}

.oc-public-event-success {
    background: var(--oc-gray-100, #f4f5f8);
    border-radius: var(--oc-radius-md, 12px);
    padding: 32px;
    text-align: center;
}

.oc-public-event-success-mark {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-public-event-success h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--oc-gray-900);
}

.oc-public-event-pay-frame {
    width: 100%;
    min-height: 520px;
    border: 0;
    border-radius: var(--oc-radius-md, 12px);
    background: var(--oc-surface);
    margin-top: 16px;
}

.oc-public-event-footer {
    text-align: center;
    color: var(--oc-text-muted);
    font-size: 13px;
    padding: 24px;
}

.oc-public-event-footer a {
    color: var(--oc-gray-500);
    text-decoration: none;
}

.oc-public-event-footer a:hover { color: var(--oc-orange, #ee572c); }
.oc-public-event-footer-sep { margin: 0 8px; opacity: 0.6; }

@media (max-width: 640px) {
    .oc-public-event-card { padding: 24px; }
    .oc-public-event-title { font-size: 28px; }
    .oc-public-event-form { grid-template-columns: 1fr; }
}
