/* Prototype structure, application colors and typography (decision23Oct2026). */
.kp-majorations-theme, .kp-calendar-prototype {
 background: var(--kp-maj-page); color: var(--kp-maj-text);
}
.kp-admin-rules-tabs a {font-family:var(--kp-font-body); font-weight:700;}
.kp-majorations-theme .kp-admin-back-link {font:600 12px var(--kp-maj-font-body); color:var(--kp-maj-text-soft); text-decoration:none; min-height:20px;}
.kp-surcharges {display:grid; width:100%; min-width:0; gap:18px; padding-bottom:32px; color:var(--kp-color-text-main); font-family:var(--kp-font-body);}
.kp-surcharges h2,.kp-surcharges h3,.kp-surcharges h4 {margin:0; font-family:var(--kp-font-heading); font-weight:700; color:var(--kp-color-text-main);}
.kp-surcharges h2 {font-size:20px; line-height:1.5;}
.kp-surcharges h3 {font-size:16px; line-height:1.5;}
.kp-surcharges h4 {font-size:14px; line-height:1.5;}
.kp-sc-card {border:1px solid var(--kp-color-border-soft); border-radius:16px; background:var(--kp-color-surface-card); box-shadow:0 2px 8px color-mix(in srgb,var(--kp-color-text-main) 5%,transparent);}
.kp-sc-overview {padding:24px;}
.kp-sc-hint {margin:4px 0 0; font-family:var(--kp-font-body); font-size:13px; font-weight:400; color:var(--kp-color-text-soft); line-height:1.45;}
.kp-sc-intro {margin-bottom:16px;}
.kp-sc-rule {background:var(--kp-color-surface-soft); border:1px solid var(--kp-color-border-soft); border-radius:12px; padding:14px; margin-top:10px;}
.kp-sc-rule-head {display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;}
.kp-sc-status {padding:4px 10px; border-radius:20px; font-size:12px; font-weight:700; background:var(--kp-color-surface-alt); color:var(--kp-color-text-soft);}
.kp-sc-status.is-enabled {background:var(--kp-color-success-bg); color:var(--kp-color-success-strong);}
.kp-sc-rule-summary {display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; background:var(--kp-color-surface-card); border:1px solid var(--kp-color-border-soft); border-radius:8px; padding:10px 12px; margin-top:12px;}
.kp-sc-eyebrow {margin:0; font-size:11px; font-weight:700; color:var(--kp-color-text-muted); text-transform:uppercase;}
.kp-sc-amount {margin:2px 0 0; font-weight:700; font-size:14px; line-height:1.45;}
.kp-sc-amount span {font-weight:400; color:var(--kp-color-text-soft);}
.kp-sc-edit {border:0; background:var(--kp-color-surface-alt); color:var(--kp-color-brand-primary); border-radius:8px; padding:6px 9px; cursor:pointer; font-family:var(--kp-font-body); font-size:12px; font-weight:700; min-height:30px; position:relative;}
.kp-sc-explanation {margin-top:16px;}
.kp-sc-calendar-heading {display:flex; align-items:center; gap:14px; padding:22px;}
.kp-sc-calendar-heading > div {flex:1; min-width:0;}
.kp-sc-calendar-icon {width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:var(--kp-color-surface-soft); border:1px solid var(--kp-color-border-soft); flex-shrink:0; font-size:24px;}
.kp-sc-calendar-chevron {display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:var(--kp-color-surface-soft); flex-shrink:0;}
.kp-sc-overlay {position:fixed; inset:0; z-index:200; background:var(--kp-maj-overlay); display:flex; align-items:center; justify-content:center; padding:24px;}
.kp-sc-overlay[hidden], .kp-sc-overlay [hidden], .kp-surcharges[hidden], .kp-sc-choice[hidden] {display:none!important;}
.kp-sc-panel {width:100%; max-width:var(--kp-maj-panel-width); max-height:calc(100dvh - 120px); border-radius:18px; overflow:hidden; background:var(--kp-color-surface-page); display:flex; flex-direction:column; box-shadow:var(--kp-maj-panel-shadow); font-family:var(--kp-font-body); color:var(--kp-color-text-main); outline:none;}
.kp-sc-panel-header {flex-shrink:0; padding:24px; background:var(--kp-color-surface-card); border-bottom:1px solid var(--kp-color-border-soft); display:flex; gap:16px; justify-content:space-between; align-items:flex-start;}
.kp-sc-panel-header > div {flex:1; min-width:0;}
.kp-sc-panel h2 {font:700 21px/1.3 var(--kp-font-heading); margin:0 0 6px; overflow-wrap:anywhere;}
.kp-sc-panel-header .kp-sc-hint {margin:0;}
.kp-sc-panel form {display:flex; flex-direction:column; overflow:hidden; min-height:0;}
.kp-sc-panel-body {padding:20px; overflow-y:auto; flex:1; min-height:0; display:grid; grid-auto-rows:min-content; align-content:start; gap:16px;}
.kp-sc-fields {display:grid; gap:16px;}
.kp-sc-field-card {padding:18px;}
.kp-sc-panel fieldset {border:0; padding:0; margin:0; min-width:0;}
.kp-sc-panel legend {font:700 15px/1.5 var(--kp-font-body); margin-bottom:14px; padding:0;}
.kp-sc-choice {display:flex; gap:12px; align-items:center; border:1px solid var(--kp-color-border-soft); background:var(--kp-color-surface-card); padding:12px; border-radius:10px; cursor:pointer; min-height:48px; box-sizing:border-box;}
.kp-sc-choice.is-selected {border-color:var(--kp-color-brand-primary); background:var(--kp-color-surface-blue);}
.kp-sc-choice input {width:18px; height:18px; flex-shrink:0; accent-color:var(--kp-color-brand-primary); margin:0;}
.kp-sc-choice strong {display:block; font-weight:700; font-size:13px; line-height:1.45;}
.kp-sc-choice small {display:block; font-size:12px; color:var(--kp-color-text-soft); margin-top:3px; line-height:1.4;}
.kp-sc-mode-options {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:16px;}
.kp-sc-scope-options {display:grid; gap:8px;}
.kp-sc-value-label {font-weight:700; font-size:13px;}
#sc-value {display:block; width:100%; box-sizing:border-box; min-height:44px; padding:10px; border:1px solid var(--kp-color-border-default); border-radius:var(--kp-maj-radius-input); font-size:14px; font-family:var(--kp-font-body); background:var(--kp-color-surface-card); color:var(--kp-color-text-main); margin-top:6px;}
#sc-value[aria-invalid=true] {border-color:var(--kp-color-error-fg);}
.kp-sc-service-list {border-top:1px solid var(--kp-color-border-soft); margin-top:16px; padding-top:16px;}
.kp-sc-service-list > p {margin:0 0 12px;}
.kp-sc-panel .kp-sc-service-group {margin-top:20px;}
.kp-sc-panel .kp-sc-service-group legend {font-size:14px; margin-bottom:10px;}
.kp-sc-service-icon {width:38px; height:38px; border-radius:10px; background:var(--kp-color-surface-soft); border:1px solid var(--kp-color-border-soft); display:flex; align-items:center; justify-content:center; font-size:21px; flex-shrink:0;}
.kp-sc-service-choice strong {font-family:var(--kp-font-body);}
.kp-sc-panel-footer {flex-shrink:0; padding:16px 20px; padding-bottom:max(16px,env(safe-area-inset-bottom)); background:var(--kp-color-surface-card); border-top:1px solid var(--kp-color-border-soft);}
.kp-sc-panel-footer > .kp-sc-hint {margin:0 0 12px;}
.kp-sc-footer-actions {display:flex; gap:10px;}
.kp-sc-button {display:inline-flex; align-items:center; justify-content:center; gap:8px; font:600 14px/1.5 var(--kp-font-body); border-radius:10px; cursor:pointer; border:1.5px solid var(--kp-color-brand-primary); background:var(--kp-color-brand-primary); color:var(--kp-color-text-inverse); padding:11px 20px; min-height:44px; white-space:nowrap;}
.kp-sc-button.is-outline {background:var(--kp-color-surface-card); color:var(--kp-color-brand-primary);}
.kp-sc-button.is-small {padding:8px 14px; font-size:13px;}
.kp-sc-footer-actions .kp-sc-button:last-child {flex:1;}
#sc-error {margin:0 0 10px; font-size:13px; color:var(--kp-color-error-fg); font-weight:700;}
.kp-sc-mobile-save {display:none;}
.kp-majorations-theme .kp-admin-draft-guard {z-index:250; padding:24px; background:var(--kp-maj-overlay);}
.kp-majorations-theme .kp-admin-draft-guard__panel {max-width:var(--kp-maj-dialog-width); background:var(--kp-color-surface-page); padding:24px; border-radius:18px;}
@media(max-width:859px) {
 .kp-majorations-theme .kp-admin-rules-page > .kp-admin-rules-tabs {display:none;}
 .kp-majorations-theme .kp-admin-rules-section-panel.is-inactive-desktop {display:grid;}
 .kp-majorations-theme .kp-admin-rules-layout.has-drafts {grid-template-columns:minmax(0,1fr);}
 .kp-majorations-theme .kp-admin-rules-content {padding-bottom:86px;}
 .kp-majorations-theme .kp-admin-back-link {display:none;}
 .kp-sc-calendar-heading {padding:16px;}
 .kp-sc-mobile-save {display:block; position:fixed; left:0; right:0; bottom:62px; z-index:70; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--kp-color-surface-page); border-top:1px solid var(--kp-color-border-soft);}
 .kp-sc-mobile-save .kp-sc-button {width:100%;}
 .kp-majorations-theme .kp-admin-draft-guard {align-items:flex-end; padding:0; top:56px;}
 .kp-majorations-theme .kp-admin-draft-guard__panel {max-width:100%; border-radius:20px 20px 0 0; padding:20px 16px;}
}

/* Findings from initial desktop/mobile composites: preserve common mobile order. */
.kp-majorations-theme .kp-admin-back-link {margin:0; font-size:13px; font-weight:700;}
.kp-sc-mobile-heading {display:none;}
@media(max-width:859px) {
 .kp-majorations-theme .kp-sc-mobile-heading {display:block; margin:0; font:700 16px/1.5 var(--kp-font-heading);}
 .kp-majorations-theme .kp-sc-agenda-heading {order:5;}
 .kp-majorations-theme #admin-rules-categories {order:10;}
 .kp-majorations-theme #admin-rules-agenda {order:20;}
 .kp-majorations-theme .kp-sc-exceptions-heading {order:25; margin-top:4px;}
 .kp-majorations-theme #admin-rules-surcharges {order:30;}
 .kp-majorations-theme #admin-rules-calendar {order:40;}
 .kp-majorations-theme #admin-rules-client-exceptions {order:50;}
 .kp-majorations-theme .kp-admin-cancellation-policy-heading {order:60;}
 .kp-majorations-theme #admin-rules-cancellation {order:61;}
 .kp-majorations-theme #admin-rules-simulator {order:70;}
 .kp-majorations-theme .kp-admin-rules-section-panel.kp-admin-rules-panel.kp-admin-cancellation-policy.is-inactive-desktop {display:grid;}
 .kp-majorations-theme .kp-admin-rules-layout.has-drafts {grid-template-columns:minmax(0,1fr);}
}

.kp-sc-mobile-meta {display:none;}
@media(max-width:859px) {
 .kp-majorations-theme .kp-sc-mobile-meta {display:inline-flex; position:absolute; top:15px; right:16px; padding:5px 10px; border:1px solid var(--kp-color-border-soft); border-radius:20px; background:var(--kp-color-surface-soft); color:var(--kp-color-text-soft); font:700 12px/1.4 var(--kp-font-body);}
}

.kp-majorations-theme .kp-admin-draft-guard__panel {width:100%; box-sizing:border-box; display:block;}
.kp-sc-exit-header {display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:14px;}
.kp-sc-exit-header > div {min-width:0;}
.kp-majorations-theme .kp-sc-exit-header h2 {margin:0 0 6px; font:700 24px/1.15 var(--kp-font-heading); color:var(--kp-color-text-main);}
.kp-majorations-theme .kp-sc-exit-header p {font:400 13px/1.4 var(--kp-font-body); color:var(--kp-color-text-soft);}
.kp-sc-exit-close {border:0; background:var(--kp-color-surface-card); color:var(--kp-color-brand-primary); border-radius:10px; padding:8px 12px; font:700 13px/1.5 var(--kp-font-body); cursor:pointer;}
.kp-sc-exit-warning {display:flex; gap:12px; margin:0 0 16px; font-size:13px;}
.kp-sc-exit-warning strong {font:700 13px/1.5 var(--kp-font-body);}
.kp-majorations-theme .kp-sc-exit-warning p {font:400 13px/1.5 var(--kp-font-body); color:var(--kp-color-warning-fg);}
.kp-majorations-theme .kp-admin-draft-guard__actions {display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.kp-majorations-theme .kp-admin-draft-guard__action,.kp-majorations-theme .kp-admin-draft-guard__action .kp-button {width:100%;}
@media(max-width:859px) {
 .kp-majorations-theme .kp-sc-exit-header h2 {font-size:22px;}
 .kp-majorations-theme .kp-admin-draft-guard {display:flex; justify-content:center;}
 .kp-majorations-theme .kp-admin-draft-guard[hidden] {display:none;}
}

/* The shared editor switches at760px; the surrounding admin shell at860px. */
@media(max-width:759px) {
 .kp-sc-overlay {align-items:flex-end; padding:0;}
 .kp-sc-panel {max-height:var(--kp-maj-panel-mobile-height); border-radius:20px 20px 0 0;}
 .kp-sc-panel-header {padding:16px;}
}

.kp-majorations-theme [data-draft-guard-stay] {border:1.5px solid var(--kp-color-brand-primary); background:var(--kp-color-surface-card); color:var(--kp-color-brand-primary);}

/* Keep the prototype30px surface and a44px pointer target. */
.kp-sc-edit::after {content:""; position:absolute; inset:-7px 0;}
.kp-majorations-theme .kp-admin-draft-panel__action-copy {display:none;}
.kp-sc-save-success {font-size:13px; grid-template-columns:12px minmax(0,1fr); gap:10px; padding:12px 16px;}

.kp-sc-save-mobile {display:none;}
@media(max-width:859px) {.kp-sc-save-desktop {display:none;} .kp-sc-save-mobile {display:inline;}}

/* Shared rules presentation, scoped to the prototype-bound majorations route. */
.kp-majorations-theme .kp-alert.kp-sc-save-success {display:grid; margin:0;}
.kp-majorations-theme .kp-admin-draft-guard__actions {margin-top:0;}
.kp-majorations-theme .kp-admin-draft-guard__actions .kp-button {height:44px; min-height:44px; padding:10px 20px; font:600 14px/1.5 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-panel {padding:24px; gap:12px; box-shadow:0 1px 3px color-mix(in srgb, var(--kp-color-text-main) 4%, transparent);}
.kp-majorations-theme .kp-admin-rules-panel__head h3 {font:700 16px/1.5 var(--kp-font-heading);}
.kp-majorations-theme .kp-admin-rules-panel__head .kp-button {border:1.5px solid var(--kp-color-brand-primary); box-shadow:none; min-height:38px; padding:8px 14px; font:600 13px/1.5 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-panel__alert {margin:4px 0; padding:12px 16px; grid-template-columns:12px minmax(0,1fr); gap:12px;}
.kp-majorations-theme .kp-admin-rules-panel .kp-admin-rules-panel__alert-icon {border:0; background:transparent; width:12px; height:20px; font:700 13px/20px var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-panel .kp-admin-rules-panel__alert-copy strong {font:700 13px/1.5 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-category-card__count {display:none;}
.kp-majorations-theme .kp-admin-rules-category-card__actions {flex-shrink:0;}
.kp-majorations-theme .kp-admin-rules-category-card__actions > a {min-height:30px; padding:6px 9px; background:var(--kp-color-surface-alt); font:700 12px/1.5 var(--kp-font-body); position:relative;}
.kp-majorations-theme .kp-admin-rules-category-card__actions > a::after {content:""; position:absolute; inset:-7px 0;}
.kp-majorations-theme .kp-admin-rules-category-card__actions > a.kp-admin-rules-danger-trigger {border:0; background:var(--kp-color-error-bg); color:var(--kp-maj-error);}
.kp-majorations-theme .kp-admin-rules-capacity-grid dt {line-height:1.5;}
.kp-majorations-theme .kp-admin-rules-capacity-grid dd {line-height:1.5;}
.kp-sc-agenda-intro {padding:14px; border-radius:12px; background:var(--kp-color-surface-soft);}
.kp-sc-agenda-intro h4 {margin:0; font:700 14px/1.5 var(--kp-font-heading);}
.kp-sc-agenda-intro p {margin:4px 0 0; color:var(--kp-color-text-soft); font:400 13px/1.45 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-availability-period-card,.kp-majorations-theme .kp-admin-calendar-exception-card,.kp-majorations-theme .kp-admin-service-exception-card {padding:12px; gap:10px; border-radius:12px; background:var(--kp-color-surface-soft); border:1px solid var(--kp-color-border-soft); box-shadow:none;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__head {display:flex; align-items:flex-start; gap:10px; justify-content:space-between;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__head h4,.kp-majorations-theme .kp-admin-calendar-exception-card h4,.kp-majorations-theme .kp-admin-service-exception-card h3 {font:700 13px/1.5 var(--kp-font-heading); margin:0;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__head p {margin:2px 0 0; font:400 12px/1.45 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-availability-period-card__detail,.kp-majorations-theme .kp-admin-calendar-exception-card__effect,.kp-majorations-theme .kp-admin-service-exception-card__rule {padding:7px 9px; border:1px solid var(--kp-color-border-soft); border-radius:8px; background:var(--kp-color-surface-card); margin:0;}
.kp-majorations-theme .kp-admin-calendar-exception-card__effect {margin-top:8px;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__detail p,.kp-majorations-theme .kp-admin-calendar-exception-card__effect > p,.kp-majorations-theme .kp-admin-service-exception-card__rule-label {margin:0 0 2px; font:700 10px/1.5 var(--kp-font-body); color:var(--kp-color-text-muted); text-transform:uppercase;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__detail span,.kp-majorations-theme .kp-admin-calendar-exception-card__effect > span,.kp-majorations-theme .kp-admin-service-exception-card__rule p:not(.kp-admin-service-exception-card__rule-label) {margin:0; font:700 12px/1.25 var(--kp-font-body); color:var(--kp-color-text-main);}
.kp-majorations-theme .kp-admin-service-exception-card__body {gap:8px;}
.kp-majorations-theme .kp-admin-rules-status-badge {margin:0; min-height:24px; padding:4px 9px; font:700 11px/1.2 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-rules-status-badge.is-active,.kp-majorations-theme .kp-admin-rules-status-badge.is-success {border-color:var(--kp-color-success-border); background:var(--kp-color-success-bg); color:var(--kp-color-success-readable);}
.kp-majorations-theme .kp-admin-rules-status-badge.is-inactive,.kp-majorations-theme .kp-admin-rules-status-badge.is-danger {border-color:var(--kp-color-error-border); background:var(--kp-color-error-bg); color:var(--kp-maj-error);}
.kp-majorations-theme .kp-admin-rules-availability-period-card__actions,.kp-majorations-theme .kp-admin-service-exception-card__actions {display:grid; grid-template-columns:1fr 1fr; gap:8px;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__actions > a,.kp-majorations-theme .kp-admin-service-exception-card__actions > a {display:flex; justify-content:center; align-items:center; position:relative; min-height:36px; border:0; border-radius:9px; background:var(--kp-color-surface-alt); color:var(--kp-color-brand-primary); padding:9px 10px; font:700 12px/1.5 var(--kp-font-body); text-decoration:none;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__actions > a::after,.kp-majorations-theme .kp-admin-service-exception-card__actions > a::after {content:"";position:absolute;inset:-4px 0;}
.kp-majorations-theme .kp-admin-rules-availability-period-card__actions > a.kp-admin-rules-danger-trigger,.kp-majorations-theme .kp-admin-service-exception-card__actions > a.kp-admin-rules-inline-action--danger {background:var(--kp-color-error-bg); color:var(--kp-maj-error);}
.kp-sc-cancellation-intro,.kp-sc-simulator-intro {margin:0; color:var(--kp-color-text-soft); font:400 13px/1.5 var(--kp-font-body);}
.kp-majorations-theme .kp-admin-cancellation-policy-heading {margin:0;}
.kp-majorations-theme .kp-admin-cancellation-policy-heading h2 {font:700 16px/1.5 var(--kp-font-heading);}
.kp-majorations-theme .kp-admin-cancellation-policy .kp-admin-rules-panel__head h3 {font-size:16px;}
.kp-majorations-theme #admin-rules-simulator {gap:6px;}
.kp-majorations-theme #admin-rules-simulator .kp-sc-simulator-intro {margin-bottom:12px;}
.kp-majorations-theme [data-sc-simulator-presentation] {gap:0;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-note,.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-empty {display:none;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-form-grid {display:grid; gap:16px;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-field__label {font:600 13px/1.5 var(--kp-font-body);}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-field__required,.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animals__hint {display:none;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-field__control {font:400 14px/1.5 var(--kp-font-body); border:1.5px solid var(--kp-color-border-default); border-radius:10px; height:44px; min-height:44px; padding:10px 14px;}
.kp-majorations-theme [data-sc-simulator-presentation] [data-simulator-service-step] {grid-row:2;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animals {grid-row:3;}
.kp-majorations-theme .kp-sc-animal-count {font:400 12px/1.5 var(--kp-font-body); color:var(--kp-color-text-soft);}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animals__choices {display:grid; grid-template-columns:1fr; gap:12px; margin-top:10px;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal {display:grid; grid-template-columns:52px minmax(0,1fr) 22px; gap:12px; align-items:center; width:100%; min-height:0; padding:16px; border:2px solid var(--kp-color-border-soft); border-radius:14px;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal:has(input:checked) {background:var(--kp-color-surface-blue);border-color:var(--kp-color-brand-primary);box-shadow:none;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal__icon {display:flex;align-items:center;justify-content:center; width:52px;height:52px;border-radius:14px;background:var(--kp-color-surface-alt);font-size:28px;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal__name {text-align:left;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal__name strong {display:block;font:700 16px/1.5 var(--kp-font-body);}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal__name small {display:block;margin-top:3px;font:400 12px/1.45 var(--kp-font-body);color:var(--kp-color-text-soft);}
.kp-sc-animal-badges {display:flex;gap:6px;flex-wrap:wrap;margin-top:7px;}
.kp-sc-animal-badges > span {padding:3px 7px;font:700 10px/1.5 var(--kp-font-body);border-radius:6px;background:var(--kp-color-surface-soft);color:var(--kp-color-text-soft);}
.kp-sc-animal-badges > span.is-success {background:var(--kp-color-success-bg);color:var(--kp-color-success-readable);}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal input {position:static;opacity:1;width:20px;height:20px;grid-column:3;grid-row:1;margin:0;accent-color:var(--kp-color-brand-primary);}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animal__check {display:none;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-actions {justify-content:flex-start;margin-top:16px;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-actions .kp-button {width:auto;min-height:38px;padding:8px 14px;border:1.5px solid var(--kp-color-brand-primary);background:var(--kp-color-surface-card);color:var(--kp-color-brand-primary);font:600 13px/1.5 var(--kp-font-body);}
.kp-sc-simulator-footnote {margin:12px 0 0;font:400 12px/1.5 var(--kp-font-body);color:var(--kp-color-text-soft);}
@media(max-width:859px) {
 .kp-majorations-theme .kp-admin-rules-panel {padding:16px;}
 .kp-majorations-theme .kp-admin-rules-category-card,.kp-majorations-theme .kp-admin-rules-availability-period-card,.kp-majorations-theme .kp-admin-calendar-exception-card,.kp-majorations-theme .kp-admin-service-exception-card {padding:10px;}
 .kp-majorations-theme .kp-sc-simulator-heading {order:68;}
 .kp-majorations-theme .kp-admin-draft-panel {padding:10px 16px;background:var(--kp-color-surface-page);}
 .kp-majorations-theme .kp-admin-draft-panel .kp-button {height:44px; min-height:44px;}
}

.kp-sc-mobile-entry {display:none;}
@media(max-width:859px) {.kp-sc-mobile-entry {display:inline-flex;min-height:44px;justify-self:start;}}

/* The rules page and sidebar inherit the common admin shell dimensions. */
/* Controls keep the shared application body typography. */
.kp-majorations-theme .kp-sc-button {position:relative; min-height:0; padding:10px 20px; line-height:normal;}
.kp-majorations-theme .kp-sc-button.is-small {padding:8px 14px;}
.kp-majorations-theme .kp-sc-button:not(.is-outline) {border:0;}
.kp-majorations-theme .kp-sc-button::after,.kp-majorations-theme .kp-sc-exit-close::after {content:'';position:absolute;inset:50% 0 auto;transform:translateY(-50%);min-height:44px;min-width:44px;}
.kp-majorations-theme .kp-sc-exit-close {position:relative;line-height:normal;}
.kp-majorations-theme .kp-admin-draft-guard {background:var(--kp-maj-exit-overlay);}
.kp-majorations-theme .kp-sc-exit-warning {font-size:16px;color:var(--kp-color-warning-fg);}
.kp-majorations-theme .kp-sc-exit-warning > span {font-size:16px;line-height:20px;color:inherit;}
.kp-majorations-theme .kp-sc-exit-warning strong,.kp-majorations-theme .kp-sc-exit-warning p {color:inherit;}
.kp-majorations-theme #sc-error {color:var(--kp-maj-error);}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-actions {display:flex;align-items:flex-start;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-actions .kp-button {flex:0 0 auto;align-self:flex-start;justify-self:start;display:inline-flex;width:auto;white-space:nowrap;line-height:normal;}

/* Preserve native input spacing from the bound editor, outside simulator animals. */
.kp-majorations-theme .kp-sc-choice input[type=radio] {margin:3px 3px 0 5px;}
.kp-majorations-theme .kp-sc-choice input[type=checkbox] {margin:3px 3px 3px 4px;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-field__label {font-family:var(--kp-maj-font-body)!important;line-height:normal;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-admin-rule-simulator-animals > legend {font-weight:700;}
.kp-majorations-theme [data-sc-simulator-presentation] .kp-sc-animal-count {line-height:normal;}

/* Story18.3: port of SurchargeHolidayCalendar, with local publication diagnostics. */
.kp-sc-holiday-calendar {padding:0;}
.kp-sc-holiday-calendar > h3 {margin:0;}
.kp-sc-holiday-calendar [hidden] {display:none!important;}
.kp-sc-holiday-calendar .kp-sc-calendar-heading {width:100%;text-align:left;border:0;border-radius:16px;background:transparent;cursor:pointer;color:var(--kp-color-brand-primary);font-family:var(--kp-font-heading);font-size:16px;font-weight:700;}
.kp-sc-calendar-title {flex:1;min-width:0;}
.kp-sc-calendar-title > span {display:block;}
.kp-sc-calendar-title > span:first-child {font:700 16px/normal var(--kp-maj-font-heading);}
.kp-sc-calendar-title .kp-sc-hint {margin-top:4px;font-family:var(--kp-maj-font-body, "Nunito", sans-serif);font-size:13px;line-height:1.45;font-weight:400;}
.kp-sc-calendar-heading[aria-expanded=true] .kp-sc-calendar-chevron {transform:rotate(180deg);}
.kp-sc-calendar-content {scroll-margin-top:96px;border-top:1px solid var(--kp-color-border-soft);padding:22px;}
.kp-sc-calendar-scope {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;background:var(--kp-color-surface-soft);border:1px solid var(--kp-color-border-soft);border-radius:12px;}
.kp-sc-calendar-scope > div > p:first-child {margin:0;font:700 14px/1.5 var(--kp-font-body);}
.kp-sc-calendar-scope label {font:700 13px/1.5 var(--kp-font-body);width:140px;}
.kp-sc-calendar-scope select {display:block;width:100%;min-height:44px;box-sizing:border-box;border:1px solid var(--kp-color-border-default);border-radius:9px;padding:10px 12px;margin-top:6px;background:var(--kp-color-surface-card);font:400 14px var(--kp-font-body);color:var(--kp-color-text-main);}
.kp-sc-calendar-list-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 12px;}
.kp-sc-calendar-list-heading h4 {font-size:14px;}
.kp-sc-calendar-list-heading > span {font-size:12px;font-weight:700;color:var(--kp-color-text-soft);background:var(--kp-color-surface-soft);border-radius:20px;padding:4px 10px;}
.kp-sc-calendar-list {list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.kp-sc-calendar-list li {display:flex;align-items:center;gap:12px;border:1px solid var(--kp-color-border-soft);border-radius:10px;padding:12px;min-width:0;}
.kp-sc-calendar-list time {display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--kp-color-surface-soft);border-radius:8px;width:48px;min-height:52px;flex-shrink:0;color:var(--kp-color-brand-primary);}
.kp-sc-calendar-list time > span:first-child {font:700 17px/1.2 var(--kp-font-body);}
.kp-sc-calendar-list time > span:last-child {font-size:11px;font-weight:700;text-transform:uppercase;}
.kp-sc-calendar-list li > div {min-width:0;}
.kp-sc-calendar-list li > div > p:first-child {margin:0;font:700 13px/1.4 var(--kp-font-body);}
.kp-sc-calendar-list .kp-sc-hint {font-size:12px;margin-top:3px;}
.kp-sc-calendar-footnote {font-size:12px;margin-top:16px;}
.kp-sc-calendar-diagnostic {margin-top:16px;font-size:13px;}
.kp-sc-calendar-diagnostic summary {cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;}
.kp-sc-calendar-diagnostic dl {display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;}
.kp-sc-calendar-diagnostic dd {margin:0;overflow-wrap:anywhere;}
.kp-holiday-coverage-alert {position:static;width:100%;box-sizing:border-box;margin:0 0 24px;grid-column:1 / -1;}
.kp-holiday-coverage-alert p {margin:6px 0;}
.kp-holiday-coverage-alert form {margin-top:10px;}
@media(max-width:599px) {
 .kp-sc-calendar-content {padding:16px;}
 .kp-sc-calendar-scope label {width:100%;}
 .kp-sc-calendar-list {grid-template-columns:1fr;}
 .kp-sc-holiday-calendar .kp-sc-calendar-heading {padding:16px;}
 .kp-holiday-coverage-alert {margin-bottom:20px;}
}

/* The inline parent has20px mobile gutters; the calendar retains its16px prototype gutter. */
@media(max-width:859px) {
 .kp-sc-holiday-calendar--inline {width:calc(100% + 8px);max-width:none;margin-inline:-4px;}
 .kp-sc-calendar-content {scroll-margin-top:84px;}
}
