.tg-branch-qr {
    display: grid;
    gap: 1.25rem;
}

.tg-branch-qr__toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.tg-branch-qr__field {
    color: rgb(55 65 81);
    display: grid;
    flex: 1 1 18rem;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.4rem;
    max-width: 30rem;
}

.dark .tg-branch-qr__field {
    color: rgb(229 231 235);
}

.tg-branch-qr__select {
    background: rgb(255 255 255);
    border: 1px solid rgb(209 213 219);
    border-radius: 0.5rem;
    color: rgb(17 24 39);
    min-height: 2.75rem;
    padding: 0 0.75rem;
}

.dark .tg-branch-qr__select {
    background: rgb(17 24 39);
    border-color: rgb(75 85 99);
    color: rgb(249 250 251);
}

.tg-branch-qr__status {
    color: rgb(75 85 99);
    display: grid;
    font-size: 0.875rem;
    gap: 0.2rem;
    text-align: right;
}

.tg-branch-qr__status strong {
    color: rgb(17 24 39);
    font-weight: 800;
}

.dark .tg-branch-qr__status {
    color: rgb(156 163 175);
}

.dark .tg-branch-qr__status strong {
    color: rgb(249 250 251);
}

.tg-branch-qr__split {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: min(72vh, 52rem);
}

.tg-branch-qr__panel {
    align-content: start;
    border-radius: 1rem;
    display: grid;
    gap: 1.1rem;
    justify-items: center;
    overflow: hidden;
    padding: clamp(1rem, 2.4vw, 2rem);
}

.tg-branch-qr__panel--checkin {
    background: linear-gradient(145deg, rgb(236 253 245), rgb(204 251 241));
    border: 1px solid rgb(94 234 212);
}

.tg-branch-qr__panel--join {
    background: linear-gradient(145deg, rgb(255 247 237), rgb(255 237 213));
    border: 1px solid rgb(253 186 116);
}

.dark .tg-branch-qr__panel--checkin {
    background: linear-gradient(145deg, rgb(6 78 59), rgb(20 83 45));
    border-color: rgb(20 184 166);
}

.dark .tg-branch-qr__panel--join {
    background: linear-gradient(145deg, rgb(67 20 7), rgb(124 45 18));
    border-color: rgb(249 115 22);
}

.tg-branch-qr__panel-header {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
}

.tg-branch-qr__panel-header span {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    text-transform: uppercase;
}

.tg-branch-qr__panel--checkin .tg-branch-qr__panel-header span {
    background: rgb(20 184 166);
    color: rgb(4 47 46);
}

.tg-branch-qr__panel--join .tg-branch-qr__panel-header span {
    background: rgb(249 115 22);
    color: rgb(67 20 7);
}

.tg-branch-qr__panel-header h2 {
    color: rgb(17 24 39);
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
}

.dark .tg-branch-qr__panel-header h2 {
    color: rgb(249 250 251);
}

.tg-branch-qr__visual {
    background: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.85rem;
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.12);
    padding: clamp(0.7rem, 1.8vw, 1.15rem);
}

.tg-branch-qr__visual svg {
    display: block;
    height: auto;
    width: 100%;
}

.tg-branch-qr__visual--large,
.tg-branch-qr__visual--small {
    width: min(88%, 31rem);
}

.tg-branch-qr__panel-note {
    color: rgb(15 118 110);
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
}

.dark .tg-branch-qr__panel-note {
    color: rgb(153 246 228);
}

.tg-branch-qr__join-codes {
    display: grid;
    gap: 0.65rem;
    width: min(100%, 24rem);
}

.tg-branch-qr__join-code {
    align-items: center;
    background: rgb(255 255 255 / 0.86);
    border: 1px solid rgb(254 215 170);
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.dark .tg-branch-qr__join-code {
    background: rgb(17 24 39 / 0.72);
    border-color: rgb(154 52 18);
}

.tg-branch-qr__join-code span {
    color: rgb(75 85 99);
    font-size: 0.8rem;
    font-weight: 800;
}

.dark .tg-branch-qr__join-code span {
    color: rgb(229 231 235);
}

.tg-branch-qr__join-code code {
    color: rgb(17 24 39);
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.dark .tg-branch-qr__join-code code {
    color: rgb(249 250 251);
}

.tg-branch-qr__join-code--muted {
    opacity: 0.78;
}

.tg-branch-qr__surface {
    align-items: center;
    background: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    display: grid;
    justify-items: center;
    min-height: 28rem;
    padding: 2rem;
}

.tg-branch-qr__empty {
    color: rgb(75 85 99);
    font-size: 1rem;
    margin: 0;
}

.dark .tg-branch-qr__surface {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.dark .tg-branch-qr__empty {
    color: rgb(209 213 219);
}

@media (max-width: 900px) {
    .tg-branch-qr__split {
        grid-template-columns: 1fr;
    }

    .tg-branch-qr__status {
        text-align: left;
    }
}
