@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("./webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("./webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("./webfonts/fa-brands-400.woff2") format("woff2");
}

:root {
    --bg: #ece7dc;
    --bg-soft: #ddd5c6;
    --panel: rgba(255, 252, 246, 0.92);
    --panel-strong: #f5eee3;
    --panel-alt: #ece3d6;
    --line: rgba(120, 113, 108, 0.16);
    --line-strong: rgba(120, 113, 108, 0.28);
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #22c55e;
    --primary-strong: #16a34a;
    --danger: #ef4444;
    --warn: #f59e0b;
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #ece7dc;
    color: var(--text);
}

a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #dbeafe;
}

h1,
h2,
h3,
h4,
th,
.btn,
.tag,
.badge,
.eyebrow,
.head-pill,
.stat-box strong,
.stat-panel strong {
    font-family: Consolas, "Courier New", monospace;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

.site-shell,
.install-body,
.login-body {
    min-height: 100vh;
}

.site-shell {
    min-height: auto;
}

.admin-body {
    min-height: auto;
}

.wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.page-wrap {
    padding-bottom: 8px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.front-body .topbar,
.login-panel,
.auth-copy,
.panel,
.hero-card,
.stat-panel,
.modal-box {
    backdrop-filter: blur(18px);
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 10;
    width: min(1320px, calc(100% - 32px));
    margin: 10px auto 10px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 246, 0.92);
    box-shadow: none;
}

.topbar-inner,
.panel-head,
.hero-card,
.mini-card-top,
.page-head,
.modal-actions,
.actions,
.install-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.topbar-inner {
    padding: 14px 22px;
}

.brand-block h1 {
    margin: 8px 0 4px;
    font-size: 30px;
    line-height: 1.1;
}

.brand-block p,
.auth-copy p,
.head-pill,
.stat-box span,
.stat-panel span,
label,
td,
.mini-card p,
.panel p {
    color: var(--muted);
}

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

.nav a,
.btn,
.panel-head h1,
.panel-head h2,
.panel-head h3,
.eyebrow,
.head-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    cursor: pointer;
}

.nav a {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.92);
    color: var(--text);
}

.nav a:hover {
    border-color: rgba(34, 197, 94, 0.36);
    background: rgba(34, 197, 94, 0.1);
}

.hero-card,
.panel,
.login-panel,
.auth-copy,
.stat-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-card {
    margin-bottom: 6px;
    align-items: center;
    gap: 8px;
}

.hero-card h2 {
    font-size: 20px;
    margin: 0;
}

.hero-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-stats,
.grid-two,
.grid-three,
.filter-grid,
.form-grid,
.install-status-grid,
.auth-shell {
    display: grid;
    gap: 16px;
}

.hero-stats {
    width: min(320px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.grid-two {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    margin-bottom: 22px;
}

.home-summary-grid {
    grid-template-columns: minmax(0, var(--summary-left, 53%)) minmax(0, var(--summary-right, 47%));
    align-items: stretch;
}

.summary-panel {
    height: 100%;
}

.prediction-summary-panel {
    height: auto;
    align-self: start;
}


.grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.sync-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 16px;
}

.mini-sync-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 236, 225, 0.96));
}

.mini-sync-form strong {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    white-space: nowrap;
}

.mini-sync-form input {
    grid-column: 2 / 3;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
}

.mini-sync-form .btn {
    grid-column: 2 / 3;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
}

.mini-sync-form input + .btn {
    grid-column: 3 / 4;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.zodiac-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
    cursor: pointer;
    overflow: hidden;
}

.zodiac-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zodiac-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--text);
}

.zodiac-option input:checked + span {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-weight: 700;
}

.selection-preview {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(34, 197, 94, 0.16);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--muted);
}

.compact-draw-manage-panel .pagination-info {
    font-size: 12px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compact-draw-manage-panel .pagination-links .btn {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
}

.draw-detail-table {
    table-layout: auto;
    width: 100%;
}

.draw-detail-page {
    padding: 14px 16px;
}

.draw-detail-page .panel-head {
    margin-bottom: 10px;
}

.draw-detail-page .panel-head h2 {
    font-size: 18px;
}

.draw-detail-page th,
.draw-detail-page td {
    padding: 10px 12px;
}

.draw-detail-table th:nth-child(1),
.draw-detail-table td:nth-child(1) {
    white-space: nowrap;
}

.draw-detail-table th:nth-child(2),
.draw-detail-table td:nth-child(2) {
    white-space: nowrap;
}

.draw-detail-table th:nth-child(3),
.draw-detail-table td:nth-child(3) {
    width: 42%;
}

.draw-detail-table th:nth-child(4),
.draw-detail-table td:nth-child(4) {
    width: 36%;
}

.特码波色 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    margin-left: 4px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 12px;
}

.wave-red {
    color: #1f2937;
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(248, 113, 113, 0.45);
}

.wave-blue {
    color: #1f2937;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
}

.wave-green {
    color: #1f2937;
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(74, 222, 128, 0.45);
}

.zodiac-wave-cell {
    line-height: 1.8;
}

.生肖波色 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    margin: 2px 2px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
}

.prediction-detail-page .生肖波色 {
    font-size: 13px;
}

.result-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
}

.result-correct {
    color: #1f2937;
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
}

.result-error {
    color: #1f2937;
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
}

.result-pending {
    color: #1f2937;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
}

[data-async-container] {
    transition: opacity 0.2s ease;
}

[data-async-container].is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.filter-grid,
.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.filter-grid .full-row {
    grid-column: auto;
}

.filter-grid .form-actions {
    align-self: end;
    flex-wrap: nowrap;
}

.one-col {
    grid-template-columns: 1fr;
}

.full-row {
    grid-column: 1 / -1;
}

.panel-head {
    margin-bottom: 16px;
}

.panel-head h2,
.panel-head h3,
.page-head h1 {
    margin-bottom: 0;
}

.panel-head a {
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.86);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

thead {
    background: rgba(245, 238, 227, 0.96);
}

th,
td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.text-center {
    text-align: center;
}

.dual-line-cell div {
    font-weight: 600;
}

.dual-line-cell small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.compact-home-table th,
.compact-home-table td {
    padding: 10px 10px;
}

.compact-home-table th:not(:first-child),
.compact-home-table td:not(:first-child) {
    text-align: center;
}

.compact-home-table .dual-line-cell small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
}

.compact-prediction-table th,
.compact-prediction-table td {
    padding: 8px 8px;
    font-size: 13px;
}

.tight-prediction-table th,
.tight-prediction-table td {
    padding: 7px 6px;
    font-size: 12px;
}

.compact-prediction-table {
    min-width: 0;
    table-layout: fixed;
}

.compact-prediction-table th:nth-child(1),
.compact-prediction-table td:nth-child(1) {
    width: 9%;
    white-space: nowrap;
}

.compact-prediction-table th:not(:first-child),
.compact-prediction-table td:not(:first-child) {
    text-align: center;
}

.compact-prediction-table th:nth-child(2),
.compact-prediction-table td:nth-child(2) {
    width: 35% !important;
    max-width: 35% !important;
    line-height: 1.2;
    word-break: break-all;
}

.tight-prediction-table th:nth-child(2),
.tight-prediction-table td:nth-child(2) {
    width: 35% !important;
    max-width: 35% !important;
}

.compact-prediction-table th:nth-child(3),
.compact-prediction-table td:nth-child(3) {
    width: 10%;
    white-space: nowrap;
}

.compact-prediction-table th:nth-child(4),
.compact-prediction-table td:nth-child(4) {
    width: 10%;
    white-space: nowrap;
}

.compact-prediction-table th:nth-child(5),
.compact-prediction-table td:nth-child(5) {
    width: 8%;
    white-space: nowrap;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(34, 197, 94, 0.06);
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

input,
textarea,
button {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
}

input,
textarea {
    background: rgba(255, 252, 246, 0.96);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    background: rgba(255, 255, 255, 1);
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.4);
    cursor: pointer;
    opacity: 0.95;
}

.date-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
}

.date-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    cursor: pointer;
    box-shadow: none;
}

.date-trigger:hover {
    background: rgba(34, 197, 94, 0.18);
    transform: none;
    opacity: 1;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #03120a;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.22);
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.is-loading {
    position: relative;
    pointer-events: none;
    padding-left: 36px;
}

.btn.is-loading::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(3, 18, 10, 0.28);
    border-top-color: currentColor;
    border-radius: 999px;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-light {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: none;
}

.compact-link-btn {
    min-height: 30px;
    padding: 4px 14px;
    border-radius: 12px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
}

.full-btn {
    width: 100%;
}

.badge,
.tag,
.head-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    border: 1px solid transparent;
}

.badge,
.tag {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.2);
}

.head-pill {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.16);
}

.badge-success {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.badge-warn {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.status-correct {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
    border-color: rgba(74, 222, 128, 0.35);
}

.status-error {
    background: rgba(220, 38, 38, 0.16);
    color: #991b1b;
    border-color: rgba(248, 113, 113, 0.35);
}

.status-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border-color: rgba(251, 191, 36, 0.35);
}

.tags,
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mini-card {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 236, 225, 0.96));
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-size: 16px;
    margin-bottom: 14px;
}

.mini-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.full-card {
    width: 100%;
}

.stat-box,
.stat-panel {
    position: relative;
    overflow: hidden;
}

.stat-box::after,
.stat-panel::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 68%);
}

.stat-box {
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 252, 246, 0.9);
}

.stat-box strong,
.stat-panel strong {
    display: block;
    margin-bottom: 0;
    font-size: 20px;
    color: var(--text);
}

.stat-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.stat-panel .stat-icon {
    margin-bottom: 0;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 13px;
}

.stat-panel span {
    white-space: nowrap;
    font-size: 12px;
}

.stat-box .stat-icon {
    margin-bottom: 0;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 13px;
}

.stat-box span {
    white-space: nowrap;
    font-size: 12px;
}

.admin-main {
    padding: 0;
}

.admin-content {
    max-width: 1360px;
    margin: 0 auto;
}

.admin-topbar {
    margin-bottom: 6px;
    box-shadow: none;
}

.admin-topbar-inner {
    align-items: center;
    padding: 10px 18px;
}

.admin-topbar .brand-block h1 {
    font-size: 24px;
    margin: 0;
}

.admin-topbar .nav a {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
}

.dashboard-grid-three {
    margin-bottom: 10px;
}

.dashboard-grid-two {
    margin-bottom: 6px;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    border-color: rgba(34, 197, 94, 0.36);
    background: rgba(34, 197, 94, 0.1);
}

.page-head {
    margin-bottom: 18px;
}

.form-panel {
    max-width: 980px;
}

.statistics-input-panel {
    max-width: none;
    margin-bottom: 16px;
    margin-top: 16px;
}

.statistics-input-panel,
.statistics-output-panel,
.statistics-result-panel {
    padding: 12px 14px;
}

.statistics-input-panel .panel-head,
.statistics-output-panel .panel-head,
.statistics-result-panel .panel-head {
    margin-bottom: 8px;
}

.statistics-input-panel .panel-head h2,
.statistics-output-panel .panel-head h2,
.statistics-result-panel .panel-head h2 {
    font-size: 18px;
}

.statistics-result-panel {
    margin-top: 16px;
}

.statistics-output-panel {
    max-width: none;
    margin-top: 16px;
}

.statistics-input-panel input,
.statistics-output-panel input,
.statistics-result-panel input {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}

.statistics-input-panel .btn,
.statistics-output-panel .btn,
.statistics-result-panel .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.statistics-result-panel th,
.statistics-result-panel td {
    padding: 8px 8px;
    font-size: 12px;
}

.compact-prediction-manage-panel {
    padding: 14px 16px;
}

.compact-prediction-manage-panel .panel-head {
    margin-bottom: 10px;
}

.compact-prediction-manage-panel .panel-head h2 {
    font-size: 20px;
}

.compact-prediction-manage-panel .panel-head .btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
}

.compact-prediction-manage-panel .filter-grid {
    gap: 10px;
}

.compact-prediction-manage-panel th,
.compact-prediction-manage-panel td {
    padding: 10px 10px;
    font-size: 12px;
}

.compact-prediction-manage-panel th:not(:first-child),
.compact-prediction-manage-panel td:not(:first-child) {
    text-align: center;
}

.compact-prediction-manage-panel .actions .btn {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 12px;
}

.compact-prediction-manage-panel .actions {
    justify-content: center;
}

.compact-draw-manage-panel {
    padding: 10px 12px;
}

.compact-draw-manage-panel .panel-head {
    margin-bottom: 8px;
}

.compact-draw-manage-panel .panel-head h2 {
    font-size: 20px;
}

.compact-draw-manage-panel .panel-head .btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
}

.compact-draw-manage-panel .sync-grid,
.compact-draw-manage-panel .filter-grid {
    gap: 8px;
}

.compact-draw-manage-panel th,
.compact-draw-manage-panel td {
    padding: 8px 8px;
    vertical-align: middle;
}

.compact-draw-manage-panel th:not(:first-child),
.compact-draw-manage-panel td:not(:first-child) {
    text-align: center;
}

.compact-draw-manage-panel .actions .btn {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.compact-draw-manage-panel .actions {
    justify-content: center;
}

.search-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.search-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.search-card strong {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    white-space: nowrap;
}

.search-card input {
    min-height: 34px;
    padding: 6px 10px;
    min-width: 0;
    font-size: 12px;
}

.search-action-card {
    grid-template-columns: auto 1fr auto;
}

.compact-search-actions {
    align-self: center;
    flex-wrap: nowrap;
}

.compact-search-actions .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-shell {
    width: min(1120px, 100%);
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
    align-items: stretch;
}

.auth-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
}

.auth-copy h1 {
    font-size: 42px;
    margin: 16px 0 12px;
}

.login-panel {
    width: 100%;
    align-self: center;
}

.login-panel h1 {
    margin: 14px 0 18px;
}

.fa-solid,
.fa-regular,
.fa-brands {
    line-height: 1;
}

.toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    box-shadow: var(--shadow);
}

.toast-success {
    background: #15803d;
}

.toast-error {
    background: #b91c1c;
}

.install-body {
    padding: 18px 0 16px;
}

.install-wrap {
    padding: 0;
}

.install-panel {
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 0;
}

.install-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.install-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.08);
}

.install-result-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-result-text .stat-icon {
    margin-bottom: 0;
    flex: 0 0 42px;
}

.install-result-text strong {
    font-family: Consolas, "Courier New", monospace;
}

.install-result-text p {
    margin: 4px 0 0;
    color: var(--muted);
}

.install-result-actions {
    flex-wrap: nowrap;
}

.install-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.install-status-list {
    display: grid;
    gap: 10px;
}

.install-status-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 236, 225, 0.96));
}

.install-status-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.install-status-item .stat-icon {
    margin-bottom: 0;
    flex: 0 0 42px;
}

.install-status-item strong {
    font-family: Consolas, "Courier New", monospace;
}

.install-status-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
}

.install-note {
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(59, 130, 246, 0.08);
}

.install-note p {
    margin: 0;
}

.install-note p:last-child {
    margin-bottom: 0;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(66, 55, 44, 0.28);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 60;
}

.modal.is-open {
    display: flex;
}

.modal-box {
    width: min(460px, 100%);
    border: 1px solid var(--line);
    background: rgba(255, 252, 246, 0.98);
    border-radius: 24px;
    padding: 22px;
}

.modal-box h3 {
    margin-bottom: 10px;
}

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

.actions {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.actions form {
    margin: 0;
}

@media (max-width: 1100px) {
    .hero-card,
    .page-head,
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        width: 100%;
    }

    .grid-two,
    .grid-three,
    .sync-grid,
    .zodiac-grid,
    .filter-grid,
    .form-grid,
    .auth-shell,
    .install-grid {
        grid-template-columns: 1fr;
    }

    .install-result-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-main {
        padding: 0 0 24px;
    }
}

@media (max-width: 720px) {
    .wrap,
    .topbar {
        width: min(100%, calc(100% - 20px));
    }

    .topbar {
        top: 10px;
        margin: 10px auto 18px;
    }

    .topbar-inner,
    .hero-card,
    .panel,
    .login-panel,
    .auth-copy,
    .stat-panel,
    .modal-box {
        padding: 18px;
    }

    .brand-block h1,
    .auth-copy h1,
    .hero-card h2 {
        font-size: 26px;
    }

    .btn,
    .nav a {
        width: 100%;
    }

    .nav,
    .form-actions,
    .install-actions,
    .actions {
        width: 100%;
    }

    table {
        min-width: 560px;
    }
}
