/*
 * KULİS Theme application shell
 * Step 02 — Header
 */

:root {
    --kulis-header-height: 64px;
    --kulis-header-bg: rgba(255, 255, 255, .96);
    --kulis-header-border: #e7ebf1;
    --kulis-header-text: #475569;
    --kulis-header-strong: #0f172a;
    --kulis-header-primary: #1769ff;
    --kulis-header-primary-soft: #edf4ff;
    --kulis-header-shadow: 0 8px 28px rgba(15, 23, 42, .055);
}

body.kulis-theme {
    min-width: 320px;
}

body.kulis-theme-app-view .kulis-global-topbar {
    display: none !important;
}

.kulis-theme-header {
    position: sticky;
    z-index: 9000;
    top: 0;
    width: 100%;
    min-height: var(--kulis-header-height);
    border-bottom: 1px solid var(--kulis-header-border);
    background: var(--kulis-header-bg);
    box-shadow: var(--kulis-header-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.admin-bar .kulis-theme-header {
    top: 32px;
}

.kulis-theme-header__inner {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
    align-items: center;
    width: min(var(--kulis-theme-content), calc(100% - 28px));
    min-height: var(--kulis-header-height);
    margin: 0 auto;
    gap: 18px;
}

.kulis-theme-header__brand {
    min-width: 0;
}

.kulis-theme-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--kulis-header-strong);
    text-decoration: none;
}

.kulis-theme-brand:hover,
.kulis-theme-brand:focus-visible {
    text-decoration: none;
}

.kulis-theme-brand__mark {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: #14213d;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .16);
}

.kulis-theme-brand__text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.kulis-theme-brand__text strong {
    color: var(--kulis-header-strong);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.025em;
}

.kulis-theme-brand__text small {
    color: var(--kulis-header-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
}

.kulis-theme-brand__custom-logo,
.kulis-theme-brand__logo-image {
    display: block;
}

.kulis-theme-brand__logo-image {
    width: auto;
    max-width: 210px;
    max-height: 38px;
    object-fit: contain;
}

.kulis-theme-app-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.kulis-theme-app-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--kulis-header-text);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    text-decoration: none;
    transition:
        color .16s ease,
        background-color .16s ease,
        transform .16s ease;
}

.kulis-theme-app-nav__item:hover,
.kulis-theme-app-nav__item:focus-visible {
    color: var(--kulis-header-primary);
    background: #f6f9ff;
    text-decoration: none;
}

.kulis-theme-app-nav__item.is-active {
    color: var(--kulis-header-primary);
    background: var(--kulis-header-primary-soft);
}

.kulis-theme-app-nav__icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
}

.kulis-theme-app-nav__icon svg {
    width: 17px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kulis-theme-app-nav__item.is-active .kulis-theme-app-nav__icon svg {
    stroke-width: 2.15;
}

.kulis-theme-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.kulis-theme-icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--kulis-header-border);
    border-radius: 11px;
    color: var(--kulis-header-text);
    background: #fff;
    text-decoration: none;
    transition:
        color .16s ease,
        border-color .16s ease,
        background-color .16s ease,
        transform .16s ease;
}

.kulis-theme-icon-button:hover,
.kulis-theme-icon-button:focus-visible {
    color: var(--kulis-header-primary);
    border-color: #c7d8ff;
    background: var(--kulis-header-primary-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

.kulis-theme-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kulis-theme-user-menu {
    position: relative;
}

.kulis-theme-user-menu__toggle {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 3px;
    place-items: center;
    border: 1px solid #dce3ec;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.kulis-theme-user-menu__toggle:hover,
.kulis-theme-user-menu__toggle:focus-visible,
.kulis-theme-user-menu__toggle[aria-expanded="true"] {
    border-color: #a8c4ff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, .09);
}

.kulis-theme-user-menu__avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.kulis-theme-user-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    overflow: hidden;
    padding: 7px;
    border: 1px solid var(--kulis-header-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .16);
}

.kulis-theme-user-popover[hidden] {
    display: none !important;
}

.kulis-theme-user-popover__identity {
    padding: 9px 10px 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid #edf0f4;
}

.kulis-theme-user-popover__identity strong,
.kulis-theme-user-popover__identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kulis-theme-user-popover__identity strong {
    color: var(--kulis-header-strong);
    font-size: 13px;
}

.kulis-theme-user-popover__identity span {
    margin-top: 2px;
    color: #7b8798;
    font-size: 11px;
}

.kulis-theme-user-popover > a {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.kulis-theme-user-popover > a:hover,
.kulis-theme-user-popover > a:focus-visible {
    color: var(--kulis-header-primary);
    background: #f5f8ff;
    text-decoration: none;
}

.kulis-theme-site-nav {
    min-width: 0;
}

.kulis-theme-site-nav__list,
.kulis-theme-site-nav__list ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.kulis-theme-site-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.kulis-theme-site-nav__list > li {
    position: relative;
}

.kulis-theme-site-nav__list a {
    display: block;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--kulis-header-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kulis-theme-site-nav__list a:hover,
.kulis-theme-site-nav__list a:focus-visible {
    color: var(--kulis-header-primary);
    background: #f4f7fd;
    text-decoration: none;
}

.kulis-theme-site-nav__list ul {
    position: absolute;
    z-index: 50;
    top: calc(100% + 7px);
    left: 0;
    display: none;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--kulis-header-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
}

.kulis-theme-site-nav__list li:hover > ul,
.kulis-theme-site-nav__list li:focus-within > ul {
    display: block;
}

.kulis-theme-auth-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kulis-theme-auth-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.kulis-theme-auth-actions__login {
    color: #334155;
    background: transparent;
}

.kulis-theme-auth-actions__register {
    color: #fff;
    background: var(--kulis-header-primary);
    box-shadow: 0 8px 18px rgba(23, 105, 255, .18);
}

.kulis-theme-mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid var(--kulis-header-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.kulis-theme-mobile-toggle > span:not(.screen-reader-text) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: #334155;
}

.kulis-theme-mobile-panel {
    display: none;
}

@media (max-width: 1080px) {
    .kulis-theme-header__inner {
        grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
        gap: 8px;
    }

    .kulis-theme-app-nav__item {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }

    .kulis-theme-app-nav__item span:last-child {
        display: none;
    }

    .kulis-theme-app-nav__item {
        width: 38px;
        justify-content: center;
    }
}

@media (max-width: 782px) {
    :root {
        --kulis-header-height: 56px;
    }

    body.admin-bar .kulis-theme-header {
        top: 46px;
    }

    .kulis-theme-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        padding-right: max(10px, env(safe-area-inset-right));
        padding-left: max(10px, env(safe-area-inset-left));
        gap: 8px;
    }

    .kulis-theme-brand__mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
    }

    .kulis-theme-brand__text strong {
        font-size: 13px;
    }

    .kulis-theme-brand__text small {
        font-size: 9px;
    }

    .kulis-theme-brand__logo-image {
        max-width: 170px;
        max-height: 34px;
    }

    .kulis-theme-app-nav,
    .kulis-theme-site-nav {
        display: none;
    }

    .kulis-theme-header__actions {
        gap: 5px;
    }

    .kulis-theme-icon-button {
        width: 36px;
        height: 36px;
        border-color: transparent;
        background: transparent;
    }

    .kulis-theme-user-menu__toggle {
        width: 36px;
        height: 36px;
        padding: 2px;
    }

    .kulis-theme-user-menu__avatar {
        width: 30px;
        height: 30px;
    }

    .kulis-theme-user-popover {
        position: fixed;
        top: calc(var(--kulis-header-height) + 10px);
        right: 10px;
        left: 10px;
        width: auto;
        border-radius: 16px;
    }

    body.admin-bar .kulis-theme-user-popover {
        top: calc(46px + var(--kulis-header-height) + 10px);
    }

    .kulis-theme-mobile-toggle {
        display: block;
    }

    .kulis-theme-mobile-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 8px 10px 12px;
        border-top: 1px solid var(--kulis-header-border);
        border-bottom: 1px solid var(--kulis-header-border);
        background: rgba(255, 255, 255, .985);
        box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
    }

    .kulis-theme-mobile-panel:not([hidden]) {
        display: block;
    }

    .kulis-theme-mobile-panel__list,
    .kulis-theme-mobile-panel__list ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .kulis-theme-mobile-panel__list a {
        display: block;
        padding: 11px 12px;
        border-radius: 10px;
        color: #334155;
        font-size: 13px;
        font-weight: 750;
        text-decoration: none;
    }

    .kulis-theme-mobile-panel__list a:hover,
    .kulis-theme-mobile-panel__list a:focus-visible {
        color: var(--kulis-header-primary);
        background: var(--kulis-header-primary-soft);
        text-decoration: none;
    }

    .kulis-theme-mobile-panel__list ul {
        padding-left: 12px;
    }

    .kulis-theme-auth-actions__login {
        display: inline-flex !important;
        min-height: 36px !important;
        padding: 0 11px !important;
        font-size: 11px !important;
    }

    .kulis-theme-auth-actions__register {
        display: inline-flex !important;
        min-height: 36px !important;
        padding: 0 11px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 430px) {
    .kulis-theme-brand__text strong {
        font-size: 12px;
    }

    .kulis-theme-brand__text small {
        display: none;
    }

    .kulis-theme-header__actions .kulis-theme-icon-button:first-of-type {
        display: none;
    }
}


/* =========================================================
 * Step 03 — App content shell + sticky mobile bottom nav
 * ========================================================= */
:root {
    --kulis-bottom-nav-height: 68px;
}

.kulis-theme-main {
    display: block;
    width: 100%;
}

.kulis-theme-app-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.kulis-theme-entry--app,
.kulis-theme-entry--app .kulis-theme-entry__content,
.kulis-theme-app-content > .kulis-theme-entry,
.kulis-theme-app-content > .kulis-theme-entry > .kulis-theme-entry__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.kulis-theme-site-content {
    width: min(var(--kulis-theme-content), calc(100% - 32px));
    margin: 34px auto 56px;
}

.kulis-theme-entry {
    min-width: 0;
}

.kulis-theme-site-content .kulis-theme-entry {
    padding: 26px;
    margin-bottom: 18px;
    border: 1px solid var(--kulis-theme-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(15, 23, 42, .045);
}

.kulis-theme-entry__header {
    margin-bottom: 18px;
}

.kulis-theme-entry__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.kulis-theme-entry__content::after {
    display: table;
    clear: both;
    content: "";
}

/* Plugin'in eski/global mobil menüsü tema aktifken çift görünmesin. */
body.kulis-theme-app-view :is(
    .kulis-global-bottom-nav,
    .kulis-mobile-bottom-nav,
    .kulis-dashboard-mobile-nav
) {
    display: none !important;
}

.kulis-theme-bottom-nav {
    position: fixed;
    z-index: 9100;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #dde4ee;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.kulis-theme-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-height: var(--kulis-bottom-nav-height);
    margin: 0 auto;
}

.kulis-theme-bottom-nav__item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 3px 6px;
    color: #718096;
    font-size: 9.5px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.kulis-theme-bottom-nav__item:hover,
.kulis-theme-bottom-nav__item:focus-visible {
    color: #1769ff;
    text-decoration: none;
}

.kulis-theme-bottom-nav__item.is-active {
    color: #1769ff;
}

.kulis-theme-bottom-nav__item.is-active::before {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: #1769ff;
    content: "";
    transform: translateX(-50%);
}

.kulis-theme-bottom-nav__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 10px;
    transition:
        background-color .15s ease,
        transform .15s ease;
}

.kulis-theme-bottom-nav__item.is-active .kulis-theme-bottom-nav__icon {
    background: #edf4ff;
}

.kulis-theme-bottom-nav__item:active .kulis-theme-bottom-nav__icon {
    transform: scale(.92);
}

.kulis-theme-bottom-nav__icon svg {
    width: 20px;
    height: 20px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kulis-theme-bottom-nav__item.is-active .kulis-theme-bottom-nav__icon svg {
    stroke-width: 2.2;
}

.kulis-theme-bottom-nav__label {
    display: block;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Normal site footer */
.kulis-theme-site-footer {
    border-top: 1px solid var(--kulis-theme-border);
    background: #fff;
}

.kulis-theme-site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--kulis-theme-content), calc(100% - 32px));
    min-height: 86px;
    margin: 0 auto;
    gap: 20px;
}

.kulis-theme-site-footer__brand {
    display: grid;
    gap: 3px;
}

.kulis-theme-site-footer__brand strong {
    color: #0f172a;
    font-size: 14px;
}

.kulis-theme-site-footer__brand span {
    color: #7b8798;
    font-size: 11px;
}

.kulis-theme-site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.kulis-theme-site-footer__menu a {
    display: block;
    padding: 8px 9px;
    border-radius: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.kulis-theme-site-footer__menu a:hover,
.kulis-theme-site-footer__menu a:focus-visible {
    color: #1769ff;
    background: #f5f8ff;
    text-decoration: none;
}

@media (max-width: 782px) {
    body.kulis-theme-app-view {
        padding-bottom:
            calc(var(--kulis-bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .kulis-theme-bottom-nav {
        display: block;
    }

    .kulis-theme-site-content {
        width: min(100% - 20px, var(--kulis-theme-content));
        margin-top: 18px;
        margin-bottom: 30px;
    }

    .kulis-theme-site-content .kulis-theme-entry {
        padding: 18px;
        border-radius: 14px;
    }

    .kulis-theme-entry__title {
        font-size: 29px;
    }

    .kulis-theme-site-footer__inner {
        width: calc(100% - 20px);
        min-height: 110px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 20px 0;
    }

    .kulis-theme-site-footer__menu {
        justify-content: flex-start;
    }
}

@media (min-width: 783px) {
    .kulis-theme-bottom-nav {
        display: none !important;
    }
}


/* =========================================================
 * Step 06 — KULİS desktop shell + sidebar + mobile drawer
 * ========================================================= */
:root {
    --kulis-shell-max: 1540px;
    --kulis-shell-sidebar: 206px;
    --kulis-shell-utility: 238px;
    --kulis-shell-gap: 14px;
}

body.kulis-theme-shell-enabled {
    background: #f4f6f9;
}

/* Plugin'in tema geçiş dönemindeki kabuk elemanları tema aktifken tekrarlanmaz. */
body.kulis-theme-shell-enabled :is(
    .kulis-global-topbar,
    .kulis-global-bottom-nav,
    .kulis-dashboard-topbar,
    .kulis-dashboard-mobile-nav
) {
    display: none !important;
}

.kulis-theme-shell {
    display: grid;
    grid-template-columns: var(--kulis-shell-sidebar) minmax(0, 1fr);
    align-items: start;
    gap: var(--kulis-shell-gap);
    width: min(var(--kulis-shell-max), calc(100% - 28px));
    margin: 12px auto 34px;
}

.kulis-theme-shell__stage {
    min-width: 0;
}

.kulis-theme-shell__stage.has-utility-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--kulis-shell-gap);
}

.kulis-theme-app-sidebar {
    position: sticky;
    top: calc(var(--kulis-header-height) + 12px);
    display: grid;
    gap: 12px;
    min-width: 0;
}

body.admin-bar .kulis-theme-app-sidebar {
    top: calc(var(--kulis-header-height) + 44px);
}

.kulis-theme-app-sidebar__nav {
    display: grid;
    gap: 3px;
    padding: 7px;
    border: 1px solid #e0e6ee;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 26px rgba(15,23,42,.045);
}

.kulis-theme-app-sidebar__item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    min-height: 39px;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 10px;
    color: #5e6b7d;
    font-size: 11px;
    font-weight: 760;
    text-decoration: none;
    transition:
        color .15s ease,
        background-color .15s ease,
        transform .15s ease;
}

.kulis-theme-app-sidebar__item:hover,
.kulis-theme-app-sidebar__item:focus-visible {
    color: #1769ff;
    background: #f5f8ff;
    text-decoration: none;
}

.kulis-theme-app-sidebar__item.is-active {
    color: #1769ff;
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px #d5e4ff;
}

.kulis-theme-app-sidebar__icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
}

.kulis-theme-app-sidebar__item.is-active .kulis-theme-app-sidebar__icon {
    background: #fff;
}

.kulis-theme-app-sidebar__icon svg,
.kulis-theme-app-drawer__icon svg {
    width: 18px;
    height: 18px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kulis-theme-app-sidebar__item.is-active svg {
    stroke-width: 2.15;
}

.kulis-theme-app-sidebar__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kulis-theme-app-sidebar__profile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e0e6ee;
    border-radius: 14px;
    color: #334155;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    text-decoration: none;
}

.kulis-theme-app-sidebar__profile:hover,
.kulis-theme-app-sidebar__profile:focus-visible {
    border-color: #c9d9fa;
    text-decoration: none;
}

.kulis-theme-app-sidebar__avatar {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
}

.kulis-theme-app-sidebar__profile > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.kulis-theme-app-sidebar__profile strong,
.kulis-theme-app-sidebar__profile small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kulis-theme-app-sidebar__profile strong {
    color: #172033;
    font-size: 10.5px;
}

.kulis-theme-app-sidebar__profile small {
    color: #8490a1;
    font-size: 8.5px;
}

/* Theme shell içinde plugin kökleri artık viewport hesabı yapmaz. */
body.kulis-theme-shell-enabled .kulis-theme-shell :is(
    .kulis-dashboard,
    .kulis-feed-app,
    .kulis-profile-app,
    .kulis-chat,
    .kulis-portfolio-app,
    .kulis-messaging,
    .kulis-connections,
    .kulis-groups,
    .kulis-notifications,
    .kulis-search-app,
    .kulis-events-app,
    .kulis-forum-app,
    .kulis-jobs,
    .kulis-projects
) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
}

/* Dashboard'daki eski sol navigasyon tema sidebar'ı ile tekrarlanmasın. */
body.kulis-theme-shell-enabled .kulis-dashboard-sidebar {
    display: none !important;
}

body.kulis-theme-shell-enabled .kulis-dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
}

body.kulis-theme-shell-enabled .kulis-dashboard-main,
body.kulis-theme-shell-enabled .kulis-dashboard-right {
    min-width: 0 !important;
}

body.kulis-theme-shell-enabled .kulis-dashboard-right {
    top: calc(var(--kulis-header-height) + 12px) !important;
}

/* Yardımcı sağ ray yalnızca çok geniş masaüstünde görünür. */
.kulis-theme-utility-rail {
    display: none;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.kulis-theme-utility-card {
    padding: 15px;
    border: 1px solid #e0e6ee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
}

.kulis-theme-utility-card__eyebrow {
    color: #1769ff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .11em;
}

.kulis-theme-utility-card h2 {
    margin: 4px 0 10px;
    color: #172033;
    font-size: 14px;
}

.kulis-theme-utility-card nav {
    display: grid;
    gap: 4px;
}

.kulis-theme-utility-card nav a {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px;
    border-radius: 8px;
    color: #536174;
    font-size: 9.5px;
    font-weight: 730;
    text-decoration: none;
}

.kulis-theme-utility-card nav a:hover,
.kulis-theme-utility-card nav a:focus-visible {
    color: #1769ff;
    background: #f5f8ff;
    text-decoration: none;
}

.kulis-theme-utility-card nav b {
    color: #1769ff;
}

.kulis-theme-utility-card--soft {
    background: #f7faff;
}

.kulis-theme-utility-card--soft strong {
    color: #1769ff;
    font-size: 10px;
}

.kulis-theme-utility-card--soft p {
    margin: 5px 0 0;
    color: #758196;
    font-size: 9px;
    line-height: 1.55;
}

/* Mobile app drawer toggle. Desktop'ta gizli. */
.kulis-theme-app-drawer-toggle {
    display: none;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.kulis-theme-app-drawer-toggle > span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: #435168;
}

/* Drawer */
.kulis-theme-drawer-layer[hidden] {
    display: none !important;
}

.kulis-theme-drawer-layer {
    position: fixed;
    z-index: 12000;
    inset: 0;
}

.kulis-theme-drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15,23,42,.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.kulis-theme-app-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0,1fr) auto;
    width: min(86vw, 330px);
    padding:
        max(14px, env(safe-area-inset-top))
        12px
        max(14px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 20px 0 60px rgba(15,23,42,.22);
    transform: translateX(0);
    overflow: hidden;
}

.kulis-theme-app-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 5px 8px;
    border-bottom: 1px solid #edf0f4;
}

.kulis-theme-app-drawer__header > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.kulis-theme-app-drawer__header strong {
    color: #172033;
    font-size: 13px;
    letter-spacing: -.02em;
}

.kulis-theme-app-drawer__header span {
    color: #1769ff;
    font-size: 9px;
    font-weight: 900;
}

.kulis-theme-app-drawer__header button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #64748b;
    background: #f4f6f9;
    font-size: 22px;
    cursor: pointer;
}

.kulis-theme-app-drawer__user {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 13px;
    color: #334155;
    background: #f7f9fc;
    text-decoration: none;
}

.kulis-theme-app-drawer__avatar {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    object-fit: cover;
}

.kulis-theme-app-drawer__user > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.kulis-theme-app-drawer__user strong,
.kulis-theme-app-drawer__user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kulis-theme-app-drawer__user strong {
    color: #172033;
    font-size: 12px;
}

.kulis-theme-app-drawer__user small {
    color: #8490a1;
    font-size: 9.5px;
}

.kulis-theme-app-drawer__nav {
    display: grid;
    align-content: start;
    gap: 2px;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 0 8px;
    overscroll-behavior: contain;
}

.kulis-theme-app-drawer__nav a {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    min-height: 43px;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 10px;
    color: #58677b;
    font-size: 11.5px;
    font-weight: 760;
    text-decoration: none;
}

.kulis-theme-app-drawer__nav a.is-active {
    color: #1769ff;
    background: #edf4ff;
}

.kulis-theme-app-drawer__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
}

.kulis-theme-app-drawer__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.kulis-theme-app-drawer__footer a {
    display: grid;
    min-height: 38px;
    place-items: center;
    border-radius: 9px;
    color: #64748b;
    background: #f5f7fa;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

body.kulis-theme-drawer-open {
    overflow: hidden;
}

@media (min-width: 1500px) {
    .kulis-theme-shell__stage.has-utility-rail {
        grid-template-columns: minmax(0, 1fr) var(--kulis-shell-utility);
    }

    .kulis-theme-utility-rail {
        position: sticky;
        top: calc(var(--kulis-header-height) + 12px);
        display: grid;
    }

    body.admin-bar .kulis-theme-utility-rail {
        top: calc(var(--kulis-header-height) + 44px);
    }
}

@media (max-width: 1260px) {
    :root {
        --kulis-shell-sidebar: 188px;
    }

    .kulis-theme-shell {
        width: calc(100% - 20px);
        gap: 10px;
    }

    .kulis-theme-app-sidebar__item {
        font-size: 10px;
    }

    body.kulis-theme-shell-enabled .kulis-dashboard-layout {
        grid-template-columns: minmax(0,1fr) !important;
    }

    body.kulis-theme-shell-enabled .kulis-dashboard-right {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
        margin-top: 12px !important;
    }
}

@media (max-width: 1000px) {
    .kulis-theme-shell {
        display: block;
        width: min(100%, 1240px);
        margin-top: 8px;
    }

    .kulis-theme-app-sidebar {
        display: none;
    }

    .kulis-theme-shell__stage {
        width: 100%;
    }
}

@media (max-width: 782px) {
    .kulis-theme-app-drawer-toggle {
        display: block;
    }

    /* App header'da drawer butonu daha değerli; avatar yine korunur. */
    .kulis-theme-shell {
        width: 100%;
        margin: 0 0 calc(var(--kulis-bottom-nav-height) + 10px);
    }

    body.kulis-theme-shell-enabled .kulis-theme-shell :is(
        .kulis-dashboard,
        .kulis-feed-app,
        .kulis-profile-app,
        .kulis-chat,
        .kulis-portfolio-app,
        .kulis-messaging,
        .kulis-connections,
        .kulis-groups,
        .kulis-notifications,
        .kulis-search-app,
        .kulis-events-app,
        .kulis-forum-app,
        .kulis-jobs,
        .kulis-projects
    ) {
        width: 100% !important;
        border-radius: 0 !important;
    }

    body.kulis-theme-shell-enabled .kulis-dashboard-layout {
        display: block !important;
        padding: 8px !important;
    }

    body.kulis-theme-shell-enabled .kulis-dashboard-right {
        display: grid !important;
        grid-template-columns: 1fr !important;
        margin-top: 10px !important;
    }
}

@media (min-width: 783px) {
    .kulis-theme-drawer-layer {
        display: none !important;
    }
}


/* =========================================================
 * Beta 1.0.0-beta.2 — Real hosting alignment hotfix
 * ========================================================= */
body.kulis-theme-app-view .kulis-global-mobile-nav {
    display: none !important;
}

body.kulis-theme-shell-enabled {
    overflow-x: clip;
}

body.kulis-theme-shell-enabled .kulis-theme-shell__stage,
body.kulis-theme-shell-enabled .kulis-theme-app-content,
body.kulis-theme-shell-enabled .kulis-theme-entry--app,
body.kulis-theme-shell-enabled .kulis-theme-entry--app > .kulis-theme-entry__content {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.kulis-theme-shell-enabled .kulis-theme-shell :is(
    .kulis-dashboard,
    .kulis-feed-app,
    .kulis-profile-app,
    .kulis-messaging,
    .kulis-chat,
    .kulis-portfolio-app,
    .kulis-connections,
    .kulis-groups,
    .kulis-notifications,
    .kulis-search-app,
    .kulis-events-app,
    .kulis-forum-app,
    .kulis-jobs,
    .kulis-projects
) {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
}


/* =========================================================
 * Beta 1.0.0-beta.4 — profil route + sol mobil açılır menü
 * ========================================================= */
.kulis-theme-header__brand{
    display:flex;
    align-items:center;
    gap:7px;
}
.kulis-theme-app-drawer-toggle--left{
    order:-1;
    flex:0 0 auto;
}
@media (max-width:782px){
    .kulis-theme-header__brand .kulis-theme-app-drawer-toggle--left{
        display:block;
    }
}


/* =========================================================
 * Beta 1.0.0-beta.5 — WordPress admin toolbar cleanup
 * ========================================================= */

/*
 * PHP show_admin_bar(false) is authoritative. These rules are only a
 * defensive fallback for plugins/themes that inject toolbar markup manually.
 */
body.kulis-theme #wpadminbar {
    display: none !important;
}

html:has(body.kulis-theme) {
    margin-top: 0 !important;
}

body.kulis-theme.admin-bar .kulis-theme-header,
body.admin-bar.kulis-theme-auth-view .kulis-theme-header {
    top: 0 !important;
}

body.kulis-theme.admin-bar .kulis-theme-app-sidebar,
body.kulis-theme.admin-bar .kulis-theme-utility-rail {
    top: calc(var(--kulis-header-height) + 12px) !important;
}

@media (max-width: 782px) {
    body.kulis-theme.admin-bar .kulis-theme-user-popover {
        top: calc(var(--kulis-header-height) + 10px) !important;
    }

    body.admin-bar.kulis-theme-auth-view .kulis-theme-header {
        top: 0 !important;
    }
}


@media (max-width: 782px) {
    body.home:not(.logged-in) .kulis-theme-auth-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }

    body.home:not(.logged-in) .kulis-theme-auth-actions a {
        min-height: 34px;
        padding: 0 10px;
        font-size: 10.5px;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {
    body.home:not(.logged-in) .kulis-theme-auth-actions {
        gap: 4px;
    }

    body.home:not(.logged-in) .kulis-theme-auth-actions a {
        padding: 0 9px;
        font-size: 10px;
    }
}


/* =========================================================
 * v1.2.3 — Kameraman.TR KULİS social navbar
 * SocialV referansındaki bilgi mimarisi KULİS'e özgü olarak yeniden kuruldu.
 * ========================================================= */
@media (min-width: 783px) {
    .kulis-theme-header.is-app-header {
        --kulis-header-height: 76px;
        min-height: var(--kulis-header-height);
        border-bottom: 1px solid #e8edf3;
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .kulis-theme-header.is-app-header .kulis-theme-header__inner {
        grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) auto;
        width: min(1560px, calc(100% - 40px));
        min-height: var(--kulis-header-height);
        gap: clamp(18px, 2.2vw, 38px);
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand {
        gap: 0;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__mark {
        display: none;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text {
        gap: 7px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text strong {
        color: #0b1d38;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -.035em;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text small {
        color: var(--kulis-header-primary);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .025em;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__logo-image {
        max-width: 225px;
        max-height: 42px;
    }
}

.kulis-theme-member-navbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 560px);
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: clamp(18px, 2.8vw, 48px);
}

.kulis-theme-member-navbar__links {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    min-width: max-content;
    gap: 2px;
}

.kulis-theme-member-navbar__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    padding: 0 13px;
    color: #27364c;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.kulis-theme-member-navbar__link::after {
    position: absolute;
    right: 13px;
    bottom: -1px;
    left: 13px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    content: '';
}

.kulis-theme-member-navbar__link:hover,
.kulis-theme-member-navbar__link:focus-visible,
.kulis-theme-member-navbar__link.is-active {
    color: var(--kulis-header-primary);
    text-decoration: none;
}

.kulis-theme-member-navbar__link.is-active::after {
    background: var(--kulis-header-primary);
}

.kulis-theme-member-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 560px;
    margin-left: auto;
}

.kulis-theme-member-search__icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #718096;
    pointer-events: none;
}

.kulis-theme-member-search__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kulis-theme-member-search input[type='search'] {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: 1px solid #e8edf3;
    border-radius: 6px;
    outline: 0;
    color: #1d2b3f;
    background: #f7f8fa;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.kulis-theme-member-search input[type='search']::placeholder {
    color: #9aa5b3;
}

.kulis-theme-member-search input[type='search']:focus {
    border-color: #b7cef8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, .08);
}

.kulis-theme-header.is-app-header .kulis-theme-header__actions {
    gap: 2px;
}

.kulis-theme-header-action {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #64758b;
    background: transparent;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

.kulis-theme-header-action:hover,
.kulis-theme-header-action:focus-visible {
    color: var(--kulis-header-primary);
    background: #f2f7ff;
    text-decoration: none;
}

.kulis-theme-header-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kulis-theme-header-badge {
    position: absolute;
    top: 1px;
    right: 0;
    display: inline-flex;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #2d8cff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.kulis-theme-header-badge[hidden] {
    display: none !important;
}

.kulis-theme-header-action--mobile-search {
    display: none;
}

.kulis-theme-user-menu--navbar {
    margin-left: 6px;
}

.kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle {
    position: relative;
    display: flex;
    width: auto;
    min-width: 50px;
    height: 46px;
    padding: 2px 20px 2px 2px;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
}

.kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle:hover,
.kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle:focus-visible,
.kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle[aria-expanded='true'] {
    border: 0;
    background: #f5f8fc;
    box-shadow: none;
}

.kulis-theme-user-menu--navbar .kulis-theme-user-menu__avatar {
    width: 40px;
    height: 40px;
    border: 1px solid #e1e7ef;
}


.kulis-theme-user-menu__chevron {
    position: absolute;
    right: 2px;
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    color: #7a8799;
}

.kulis-theme-user-menu__chevron svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1260px) and (min-width: 783px) {
    .kulis-theme-header.is-app-header .kulis-theme-header__inner {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
        width: calc(100% - 28px);
        gap: 16px;
    }

    .kulis-theme-member-navbar {
        grid-template-columns: auto minmax(220px, 1fr);
        gap: 16px;
    }

    .kulis-theme-member-navbar__link {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }

    .kulis-theme-member-navbar__link::after {
        right: 9px;
        left: 9px;
    }
}

@media (max-width: 1040px) and (min-width: 783px) {
    .kulis-theme-member-navbar {
        grid-template-columns: minmax(220px, 1fr);
    }

    .kulis-theme-member-navbar__links {
        display: none;
    }

    .kulis-theme-member-search {
        max-width: 520px;
    }

    .kulis-theme-header-action--chat {
        display: none;
    }
}

@media (max-width: 782px) {
    .kulis-theme-header.is-app-header {
        --kulis-header-height: 58px;
        min-height: var(--kulis-header-height);
        border-bottom: 1px solid #e8edf3;
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .kulis-theme-header.is-app-header .kulis-theme-header__inner {
        min-height: var(--kulis-header-height);
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__mark {
        display: none;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text {
        gap: 5px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text strong {
        color: #0b1d38;
        font-size: 13px;
        font-weight: 900;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text small {
        display: inline;
        color: var(--kulis-header-primary);
        font-size: 8px;
        font-weight: 900;
    }

    .kulis-theme-member-navbar {
        display: none;
    }

    .kulis-theme-header-action--mobile-search {
        display: grid;
    }

    .kulis-theme-header-action--connections,
    .kulis-theme-header-action--chat,
    .kulis-theme-header-action--messages {
        display: none;
    }

    .kulis-theme-header-action {
        width: 36px;
        height: 36px;
    }

    .kulis-theme-header-action svg {
        width: 19px;
        height: 19px;
    }

    .kulis-theme-user-menu--navbar {
        margin-left: 0;
    }

    .kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle {
        min-width: 38px;
        width: 38px;
        height: 38px;
        padding: 2px;
    }

    .kulis-theme-user-menu--navbar .kulis-theme-user-menu__avatar {
        width: 34px;
        height: 34px;
    }

    .kulis-theme-user-menu--navbar .kulis-theme-user-menu__chevron {
        display: none;
    }
}

@media (max-width: 390px) {
    .kulis-theme-header.is-app-header .kulis-theme-brand__text strong {
        font-size: 12px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text small {
        font-size: 7px;
    }
}
\n\n/* v1.2.4 — Search shell cleanup: one navbar + one navigation rail. */\n@media (min-width:783px){\n  body.kulis-theme-shell-enabled .kulis-search-topbar,\n  body.kulis-theme-shell-enabled .kulis-search-sidebar{display:none!important}\n  body.kulis-theme-shell-enabled .kulis-search-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,320px)!important;gap:18px!important;width:100%!important;max-width:100%!important;padding:18px!important;margin:0!important}\n  body.kulis-theme-shell-enabled .kulis-search-main{grid-column:1!important;min-width:0!important}\n  body.kulis-theme-shell-enabled .kulis-search-rightbar{display:grid!important;grid-column:2!important;align-self:start!important;min-width:0!important}\n}\n@media (max-width:782px){\n  body.kulis-theme-shell-enabled .kulis-search-sidebar,\n  body.kulis-theme-shell-enabled .kulis-search-topbar .kulis-search-brand,\n  body.kulis-theme-shell-enabled .kulis-search-topbar .kulis-search-actions{display:none!important}\n  body.kulis-theme-shell-enabled .kulis-search-topbar{display:block!important;position:static!important;width:100%!important;padding:10px 12px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}\n  body.kulis-theme-shell-enabled .kulis-search-topform{width:100%!important;max-width:none!important}\n}\n

/* v1.2.5 — KULİS navbar popovers + centered search + circular avatar + mobile fix. */
.kulis-theme-header.is-app-header {
    overflow: visible;
}

.kulis-theme-header.is-app-header .kulis-theme-header__inner {
    overflow: visible;
}

.kulis-theme-member-navbar {
    grid-template-columns: auto minmax(360px, 700px);
    justify-content: center;
    gap: clamp(20px, 3vw, 54px);
}

.kulis-theme-member-search {
    max-width: 700px;
    margin: 0 auto;
}

.kulis-theme-member-search input[type='search'] {
    height: 46px;
    padding-right: 92px;
    border-radius: 9px;
    background: #f7f9fc;
}

.kulis-theme-member-search__submit {
    position: absolute;
    z-index: 2;
    top: 4px;
    right: 4px;
    min-width: 76px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--kulis-header-primary);
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.kulis-theme-member-search__submit:hover,
.kulis-theme-member-search__submit:focus-visible {
    background: #0f5ce6;
}

.kulis-theme-header-dropdown {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.kulis-theme-header-popover[hidden] {
    display: none !important;
}

.kulis-theme-header-popover {
    position: absolute;
    z-index: 12000;
    top: calc(100% + 15px);
    right: -28px;
    width: min(400px, calc(100vw - 28px));
    overflow: visible;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .16);
    text-align: left;
}

.kulis-theme-header-popover::before,
.kulis-theme-header-popover::after {
    position: absolute;
    right: 39px;
    bottom: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    content: '';
}

.kulis-theme-header-popover::before {
    border-width: 0 9px 9px;
    border-color: transparent transparent #dfe6ef;
}

.kulis-theme-header-popover::after {
    right: 40px;
    border-width: 0 8px 8px;
    border-color: transparent transparent #fff;
}

.kulis-theme-header-popover--connections {
    width: min(430px, calc(100vw - 28px));
}

.kulis-theme-header-popover__head {
    display: flex;
    min-height: 60px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0f4;
}

.kulis-theme-header-popover__head strong {
    color: #142033;
    font-size: 16px;
    font-weight: 800;
}

.kulis-theme-header-popover__head a {
    color: var(--kulis-header-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.kulis-theme-header-popover__body {
    max-height: 390px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.kulis-theme-header-popover__state {
    padding: 34px 20px;
    color: #8190a5;
    font-size: 13px;
    text-align: center;
}

.kulis-theme-header-popover__foot {
    padding: 12px 16px 14px;
    border-top: 1px solid #edf0f4;
}

.kulis-theme-header-popover__foot a {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff;
    background: var(--kulis-header-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.kulis-theme-popover-row {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 74px;
    padding: 12px 18px;
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.kulis-theme-popover-row:last-child {
    border-bottom: 0;
}

.kulis-theme-popover-row:hover,
.kulis-theme-popover-row:focus-within {
    background: #f8fbff;
    text-decoration: none;
}

.kulis-theme-popover-row__avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: #edf2f7;
    object-fit: cover;
}

.kulis-theme-popover-row__avatar--placeholder {
    display: grid;
    place-items: center;
    color: #6f7e92;
    font-size: 14px;
    font-weight: 800;
}

.kulis-theme-popover-row__content {
    min-width: 0;
}

.kulis-theme-popover-row__title {
    display: block;
    overflow: hidden;
    color: #172235;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kulis-theme-popover-row__text {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: #78879a;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kulis-theme-popover-row__meta {
    display: grid;
    min-width: 48px;
    justify-items: end;
    gap: 6px;
    color: #8a98aa;
    font-size: 10px;
    white-space: nowrap;
}

.kulis-theme-popover-row__count {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #2d8cff;
    font-size: 10px;
    font-weight: 800;
}

.kulis-theme-popover-row__unread {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d8cff;
}

.kulis-theme-popover-row--request {
    grid-template-columns: 44px minmax(0, 1fr) auto;
}

.kulis-theme-popover-row__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kulis-theme-request-action {
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.kulis-theme-request-action--accept {
    color: #1675ee;
    background: #e7f3ff;
}

.kulis-theme-request-action--reject {
    color: #ef6868;
    background: #fff0f0;
}

.kulis-theme-request-action[disabled] {
    opacity: .45;
    cursor: progress;
}

.kulis-theme-header-action[aria-expanded='true'] {
    color: var(--kulis-header-primary);
    background: #eef5ff;
}

.kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
}

.kulis-theme-user-menu--navbar .kulis-theme-user-menu__avatar,
.kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle img {
    display: block;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.kulis-theme-user-menu--navbar .kulis-theme-user-menu__chevron {
    display: none;
}

.kulis-theme-mobile-member-search {
    display: none;
}

@media (max-width: 1260px) and (min-width: 783px) {
    .kulis-theme-member-navbar {
        grid-template-columns: auto minmax(280px, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1040px) and (min-width: 783px) {
    .kulis-theme-member-navbar {
        grid-template-columns: minmax(260px, 620px);
        justify-content: center;
    }
}

@media (max-width: 782px) {
    .kulis-theme-header.is-app-header {
        --kulis-header-height: 116px;
        min-height: var(--kulis-header-height);
    }

    .kulis-theme-header.is-app-header .kulis-theme-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 58px;
        height: 58px;
        padding-right: max(10px, env(safe-area-inset-right));
        padding-left: max(10px, env(safe-area-inset-left));
        gap: 7px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-header__brand {
        display: flex;
        min-width: 0;
        align-items: center;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand {
        min-width: 0;
        max-width: 100%;
        gap: 6px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text {
        min-width: 0;
        gap: 5px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text strong {
        overflow: hidden;
        max-width: 142px;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text small {
        flex: 0 0 auto;
        font-size: 8px;
    }

    .kulis-theme-app-drawer-toggle--left {
        flex: 0 0 auto;
        margin-right: 3px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-header__actions {
        flex: 0 0 auto;
        gap: 2px;
    }

    .kulis-theme-header-action--connections,
    .kulis-theme-header-action--chat,
    .kulis-theme-header-action--messages {
        display: none;
    }

    .kulis-theme-header-action--notifications {
        display: grid;
        width: 36px;
        height: 36px;
    }

    .kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .kulis-theme-user-menu--navbar .kulis-theme-user-menu__avatar,
    .kulis-theme-user-menu--navbar .kulis-theme-user-menu__toggle img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .kulis-theme-mobile-member-search {
        position: relative;
        display: flex;
        width: calc(100% - 20px);
        height: 46px;
        margin: 0 10px 12px;
        align-items: center;
    }

    .kulis-theme-mobile-member-search__icon {
        position: absolute;
        z-index: 1;
        left: 13px;
        display: grid;
        width: 19px;
        height: 19px;
        place-items: center;
        color: #708096;
        pointer-events: none;
    }

    .kulis-theme-mobile-member-search__icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .kulis-theme-mobile-member-search input[type='search'] {
        min-width: 0;
        height: 46px;
        flex: 1 1 auto;
        padding: 0 12px 0 41px;
        border: 1px solid #dbe3ed;
        border-right: 0;
        border-radius: 9px 0 0 9px;
        outline: none;
        background: #fff;
        font: inherit;
        font-size: 12px;
    }

    .kulis-theme-mobile-member-search button {
        height: 46px;
        flex: 0 0 68px;
        border: 0;
        border-radius: 0 9px 9px 0;
        color: #fff;
        background: var(--kulis-header-primary);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
    }

    .kulis-theme-header-popover {
        position: fixed;
        z-index: 12500;
        top: calc(var(--kulis-header-height) + 8px);
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - var(--kulis-header-height) - 22px);
        border-radius: 12px;
    }

    body.admin-bar .kulis-theme-header-popover {
        top: calc(46px + var(--kulis-header-height) + 8px);
    }

    .kulis-theme-header-popover::before,
    .kulis-theme-header-popover::after {
        display: none;
    }

    .kulis-theme-header-popover__body {
        max-height: min(430px, calc(100vh - var(--kulis-header-height) - 150px));
    }

    .kulis-theme-user-popover {
        top: calc(var(--kulis-header-height) + 8px);
    }

    body.admin-bar .kulis-theme-user-popover {
        top: calc(46px + var(--kulis-header-height) + 8px);
    }
}

@media (max-width: 390px) {
    .kulis-theme-header.is-app-header .kulis-theme-brand__text strong {
        max-width: 118px;
        font-size: 12px;
    }

    .kulis-theme-header.is-app-header .kulis-theme-brand__text small {
        font-size: 7px;
    }
}
