/* Settings */
.settings-content {
    width: min(1120px, 100%);
}

.inbox-content {
    width: min(920px, 100%);
}

.settings-heading {
    margin: 14px 0 28px;
}

.settings-heading h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.05em;
}

.settings-heading > div > p:last-child {
    max-width: 600px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.share-inbox-panel {
    gap: 14px;
}

.message-inbox-region {
    display: block;
}

.message-inbox-panel {
    gap: 14px;
}

.message-inbox-panel-icon {
    color: #4e63e8;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.message-inbox-list {
    display: grid;
    gap: 9px;
}

.message-inbox-item {
    display: grid;
    min-height: 68px;
    padding: 10px 12px;
    align-items: center;
    gap: 11px;
    grid-template-columns: 42px minmax(0, 1fr) auto 16px;
    color: inherit;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 5%, var(--surface));
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.message-inbox-item:hover,
.message-inbox-item:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
    background: color-mix(in srgb, var(--accent) 9%, var(--surface));
    outline: 0;
    transform: translateY(-1px);
}

.message-inbox-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--profile-color, var(--accent)) 62%, white);
    border-radius: 50%;
    background: var(--profile-color, var(--accent));
    font-size: 13px;
    font-weight: 900;
}

.message-inbox-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-inbox-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.message-inbox-copy strong,
.message-inbox-copy > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-inbox-copy strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.message-inbox-copy > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.message-inbox-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.message-inbox-meta time {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.message-inbox-unread {
    display: inline-flex;
    min-height: 22px;
    padding: 3px 7px;
    align-items: center;
    color: #fff;
    border-radius: 999px;
    background: #ef3f5f;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.message-inbox-chevron {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

@media (max-width: 620px) {
    .message-inbox-item {
        padding: 10px;
        gap: 9px;
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .message-inbox-avatar {
        width: 40px;
        height: 40px;
    }

    .message-inbox-meta time,
    .message-inbox-chevron {
        display: none;
    }
}

.share-invite-list,
.share-notification-list {
    display: grid;
    gap: 9px;
}

.share-invite-item,
.share-notification-item {
    display: grid;
    padding: 12px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fafafe;
}

.share-invite-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.share-invite-item strong,
.share-notification-item strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
}

.share-invite-item span,
.share-notification-item time {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.share-invite-actions,
.share-notification-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-notification-heading {
    justify-content: space-between;
}

.share-notification-item {
    position: relative;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: start;
    max-height: 150px;
    overflow: hidden;
    transition: opacity .5s ease, transform .5s ease, max-height .5s ease, padding .5s ease, border-width .5s ease, margin .5s ease;
}

.share-notification-item.is-dismissing {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -9px;
    border-width: 0;
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(.98);
}

.share-notification-item > span {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: transparent;
}

.share-notification-item.unread > span {
    background: #ef3f5f;
    box-shadow: 0 0 0 4px rgba(239, 63, 95, .12);
}

/* Trash */
.trash-content {
    width: min(1180px, 100%);
}

.trash-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.trash-admin-filter {
    display: grid;
    width: min(360px, 100%);
    margin: 0;
    gap: 6px;
}

.trash-admin-filter label {
    color: #666b7d;
    font-size: 10px;
    font-weight: 700;
}

.trash-admin-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trash-admin-filter input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    color: var(--ink);
    outline: 0;
    border: 1px solid #dfe1e9;
    border-radius: 11px;
    background: #fafafe;
    font-size: 12px;
    transition: .2s ease;
}

.trash-admin-filter input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(101, 119, 255, .1);
}

.trash-admin-filter .settings-secondary-button {
    min-height: 42px;
    white-space: nowrap;
}

.trash-admin-filter-note {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-admin-filter-note.error {
    color: #b2445b;
}

.trash-summary {
    display: grid;
    min-width: 120px;
    padding: 13px 16px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    text-align: right;
}

.trash-summary strong {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
}

.trash-summary span {
    color: var(--muted);
    font-size: 9px;
}

.trash-empty-form {
    margin: 0;
}

.trash-empty-form .settings-danger-button {
    min-height: 44px;
}

.trash-list {
    display: grid;
    gap: 9px;
}

.trash-item {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 42px 13px 13px;
    grid-template-columns: auto minmax(180px, 1fr) 145px auto;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.trash-item.retained {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 58%),
        var(--surface);
}

.trash-item-icon,
.trash-empty > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #8a93ed;
    border-radius: 12px;
    background: #eff1ff;
}

.trash-item-icon svg,
.trash-empty svg {
    width: 19px;
    height: 19px;
}

.trash-item-info,
.trash-item-detail {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.trash-item-info strong,
.trash-item-detail strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-item-info span,
.trash-item-detail span {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-item-info .trash-item-owner {
    color: color-mix(in srgb, var(--accent) 75%, var(--muted));
    font-weight: 800;
}

.trash-item-detail.expiry strong {
    color: #a15362;
}

.trash-item-detail.expiry {
    display: flex;
    position: absolute;
    top: 13px;
    right: 13px;
    min-width: 0;
}

.trash-item-detail.expiry > span {
    display: none;
}

.trash-item-detail.expiry .trash-expiry-countdown {
    --trash-expiry-color: #ffffff;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    align-items: center;
    gap: 5px;
    color: var(--trash-expiry-color);
    border: 1px solid color-mix(in srgb, var(--trash-expiry-color) 36%, rgba(255, 255, 255, .12));
    border-radius: 999px;
    background: color-mix(in srgb, var(--trash-expiry-color) 12%, #151927);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    line-height: 1;
}

.trash-expiry-countdown svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.trash-item.retained .trash-item-detail.expiry strong {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    align-items: center;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    line-height: 1;
}

.trash-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.trash-item-actions form {
    margin: 0;
}

.trash-item-actions .settings-primary-button,
.trash-item-actions .settings-secondary-button,
.trash-item-actions .settings-danger-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 9px;
}

.trash-item-actions svg,
.settings-secondary-button svg {
    width: 13px;
    height: 13px;
}

.trash-empty {
    display: grid;
    min-height: 340px;
    padding: 50px 20px;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: var(--surface);
    text-align: center;
}

.trash-empty h2,
.trash-empty p {
    margin: 0;
}

.trash-empty h2 {
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

.trash-empty p {
    font-size: 11px;
}
/* Compact admin workspace switcher and step-up passcode settings. */
.settings-content details.settings-panel.admin-view-panel {
    padding: 0;
    overflow: clip;
}

.admin-view-summary {
    display: flex;
    min-height: 58px;
    padding: 10px 14px;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.admin-view-summary::-webkit-details-marker {
    display: none;
}

.admin-view-summary .settings-panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.admin-view-summary-copy {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 2px;
}

.admin-view-summary-copy strong {
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
}

.admin-view-summary-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-view-summary-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--muted);
    transition: transform .2s ease;
}

.admin-view-panel[open] .admin-view-summary-chevron {
    transform: rotate(180deg);
}

.admin-view-panel-body {
    padding: 4px 14px 14px;
}

.admin-passcode-settings-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
}

.admin-passcode-settings-form input {
    text-align: center;
    letter-spacing: .22em;
}

.admin-passcode-settings-form .settings-primary-button {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 760px) {
    .admin-passcode-settings-form {
        grid-template-columns: 1fr;
    }

    .admin-passcode-settings-form .settings-primary-button {
        width: 100%;
    }
}
