:root {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #121827;
    background: #f4f6f8;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f4f6f8;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(72, 93, 255, .08),
            transparent 32rem
        ),
        #f4f6f8;
}

button {
    font: inherit;
}

.app {
    width: min(680px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(24px, env(safe-area-inset-top))
        18px
        max(42px, env(safe-area-inset-bottom));
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.brand-logo {
    display: block;
    width: 176px;
    height: auto;
}

.product-name {
    color: #656d7d;
    font-size: 14px;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}

.app-icon-wrap {
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 20px;
    background: #0b1020;
    box-shadow:
        0 14px 35px rgba(11, 16, 32, .18);
}

.app-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyebrow {
    margin: 0 0 7px;
    color: #71798a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

h1 {
    max-width: 490px;
    margin: 0;
    color: #0b1020;
    font-size: clamp(29px, 7vw, 43px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.intro {
    max-width: 530px;
    margin: 14px 0 0;
    color: #5a6373;
    font-size: 16px;
    line-height: 1.55;
}

.card {
    margin-bottom: 15px;
    padding: 22px;
    border: 1px solid #e1e5eb;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 8px 30px rgba(20, 30, 55, .055);
}

.card.quiet {
    box-shadow: none;
}

.card h2 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    letter-spacing: -.02em;
}

.card-copy {
    margin: 10px 0 18px;
    color: #646d7d;
    line-height: 1.55;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.state-pill {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef1f5;
    color: #5f6878;
    font-size: 12px;
    font-weight: 800;
}

.state-pill[data-kind="success"] {
    background: #e9f8ef;
    color: #167344;
}

.state-pill[data-kind="warning"] {
    background: #fff6db;
    color: #8a6113;
}

.state-pill[data-kind="error"] {
    background: #fdecec;
    color: #9c2c2c;
}

.status {
    margin: 18px 0;
    padding: 13px 14px;
    border-radius: 12px;
    background: #f1f3f6;
    color: #3d4655;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.status[data-kind="success"] {
    background: #ebf8f0;
    color: #17683f;
}

.status[data-kind="warning"] {
    background: #fff8e5;
    color: #795912;
}

.status[data-kind="error"] {
    background: #fdf0f0;
    color: #922e2e;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #d2d7df;
    border-radius: 11px;
    background: #fff;
    color: #151b27;
    cursor: pointer;
    font-weight: 750;
}

.button.primary {
    border-color: #0b1020;
    background: #0b1020;
    color: #fff;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: default;
    opacity: .5;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
}

.settings-row:last-child {
    border-bottom: 0;
}

.settings-row strong {
    display: block;
    margin-bottom: 3px;
    color: #171d29;
    font-size: 14px;
}

.settings-row span:not(.setting-value) {
    display: block;
    color: #747c8a;
    font-size: 12px;
}

.setting-value {
    color: #343c4a;
    font-size: 13px;
    font-weight: 800;
}

.app-footer {
    padding: 12px 4px 0;
    color: #8a919d;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 520px) {

    .app {
        padding-left: 15px;
        padding-right: 15px;
    }

    .brand-logo {
        width: 158px;
    }

    .hero {
        grid-template-columns: 58px 1fr;
        gap: 15px;
    }

    .app-icon-wrap {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .card {
        padding: 18px;
    }

    .actions {
        display: grid;
    }

    .button {
        width: 100%;
    }
}


/* =========================================================
   ASTRICODE EDITORIAL · V13 HEADER
   ========================================================= */

.app {
    background:
        linear-gradient(
            to bottom,
            #0b1020 0,
            #0b1020 118px,
            transparent 118px
        );
}

.app-header {
    margin:
        0
        -18px
        34px;
    padding:
        10px
        18px
        22px;
    background: #0b1020;
}

.brand-logo {
    width: 182px;
}

.product-name {
    color: rgba(255, 255, 255, .82);
}

.hero {
    display: block;
    margin-bottom: 28px;
}

.hero .eyebrow {
    margin-bottom: 9px;
}

.hero h1 {
    max-width: 560px;
}

.hero .intro {
    max-width: 555px;
}

@media (max-width: 520px) {

    .app-header {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .brand-logo {
        width: 164px;
    }

    .hero {
        display: block;
    }
}
