@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    src: url('fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    src: url('fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    src: url('fonts/dm-sans-italic-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    src: url('fonts/syne-latin-ext.woff2') format('woff2');
}

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    src: url('fonts/syne-latin.woff2') format('woff2');
}

:root {
    --kurzola-menu: #166534;
    --kurzola-primary: #22c55e;
    --kurzola-primary-hover: #16a34a;
    --kurzola-btn: #0a0a0a;
    --kurzola-btn-hover: #1a1a1a;
    --kurzola-text: #0a0a0a;
    --kurzola-text-muted: #6b7280;
    --kurzola-border: #0a0a0a;
    --kurzola-bg: #ffffff;
    --bs-primary: var(--kurzola-primary);
    --bs-primary-rgb: 34, 197, 94;
    --bs-primary-bg-subtle: var(--bs-success-bg-subtle);
    --bs-primary-border-subtle: var(--bs-success-border-subtle);
    --bs-primary-text-emphasis: var(--kurzola-menu);
    --bs-success: var(--kurzola-primary);
    --bs-success-rgb: 34, 197, 94;
    --bs-success-bg-subtle: #dcfce7;
    --bs-success-border-subtle: #86efac;
    --bs-success-text-emphasis: var(--kurzola-menu);
    --bs-info: var(--kurzola-text-muted);
    --bs-info-rgb: 107, 114, 128;
    --bs-info-bg-subtle: #f3f4f6;
    --bs-info-border-subtle: #d1d5db;
    --bs-info-text-emphasis: var(--kurzola-text);
    --bs-link-color: var(--kurzola-menu);
    --bs-link-hover-color: #14532d;
    --bs-body-bg: #ffffff;
    --bs-body-color: var(--kurzola-text);
    --bs-border-color: #d1d5db;
    --bs-list-group-active-bg: var(--kurzola-btn);
    --bs-list-group-active-border-color: var(--kurzola-border);
}

html.kurzola-menu-scroll-lock,
body.kurzola-menu-scroll-lock {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

.sidebar-shell.open .sidebar,
.sidebar-shell.open .sidebar-tab {
    touch-action: manipulation;
}

/* overflow-x: clip (not hidden) on purpose -- setting only one axis to hidden while the other
   stays visible makes the browser silently recompute that visible axis as auto too (the overflow
   axis-pairing rule), which would turn body into its own scroll container with no height
   constraint of its own that ever actually scrolls. That breaks every position: sticky element
   anchored against the real page/viewport scroll instead (e.g. the page-builder's
   .web-editor-nav/.web-editor-pu side rails) -- setting overflow-y: visible explicitly does NOT
   avoid this, since the computed value is still "visible" either way. clip is exempt from the
   pairing rule (it never becomes a scroll container), so it clips horizontal overflow exactly
   like hidden did without the side effect -- same fix MainLayout.razor.css's .page already uses. */
html, body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--kurzola-text);
    background-color: var(--kurzola-bg);
    max-width: 100%;
    overflow-x: clip;
}

/* Long unbroken strings (e-mail addresses, URLs, IBANs, promo/access codes, course slugs) have
   no break opportunity, so on a narrow phone they push their container wider than the viewport.
   The body's overflow-x: hidden then clips them out of sight rather than allowing a scroll, so
   the text is simply lost. overflow-wrap only kicks in when a word genuinely cannot fit, which
   leaves normal wrapping untouched. */
body {
    overflow-wrap: break-word;
}

table {
    overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .brand-mark {
    font-family: 'Syne', 'DM Sans', sans-serif;
    /* Syne is only registered at 600/700/800 above -- without this, Bootstrap's default heading
       weight of 500 doesn't exist in that set and the browser silently substitutes 600, and any
       component asking for 800 gets Syne's heaviest, most compressed-looking cut. Pinning every
       heading to 700 keeps the look consistent instead of leaving it to font-weight matching. */
    font-weight: 700;
}

/* Marketing landing: isolate from app chrome (green links, heading weight 700, Bootstrap). */
.marketing-root h1,
.marketing-root h2,
.marketing-root h3,
.marketing-root h4,
.marketing-root h5,
.marketing-root h6 {
    font-family: 'Syne', sans-serif;
    font-weight: unset;
}

a:not(.nav-link):not(.brand-mark):not(.nav-logo), .btn-link:not(.nav-link) {
    color: var(--kurzola-menu);
}

.marketing-root a:not(.btn-primary):not(.btn-outline):not(.btn-outline-light):not(.contact-email) {
    color: inherit;
}

.marketing-root .nav-logo {
    color: #0A0A0A !important;
}

.sidebar a.nav-link,
.sidebar .btn-link.nav-link {
    color: #fff;
}

/* Global (unscoped) on purpose -- the lector/customer context-switch link is nested two
   components deep (NavMenu -> NavItem -> UnsavedChangesAwareNavLink), and it's a button lectors
   reach for often enough to deserve its own visible frame, distinct from the plain nav rows
   around it. */
.sidebar .nav-item--context-switch a.nav-link {
    border: 1px solid #fff;
    border-radius: 6px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--kurzola-btn);
    --bs-btn-border-color: var(--kurzola-btn);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--kurzola-btn-hover);
    --bs-btn-hover-border-color: var(--kurzola-btn-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--kurzola-btn-hover);
    --bs-btn-active-border-color: var(--kurzola-btn-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--kurzola-btn);
    --bs-btn-disabled-border-color: var(--kurzola-btn);
    color: #fff;
    background-color: var(--kurzola-btn);
    border-color: var(--kurzola-btn);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: var(--kurzola-btn-hover);
    border-color: var(--kurzola-btn-hover);
}

.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary[disabled] {
    color: #9ca3af;
    background-color: #e5e7eb;
    border-color: #e5e7eb;
    opacity: 1;
}

.btn-outline-primary {
    --bs-btn-color: var(--kurzola-btn);
    --bs-btn-border-color: var(--kurzola-btn);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--kurzola-btn);
    --bs-btn-hover-border-color: var(--kurzola-btn);
    --bs-btn-disabled-color: var(--kurzola-btn);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--kurzola-btn);
    color: var(--kurzola-btn);
    border-color: var(--kurzola-btn);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--kurzola-btn);
    border-color: var(--kurzola-btn);
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled,
.btn-outline-primary[disabled] {
    color: var(--kurzola-btn);
    background-color: transparent;
    border-color: var(--kurzola-btn);
    opacity: 0.55;
}

.text-primary {
    color: var(--kurzola-menu) !important;
}

.border-primary {
    border-color: var(--kurzola-primary) !important;
}

.bg-primary {
    background-color: var(--kurzola-primary) !important;
}

.bg-orange {
    background-color: #f97316 !important;
    color: #fff !important;
}

hr, .dropdown-divider {
    border-color: var(--kurzola-border);
    opacity: 0.15;
}

ul li::marker {
    color: var(--kurzola-text);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(10, 10, 10, 0.25);
}

input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear {
    display: none;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--kurzola-primary);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-check-input:checked {
    background-color: var(--kurzola-primary);
    border-color: var(--kurzola-primary);
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(34, 197, 94, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(34, 197, 94, 0.25);
}

.form-range::-webkit-slider-thumb {
    background-color: var(--kurzola-primary);
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--kurzola-primary-hover);
}

.form-range::-moz-range-thumb {
    background-color: var(--kurzola-primary);
}

.form-range::-moz-range-thumb:active {
    background-color: var(--kurzola-primary-hover);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.brand-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    color: var(--kurzola-text);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    flex-shrink: 0;
    display: block;
}

.brand-word {
    margin-left: 0.04em;
    margin-bottom: 1px;
    letter-spacing: -0.04em;
}

.brand-mark:hover,
.brand-mark.active {
    color: var(--kurzola-text);
}

a.notification-bell-btn {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 50%;
    background-color: var(--kurzola-btn) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background-color 0.15s;
    border: none;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

a.notification-bell-btn:hover,
a.notification-bell-btn:focus,
a.notification-bell-btn:active,
a.notification-bell-btn:visited {
    background-color: var(--kurzola-btn-hover) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.notification-bell-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    pointer-events: none;
}

.notification-bell-svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #fff !important;
}

@media (max-width: 991.98px) {
    a.notification-bell-btn {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

.notification-bell-count {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(52%, -52%);
    z-index: 2;
    pointer-events: none;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.2rem;
    border-radius: 50%;
    background: var(--kurzola-btn) !important;
    color: #fff !important;
    border: 2px solid #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--kurzola-btn);
}

.nav-tabs:not(.customizer-top-nav) {
    border-bottom-color: var(--bs-border-color);
}

.nav-tabs:not(.customizer-top-nav) .nav-link {
    color: var(--kurzola-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    border-radius: 0;
}

.nav-tabs:not(.customizer-top-nav) .nav-link:hover {
    color: var(--kurzola-text);
    border-color: transparent;
}

.nav-tabs:not(.customizer-top-nav) .nav-link.active {
    color: var(--kurzola-text);
    font-weight: 600;
    background: transparent;
    border-color: transparent transparent var(--kurzola-primary);
}

/* KurzolaSelect: a custom dropdown replacing native <select> so both its closed and open states
   can be styled consistently -- native <select>'s open option list can't be styled cross-browser
   (no control over dividers, corners, insets). */
.kurzola-select {
    position: relative;
    width: 100%;
}

.kurzola-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: var(--kurzola-bg);
    border: 1px solid var(--kurzola-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--kurzola-text);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.kurzola-select-trigger:hover {
    background: #f9fafb;
}

.kurzola-select-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--kurzola-bg);
}

.kurzola-select-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kurzola-select-placeholder {
    color: var(--kurzola-text-muted);
}

.kurzola-select-caret {
    font-size: 0.7rem;
    color: var(--kurzola-text-muted);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.kurzola-select.is-open .kurzola-select-caret {
    transform: rotate(180deg);
}

.kurzola-select.is-open {
    position: relative;
    z-index: 1600;
}

.kurzola-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1600;
    background: var(--kurzola-bg);
    border: 1px solid var(--kurzola-border);
    border-radius: 0.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    max-height: 280px;
    overflow-y: auto;
}

.kurzola-select-panel--floating {
    position: fixed;
    z-index: 1600;
    right: auto;
}

.kurzola-select-option {
    display: block;
    position: relative;
    width: 100%;
    background: none;
    border: none;
    padding: 0.55rem 0.75rem;
    color: var(--kurzola-text);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.kurzola-select-option:hover {
    background: #f3f4f6;
}

.kurzola-select-option.is-selected {
    font-weight: 700;
    background: #f9fafb;
}

.kurzola-select-option.is-active {
    background: #f3f4f6;
    outline: 2px solid var(--kurzola-primary);
    outline-offset: -2px;
}

/* Divider between rows -- inset from both edges rather than running the full width. */
.kurzola-select-option:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.5cm;
    right: 0.5cm;
    bottom: 0;
    height: 1px;
    background: var(--kurzola-border);
}

/* Base ConfirmDialog styling -- kept global (not in a page-scoped stylesheet) since the component
   is reused from places that always render regardless of route, like the nav menu. */
.confirm-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    z-index: 2000;
}

.confirm-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    width: min(420px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.confirm-dialog-header {
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.confirm-dialog-close {
    appearance: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: -0.25rem -0.35rem -0.25rem 0;
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.confirm-dialog-close:hover:not(:disabled),
.confirm-dialog-close:focus-visible:not(:disabled) {
    background: rgba(10, 10, 10, 0.06);
    color: #0a0a0a;
    outline: none;
}

.confirm-dialog-close:disabled {
    opacity: 0.5;
    cursor: default;
}

.confirm-dialog-body {
    padding: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.confirm-dialog-footer {
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.confirm-dialog--draft-leave .confirm-dialog-footer {
    justify-content: flex-start;
}

.comm-tab-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.45;
}

.comm-tab-hint-icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1.45;
}

.page-help-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.page-help-header > :first-child {
    flex: 0 0 auto;
}

.page-help-callout {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 65%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.08);
}

.page-help-callout-body {
    flex: 1 1 auto;
    min-width: 0;
}

.page-help-callout-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 0.2rem;
}

.page-help-callout-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #4b5563;
}

.page-help-callout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 0.5rem;
    background: var(--kurzola-primary, #22C55E);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.page-help-callout-btn:hover,
.page-help-callout-btn:focus-visible {
    filter: brightness(0.94);
    color: #fff;
    outline: none;
}

@media (max-width: 767.98px) {
    .page-help-callout {
        flex: 1 1 100%;
    }
}

.kurzola-toggle-group {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.kurzola-toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    background-color: #ffffff !important;
    color: var(--kurzola-text) !important;
    border: 1px solid var(--kurzola-border) !important;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    padding: 0.25rem 0.65rem;
    border-radius: 0.35rem;
    box-shadow: none !important;
    cursor: pointer;
}

.kurzola-toggle-btn:hover:not(:disabled):not([aria-pressed="true"]),
.kurzola-toggle-btn:focus-visible:not([aria-pressed="true"]) {
    background-color: #f3f4f6 !important;
    color: var(--kurzola-text) !important;
    border-color: var(--kurzola-border) !important;
    outline: none;
}

.kurzola-toggle-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.kurzola-toggle-btn[aria-pressed="true"],
.kurzola-toggle-btn[aria-pressed="true"]:hover,
.kurzola-toggle-btn[aria-pressed="true"]:focus,
.kurzola-toggle-btn[aria-pressed="true"]:focus-visible,
.kurzola-toggle-btn[aria-pressed="true"]:active {
    background-color: var(--kurzola-btn) !important;
    color: #ffffff !important;
    border-color: var(--kurzola-border) !important;
    outline: none;
}

.kurzola-toggle-btn[aria-pressed="true"] .bi,
.kurzola-toggle-btn[aria-pressed="true"] .bi::before,
.kurzola-toggle-btn[aria-pressed="true"] span {
    color: #ffffff !important;
}

.web-editor-preview-toolbar > .kurzola-toggle-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.web-editor-preview-toolbar > .kurzola-toggle-btn .bi {
    font-size: 1.05rem;
    line-height: 1;
}

.web-editor-device-btn {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kurzola-border);
    border-radius: 0.35rem;
    background: #fff;
    color: var(--kurzola-text);
    cursor: pointer;
    box-shadow: none;
}

.web-editor-device-btn .bi,
.web-editor-device-btn .bi::before {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit;
}

.web-editor-device-btn--selected,
.web-editor-device-btn--selected:hover,
.web-editor-device-btn--selected:focus,
.web-editor-device-btn--selected:active {
    background: var(--kurzola-btn);
    color: #fff;
    border-color: var(--kurzola-border);
}

.web-editor-device-btn--selected .bi,
.web-editor-device-btn--selected .bi::before {
    color: #fff;
}

.kurzola-device-toggle {
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kurzola-border);
    border-radius: 0.35rem;
    background: #fff;
    color: var(--kurzola-text);
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.kurzola-device-toggle svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.kurzola-device-toggle.is-on {
    background: var(--kurzola-btn);
    color: #fff;
}

.kurzola-device-toggle.is-on svg {
    stroke: #fff;
}

.analytics-panel-tab {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--kurzola-border);
    border-radius: 0.35rem;
    background: #fff;
    color: var(--kurzola-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
}

.analytics-panel-tab--selected,
.analytics-panel-tab[aria-pressed="true"] {
    background: var(--kurzola-btn) !important;
    color: #fff !important;
    border-color: var(--kurzola-border) !important;
}

@media (pointer: coarse) {
    .form-control-sm,
    .form-select-sm,
    .input-group-sm > .form-control,
    .input-group-sm > .form-select {
        font-size: 1rem;
    }
}

/* LockedFeature.razor: wraps a single control (button/card) so it renders dimmed and
   inert, with a lock badge on its corner and a hover/focus tooltip explaining why. The
   wrapper matches its child's own box model exactly (width: 100%, display: block) so it
   never changes that child's size or position within a grid/flex layout it already
   participates in – .locked-feature__content stretches to fill the wrapper the same way. */
.locked-feature {
    position: relative;
    display: block;
    width: 100%;
    cursor: default;
}

.locked-feature__content {
    display: block;
    width: 100%;
    pointer-events: none;
    opacity: 0.55;
    filter: grayscale(0.4);
}

.locked-feature__lock {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.55);
    color: #fff;
    font-size: 0.65rem;
    z-index: 1;
}

.locked-feature--inline {
    display: inline-flex;
    width: auto;
}

.locked-feature--inline .locked-feature__content {
    width: auto;
}

.locked-feature__tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(calc(-50% + var(--locked-feature-shift, 0px)));
    width: max-content;
    max-width: 16rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 20;
}

.locked-feature__tooltip[data-placement="below"] {
    bottom: auto;
    top: calc(100% + 10px);
}

.locked-feature:hover .locked-feature__tooltip,
.locked-feature:focus-visible .locked-feature__tooltip,
.locked-feature.is-open .locked-feature__tooltip {
    opacity: 1;
    visibility: visible;
}

.locked-feature__dismiss {
    position: fixed;
    inset: 0;
    z-index: 19;
}
