.pub-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 460px at 88% -6%, rgba(208, 42, 32, .09), transparent 60%),
        radial-gradient(760px 420px at 4% 4%, rgba(14, 31, 51, .07), transparent 58%),
        var(--bg);
}

.pub-header {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.pub-header-in {
    max-width: 1080px;
    margin: 0 auto;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pub-brand { display: flex; align-items: center; gap: 11px; }
.pub-brand .brand-logo {
    height: 32px; width: auto; flex: none;
    display: block;
}
.pub-header .header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.event-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 600;
    max-width: 46vw;
}
.event-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.staff-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}
.staff-login:hover {
    color: var(--brand-hover);
    border-color: var(--brand);
    background: var(--brand-soft);
    text-decoration: none;
}

.pub-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }
.pub-footer {
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    background: rgba(255,255,255,.6);
}

.pub-title { text-align: center; margin-bottom: 26px; }
.pub-title h1 { font-size: 27px; margin-bottom: 8px; }
.pub-title p { color: var(--muted); font-size: 15px; max-width: 56ch; margin: 0 auto; }

.event-change {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.event-change:hover { color: var(--brand); }

.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}
.event-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.event-row:hover, .event-row:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
    color: inherit;
    text-decoration: none;
}
.event-row.is-live { border-left-color: var(--success); }

.event-date {
    flex: none;
    width: 62px;
    padding: 9px 0;
    border-radius: var(--r);
    background: var(--brand-soft);
    color: var(--brand);
    text-align: center;
    line-height: 1.1;
}
.event-date b { display: block; font-size: 22px; font-weight: 700; }
.event-date i { display: block; font-size: 11px; font-style: normal; font-weight: 600; letter-spacing: .06em; }
.event-row.is-live .event-date { background: #E7F6EC; color: var(--success); }

.event-thumb {
    flex: none;
    width: 84px; height: 62px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface-2);
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.event-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.event-name {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    font-size: 15.5px; font-weight: 600; color: var(--text);
}
.live-dot {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--success); background: #E7F6EC;
    border-radius: 999px; padding: 3px 9px;
}
.event-meta {
    display: flex; flex-wrap: wrap; gap: 4px 16px;
    font-size: 12.5px; color: var(--muted);
}
.event-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.event-meta [data-lucide] { width: 14px; height: 14px; flex: none; }
.event-desc {
    font-size: 13px; color: var(--text-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.event-go {
    flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border-radius: var(--r);
    background: var(--brand);
    color: #fff;
    font-size: 13.5px; font-weight: 600;
    transition: background .16s ease, transform .16s ease;
}
.event-go [data-lucide] { width: 16px; height: 16px; transition: transform .16s ease; }
.event-row:hover .event-go { background: var(--brand-hover); }
.event-row:hover .event-go [data-lucide] { transform: translateX(3px); }

.wizard-shell { max-width: 720px; margin: 0 auto; }

.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.wizard-steps { padding: 22px 24px 0; }
.step-row { display: flex; align-items: flex-start; }
.step-node { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; width: 72px; text-align: center; }
.step-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: var(--surface);
    color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    transition: all .2s ease;
}
.step-dot [data-lucide] { width: 16px; height: 16px; }
.step-label { font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.25; }
.step-line { flex: 1; height: 2px; background: var(--border); margin-top: 16px; border-radius: 2px; transition: background .25s ease; }

.step-node.is-done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.step-node.is-done .step-label { color: var(--text-2); }
.step-node.is-current .step-dot {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 0 0 5px var(--brand-ring);
}
.step-node.is-current .step-label { color: var(--brand-hover); font-weight: 600; }
.step-node.is-clickable { cursor: pointer; }
.step-line.is-done { background: var(--success); }

.wizard-progress { padding: 18px 24px 0; }
.wizard-progress .bar { height: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.wizard-progress .bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand) 0%, #E8564B 100%);
    border-radius: 999px;
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.wizard-progress .bar-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 7px; font-weight: 500; }

.wizard-body { padding: 24px; }

.step-pane { display: none; }
.step-pane.is-active { display: block; animation: paneIn .22s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wizard-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.wizard-foot .foot-right { margin-left: auto; display: flex; gap: 10px; }

.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.type-opt {
    position: relative;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r);
    padding: 16px;
    cursor: pointer;
    background: var(--surface);
    transition: all .16s ease;
    text-align: center;
}
.type-opt input { position: absolute; opacity: 0; }
.type-opt .type-ico {
    width: 40px; height: 40px; margin: 0 auto 9px;
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: all .16s ease;
}
.type-opt .type-name { font-size: 14px; font-weight: 600; color: var(--text); }
.type-opt .type-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.type-opt:hover { border-color: var(--brand); }
.type-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px var(--brand-ring); }
.type-opt:has(input:checked) .type-ico { background: var(--brand); color: #fff; }

.branch-fields { display: none; }
.branch-fields.is-active { display: block; animation: paneIn .2s ease; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.product-tile {
    position: relative;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r);
    padding: 14px 12px;
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-height: 96px;
    justify-content: center;
}
.product-tile input { position: absolute; opacity: 0; }
.product-tile .p-ico {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
}
.product-tile .p-ico img { width: 22px; height: 22px; object-fit: contain; }
.product-tile .p-name { font-size: 12.5px; font-weight: 500; color: var(--text-2); line-height: 1.3; }
.product-tile .p-check {
    position: absolute; top: 8px; right: 8px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: none; align-items: center; justify-content: center;
}
.product-tile .p-check [data-lucide] { width: 11px; height: 11px; stroke-width: 3.4; }
.product-tile:hover { border-color: var(--brand); }
.product-tile:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.product-tile:has(input:checked) .p-check { display: flex; }
.product-tile:has(input:checked) .p-name { color: var(--brand-hover); font-weight: 600; }
.product-tile:has(input:checked) .p-ico { background: #fff; }

.select-all-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pick-count { font-size: 12.5px; color: var(--muted); margin-left: auto; font-weight: 500; }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dropzone {
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--r);
    background: var(--surface-2);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .16s ease;
    position: relative;
    min-height: 186px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    overflow: hidden;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ico {
    width: 42px; height: 42px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
}
.dropzone .dz-title { font-size: 13.5px; font-weight: 600; }
.dropzone .dz-hint { font-size: 11.5px; color: var(--muted); }
.dropzone .dz-preview { position: absolute; inset: 0; display: none; background: #fff; }
.dropzone .dz-preview img { width: 100%; height: 100%; object-fit: contain; background: #0E1F33; }
.dropzone.has-file .dz-preview { display: block; }
.dz-clear {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(19,28,39,.72); color: #fff; border: 0;
    display: none; align-items: center; justify-content: center;
}
.dropzone.has-file .dz-clear { display: flex; }
.dz-clear:hover { background: var(--danger); }

.resume-note {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--info-soft);
    border: 1px solid #C5E0F0;
    color: #0B4F76;
    border-radius: var(--r);
    padding: 13px 15px;
    font-size: 13px;
    margin-bottom: 18px;
}
.resume-note [data-lucide] { flex: none; color: var(--info); }

.result-card {
    max-width: 520px;
    margin: 26px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 44px 32px;
    text-align: center;
}
.result-ico {
    width: 76px; height: 76px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.result-ico [data-lucide] { width: 36px; height: 36px; stroke-width: 2.1; }
.result-ico.is-ok { background: var(--success-soft); color: var(--success); }
.result-ico.is-info { background: var(--info-soft); color: var(--info); }
.result-ico.is-warn { background: var(--warning-soft); color: var(--warning); }
.result-card h1 { font-size: 23px; margin-bottom: 10px; }
.result-card p { color: var(--muted); font-size: 14.5px; max-width: 44ch; margin: 0 auto 10px; }
.result-meta {
    margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-2);
    display: grid; gap: 8px;
}
.result-meta .row-line { display: flex; justify-content: space-between; gap: 14px; }
.result-meta .row-line span:first-child { color: var(--muted); }
.result-meta .row-line span:last-child { font-weight: 600; text-align: right; }

.verify-box {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: left;
}
.verify-box h4 { font-size: 15px; margin-bottom: 5px; }
.verify-box p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.otp-row { display: flex; gap: 10px; align-items: stretch; }
.otp-input {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .34em;
    text-align: center;
    padding: 10px 12px;
    font-variant-numeric: tabular-nums;
    max-width: 210px;
}
.otp-row .btn { white-space: nowrap; }

.verify-done {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--success-soft);
    border: 1px solid #BFE4CB;
    border-radius: var(--r);
    padding: 14px 16px;
    text-align: left;
}
.verify-done [data-lucide] { color: var(--success); width: 26px; height: 26px; flex: none; }
.verify-done strong { color: var(--success); font-size: 14px; }

@media (max-width: 767.98px) {
    .otp-row { flex-direction: column; }
    .otp-input { max-width: 100%; }

    .event-chip { max-width: 34vw; }
    .staff-login { padding: 6px 9px; }

    .pub-main { padding: 20px 14px 40px; }
    .pub-title h1 { font-size: 22px; }
    .pub-title p { font-size: 14px; }

    .event-row { flex-wrap: wrap; gap: 12px; }
    .event-main { flex: 1 1 100%; order: 2; }
    .event-go { order: 3; flex: 1 1 100%; justify-content: center; }
    .event-desc { white-space: normal; }
    .wizard-body, .wizard-steps, .wizard-progress { padding-left: 16px; padding-right: 16px; }
    .wizard-foot { padding: 14px 16px; }
    .step-node { width: 56px; }
    .step-label { font-size: 10.5px; }
    .upload-grid { grid-template-columns: 1fr; }
    .type-toggle { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
    .choice-grid.cols-3, .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .result-card { padding: 34px 20px; }
    .wizard-foot .btn { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
    .step-node { width: 44px; }
    .step-label { display: none; }
    .choice-grid.cols-3, .choice-grid.cols-2 { grid-template-columns: 1fr; }
}
