/* Progressive fallback: inline details when modal support or JavaScript is unavailable. */
.kt-child-profile>.tk-child-settings>.tk-child-settings-body{position:static!important;max-height:none!important;overflow:visible!important;margin-top:10px!important}
.tk-child-themes-grid{max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}
dialog.tk-child-settings-modal{width:min(820px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid var(--line,#dce1e7);border-radius:18px;background:var(--panel,#fff);color:var(--text,#20252b);box-shadow:0 24px 90px #0005;box-sizing:border-box;overflow:hidden}
dialog.tk-child-settings-modal:not([open]){display:none!important}dialog.tk-child-settings-modal[open]{display:flex;flex-direction:column}
dialog.tk-child-settings-modal::backdrop{background:rgba(13,22,33,.6)}
.tk-child-settings-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto;padding:16px 20px;border-bottom:1px solid var(--line,#dce1e7)}.tk-child-settings-header h2{margin:0;font-size:21px;line-height:1.3}
dialog.tk-child-settings-modal .tk-child-settings-close{display:grid;place-items:center;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;flex-shrink:0;padding:0!important;margin:0!important;font-size:36px!important;font-weight:500;line-height:1!important;border:1px solid var(--line,#dce1e7)!important;border-radius:12px;background:var(--panel2,#f3f5f8)!important;color:var(--text,#20252b)!important;box-shadow:none!important;cursor:pointer}
.tk-child-settings-close:focus-visible{outline:3px solid var(--accent,#e3000b);outline-offset:2px}
.tk-child-settings-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;scrollbar-gutter:stable}
dialog.tk-child-settings-modal .tk-child-settings-body{display:block!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;box-sizing:border-box;background:transparent}
dialog.tk-child-settings-modal .tk-child-settings-body form.kt-child-layout-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px;margin:0 0 16px}
dialog.tk-child-settings-modal form.kt-child-layout-form>button{grid-column:1/-1;width:100%}
dialog.tk-child-settings-modal .tk-child-themes-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none!important;overflow:visible!important;padding:3px}
dialog.tk-child-settings-modal .tk-child-theme-selector{min-width:0;width:100%}
@media(max-width:600px){dialog.tk-child-settings-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.tk-child-settings-header{padding:12px 14px}.tk-child-settings-header h2{font-size:19px}.tk-child-settings-scroll{padding:14px}dialog.tk-child-settings-modal .tk-child-settings-body form.kt-child-layout-form{grid-template-columns:minmax(0,1fr)!important}dialog.tk-child-settings-modal .tk-child-themes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:380px){dialog.tk-child-settings-modal .tk-child-themes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
