.lambdaweb-frame:not(.booted) .lambdaweb-fs-btn {
    visibility: hidden;
}

.ul {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    overflow-y: auto;
    color: #fff;
    background: linear-gradient(rgba(10, 12, 24, 0.35), rgba(10, 12, 24, 0.55)), url('lambdaweb/wallpaper-dark.svg') center / cover no-repeat, #14172b;
    -webkit-user-select: text;
    user-select: text;
}

.ul-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(340px, 100%);
    margin: auto;
    gap: 10px;
    text-align: center;
}

.ul-card h2 {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 500;
}

.ul-sub,
.ul-hint {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

.ul-avatar {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.ul-avatar.big {
    width: 112px;
    height: 112px;
}

.ul-avatar[hidden] {
    display: none;
}

.ul-blank {
    display: grid;
    place-items: center;
    font-size: 34px;
    opacity: 0.8;
}

.ul-avatar-pick {
    cursor: pointer;
    margin-top: 8px;
}

.ul-avatar-pick:hover .ul-avatar {
    filter: brightness(1.15);
}

.ul-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid transparent;
    border-radius: 10px;
    font: inherit;
    text-align: center;
    outline: 0;
}

.ul-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.ul-input:focus {
    border-color: #7d93ff;
}

.ul-input:disabled {
    opacity: 0.5;
}

.ul-error {
    min-height: 18px;
    margin: 0;
    color: #ffb4a3;
    font-size: 13px;
}

.ul-btn {
    padding: 9px 26px;
    color: #fff;
    background: linear-gradient(135deg, #5f7bff, #a24dff);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ul-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.ul-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.notification.actionable {
    border-color: var(--accent);
}

.is-social .uwin-body {
    overflow: hidden;
}

.bt {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--view-bg);
    color: var(--fg);
    -webkit-user-select: text;
    user-select: text;
}

.bt-tabs {
    display: flex;
    flex: none;
    gap: 4px;
    padding: 8px 12px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.bt-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    color: var(--fg);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bt-tab:hover {
    background: var(--hover);
}

.bt-tab.active {
    background: var(--btn-bg);
}

.bt-badge {
    min-width: 18px;
    padding: 0 6px;
    color: #fff;
    background: var(--accent);
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
}

.bt-badge[hidden] {
    display: none;
}

.an-status {
    margin: 0;
    padding: 0 16px;
    color: #ff7b72;
}

.an-status:empty {
    display: none;
}

.an .bt-tabs {
    flex-wrap: wrap;
    align-items: center;
}

.an-post,
.an-confirm {
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.an-post {
    margin-bottom: 14px;
}

.an-title {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.an-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.an-photo {
    display: block;
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    margin: 14px auto;
    border-radius: 8px;
}

.an-photo[hidden] {
    display: none;
}

.an-comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.an-compose,
.an-comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.an-compose label,
.an-comment-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.an textarea,
.an-compose input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    resize: vertical;
    padding: 10px;
    color: var(--fg);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.an .an-check {
    flex-direction: row;
    align-items: center;
}

.an-comment-form {
    margin-top: 16px;
}

.an-confirm {
    max-width: 360px;
}

.bt-view {
    flex: 1;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
}

.bt-me {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.bt-me em {
    margin-left: auto;
    font-size: 12px;
    font-style: normal;
    opacity: 0.55;
}

.bt-avatar {
    flex: none;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--btn-bg);
}

.bt-empty {
    margin: 48px 0;
    text-align: center;
    opacity: 0.6;
}

.bt-empty.compact {
    margin: 18px 0;
}

.bt-row.offline .bt-avatar {
    opacity: 0.55;
}

.bt-row.offline .bt-name {
    opacity: 0.75;
}

.bt-off {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.55;
}

.bt-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    color: var(--fg);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bt-row:hover {
    background: var(--hover);
}

.bt-name {
    font-weight: 600;
}

.bt-msg {
    gap: 10px;
}

.bt-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bt-msg.unread .bt-dot {
    background: var(--accent);
}

.bt-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.bt-preview {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.6;
}

.bt-date {
    flex: none;
    font-size: 11px;
    opacity: 0.5;
}

.bt-read {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bt-link {
    align-self: flex-start;
    padding: 2px 0;
    color: var(--accent);
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.bt-from {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bt-from div {
    display: flex;
    flex-direction: column;
}

.bt-from span {
    font-size: 12px;
    opacity: 0.6;
}

.bt-text {
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.bt-actions,
.bt-foot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bt-spacer {
    flex: 1;
}

.bt-btn {
    padding: 7px 16px;
    color: var(--fg);
    background: var(--btn-bg);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bt-btn:hover:not(:disabled) {
    background: var(--btn-hover);
}

.bt-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.bt-btn.primary {
    color: #fff;
    background: var(--accent);
}

.bt-btn.danger {
    color: #ff7b72;
}

.bt-btn.destructive {
    color: #fff;
    background: #c01c28;
}

.bt-btn.destructive:hover:not(:disabled) {
    background: #d62a36;
}

.bt-btn.small {
    padding: 4px 10px;
    font-size: 12px;
}

.bt-text.removed,
.bt-msg.removed .bt-preview {
    font-style: italic;
    opacity: 0.7;
}

.ad-count {
    margin: 0 0 8px;
    font-size: 12px;
    opacity: 0.6;
}

.ad-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

.ad-name {
    font-weight: 600;
}

.ad-name em {
    font-weight: 400;
    font-style: normal;
    opacity: 0.55;
}

.ad-tags {
    display: flex;
    gap: 6px;
}

.ad-tag {
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 6px;
    background: var(--btn-bg);
}

.ad-tag.on {
    color: #8ae234;
}

.ad-tag.owner {
    color: #fff;
    background: var(--accent);
}

.ad-tag.admin {
    color: #fff;
    background: #3584e4;
}

.ad-search {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 12px;
    color: var(--fg);
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    font: inherit;
    outline: 0;
}

.ad-search:focus {
    border-color: var(--accent);
}

.ad-msgs {
    gap: 8px;
}

.ad-msg {
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ad-msg.gone {
    opacity: 0.6;
}

.ad-msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ad-msg-text {
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ad-msg-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.ad-note {
    margin: 0;
    line-height: 1.45;
    opacity: 0.8;
}

.bt-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.bt-layer[hidden] {
    display: none;
}

.bt-dialog {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(440px, 100%);
    max-height: 100%;
    padding: 16px;
    background: var(--win-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.bt-dialog h3 {
    margin: 0;
    font-size: 16px;
}

.bt-dialog textarea,
.bt-filename {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    color: var(--fg);
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    font: inherit;
    outline: 0;
}

.bt-dialog textarea {
    height: 140px;
    resize: none;
}

.bt-dialog textarea:focus,
.bt-filename:focus {
    border-color: var(--accent);
}

.bt-count {
    font-size: 12px;
    opacity: 0.6;
}

.bt-pathbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bt-path {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.75;
}

.bt-dirs {
    min-height: 110px;
    max-height: 170px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    background: var(--view-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.bt-dirs li {
    padding: 5px 8px;
    border-radius: 6px;
}

.bt-dirs li.dir {
    cursor: pointer;
}

.bt-dirs li.dir:hover {
    background: var(--hover);
}

.bt-dirs li.file,
.bt-dirs li.empty {
    opacity: 0.45;
}
