.ksSidebarMenu .kr-theme-toggle.menu-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    color: #8d8d8d;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--borderprofil);
    border-radius: 0;
}

.ksSidebarMenu .kr-theme-toggle.menu-tip i {
    font-size: inherit;
    pointer-events: none;
}

.ksSidebarMenu .kr-theme-toggle.menu-tip:hover {
    color: var(--biel);
    background: var(--borderprofil);
}



.ksMessengerPanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.ksMessengerPanel { position: fixed; z-index: 1001; top: 50px; left: 50px; right: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.ksMessengerPanel.is-open { grid-template-rows: 1fr; }
.ksMessengerClip { overflow: hidden; }

.ksMessengerContent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #3a2a27;
    background: #1c1211;
}

.ksMessengerSeal { display: grid; place-items: center; width: 46px; height: 54px; color: #e5d4bd; border: 1px solid #5f4636; }
.ksMessengerEyebrow { color: #a79a95; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.ksMessengerTitle { margin: 4px 0; color: #e5d4bd; font-size: 22px; }
.ksMessengerText { margin: 0; color: #b7aca8; }
.ksMessengerAll { color: #e5d4bd; text-decoration: none; white-space: nowrap; }
.ksMessengerLoading { padding: 20px; color: #b7aca8; }



/* ==========================================
   ROZMIARY
========================================== */

:root{
    --sidebar-width:50px;
    --topbar-height:50px;
}

/* ==========================================
   SIDEBAR
========================================== */

:root {
  --sidebar-width: 50px;
}

.ksSidebar {
  position: fixed;
  inset: 0 auto 0 0;
  box-sizing: border-box;

  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);

  height: 100vh;
  height: 100dvh;

  background: var(--tloprofil);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;

  z-index: 99999;
}

.ksSidebar > * {
  flex: 0 0 auto;
}

/* pionowa linia - dopiero pod topbarem */

.ksSidebar::after{
    content:"";
    position:absolute;

    top:var(--topbar-height);
    right:0;
    bottom:0;

    width:1px;

    background:var(--borderprofil);
}

/* ==========================================
   AVATAR
========================================== */

.ksSidebarAvatar{
    margin-top:18px;

}

.ksSidebarAvatar img{
    width:35px;
    height:35px;
    object-fit:cover;
    border-radius:0%;
    border:1px solid var(--borderprofil);
	 margin-top: -10px;
    transition:.25s;
}


/* ==========================================
   LINIA POD AVATAREM
========================================== */

.ksSidebarLine{

    width:1px;
    height:80px;

    margin:22px 0;

    background:var(--borderprofil);

}

/* ==========================================
   MENU
========================================== */

.ksSidebarMenu{

    display:flex;
    flex-direction:column;

    gap:14px;

    width:100%;

}

.ksSidebarMenu a{
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #8d8d8d;
  font-size: 17px;
  transition: .25s;
  border: 1px solid var(--borderprofil);
  border-radius: 50;
  margin-left: 8px;
}

.ksSidebarMenu a:hover{

    background:var(--borderprofil);

    color:var(--biel);

}

.ksSidebarMenu a.active{

    background:var(--gradient);

    color:var(--biel);

}

/* ==========================================
   TOPBAR
========================================== */

.ksTopbar{

    position:fixed;

    top:0;
    left:var(--sidebar-width);

    width:calc(100% - var(--sidebar-width));

    height:var(--topbar-height);
    background:var(--tloprofil);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 35px;

    box-sizing:border-box;

    z-index:99998;

}

/* tylko dolna linia */

.ksTopbar::after{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:1px;

    background:var(--borderprofil);

}

/* domknięcie narożnika */

.ksTopbar::before{

    content:"";

    position:absolute;

    left:0;
    bottom:0;

    width:1px;
    height:1px;

    background:var(--borderprofil);

}

.ksTopLeft{

    display:flex;
    align-items:center;
    gap:18px;

}

.ksSiteSmall{

    font-size:10px;
    letter-spacing:4px;
    text-transform:uppercase;

    color:#888;

}

.ksLine{

    width:40px;
    height:1px;

    background:var(--borderprofil);

}

.ksSiteName{

    font-family:Ghosthey;
    font-size:12px;

    color:var(--biel);

    letter-spacing:2px;

}

.ksTopRight{

    display:flex;
    align-items:center;

}

/* ==========================================
   USER
========================================== */

.navUser{

    display:flex;
    align-items:center;

    gap:18px;

}

.navUserName a{

    color:var(--biel);

    text-decoration:none;

    text-transform:lowercase;

  font: 12px Instrument;

}

.navUserLinks{

    display:flex;

    color:var(--biel);

    text-decoration:none;

    text-transform:lowercase;

  font: 12px Instrument;

}

.navUserLinks a{

    color:#999;

    transition:.25s;

}

.navUserLinks a:hover{

    color:#fff;

}

/* ==========================================
   STRONA
========================================== */

#header{

    margin-left:var(--sidebar-width);
    padding-top:var(--topbar-height);

}


.guestLinks{

    display:flex;
    align-items:center;
    gap:10px;

    font-family:"Instrument", serif;
    font-style:italic;
    font-size:14px;
    letter-spacing:1px;
    text-transform:lowercase;

}

.guestLinks a{

    color:var(--biel);
    text-decoration:none;

    transition:.3s;

}

.guestLinks span{

    color:var(--borderprofil);

}

.guestLinks a:hover{

    color:var(--accent);

}