html.nc-ui-wechat {
    --wx-green: #07c160;
    --wx-green-dark: #06ad56;
    --wx-bubble-me: #95ec69;
    --wx-bubble-you: #ffffff;
    --wx-chat-bg: #ededed;
    --wx-list-bg: #ffffff;
    --wx-bar: #ededed;
    --wx-unread: #fa5151;
    --wx-text: #111111;
    --wx-muted: #888888;
    --wx-line: #e5e5e5;
    --wx-tab: #f7f7f7;
    --wx-rail: #2e2e2e;
}

@media (prefers-color-scheme: dark) {
    html.nc-ui-wechat {
        --wx-bubble-me: #3eb575;
        --wx-bubble-you: #2c2c2c;
        --wx-chat-bg: #111111;
        --wx-list-bg: #1c1c1e;
        --wx-bar: #1c1c1e;
        --wx-text: #e8eaed;
        --wx-muted: #8e8e93;
        --wx-line: #2c2c2e;
        --wx-tab: #1c1c1e;
        --wx-rail: #1c1c1e;
    }

    html.nc-ui-wechat .nc-mail-map-links a,
    html.nc-ui-wechat .nc-mail-map-links a:visited {
        color: #8ec8ff;
    }

    html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-map-links a,
    html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-map-links a:visited {
        color: #063a70;
    }
}

html.nc-ui-classic .nc-wechat-only,
html.nc-ui-wechat .nc-classic-only {
    display: none !important;
}

html.nc-wx-app,
html.nc-wx-app body {
    height: 100%;
    min-height: 100dvh;
    background: var(--wx-chat-bg);
}

html.nc-wx-app .nc-navbar {
    display: none !important;
}

html.nc-wx-app .nc-main,
html.nc-wx-app .nc-mail-main {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

html.nc-ui-wechat.nc-logged-in .nc-main {
    padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
}

html.nc-wx-app .nc-mail-main {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
}

html.nc-wx-app .nc-mail-main.has-thread {
    padding-bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

html.nc-wx-app .nc-mail-main > .alert,
html.nc-wx-app main > .alert {
    margin: 0.65rem 0.85rem;
    border-radius: 0.4rem;
}

html.nc-ui-wechat .nc-wx-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.45rem 0.85rem;
    background: var(--wx-bar);
    color: var(--wx-text);
    border-bottom: 1px solid var(--wx-line);
    flex-shrink: 0;
}

html.nc-ui-wechat .nc-wx-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

html.nc-ui-wechat .nc-wx-back,
html.nc-ui-wechat .nc-wx-plus {
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
}

html.nc-ui-wechat .nc-mail {
    display: flex;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

html.nc-ui-wechat .nc-mail.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    flex-wrap: nowrap;
    align-items: stretch;
}

html.nc-ui-wechat .nc-mail-list-col,
html.nc-ui-wechat .nc-mail-thread-col {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

html.nc-ui-wechat .nc-mail-list-col {
    width: 100%;
    max-width: 100%;
    background: var(--wx-list-bg);
    border-right: 1px solid var(--wx-line);
}

html.nc-ui-wechat #compose-panel {
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: var(--wx-list-bg);
}

html.nc-ui-wechat .nc-mail-search {
    padding: 0.55rem 0.75rem 0.25rem;
    background: var(--wx-list-bg);
}

html.nc-ui-wechat .nc-mail-search .form-control {
    background: var(--wx-chat-bg);
    border: 0;
    border-radius: 0.4rem;
    text-align: center;
}

html.nc-ui-wechat .nc-mail-search .form-control:focus {
    text-align: left;
}

html.nc-ui-wechat .nc-mail-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--wx-list-bg);
}

html.nc-ui-wechat .nc-mail-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-color: var(--wx-line);
    background: var(--wx-list-bg);
    color: var(--wx-text);
}

html.nc-ui-wechat .nc-mail-list .list-group-item.active {
    background: var(--wx-chat-bg);
    color: var(--wx-text);
}

html.nc-ui-wechat .nc-mail-list .nc-mail-row {
    flex: 1;
    min-width: 0;
}

html.nc-ui-wechat .nc-mail-list .nc-unread-badge {
    background: var(--wx-unread) !important;
    color: #fff !important;
    border-radius: 999px;
    min-width: 1.15rem;
}

html.nc-ui-wechat .nc-star {
    display: none;
}

html.nc-ui-wechat .nc-mail-thread {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--wx-chat-bg);
}

html.nc-ui-wechat .nc-mail-thread .card-header,
html.nc-ui-wechat .nc-mail-thread .card-footer {
    background: var(--wx-bar);
    border-color: var(--wx-line);
}

html.nc-ui-wechat .nc-mail-thread .card-footer {
    padding: 0;
    flex: 0 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
}

html.nc-ui-wechat .nc-mail-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--wx-chat-bg);
    padding: 0.85rem 0.75rem calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

html.nc-ui-wechat .nc-mail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

html.nc-ui-wechat .nc-mail-item.is-mine {
    flex-direction: row-reverse;
}

html.nc-ui-wechat .nc-mail-item.is-recalled {
    justify-content: center;
}

html.nc-ui-wechat .nc-mail-stack {
    display: flex;
    flex-direction: column;
    max-width: min(78%, 28rem);
}

html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-stack {
    align-items: flex-end;
}

html.nc-ui-wechat .nc-mail-who {
    display: none;
    font-size: 0.75rem;
    color: var(--wx-muted);
    margin-bottom: 0.2rem;
}

html.nc-ui-wechat .is-group .nc-mail-item:not(.is-mine) .nc-mail-who,
html.nc-ui-wechat .is-self .nc-mail-who {
    display: block;
}

html.nc-ui-wechat .nc-mail-bubble {
    background: var(--wx-bubble-you);
    color: var(--wx-text);
    border-radius: 0.25rem 0.85rem 0.85rem 0.85rem;
    padding: 0.55rem 0.7rem;
}

html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-bubble {
    background: var(--wx-bubble-me);
    color: #111;
    border-radius: 0.85rem 0.25rem 0.85rem 0.85rem;
}

html.nc-ui-wechat .nc-mail-location {
    background: var(--wx-bubble-you);
    color: var(--wx-text);
}

html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-location {
    background: var(--wx-bubble-me);
    color: #111;
}

html.nc-ui-wechat .nc-mail-map-links a,
html.nc-ui-wechat .nc-mail-map-links a:visited {
    color: #10aeff;
    font-weight: 600;
    text-decoration: underline;
}

html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-map-links a,
html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-map-links a:visited {
    color: #0560b0;
}

html.nc-ui-wechat .nc-mail-quote,
.nc-mail-quote {
    font-size: 0.8rem;
    color: var(--wx-muted, #888);
    border-left: 3px solid var(--wx-green, #07c160);
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.35rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 0 0.3rem 0.3rem 0;
}

html.nc-ui-wechat .nc-mail-quote-bar,
.nc-mail-quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: var(--wx-bar, #ededed);
    font-size: 0.8rem;
}

html.nc-ui-wechat .nc-mail-voice,
.nc-mail-voice {
    background: var(--wx-bubble-you, #fff);
    border-radius: 0.25rem 0.85rem 0.85rem 0.85rem;
    padding: 0.45rem 0.75rem;
}

html.nc-ui-wechat .nc-mail-item.is-mine .nc-mail-voice {
    background: var(--wx-bubble-me, #95ec69);
    color: #111;
}

html.nc-ui-wechat .nc-mail-audio,
.nc-mail-audio {
    max-width: 14rem;
}

html.nc-ui-wechat .nc-mail-more,
.nc-mail-more {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--wx-muted, #888);
    padding: 0.65rem 0;
    font-size: 0.85rem;
}

html.nc-ui-wechat .nc-mail-search-hits {
    padding: 0.35rem 0.75rem 0.75rem;
    background: var(--wx-list-bg);
}

html.nc-ui-wechat .nc-mail-search-hit {
    display: block;
    padding: 0.45rem 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--wx-line);
}

html.nc-ui-wechat .nc-pin {
    color: var(--wx-muted);
    margin-right: 0.2rem;
}

html.nc-ui-wechat .nc-mail-day {
    background: rgba(0, 0, 0, 0.08);
    color: var(--wx-muted);
    display: inline-block;
    width: auto;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
}

html.nc-ui-wechat .nc-mail-receipt.is-unread {
    color: var(--wx-muted);
    font-weight: 400;
}

html.nc-ui-wechat .nc-peer-receipt {
    color: var(--wx-muted);
}

html.nc-ui-wechat .nc-wx-empty-thread {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    color: var(--wx-muted);
}

html.nc-ui-wechat .nc-wx-composer .form-control,
html.nc-ui-wechat .nc-wx-composer textarea {
    background: var(--wx-list-bg);
    color: var(--wx-text);
    border-color: var(--wx-line);
}

html.nc-ui-wechat .nc-wx-inputbar {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: var(--wx-bar);
}

html.nc-ui-wechat .nc-wx-plusbar {
    width: 2.15rem;
    height: 2.15rem;
    border: 1.5px solid var(--wx-text);
    border-radius: 50%;
    background: transparent;
    color: var(--wx-text);
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

html.nc-ui-wechat .nc-wx-text {
    flex: 1;
    min-height: 2.15rem;
    max-height: 7.5rem;
    border: 0;
    border-radius: 0.35rem;
    padding: 0.45rem 0.65rem;
    background: var(--wx-list-bg);
    color: var(--wx-text);
    resize: none;
    line-height: 1.35;
}

html.nc-ui-wechat .nc-wx-text:focus {
    outline: none;
}

html.nc-ui-wechat .nc-wx-send {
    background: var(--wx-green);
    border: 0;
    border-radius: 0.25rem;
    color: #fff;
    padding: 0.35rem 0.75rem;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 0.1rem;
}

html.nc-ui-wechat .nc-wx-send:hover {
    background: var(--wx-green-dark);
    color: #fff;
}

html.nc-ui-wechat .nc-wx-attach {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem 0.5rem;
    padding: 0.85rem 0.75rem 1.1rem;
    background: var(--wx-bar);
    border-top: 1px solid var(--wx-line);
}

html.nc-ui-wechat .nc-wx-attach-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--wx-text);
    font-size: 0.75rem;
    padding: 0;
}

html.nc-ui-wechat .nc-wx-attach-item i {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.7rem;
    background: var(--wx-list-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

html.nc-ui-wechat .nc-wx-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

html.nc-ui-wechat .nc-wx-sheet.d-none {
    display: none !important;
}

html.nc-ui-wechat .nc-wx-sheet-box {
    width: 100%;
    max-width: 28rem;
}

html.nc-ui-wechat .nc-wx-sheet-panel {
    background: var(--wx-list-bg);
    border-radius: 0.75rem;
    overflow: hidden;
}

html.nc-ui-wechat .nc-wx-sheet-item {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--wx-line);
    padding: 0.95rem 1rem;
    text-align: center;
    color: var(--wx-text);
    text-decoration: none;
    font-size: 1.05rem;
}

html.nc-ui-wechat .nc-wx-sheet-panel .nc-wx-sheet-item:last-child,
html.nc-ui-wechat .nc-wx-sheet-panel form:last-child .nc-wx-sheet-item {
    border-bottom: 0;
}

html.nc-ui-wechat .nc-wx-sheet-cancel {
    margin-top: 0.5rem;
    background: var(--wx-list-bg);
    border-radius: 0.75rem;
    font-weight: 600;
    border-bottom: 0;
}

html.nc-ui-wechat .nc-wx-sheet-title {
    text-align: center;
    padding: 0.8rem 1rem 0.45rem;
    font-weight: 600;
}

html.nc-ui-wechat .nc-wx-sheet-empty {
    padding: 0.85rem 1rem 1rem;
    color: var(--wx-muted);
    text-align: center;
}

html.nc-ui-wechat .nc-wx-pick {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--wx-line);
    margin: 0;
}

html.nc-ui-wechat .nc-wx-rename {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.9rem 0.85rem;
}

html.nc-ui-wechat .nc-wx-rename input {
    border: 0;
    background: var(--wx-chat-bg);
    border-radius: 0.35rem;
    padding: 0.45rem 0.6rem;
    color: var(--wx-text);
}

html.nc-ui-wechat .nc-wx-view-contacts,
html.nc-ui-wechat .nc-wx-view-me {
    display: none;
    background: var(--wx-chat-bg);
    flex: 1;
    min-height: 0;
    overflow: auto;
}

html.nc-ui-wechat .nc-mail-main.wx-tab-contacts .nc-mail,
html.nc-ui-wechat .nc-mail-main.wx-tab-me .nc-mail {
    display: none !important;
}

html.nc-ui-wechat .nc-mail-main.wx-tab-contacts .nc-wx-view-contacts,
html.nc-ui-wechat .nc-mail-main.wx-tab-me .nc-wx-view-me {
    display: block;
}

html.nc-ui-wechat .nc-wx-contacts,
html.nc-ui-wechat .nc-wx-me {
    background: var(--wx-chat-bg);
    min-height: calc(100dvh - 6.6rem);
}

html.nc-ui-wechat .nc-wx-cell-label {
    padding: 0.55rem 0.9rem 0.3rem;
    color: var(--wx-muted);
    font-size: 0.8rem;
}

html.nc-ui-wechat .nc-wx-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: var(--wx-list-bg);
    border-bottom: 1px solid var(--wx-line);
    color: inherit;
    text-decoration: none;
    margin: 0;
}

html.nc-ui-wechat .nc-wx-cell:last-child {
    border-bottom: 0;
}

html.nc-ui-wechat a.nc-wx-cell:hover {
    color: inherit;
    background: var(--wx-chat-bg);
}

html.nc-ui-wechat .nc-wx-cell-main {
    flex: 1;
    min-width: 0;
}

html.nc-ui-wechat .nc-wx-add {
    padding: 0.9rem;
    background: var(--wx-list-bg);
}

html.nc-ui-wechat .nc-wx-me-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 0.9rem;
    background: var(--wx-list-bg);
    margin-bottom: 0.6rem;
}

html.nc-ui-wechat .nc-wx-me-name {
    font-size: 1.2rem;
    font-weight: 600;
}

html.nc-ui-wechat .nc-avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
}

html.nc-ui-wechat .nc-wx-logout {
    border: 0;
    background: transparent;
    color: #fa5151;
    width: 100%;
    text-align: left;
    padding: 0;
}

html.nc-ui-wechat .nc-wx-fold {
    background: var(--wx-list-bg);
}

html.nc-ui-wechat .nc-wx-fold > summary {
    list-style: none;
}

html.nc-ui-wechat .nc-wx-fold > summary::-webkit-details-marker {
    display: none;
}

html.nc-ui-wechat .nc-wx-fold-body {
    display: none;
    padding: 0.75rem 0.75rem 1.5rem;
    background: var(--wx-chat-bg);
}

html.nc-ui-wechat .nc-wx-me:has(.nc-wx-fold[open]) ~ .nc-wx-fold-body {
    display: block;
}

html.nc-ui-classic .nc-wx-fold-body {
    display: block;
}

html.nc-ui-wechat .nc-wx-tabbar,
html.nc-ui-wechat .nc-wx-rail {
    display: none;
}

html.nc-ui-wechat .nc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.35rem;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 1rem;
}

html.nc-ui-classic .nc-avatar {
    display: none;
}

html.nc-ui-wechat .nc-wx-tab-badge {
    position: absolute;
    top: -0.15rem;
    right: 0.55rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--wx-unread);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    html.nc-ui-wechat .nc-wx-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--wx-tab);
        border-top: 1px solid var(--wx-line);
        justify-content: space-around;
        padding: 0.35rem 0 calc(0.45rem + env(safe-area-inset-bottom, 0px));
        z-index: 20;
    }

    html.nc-ui-wechat .nc-wx-tabbar a {
        position: relative;
        color: var(--wx-muted);
        text-decoration: none;
        font-size: 0.75rem;
        text-align: center;
        min-width: 4.5rem;
    }

    html.nc-ui-wechat .nc-wx-tabbar a.is-on,
    html.nc-ui-wechat .nc-wx-tabbar a:hover {
        color: var(--wx-green);
    }

    html.nc-ui-wechat .nc-wx-tabbar i {
        display: block;
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }

    html.nc-wx-app .nc-mail-main.has-thread ~ .nc-wx-tabbar,
    html.nc-wx-app .has-thread ~ .nc-wx-tabbar {
        display: none;
    }

    html.nc-ui-wechat .nc-mail-main.has-thread .nc-mail-list-col,
    html.nc-ui-wechat .nc-mail-main:not(.has-thread) .nc-mail-thread-col {
        display: none;
    }

    html.nc-wx-app .nc-mail-main.has-thread .nc-mail,
    html.nc-wx-app .nc-mail-main.has-thread .nc-mail-thread-col,
    html.nc-wx-app .nc-mail-main.has-thread .nc-mail-thread {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
    }
}

@media (min-width: 992px) {
    html.nc-ui-wechat.nc-logged-in .nc-wx-rail {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4.25rem;
        flex-direction: column;
        align-items: center;
        padding-top: 1.4rem;
        gap: 1.35rem;
        background: var(--wx-rail);
        z-index: 40;
    }

    html.nc-ui-wechat.nc-logged-in .nc-wx-rail a {
        position: relative;
        color: #b0b0b0;
        text-decoration: none;
        font-size: 0.7rem;
        text-align: center;
        width: 100%;
    }

    html.nc-ui-wechat.nc-logged-in .nc-wx-rail a.is-on,
    html.nc-ui-wechat.nc-logged-in .nc-wx-rail a:hover {
        color: var(--wx-green);
    }

    html.nc-ui-wechat.nc-logged-in .nc-wx-rail i {
        display: block;
        font-size: 1.45rem;
        margin-bottom: 0.15rem;
    }

    html.nc-ui-wechat.nc-logged-in .nc-wx-rail .nc-wx-tab-badge {
        right: 0.55rem;
        top: -0.2rem;
    }

    html.nc-ui-wechat.nc-logged-in body {
        padding-left: 4.25rem;
    }

    html.nc-ui-wechat.nc-logged-in .nc-mail-main,
    html.nc-wx-app .nc-mail-main {
        padding-bottom: 0;
        min-height: 0;
        height: 100dvh;
        max-height: 100dvh;
        height: 100svh;
        max-height: 100svh;
        overflow: hidden;
    }

    html.nc-ui-wechat .nc-mail-list-col {
        flex: 0 0 22rem;
        width: 22rem;
        max-width: 22rem;
    }

    html.nc-ui-wechat .nc-mail-thread-col {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    html.nc-ui-wechat .nc-wx-back {
        visibility: hidden;
    }
}

.nc-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.nc-install-sheet.d-none,
.nc-install-sheet[hidden] {
    display: none !important;
}

.nc-install-sheet-box {
    width: 100%;
    max-width: 28rem;
    padding: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.nc-install-sheet-panel {
    background: #fff;
    color: #111;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem 0.85rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.nc-install-title {
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.nc-install-text {
    margin: 0 0 0.85rem;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.45;
}

.nc-install-ok {
    width: 100%;
    border: 0;
    background: #07c160;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .nc-install-sheet-panel {
        background: #2c2c2e;
        color: #f2f2f7;
    }

    .nc-install-text {
        color: #c7c7cc;
    }
}
