.cd-page {
    min-height: 100vh;
    padding: 26px;
    color: #172033;
    background:
        linear-gradient(rgba(90, 132, 177, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 132, 177, .08) 1px, transparent 1px),
        #eaf2fb;
    background-size: 58px 58px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.cd-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d3dfed;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: 0 26px 72px rgba(36, 64, 100, .14);
}

.cd-nav {
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #dbe6f2;
    background: rgba(255, 255, 255, .82);
}

.cd-brand,
.cd-nav-actions,
.cd-nav-actions a {
    display: inline-flex;
    align-items: center;
}

.cd-brand {
    min-width: 0;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.cd-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    background: #fff;
}

.cd-brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cd-brand strong,
.cd-brand small {
    display: block;
}

.cd-brand strong {
    color: #172033;
    font-size: 15px;
    line-height: 1.2;
}

.cd-brand small {
    margin-top: 3px;
    color: #16875d;
    font-size: 10px;
    font-weight: 900;
}

.cd-nav-actions {
    gap: 8px;
}

.cd-nav-actions a {
    min-height: 36px;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #d3e0ee;
    border-radius: 10px;
    color: #4e6379;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.cd-nav-actions a:hover,
.cd-nav-actions a:focus-visible {
    color: #1d5ba9;
    border-color: #b8d0ea;
    background: #f4f8fd;
    outline: 0;
}

.cd-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
}

.cd-copy {
    min-width: 0;
    padding: 54px 58px 52px;
}

.cd-state {
    width: fit-content;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #315f8e;
    font-size: 12px;
    font-weight: 900;
}

.cd-state span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #42d392;
    box-shadow: 0 0 0 5px rgba(66, 211, 146, .14);
}

.cd-copy h1 {
    margin: 0;
    color: #14243a;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: 0;
}

.cd-copy p {
    max-width: 62ch;
    margin: 15px 0 0;
    color: #526b84;
    font-size: 14px;
    line-height: 1.8;
}

.cd-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cd-primary,
.cd-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.cd-primary {
    color: #fff;
    border-color: #245fc8;
    background: linear-gradient(135deg, #2563eb, #16875d);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.cd-primary:hover,
.cd-primary:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    outline: 0;
}

.cd-primary.is-disabled {
    color: #8b99a8;
    border-color: #d3deea;
    background: #edf3fa;
    box-shadow: none;
}

.cd-secondary {
    color: #31516e;
    border-color: #c9d8e9;
    background: #fff;
}

.cd-secondary:hover,
.cd-secondary:focus-visible {
    color: #1d5ba9;
    border-color: #abc6e3;
    background: #f4f8fd;
    transform: translateY(-1px);
    outline: 0;
}

.cd-feature-list {
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d9e5f2;
    border-bottom: 1px solid #d9e5f2;
    list-style: none;
}

.cd-feature-list li {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid #d9e5f2;
}

.cd-feature-list li:nth-child(odd) {
    border-right: 1px solid #d9e5f2;
}

.cd-feature-list li:nth-child(even) {
    padding-left: 16px;
}

.cd-feature-list li:nth-last-child(-n+2) {
    border-bottom: 0;
}

.cd-feature-list i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #c7d9ed;
    border-radius: 10px;
    color: #236bd1;
    background: #edf5ff;
}

.cd-feature-list strong,
.cd-feature-list small {
    display: block;
}

.cd-feature-list strong {
    color: #203653;
    font-size: 13px;
    line-height: 1.35;
}

.cd-feature-list small {
    margin-top: 4px;
    color: #63778d;
    font-size: 11px;
    line-height: 1.55;
}

.cd-panel {
    min-width: 0;
    padding: 34px 30px 30px;
    border-left: 1px solid #dbe6f2;
    background: #fff;
}

.cd-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-os {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid #c9d9eb;
    border-radius: 12px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 20px;
}

.cd-panel-head strong,
.cd-panel-head small {
    display: block;
}

.cd-panel-head strong {
    color: #172033;
    font-size: 15px;
    line-height: 1.35;
}

.cd-panel-head small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.cd-panel-head em {
    margin-left: auto;
    padding: 4px 7px;
    border: 1px solid #b8e4d2;
    border-radius: 8px;
    color: #127250;
    background: #ecfbf4;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.cd-meta {
    margin: 24px 0 0;
    border-top: 1px solid #e2eaf4;
}

.cd-meta div {
    min-height: 43px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2eaf4;
}

.cd-meta dt {
    color: #73849a;
    font-size: 12px;
}

.cd-meta dd {
    margin: 0;
    color: #1f334f;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.cd-note {
    margin-top: 20px;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    border: 1px solid #d8e4f2;
    border-radius: 10px;
    color: #526981;
    background: #f6f9fd;
    font-size: 12px;
    line-height: 1.65;
}

.cd-note i {
    color: #2563eb;
    margin-top: 3px;
}

.cd-steps {
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.cd-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.cd-steps li > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #236bd1;
    background: #edf5ff;
    font-size: 11px;
    font-weight: 900;
}

.cd-steps p {
    margin: 0;
}

.cd-steps strong,
.cd-steps small {
    display: block;
}

.cd-steps strong {
    color: #243b58;
    font-size: 12px;
}

.cd-steps small {
    margin-top: 3px;
    color: #6d7f93;
    font-size: 11px;
    line-height: 1.5;
}

html[data-panda-ui="dark"] .cd-page {
    color: #e8f1fb;
    background:
        linear-gradient(rgba(87, 127, 174, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 127, 174, .08) 1px, transparent 1px),
        #07111f;
}

html[data-panda-ui="dark"] .cd-shell,
html[data-panda-ui="dark"] .cd-panel {
    border-color: #263c55;
    background: #101b2b;
}

html[data-panda-ui="dark"] .cd-nav {
    border-color: #263c55;
    background: #0d1928;
}

html[data-panda-ui="dark"] .cd-copy h1,
html[data-panda-ui="dark"] .cd-brand strong,
html[data-panda-ui="dark"] .cd-panel-head strong,
html[data-panda-ui="dark"] .cd-feature-list strong,
html[data-panda-ui="dark"] .cd-meta dd,
html[data-panda-ui="dark"] .cd-steps strong {
    color: #edf5ff;
}

html[data-panda-ui="dark"] .cd-copy p,
html[data-panda-ui="dark"] .cd-feature-list small,
html[data-panda-ui="dark"] .cd-note,
html[data-panda-ui="dark"] .cd-steps small,
html[data-panda-ui="dark"] .cd-meta dt {
    color: #9fb0c4;
}

html[data-panda-ui="dark"] .cd-nav-actions a,
html[data-panda-ui="dark"] .cd-secondary {
    color: #d7e4f2;
    border-color: #304960;
    background: #132236;
}

html[data-panda-ui="dark"] .cd-feature-list,
html[data-panda-ui="dark"] .cd-feature-list li,
html[data-panda-ui="dark"] .cd-meta,
html[data-panda-ui="dark"] .cd-meta div,
html[data-panda-ui="dark"] .cd-panel {
    border-color: #263c55;
}

html[data-panda-ui="dark"] .cd-feature-list i,
html[data-panda-ui="dark"] .cd-os,
html[data-panda-ui="dark"] .cd-steps li > span {
    color: #86bfff;
    border-color: #315479;
    background: #122944;
}

html[data-panda-ui="dark"] .cd-note {
    border-color: #304960;
    background: #132236;
}

html[data-panda-ui="anime"] .cd-page {
    background:
        linear-gradient(rgba(214, 69, 138, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 69, 138, .06) 1px, transparent 1px),
        #fff5fb;
}

html[data-panda-ui="anime"] .cd-shell,
html[data-panda-ui="anime"] .cd-panel,
html[data-panda-ui="anime"] .cd-nav {
    border-color: #efd0de;
    background: #fffafd;
}

html[data-panda-ui="anime"] .cd-primary {
    border-color: #b93470;
    background: linear-gradient(135deg, #c83b78, #d977a7);
    box-shadow: 0 14px 28px rgba(200, 59, 120, .18);
}

html[data-panda-ui="anime"] .cd-state,
html[data-panda-ui="anime"] .cd-note i {
    color: #b93470;
}

html[data-panda-ui="anime"] .cd-feature-list i,
html[data-panda-ui="anime"] .cd-os,
html[data-panda-ui="anime"] .cd-steps li > span {
    color: #b93470;
    border-color: #e9b9ce;
    background: #fff0f7;
}

@media (max-width: 900px) {
    .cd-page {
        padding: 12px;
    }

    .cd-main {
        grid-template-columns: 1fr;
    }

    .cd-copy {
        padding: 34px 24px 30px;
    }

    .cd-panel {
        border-left: 0;
        border-top: 1px solid #dbe6f2;
    }
}

@media (max-width: 560px) {
    .cd-nav {
        padding: 14px 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .cd-nav-actions {
        width: 100%;
    }

    .cd-nav-actions a {
        flex: 1 1 0;
    }

    .cd-copy h1 {
        font-size: 32px;
    }

    .cd-actions,
    .cd-primary,
    .cd-secondary {
        width: 100%;
    }

    .cd-feature-list {
        grid-template-columns: 1fr;
    }

    .cd-feature-list li,
    .cd-feature-list li:nth-child(even) {
        padding: 14px 0;
        border-right: 0;
    }

    .cd-feature-list li:nth-last-child(2) {
        border-bottom: 1px solid #d9e5f2;
    }

    .cd-panel {
        padding: 26px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-primary,
    .cd-secondary,
    .cd-nav-actions a {
        transition-duration: 1ms;
    }
}
