* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font:
        14px/1.65 system-ui,
        -apple-system,
        "Segoe UI",
        "Microsoft Yahei",
        sans-serif;
    color: #243244;
    background: #f5f7fa;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
.button {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    background: #3e64eb;
    color: white;
    padding: 11px 20px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
button:hover,
.button:hover {
    filter: brightness(1.08);
}
input,
textarea,
select {
    display: block;
    width: 100%;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: #263248;
    font: inherit;
    margin-top: 7px;
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #9fb1f6;
}
label {
    display: block;
    font-weight: 550;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 10px;
}
h2 {
    font-size: 20px;
}
small,
.muted {
    color: #7b8799;
}
small {
    font-size: 12px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #8897af;
}
.brand {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: 1px;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    margin-left: 30px;
}
.admin aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 225px;
    background: white;
    border-right: 1px solid #e6eaf0;
    padding: 35px 23px;
}
.admin aside .eyebrow {
    margin-top: 48px;
}
.nav {
    display: block;
    padding: 12px 18px;
    margin: 8px 0;
    border-radius: 9px;
    color: #748195;
}
.nav.active {
    background: #edf1ff;
    color: #4164d9;
    font-weight: 650;
}
.aside-foot {
    position: absolute;
    bottom: 30px;
    color: #8b97a7;
    font-size: 12px;
}
.aside-foot button {
    margin-top: 12px;
}
.workspace {
    margin-left: 225px;
    padding: 0 42px 40px;
    max-width: 1700px;
}
.workspace header {
    height: 83px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e3e7ed;
    color: #8a94a4;
}
.badge {
    display: inline-block;
    font-size: 11px;
    color: #249c7b;
    background: #e9f7f1;
    border-radius: 6px;
    padding: 4px 9px;
}
.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 26px;
    gap: 20px;
}
.heading p {
    color: #8b96a6;
    margin-bottom: 0;
}
.heading .eyebrow {
    margin-bottom: 10px;
    color: #5c7ac6;
}
.panel {
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 24px;
    background: #fff;
    margin-bottom: 22px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.stats strong {
    font-size: 38px;
    display: block;
    font-weight: 650;
}
.stats small {
    display: block;
    margin-top: 10px;
}
.stats p {
    color: #8490a1;
}
.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 34px 38px;
    border-radius: 15px;
    background: #182945;
    color: #fff;
    margin: 4px 0 28px;
    overflow: hidden;
}
.welcome h2 {
    font-size: 28px;
    margin: 15px 0;
}
.welcome p {
    color: #b1bed1;
}
.welcome .button {
    margin-top: 12px;
}
.orbit {
    font-size: 130px;
    color: #7796ee;
    transform: rotate(-13deg);
    line-height: 1;
    padding-right: 35px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.full {
    grid-column: 1/-1;
}
.check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.check input {
    width: auto;
    margin: 0;
}
.secondary {
    background: #edf1f8;
    color: #51678d;
    padding: 7px 14px;
}
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    background: #eaf0ff;
    border: 1px solid #ccdafb;
    margin: 22px 0;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
}
th {
    color: #8b97a6;
    font-size: 12px;
    font-weight: 500;
}
td,
th {
    padding: 17px 12px;
    border-bottom: 1px solid #edf0f5;
}
td a {
    color: #4a6bda;
}
.login {
    width: min(420px, 90%);
    margin: 10vh auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 18px;
    box-shadow: 0 20px 80px #20355810;
}
.login .brand {
    margin-bottom: 35px;
}
.login label {
    margin-bottom: 18px;
}
.login button {
    width: 100%;
}
.search {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.search input {
    margin: 0;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}
.pagination a {
    color: #6784dd;
}

@media (max-width: 1000px) {
    .workspace {
        padding: 0 22px 30px;
        margin-left: 190px;
    }
    .admin aside {
        width: 190px;
        padding: 30px 15px;
    }
    .stats {
        gap: 12px;
    }
    .orbit {
        display: none;
    }
}
@media (max-width: 700px) {
    .admin aside {
        position: static;
        width: auto;
        padding: 16px;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }
    .admin aside .brand {
        width: 100%;
    }
    .admin aside .eyebrow,
    .aside-foot {
        display: none;
    }
    .nav {
        padding: 8px;
        margin: 0;
    }
    .workspace {
        margin: 0;
        padding: 0 16px;
    }
    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .welcome {
        margin-top: 24px;
        padding: 25px;
    }
    .heading {
        align-items: flex-start;
    }
    h1 {
        font-size: 25px;
    }
    .panel {
        padding: 18px;
    }
}
#collect-progress {
    margin-top: 20px;
    padding: 16px;
    background: #edf1ff;
    border-radius: 8px;
}
button:disabled {
    opacity: 0.5;
    cursor: default;
}

.site-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-editor-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; overflow-y: auto; border: 1px solid #dce3ef; border-radius: 16px; padding: 26px; color: #172b4d; background: #fff; box-shadow: 0 24px 90px #15234240; }
.site-editor-dialog::backdrop { background: #172b4d80; }
.site-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.site-editor-heading h2 { margin: 0; }
.site-editor-open { overflow: hidden; }
@media (max-width: 700px) { .site-editor-dialog { padding: 18px; } }
