/* ============================================================================
   Smart Cool Tech - Project Onboarding Wizard v2 (Visual Polish & Micro-Motion)
   ============================================================================ */

:root {
    --ob-bg: #f4f7fb;
    --ob-surface: rgba(255, 255, 255, 0.94);
    --ob-surface-solid: #ffffff;
    --ob-border: #e2e8f0;
    --ob-border-strong: #cbd5e1;
    --ob-text: #0f172a;
    --ob-muted: #475569;
    --ob-subtle: #64748b;
    --ob-primary: #2563eb;
    --ob-primary-hover: #1d4ed8;
    --ob-primary-soft: #eff6ff;
    --ob-emerald: #059669;
    --ob-emerald-soft: #ecfdf5;
    --ob-amber: #b45309;
    --ob-amber-soft: #fffbeb;
    --ob-danger: #dc2626;
    --ob-danger-soft: #fef2f2;
    --ob-radius-xl: 24px;
    --ob-radius-md: 14px;
    --ob-radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--ob-bg);
    color: var(--ob-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Soft ambient glow background */
.ob-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(640px 360px at 8% -6%, rgba(37, 99, 235, 0.12), transparent 65%),
        radial-gradient(620px 380px at 94% 12%, rgba(16, 185, 129, 0.11), transparent 64%),
        radial-gradient(560px 320px at 50% 108%, rgba(99, 102, 241, 0.08), transparent 68%),
        linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.ob-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 80%);
}

/* Top bar */
.ob-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.ob-topbar-inner {
    max-width: 820px;
    margin: 0 auto;
    height: 62px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ob-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ob-text);
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.ob-brand-logo {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.ob-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ob-chip-btn {
    appearance: none;
    border: 1px solid var(--ob-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ob-muted);
    font-size: 0.79rem;
    font-weight: 600;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.ob-chip-btn:hover {
    border-color: #93c5fd;
    color: var(--ob-primary);
    background: #ffffff;
}

.ob-lang-group {
    display: inline-flex;
    border: 1px solid var(--ob-border);
    border-radius: 999px;
    background: #f1f5f9;
    padding: 2px;
}

.ob-lang-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--ob-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ob-lang-btn.active {
    background: #ffffff;
    color: var(--ob-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* Progress track */
.ob-progress-track {
    height: 3px;
    width: 100%;
    background: rgba(226, 232, 240, 0.75);
    overflow: hidden;
}

.ob-progress-fill {
    height: 100%;
    width: 14%;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 50%, #10b981 100%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main workspace */
.ob-main {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 1.35rem 1rem 6.8rem;
}

/* Visual Stepper + Live Sheet Counter Bar */
.ob-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ob-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ob-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--ob-border-strong);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ob-subtle);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ob-step-dot.active {
    border-color: var(--ob-primary);
    background: var(--ob-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
    transform: scale(1.06);
}

.ob-step-dot.done {
    border-color: var(--ob-emerald);
    background: var(--ob-emerald-soft);
    color: var(--ob-emerald);
    cursor: pointer;
}

.ob-step-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--ob-subtle);
}

.ob-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.22s ease;
}

.ob-live-pill.pulse {
    animation: obPulsePop 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes obPulsePop {
    0% { transform: scale(1); }
    45% { transform: scale(1.09); }
    100% { transform: scale(1); }
}

/* Main glass card */
.ob-card {
    background: var(--ob-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 20px 44px -14px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.03),
        0 0 0 1px rgba(226, 232, 240, 0.9);
    border-radius: var(--ob-radius-xl);
    padding: clamp(1.4rem, 3.6vw, 2.35rem);
}

/* Smooth step transitions */
.ob-step-pane {
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

.ob-step-pane.anim-next {
    animation-name: obSlideNext;
}

.ob-step-pane.anim-prev {
    animation-name: obSlidePrev;
}

@keyframes obSlideNext {
    from { opacity: 0; transform: translateX(22px) scale(0.992); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes obSlidePrev {
    from { opacity: 0; transform: translateX(-22px) scale(0.992); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ob-step-pane,
    .ob-live-pill.pulse { animation: none !important; }
    .ob-progress-fill,
    .ob-option { transition: none !important; }
}

.ob-step-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ob-primary);
    margin-bottom: 0.35rem;
}

.ob-title {
    font-size: clamp(1.36rem, 3.6vw, 1.78rem);
    font-weight: 800;
    letter-spacing: -0.028em;
    color: var(--ob-text);
    margin-bottom: 0.42rem;
}

.ob-subtitle {
    font-size: 0.94rem;
    color: var(--ob-muted);
    margin-bottom: 1.55rem;
}

/* Strict-alignment field groups */
.ob-field-group {
    margin-bottom: 1.38rem;
}

.ob-field-group:last-child {
    margin-bottom: 0;
}

.ob-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--ob-text);
    margin-bottom: 0.5rem;
}

.ob-help {
    font-size: 0.78rem;
    color: var(--ob-subtle);
    margin-top: 0.36rem;
    line-height: 1.4;
}

.ob-req {
    color: var(--ob-danger);
    font-weight: 700;
}

/* Strictly aligned 2-column grid */
.ob-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: start;
}

.ob-field-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 620px) {
    .ob-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ob-input,
.ob-textarea {
    width: 100%;
    height: 46px;
    padding: 0 0.9rem;
    font-size: 16px; /* Prevents iOS zoom */
    font-family: inherit;
    color: var(--ob-text);
    background: #ffffff;
    border: 1.5px solid var(--ob-border);
    border-radius: var(--ob-radius-sm);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ob-textarea {
    height: auto;
    min-height: 88px;
    padding: 0.72rem 0.9rem;
    resize: vertical;
}

.ob-input:focus,
.ob-textarea:focus {
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}

.ob-input-error,
.ob-input-unit.ob-input-error {
    border-color: var(--ob-danger) !important;
    background: #fffafa !important;
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12) !important;
}

/* Combined Numeric Input + Unit Selector */
.ob-input-unit {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--ob-border);
    border-radius: var(--ob-radius-sm);
    background: #ffffff;
    overflow: hidden;
    height: 46px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ob-input-unit:focus-within {
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}

.ob-input-unit input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 0.85rem;
    font-size: 16px;
    font-family: inherit;
    color: var(--ob-text);
    background: transparent;
}

.ob-unit-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    gap: 2px;
    border-left: 1px solid var(--ob-border);
    flex-shrink: 0;
}

.ob-unit-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--ob-subtle);
    font-size: 0.77rem;
    font-weight: 600;
    padding: 0 0.56rem;
    height: 100%;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ob-unit-btn.active {
    background: #ffffff;
    color: var(--ob-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Equal-height interactive option cards */
.ob-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    align-items: stretch;
}

.ob-options.cols-1 {
    grid-template-columns: 1fr;
}

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

@media (max-width: 620px) {
    .ob-options,
    .ob-options.cols-3 {
        grid-template-columns: 1fr;
    }
    .ob-options.mobile-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ob-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.72rem;
    width: 100%;
    height: 100%;
    text-align: left;
    padding: 0.88rem 0.96rem;
    min-height: 56px;
    border: 1.5px solid var(--ob-border);
    border-radius: var(--ob-radius-md);
    background: #ffffff;
    color: var(--ob-text);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
    font-family: inherit;
}

.ob-option:hover {
    border-color: #93c5fd;
    background: #fafdff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.14);
}

.ob-option:active {
    transform: scale(0.985);
}

.ob-option.selected {
    border-color: var(--ob-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #f5f9ff 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 8px 18px -8px rgba(37, 99, 235, 0.22);
}

.ob-option-indicator {
    flex: 0 0 19px;
    height: 19px;
    margin-top: 2px;
    border-radius: 999px;
    border: 1.5px solid var(--ob-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.18s ease;
}

.ob-option[data-mode="multi"] .ob-option-indicator {
    border-radius: 6px;
}

.ob-option.selected .ob-option-indicator {
    border-color: var(--ob-primary);
    background: var(--ob-primary);
}

.ob-option.selected .ob-option-indicator::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
}

.ob-option[data-mode="multi"].selected .ob-option-indicator::after {
    width: 9px;
    height: 5px;
    border-radius: 0;
    background: transparent;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.ob-option-body {
    flex: 1;
    min-width: 0;
}

.ob-option-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ob-option-title {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ob-text);
}

.ob-badge-rec {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

.ob-option-desc {
    font-size: 0.8rem;
    color: var(--ob-subtle);
    display: block;
    margin-top: 0.22rem;
    line-height: 1.45;
}

/* Comparison cards (Step 6 Cloud vs On-Prem) */
.ob-compare-list {
    list-style: none;
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.81rem;
    color: var(--ob-muted);
}

.ob-compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.ob-pro-dot {
    color: var(--ob-emerald);
    font-weight: 800;
}

.ob-con-dot {
    color: var(--ob-amber);
    font-weight: 800;
}

/* Conditional expanded subpanel */
.ob-subpanel {
    margin-top: 1rem;
    padding: 1.05rem 1.15rem;
    border-radius: var(--ob-radius-md);
    border: 1px dashed #93c5fd;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
    animation: obSlideNext 0.25s ease both;
}

.ob-subpanel-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ob-primary);
    margin-bottom: 0.85rem;
}

/* Binary Yes/No Telemetry Completeness Matrix */
.ob-matrix-group {
    margin-bottom: 0.95rem;
}

.ob-matrix-group:last-child {
    margin-bottom: 0;
}

.ob-matrix-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ob-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.ob-matrix {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

.ob-matrix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0.85rem;
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-sm);
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.ob-matrix-row.is-missing {
    border-color: #fecaca;
    background: #fffafa;
}

.ob-matrix-row.is-unanswered {
    border-color: var(--ob-danger);
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.ob-matrix-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ob-matrix-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--ob-text);
}

.ob-matrix-note {
    font-size: 0.76rem;
    color: var(--ob-subtle);
    line-height: 1.4;
}

.ob-req-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.46rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.ob-yn-switch {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}

.ob-yn-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--ob-subtle);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.78rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.ob-yn-btn.selected-yes {
    background: var(--ob-emerald);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28);
}

.ob-yn-btn.selected-no {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

/* Checkbox row */
.ob-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.82rem 0.95rem;
    border-radius: var(--ob-radius-sm);
    border: 1px solid var(--ob-border);
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--ob-muted);
    transition: border-color 0.16s ease;
}

.ob-checkbox-row:hover {
    border-color: #93c5fd;
}

.ob-checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ob-primary);
    flex-shrink: 0;
}

/* Alerts */
.ob-alert {
    padding: 0.82rem 0.98rem;
    border-radius: var(--ob-radius-sm);
    font-size: 0.86rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    line-height: 1.5;
}

.ob-alert-error {
    background: var(--ob-danger-soft);
    border-color: #fecaca;
    color: var(--ob-danger);
}

.ob-alert-warn {
    background: var(--ob-amber-soft);
    border-color: #fde68a;
    color: #92400e;
}

.ob-alert-info {
    background: var(--ob-primary-soft);
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Sticky bottom bar */
.ob-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ob-border);
    padding: 0.78rem 1rem calc(0.78rem + env(safe-area-inset-bottom));
}

.ob-footer-inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.ob-btn {
    appearance: none;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 46px;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.ob-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ob-btn-secondary {
    background: #f1f5f9;
    color: var(--ob-text);
    border: 1px solid var(--ob-border);
}

.ob-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.ob-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
    flex: 1;
    max-width: 290px;
}

.ob-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.ob-btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35);
}

.ob-btn-emerald:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.45);
}

/* Result screen */
.ob-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.82rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.ob-result-badge.ready_for_simulation {
    background: var(--ob-emerald-soft);
    color: #065f46;
}

.ob-result-badge.ready_with_prerequisites {
    background: var(--ob-primary-soft);
    color: #1e40af;
}

.ob-result-badge.needs_discovery {
    background: var(--ob-amber-soft);
    color: #92400e;
}

.ob-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 1.45rem;
}

.ob-result-actions .ob-btn {
    flex: 1 1 220px;
}

.ob-section-block {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--ob-border);
}

.ob-section-heading {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ob-text);
    margin-bottom: 0.65rem;
}

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

@media (max-width: 620px) {
    .ob-gap-grid {
        grid-template-columns: 1fr;
    }
}

.ob-gap-box {
    border-radius: var(--ob-radius-md);
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--ob-border);
}

.ob-gap-box.have {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ob-gap-box.miss {
    background: #fef2f2;
    border-color: #fecaca;
}

.ob-gap-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.ob-gap-box.have .ob-gap-title { color: #166534; }
.ob-gap-box.miss .ob-gap-title { color: #991b1b; }

.ob-tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ob-mini-tag {
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.2rem 0.52rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ob-text);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.ob-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    font-size: 0.88rem;
    color: var(--ob-muted);
}

.ob-list li {
    position: relative;
    padding-left: 1.15rem;
}

.ob-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--ob-primary);
    font-weight: 700;
}

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

@media (max-width: 620px) {
    .ob-sheet-grid {
        grid-template-columns: 1fr;
    }
}

.ob-sheet-item {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-sm);
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
}

.ob-sheet-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--ob-text);
}

.ob-sheet-role {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ob-primary);
    margin-top: 0.16rem;
}

.ob-sheet-reason {
    font-size: 0.78rem;
    color: var(--ob-subtle);
    margin-top: 0.24rem;
}

/* Developer Contact Card */
.ob-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 1.05rem 1.15rem;
    border-radius: var(--ob-radius-md);
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f8fbff 0%, #f0fdf4 100%);
}

.ob-contact-details {
    flex: 1;
    min-width: 0;
}

.ob-contact-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ob-text);
    margin-bottom: 0.45rem;
}

.ob-contact-lines {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--ob-muted);
}

.ob-contact-lines a {
    color: var(--ob-primary);
    text-decoration: none;
    font-weight: 600;
}

.ob-contact-lines a:hover {
    text-decoration: underline;
}

.ob-contact-qr-box {
    text-align: center;
    flex-shrink: 0;
}

.ob-contact-qr-box img {
    width: 112px;
    height: 112px;
    border-radius: 10px;
    border: 1px solid var(--ob-border);
    background: #ffffff;
    padding: 4px;
    display: block;
}

.ob-contact-qr-caption {
    font-size: 0.72rem;
    color: var(--ob-subtle);
    margin-top: 0.3rem;
}

@media (max-width: 560px) {
    .ob-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* QR Modal */
.ob-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ob-modal-backdrop.open {
    display: flex;
}

.ob-modal {
    width: 100%;
    max-width: 390px;
    background: #ffffff;
    border-radius: var(--ob-radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.ob-modal img {
    width: 215px;
    height: 215px;
    margin: 0.85rem auto;
    display: block;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    padding: 8px;
    background: #ffffff;
}

.ob-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
