/* KSK Designer 1.1.78: compact alignment + editable text templates. */
.kskd-shell .kskd-edit-align-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0 9px;max-width:380px}
.kskd-shell .kskd-edit-align-inline button{min-height:34px!important;border:1px solid #d4e2ef!important;border-radius:8px!important;background:#f4f8fd!important;color:#19548c!important;font-family:inherit!important;font-weight:600!important;font-size:12px!important;line-height:1.2!important;cursor:pointer!important;padding:6px 8px!important;white-space:nowrap!important}
.kskd-shell .kskd-edit-align-inline button span{font-size:17px;vertical-align:-1px;margin-right:4px}
.kskd-shell .kskd-edit-align-inline button:hover{background:#e8f3ff!important}
.kskd-shell .kskd-edit-align-inline button:disabled{opacity:.5;cursor:not-allowed!important}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-card{display:flex!important;flex-direction:column;align-items:stretch;gap:5px;min-width:0;min-height:158px!important;padding:8px!important;background:#fff!important;color:#17395c!important;border:1px solid #d9e5f2!important;border-radius:12px!important;box-shadow:none!important;text-align:center!important;cursor:pointer!important;text-transform:none!important}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-card:focus-visible{outline:2px solid #1769c2;outline-offset:2px}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-card:hover{border-color:#1769c2!important;background:#f6faff!important}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-card strong{font-size:12px;font-weight:750;line-height:1.15}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-card small{font-size:10px;color:#62788f;line-height:1.15}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#eef4fb;border:1px solid #e1eaf3;border-radius:8px;min-height:96px;padding:8px 4px;overflow:hidden;color:#d83131;text-align:center;line-height:1;font-family:Arial,sans-serif}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-preview>span{font-size:13px;font-weight:800;letter-spacing:.7px;max-width:100%}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-preview>b{font-size:51px;font-family:Impact,Arial,sans-serif;line-height:.88;letter-spacing:1px;max-width:100%}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-name-year>b{font-size:31px;font-family:Arial,sans-serif}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-two-lines>b{font-size:22px;font-family:Arial,sans-serif}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-two-lines>span{font-size:20px}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-template-notice{font-size:12px;line-height:1.4;color:#345e81;margin:4px 0 0}
/* The mobile editing dock is portaled outside .kskd-shell. */
.kskd-mobile-dock .kskd-mobile-replace-header[hidden]{display:none!important}
.kskd-mobile-dock .kskd-mobile-replace-header{margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center;white-space:nowrap!important;min-height:29px!important;padding:5px 7px!important;border-radius:8px!important;background:#eef5fe!important;border:1px solid #d6e3ef!important;color:#1769c2!important;font-size:11px!important;font-weight:650!important}
.kskd-mobile-dock .kskd-mobile-image-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.kskd-mobile-dock .kskd-mobile-object-align{flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;order:-1}
.kskd-mobile-dock .kskd-mobile-quick-actions{flex-wrap:wrap!important}
.kskd-mobile-dock .kskd-mobile-object-align button{display:flex!important;flex-direction:row;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:36px!important;margin:0!important;padding:5px 6px!important;background:#f4f8fd!important;color:#1769c2!important;border:1px solid #d7e3ef!important;border-radius:8px!important;white-space:normal!important}
.kskd-mobile-dock .kskd-mobile-object-align button>span{font-size:19px;line-height:1;flex:none}
.kskd-mobile-dock .kskd-mobile-object-align button>small{font-family:inherit;font-weight:650;font-size:10px;line-height:1.1;text-align:center}
.kskd-mobile-dock .kskd-mobile-object-align button:disabled{opacity:.5!important}
@media(max-width:360px){.kskd-mobile-dock .kskd-mobile-replace-header{font-size:10px!important;padding:4px 5px!important}.kskd-mobile-dock .kskd-mobile-object-align button>small{font-size:9px!important}}
/* Old two-slot desktop rail override: the template module occupies the second slot. */
@media(min-width:769px){
 .kskd-shell .kskd-module[data-module=templates][data-desktop-enabled=no]{display:none!important}
 .kskd-shell .kskd-tools>.kskd-module[data-module=templates]>.kskd-tool{grid-column:2!important;grid-row:2!important}
}
@media(max-width:768px){.kskd-shell .kskd-module[data-module=templates][data-mobile-enabled=no]{display:none!important}}
