.hsp-source,
.vt-legacy-design .weekBox table.hsp-source {
    display: none !important;
}
.wizard-panel[data-field='wr_13']:has(.hsp-picker) > .wizard-peak {
    display: none;
}
.hsp-picker {
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 14px;
    color: #424242;
    line-height: 1.6;
}
.hsp-child .hsp-picker,
.hsp-post .hsp-picker {
    max-width: 640px;
    margin: 12px 0;
    text-align: left;
}
.hsp-range-summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #825c35;
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0;
}
.hsp-picker button {
    font: inherit;
    cursor: pointer;
}
.hsp-legend,
.hsp-note {
    font-size: 12px;
    color: #a6765d;
    margin: 0 0 16px;
}
.hsp-days {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}
.hsp-day {
    border: 1px solid #e2d9cc;
    border-radius: 9px;
    background: white;
    padding: 10px 2px;
    color: #766b5e;
}
.hsp-day[aria-pressed='true'] {
    background: #f68b19;
    border-color: #f68b19;
    color: white;
    font-weight: 700;
}
.hsp-status {
    font-size: 13px;
    color: #827568;
    margin-bottom: 10px;
}
.hsp-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.hsp-tool {
    border: 1px solid #e7ded2;
    border-radius: 7px;
    background: #fffaf3;
    color: #8a6544;
    padding: 7px 10px;
    font-size: 12px !important;
    cursor: pointer;
}
.hsp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}
.hsp-time-button {
    position: relative;
    padding: 13px 4px;
    min-height: 48px;
    border: 1px solid #ded9d1;
    border-radius: 10px;
    color: #625a52;
    background: #fff;
    font-size: 15px !important;
    user-select: none;
    touch-action: pan-y;
}
.hsp-time-button[aria-pressed='true'] {
    background: #fff1df;
    border-color: #f68b19;
    color: #a45400;
    font-weight: 700;
}
.hsp-time-button.hsp-peak::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #dc6655;
}
.hsp-picker button:focus-visible {
    outline: 2px solid #a25a19;
    outline-offset: 3px;
}
.hsp-apply {
    border-top: 1px solid #ece2d6;
    margin-top: 24px;
    padding-top: 16px;
}
.hsp-apply summary {
    font-size: 13px;
    color: #8a6544;
    cursor: pointer;
    margin-bottom: 12px;
}
.hsp-targets {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    padding: 8px 0 14px;
}
.hsp-target {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: 13px;
    justify-content: center;
    flex: 1;
    min-width: 0;
    min-height: 40px;
    border: 1px solid #e4d6c7;
    border-radius: 9px;
    cursor: pointer;
}
.hsp-target:has(input:checked) {
    background: #f68b19;
    border-color: #f68b19;
    color: #fff;
}
.hsp-target:focus-within {
    outline: 2px solid #99530e;
    outline-offset: 2px;
}
.hsp-target[hidden] {
    display: none;
}
.hsp-target input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.hsp-note {
    margin: 10px 0 0;
}
.hsp-error {
    color: #b93d21;
    font-size: 13px;
    min-height: 20px;
    margin: 12px 0 0;
}
.hsp-dialog {
    box-sizing: border-box;
    width: min(740px, calc(100% - 28px));
    max-height: 90vh;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e4d8ca;
    border-radius: 18px;
    background: white;
    color: #424242;
}
.hsp-dialog[open] {
    display: flex;
    flex-direction: column;
}
.hsp-dialog-body {
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
}
.hsp-dialog::backdrop {
    background: #29231d88;
}
.hsp-dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.hsp-dialog-top h2 {
    font-size: 22px;
    font-weight: 700;
}
.hsp-dialog-top { position: relative; }
.hsp-dialog .hsp-tools { justify-content: flex-end; }
.hsp-dialog-title { display: flex; align-items: center; gap: 10px; }
.hsp-dialog-title h2 { margin: 0; }
.hsp-guidance > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #a6765d;
    border-radius: 50%;
    background: #fff;
    color: #8a6544;
    font: bold 14px/1 sans-serif;
    list-style: none;
    cursor: pointer;
}
.hsp-guidance > summary::-webkit-details-marker { display: none; }
.hsp-guidance > summary::marker { content: ''; }
.hsp-guidance > summary:focus-visible { outline: 2px solid #a25a19; outline-offset: 3px; }
.hsp-guidance .hsp-legend {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 8px 0 0;
    padding: 14px;
    border: 1px solid #e3d1bc;
    border-radius: 10px;
    background: #fffaf3;
    color: #65513d;
    line-height: 1.7;
    box-shadow: 0 4px 16px rgba(48, 32, 16, 0.15);
}
.hsp-dialog #schedule_pop {
    position: static !important;
    display: block;
    transform: none !important;
    width: 100% !important;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: white;
}
.hsp-dialog #schedule_pop .tit,
.hsp-dialog .schedule_close {
    display: none;
}
.hsp-dialog .week_btnBox {
    display: block;
    width: 100%;
    margin: 14px 0;
    text-align: left;
}
.hsp-dialog .week_btnBox #wr_memo {
    box-sizing: border-box;
    width: 100% !important;
    height: auto;
    min-height: 46px;
    border: 1px solid #e0d7cb;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}
.hsp-dialog .pay_Box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.hsp-dialog .pay_Box > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
}
.hsp-dialog .pay_Box label.radio i {
    border: 1px solid #ded4c6;
    border-radius: 9px;
    background: white !important;
    color: #736353;
    padding: 14px 48px 14px 18px;
    display: block;
    box-sizing: border-box;
    font-style: normal;
}
.hsp-dialog .pay_Box > span.__pay1,
.hsp-dialog .pay_Box > span.__pay2 {
    position: relative;
    display: block;
    flex: 1 1 200px;
    min-width: 0;
}
.hsp-dialog .pay_Box label.radio {
    display: block;
    width: 100%;
}
.hsp-dialog .pay_Box .__q {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
}
.hsp-dialog .pay_Box label.radio input:checked + i {
    background: #fff0dc !important;
    border-color: #f68b19;
    color: #a25408;
}
.hsp-dialog label.radio input {
    display: block;
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.hsp-dialog label.radio input:focus-visible + i {
    outline: 2px solid #a25a19;
    outline-offset: 3px;
}
.hsp-dialog .__q {
    position: relative;
    display: inline-block;
    font-size: 12px;
}
.hsp-dialog .__q .q-float {
    position: fixed;
    left: 50%;
    top: auto !important;
    bottom: 80px;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 44px)) !important;
    margin-left: 0 !important;
    padding: 18px;
    border: 1px solid #e3d1bc;
    border-radius: 10px;
    background: #fffaf3;
    box-shadow: 0 6px 24px #30201030;
    z-index: 20;
}
.hsp-dialog .__q .q-txt {
    font-size: 13px;
    line-height: 1.8;
    color: #65513d;
}
.hsp-dialog .__q .q-close {
    display: block;
    margin: 0 0 10px auto;
    color: #8a6544;
    font-size: 12px;
    cursor: pointer;
}
.hsp-dialog .__q .q-open {
    border: 0;
    background: transparent;
    color: #8b6339;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hsp-dialog-footer {
    flex-shrink: 0;
    padding: 12px 24px;
    border-top: 1px solid #eee4d8;
    background: #fff;
}
.hsp-save {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #f68b19;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    cursor: pointer;
}
@media (max-width: 640px) {
    .hsp-dialog-body {
        padding: 18px;
    }
    .hsp-dialog-footer {
        padding: 12px 18px;
    }
    .hsp-tools {
        gap: 5px;
    }
    .hsp-tool {
        padding: 7px;
    }
}

/* Native checkbox fallback for older mobile browsers and WebViews. */
.hsp-legacy#schedule_pop { position:static !important; transform:none !important; box-sizing:border-box; width:100% !important; max-width:100%; max-height:none; overflow:auto; margin:16px 0; padding:12px; background:#fff; }
.hsp-legacy td label.check input { display:inline-block !important; position:static; opacity:1; width:22px; height:22px; margin:4px; }
.hsp-legacy td label.check { height:auto; min-height:40px; }
.hsp-legacy td label.check i { height:auto; font-size:12px; }
.hsp-legacy table { min-width:340px; }
.hsp-legacy .hsp-save { margin:12px 0; }
.hsp-legacy .pay_Box input { display:inline-block !important; }

/* Keep the summary compact; all editable slots remain inside the form. */
.hsp-admin-dialog .week_btnBox { display: none; }
.hsp-admin-dialog .hsp-global-tools,
.hsp-admin-dialog .hsp-tools { display: flex; justify-content: flex-end; }
.hsp-admin-dialog .hsp-picker { max-width: none; }

.hsp-copy-dialog {
    box-sizing: border-box;
    width: min(420px, calc(100% - 32px));
    max-height: 85vh;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid #e4d8ca;
    border-radius: 16px;
    background: #fff;
    color: #424242;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 14px;
}
.hsp-copy-dialog::backdrop {
    background: #30282077;
}
.hsp-copy-dialog h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}
.hsp-copy-times {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fff5e8;
    color: #92551f;
    font-size: 14px;
    line-height: 1.8;
}
.hsp-copy-caption {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}
.hsp-copy-dialog .hsp-targets {
    padding-bottom: 4px;
}
.hsp-copy-dialog .hsp-note {
    line-height: 1.7;
}
.hsp-copy-error {
    margin: 12px 0 0;
    color: #b93d21;
    font-size: 12px;
}
.hsp-copy-result {
    margin: 10px 0 0;
    color: #42754f;
    font-size: 12px;
}
.hsp-copy-error:empty,
.hsp-copy-result:empty {
    display: none;
}
.hsp-copy-actions {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}
.hsp-copy-actions button {
    min-height: 44px;
    padding: 10px 14px;
    font-family: inherit;
    cursor: pointer;
}
.hsp-copy-actions .hsp-copy-save {
    flex: 1;
    border-color: #f68b19;
    background: #f68b19;
    color: #fff;
    font-weight: 700;
}
.hsp-copy-dialog button:focus-visible {
    outline: 2px solid #99530e;
    outline-offset: 3px;
}

.hsp-admin-dialog .hsp-apply { margin-top: 18px; padding-top: 16px; }
.hsp-admin-dialog .hsp-dialog-top h2 { margin: 0; }
.hsp-admin-dialog .hsp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hsp-copy-dialog .hsp-target { min-width: 0; }

.hsp-admin-dialog .hsp-grid > .hsp-legend {
    grid-column: 2 / -1;
    align-self: center;
    justify-self: end;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
}
.hsp-picker .hsp-peak-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 12px;
    line-height: 1;
}
.hsp-peak-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 2;
    box-sizing: border-box;
    width: min(260px, calc(100vw - 56px));
    padding: 12px 14px;
    border: 1px solid #e4d8c8;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 18px #40301a1a;
    color: #625a52;
    font-size: 12px;
    line-height: 1.7;
    white-space: normal;
    text-align: left;
}
.hsp-peak-tooltip[hidden] {
    display: none;
}
