@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&display=swap');

:root {
    --omc-bg: #faf9f5;
    --omc-bg-soft: #f5f4ed;
    --omc-bg-hero: #262624;
    --omc-ink: #1f1e1d;
    --omc-muted: #73726c;
    --omc-line: #dedcd1;
    --omc-gold-strong: #ac5c42;
    --omc-surface: #dedcd1;
    --omc-accent-beige: #e3dacc;
    --omc-hero-text: #f0eee6;
    --omc-hero-muted: #9c9a92;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--omc-bg) 0%, var(--omc-bg-soft) 100%);
    color: var(--omc-ink);
    font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

a,
button,
input,
textarea,
select {
    font: inherit;
}

.page {
    color: var(--omc-ink);
}

h1:focus,
h1:focus-visible {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.site-connect-state {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #f4f1ea;
    background:
        radial-gradient(circle at top, rgba(241, 210, 165, 0.18), transparent 34%),
        radial-gradient(circle at 20% 80%, rgba(173, 108, 86, 0.12), transparent 28%),
        linear-gradient(160deg, #181716 0%, #22201c 44%, #141311 100%);
}

.site-connect-state__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.site-connect-state__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.7;
}

.site-connect-state__glow--one {
    top: 16%;
    left: 12%;
    width: 10rem;
    height: 10rem;
    background: rgba(232, 181, 112, 0.2);
}

.site-connect-state__glow--two {
    right: 10%;
    bottom: 12%;
    width: 14rem;
    height: 14rem;
    background: rgba(156, 113, 255, 0.16);
}

.site-connect-state__panel {
    position: relative;
    z-index: 1;
    width: min(32rem, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    text-align: center;
}

.site-connect-state__panel--unavailable {
    gap: 1.25rem;
}

.site-connect-state--guide {
    align-items: stretch;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 4rem);
}

.site-connect-guide {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: clamp(1.25rem, 3vw, 2rem);
    width: min(1120px, 100%);
    min-height: calc(100vh - clamp(2.5rem, 8vw, 8rem));
}

.site-connect-guide__hero {
    display: grid;
    gap: 1.15rem;
    max-width: 760px;
}

.site-connect-guide__hero h1 {
    margin: 0;
    color: #fffaf1;
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.site-connect-guide__hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(244, 241, 234, 0.78);
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.site-connect-guide__subcopy {
    color: rgba(244, 241, 234, 0.9) !important;
}

.site-connect-guide__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.site-connect-guide__features article {
    display: grid;
    gap: 0.85rem;
    min-height: 210px;
    padding: clamp(1.15rem, 2.5vw, 2rem);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.site-connect-guide__features span {
    color: #f1d2a5;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.site-connect-guide__features h2 {
    margin: 0;
    color: #fffaf1;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.3;
    font-weight: 800;
}

.site-connect-guide__features p {
    margin: 0;
    color: rgba(244, 241, 234, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-connect-state__orbit {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    display: grid;
    place-items: center;
}

.site-connect-state__ring,
.site-connect-state__core {
    position: absolute;
    border-radius: 999px;
}

.site-connect-state__ring--outer {
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    animation: site-connect-spin 8s linear infinite;
}

.site-connect-state__ring--inner {
    inset: 0.65rem;
    border: 2px solid transparent;
    border-top-color: #f1d2a5;
    border-right-color: rgba(255, 255, 255, 0.4);
    animation: site-connect-spin 1.1s linear infinite;
}

.site-connect-state__core {
    inset: 1.55rem;
    background: radial-gradient(circle, #f5dfba 0%, #ba8560 72%, rgba(186, 133, 96, 0.4) 100%);
    box-shadow: 0 0 24px rgba(241, 210, 165, 0.28);
}

.site-connect-state__orbit--idle .site-connect-state__ring--outer {
    animation-duration: 14s;
    opacity: 0.7;
}

.site-connect-state__ring--idle {
    inset: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.site-connect-state__core--warning {
    background: radial-gradient(circle, #ffe4b5 0%, #d98554 70%, rgba(217, 133, 84, 0.45) 100%);
}

.site-connect-state__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(244, 241, 234, 0.72);
}

.site-connect-state__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    line-height: 1.05;
    font-weight: 800;
    color: #fffaf1;
}

.site-connect-state__message-rail {
    position: relative;
    width: 100%;
    max-width: 18rem;
    height: 1.8rem;
}

.site-connect-state__message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #f1d2a5;
    opacity: 0;
    transform: translateY(0.75rem);
    animation: site-connect-message-cycle 10s infinite;
}

.site-connect-state__message:nth-child(2) {
    animation-delay: 2s;
}

.site-connect-state__message:nth-child(3) {
    animation-delay: 4s;
}

.site-connect-state__message:nth-child(4) {
    animation-delay: 6s;
}

.site-connect-state__message:nth-child(5) {
    animation-delay: 8s;
}

.site-connect-state__caption {
    margin: 0;
    max-width: 24rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(244, 241, 234, 0.72);
}

.site-connect-state__progress {
    width: min(18rem, 100%);
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.site-connect-state__progress-bar {
    display: block;
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f1d2a5 0%, #ba8560 100%);
    transition: width 0.08s ease-out;
}

.site-connect-state__progress-text {
    min-height: 1.2rem;
    color: rgba(255, 250, 241, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
}

.site-connect-state__progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.site-connect-state__error {
    margin: 0;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(241, 210, 165, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 250, 241, 0.9);
    font-size: 0.92rem;
    line-height: 1.5;
}

.site-connect-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.site-connect-state__language-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.site-connect-state__language-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 250, 241, 0.88);
    font-size: 0.78rem;
    font-weight: 700;
}

.site-connect-state__message.is-active {
    animation-delay: 0s;
}

@keyframes site-connect-message-cycle {
    0% {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    8%,
    16% {
        opacity: 1;
        transform: translateY(0);
    }
    20%,
    100% {
        opacity: 0;
        transform: translateY(-0.75rem);
    }
}

@keyframes site-connect-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .site-connect-state {
        padding: 1.25rem;
    }

    .site-connect-state__panel {
        padding: 1.75rem 1rem;
        border-radius: 1.25rem;
    }

    .site-connect-state__message-rail {
        max-width: 100%;
        height: 2.1rem;
    }

    .site-connect-state__message {
        font-size: 0.95rem;
    }

    .site-connect-state__caption {
        font-size: 0.88rem;
    }

    .site-connect-state--guide {
        padding: 1rem;
    }

    .site-connect-guide {
        min-height: calc(100vh - 2rem);
    }

    .site-connect-guide__features {
        grid-template-columns: 1fr;
    }

    .site-connect-guide__features article {
        min-height: 0;
    }
}

code {
    color: #c02d76;
}

/* ========================================
   AUTH SHARED STYLES (Login & Signup)
   Defined globally because Blazor CSS
   isolation would scope these per-component.
   ======================================== */

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem;
    gap: 2rem;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.auth-logo__mark {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.auth-logo__mark img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.auth-logo__mark span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--omc-ink);
}

.auth-logo__tagline {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--omc-ink);
    text-align: center;
}

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    background: var(--omc-bg-soft);
    border-radius: 16px;
    padding: 3.125rem 2.5rem; /* 50px 40px */
}

.auth-form__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-form__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.auth-form__title-row h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--omc-ink);
    line-height: 1.2;
}

.auth-form__header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--omc-ink);
    line-height: 1.2;
}

.auth-form__section {
    display: flex;
    flex-direction: column;
    gap: 1.875rem; /* 30px */
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 0.75rem;
    border: 1px solid #d97757;
    border-radius: 14px;
    background: #f9ebe6;
    color: #d97757;
    font-size: 0.625rem;
    font-weight: 600;
}

.auth-form__subtitle {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--omc-muted);
    line-height: 1.6;
}

.auth-form__subtitle strong {
    font-weight: 600;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(180, 67, 67, 0.18);
    border-radius: 6px;
    color: #8f3434;
    background: rgba(255, 241, 241, 0.92);
    font-size: 0.875rem;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    cursor: default;
}

.auth-field span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #141413;
}

.auth-field input {
    height: 48px;
    padding: 0 12px;
    border: 1px solid #c2c0b6;
    border-radius: 6px;
    background: #faf9f5;
    color: #1f1e1d;
    font: inherit;
    font-size: 1.125rem; /* 18px */
    box-shadow: 1px 1px 6px rgba(15, 15, 14, 0.01);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
    color: #73726c;
}

.auth-field input:focus {
    outline: none;
    border-color: #0f0f0e;
    box-shadow: 0 0 0 3px rgba(15, 15, 14, 0.08);
}

.omc-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.omc-password-field .omc-password-input {
    width: 100%;
    padding-right: 44px;
}

.omc-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #73726c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.omc-password-toggle:hover {
    color: #1f1e1d;
}

.omc-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-field small {
    font-size: 0.625rem;
    color: #73726c;
    padding: 0 4px;
}

.auth-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.5rem;
}

.auth-forgot a {
    font-size: 0.75rem;
    color: #d97757;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px */
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.auth-btn--primary {
    background: #0f0f0e;
    color: #f5f4ed;
    border-color: #0f0f0e;
}

.auth-btn--outline {
    background: #faf9f5;
    color: #0f0f0e;
    border-color: #0f0f0e;
}

.auth-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

/* Button icons */
.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 8px;
}

.auth-btn--primary .btn-icon {
    filter: brightness(0) invert(1);
}

/* Nav icons */
.nav-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 6px;
    opacity: 0.7;
}

.auth-nav-btn--filled .nav-icon {
    opacity: 1;
}

.auth-info-note {
    padding: 0.75rem 1rem;
    border: 1px solid #e8e6dc;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    color: #73726c;
    line-height: 1.6;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e8e6dc;
    border-radius: 6px;
    background: #faf9f5;
    font-size: 0.875rem;
    color: #1f1e1d;
    cursor: pointer;
}

.auth-check input[type="checkbox"] {
    margin-top: 0.1rem;
    accent-color: #d97757;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Alt action ("Already have an account?" 등) ── */
.auth-alt-action {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: #73726c;
    line-height: 1.6;
}

.auth-alt-action a {
    color: #0f0f0e;
    font-weight: 600;
    text-decoration: none;
}

.auth-alt-action a:hover {
    text-decoration: underline;
}

.auth-alt-action--muted a {
    color: #73726c;
    font-weight: 400;
}

.auth-alt-action--muted a:hover {
    color: #0f0f0e;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-page {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
}

/* ========================================
   Auth Split Layout (Login / Signup)
   2-column: hero (left) + form (right)
   ======================================== */

.auth-split-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #faf9f5;
}

/* ── Header ── */
.auth-split-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 90px;
    background: rgba(250, 249, 245, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    position: sticky;
    top: 8px;
    z-index: 10;
    margin: 8px 8px 0;
}

.auth-split-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.auth-split-header__logo img {
    height: 40px;
    width: auto;
}

.auth-split-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #73726c;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.auth-nav-btn:hover {
    color: #1f1e1d;
}

.auth-nav-btn--filled {
    background: #dedcd1;
    color: #3d3d3a;
}

.auth-nav-btn--filled:hover {
    background: #ccc9be;
    color: #1f1e1d;
}

.auth-nav-sep {
    width: 0;
    height: 32px;
    border-left: 1px solid #c2c0b6;
    margin: 0 4px;
}

/* ── Body (2-column) ── */
.auth-split-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 40px 90px;
}

/* ── Hero (left panel) ── */
.auth-split-hero {
    flex: 1;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #30302e;
    background-image: var(--omc-auth-hero-image, url('/images/figma/hero-bg.jpg'));
    background-size: cover;
    background-position: center;
    background-blend-mode: luminosity;
    border-radius: 16px;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.auth-split-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(48, 48, 46, 0.82);
    border-radius: 16px;
}

.auth-split-hero > * {
    position: relative;
    z-index: 1;
}

.auth-split-hero__logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: 160px;
    align-self: flex-start;
    filter: brightness(0) invert(1);
    opacity: 0.88;
}

.auth-split-hero__text {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    line-height: 1.2;
}

.auth-split-hero__line1 {
    color: #f0eee6;
}

.auth-split-hero__line2 {
    color: #d97757;
}

.auth-split-hero__sub {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    color: #9c9a92;
    line-height: 1.6;
}

/* ── Form wrap (right panel) ── */
.auth-split-body .auth-form-wrap {
    width: 520px;
    flex-shrink: 0;
}

/* ── Footer ── */
.auth-split-footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #e8e6dc;
    margin: 0 90px;
}

.auth-split-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #73726c;
}

/* ── alt-action: right-side link ── */
.auth-alt-action__right {
    float: right;
    color: #d97757;
    font-weight: 400;
    text-decoration: none;
}

.auth-alt-action__right:hover {
    text-decoration: underline;
}

/* ── Dev mode OTP hint (로컬 개발 전용) ── */
.dev-code-hint {
    margin: 4px 0 0;
    padding: 6px 10px;
    border-radius: 4px;
    background: #fff8e1;
    border: 1px solid #f0c040;
    font-size: 0.85rem;
    color: #7a5c00;
}

/* ── Responsive: mobile single-column ── */
@media (max-width: 900px) {
    .auth-split-header {
        padding: 12px 20px;
        margin: 8px 8px 0;
    }

    .auth-split-body {
        flex-direction: column;
        padding: 24px 20px;
        gap: 24px;
    }

    .auth-split-hero {
        min-height: 200px;
        padding: 32px 24px;
    }

    .auth-split-hero__text {
        font-size: 2rem;
    }

    .auth-split-body .auth-form-wrap {
        width: 100%;
    }

    .auth-split-footer {
        margin: 0 20px;
    }

    .auth-split-header__nav .auth-nav-btn:not(.auth-nav-btn--filled):not(:last-child) {
        display: none;
    }

    .auth-nav-sep {
        display: none;
    }
}

/* ========================================
   Design-system driven auth treatment
   Activated by SiteConfig.Theme.DesignSystem.
   ======================================== */

body[data-design-system] .auth-split-page {
    background: linear-gradient(180deg, var(--omc-bg) 0%, var(--omc-bg-soft) 100%);
    color: var(--omc-ink);
}

body[data-design-system] .auth-split-header {
    border: 1px solid color-mix(in srgb, var(--omc-gold-strong) 16%, transparent);
    background: color-mix(in srgb, var(--omc-bg) 88%, white);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--omc-ink) 8%, transparent);
}

body[data-design-system] .auth-nav-btn {
    color: var(--omc-muted);
    letter-spacing: 0;
}

body[data-design-system] .auth-nav-btn:hover {
    color: var(--omc-ink);
}

body[data-design-system] .auth-nav-btn--filled {
    background: var(--omc-surface);
    color: var(--omc-ink);
}

body[data-design-system] .auth-nav-sep {
    border-color: color-mix(in srgb, var(--omc-gold-strong) 18%, transparent);
}

body[data-design-system] .auth-split-hero {
    border-radius: 8px;
    background-color: var(--omc-bg-hero);
    background-image: url('/images/bg_hero.png');
    background-blend-mode: normal;
}

body[data-design-system] .auth-split-hero::before {
    border-radius: 8px;
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--omc-bg-hero) 92%, transparent) 0%, color-mix(in srgb, var(--omc-bg-hero) 70%, transparent) 58%, color-mix(in srgb, var(--omc-gold-strong) 34%, transparent) 100%);
}

body[data-design-system] .auth-split-hero__logo {
    filter: none;
    opacity: 1;
}

body[data-design-system] .auth-split-hero__text,
body[data-design-system] .auth-form__title-row h1,
body[data-design-system] .auth-form__header h1 {
    letter-spacing: 0;
}

body[data-design-system] .auth-split-hero__line1 {
    color: var(--omc-hero-text);
}

body[data-design-system] .auth-split-hero__line2 {
    color: var(--omc-gold-strong);
}

body[data-design-system] .auth-split-hero__sub {
    color: var(--omc-hero-muted);
}

body[data-design-system] .auth-split-body .auth-form-wrap {
    border: 1px solid color-mix(in srgb, var(--omc-gold-strong) 14%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--omc-bg) 92%, white);
    box-shadow: 0 22px 64px color-mix(in srgb, var(--omc-ink) 8%, transparent);
}

body[data-design-system] .auth-field span,
body[data-design-system] .auth-form__title-row h1,
body[data-design-system] .auth-form__header h1 {
    color: var(--omc-ink);
}

body[data-design-system] .auth-form__subtitle,
body[data-design-system] .auth-field small,
body[data-design-system] .auth-alt-action {
    color: var(--omc-muted);
}

body[data-design-system] .auth-field input {
    border-color: color-mix(in srgb, var(--omc-gold-strong) 18%, var(--omc-line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--omc-bg) 90%, white);
    color: var(--omc-ink);
}

body[data-design-system] .auth-field input:focus {
    border-color: var(--omc-gold-strong);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--omc-gold-strong) 14%, transparent);
}

body[data-design-system] .auth-check,
body[data-design-system] .auth-info-note {
    border-color: color-mix(in srgb, var(--omc-gold-strong) 14%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--omc-bg) 90%, white);
}

body[data-design-system] .auth-check input[type="checkbox"] {
    accent-color: var(--omc-gold-strong);
}

body[data-design-system] .auth-btn {
    border-radius: 8px;
    letter-spacing: 0;
}

body[data-design-system] .auth-btn--primary {
    background: var(--omc-ink);
    border-color: var(--omc-ink);
    color: var(--omc-bg);
}

body[data-design-system] .auth-btn--outline {
    background: color-mix(in srgb, var(--omc-bg) 90%, white);
    border-color: var(--omc-gold-strong);
    color: var(--omc-ink);
}

body[data-design-system] .signup-steps span.is-active,
body[data-design-system] .auth-alt-action a {
    color: var(--omc-gold-strong);
}

body[data-design-system] .auth-split-footer {
    border-top-color: color-mix(in srgb, var(--omc-gold-strong) 14%, transparent);
}

body[data-design-system="CBM"] .auth-split-page {
    background:
        linear-gradient(180deg, #f7f7fb 0%, #efedf7 100%);
    color: var(--omc-ink);
}

body[data-design-system="CBM"] .auth-split-header {
    top: 12px;
    margin: 12px 12px 0;
    padding: 12px clamp(18px, 5vw, 72px);
    border: 1px solid rgba(109, 49, 232, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 44px rgba(21, 17, 32, 0.08);
}

body[data-design-system="CBM"] .auth-split-header__logo img {
    height: 40px;
    max-width: 168px;
    object-fit: contain;
}

body[data-design-system="CBM"] .auth-nav-btn {
    border-radius: 6px;
    color: #706a7e;
    letter-spacing: 0;
}

body[data-design-system="CBM"] .auth-nav-btn--filled {
    background: #211235;
    color: #ffffff;
}

body[data-design-system="CBM"] .auth-nav-sep {
    border-color: rgba(109, 49, 232, 0.16);
}

body[data-design-system="CBM"] .auth-split-body {
    align-items: stretch;
    padding: clamp(28px, 5vw, 56px) clamp(18px, 6vw, 90px);
}

body[data-design-system="CBM"] .auth-split-hero {
    min-height: 560px;
    border-radius: 8px;
    background-color: #090316;
    background-image: var(--omc-auth-hero-image, url('/images/figma/hero-bg.jpg'));
    background-blend-mode: normal;
    box-shadow: 0 24px 70px rgba(9, 3, 22, 0.28);
}

body[data-design-system="CBM"] .auth-split-hero::before {
    border-radius: 8px;
    background:
        linear-gradient(115deg, rgba(9, 3, 22, 0.92) 0%, rgba(33, 18, 53, 0.72) 52%, rgba(109, 49, 232, 0.38) 100%);
}

body[data-design-system="CBM"] .auth-split-hero__logo {
    height: 40px;
    max-width: 168px;
    filter: none;
    opacity: 1;
}

body[data-design-system="CBM"] .auth-split-hero__text {
    max-width: 560px;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    letter-spacing: 0;
}

body[data-design-system="CBM"] .auth-split-hero__line2 {
    display: block;
    color: #a78bfa;
}

body[data-design-system="CBM"] .auth-split-hero__sub {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
}

body[data-design-system="CBM"] .auth-split-body .auth-form-wrap {
    width: min(520px, 100%);
    border: 1px solid rgba(109, 49, 232, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 64px rgba(21, 17, 32, 0.1);
}

body[data-design-system="CBM"] .auth-form__title-row h1,
body[data-design-system="CBM"] .auth-form__header h1 {
    letter-spacing: 0;
}

body[data-design-system="CBM"] .auth-field input {
    border-color: rgba(109, 49, 232, 0.16);
    border-radius: 8px;
    background: #fbfbff;
}

body[data-design-system="CBM"] .auth-field input:focus {
    border-color: #6d31e8;
    box-shadow: 0 0 0 4px rgba(109, 49, 232, 0.14);
}

body[data-design-system="CBM"] .auth-check,
body[data-design-system="CBM"] .auth-info-note {
    border-color: rgba(109, 49, 232, 0.12);
    border-radius: 8px;
    background: #fbfbff;
}

body[data-design-system="CBM"] .auth-btn {
    border-radius: 8px;
    letter-spacing: 0;
}

body[data-design-system="CBM"] .auth-btn--primary {
    background: #211235;
    border-color: #211235;
    color: #ffffff;
}

body[data-design-system="CBM"] .auth-btn--outline {
    background: #ffffff;
    border-color: #6d31e8;
    color: #211235;
}

body[data-design-system="CBM"] .signup-steps span.is-active,
body[data-design-system="CBM"] .auth-alt-action a {
    color: #6d31e8;
}

body[data-design-system="CBM"] .auth-split-footer {
    border-top-color: rgba(109, 49, 232, 0.12);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========================================
   SUB-PAGE DESIGN SYSTEM
   Used by MyPage sub-pages, Guide/Inquiry,
   and other inner pages. Follows the
   editorial style from Figma.
   ======================================== */

/* ── Layout container ── */
.sub-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.sub-page--order-detail {
    padding-top: 1.5rem;
}

/* ── Page header row (title + optional action/search) ── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.page-title {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--omc-ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.order-detail__title {
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
}

.sub-page--order-detail .omc-back-link {
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}

.sub-page--order-detail .page-header {
    margin-bottom: 1.75rem;
}

/* ── Sub-page tab navigation (MyPage tabs) ── */
.sub-page-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--omc-line);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.sub-page-tabs::-webkit-scrollbar { display: none; }

.sub-page-tabs__link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--omc-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.sub-page-tabs__link:hover {
    color: var(--omc-ink);
}

.sub-page-tabs__link.active {
    color: var(--omc-ink);
    border-bottom-color: var(--omc-ink);
    font-weight: 600;
}

/* ── Profile bar (top of MyPage) ── */
.mypage-profile-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mypage-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--omc-accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--omc-muted);
    flex-shrink: 0;
    overflow: hidden;
}

.mypage-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mypage-profile-bar__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--omc-ink);
    margin: 0;
}

.mypage-profile-bar__meta {
    font-size: 0.8125rem;
    color: var(--omc-muted);
    margin: 0.125rem 0 0;
}

/* ── Clean card ── */
.omc-card {
    border: 1px solid var(--omc-line);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
}

.omc-card__title {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--omc-ink);
}

.order-summary-card__grid {
    display: grid;
    gap: 0;
}

.order-collapsible {
    margin-top: 0.9rem;
}

.order-collapsible__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--omc-line);
    border-radius: 10px;
    background: var(--omc-bg-soft);
    color: var(--omc-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.order-collapsible__toggle:hover {
    border-color: #9fd4a8;
    background: #f4fbf5;
    color: #1f6b30;
}

.order-collapsible__meta {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--omc-muted);
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--omc-line);
    border-radius: 999px;
    background: #fff;
}

.order-collapsible__body {
    margin-top: 0.75rem;
}

.order-collapsible__body .omc-detail__row:first-child {
    padding-top: 0.5rem;
}

.order-collapsible__body .omc-detail__row:last-child {
    padding-bottom: 0.5rem;
}

.order-progress-card .order-collapsible__toggle,
.order-notices-card .order-collapsible__toggle,
.order-onchain-card .order-collapsible__toggle {
    margin-top: 0.2rem;
}

/* ── Detail key-value rows ── */
.omc-detail {
    display: flex;
    flex-direction: column;
}

.omc-detail__row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6875rem 0;
    border-bottom: 1px solid var(--omc-line);
    font-size: 0.9375rem;
}

.omc-detail__row:last-child { border-bottom: none; }

.omc-detail__label {
    flex: 0 0 160px;
    color: var(--omc-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.omc-detail__value {
    flex: 1;
    color: var(--omc-ink);
    word-break: break-word;
    line-height: 1.5;
}

/* ── Clean table ── */
.omc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.omc-table th {
    text-align: left;
    padding: 0.6875rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--omc-muted);
    border-bottom: 1px solid var(--omc-line);
    white-space: nowrap;
}

.omc-table td {
    padding: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--omc-line);
}

.omc-table tbody tr:last-child td { border-bottom: none; }

.omc-table tbody tr {
    transition: background-color 0.12s ease;
    cursor: pointer;
}

.omc-table tbody tr:hover { background-color: var(--omc-bg-soft); }

.omc-table .col-num {
    width: 3rem;
    color: var(--omc-muted);
    font-size: 0.875rem;
}

.omc-table .col-date {
    width: 9rem;
    color: var(--omc-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.omc-table .col-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Inline badge (category tag) ── */
.omc-tag {
    display: inline-flex;
    align-items: center;
    height: 1.375rem;
    padding: 0 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid;
}

.omc-tag--neutral  { color: var(--omc-muted);   border-color: var(--omc-line);    background: transparent; }
.omc-tag--success  { color: #2aa63a;             border-color: #2aa63a40;          background: #2aa63a0d; }
.omc-tag--warning  { color: var(--omc-gold-strong); border-color: #ac5c4240;       background: #ac5c420d; }
.omc-tag--danger   { color: #b03030;             border-color: #b0303040;          background: #b030300d; }
.omc-tag--info     { color: #3b7bbf;             border-color: #3b7bbf40;          background: #3b7bbf0d; }
.omc-tag--pin      { color: var(--omc-gold-strong); background: transparent; border: none; font-size: 0.875rem; }

/* ── Search box ── */
.omc-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 44px;
    border: 1px solid var(--omc-line);
    border-radius: 22px;
    background: #fff;
    min-width: 220px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.omc-search:focus-within {
    border-color: #8a8880;
    box-shadow: 0 0 0 3px rgba(15, 15, 14, 0.06);
}

.omc-search svg, .omc-search .omc-search__icon {
    opacity: 0.45;
    flex-shrink: 0;
}

.omc-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--omc-ink);
    width: 100%;
    font-family: inherit;
}

.omc-search input::placeholder { color: var(--omc-muted); }

/* ── Primary / secondary buttons ── */
.omc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    height: 44px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.omc-btn:disabled { opacity: 0.5; cursor: default; }

.omc-btn--primary   { background: var(--omc-ink); color: #fff; }
.omc-btn--primary:hover:not(:disabled) { background: #2d2c2a; }

.omc-btn--secondary { background: transparent; color: var(--omc-ink); border: 1px solid var(--omc-line); }
.omc-btn--secondary:hover:not(:disabled) { background: var(--omc-bg-soft); }

.omc-btn--ghost { background: transparent; color: var(--omc-muted); border: none; padding: 0 0.5rem; }
.omc-btn--ghost:hover:not(:disabled) { color: var(--omc-ink); }

.omc-btn--sm { height: 34px; padding: 0 0.875rem; font-size: 0.875rem; }
.omc-btn--danger { background: #b03030; color: #fff; }
.omc-btn--danger:hover:not(:disabled) { background: #8f2828; }

/* ── Order tabs (pill segment) ── */
.order-tabs {
    display: inline-flex;
    background: var(--omc-bg-soft);
    border: 1px solid var(--omc-line);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.order-tabs__btn {
    padding: 0.4375rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--omc-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.order-tabs__btn:hover { color: var(--omc-ink); }
.order-tabs__btn.active {
    background: #fff;
    color: var(--omc-ink);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Pagination ── */
.omc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2.5rem;
}

.omc-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--omc-muted);
    transition: background-color 0.12s ease, color 0.12s ease;
}

.omc-pagination__btn:hover { background: var(--omc-bg-soft); color: var(--omc-ink); }

.omc-pagination__btn.is-active {
    background: var(--omc-bg-soft);
    color: var(--omc-gold-strong);
    font-weight: 700;
}

/* ── Info/warning/success inline messages ── */
.omc-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
    border: 1px solid;
    margin-bottom: 1rem;
}

.omc-message--info    { background: #eff5fb; border-color: #b0cceb; color: #295a8c; }
.omc-message--success { background: #eef8f0; border-color: #9fd4a8; color: #1f6b30; }
.omc-message--warning { background: #fdf5ec; border-color: #e8c48b; color: #8a5b1a; }
.omc-message--error   { background: #fdf0f0; border-color: #e8a0a0; color: #8a1f1f; }

/* ── Form fields ── */
.omc-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.125rem;
}

.omc-field label, .omc-field__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--omc-muted);
}

.omc-field input,
.omc-field select,
.omc-field textarea {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--omc-line);
    border-radius: 6px;
    background: #fff;
    color: var(--omc-ink);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.omc-field textarea { height: auto; padding: 10px 12px; resize: vertical; }

.omc-field input:focus,
.omc-field select:focus,
.omc-field textarea:focus {
    outline: none;
    border-color: #8a8880;
    box-shadow: 0 0 0 3px rgba(15, 15, 14, 0.06);
}

.omc-field__hint {
    font-size: 0.75rem;
    color: var(--omc-muted);
    margin-top: 0.125rem;
}

/* ── Section divider ── */
.omc-divider {
    border: none;
    border-top: 1px solid var(--omc-line);
    margin: 1.5rem 0;
}

/* ── 2-column grid ── */
.omc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

.inquiry-table-wrap {
    border: 1px solid var(--omc-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.inquiry-table-wrap .omc-table th { background: var(--omc-bg-soft); }

.inquiry-row__q-prefix {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--omc-gold-strong);
    margin-right: 0.5rem;
}

/* ── Back link ── */
.omc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    color: var(--omc-muted);
    text-decoration: none;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--omc-line);
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
    margin-top: 1.5rem;
}

.omc-back-link:hover { color: var(--omc-ink); background-color: var(--omc-bg-soft); }

/* ── Wallet / balance display ── */
.wallet-balance {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--omc-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.wallet-balance__unit {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--omc-muted);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .sub-page { padding: 1.5rem 1rem 3rem; }
    .page-title { font-size: 1.75rem; }
    .omc-detail__label { flex: 0 0 120px; }
    .sub-page-tabs__link { padding: 0.625rem 0.875rem; font-size: 0.875rem; }
}

/* ── Modal ── */
.omc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 30, 29, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.omc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2rem);
    box-shadow: 0 20px 40px rgba(31, 30, 29, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.omc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--omc-line);
}

.omc-modal__header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--omc-ink);
}

.omc-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--omc-muted);
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.15s;
}

.omc-modal__close:hover { color: var(--omc-ink); }

.omc-modal__body {
    padding: 1.5rem;
    min-height: 0;
    overflow-y: auto;
}

.omc-modal__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--omc-line);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background: var(--omc-bg-soft);
}

.omc-toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: min(92vw, 640px);
    pointer-events: none;
}

.omc-toast {
    border: 1px solid var(--omc-line);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(31, 30, 29, 0.14);
}

.omc-toast--success {
    background: #eef8f0;
    border-color: #9fd4a8;
    color: #1f6b30;
}

.omc-toast--warn {
    background: #fff8e1;
    border-color: #f2c46f;
    color: #7a4b00;
}

/* omc-field textarea */
.omc-field__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--omc-line);
    border-radius: 6px;
    background: #fff;
    color: var(--omc-ink);
    font: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.omc-field__textarea:focus {
    outline: none;
    border-color: var(--omc-gold-strong);
    box-shadow: 0 0 0 3px rgba(172, 92, 66, 0.12);
}

/* ── Order progress card ── */
.order-progress__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.order-progress__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--omc-muted);
    margin-bottom: 0.35rem;
}

.order-progress__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--omc-ink);
}

.order-progress__status {
    flex-shrink: 0;
    border: 1px solid var(--omc-line);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.1;
}

.order-progress__status--current {
    background: #eef5ff;
    border-color: #7fb0ea;
    color: #245b9a;
}

.order-progress__status--completed {
    background: #eef8f0;
    border-color: #8dc99a;
    color: #1f6b30;
}

.order-progress__status--blocked {
    background: #fdf0f0;
    border-color: #e8a0a0;
    color: #8a1f1f;
}

.order-progress__wallet {
    border: 1px solid var(--omc-line);
    background: var(--omc-bg-soft);
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--omc-ink);
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
    word-break: break-all;
}

.order-progress__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.order-progress__step {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--omc-line);
    border-radius: 8px;
    background: #fff;
}

.order-progress__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: 0.15rem;
    background: #c5c2bc;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.order-progress__step--completed .order-progress__dot {
    background: #2d8f3a;
}

.order-progress__step--current {
    border-color: #7fb0ea;
    background: #eef5ff;
}

.order-progress__step--current .order-progress__dot {
    background: #2e6fbe;
}

.order-progress__step--completed,
.order-progress__step--current {
    box-shadow: inset 0 0 0 1px rgba(45, 143, 58, 0.08);
}

.order-progress__step--completed {
    background: #eef8f0;
    border-color: #8dc99a;
}

.order-progress__step--current {
    box-shadow: inset 0 0 0 1px rgba(46, 111, 190, 0.08);
}

.order-progress__step--pending {
    border-color: #d8d4ca;
    background: #f7f6f2;
}

.order-progress__step--pending .order-progress__dot {
    background: #b7b3a9;
}

.order-progress__step--blocked {
    border-color: #e8a0a0;
    background: #fdf7f7;
}

.order-progress__step--blocked .order-progress__dot {
    background: #b03030;
}

.order-progress__step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
}

.order-progress__step-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--omc-ink);
}

.order-progress__step-state {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f6b30;
    border: 1px solid #9fd4a8;
    background: #f4fbf5;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
}

.order-progress__step--current .order-progress__step-state {
    color: #245b9a;
    border-color: #7fb0ea;
    background: #f2f7ff;
}

.order-progress__step--completed .order-progress__step-state {
    color: #1f6b30;
    border-color: #9fd4a8;
    background: #f4fbf5;
}

.order-progress__step--pending .order-progress__step-state {
    color: var(--omc-muted);
    border-color: #d4d0c6;
    background: #f4f2ed;
}

.order-progress__step-detail {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--omc-muted);
}

.order-progress__step-time {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--omc-muted);
}

.order-progress__activity {
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--omc-line);
}

.order-progress__activity:last-child {
    border-bottom: none;
}

.order-progress__activity-time {
    min-width: 86px;
    font-size: 0.75rem;
    color: var(--omc-muted);
    flex-shrink: 0;
}

.order-progress__activity-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--omc-ink);
}

.order-progress__activity-detail {
    margin-top: 0.1rem;
    font-size: 0.8125rem;
    color: var(--omc-muted);
}

.order-notices-card__body {
    display: grid;
    gap: 1rem;
}

.order-notices-card__item + .order-notices-card__item {
    padding-top: 1rem;
    border-top: 1px solid var(--omc-line);
}

.order-notices-card__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--omc-muted);
    margin-bottom: 0.35rem;
}

.order-notices-card__heading {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--omc-ink);
    line-height: 1.35;
}

.order-notices-card__detail {
    margin: 0.3rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--omc-muted);
}

.order-notices-card__note {
    margin-top: 1rem;
}

.order-log-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.order-log-card__meta {
    font-size: 0.8125rem;
    color: var(--omc-muted);
    margin-top: -0.15rem;
}

.order-log-card__toggle {
    border: 1px solid var(--omc-line);
    background: var(--omc-bg-soft);
    color: var(--omc-ink);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.order-log-card__toggle:hover {
    border-color: #9fd4a8;
    background: #f4fbf5;
    color: #1f6b30;
}

.order-log-card__body {
    margin-top: 0.85rem;
}

@media (max-width: 640px) {
    .sub-page--order-detail {
        padding-top: 1rem;
    }

    .sub-page--order-detail .omc-card {
        padding: 1.1rem;
    }

    .order-detail__title { font-size: 1.55rem; }

    .order-progress__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-log-card__header {
        flex-direction: column;
    }

    .order-collapsible__toggle {
        padding: 0.72rem 0.8rem;
        align-items: flex-start;
        text-align: left;
    }

    .order-collapsible__meta {
        margin-top: 0.1rem;
    }

    .order-progress__step-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .order-progress__activity {
        flex-direction: column;
        gap: 0.25rem;
    }

    .sub-page--order-detail .omc-back-link {
        width: fit-content;
    }
}
