#nav{display:block;overflow-y:auto}.yh-nav-group{margin:6px 0}.yh-nav-group summary{cursor:pointer;color:#c8b886;padding:10px 12px;font-size:14px;font-weight:700}.yh-nav-group button{width:100%;font-size:14px;font-weight:400}.yh-config-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.yh-config-form label{display:grid;gap:6px}.yh-config-form p,.yh-config-form>button{grid-column:1/-1}.yh-payment-filters{display:flex;flex-wrap:wrap;gap:8px}.yh-payment-filters .field{min-width:130px;flex:1}@media(max-width:600px){.yh-config-form{grid-template-columns:1fr}}

.yh-status-switch{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:inherit;cursor:pointer;white-space:nowrap;padding:6px 0}.yh-switch-track{display:inline-block;position:relative;width:38px;height:22px;border-radius:12px;background:#666;flex-shrink:0;transition:background .15s}.yh-switch-track:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .15s}.yh-status-switch[aria-checked="true"] .yh-switch-track,.yh-switch-field input:checked+.yh-switch-track{background:#25864f}.yh-status-switch[aria-checked="true"] .yh-switch-track:after,.yh-switch-field input:checked+.yh-switch-track:after{transform:translateX(16px)}.yh-status-switch:disabled{opacity:.55;cursor:wait}.yh-status-switch:focus-visible,.yh-switch-field input:focus-visible+.yh-switch-track{outline:2px solid #d8bc68;outline-offset:3px}.yh-config-form .yh-switch-field{display:flex;align-items:center;gap:10px;position:relative;cursor:pointer}.yh-switch-field input{position:absolute;opacity:0;width:38px;height:22px;right:0;cursor:pointer}.yh-switch-field .yh-switch-track{margin-left:auto;pointer-events:none}
.modal-card:has(>.yh-payment-dialog){width:min(1160px,calc(100vw - 32px));max-height:94vh;padding:18px}
.modal-card:has(>.yh-dialog-edit),.modal-card:has(>.yh-dialog-connection){width:min(940px,calc(100vw - 32px))}
.yh-payment-dialog .modal-head{margin-bottom:12px}.yh-payment-dialog .modal-head h3{font-size:18px}
.yh-payment-dialog .table-wrap{width:100%;max-height:65vh;overflow:auto;margin:10px 0}
.yh-payment-dialog table{width:100%;min-width:980px;table-layout:auto}.yh-dialog-fees table{min-width:760px}
.yh-payment-dialog th,.yh-payment-dialog td{padding:9px 10px;line-height:1.35}
.yh-dialog-table th:not(:last-child),.yh-dialog-table td:not(:last-child),.yh-dialog-fees th:not(:last-child),.yh-dialog-fees td:not(:last-child){border-right:1px solid #3c4557}
.yh-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 12px}
.yh-dialog-toolbar p{margin:0;flex:1}.yh-dialog-toolbar>.btn,.yh-dialog-toolbar>div{flex:none}
.yh-key-state{font-weight:700;white-space:nowrap}.yh-key-state-active{color:#75e4aa}.yh-key-state-inactive{color:#ff9ca7}
.yh-payment-dialog td{overflow-wrap:anywhere}.yh-payment-dialog td:nth-child(4){white-space:nowrap;font-family:ui-monospace,monospace}
.yh-payment-dialog p{margin:6px 0;line-height:1.45;font-size:13px}
.yh-payment-dialog .btn{padding:7px 11px;min-height:32px;font-size:13px}
.yh-payment-dialog .yh-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;align-items:start}
.yh-purpose-group{border:0;padding:0;margin:0}.yh-purpose-group legend{color:var(--muted);font-size:13px;padding:0;margin-bottom:6px}
.yh-dialog-connection label:has(#yhV2Secret),.yh-dialog-connection label:has(#yhV2Ips),.yh-dialog-connection label:has(#yhReason){grid-column:1/-1}
.yh-payment-dialog .yh-form-grid>label{margin:0;min-width:0;font-size:13px}
.yh-payment-dialog .yh-form-grid .field{display:block;box-sizing:border-box;width:100%;height:36px;padding:7px 10px;margin-top:4px;border-radius:8px}
.yh-form-grid>p,.yh-form-grid>.yh-wide,.yh-form-grid>[role=alert],.yh-form-grid>.yh-query-controls{grid-column:1/-1}
.yh-form-grid>[role=alert]:empty{display:none}.yh-key-value{font-family:ui-monospace,monospace;letter-spacing:.2px}
.yh-dialog-route .yh-form-grid{row-gap:6px}
.modal-card:has(>.yh-dialog-route){width:min(580px,calc(100vw - 32px))}
.yh-dialog-route .yh-form-grid label{gap:2px;margin:0;font-size:13px;line-height:1.3}
.yh-dialog-route .yh-form-grid .field{height:32px;padding:5px 9px;margin-top:0}
.yh-dialog-route p{margin:3px 0;line-height:1.35}
.yh-dialog-route .modal-head{margin-bottom:8px}
.yh-settings{max-width:1100px}.yh-settings-heading{margin-bottom:16px}.yh-settings-heading h3{margin:0 0 6px}.yh-settings-heading p{margin:0;color:var(--muted);font-size:13px}
.yh-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.yh-setting-card{min-width:0;border:1px solid var(--line);border-radius:12px;background:#121722;padding:16px}.yh-setting-control{grid-column:1/-1}
.yh-setting-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.yh-setting-top h4{margin:0;font-size:15px}.yh-setting-top .btn{min-height:30px;padding:5px 12px;font-size:13px;flex:none}.yh-setting-value{margin:12px 0;font-size:18px;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}.yh-setting-empty{color:var(--muted);font-size:15px;font-weight:400}.yh-setting-status{display:inline-flex;align-items:center;gap:8px;border-radius:6px;padding:6px 12px;font-size:15px}.yh-setting-status.is-on{color:#75e4aa;background:#17382b}.yh-setting-status.is-off{color:#ff9ca7;background:#3a2029}
.yh-setting-card .yh-setting-description{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.yh-setting-card .yh-setting-scope{border-top:1px solid var(--line);padding-top:10px;margin:12px 0 0;font-size:13px;line-height:1.6;color:#c8b886}
@media(max-width:640px){.yh-settings-grid{grid-template-columns:minmax(0,1fr)}.yh-setting-card{padding:12px}}
.yh-purpose-row{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;margin:2px 0}
.yh-payment-dialog .yh-purpose-row label{display:inline-flex;align-items:center;gap:5px;margin:0;white-space:nowrap}
.yh-payment-dialog .yh-purpose-row input[type=checkbox]{width:15px;height:15px;min-width:15px;margin:0;padding:0;flex:none}
.yh-masked-value{display:block;margin-top:4px;padding:7px 10px;min-height:36px;box-sizing:border-box;background:#0e1118;border:1px solid var(--line);border-radius:8px;font-family:ui-monospace,monospace;overflow-wrap:anywhere}
.yh-query-controls{display:flex;gap:8px;flex-wrap:wrap}.yh-query-controls pre{flex-basis:100%;margin:4px 0;max-height:240px;overflow:auto}
@media(max-width:640px){.yh-payment-dialog .yh-form-grid{grid-template-columns:minmax(0,1fr)}.yh-purpose-row{gap:8px 12px}.modal-card:has(>.yh-payment-dialog){padding:12px;width:calc(100vw - 24px)}.yh-payment-dialog .modal-head h3{font-size:16px}}

.yh-query-result{flex-basis:100%;min-width:0}.yh-query-result .table-wrap{max-height:300px;overflow:auto}.yh-query-result th,.yh-query-result td{padding:6px 8px;font-size:12px}.yh-query-result td small{display:block;color:var(--muted);overflow-wrap:anywhere}.yh-query-result .btn{min-height:28px;padding:3px 8px;font-size:12px}.yh-query-details{margin:4px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.yh-query-details>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line);min-width:0}.yh-query-details dt{color:var(--muted);overflow-wrap:anywhere}.yh-query-details dd{margin:0;text-align:right;overflow-wrap:anywhere}.yh-query-result p{margin:6px 0;font-size:12px}@media(max-width:640px){.yh-query-details{grid-template-columns:minmax(0,1fr)}}

.yh-map-binding{padding:8px 10px;border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}.yh-map-binding.is-warning{border-color:#a87b37;color:#f3cb83;background:rgba(168,123,55,.1)}

/* Section labels keep the merged game menu flat and easy to scan. */
html:root #nav .yh-nav-section-title{margin:9px 12px 3px;padding:7px 3px 3px;border-top:1px solid #bda05b38;color:#d6b56d;font-size:11px;font-weight:700;letter-spacing:.03em;line-height:1.4}
html:root #nav .yh-nav-section-title:first-of-type{margin-top:1px}
