/* 5CKN account access — v0.6.5. Compact icon beside Blocksy header controls. */
.ckn-account-entry {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 4px;
    margin-inline-start: 8px;
    line-height: 1;
}
.ckn-account-entry.is-mounted { display: inline-flex; }
.ckn-account-entry__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(30,127,92,.16);
    border-radius: 50%;
    background: rgba(30,127,92,.075);
    color: #185d45;
    text-decoration: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s ease, color .18s ease, transform .16s ease;
}
.ckn-account-entry__link svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    flex: none;
}
.ckn-account-entry__link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.ckn-account-entry__link:hover {
    background: #1e7f5c;
    color: #fff;
    transform: translateY(-1px);
}
.ckn-account-entry__link:active { transform: scale(.94); }
.ckn-account-entry__link:focus-visible {
    outline: 2px solid #1e7f5c;
    outline-offset: 3px;
}
/* Keep the native header items and compact account icon on one row. */
.ckn-account-entry-host {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}
/* Fallback only: anchor to a real header row, NEVER to a generic .ct-container. */
.ckn-account-fallback-row { position: relative; }
.ckn-account-fallback-row > .ckn-account-entry {
    position: absolute;
    z-index: 6;
    inset-inline-end: 8px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}
.ckn-account-fallback-row > .ct-container { padding-inline-end: 58px; }
@media (max-width: 999px) {
    .ckn-account-entry,
    .ckn-account-entry.is-mounted { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ckn-account-entry__link { transition: none; }
}
