/* FariDocs 1.20.3 — signed-in public account menu */
.workspace-nav-button svg,
.public-user-menu svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-user-menu { position: relative; }
.public-user-menu summary { list-style: none; }
.public-user-menu summary::-webkit-details-marker { display: none; }
.public-user-trigger {
    min-height: 42px;
    max-width: 210px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 2px solid #21aa9c;
    border-radius: 24px;
    background: linear-gradient(135deg, #e9faf7, #dff4f3);
    color: #0a4458;
    box-shadow: 0 0 0 3px rgba(33, 170, 156, .09), 0 8px 18px rgba(11, 75, 89, .1);
    cursor: pointer;
    user-select: none;
}
.public-user-trigger b {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #123b5d, #159b8f);
    color: #fff;
    font-size: 10px;
}
.public-user-trigger > span { overflow: hidden; font-size: 9px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.public-user-trigger i { display: grid; color: #587180; transition: transform .18s ease; }
.public-user-trigger i svg { width: 13px; height: 13px; }
.public-user-menu[open] .public-user-trigger i { transform: rotate(180deg); }
.public-user-dropdown {
    position: absolute;
    z-index: 120;
    top: calc(100% + 9px);
    right: 0;
    width: 230px;
    overflow: hidden;
    border: 1px solid #c9dce2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(9, 39, 55, .2);
}
.public-user-identity { display: grid; gap: 2px; padding: 14px; border-bottom: 1px solid #e1eaed; }
.public-user-identity strong,
.public-user-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-user-identity strong { color: #123b5d; font-size: 11px; }
.public-user-identity small { color: #6c8490; font-size: 8px; }
.public-user-dropdown a,
.public-user-dropdown button {
    width: 100%;
    min-height: 41px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: #173e51;
    font: 800 10px/1 Inter, sans-serif;
    text-align: left;
    cursor: pointer;
}
.public-user-dropdown a:hover,
.public-user-dropdown button:hover { background: #eef8f6; }
.public-user-dropdown a > span,
.public-user-dropdown button > span { display: grid; color: #159b8f; }
.public-user-dropdown form { margin: 0; border-top: 1px solid #e1eaed; }

html[data-theme="dark"] .public-user-trigger {
    border-color: #39c4b5;
    background: linear-gradient(135deg, #103b43, #0d303b);
    color: #e7ffff;
    box-shadow: 0 0 0 3px rgba(57, 196, 181, .12), 0 8px 18px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] .public-user-trigger i { color: #a8c6ce; }
html[data-theme="dark"] .public-user-dropdown { border-color: #365666; background: #0d2836; }
html[data-theme="dark"] .public-user-identity { border-color: #294a59; }
html[data-theme="dark"] .public-user-identity strong,
html[data-theme="dark"] .public-user-dropdown a,
html[data-theme="dark"] .public-user-dropdown button { color: #e6f3f6; }
html[data-theme="dark"] .public-user-identity small { color: #9cb8c1; }
html[data-theme="dark"] .public-user-dropdown a:hover,
html[data-theme="dark"] .public-user-dropdown button:hover { background: #143845; }
html[data-theme="dark"] .public-user-dropdown form { border-color: #294a59; }

@media (max-width: 1180px) {
    .public-user-menu { order: 5; }
}

@media (max-width: 700px) {
    .public-user-menu { width: 100%; order: 6; }
    .public-user-trigger { width: 100%; max-width: none; justify-content: center; }
    .public-user-dropdown { right: 50%; width: min(280px, calc(100vw - 28px)); transform: translateX(50%); }
}
