/* Selge on native TP24 markup. No demo routes, data, layout toggles or action replacement.
   Every rule is opt-in scoped; existing responsive/mobile behavior owns layout. */
body.tp24-selge {
    --selge-font: Manrope, Arial, sans-serif;
    --selge-ink: #263a49;
    --selge-muted: #536574;
    --selge-paper: #f2f5f7;
    --selge-surface: #fff;
    --selge-line: #d6e0e7;
    --selge-soft: #e3edf2;
    --selge-action: #254b68;
    background: var(--selge-paper);
    color: var(--selge-ink);
    -webkit-font-smoothing: antialiased;
}
/* The native mobile homepage retains its original type sizes and layout. */
body.tp24-selge:not(:has(.teenus24-mobile-identity-surface)) {
    font: 400 15px/1.6 var(--selge-font);
}
body.tp24-selge:not(:has(.teenus24-mobile-identity-surface)) :is(input,select,textarea,button) {
    font-family: var(--selge-font);
}
body.tp24-selge :is(.teenus24-submit-form textarea,.teenus24-edit-form textarea) {
    font-family: var(--selge-font);
    font-size: 16px;
}
body.tp24-selge:not(:has(.teenus24-mobile-identity-surface)) .teenus24-search-pill-input {
    /* The native search input sets its size in an inline style. */
    font-size: 16px !important;
}
body.tp24-selge :is(.teenus24-page-title,.teenus24-categories-page-title,.teenus24-single-title,
                   .teenus24-legal-page-title,.teenus24-public-view-context__title,
                   .teenus24-account-guest-card h1,.teenus24-account-breakout h1,
                   .tp24-needs:not(.tp24-needs-home) h1) {
    color: var(--selge-ink);
    font: 650 clamp(26px, 3vw, 38px)/1.2 var(--selge-font);
    letter-spacing: -.035em;
}
body.tp24-selge :is(.teenus24-section-title,.teenus24-dashboard-section-title,.teenus24-legal-content h2,
                   .tp24-needs:not(.tp24-needs-home) h2) {
    font: 650 22px/1.25 var(--selge-font);
}
body.tp24-selge.teenus24-account-page :is(.teenus24-account-content > h2:first-child,.teenus24-services-header h2,
                                         .teenus24-billing-header h2,.teenus24-counties-header h2,
                                         .teenus24-account-content > .tp24-needs:first-child > h2) {
    color: var(--selge-ink);
    font: 650 clamp(26px, 3vw, 38px)/1.2 var(--selge-font);
    letter-spacing: -.035em;
}
body.tp24-selge .tp24-needs:not(.tp24-needs-home) {
    font: 400 15px/1.6 var(--selge-font);
}
body.tp24-selge .tp24-needs:not(.tp24-needs-home) .tp24-needs-card h3 {
    font: 650 18px/1.4 var(--selge-font);
}
body.tp24-selge .tp24-needs :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
    font-size: 16px;
}
body.tp24-selge :is(.teenus24-account-breakout,.teenus24-submit-form,.teenus24-public-page-base,.teenus24-single-service) {
    color: var(--selge-ink);
    line-height: 1.65;
}
body.tp24-selge :is(.teenus24-page-title,.teenus24-section-title,.teenus24-single-title,.teenus24-dashboard-section-title) {
    color: var(--selge-ink);
    letter-spacing: -.035em;
    line-height: 1.2;
}
body.tp24-selge :is(.teenus24-account-content,.teenus24-profile-workspace,.teenus24-edit-view) { min-width: 0; }
body.tp24-selge :is(.teenus24-profile-card,.teenus24-dashboard-section,.teenus24-billing-summary-card,.teenus24-billing-section,.teenus24-extend-card,.teenus24-account-guest-card) {
    background: var(--selge-surface);
    border: 1px solid var(--selge-line);
    border-radius: 15px;
    box-shadow: 0 2px 3px #14384b03;
    padding: 26px;
}
body.tp24-selge .teenus24-account-sidebar { background: transparent; border-color: var(--selge-line); box-shadow: none; }
body.tp24-selge .teenus24-account-menu > a {
    border-radius: 9px;
    color: var(--selge-ink);
    font-weight: 600;
    min-height: 44px;
}
body.tp24-selge .teenus24-account-menu > a.active,
body.tp24-selge .teenus24-account-menu .teenus24-account-submenu a.active {
    background: var(--selge-soft);
    color: var(--selge-ink);
    font-weight: 750;
    box-shadow: none;
}
body.tp24-selge .teenus24-account-menu > a.active::before { content: none; }
body.tp24-selge .teenus24-account-submenu { border-color: var(--selge-line); }
body.tp24-selge .teenus24-account-submenu a { border-radius: 6px; }
@media (min-width: 769px) {
    body.tp24-selge .teenus24-account-menu > a::after { color: var(--selge-muted); }
    body.tp24-selge .teenus24-account-menu > a.active::after { color: var(--selge-action); }
    body.tp24-selge .teenus24-account-menu > a .teenus24-account-menu-icon {
        background: transparent;
        stroke: currentColor;
        box-shadow: none;
    }
}
body.tp24-selge :is(.teenus24-account-content,.tp24-needs-package) select {
    font-size: 16px;
    border-color: var(--selge-line);
}
body.tp24-selge .teenus24-account-menu-group-label { color: var(--selge-muted); letter-spacing: .1em; }
body.tp24-selge .teenus24-dashboard-card { background: var(--selge-surface); border-color: var(--selge-line); border-radius: 12px; box-shadow: none; }
body.tp24-selge :is(.teenus24-dashboard-card strong,.teenus24-dashboard-card-link strong) { color: var(--selge-ink); letter-spacing: -.04em; }
body.tp24-selge :is(.teenus24-activity-feed-item,.teenus24-recent-item) { border-color: var(--selge-line); }
body.tp24-selge :is(.teenus24-activity-feed-thumb,.teenus24-recent-thumb) { border-radius: 10px; }
body.tp24-selge :is(.teenus24-dashboard-intro,.teenus24-dashboard-section-intro,.teenus24-profile-meta,.teenus24-billing-muted,.teenus24-submit-help,.teenus24-upload-hint,.teenus24-profile-password-help) { color: var(--selge-muted); }
/* Preserve every input, validation message, media control and submit operation. */
body.tp24-selge :is(.teenus24-submit-form,.teenus24-profile-form,.teenus24-profile-password-form,.teenus24-account-guest-form) {
    color: var(--selge-ink);
}
body.tp24-selge :is(.teenus24-submit-form,.teenus24-profile-form,.teenus24-profile-password-form,.teenus24-account-guest-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]),textarea,select) {
    border: 1px solid #b5c4ce;
    border-radius: 9px;
    background: var(--selge-surface);
    color: var(--selge-ink);
    font-size: 16px;
    line-height: 1.5;
}
body.tp24-selge .teenus24-submit-form { border-color: var(--selge-line); border-radius: 15px; }
body.tp24-selge :is(.teenus24-edit-field label,.teenus24-form-section-title) { color: var(--selge-ink); }
body.tp24-selge :is(.teenus24-profile-summary,.teenus24-edit-logo-box,.teenus24-info-box) { background: var(--selge-soft); border-color: var(--selge-line); border-radius: 10px; }
body.tp24-selge .teenus24-gallery-item { border-color: var(--selge-line); border-radius: 10px; }
body.tp24-selge .teenus24-edit-actions { gap: 10px; }
body.tp24-selge :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-upload-btn,.teenus24-account-guest-add-btn) { border-radius: 10px; box-shadow: none; }
body.tp24-selge :is(.teenus24-btn-primary,.teenus24-add-service-btn,.teenus24-account-guest-add-btn) { background: var(--selge-action); border-color: var(--selge-action); color: #fff; }
body.tp24-selge .teenus24-btn-secondary { background: #fff; border-color: #b5c4ce; color: var(--selge-action); }
body.tp24-selge :is(.teenus24-btn-primary,.teenus24-add-service-btn,.teenus24-account-guest-add-btn):hover { background: #235771; border-color: #235771; color: #fff; }
/* Public list/detail use the existing gallery, contact and paging mechanisms. */
body.tp24-selge :is(.teenus24-public-page-card,.teenus24-single-contact) { background: #fff; border-color: var(--selge-line); border-radius: 15px; box-shadow: 0 2px 4px #173e5403; }
body.tp24-selge .teenus24-public-list-toolbar { border-color: var(--selge-line); }
body.tp24-selge :is(.teenus24-single-photo-shell,.teenus24-single-thumb) { border-radius: 12px; }
body.tp24-selge .teenus24-single-description { color: var(--selge-ink); line-height: 1.85; }
body.tp24-selge :is(.teenus24-account-breakout,.teenus24-submit-form,.teenus24-public-page-base,.teenus24-single-service,.teenus24-account-guest) :is(a,button,input,textarea,select,summary):focus-visible {
    outline: 3px solid #147d9b;
    outline-offset: 3px;
}
/* Keep original Arrow24 colors and mobile geometry; only guarantee a circular button. */
body.tp24-selge .teenus24-search-brand-cta { aspect-ratio: 1; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 760px) {
    body.tp24-selge :is(.teenus24-profile-card,.teenus24-dashboard-section,.teenus24-billing-summary-card,.teenus24-billing-section,.teenus24-extend-card,.teenus24-account-guest-card) { padding: 20px; border-radius: 12px; }
    body.tp24-selge .teenus24-counties-table-head { display: none; }
    body.tp24-selge .teenus24-counties-table-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding-block: 12px;
    }
    body.tp24-selge .teenus24-counties-table-action {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
/* Match the existing phone header even when a desktop browser is resized.
   PHP already omits these two desktop links for actual mobile user agents. */
@media (max-width: 768px) {
    body.tp24-selge .teenus24-main-nav :is(.teenus24-nav-link--browse,.teenus24-nav-link--categories) { display: none; }
}
/* Override the legacy desktop shell's decorative gradients, not its layout. */
body.tp24-selge .teenus24-account-desktop-v2 .teenus24-account-desktop-v2__sidebar,
body.tp24-selge .teenus24-account-desktop-v2 .teenus24-account-desktop-v2__workspace {
    background: var(--selge-surface);
    border: 1px solid var(--selge-line);
    border-radius: 15px;
    box-shadow: none;
}
.tp24-selge-dashboard-heading { display: none; }
@media (min-width: 769px) {
    body.tp24-selge .teenus24-site-header {
        padding-inline: max(20px, calc(50vw - 580px));
    }
    body.tp24-selge .teenus24-account-breakout.teenus24-account-desktop-v2 {
        max-width: 1160px;
        margin-inline: auto;
    }
    body.tp24-selge .tp24-selge-dashboard-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 28px 0;
    }
    body.tp24-selge .tp24-selge-dashboard-heading h1 { margin: 0; }
    body.tp24-selge .tp24-selge-dashboard-heading + .teenus24-account-wrap .teenus24-dashboard-workspace-title { display: none; }
    body.tp24-selge .teenus24-account-desktop-v2 :is(.teenus24-account-desktop-v2__sidebar,.teenus24-account-desktop-v2__workspace) {
        background: transparent;
        border: 0;
    }
    body.tp24-selge .teenus24-account-desktop-v2 .teenus24-account-desktop-v2__workspace { padding: 0; }
    body.tp24-selge .teenus24-account-content .teenus24-dashboard-card {
        border-color: transparent;
        background: transparent;
    }
}
@media (min-width: 769px) and (max-width: 900px) {
    body.tp24-selge .teenus24-account-desktop-v2 :is(.teenus24-account-desktop-v2__sidebar,.teenus24-account-desktop-v2__workspace) {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }
}
body.tp24-selge .tp24-needs-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
}
body.tp24-selge .tp24-needs-heading :is(h1,h2) { margin: 0; }
body.tp24-selge .tp24-needs-dashboard { max-width: none; margin: 20px 0; }
body.tp24-selge .tp24-needs-dashboard .tp24-needs-card { background: var(--selge-paper); }
body.tp24-selge .tp24-needs-public-list nav:first-child { border-bottom: 1px solid var(--selge-line); padding-bottom: 16px; }
body.tp24-selge .tp24-needs-public-list .tp24-needs-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    background: #f3f7f9;
    border: 1px solid var(--selge-line);
    border-radius: 12px;
}
body.tp24-selge .tp24-needs-filter-fields { display: grid; gap: 12px; }
body.tp24-selge .tp24-needs-filter-fields label, body.tp24-selge .tp24-needs-age label { margin-top: 0; }
body.tp24-selge .tp24-needs-age { max-width: 360px; }
body.tp24-selge .tp24-needs-public-list .tp24-needs-filters > button {
    grid-area: auto;
    justify-self: start;
    margin: 0;
}
body.tp24-selge .tp24-needs-public-results { display: grid; align-items: start; gap: 20px 32px; margin-top: 24px; }
body.tp24-selge .tp24-needs-public-results > * { min-width: 0; }
body.tp24-selge .tp24-needs-results-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--selge-muted); }
body.tp24-selge .tp24-needs-provider-note { padding: 22px; background: #f3f7f9; border: 1px solid var(--selge-line); border-radius: 14px; }
body.tp24-selge .tp24-needs-provider-note h2 { margin: 0; }
body.tp24-selge .tp24-needs-public-list .tp24-needs-category-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 10px;
    background: var(--selge-soft);
    color: var(--selge-action);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
@media (min-width: 700px) {
    body.tp24-selge .tp24-needs-filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    body.tp24-selge .tp24-needs-public-results { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
}
body.tp24-selge .tp24-needs-public-list .tp24-needs-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--selge-line);
    max-width: 760px;
}
body.tp24-selge .tp24-needs-package > form {
    padding: clamp(16px, 3vw, 28px);
    background: var(--selge-surface);
    border: 1px solid var(--selge-line);
    border-radius: 15px;
}
html:has(body.tp24-selge-login) { background: #f2f5f7; }
body.tp24-selge-login #login { width: min(480px, calc(100% - 32px)); }
body.tp24-selge-login #login .input {
    font-size: 16px;
    border-color: var(--selge-line);
}
body.tp24-selge-login #login #wp-submit {
    background: var(--selge-action);
    border-color: var(--selge-action);
}
body.tp24-selge-login #login #wp-submit:focus-visible {
    outline: 2px solid var(--selge-action);
    outline-offset: 3px;
}
body.tp24-selge-login #login form {
    background: var(--selge-surface);
    border: 1px solid var(--selge-line);
    border-radius: 15px;
    box-shadow: none;
}
body.tp24-selge .teenus24-site-header { background: #fff; box-shadow: none; }
/* Native public pages: retain card/list switches, selection state and paging. */
body.tp24-selge :is(.teenus24-home-desktop-v3,.teenus24-public-page-base) { background: var(--selge-paper); }
body.tp24-selge .teenus24-home-desktop-v3 { background-image: none; min-height: 0; }
body.tp24-selge :is(.teenus24-home-desktop-card,.teenus24-home-desktop-category-card) { border-color: var(--selge-line); border-radius: 13px; box-shadow: none; }
body.tp24-selge .teenus24-home-desktop-v3-search-pill { background: #fff; border: 1px solid #bccdd7; box-shadow: 0 7px 22px #1637470a; }
body.tp24-selge .teenus24-home-desktop-v3 { margin-top: 0; padding: 0 24px 8px; }
body.tp24-selge .teenus24-home-desktop-v3-inner { width: min(100%, 1160px); }
body.tp24-selge .tp24-selge-home-intro { max-width: 840px; padding: clamp(28px, 4.5vw, 64px) 0 34px; }
body.tp24-selge .tp24-selge-home-eyebrow {
    margin: 0 0 12px;
    color: var(--selge-action);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}
body.tp24-selge .tp24-selge-home-intro h1 {
    margin: 0 0 16px;
    color: var(--selge-ink);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.04em;
}
body.tp24-selge .teenus24-home-desktop-v3-search-form { width: min(100%, 730px); margin: 24px 0 0; }
body.tp24-selge .teenus24-home-desktop-v3-search-pill { border-color: #6c8798; }
/* Keep the inherited homepage counter in the selected Merehall palette. */
body.tp24-selge .teenus24-home-desktop-service-count { color: var(--selge-action); }
body.tp24-selge .teenus24-home-desktop-v3-search-input { font-family: inherit; font-size: 16px; }
body.tp24-selge .teenus24-home-desktop-v3-search-pill :is(.teenus24-search-brand-cta,.teenus24-search-brand-cta .teenus24-brand-pill) {
    box-sizing: border-box; width: 48px; height: 48px; aspect-ratio: 1; border-radius: 50%;
}
body.tp24-selge .teenus24-home-desktop-v3-search-pill .teenus24-search-brand-cta .teenus24-brand-pill-img { height: 16px; }
body.tp24-selge .teenus24-home-desktop-v3 .teenus24-home-empty-message { margin-left: 0; }
body.tp24-selge .teenus24-home-desktop-service-count {
    position: static;
    height: auto;
    margin: 10px 0 0;
    text-align: left;
    line-height: 1.5;
}
body.tp24-selge .tp24-selge-home-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
body.tp24-selge .tp24-selge-home-examples a { padding: 4px 12px; border: 1px solid var(--selge-line); border-radius: 999px; background: #fff; color: var(--selge-ink); }
body.tp24-selge .tp24-selge-home-rail-empty { margin: 0 0 24px; color: var(--selge-muted); font-size: 14px; }
body.tp24-selge :is(.teenus24-home-desktop-discovery,.teenus24-home-desktop-categories) { position: relative; margin: 0 0 38px; }
body.tp24-selge .teenus24-home-desktop-section-head { flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; }
body.tp24-selge .teenus24-home-desktop-section-head h2 { color: var(--selge-ink); font-size: 22px; font-weight: 650; line-height: 1.2; }
body.tp24-selge .teenus24-home-desktop-section-head a { font-size: 14px; }
body.tp24-selge .teenus24-home-desktop-rail-controls { position: static; justify-content: flex-start; margin: 0 0 12px; }
body.tp24-selge .teenus24-home-desktop-rail-arrow { width: 42px; height: 42px; font-size: 18px; box-shadow: none; border-color: var(--selge-line); background: #fff; }
body.tp24-selge .teenus24-home-desktop-category-rail .teenus24-home-desktop-category-card {
    background: transparent; border: 0; border-top: 1px solid #b1c8d5; border-radius: 0; min-height: 88px;
}
body.tp24-selge .teenus24-home-desktop-category-rail .teenus24-home-desktop-category-thumb {
    border-color: transparent; border-radius: 10px; background: var(--selge-soft); color: var(--selge-action);
}
body.tp24-selge :is(.teenus24-home-desktop-rail,.teenus24-home-desktop-category-rail) { padding: 2px 3px 15px; }
body.tp24-selge .teenus24-home-desktop-rail { gap: 20px; }
body.tp24-selge .teenus24-home-desktop-rail > .teenus24-home-desktop-card { flex-basis: clamp(210px, 26%, 310px); background: transparent; border: 0; }
body.tp24-selge .teenus24-home-desktop-card-image { aspect-ratio: 1.6; border-radius: 14px; }
body.tp24-selge .teenus24-home-desktop-card-image::after { display: none; }
body.tp24-selge .tp24-selge-home-card-area { display: block; margin-top: 13px; color: var(--selge-muted); font-size: 12px; }
body.tp24-selge .teenus24-home-desktop-card-title { color: var(--selge-ink); font-size: 18px; font-weight: 650; line-height: 1.4; }
body.tp24-selge :is(.teenus24-home-desktop-card-title,.teenus24-home-desktop-card-category,.teenus24-home-desktop-card-meta) { padding-inline: 0; }
body.tp24-selge .teenus24-home-desktop-category-rail { gap: 16px; }
body.tp24-selge .teenus24-home-desktop-category-card { flex-basis: 220px; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; min-height: 96px; padding: 12px; }
body.tp24-selge .teenus24-home-desktop-category-title { font-size: 14px; font-weight: 650; }
body.tp24-selge :is(.teenus24-public-results-size,.teenus24-public-view-switch,.teenus24-request-selection-bar) { border-color: #b9cedb; border-radius: 10px; }
body.tp24-selge .teenus24-request-workspace__panel { border: 1px solid #b7cbd8; border-radius: 16px; box-shadow: 0 25px 80px #173e5433; }
body.tp24-selge :is(.teenus24-request-workspace__panel input,.teenus24-request-workspace__panel textarea) { border-color: #b5c4ce; border-radius: 9px; font-size: 16px; }
body.tp24-selge .teenus24-public-pagination__current { background: var(--selge-action); color: #fff; }
body.tp24-selge .teenus24-public-pagination__link { border-color: var(--selge-line); }
body.tp24-selge :is(.teenus24-page-content,.teenus24-single-content) { color: var(--selge-ink); }
body.tp24-selge .tp24-selge-home-sections { max-width: 1160px; margin: 0 auto; padding: 32px 0 48px; font: 400 15px/1.6 Manrope, Arial, sans-serif; }
body.tp24-selge:has(.tp24-selge-home-intro) .tp24-selge-home-sections {
    width: min(1160px, calc(100vw - 48px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}
body.tp24-selge .tp24-selge-home-sections h2 { font-size: 22px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
body.tp24-selge .tp24-selge-feature { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--selge-line); border-radius: 18px; overflow: hidden; background: #fff; margin: 24px 0; }
body.tp24-selge .tp24-selge-feature > a { position: relative; display: block; min-height: 320px; }
body.tp24-selge .tp24-selge-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
body.tp24-selge .tp24-selge-feature > div { padding: 36px; align-self: center; }
body.tp24-selge .tp24-selge-feature h3 { font-size: clamp(27px,3vw,32px); font-weight: 650; line-height: 1.2; margin: 16px 0; letter-spacing: -.8px; }
body.tp24-selge .tp24-selge-feature h3 a { color: var(--selge-ink); text-decoration: none; }
body.tp24-selge .tp24-selge-feature p { font-size: 14px; line-height: 1.8; }
body.tp24-selge .tp24-selge-feature p.tp24-selge-feature-meta { font-size: 12px; color: var(--selge-muted); }
body.tp24-selge .tp24-selge-feature p.tp24-selge-home-eyebrow { font-size: 12px; margin-bottom: 12px; }
body.tp24-selge .tp24-needs-home { margin: 0 0 32px; padding: 20px 0; border-block: 1px solid var(--selge-line); font-size: 14px; }
body.tp24-selge :is(.tp24-needs-home-heading,.tp24-needs-home-actions) { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
body.tp24-selge .tp24-needs-home-heading { justify-content: space-between; margin-bottom: 16px; }
body.tp24-selge .tp24-needs-home-heading h2 { margin: 0; }
body.tp24-selge .tp24-needs-home-intro { margin: 10px 0 0; color: var(--selge-muted); }
body.tp24-selge .tp24-needs-home-heading > a {
    display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--selge-line);
    border-radius: 8px; background: #fff; text-decoration: none; font-weight: 650;
}
body.tp24-selge .tp24-needs-home-actions p { flex: 1 1 320px; margin: 0; color: var(--selge-muted); }
body.tp24-selge .tp24-needs-home-actions a { font-weight: 650; }
body.tp24-selge .tp24-needs-home .tp24-needs-list { background: #ffffff80; padding: 0 24px; margin-bottom: 16px; }
body.tp24-selge .tp24-needs-home .tp24-needs-home-row {
    position: relative; background: transparent; border: 0; border-radius: 0; margin: 0; padding: 24px 38px 24px 0;
}
body.tp24-selge .tp24-needs-home-row + .tp24-needs-home-row { border-top: 1px solid var(--selge-line); }
body.tp24-selge .tp24-needs-home-row h3 { margin: 4px 0; font-size: 21px; line-height: 1.25; }
body.tp24-selge .tp24-needs-home-row h3 a { text-decoration: none; }
body.tp24-selge .tp24-needs-home-row h3 a:hover { text-decoration: underline; }
body.tp24-selge .tp24-needs-home-row .tp24-needs-meta { font-size: 12px; margin: 0; }
body.tp24-selge .tp24-needs-home-row .tp24-needs-home-description { max-width: 68ch; color: var(--selge-muted); font-size: 15px; line-height: 1.6; }
body.tp24-selge .tp24-needs-home-arrow { position: absolute; right: 12px; top: 46%; font-weight: 400; }
body.tp24-selge .tp24-selge-home-add { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; background: var(--selge-soft); border: 1px solid var(--selge-line); border-radius: 16px; margin-top: 40px; }
body.tp24-selge .tp24-selge-home-add h2 { font-size: 26px; margin: 10px 0; }
body.tp24-selge .tp24-selge-home-add p { font-size: 14px; margin-bottom: 0; }
body.tp24-selge .tp24-selge-home-add a { flex-shrink: 0; }
body.tp24-selge .tp24-selge-home-region { border-left: 1px solid var(--selge-line); padding-left: 22px; line-height: 1.4; }
body.tp24-selge .tp24-selge-home-region span { display: block; color: var(--selge-muted); }
body.tp24-selge .teenus24-legal-footer {
    box-sizing: border-box;
    width: min(1160px, calc(100% - 20px));
    margin: 48px auto 0;
    padding: 22px 0 calc(32px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--selge-line);
    font: 400 12px/1.5 var(--selge-font);
    color: var(--selge-muted);
}
body.tp24-selge .tp24-selge-footer-brand { display: none; }
body.tp24-selge .tp24-selge-footer-brand a { display: inline-flex; vertical-align: middle; text-decoration: none; }
body.tp24-selge .tp24-selge-footer-brand p { margin: 8px 0 0; }
body.tp24-selge .teenus24-legal-footer__link { color: var(--selge-muted); text-decoration: underline; }
@media (min-width: 769px) {
    body.tp24-selge .teenus24-legal-footer {
        width: min(1160px, calc(100% - 40px));
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px 24px;
    }
    body.tp24-selge .tp24-selge-footer-brand { display: block; flex-shrink: 0; }
    body.tp24-selge .teenus24-legal-footer__links { justify-content: flex-end; }
}
@media (min-width: 1024px) {
    body.tp24-selge:has(.tp24-selge-home-intro) .teenus24-site-header {
        padding: 16px max(20px, calc(50vw - 580px)); border-bottom: 1px solid var(--selge-line);
    }
    body.tp24-selge .teenus24-main-nav { gap: 18px; }
    body.tp24-selge .teenus24-main-nav a.teenus24-nav-link {
        color: var(--selge-ink); background: transparent; border-color: transparent; box-shadow: none; font-weight: 600;
    }
    body.tp24-selge .teenus24-main-nav a.teenus24-nav-link--primary {
        border-color: var(--selge-line); border-radius: 8px;
    }
    body.tp24-selge .teenus24-main-nav a.teenus24-nav-link:hover,
    body.tp24-selge .teenus24-main-nav a.teenus24-nav-link:focus-visible {
        color: var(--selge-ink) !important; background: var(--selge-soft) !important; box-shadow: none; transform: none;
    }
    body.tp24-selge .teenus24-home-desktop-section-head { min-height: 42px; padding-right: 110px; margin-bottom: 16px; }
    body.tp24-selge .teenus24-home-desktop-rail-wrap { position: static; }
    body.tp24-selge .teenus24-home-desktop-rail-controls { position: absolute; inset: 0 0 auto auto; margin: 0; }
    body.tp24-selge .teenus24-home-desktop-categories .teenus24-home-desktop-rail-arrow { width: 50px; border-radius: 8px; }
}
@media (max-width: 1023px) {
    body.tp24-selge .tp24-selge-home-region { display: none; }
}
@media (max-width: 1200px) {
    body.tp24-selge .tp24-selge-home-sections { margin: 0 20px; }
}
@media (min-width: 761px) {
    body.tp24-selge .tp24-selge-feature:nth-of-type(even) { grid-template-columns: 1fr 1.1fr; }
    body.tp24-selge .tp24-selge-feature:nth-of-type(even) > a { order: 1; }
}
@media (max-width: 760px) {
    body.tp24-selge .tp24-selge-feature { grid-template-columns: 1fr; border-radius: 14px; }
    body.tp24-selge .tp24-selge-feature > a { height: 220px; min-height: 0; }
    body.tp24-selge .tp24-selge-feature > div { padding: 24px; }
    body.tp24-selge .tp24-selge-home-add { display: block; padding: 24px; }
    body.tp24-selge .tp24-selge-home-add h2 { font-size: 24px; }
    body.tp24-selge .tp24-selge-home-add a { margin-top: 20px; }
}

/* Desktop markup remains usable when a computer window is narrowed.
   Actual mobile requests still use the original mobile homepage. */
@media (max-width: 1023px) {
    body.tp24-selge .teenus24-home-desktop-v3 { padding: 18px 16px 24px; margin-top: 0; }
    body.tp24-selge .teenus24-home-desktop-v3-search-form { max-width: 100%; }
}

/* Information pages use their original complete content and navigation. */
body.tp24-selge .teenus24-legal-card { border: 1px solid var(--selge-line); box-shadow: none; }
body.tp24-selge .teenus24-legal-page-title { color: var(--selge-ink); letter-spacing: -.035em; line-height: 1.2; }
body.tp24-selge .teenus24-legal-page-intro { color: var(--selge-muted); line-height: 1.65; }
body.tp24-selge .teenus24-legal-content { color: var(--selge-ink); max-width: 76ch; overflow-wrap: anywhere; line-height: 1.75; }
body.tp24-selge .teenus24-legal-content h2 { margin-top: 1.8em; letter-spacing: -.02em; line-height: 1.3; }
body.tp24-selge .teenus24-legal-content a { color: var(--selge-action); text-underline-offset: .2em; }
body.tp24-selge .teenus24-legal-content hr { border: 0; border-top: 1px solid var(--selge-line); margin: 28px 0; }
body.tp24-selge .teenus24-legal-footer__link { display: inline-flex; align-items: center; min-height: 44px; }
/* Native request dialog already provides the surface: avoid a second nested card. */
body.tp24-selge .teenus24-request-workspace__panel .teenus24-request-form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.tp24-selge .teenus24-request-workspace__panel .teenus24-edit-field { margin-bottom: 16px; }
body.tp24-selge .teenus24-request-workspace__panel .teenus24-edit-field label { display: block; margin-bottom: 6px; }
body.tp24-selge .teenus24-single-contact .teenus24-contact-details a { overflow-wrap: anywhere; text-underline-offset: .18em; }

/* Optional portrait stays separate from the company logo and service gallery. */
body.tp24-selge .tp24-person-panel { margin-top:24px; padding-top:24px; border-top:1px solid var(--selge-line,#d6e0e7); min-width:0; }
body.tp24-selge .tp24-person-panel h3 small { font-size:.8rem; font-weight:400; margin-left:8px; }
body.tp24-selge .tp24-person-controls, body.tp24-selge .tp24-person-identity { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin:16px 0; }
body.tp24-selge .tp24-person-photo { display:block; width:112px; height:112px; aspect-ratio:1; border-radius:50%; object-fit:cover; flex:none; }
body.tp24-selge .tp24-person-identity .tp24-person-photo { width:72px; height:72px; }
body.tp24-selge .tp24-person-actions { display:flex; gap:10px; flex-wrap:wrap; }
body.tp24-selge .tp24-person-actions .teenus24-btn { min-height:44px; }
body.tp24-selge .tp24-person-file { position:relative; overflow:hidden; cursor:pointer; }
body.tp24-selge .tp24-person-file input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
body.tp24-selge .tp24-person-file:focus-within { outline:2px solid currentColor; outline-offset:3px; }
body.tp24-selge .tp24-person-choice { display:flex; align-items:flex-start; gap:10px; }
body.tp24-selge .tp24-person-choice input { width:20px; height:20px; flex:none; margin:2px 0; }
body.tp24-selge .tp24-person-dialog { box-sizing:border-box; width:min(520px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; border:1px solid #d6e0e7; border-radius:20px; color:#263a49; background:#f2f5f7; }
body.tp24-selge .tp24-person-dialog::backdrop { background:rgba(17,45,66,.65); }
body.tp24-selge .tp24-person-dialog h2 { font-size:1.5rem; margin:0 0 10px; }
body.tp24-selge .tp24-person-dialog canvas { display:block; width:min(100%,280px); height:auto; aspect-ratio:1; border-radius:50%; margin:16px auto; touch-action:none; cursor:grab; }
body.tp24-selge .tp24-person-dialog label { display:block; font-size:.9rem; }
body.tp24-selge .tp24-person-dialog input[type=range] { display:block; width:100%; min-height:40px; padding:0; }
body.tp24-selge .tp24-person-position { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
body.tp24-selge .tp24-person-panel [hidden] { display:none !important; }
body.tp24-selge .tp24-person-return { display:block; margin:0 0 20px; }
@media(max-width:760px) {
    body.tp24-selge .tp24-person-photo { width:88px; height:88px; }
    body.tp24-selge .tp24-person-identity .tp24-person-photo { width:56px; height:56px; }
    body.tp24-selge .tp24-person-dialog { padding:18px; }
    body.tp24-selge .tp24-person-dialog canvas { width:min(100%,220px); }
    body.tp24-selge .tp24-person-controls { gap:14px; }
}

body.tp24-selge #teenus24_gallery_preview .teenus24-gallery-item { position:relative; width:72px; height:72px; flex:0 0 72px; cursor:move; }
body.tp24-selge #teenus24_gallery_preview .teenus24-gallery-item img { width:72px; height:72px; object-fit:cover; border:1px solid #ccc; border-radius:6px; display:block; }
body.tp24-selge #teenus24_gallery_preview .teenus24-remove-image { position:absolute; top:-6px; right:-6px; z-index:5; width:22px; height:22px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid #bbb; background:#fff; color:#111; font-size:16px; font-weight:700; line-height:1; padding:0; cursor:pointer; }

/* The desktop browse layout follows the Selge catalogue prototype. */
@media (min-width: 769px) {
    body.tp24-selge .tp24-selge-browse { width: min(1140px, calc(100% - 48px)); max-width: none; margin: 0 auto; padding: 40px 0; }
    body.tp24-selge .tp24-selge-browse :is(.teenus24-public-page-card,.teenus24-public-page-card-inner,.teenus24-search-results-shell,.teenus24-search-results-inner) {
        width: 100%; max-width: none; padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none;
    }
    .tp24-selge-browse-back { display: inline-block; margin: 0 0 14px; color: var(--selge-muted); font-size: 13px; }
    .tp24-selge-browse .teenus24-public-view-context { margin: 0 0 22px; padding: 0; }
    .tp24-selge-browse .teenus24-public-list-toolbar { margin: 18px 0; padding: 0; align-items: end; }
    .tp24-selge-browse :is(.teenus24-public-list-toolbar-back,.teenus24-public-toolbar-actions) { align-items: end; gap: 12px; }
    .tp24-selge-browse :is(.tp24-selge-browse-filter,.teenus24-public-results-size) label { display: grid; gap: 5px; font-size: 12px; }
    .tp24-selge-browse :is(.tp24-selge-browse-filter,.teenus24-public-results-size) select { width: auto; min-height: 42px; padding: 0 24px 0 12px; border: 1px solid var(--selge-line); border-radius: 8px; background-color: #fff; }
    .tp24-selge-browse .tp24-selge-browse-filter select { width: min(275px, 32vw); }
    .tp24-selge-browse .teenus24-public-results-size { order: 1; }
    .tp24-selge-browse .teenus24-public-results-size select { min-width: 72px; }
    .tp24-selge-browse .teenus24-public-view-switch { display: flex; gap: 10px; padding: 0; background: transparent; border: 0; }
    .tp24-selge-browse .teenus24-public-view-switch-option { border: 1px solid var(--selge-line); border-radius: 8px; background: #fff; }
    .tp24-selge-browse .teenus24-public-view-switch-option.is-active { background: var(--selge-action); color: #fff; }
    .tp24-selge-browse-cards .teenus24-search-results-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
    .tp24-selge-browse-cards .teenus24-search-card--desktop {
        display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0; padding: 0;
        border: 1px solid var(--selge-line); border-radius: 14px; box-shadow: none; overflow: hidden;
    }
    .tp24-selge-browse-cards .teenus24-search-card--desktop .teenus24-search-card-thumb { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 0; overflow: hidden; }
    .tp24-selge-browse-cards .teenus24-search-card-thumb > :is(img,.teenus24-cold-start-cover) { width: 100%; height: 100%; object-fit: cover; }
    .tp24-selge-browse-cards .teenus24-search-card-content { width: 100%; padding: 16px; }
    .tp24-selge-browse-cards .teenus24-search-card--desktop .teenus24-search-card-layout--desktop { display: flex; flex-direction: column; gap: 12px; }
    .tp24-selge-browse-cards .teenus24-search-card-mainlink { display: flex; flex-direction: column; gap: 6px; }
    .tp24-selge-browse-cards .teenus24-search-card-mainlink .teenus24-search-card-meta { order: -1; font-size: 12px; flex-wrap: wrap; }
    .tp24-selge-browse-cards .teenus24-search-card-title { font-size: 18px; }
    .tp24-selge-browse-cards .teenus24-search-card-provider { border: 0; }
    .tp24-selge-browse-cards .teenus24-search-card-side--desktop { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
}
@media (min-width: 769px) {
    .tp24-selge-browse .teenus24-public-list-toolbar { width: 100%; max-width: none; }
    .tp24-selge-browse-cards .teenus24-search-card--desktop .teenus24-search-card-thumb { max-height: none; }
    .tp24-selge-browse-cards .teenus24-search-card--desktop :is(.teenus24-search-card-main,.teenus24-search-card-content,.teenus24-search-card-layout--desktop) { min-width: 0; max-width: 100%; box-sizing: border-box; }
    .tp24-selge-browse-cards .teenus24-search-card--desktop :is(.teenus24-search-card-title,.teenus24-search-card-excerpt) { white-space: normal; overflow-wrap: anywhere; }
    .tp24-selge-browse-cards .teenus24-search-card--desktop .teenus24-search-card-excerpt { display: block; max-height: none; font-size: 14px; line-height: 1.55; }
}

body.tp24-selge .teenus24-search-list-row--v2 {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    margin-block-end: 20px;
    overflow: hidden;
    border: 1px solid var(--selge-line);
    background: var(--selge-surface);
}
body.tp24-selge .teenus24-search-list-row--v2 .teenus24-search-list-thumb {
    position: relative;
    width: auto;
    height: auto;
    min-height: 180px;
    border-radius: 0;
    box-shadow: none;
}
body.tp24-selge .teenus24-search-list-row--v2 .teenus24-search-list-thumb > :is(img, .teenus24-cold-start-cover) {
    position: absolute;
    inset: 0;
}
body.tp24-selge .teenus24-search-list-row--v2 .teenus24-search-list-body {
    min-width: 0;
    padding: 18px;
}
body.tp24-selge .teenus24-search-list-row--v2 .teenus24-search-list-title {
    font-size: 1.125rem;
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    body.tp24-selge .teenus24-search-list-row--v2 {
        grid-template-columns: 100px minmax(0, 1fr);
    }
    body.tp24-selge .teenus24-search-list-row--v2 .teenus24-search-list-thumb {
        min-height: 150px;
    }
}
body.tp24-selge .tp24-selge-list-meta,
body.tp24-selge .tp24-selge-list-excerpt { margin: 0 0 .35rem; overflow-wrap: anywhere; }
body.tp24-selge .tp24-selge-list-meta { color: var(--selge-muted); font-size: .875rem; }
body.tp24-selge .tp24-needs-relative-time strong { margin-inline-start: .5rem; }

body.tp24-selge .tp24-selge-account-toggle { display: none; }
@media (max-width: 768px) {
    body.tp24-selge .tp24-selge-dashboard-heading {
        display: grid;
        justify-items: start;
        gap: 12px;
        margin: 16px 10px;
    }
    body.tp24-selge .tp24-selge-dashboard-heading h1 { margin: 0; }
    body.tp24-selge .tp24-selge-dashboard-heading + .teenus24-account-wrap .teenus24-dashboard-workspace-title { display: none; }
    body.tp24-selge .teenus24-account-menu:has(> .tp24-selge-account-toggle:not([hidden])) { padding: 0; }
    body.tp24-selge .tp24-selge-account-toggle:not([hidden]) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 52px;
        padding: 12px 16px;
        border: 0;
        border-radius: inherit;
        background: var(--selge-surface);
        color: var(--selge-ink);
        font: inherit;
        font-weight: 700;
        text-align: start;
        cursor: pointer;
    }
    body.tp24-selge .tp24-selge-account-toggle::after { content: '⌄'; }
    body.tp24-selge .tp24-selge-account-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
    body.tp24-selge .tp24-selge-account-toggle[aria-expanded="false"] ~ * { display: none; }
}

@media (min-width: 769px) {
    body.tp24-selge .teenus24-search-results-page:has(.tp24-selge-search-empty) {
        width: min(1140px, calc(100% - 48px));
        max-width: none;
        margin: 0 auto;
        padding: 40px 0;
    }
    body.tp24-selge .teenus24-search-results-page:has(.tp24-selge-search-empty)
    :is(.teenus24-public-page-card, .teenus24-public-page-card-inner, .teenus24-search-results-shell, .teenus24-search-results-inner) {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    body.tp24-selge .tp24-selge-search-empty {
        margin: 24px 0 0;
        padding: 24px;
        border: 1px solid var(--selge-line);
        border-radius: 12px;
        background: var(--selge-surface);
    }
    body.tp24-selge .tp24-selge-search-empty h2 {
        margin: 0 0 12px;
        font-size: 1.25rem;
        color: var(--selge-ink);
    }
}

body.tp24-selge .tp24-selge-activity-actions {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.tp24-selge .tp24-selge-activity-actions .teenus24-action-btn { min-width: 0; }
body.tp24-selge .tp24-selge-activity-actions button:disabled { opacity: .55; cursor: default; }
body.tp24-selge .teenus24-search-clear[data-selge-clear-visible] {
    opacity: 1;
    pointer-events: auto;
    border: 1px solid var(--selge-line);
    border-radius: 8px;
    background: var(--selge-surface);
}

.tp24-selge-categories-page {
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0;
}
.tp24-selge-categories-page h1 { margin: 0 0 24px; }
.tp24-selge-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.tp24-selge-category-panel {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--selge-line);
    border-radius: 12px;
    background: var(--selge-surface);
}
body.tp24-selge .tp24-selge-category-panel h2 {
    margin: 0 0 16px;
    font-size: 1.375rem;
    font-weight: 750;
    line-height: 1.25;
    color: var(--selge-ink);
}
.tp24-selge-category-panel p { margin: 0 0 16px; }
.tp24-selge-category-description { color: var(--selge-muted); }
.tp24-selge-category-panel a { align-self: start; margin-top: auto; }
@media (max-width: 1000px) {
    .tp24-selge-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .tp24-selge-categories-page { width: calc(100% - 36px); padding: 24px 0; }
    .tp24-selge-category-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .tp24-selge-browse .tp24-selge-browse-back {
        display: inline-block;
        margin-block-end: 12px;
        color: var(--selge-muted);
        font-size: .875rem;
    }
    .tp24-selge-browse .teenus24-public-page-card,
    .tp24-selge-browse .teenus24-public-page-card-inner {
        padding-inline: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .tp24-selge-browse .teenus24-public-view-context__title {
        font-size: 1.625rem;
    }
    .tp24-selge-browse .tp24-selge-browse-filter {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .tp24-selge-browse.teenus24-sirvi-page .teenus24-public-list-count {
        grid-column: 1;
        grid-row: 2;
    }
    .tp24-selge-browse-filter label {
        display: grid;
        gap: 5px;
        font-size: .875rem;
    }
    .tp24-selge-browse-filter select {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid var(--selge-line);
        border-radius: 8px;
        background: var(--selge-surface);
    }
}

body.tp24-selge .tp24-selge-services-heading {
    margin-block-end: 20px;
}
body.tp24-selge .tp24-selge-services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-block-end: 16px;
    padding-block-end: 8px;
    border-block-end: 1px solid var(--selge-line);
}
body.tp24-selge .tp24-selge-services-tabs a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--selge-ink);
    text-decoration: none;
}
body.tp24-selge .tp24-selge-services-tabs a[aria-current="page"] {
    background: var(--selge-soft);
    font-weight: 700;
}

@media (min-width: 769px) {
    body.tp24-selge .teenus24-account-desktop-v2 .teenus24-my-services-row-v2 {
        grid-template-columns: 110px minmax(0, 1fr);
        grid-template-areas:
            "thumb content"
            "thumb facts"
            "thumb actions";
        align-items: start;
        gap: 10px 18px;
        padding: 24px;
        border: 1px solid var(--selge-line);
        border-radius: 12px;
        box-shadow: none;
    }
    body.tp24-selge .teenus24-account-desktop-v2 .teenus24-my-services-row-v2__thumb {
        grid-area: thumb;
        width: 100%;
    }
    body.tp24-selge .teenus24-account-desktop-v2 .teenus24-my-services-row-v2__thumb-link {
        width: 100%;
        height: 90px;
        border-radius: 9px;
    }
    body.tp24-selge .teenus24-account-desktop-v2 .teenus24-my-services-row-v2__content {
        grid-area: content;
    }
    body.tp24-selge .teenus24-account-desktop-v2 .teenus24-my-services-row-v2__title a {
        color: var(--selge-ink);
        text-decoration: underline;
        text-underline-offset: 3px;
        overflow-wrap: anywhere;
    }
    body.tp24-selge .teenus24-account-desktop-v2 :is(.teenus24-my-services-row-v2__facts, .teenus24-my-services-row-v2__actions) {
        flex-wrap: wrap;
        justify-content: flex-start;
        justify-self: start;
    }
}

body.tp24-selge-auth {
    min-height: 100vh;
    background: var(--selge-paper);
    color: var(--selge-ink);
    font: 400 15px/1.6 Manrope, Arial, sans-serif;
}
.tp24-selge-auth .tp24-selge-auth-content {
    width: min(1140px, calc(100% - 36px));
    margin: 36px auto 60px;
}
.tp24-selge-auth .tp24-selge-auth-content > h1 {
    margin: 0 0 24px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -.035em;
}
.tp24-selge-auth .tp24-selge-auth-back {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--selge-muted);
}
body.tp24-selge-auth #login {
    box-sizing: border-box;
    width: min(620px, 100%);
    margin: 0;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--selge-line);
    border-radius: 12px;
    background: var(--selge-surface);
}
.tp24-selge-auth #login .wp-login-logo {
    display: none;
}
body.tp24-selge-auth #login form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.tp24-selge-auth #login form label {
    font-weight: 650;
}
.tp24-selge-auth #login .input {
    min-height: 48px;
    border-radius: 8px;
    font-family: inherit;
}
.tp24-selge-auth #login .submit {
    clear: both;
}
.tp24-selge-auth #login .submit #wp-submit {
    float: none;
    min-height: 44px;
    margin-top: 12px;
    padding-inline: 18px;
    border-radius: 8px;
    font: 700 14px Manrope, Arial, sans-serif;
}
.tp24-selge-auth .tp24-selge-auth-intro p {
    margin: 0 0 14px;
}
.tp24-selge-auth .tp24-selge-auth-divider {
    padding: 8px 0 12px;
    text-align: center;
}
.tp24-selge-auth #login :is(#nav, #backtoblog) {
    margin: 12px 0 0;
    padding: 0;
}
.tp24-selge-auth #login .tp24-selge-auth-intro .teenus24-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}
.tp24-selge-auth #login :is(.message, .success) {
    border-left-color: var(--selge-action);
    background: var(--selge-soft);
    box-shadow: none;
}
.tp24-selge-auth #login .input:focus {
    border-color: var(--selge-action);
    box-shadow: 0 0 0 1px var(--selge-action);
}

/* Existing mobile category cards retain their original styling and content. */
@media (max-width: 768px) {
    body.tp24-selge .tp24-selge-category-desktop { display: none; }
}
@media (min-width: 769px) {
    body.tp24-selge .tp24-selge-category-mobile { display: none; }
/* Approved category cards: shared Merehall / tint identity; native links and counts retained. */
body.tp24-selge .teenus24-home-desktop-category-rail {
    gap: 16px;
    padding: 4px 3px 18px;
    scrollbar-width: thin;
    scrollbar-color: #acbdc8 transparent;
    cursor: grab;
    user-select: none;
}
body.tp24-selge .teenus24-home-desktop-category-rail::-webkit-scrollbar { display: block; height: 5px; }
body.tp24-selge .teenus24-home-desktop-category-rail::-webkit-scrollbar-thumb { background: #acbdc8; border-radius: 5px; }
body.tp24-selge .teenus24-home-desktop-category-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
body.tp24-selge .teenus24-home-desktop-category-rail .teenus24-home-desktop-category-card {
    flex: 0 0 clamp(230px, 23%, 280px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 222px;
    padding: 22px;
    background: var(--selge-surface);
    border: 1px solid var(--selge-line);
    border-radius: 16px;
    color: var(--selge-ink);
    box-shadow: 0 3px 10px #263a4906;
    backdrop-filter: none;
    transition: border-color .18s, box-shadow .18s;
}
body.tp24-selge .teenus24-home-desktop-category-rail .teenus24-home-desktop-category-thumb {
    width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--selge-action);
    color: var(--selge-surface);
}
body.tp24-selge .teenus24-home-desktop-category-content { flex: 1; height: auto; gap: 18px; }
body.tp24-selge .teenus24-home-desktop-category-title { color: var(--selge-ink); font-size: 17px; font-weight: 650; line-height: 1.4; }
body.tp24-selge .teenus24-home-desktop-category-meta { border: 0; padding-top: 0; }
body.tp24-selge .teenus24-home-desktop-category-count { background: transparent; padding: 0; color: var(--selge-muted); font-size: 13px; font-weight: 400; }
body.tp24-selge .teenus24-home-desktop-category-arrow { color: var(--selge-action); font-size: 23px; }
body.tp24-selge .teenus24-home-desktop-categories .teenus24-home-desktop-rail-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--selge-action); color: var(--selge-surface); }
body.tp24-selge .teenus24-home-desktop-categories .teenus24-home-desktop-rail-arrow:disabled { background: transparent; color: var(--selge-muted); opacity: .35; }
body.tp24-selge .teenus24-home-desktop-category-rail .teenus24-home-desktop-category-card:hover,
body.tp24-selge .tp24-selge-category-panel:hover { transform: none; border-color: var(--selge-action); box-shadow: 0 7px 20px #263a4914; }
body.tp24-selge .teenus24-home-desktop-category-card:focus-visible,
body.tp24-selge .tp24-selge-category-panel:focus-visible { outline: 3px solid var(--selge-action); outline-offset: 2px; }
body.tp24-selge .teenus24-home-desktop-category-card:hover .teenus24-home-desktop-category-arrow { color: var(--selge-action); transform: none; }
body.tp24-selge .tp24-selge-category-panel {
    min-width: 0;
    min-height: 270px;
    padding: 22px;
    border-radius: 16px;
    color: var(--selge-ink);
    text-decoration: none;
    box-shadow: 0 3px 10px #263a4906;
    transition: border-color .18s, box-shadow .18s;
}
body.tp24-selge .tp24-selge-category-heading { display: flex; align-items: flex-start; gap: 14px; }
body.tp24-selge .tp24-selge-category-icon { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--selge-action); color: var(--selge-surface); }
body.tp24-selge .tp24-selge-category-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.tp24-selge .tp24-selge-category-panel h2 { font-size: 17px; font-weight: 650; line-height: 1.4; margin: 2px 0 0; overflow-wrap: anywhere; }
body.tp24-selge .tp24-selge-category-description { font-size: 14px; line-height: 1.75; margin: 22px 0 24px; overflow-wrap: anywhere; }
body.tp24-selge .tp24-selge-category-footer { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
body.tp24-selge .tp24-selge-category-count { color: var(--selge-muted); font-size: 13px; }
body.tp24-selge .tp24-selge-category-action { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 650; color: var(--selge-action); }
@media (prefers-reduced-motion: reduce) {
    body.tp24-selge .teenus24-home-desktop-category-card,
    body.tp24-selge .tp24-selge-category-panel { transition: none; }
}
}

/* Optional decorative service photo uses only existing blank card space. */
@media (min-width: 769px) {
    body.tp24-selge .tp24-selge-category-desktop { position: relative; }
    body.tp24-selge .tp24-selge-category-thumbnail {
        position: absolute; right: 22px; bottom: 52px; width: 80px; height: 60px;
        display: block; visibility: hidden; pointer-events: none;
    }
    body.tp24-selge .tp24-selge-category-thumbnail img {
        display: block; width: 80px; height: 60px; object-fit: cover;
        object-position: center; border-radius: 8px;
    }
}

/* Approved home wish invitation: desktop/tablet only; native phone UX is retained. */
body.tp24-selge .tp24-selge-home-wish { display: none; }
@media (min-width: 769px) {
    body.tp24-selge .tp24-selge-home-lead--with-wish {
        display: flex;
        flex-direction: column;
        gap: 26px;
        padding: clamp(28px, 4.5vw, 64px) 0 34px;
    }
    body.tp24-selge .tp24-selge-home-lead--with-wish .tp24-selge-home-intro {
        min-width: 0;
        max-width: none;
        padding: 0;
    }
    body.tp24-selge .tp24-selge-home-wish {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
        padding: 20px 24px;
        border: 1px solid var(--selge-line);
        border-radius: 14px;
        background: #fff;
        box-sizing: border-box;
    }
    body.tp24-selge .tp24-selge-home-wish h2 {
        margin: 0 0 5px;
        color: var(--selge-ink);
        font-size: 22px;
        font-weight: 650;
        line-height: 1.3;
        letter-spacing: -.02em;
    }
    body.tp24-selge .tp24-selge-home-wish p {
        margin: 0;
        color: var(--selge-muted);
        font-size: 14px;
        line-height: 1.75;
    }
    body.tp24-selge .tp24-selge-home-wish .tp24-selge-home-wish-link {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        gap: 24px;
        min-height: 45px;
        padding: 12px 17px;
        border: 1px solid var(--selge-action);
        border-radius: 8px;
        background: var(--selge-action);
        color: #fff;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.4;
        text-decoration: none;
        box-sizing: border-box;
    }
    body.tp24-selge .tp24-selge-home-wish .tp24-selge-home-wish-link:hover {
        background: #1b3c52;
        border-color: #1b3c52;
        color: #fff;
    }
    body.tp24-selge .tp24-selge-home-wish .tp24-selge-home-wish-link:focus-visible {
        outline: 3px solid #8ba8bc;
        outline-offset: 3px;
    }
}
@media (min-width: 1024px) {
    body.tp24-selge .tp24-selge-home-lead--with-wish {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 42px;
        align-items: center;
    }
    body.tp24-selge .tp24-selge-home-wish {
        display: block;
        padding: 26px;
    }
    body.tp24-selge .tp24-selge-home-wish h2 { margin-bottom: 12px; font-size: 24px; }
    body.tp24-selge .tp24-selge-home-wish .tp24-selge-home-wish-link { margin-top: 23px; }
}

/* Browse category control only: names left, tabular counts right. */
.tp24-category-filter { position: relative; min-width: 0; }
.tp24-category-label { display: block; margin-bottom: 5px; font-size: 12px; }
.tp24-category-picker { position: relative; width: min(275px, 32vw); }
.tp24-category-picker summary,
.tp24-category-picker li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.tp24-category-picker summary { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; min-height: 42px; padding: 8px 12px; box-sizing: border-box; border: 1px solid var(--selge-line); border-radius: 8px; background: #fff; cursor: pointer; list-style: none; }
.tp24-category-picker summary::-webkit-details-marker { display: none; }
.tp24-category-name { min-width: 0; overflow-wrap: anywhere; }
.tp24-category-count { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--selge-muted); }
.tp24-category-picker ul { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: max(100%, 380px); max-width: calc(100vw - 36px); max-height: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; box-sizing: border-box; border: 1px solid var(--selge-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #142c3c26; }
.tp24-category-picker li { margin: 0; padding: 0; }
.tp24-category-picker li a { min-height: 44px; padding: 8px 10px; box-sizing: border-box; border-radius: 6px; color: var(--selge-ink); text-decoration: none; }
.tp24-category-picker li a:hover,
.tp24-category-picker li a[aria-current] { background: var(--selge-soft); }
.tp24-category-picker li a[aria-current] { font-weight: 700; }
.tp24-category-picker :is(summary,a):focus-visible { outline: 2px solid var(--selge-action); outline-offset: -2px; }
@media (max-width: 768px) {
    .tp24-category-picker { width: 100%; }
    .tp24-category-picker summary { min-height: 44px; }
    .tp24-category-label { font-size: .875rem; }
    .tp24-category-picker ul { width: 100%; }
}
