:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --line: #dde5f0;
    --text: #16324f;
    --muted: #61758a;
    --primary: #1d6ef2;
    --primary-soft: #e9f1ff;
    --success: #1a9b5f;
    --danger: #d94141;
    --shadow: 0 16px 40px rgba(16, 34, 68, 0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
    color: var(--text);
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-mark {
    width: 50px; height: 50px; border-radius: 16px;
    background: linear-gradient(135deg, #0f5de2, #4c9bff);
    color: white; display: grid; place-items: center; font-weight: 700;
    box-shadow: var(--shadow);
}
.brand-title { font-size: 20px; font-weight: 700; }
.brand-subtitle { color: var(--muted); font-size: 12px; }
.top-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.top-nav a {
    text-decoration: none; color: var(--text); padding: 10px 14px; border-radius: 12px;
    font-size: 14px; border: 1px solid transparent;
}
.top-nav a.active, .top-nav a:hover { background: var(--primary-soft); color: var(--primary); border-color: #cde0ff; }
.main-content { padding: 28px 0 40px; }
.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; padding: 20px 0; }
.footer-title { font-weight: 700; margin-bottom: 8px; }
.hero-card, .panel, .install-card {
    background: var(--card); border: 1px solid rgba(221,229,240,.95); border-radius: 24px;
    box-shadow: var(--shadow);
}
.hero-card {
    display: grid; grid-template-columns: 1.6fr .9fr; gap: 24px; padding: 28px; margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #f4f9ff);
}
.hero-card h1, .section-header h1, .section-header h2 { margin: 8px 0 12px; }
.hero-card p, .section-header p { color: var(--muted); line-height: 1.7; }
.hero-side { display: grid; gap: 14px; }
.stat-card, .detail-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.stat-card span, .detail-card span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stat-card strong, .detail-card strong { font-size: 28px; }
.panel { padding: 24px; margin-bottom: 24px; }
.section-header { margin-bottom: 20px; }
.section-header.inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.eyebrow {
    display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--primary-soft);
    color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.feature-item {
    padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fbfdff;
}
.feature-item p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.alert {
    padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; border: 1px solid transparent;
}
.alert-success { background: #eefcf5; color: #0d6a3d; border-color: #c8efd9; }
.alert-danger { background: #fff1f1; color: #ab2020; border-color: #f0cccc; }
.btn {
    appearance: none; border: 1px solid transparent; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
}
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.btn-primary { background: linear-gradient(135deg, #0f5de2, #3f90ff); color: #fff; }
.btn-light { background: #f6f9ff; color: var(--text); border-color: var(--line); }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 10px; }
.form-row.full, .form-actions.full, .mode-switch.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
input[type="text"], input[type="password"], input[type="file"], textarea {
    width: 100%; border: 1px solid #cfdbea; border-radius: 14px; padding: 14px 16px;
    font: inherit; color: var(--text); background: #fff;
}
textarea { resize: vertical; line-height: 1.7; }
small { color: var(--muted); }
.mode-switch {
    display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; background: #f8fbff;
    border: 1px solid var(--line); border-radius: 18px;
}
.mode-switch label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.table-wrap {
    width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 18px;
}
table { width: 100%; border-collapse: collapse; min-width: 900px; background: #fff; }
thead th {
    background: linear-gradient(135deg, #0f5de2, #4a98ff); color: #fff; text-align: left;
    padding: 14px 12px; font-size: 14px;
}
tbody td { border-top: 1px solid #edf1f6; padding: 14px 12px; vertical-align: top; line-height: 1.6; }
.badge {
    display: inline-block; padding: 6px 10px; border-radius: 999px; background: #edf5ff; color: var(--primary);
    border: 1px solid #d7e6ff; font-size: 12px; font-weight: 700;
}
.empty-cell { text-align: center; color: var(--muted); padding: 26px !important; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input { width: 280px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.source-box {
    border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; padding: 20px;
}
.source-box h3 { margin-top: 0; }
.source-text { white-space: pre-wrap; color: var(--muted); line-height: 1.7; }
.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }
.install-shell {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: linear-gradient(135deg, #eef5ff, #f9fcff);
}
.install-card { width: min(880px, 100%); padding: 30px; }
@media (max-width: 900px) {
    .nav-wrap, .section-header.inline, .hero-card { grid-template-columns: 1fr; display: grid; }
    .top-nav { justify-content: flex-start; }
    .form-grid, .feature-grid, .footer-grid, .detail-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr; }
}
