body{font-family:sans-serif;line-height:1.6;margin:0;background:#f6f7f9;color:#111}
header,main,footer{padding:1rem 1.25rem}
header{background:#fff;border-bottom:1px solid #ddd}
nav a{display:inline-block;margin-right:1rem;margin-bottom:.35rem}
.card{background:#fff;border:1px solid #ddd;border-radius:.6rem;padding:1rem;margin:1rem 0}
label{display:block;font-weight:700;margin-top:1rem}
input:not([type=checkbox]),textarea,select{width:100%;max-width:640px;padding:.55rem}
textarea{font-family:inherit}
button{padding:.65rem 1rem;font-weight:700;cursor:pointer}
.success{color:#0a6b2b}.error{color:#b00020}
.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.metric{border:1px solid #ddd;border-radius:.6rem;padding:1rem;background:#fafafa}
.metric strong{display:block;font-size:2rem}
.metric span{display:block}
table{border-collapse:collapse;width:100%;background:#fff}
th,td{border:1px solid #ddd;padding:.5rem;text-align:left;vertical-align:top}
pre{white-space:pre-wrap;background:#f3f3f3;border:1px solid #ddd;padding:1rem;overflow:auto}
.inline-form{display:inline}
.inline-form button{padding:.25rem .5rem}
code{display:inline-block;background:#f3f3f3;border:1px solid #ddd;border-radius:.25rem;padding:.1rem .25rem;margin:.1rem}

.help-text{margin:.25rem 0 1rem;color:#555;font-size:.95rem}

.card-subform{background:#fafafa;border:1px solid #ddd;border-radius:.5rem;padding:1rem;margin:1rem 0}

fieldset{border:1px solid #ddd;border-radius:.5rem;margin:1rem 0;padding:1rem}legend{font-weight:700}.card-subform{background:#fafafa;border:1px solid #ddd;border-radius:.5rem;padding:1rem;margin:1rem 0}

.action-form{border:1px solid #ddd;border-radius:.5rem;padding:1rem;margin:1rem 0;background:#fafafa}

.muted{color:#666}.small-text{font-size:.9rem}

.site-footer-expanded{margin-top:2rem;background:#293a54;color:#fff;padding:0}
.site-footer-expanded a{color:#fff;text-decoration:none}
.site-footer-expanded a:focus,.site-footer-expanded a:hover{text-decoration:underline}
.site-footer-top{display:grid;grid-template-columns:minmax(180px,280px) 1fr;gap:1.5rem;align-items:center;max-width:1200px;margin:0 auto;padding:1.1rem 1.25rem}
.site-footer-logo{max-width:240px;max-height:90px;width:auto;height:auto}
.site-footer-name{font-size:1.4rem}
.site-footer-info p{margin:.25rem 0;font-size:.95rem}
.site-footer-links{margin-top:.8rem!important}
.site-footer-bottom{background:#555;padding:.75rem 1.25rem;border-bottom:3px solid #00aeef}
.site-footer-bottom p{max-width:1200px;margin:0 auto;font-size:.9rem;color:#eee}
@media (max-width:720px){
    .site-footer-top{grid-template-columns:1fr}
    .site-footer-logo{max-width:200px}
}


/* compact footer override */
.site-footer-compact{margin-top:1rem;background:#293a54;color:#fff;padding:0}
.site-footer-compact a{color:#fff;text-decoration:none}
.site-footer-compact a:focus,.site-footer-compact a:hover{text-decoration:underline}
.site-footer-main{display:grid;grid-template-columns:150px 1fr;gap:.9rem;align-items:center;max-width:1200px;margin:0 auto;padding:.55rem 1rem}
.site-footer-compact .site-footer-logo{max-width:140px;max-height:46px;width:auto;height:auto;object-fit:contain}
.site-footer-compact .site-footer-name{font-size:1rem}
.site-footer-compact .site-footer-info p{margin:.12rem 0;font-size:.82rem;line-height:1.35}
.site-footer-compact .site-footer-links{margin-top:.25rem!important}
.site-footer-compact .site-footer-bottom{background:#555;padding:.35rem 1rem;border-bottom:2px solid #00aeef}
.site-footer-compact .site-footer-bottom p{max-width:1200px;margin:0 auto;font-size:.78rem;color:#eee;line-height:1.25}
@media (max-width:720px){
    .site-footer-main{grid-template-columns:1fr;gap:.35rem;padding:.6rem .8rem}
    .site-footer-compact .site-footer-logo{max-width:120px;max-height:38px}
    .site-footer-compact .site-footer-info p{font-size:.78rem}
    .site-footer-compact .site-footer-bottom{padding:.3rem .8rem}
}


/* flat footer override */
.site-footer-flat{margin:1.25rem 0 0;background:#293a54;color:#fff;padding:0;border-bottom:2px solid #00aeef}
.site-footer-flat a{color:#fff;text-decoration:none}
.site-footer-flat a:focus,.site-footer-flat a:hover{text-decoration:underline}
.site-footer-flat .site-footer-inner{max-width:1200px;margin:0 auto;padding:.65rem 1rem}
.site-footer-flat p{margin:.18rem 0;font-size:.82rem;line-height:1.35}
.site-footer-flat .site-footer-title{font-size:.86rem}
.site-footer-flat .site-footer-links{margin-top:.35rem}
.site-footer-flat .site-footer-copy{margin-top:.45rem;color:#e8e8e8;font-size:.76rem}
.site-footer-flat span{margin:0 .25rem;color:#d7d7d7}
@media (max-width:720px){
    .site-footer-flat{margin-top:1rem}
    .site-footer-flat .site-footer-inner{padding:.65rem .85rem}
    .site-footer-flat p{font-size:.76rem;line-height:1.4}
    .site-footer-flat .site-footer-title{font-size:.8rem}
    .site-footer-flat .site-footer-copy{font-size:.72rem}
}


/* footer v019 hard override */
footer.site-footer{
    display:block!important;
    width:100%!important;
    margin:1rem 0 0!important;
    padding:0!important;
    background:#293a54!important;
    color:#fff!important;
    border-bottom:2px solid #00aeef!important;
    box-sizing:border-box!important;
}
footer.site-footer .site-footer-inner{
    max-width:1200px!important;
    margin:0 auto!important;
    padding:.48rem .85rem!important;
    box-sizing:border-box!important;
}
footer.site-footer p.footer-line,
footer.site-footer p{
    margin:.1rem 0!important;
    padding:0!important;
    color:#fff!important;
    font-size:.74rem!important;
    line-height:1.28!important;
    word-break:keep-all!important;
    overflow-wrap:anywhere!important;
}
footer.site-footer .footer-title{
    font-size:.78rem!important;
}
footer.site-footer .footer-links{
    margin-top:.22rem!important;
}
footer.site-footer .footer-copy{
    margin-top:.28rem!important;
    color:#e8e8e8!important;
    font-size:.7rem!important;
}
footer.site-footer a{
    color:#fff!important;
    text-decoration:underline!important;
    text-underline-offset:2px!important;
}
footer.site-footer span{
    margin:0 .18rem!important;
    color:#d9d9d9!important;
}
footer.site-footer img,
footer.site-footer .site-footer-logo,
footer.site-footer .site-footer-logo-wrap{
    display:none!important;
}
@media (max-width:720px){
    footer.site-footer{
        margin-top:.75rem!important;
    }
    footer.site-footer .site-footer-inner{
        padding:.45rem .65rem!important;
    }
    footer.site-footer p.footer-line,
    footer.site-footer p{
        font-size:.68rem!important;
        line-height:1.25!important;
        letter-spacing:-.02em!important;
    }
    footer.site-footer .footer-title{
        font-size:.72rem!important;
    }
    footer.site-footer .footer-copy{
        font-size:.64rem!important;
    }
    footer.site-footer span{
        margin:0 .12rem!important;
    }
}


/* v020 sticky footer layout */
html{
    min-height:100%!important;
}
body{
    min-height:100vh!important;
    display:flex!important;
    flex-direction:column!important;
}
body > main{
    flex:1 0 auto!important;
}
footer.site-footer{
    flex-shrink:0!important;
    margin-top:auto!important;
}

/* admin layout also keeps footer at viewport bottom when content is short */
body > header{
    flex-shrink:0!important;
}
body > main.card,
body > main{
    width:auto;
}


/* v021 grouped admin menu + mobile hamburger */
.admin-header{
    background:#fff!important;
    border-bottom:1px solid #ddd!important;
    padding:1rem 1.25rem!important;
}
.admin-header-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:1rem!important;
}
.admin-header h1{
    margin:.4rem 0 1rem!important;
    font-size:1.7rem!important;
}
.admin-menu-toggle{
    display:none;
    border:1px solid #333;
    border-radius:.4rem;
    background:#fff;
    color:#111;
    padding:.5rem .75rem;
    font-weight:700;
}
.admin-menu{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
    gap:.8rem!important;
    margin-top:.25rem!important;
}
.admin-menu-group{
    border:1px solid #e1e1e1!important;
    border-radius:.5rem!important;
    padding:.65rem!important;
    background:#fafafa!important;
}
.admin-menu-group h2{
    margin:0 0 .45rem!important;
    font-size:.95rem!important;
}
.admin-menu-group ul{
    list-style:none!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:.35rem .6rem!important;
}
.admin-menu-group li{
    margin:0!important;
}
.admin-menu-group a{
    display:inline-block!important;
    padding:.15rem .05rem!important;
}
.admin-menu-group a.active,
.admin-menu-group a[aria-current="page"]{
    font-weight:700!important;
    text-decoration-thickness:2px!important;
}
@media (max-width:720px){
    .admin-header{
        padding:.85rem 1rem!important;
    }
    .admin-header h1{
        margin:.2rem 0!important;
        font-size:1.45rem!important;
    }
    .admin-menu-toggle{
        display:inline-block!important;
    }
    .js .admin-menu{
        display:none!important;
    }
    .js .admin-menu.is-open{
        display:block!important;
    }
    .admin-menu{
        margin-top:.85rem!important;
    }
    .admin-menu-group{
        margin:.55rem 0!important;
        padding:.75rem!important;
    }
    .admin-menu-group h2{
        font-size:1rem!important;
    }
    .admin-menu-group ul{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:.45rem .7rem!important;
    }
    .admin-menu-group a{
        padding:.25rem 0!important;
        font-size:.95rem!important;
    }
}
@media (max-width:380px){
    .admin-menu-group ul{
        grid-template-columns:1fr!important;
    }
}

/* v022 menu icon button */
.admin-menu-toggle span[aria-hidden="true"]{
    display:inline-block;
    min-width:1.1em;
    font-weight:900;
    margin-right:.15rem;
}

/* v030 reservation add convenience */
.availability-box{
    margin:1rem 0;
    padding:.85rem 1rem;
    border:1px solid #ccc;
    border-radius:.5rem;
    background:#f7f7f7;
}
.availability-box.is-good{
    border-color:#2f7d32;
    background:#eff8ef;
    color:#154d17;
}
.availability-box.is-bad{
    border-color:#b3261e;
    background:#fff1f0;
    color:#7f1d1d;
}


/* v037 admin UI polish */
main{max-width:1280px;margin:0 auto;width:100%;box-sizing:border-box}
.card{box-shadow:0 8px 24px rgba(15,23,42,.05);border-color:#e5e7eb}
.card h2{margin-top:0}.card h3{margin-top:1.4rem;border-top:1px solid #eef1f5;padding-top:1rem}
.form-grid{display:grid;gap:1rem;align-items:start}.form-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
input:not([type=checkbox]):not([type=radio]),textarea,select{border:1px solid #cbd5e1;border-radius:.45rem;background:#fff;box-sizing:border-box}
input:focus,textarea:focus,select:focus,button:focus,a:focus{outline:3px solid rgba(109,145,182,.35);outline-offset:2px}
button{border:1px solid #526f8d;border-radius:.45rem;background:#6D91B6;color:#fff}
button:hover:not(:disabled){filter:brightness(.96)}
button:disabled{background:#cbd5e1;border-color:#cbd5e1;color:#64748b;cursor:not-allowed}
a{color:#1d4f7a}.success-inline{color:#0a6b2b!important;font-weight:700}.warning-inline{color:#7a4b00!important}
.availability-box{font-weight:700}.availability-box.is-checking{border-color:#6D91B6;background:#f2f7fb;color:#244967}
@media (max-width:720px){.form-grid.two-col{grid-template-columns:1fr}header,main,footer{padding-left:.85rem;padding-right:.85rem}table{font-size:.92rem}th,td{padding:.42rem}}


/* v039 reservation register/edit width and choice layout fix */
#reservation-add-form,
#reservation-edit-form{
    max-width:none!important;
}
#reservation-add-form label,
#reservation-edit-form label{
    max-width:none;
}
#reservation-add-form input:not([type=checkbox]):not([type=radio]),
#reservation-add-form textarea,
#reservation-add-form select,
#reservation-edit-form input:not([type=checkbox]):not([type=radio]),
#reservation-edit-form textarea,
#reservation-edit-form select{
    width:100%;
    max-width:none!important;
}
.reservation-form-card{
    max-width:none;
}
.page-title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1rem;
    border-bottom:1px solid #eef1f5;
    padding-bottom:.75rem;
    margin-bottom:1rem;
}
.page-title-row h2{margin-bottom:.2rem}
.page-title-actions,
.form-actions{
    display:flex;
    gap:.6rem;
    flex-wrap:wrap;
    align-items:center;
}
.button-like{
    display:inline-block;
    padding:.62rem 1rem;
    border:1px solid #526f8d;
    border-radius:.45rem;
    background:#6D91B6;
    color:#fff!important;
    text-decoration:none;
    font-weight:700;
}
.button-like.secondary{
    background:#fff;
    color:#1d4f7a!important;
    border-color:#9fb4ca;
}
.choice-fieldset{
    max-width:none;
}
.choice-row{
    display:flex;
    flex-wrap:wrap;
    gap:.55rem .75rem;
    align-items:center;
}
.choice-row-compact{
    gap:.75rem;
}
.choice-pill{
    display:inline-flex!important;
    align-items:center;
    gap:.42rem;
    width:auto!important;
    max-width:none!important;
    margin:.15rem 0!important;
    padding:.5rem .75rem;
    border:1px solid #cbd5e1;
    border-radius:999px;
    background:#f8fafc;
    font-weight:700;
    cursor:pointer;
}
.choice-pill input{
    margin:0;
    width:auto!important;
}
.choice-pill input:checked + span{
    color:#244967;
}
.inline-check{
    display:inline-flex!important;
    align-items:center;
    gap:.45rem;
    width:auto!important;
    max-width:none!important;
}
.inline-check input{
    width:auto!important;
}
.assignment-panel{
    border:1px solid #e5e7eb;
    border-radius:.6rem;
    padding:.85rem;
    background:#fafafa;
}
@media (max-width:720px){
    .page-title-row{
        display:block;
    }
    .page-title-actions{
        margin-top:.65rem;
    }
}


/* v040 admin full-width hard override
   예약 등록/수정 화면이 PC에서 모바일 폭처럼 보이는 현상 방지 */
body > main,
main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:1rem 1.25rem!important;
    box-sizing:border-box!important;
}
main > .card,
main section.card,
.card.reservation-form-card{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
}
#reservation-add-form,
#reservation-edit-form,
.wide-admin-form{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
}
#reservation-add-form > label,
#reservation-edit-form > label,
.wide-admin-form > label{
    width:100%!important;
    max-width:none!important;
}
#reservation-add-form input:not([type=checkbox]):not([type=radio]),
#reservation-add-form textarea,
#reservation-add-form select,
#reservation-edit-form input:not([type=checkbox]):not([type=radio]),
#reservation-edit-form textarea,
#reservation-edit-form select,
.wide-admin-form input:not([type=checkbox]):not([type=radio]),
.wide-admin-form textarea,
.wide-admin-form select{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
}
#reservation-add-form .form-grid.two-col,
#reservation-edit-form .form-grid.two-col,
.wide-admin-form .form-grid.two-col{
    grid-template-columns:repeat(2,minmax(280px,1fr))!important;
}
.choice-row{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
}
.choice-pill{
    flex:0 0 auto!important;
}
@media (max-width:720px){
    body > main,
    main{
        padding:.85rem!important;
    }
    #reservation-add-form .form-grid.two-col,
    #reservation-edit-form .form-grid.two-col,
    .wide-admin-form .form-grid.two-col{
        grid-template-columns:1fr!important;
    }
    .choice-pill{
        flex:1 1 auto!important;
    }
}


/* v041 register/edit matching + admin dark mode */
:root{
    --admin-bg:#f6f7f9;
    --admin-surface:#ffffff;
    --admin-surface-2:#fafafa;
    --admin-text:#111827;
    --admin-muted:#64748b;
    --admin-border:#d9e0ea;
    --admin-border-soft:#eef1f5;
    --admin-brand:#6D91B6;
    --admin-brand-strong:#244967;
    --admin-link:#1d4f7a;
    --admin-good-bg:#eff8ef;
    --admin-good-border:#2f7d32;
    --admin-good-text:#154d17;
    --admin-bad-bg:#fff1f0;
    --admin-bad-border:#b3261e;
    --admin-bad-text:#7f1d1d;
    --admin-shadow:0 8px 24px rgba(15,23,42,.05);
}
html[data-theme="dark"]{
    --admin-bg:#0f172a;
    --admin-surface:#111827;
    --admin-surface-2:#1f2937;
    --admin-text:#e5e7eb;
    --admin-muted:#a7b0c0;
    --admin-border:#334155;
    --admin-border-soft:#263244;
    --admin-brand:#8fb2d4;
    --admin-brand-strong:#d5e7f7;
    --admin-link:#9ec5ee;
    --admin-good-bg:#0f2a1b;
    --admin-good-border:#2f7d32;
    --admin-good-text:#b7f7c7;
    --admin-bad-bg:#331717;
    --admin-bad-border:#b45353;
    --admin-bad-text:#fecaca;
    --admin-shadow:0 8px 24px rgba(0,0,0,.28);
    color-scheme:dark;
}
body{
    background:var(--admin-bg)!important;
    color:var(--admin-text)!important;
}
header,
.admin-header,
.card,
.metric,
.card-subform,
.action-form,
.assignment-panel{
    background:var(--admin-surface)!important;
    color:var(--admin-text)!important;
    border-color:var(--admin-border)!important;
}
.card{
    box-shadow:var(--admin-shadow)!important;
}
.card h3,
.page-title-row{
    border-color:var(--admin-border-soft)!important;
}
.help-text,
.muted,
.small-text{
    color:var(--admin-muted)!important;
}
a{
    color:var(--admin-link)!important;
}
input:not([type=checkbox]):not([type=radio]),
textarea,
select{
    background:var(--admin-surface)!important;
    color:var(--admin-text)!important;
    border-color:var(--admin-border)!important;
}
input::placeholder,
textarea::placeholder{
    color:var(--admin-muted)!important;
}
table{
    background:var(--admin-surface)!important;
    color:var(--admin-text)!important;
}
th,td{
    border-color:var(--admin-border)!important;
}
pre,code{
    background:var(--admin-surface-2)!important;
    color:var(--admin-text)!important;
    border-color:var(--admin-border)!important;
}
.admin-menu-group{
    background:var(--admin-surface)!important;
    border-color:var(--admin-border)!important;
}
.admin-menu-group a.active,
.admin-menu-group a[aria-current="page"]{
    color:var(--admin-brand-strong)!important;
}
.choice-pill{
    background:var(--admin-surface-2)!important;
    color:var(--admin-text)!important;
    border-color:var(--admin-border)!important;
}
.choice-pill input:checked + span{
    color:var(--admin-brand-strong)!important;
}
.availability-box{
    background:var(--admin-surface-2)!important;
    color:var(--admin-text)!important;
    border-color:var(--admin-border)!important;
}
.availability-box.is-good{
    background:var(--admin-good-bg)!important;
    color:var(--admin-good-text)!important;
    border-color:var(--admin-good-border)!important;
}
.availability-box.is-bad{
    background:var(--admin-bad-bg)!important;
    color:var(--admin-bad-text)!important;
    border-color:var(--admin-bad-border)!important;
}
.availability-box.is-checking{
    border-color:var(--admin-brand)!important;
    background:var(--admin-surface-2)!important;
    color:var(--admin-brand-strong)!important;
}
button,
.button-like{
    background:var(--admin-brand)!important;
    border-color:var(--admin-brand)!important;
    color:#fff!important;
}
.button-like.secondary{
    background:var(--admin-surface)!important;
    color:var(--admin-link)!important;
    border-color:var(--admin-border)!important;
}
button:disabled{
    background:#94a3b8!important;
    border-color:#94a3b8!important;
    color:#e2e8f0!important;
}
.admin-header-actions{
    display:flex;
    align-items:center;
    gap:.5rem;
    flex-wrap:wrap;
}
.admin-theme-toggle{
    padding:.5rem .75rem!important;
    min-width:4.6rem;
    background:var(--admin-surface)!important;
    color:var(--admin-link)!important;
    border-color:var(--admin-border)!important;
}
#reservation-add-form .choice-row,
#reservation-edit-form .choice-row{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
}
#reservation-add-form .choice-pill,
#reservation-edit-form .choice-pill{
    flex:0 0 auto!important;
}
@media (max-width:720px){
    .admin-header-actions{
        width:100%;
        justify-content:flex-start;
    }
}


/* v042 drag sort */
.sort-handle-cell{
    min-width:7.2rem;
    white-space:nowrap;
}
.drag-handle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:1.8rem;
    height:1.8rem;
    margin-right:.25rem;
    border:1px solid var(--admin-border, #cbd5e1);
    border-radius:.4rem;
    background:var(--admin-surface-2, #f8fafc);
    color:var(--admin-muted, #64748b);
    cursor:grab;
    font-weight:900;
}
tr.is-dragging{
    opacity:.55;
}
tr.drag-over td{
    border-top:3px solid var(--admin-brand, #6D91B6)!important;
}
.sort-mini-button{
    padding:.25rem .45rem!important;
    margin-right:.15rem;
    font-size:.82rem;
    line-height:1.2;
    background:var(--admin-surface, #fff)!important;
    color:var(--admin-link, #1d4f7a)!important;
    border-color:var(--admin-border, #cbd5e1)!important;
}
button[data-sort-save]:disabled{
    opacity:.65;
}
@media (max-width:720px){
    .sort-handle-cell{
        min-width:8rem;
    }
    .drag-handle{
        width:1.7rem;
        height:1.7rem;
    }
}


/* v043 compact sort cell */
.sort-order-cell{
    width:8.2rem;
    min-width:8.2rem;
    white-space:nowrap;
}
.sort-control-compact{
    display:inline-flex;
    align-items:center;
    gap:.18rem;
}
.sort-control-compact strong{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:2rem;
    padding:.1rem .25rem;
    font-size:.9rem;
}
.drag-handle.compact{
    width:1.55rem;
    height:1.55rem;
    margin:0;
    cursor:grab;
}
.sort-control-compact .sort-mini-button{
    width:1.65rem;
    height:1.55rem;
    padding:0!important;
    margin:0!important;
    line-height:1;
    font-size:.75rem;
}
@media (max-width:720px){
    .sort-order-cell{
        width:8.6rem;
        min-width:8.6rem;
    }
}


/* v048 per-person therapist matching */
.assignment-match-panel{
    margin-top:1rem;
    padding:1rem;
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:.75rem;
    background:var(--admin-surface-2, #fafafa);
}
.assignment-match-header{
    display:flex;
    align-items:baseline;
    gap:.75rem;
    flex-wrap:wrap;
    margin-bottom:.75rem;
}
.assignment-match-rows{
    display:grid;
    gap:.75rem;
}
.assignment-match-row{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(220px,1fr);
    gap:.75rem;
    align-items:end;
}
.assignment-match-row label{
    margin-top:0;
}
.is-invalid{
    border-color:#b3261e!important;
    outline:2px solid rgba(179,38,30,.18);
}
.compact-list{
    margin:.25rem 0;
    padding-left:1.25rem;
}
.compact-list li{
    margin:.15rem 0;
}
@media (max-width:720px){
    .assignment-match-row{
        grid-template-columns:1fr;
    }
}


/* v049 mixed assignment */
.assignment-match-row select option[value="0"]{
    font-weight:700;
}


/* v052 reservation list/detail polish */
.quick-filter-row{
    display:flex;
    gap:.5rem;
    flex-wrap:wrap;
    margin:.75rem 0 1rem;
}
.reservation-filter-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:.85rem;
    align-items:end;
}
.filter-check{
    align-self:center;
}
.status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:4.2rem;
    padding:.2rem .45rem;
    border-radius:999px;
    font-weight:700;
    font-size:.86rem;
    border:1px solid var(--admin-border, #d9e0ea);
}
.status-badge.status-confirmed{
    background:var(--admin-good-bg, #eff8ef);
    color:var(--admin-good-text, #154d17);
    border-color:var(--admin-good-border, #2f7d32);
}
.status-badge.status-pending{
    background:#fff7ed;
    color:#9a3412;
    border-color:#fdba74;
}
html[data-theme="dark"] .status-badge.status-pending{
    background:#43250c;
    color:#fed7aa;
    border-color:#9a3412;
}
.status-badge.status-cancelled,
.status-badge.status-no_show{
    background:var(--admin-bad-bg, #fff1f0);
    color:var(--admin-bad-text, #7f1d1d);
    border-color:var(--admin-bad-border, #b3261e);
}
.status-badge.status-completed{
    background:var(--admin-surface-2, #f8fafc);
    color:var(--admin-muted, #64748b);
}
.reservation-list-table .assignment-cell{
    min-width:12rem;
}
.reservation-list-table .compact-list{
    margin:0;
}
.memo-cell{
    min-width:10rem;
}
.reservation-row.status-cancelled,
.reservation-row.status-completed,
.reservation-row.status-no_show{
    opacity:.82;
}
@media (max-width:900px){
    .reservation-list-table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }
    .reservation-list-table .compact-list{
        white-space:normal;
    }
}


/* v053 mobile admin layout hardening */
html,
body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
}
body > main,
main{
    min-width:0!important;
}
.card{
    min-width:0!important;
}
.table-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
@media (max-width:720px){
    body > main,
    main{
        width:100%!important;
        max-width:100%!important;
        padding:.65rem!important;
        overflow-x:hidden!important;
    }
    .admin-header{
        padding:.7rem .65rem!important;
    }
    .admin-header-top{
        gap:.45rem!important;
        align-items:flex-start!important;
    }
    .admin-header h1{
        font-size:1.05rem!important;
        line-height:1.25!important;
        word-break:keep-all!important;
    }
    .admin-header-actions{
        width:auto!important;
        margin-left:auto!important;
        justify-content:flex-end!important;
    }
    .admin-theme-toggle,
    .admin-menu-toggle{
        padding:.38rem .5rem!important;
        font-size:.78rem!important;
        min-width:auto!important;
    }
    .card{
        width:100%!important;
        padding:.75rem!important;
        margin:.65rem 0!important;
        overflow-x:auto!important;
        box-sizing:border-box!important;
    }
    .card h2{
        font-size:1rem!important;
        line-height:1.3!important;
    }
    .dashboard-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:.45rem!important;
    }
    .metric{
        padding:.65rem!important;
        min-width:0!important;
    }
    .metric strong{
        font-size:1.35rem!important;
        line-height:1.1!important;
    }
    .metric span{
        font-size:.78rem!important;
        line-height:1.25!important;
        word-break:keep-all!important;
    }
    table{
        min-width:620px!important;
        width:100%!important;
        font-size:.8rem!important;
    }
    th,td{
        padding:.36rem!important;
        word-break:keep-all!important;
        overflow-wrap:normal!important;
    }
    .compact-list{
        padding-left:1rem!important;
    }
    .quick-filter-row{
        gap:.35rem!important;
    }
    .quick-filter-row .button-like{
        padding:.45rem .6rem!important;
        font-size:.82rem!important;
    }
    .reservation-filter-form{
        grid-template-columns:1fr!important;
    }
    footer.site-footer .site-footer-inner{
        padding:.45rem .65rem!important;
    }
}
@media (max-width:360px){
    .dashboard-grid{
        grid-template-columns:1fr!important;
    }
}


/* v054 compact accordion GNB */
.admin-menu{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
    align-items:start!important;
}
.admin-menu-group{
    padding:0!important;
    overflow:hidden;
}
.admin-menu-group-toggle{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:.5rem!important;
    padding:.75rem .85rem!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--admin-text, #111827)!important;
    text-align:left!important;
    cursor:pointer;
}
.admin-menu-group-title{
    font-size:.96rem;
    font-weight:800;
}
.admin-menu-group-icon{
    transition:transform .16s ease;
    color:var(--admin-muted, #64748b);
}
.admin-menu-group.is-open .admin-menu-group-icon{
    transform:rotate(180deg);
}
.admin-menu-group.is-active .admin-menu-group-toggle{
    background:rgba(109,145,182,.12)!important;
}
.admin-menu-items{
    list-style:none!important;
    margin:0!important;
    padding:.35rem .85rem .8rem!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:.42rem .75rem!important;
    border-top:1px solid var(--admin-border-soft, #eef1f5);
}
.admin-menu-items[hidden]{
    display:none!important;
}
.admin-menu-items li{
    margin:0!important;
}
.admin-menu-items a{
    display:inline-block!important;
    padding:.25rem 0!important;
    font-size:.94rem!important;
}
@media (max-width:720px){
    .admin-menu{
        display:block!important;
    }
    .js .admin-menu{
        display:none!important;
    }
    .js .admin-menu.is-open{
        display:block!important;
    }
    .admin-menu-group-toggle{
        padding:.72rem .8rem!important;
    }
    .admin-menu-items{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:.4rem .65rem!important;
        padding:.45rem .8rem .85rem!important;
    }
}
@media (max-width:380px){
    .admin-menu-items{
        grid-template-columns:1fr!important;
    }
}


/* v055 reservation screens finishing */
.button-like.is-current,
.quick-filter-row .is-current{
    background:var(--admin-brand)!important;
    color:#fff!important;
    border-color:var(--admin-brand)!important;
}
.action-buttons{
    display:flex;
    gap:.35rem;
    flex-wrap:wrap;
    align-items:center;
}
.mini-link{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    padding:.28rem .48rem!important;
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:.4rem;
    text-decoration:none!important;
    font-weight:700;
    background:var(--admin-surface, #fff);
}
.row-actions-menu{
    position:relative;
    display:inline-block;
}
.row-actions-menu summary{
    list-style:none;
    cursor:pointer;
    padding:.28rem .48rem;
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:.4rem;
    font-weight:700;
    color:#fff;
    background:var(--admin-brand, #6D91B6);
}
.row-actions-menu summary::-webkit-details-marker{
    display:none;
}
.row-actions-panel{
    position:absolute;
    right:0;
    z-index:10;
    min-width:5.5rem;
    padding:.4rem;
    margin-top:.25rem;
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:.5rem;
    background:var(--admin-surface, #fff);
    box-shadow:var(--admin-shadow, 0 8px 24px rgba(15,23,42,.08));
}
.row-actions-panel form{
    margin:.2rem 0;
}
.row-actions-panel button{
    width:100%;
    padding:.35rem .55rem!important;
}
.assignment-preview li:nth-child(n+4){
    display:none;
}
.reservation-detail-card .page-title-row{
    margin-bottom:1rem;
}
.detail-section-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(260px,1fr));
    gap:1rem;
}
.detail-box{
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:.75rem;
    padding:1rem;
    background:var(--admin-surface-2, #fafafa);
}
.detail-box-wide{
    grid-column:1 / -1;
}
.detail-box h3{
    margin:.1rem 0 .75rem!important;
    padding:0!important;
    border:0!important;
    font-size:1.05rem;
}
.detail-list{
    margin:0;
}
.detail-list div{
    display:grid;
    grid-template-columns:7rem 1fr;
    gap:.65rem;
    padding:.38rem 0;
    border-bottom:1px solid var(--admin-border-soft, #eef1f5);
}
.detail-list div:last-child{
    border-bottom:0;
}
.detail-list dt{
    font-weight:800;
    color:var(--admin-muted, #64748b);
}
.detail-list dd{
    margin:0;
}
.compact-action-form{
    display:grid;
    grid-template-columns:minmax(200px,1fr) auto;
    gap:.6rem;
    align-items:end;
}
.compact-action-form label{
    margin-top:0;
}
.action-card > p:last-child{
    display:flex;
    gap:.5rem;
    flex-wrap:wrap;
}
@media (max-width:720px){
    .detail-section-grid{
        grid-template-columns:1fr;
    }
    .detail-list div{
        grid-template-columns:1fr;
        gap:.15rem;
    }
    .compact-action-form{
        grid-template-columns:1fr;
    }
    .actions-cell{
        min-width:8rem;
    }
    .row-actions-panel{
        left:0;
        right:auto;
    }
}


/* v056 SMS campaign */
fieldset{
    margin-top:1rem;
}
#manual-target-panel{
    margin-top:1rem;
}


/* v059 SMS custom variables */
.custom-vars-fieldset{
    border-color:var(--admin-brand, #6D91B6);
    background:var(--admin-surface-2, #fafafa);
}
.custom-vars-fieldset code{
    margin-left:.25rem;
}


/* v061 customer filters */
.customer-filter-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:.85rem;
    align-items:end;
}
.customer-filter-form .form-actions{
    align-self:end;
}
.status-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:2.6rem;
    padding:.15rem .42rem;
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:999px;
    font-size:.82rem;
    font-weight:700;
}
.status-chip.is-good{
    background:var(--admin-good-bg, #eff8ef);
    color:var(--admin-good-text, #154d17);
    border-color:var(--admin-good-border, #2f7d32);
}
.status-chip.is-bad{
    background:var(--admin-bad-bg, #fff1f0);
    color:var(--admin-bad-text, #7f1d1d);
    border-color:var(--admin-bad-border, #b3261e);
}
.customer-list-table th,
.customer-list-table td{
    white-space:nowrap;
}
.customer-list-table td:nth-child(10){
    white-space:normal;
    min-width:10rem;
}
@media (max-width:720px){
    .customer-filter-form{
        grid-template-columns:1fr!important;
    }
}


/* v062 reservation timetable */
.timetable-filter-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:.85rem;
    align-items:end;
}
.timetable-filter-form .choice-fieldset{
    grid-column:1 / -1;
}
.timetable-option-fieldset{
    margin:.35rem 0!important;
}
.timetable-summary-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:.75rem;
    margin:1rem 0;
}
.reservation-timetable .slot-available{
    background:rgba(47,125,50,.06);
}
.reservation-timetable .slot-unavailable{
    opacity:.72;
}
.reservation-timetable .timetable-therapists{
    min-width:18rem;
    white-space:normal;
}
@media (max-width:720px){
    .timetable-filter-form{
        grid-template-columns:1fr!important;
    }
}


/* v063 SMS campaign preview */
.sms-preview-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:.8rem;
    margin:.75rem 0 1rem;
}
.sms-preview-card{
    border:1px solid var(--admin-border, #d9e0ea);
    border-radius:1rem;
    padding:.85rem;
    background:var(--admin-surface-2, #fafafa);
}
.sms-preview-card h4{
    margin:.1rem 0 .55rem;
    font-size:.95rem;
}
.sms-preview-card pre{
    white-space:pre-wrap;
    word-break:break-word;
    margin:0;
    font-family:inherit;
    font-size:.92rem;
    line-height:1.55;
}


/* v075 admin web reservation notifications */
.admin-notification-stack{
    position:fixed;
    z-index:9999;
    display:grid;
    gap:.75rem;
    width:min(360px, calc(100vw - 2rem));
    pointer-events:none;
}
.admin-notification-stack.position-top-right{top:1rem;right:1rem;}
.admin-notification-stack.position-top-left{top:1rem;left:1rem;}
.admin-notification-stack.position-bottom-right{bottom:1rem;right:1rem;}
.admin-notification-stack.position-bottom-left{bottom:1rem;left:1rem;}
.admin-reservation-notice{
    pointer-events:auto;
    display:grid;
    gap:.35rem;
    width:100%;
    padding:1rem;
    border:1px solid var(--border, #d6dde8);
    border-radius:1rem;
    background:var(--card-bg, #fff);
    color:var(--text, #111827);
    box-shadow:0 16px 40px rgba(15,23,42,.2);
    text-align:left;
    cursor:pointer;
    animation:adminNoticeIn .22s ease-out;
}
.admin-reservation-notice strong{
    font-size:1rem;
}
.admin-reservation-notice .notice-meta{
    font-weight:600;
}
.admin-reservation-notice .notice-sub{
    color:var(--muted, #667085);
    font-size:.9rem;
}
.admin-reservation-notice.is-hiding{
    opacity:0;
    transform:translateY(-.4rem);
    transition:opacity .25s ease, transform .25s ease;
}
@keyframes adminNoticeIn{
    from{opacity:0;transform:translateY(-.4rem);}
    to{opacity:1;transform:translateY(0);}
}


/* v077 admin notification center */
.admin-notification-bell{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:2.35rem;
    height:2.35rem;
    border:1px solid var(--border, #d6dde8);
    border-radius:999px;
    color:var(--text, #111827);
    text-decoration:none;
    background:var(--card-bg, #fff);
}
.admin-notification-bell:hover,
.admin-notification-bell:focus{
    outline:2px solid transparent;
    box-shadow:0 0 0 3px rgba(109,145,182,.28);
}
.admin-notification-count{
    position:absolute;
    top:-.25rem;
    right:-.25rem;
    min-width:1.25rem;
    height:1.25rem;
    padding:0 .25rem;
    border-radius:999px;
    background:#dc2626;
    color:#fff;
    font-size:.72rem;
    font-weight:700;
    line-height:1.25rem;
    text-align:center;
}
.notification-center-list{
    display:grid;
    gap:.75rem;
}
.notification-center-item{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:.85rem;
    align-items:start;
    padding:1rem;
    border:1px solid var(--border, #d6dde8);
    border-radius:1rem;
    background:var(--card-bg, #fff);
    color:var(--text, #111827);
    text-decoration:none;
}
.notification-center-item:hover,
.notification-center-item:focus{
    box-shadow:0 10px 28px rgba(15,23,42,.12);
}
.notification-center-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:2.1rem;
    height:2.1rem;
    border-radius:999px;
    background:rgba(109,145,182,.16);
}
.notification-center-body{
    display:grid;
    gap:.25rem;
}
.notification-center-body small{
    color:var(--muted, #667085);
}


/* v079 notification sound unlock + popup duration */
.admin-notification-sound-unlock{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:2.35rem;
    padding:0 .75rem;
    border:1px solid var(--border, #d6dde8);
    border-radius:999px;
    background:var(--card-bg, #fff);
    color:var(--text, #111827);
    font-size:.88rem;
    cursor:pointer;
}
.admin-notification-sound-unlock[hidden]{
    display:none !important;
}
.admin-notification-sound-unlock:hover,
.admin-notification-sound-unlock:focus{
    box-shadow:0 0 0 3px rgba(109,145,182,.28);
}


/* v081 notification sound upload */
.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:.85rem;
}
button.danger{
    background:#b3261e;
    color:#fff;
}


/* v082 categorized notification sounds */
.notification-sound-category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:.85rem;
}


/* v090 reservation resend/agreement log */
.action-button-row{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
    align-items:center;
}
.action-button-row form{
    margin:0;
}

/* v091 dashboard quick cards, menu order, notification read state */
.quick-card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:.9rem;
}
.quick-card{
    display:grid;
    gap:.55rem;
    align-content:center;
    justify-items:center;
    min-height:110px;
    border:1px solid var(--border, #d6dde8);
    border-radius:1rem;
    background:var(--card-bg, #fff);
    color:var(--text, #111827);
    text-decoration:none;
    font-weight:800;
    box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.quick-card i{font-size:1.7rem;color:var(--brand, #6D91B6);}
.quick-card:hover,.quick-card:focus{box-shadow:0 0 0 3px rgba(109,145,182,.25);}
.button-like.small{min-height:2rem;padding:.35rem .65rem;font-size:.9rem;}
.menu-order-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;}
.menu-order-card{border:1px solid var(--border,#d6dde8);border-radius:1rem;padding:1rem;background:var(--card-bg,#fff);}
.menu-order-item{margin-top:.65rem;font-size:.95rem;}
.notification-center-item{position:relative;}
.notification-center-item.is-unread{border-color:var(--brand,#6D91B6);box-shadow:0 0 0 2px rgba(109,145,182,.18);}
.notification-center-item.is-read{opacity:.72;}
.notification-center-link{display:grid;grid-template-columns:auto 1fr;gap:.85rem;align-items:start;color:inherit;text-decoration:none;}
.notification-read-form{position:absolute;right:.85rem;top:.85rem;}
@media (max-width:720px){.notification-read-form{position:static;margin-top:.75rem}.notification-center-link{padding-right:0}}


/* v093 notification center filter actions */
.notification-filter-actions{
    display:flex;
    gap:.6rem;
    align-items:end;
    justify-content:flex-end;
    margin-left:auto;
}
.visually-hidden-form{
    display:none;
}
.secondary-button{
    background:var(--button-secondary-bg, #e9edf3);
    color:var(--button-secondary-text, #111827);
}
@media (max-width:720px){
    .notification-filter-actions{
        width:100%;
        justify-content:stretch;
    }
    .notification-filter-actions button{
        flex:1;
    }
}


/* v094 notification center filter/read display */
.notification-mark-all-slot{
    margin-left:auto;
    display:flex;
    align-items:end;
    justify-content:flex-end;
}
.notification-display-mode-form{
    display:flex;
    align-items:center;
    gap:.8rem;
    flex-wrap:wrap;
    margin:1rem 0;
    padding:.75rem 1rem;
    border:1px solid var(--border, #334155);
    border-radius:.9rem;
}
.notification-display-mode-form label{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    margin:0;
}
.notification-display-mode-form input[type="radio"]{
    width:auto;
}
@media (max-width:720px){
    .notification-mark-all-slot{
        width:100%;
        margin-left:0;
        justify-content:stretch;
    }
    .notification-mark-all-slot button{
        width:100%;
    }
}


/* v095 notification center layout polish */
.card-subform{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1rem 1.25rem;
    align-items:end;
}
.card-subform button[type="submit"]{
    justify-self:start;
    min-width:7rem;
}
.notification-mark-all-slot{
    justify-self:end;
    margin-left:0;
}
.notification-mark-all-slot .secondary-button{
    min-width:7rem;
}
.notification-display-mode-form{
    display:flex;
    align-items:center;
    gap:1rem;
    flex-wrap:wrap;
}
.notification-display-mode-form > span{
    font-weight:800;
    margin-right:.25rem;
}
.notification-display-mode-form label{
    display:inline-flex !important;
    align-items:center;
    gap:.35rem;
    width:auto;
    min-width:auto;
    white-space:nowrap;
}
.notification-display-mode-form input[type="radio"]{
    width:auto !important;
    margin:0;
}
.notification-display-mode-form .secondary-button{
    margin-left:auto;
}
@media (max-width:720px){
    .card-subform{
        grid-template-columns:1fr;
    }
    .card-subform button[type="submit"],
    .notification-mark-all-slot,
    .notification-mark-all-slot .secondary-button,
    .notification-display-mode-form .secondary-button{
        width:100%;
        justify-self:stretch;
        margin-left:0;
    }
    .notification-display-mode-form{
        align-items:flex-start;
    }
}


/* v096 site bottom info/footer logo */
footer.site-footer .site-footer-inner{
    display:flex!important;
    align-items:center!important;
    gap:.8rem!important;
}
footer.site-footer .site-footer-logo-wrap{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
}
footer.site-footer img.site-footer-logo{
    display:block!important;
    max-width:120px!important;
    max-height:42px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
}
footer.site-footer .site-footer-text{
    min-width:0!important;
}
@media (max-width:720px){
    footer.site-footer .site-footer-inner{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:.35rem!important;
    }
    footer.site-footer img.site-footer-logo{
        max-width:100px!important;
        max-height:36px!important;
    }
}


/* v097 footer logo forced visible */
footer.site-footer .site-footer-inner{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:.85rem!important;
}
footer.site-footer .site-footer-logo-wrap{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    background:#fff!important;
    border-radius:.35rem!important;
    padding:.18rem .28rem!important;
}
footer.site-footer img.site-footer-logo{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    position:static!important;
    max-width:120px!important;
    max-height:44px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
}
footer.site-footer .site-footer-text{
    min-width:0!important;
}
.footer-logo-preview-box{
    margin:.65rem 0 1rem;
    padding:.75rem;
    border:1px solid var(--border, #334155);
    border-radius:.65rem;
    max-width:640px;
}
.footer-logo-preview-box img{
    display:block;
    max-width:180px;
    max-height:80px;
    width:auto;
    height:auto;
    background:#fff;
    border-radius:.35rem;
    padding:.25rem;
    margin:.5rem 0;
}
@media (max-width:720px){
    footer.site-footer .site-footer-inner{
        align-items:flex-start!important;
        justify-content:flex-start!important;
        flex-direction:column!important;
        gap:.35rem!important;
    }
    footer.site-footer img.site-footer-logo{
        max-width:100px!important;
        max-height:36px!important;
    }
}

/* v098 dashboard quick cards theme polish */
.quick-card{
    border-color:var(--admin-border, #d6dde8)!important;
    background:linear-gradient(180deg,var(--admin-surface-2,#fafafa),var(--admin-surface,#fff))!important;
    color:var(--admin-text,#111827)!important;
    box-shadow:var(--admin-shadow,0 10px 24px rgba(15,23,42,.08))!important;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease!important;
}
.quick-card i{
    color:var(--admin-brand,#6D91B6)!important;
}
.quick-card span{
    color:var(--admin-text,#111827)!important;
}
.quick-card:hover,
.quick-card:focus{
    transform:translateY(-2px)!important;
    border-color:var(--admin-brand,#6D91B6)!important;
    box-shadow:0 0 0 3px rgba(109,145,182,.22), var(--admin-shadow,0 10px 24px rgba(15,23,42,.08))!important;
}
html[data-theme="dark"] .quick-card{
    background:linear-gradient(180deg,#172033,#111827)!important;
    border-color:#334155!important;
}
html[data-theme="dark"] .quick-card:hover,
html[data-theme="dark"] .quick-card:focus{
    background:linear-gradient(180deg,#1f2d46,#142033)!important;
    border-color:var(--admin-brand,#8fb2d4)!important;
    box-shadow:0 0 0 3px rgba(143,178,212,.20), 0 10px 28px rgba(0,0,0,.32)!important;
}
html[data-theme="dark"] .quick-card i{
    color:var(--admin-brand,#8fb2d4)!important;
}
html[data-theme="dark"] .quick-card span{
    color:var(--admin-text,#e5e7eb)!important;
}


/* v099 footer logo upload/theme polish */
footer.site-footer .site-footer-logo-wrap{
    background:transparent!important;
    border-radius:0!important;
    padding:0!important;
}
footer.site-footer img.site-footer-logo{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    max-width:190px!important;
    max-height:68px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
}
footer.site-footer .site-footer-inner{
    gap:1rem!important;
}
.footer-logo-preview-box input[type="file"]{
    max-width:640px;
}
@media (max-width:720px){
    footer.site-footer img.site-footer-logo{
        max-width:150px!important;
        max-height:54px!important;
    }
}


/* v108 homepage menu management */
.homepage-menu-add-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1rem;
}
.inline-check{
    display:inline-flex!important;
    align-items:center;
    gap:.35rem;
    margin:.25rem 0;
}
.inline-check input{
    width:auto!important;
}
.danger-button{
    background:#8b1e1e!important;
    color:#fff!important;
}
.badge{
    display:inline-flex;
    align-items:center;
    border:1px solid var(--border, #334155);
    border-radius:999px;
    padding:.15rem .45rem;
    font-size:.85rem;
    font-weight:800;
}
.visually-hidden-form{display:none}


/* v110 admin login redesign */
.admin-login-body{
    min-height:100vh;
    margin:0;
    background:
        radial-gradient(circle at 15% 15%, rgba(109,145,182,.28), transparent 30rem),
        linear-gradient(135deg, #0f172a, #1e293b 48%, #334155);
    color:#111827;
}
.admin-login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:1.25rem;
}
.admin-login-card{
    width:min(100%, 440px);
    background:rgba(255,255,255,.96);
    border:1px solid rgba(255,255,255,.45);
    border-radius:1.4rem;
    padding:1.5rem;
    box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.admin-login-brand{
    display:flex;
    align-items:center;
    gap:.85rem;
    margin-bottom:1rem;
}
.admin-login-mark{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:3rem;
    height:3rem;
    border-radius:1rem;
    background:#6D91B6;
    color:#fff;
    font-size:1.35rem;
    flex:0 0 auto;
}
.admin-login-brand p{
    margin:0;
    color:#5b6472;
    font-weight:800;
}
.admin-login-brand h1{
    margin:.1rem 0 0;
    font-size:1.65rem;
    line-height:1.2;
}
.admin-login-help{
    margin:.25rem 0 1.2rem;
    color:#5b6472;
}
.admin-login-form{
    display:grid;
    gap:1rem;
}
.admin-login-form label{
    margin:0;
}
.admin-login-form input{
    max-width:none!important;
    border:1px solid #dce3ec;
    border-radius:.9rem;
    padding:.85rem;
    background:#fff;
}
.admin-login-form button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.45rem;
    min-height:3.1rem;
    border:0;
    border-radius:.95rem;
    background:#6D91B6;
    color:#fff;
    font-weight:900;
}
.admin-login-error{
    border:1px solid #f0b7b3;
    background:#fff1f0;
    border-radius:.8rem;
    padding:.75rem;
}
.admin-login-links{
    margin:1.15rem 0 0;
    text-align:center;
}
.admin-login-links a{
    color:#334155;
    font-weight:800;
    text-underline-offset:.2em;
}
@media (max-width:520px){
    .admin-login-card{
        padding:1.15rem;
        border-radius:1.1rem;
    }
}


/* v112 simple document editor/site icon preview */
.editor-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:.35rem;
    margin:.35rem 0 .5rem;
}
.editor-toolbar button{
    padding:.35rem .6rem;
    border-radius:.45rem;
}
.html-editor{
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.icon-preview-box img{
    max-width:96px!important;
    max-height:96px!important;
}


/* v117 customer admin-only badges */
.admin-badge-list{
    display:flex;
    flex-wrap:wrap;
    gap:.25rem;
}
.admin-customer-badge{
    display:inline-flex;
    align-items:center;
    border:1px solid var(--border, #334155);
    border-radius:999px;
    padding:.12rem .42rem;
    font-size:.78rem;
    font-weight:900;
    line-height:1.35;
    white-space:nowrap;
}
.admin-customer-badge.is-good{background:#e8f6ee;color:#0a6b2b;border-color:#b7e3c7}
.admin-customer-badge.is-bad{background:#fff1f0;color:#b3261e;border-color:#f0b7b3}
.admin-customer-badge.is-warn{background:#fff7e6;color:#7a4a00;border-color:#f4d19b}
.admin-customer-badge.is-vip{background:#f5ecff;color:#5f259f;border-color:#d8b7ff}
.admin-customer-badge.is-muted{background:#eef2f7;color:#475569;border-color:#cbd5e1}
.admin-customer-badge.is-neutral{background:#edf4fb;color:#193b5d;border-color:#c8d8ea}
.admin-only-note{
    border:1px dashed var(--border, #334155);
    border-radius:.75rem;
    padding:.7rem;
    margin:.75rem 0 1rem;
    background:rgba(109,145,182,.08);
    font-weight:800;
}


/* v125 page editor */
.page-editor{max-width:980px}
.advanced-editor-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;margin:.35rem 0 .5rem}
.advanced-editor-toolbar button{padding:.45rem .65rem;border:1px solid #cfd6df;background:#fff;border-radius:.35rem}
.advanced-editor-toolbar button:focus,.advanced-editor-toolbar button:hover{background:#edf5ff}
.page-content-visual{min-height:360px;max-width:960px;border:1px solid #cfd6df;border-radius:.5rem;padding:1rem;background:#fff;overflow:auto}
.page-content-visual:focus{outline:3px solid rgba(0,105,180,.25);border-color:#6d91b6}
.page-content-visual table,.page-preview-body table{border-collapse:collapse;width:100%;margin:1rem 0}
.page-content-visual th,.page-content-visual td,.page-preview-body th,.page-preview-body td{border:1px solid #bbb;padding:.5rem}
.page-content-visual img,.page-preview-body img{max-width:100%;height:auto}
.page-content-visual figure,.page-preview-body figure{margin:1rem 0}
.page-content-visual figcaption,.page-preview-body figcaption{font-size:.9rem;color:#666;text-align:center}
.page-content-source{display:none}
.editor-upload-row{margin:.5rem 0}
.page-preview-panel{margin-top:1rem;border:1px dashed #aab7c4;border-radius:.5rem;padding:1rem;background:#fbfdff}
.page-preview-panel h4{margin-top:0}


/* v137 sidebar admin layout */
.admin-sidebar-layout{
    background:#f3f6fb;
}
.admin-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
}
.admin-sidebar{
    position:sticky;
    top:0;
    align-self:start;
    height:100vh;
    overflow:auto;
    background:#142033;
    color:#e8eef7;
    border-right:1px solid rgba(255,255,255,.08);
    padding:0;
    box-sizing:border-box;
}
.admin-sidebar-brand{
    padding:1.05rem 1rem;
    border-bottom:1px solid rgba(255,255,255,.12);
    background:#10192a;
}
.admin-sidebar-title{
    font-size:1.15rem;
    font-weight:800;
    line-height:1.25;
}
.admin-sidebar-subtitle{
    margin-top:.2rem;
    color:#aab7ca;
    font-size:.88rem;
}
.admin-sidebar .admin-menu{
    display:block!important;
    margin:0!important;
    padding:.65rem!important;
}
.admin-sidebar .admin-menu-group{
    background:transparent!important;
    border:0!important;
    border-radius:.75rem!important;
    padding:.2rem 0!important;
    margin:.35rem 0!important;
}
.admin-sidebar .admin-menu-group-toggle{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.5rem;
    padding:.72rem .75rem;
    border:0;
    border-radius:.65rem;
    background:transparent;
    color:#dce6f5;
    font-weight:800;
    text-align:left;
}
.admin-sidebar .admin-menu-group.is-active .admin-menu-group-toggle,
.admin-sidebar .admin-menu-group-toggle:hover,
.admin-sidebar .admin-menu-group-toggle:focus{
    background:#20314c;
    color:#fff;
}
.admin-sidebar .admin-menu-group-title{
    font-size:.96rem;
}
.admin-sidebar .admin-menu-group-icon{
    color:#9fb0c7;
    font-size:.8rem;
}
.admin-sidebar .admin-menu-items{
    list-style:none!important;
    display:block!important;
    margin:.15rem 0 .45rem!important;
    padding:0!important;
}
.admin-sidebar .admin-menu-items[hidden]{
    display:none!important;
}
.admin-sidebar .admin-menu-items li{
    margin:0!important;
}
.admin-sidebar .admin-menu-items a{
    display:block!important;
    margin:.08rem 0!important;
    padding:.48rem .75rem .48rem 1.35rem!important;
    border-radius:.55rem;
    color:#b9c7da!important;
    text-decoration:none!important;
    font-size:.93rem;
}
.admin-sidebar .admin-menu-items a:hover,
.admin-sidebar .admin-menu-items a:focus{
    background:#1b2a43;
    color:#fff!important;
}
.admin-sidebar .admin-menu-items a.active,
.admin-sidebar .admin-menu-items a[aria-current="page"]{
    background:#2f6ea7;
    color:#fff!important;
    font-weight:800!important;
}
.admin-sidebar-meta{
    margin:1rem .65rem;
    padding:.75rem;
    border:1px solid rgba(255,255,255,.12);
    border-radius:.7rem;
    color:#aab7ca;
    font-size:.78rem;
    line-height:1.5;
}
.admin-content-wrap{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.admin-content-wrap .admin-header{
    position:sticky;
    top:0;
    z-index:20;
    background:#fff!important;
    border-bottom:1px solid #dbe3ef!important;
    padding:.75rem 1.25rem!important;
}
.admin-content-wrap .admin-header-top{
    margin:0!important;
}
.admin-content-wrap .admin-header h1{
    margin:0!important;
    font-size:1.35rem!important;
}
.admin-main{
    max-width:1280px;
    width:100%;
    margin:0 auto;
    padding:1.1rem 1.25rem 2rem;
    box-sizing:border-box;
}
@media (min-width:861px){
    .admin-content-wrap .admin-menu-toggle{
        display:none!important;
    }
}
@media (max-width:860px){
    .admin-shell{
        display:block;
    }
    .admin-sidebar{
        position:fixed;
        z-index:50;
        left:0;
        top:0;
        bottom:0;
        width:min(84vw,320px);
        height:100vh;
        transform:translateX(-105%);
        transition:transform .18s ease;
        box-shadow:0 20px 50px rgba(0,0,0,.35);
    }
    .admin-sidebar.is-open{
        transform:translateX(0);
    }
    .admin-content-wrap .admin-header{
        position:sticky;
        top:0;
    }
    .admin-content-wrap .admin-header-top{
        display:grid!important;
        grid-template-columns:auto 1fr auto;
        align-items:center;
        gap:.7rem;
    }
    .admin-content-wrap .admin-header h1{
        font-size:1.1rem!important;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .admin-main{
        padding:.9rem .85rem 1.5rem;
    }
}
[data-theme="dark"] .admin-sidebar-layout{
    background:#0f1724;
}
[data-theme="dark"] .admin-content-wrap .admin-header{
    background:#111b2b!important;
    border-bottom-color:#2c3b52!important;
}


/* v138 admin theme refinements */
[data-theme="dark"] body,
[data-theme="dark"] .admin-sidebar-layout{
    background:#0f1724!important;
    color:#e5edf8!important;
}
[data-theme="dark"] .card,
[data-theme="dark"] .menu-order-card,
[data-theme="dark"] .card-subform,
[data-theme="dark"] .action-form,
[data-theme="dark"] fieldset,
[data-theme="dark"] .metric,
[data-theme="dark"] .page-editor-toolbar,
[data-theme="dark"] .page-editor-wrap,
[data-theme="dark"] .page-editor-preview,
[data-theme="dark"] .page-editor-source,
[data-theme="dark"] .page-editor-visual{
    background:#111b2b!important;
    border-color:#2d3d55!important;
    color:#e5edf8!important;
}
[data-theme="dark"] table,
[data-theme="dark"] th,
[data-theme="dark"] td{
    background:#111b2b!important;
    border-color:#2d3d55!important;
    color:#e5edf8!important;
}
[data-theme="dark"] th{
    background:#17243a!important;
}
[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .page-editor-visual,
[data-theme="dark"] .page-editor-source{
    background:#0d1626!important;
    border-color:#344966!important;
    color:#eef5ff!important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder{
    color:#8ea0b8!important;
}
[data-theme="dark"] .help-text,
[data-theme="dark"] .muted,
[data-theme="dark"] .small-text{
    color:#aab8cd!important;
}
[data-theme="dark"] pre,
[data-theme="dark"] code{
    background:#0d1626!important;
    border-color:#344966!important;
    color:#eef5ff!important;
}
[data-theme="dark"] .page-editor-visual a,
[data-theme="dark"] .page-editor-preview a{
    color:#8fc7ff!important;
}

/* menu order */
.menu-order-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1rem;
}
.menu-order-card{
    border:1px solid #d8e0ec;
    border-radius:.75rem;
    padding:1rem;
    background:#fff;
}
.menu-order-card label{
    margin-top:.6rem;
}
.menu-order-card input[type="number"]{
    max-width:120px;
}

/* sms logs */
.sms-log-filter{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:.85rem 1rem;
    align-items:end;
}
.sms-log-filter label{
    margin-top:0;
}
.sms-log-filter button{
    min-height:2.65rem;
}
.table-scroll{
    width:100%;
    overflow:auto;
}
.sms-log-table{
    min-width:1180px;
}
.sms-log-table th,
.sms-log-table td{
    vertical-align:top;
}
.sms-log-table td:nth-child(1){
    width:110px;
    white-space:nowrap;
}
.sms-log-table td:nth-child(2){
    width:54px;
    text-align:center;
}
.sms-log-table td:nth-child(3){
    width:120px;
}
.sms-log-table td:nth-child(4){
    width:120px;
    white-space:nowrap;
}
.sms-log-table td:nth-child(5){
    width:210px;
}
.sms-log-table td:nth-child(6){
    min-width:300px;
}
.sms-log-table td:nth-child(7){
    min-width:220px;
}
.sms-log-table td:nth-child(8){
    width:90px;
}
@media (max-width:860px){
    .sms-log-filter{
        grid-template-columns:1fr;
    }
}

/* v139 site settings product info */
.form-grid.two-col label input[type="url"]{
    max-width:640px;
}


/* v140 readonly product info */
.readonly-field{
    border:1px solid #d8e0ec;
    border-radius:.6rem;
    padding:.75rem .9rem;
    background:#f8fafc;
}
.readonly-field-label{
    display:block;
    font-weight:800;
    margin-bottom:.25rem;
}
.readonly-field strong{
    font-size:1.05rem;
}
[data-theme="dark"] .readonly-field{
    background:#0d1626!important;
    border-color:#344966!important;
    color:#eef5ff!important;
}


/* v143 translation settings */
.translation-test-result{
    border:1px solid #d8e0ec;
    border-radius:.6rem;
    padding:1rem;
    background:#f8fafc;
    white-space:pre-wrap;
}
[data-theme="dark"] .translation-test-result{
    background:#0d1626!important;
    border-color:#344966!important;
    color:#eef5ff!important;
}


/* v148 profile and memo translation */
.profile-fieldset{
    margin-top:1rem;
    padding:1rem;
    border:1px solid #d8e0ec;
    border-radius:.75rem;
}
.profile-current-image img{
    max-width:160px;
    max-height:160px;
    border-radius:.75rem;
    object-fit:cover;
    border:1px solid #d8e0ec;
}
.memo-line{
    margin:.15rem 0;
}
.memo-translation-box{
    margin:.35rem 0;
}
.memo-translation-box summary{
    cursor:pointer;
    color:#8fc7ff;
    text-decoration:underline;
}
.memo-translation-form{
    display:flex;
    flex-wrap:wrap;
    align-items:end;
    gap:.35rem;
    margin:.45rem 0;
}
.memo-translation-form label{
    margin:0;
}
.memo-translated-text{
    margin:.35rem 0;
    padding:.55rem;
    border-radius:.5rem;
    background:#f3f6fb;
    border:1px solid #d8e0ec;
}
[data-theme="dark"] .profile-fieldset,
[data-theme="dark"] .memo-translated-text{
    background:#0d1626!important;
    border-color:#344966!important;
    color:#eef5ff!important;
}


/* v150 */
.date-range-fields{
    display:contents;
}
.help-box{
    margin:.85rem 0;
    padding:.85rem;
    border:1px solid #d8e0ec;
    border-radius:.65rem;
    background:#f8fafc;
}
[data-theme="dark"] .help-box{
    background:#0d1626!important;
    border-color:#344966!important;
    color:#eef5ff!important;
}


/* v157 hard hide helper */
.is-hidden-force,
[hidden].is-hidden-force{
    display:none!important;
}
.reservation-date-single.is-hidden-force,
.reservation-date-range.is-hidden-force{
    display:none!important;
}


/* v158 reservation filter date boxes */
.reservation-date-box{
    display:block;
}
.reservation-date-range-box{
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
    align-items:end;
}
.reservation-date-box[hidden]{
    display:none!important;
}


/* v159 reservation filter layout */
.reservation-filter-form{
    align-items:end;
}
.reservation-date-box{
    min-width:0;
}
.reservation-date-box label{
    margin:0;
}
.reservation-date-box[hidden]{
    display:none!important;
}
