.vl-webby-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1584px;
    margin: 28px auto;
    padding: 0 20px;
    color: #1e293b;
    font-size: 1.05rem;
}

.vl-webby-login {
    max-width: 440px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.vl-webby-brand {
    font-size: 1.45rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 8px;
}

.vl-webby-version {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 8px;
    vertical-align: middle;
}

.vl-webby-intro {
    color: #64748b;
    margin: 0 0 20px;
    font-size: 1rem;
}

.vl-webby-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.vl-webby-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.vl-webby-field {
    display: block;
    margin-bottom: 14px;
}

.vl-webby-field span {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 4px;
}

.vl-webby-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.05rem;
    box-sizing: border-box;
}

.vl-webby-submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.vl-webby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.vl-webby-welcome {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 1rem;
}

.vl-webby-logout {
    color: #64748b;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.vl-webby-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.vl-webby-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vl-webby-card-accent {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 70%);
}

.vl-webby-card-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.vl-webby-card-value {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 6px 0;
}

.vl-webby-card-value-sm {
    font-size: 1.55rem;
    letter-spacing: 0.02em;
}

.vl-webby-card-sub {
    font-size: 0.88rem;
    color: #94a3b8;
}

.vl-trend-up { color: #15803d; font-weight: 700; }
.vl-trend-down { color: #b91c1c; font-weight: 700; }

.vl-webby-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vl-webby-panel h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.vl-webby-hint {
    margin: 0 0 14px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.vl-webby-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding-top: 10px;
}

.vl-webby-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.vl-webby-bar {
    width: 100%;
    max-width: 56px;
    background: linear-gradient(180deg, #818cf8, #4f46e5);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}

.vl-webby-bar-count {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}

.vl-webby-bar-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.vl-webby-hour-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
}

.vl-webby-hour-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.vl-webby-hour-bar {
    width: 100%;
    background: linear-gradient(180deg, #67e8f9, #0891b2);
    border-radius: 3px 3px 0 0;
    min-height: 3px;
}

.vl-webby-hour-label {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 4px;
}

.vl-webby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.vl-webby-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vl-webby-meter {
    margin-bottom: 12px;
}

.vl-webby-meter-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.vl-webby-meter-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.vl-webby-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 999px;
}

.vl-webby-meter-fill-alt {
    background: linear-gradient(90deg, #0d9488, #5eead4);
}

.vl-webby-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.vl-webby-table th,
.vl-webby-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
}

.vl-webby-log-table code {
    font-size: 0.88rem;
    word-break: break-all;
}

.vl-webby-log-table th:nth-child(1),
.vl-webby-log-table td:nth-child(1) {
    min-width: 150px;
    white-space: nowrap;
}

.vl-webby-log-table th:nth-child(2),
.vl-webby-log-table td:nth-child(2) {
    width: 76px;
}

.vl-webby-log-table th:nth-child(3),
.vl-webby-log-table td:nth-child(3) {
    min-width: 148px;
    width: 16%;
}

.vl-webby-log-table td:nth-child(3) code {
    word-break: normal;
    white-space: nowrap;
}

.vl-webby-log-table th:nth-child(4),
.vl-webby-log-table td:nth-child(4) {
    width: 96px;
    white-space: nowrap;
}

.vl-webby-log-table th:nth-child(5),
.vl-webby-log-table td:nth-child(5) {
    min-width: 200px;
}

.vl-webby-log-table th:last-child:not(:nth-child(5)),
.vl-webby-log-table td:last-child:not(:nth-child(5)) {
    width: 80px;
    white-space: nowrap;
}

.vl-webby-page-link {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.vl-webby-page-link:hover {
    text-decoration: underline;
    color: #0f2744;
}

.vl-webby-wrap .vl-webby-block-btn,
.vl-webby-block-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569 !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vl-webby-wrap .vl-webby-block-btn:hover,
.vl-webby-block-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
}

.vl-webby-wrap .vl-webby-block-btn:focus,
.vl-webby-block-btn:focus {
    outline: 2px solid #fca5a5;
    outline-offset: 1px;
}

.vl-webby-wrap .vl-webby-block-btn:disabled,
.vl-webby-block-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    color: #94a3b8 !important;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.vl-webby-unblock-btn {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534 !important;
}

.vl-webby-unblock-btn:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff !important;
}

.vl-webby-footnote {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    margin: 8px 0 24px;
}

.vl-webby-ga4-panel {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}

.vl-webby-cards-ga4 {
    margin-bottom: 8px;
}

.vl-webby-card-ga {
    border-color: #bbf7d0;
}

.vl-webby-country-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    padding: 2px 4px;
    transition: background 0.15s ease;
}

.vl-webby-country-link:hover {
    background: #e0e7ff;
    text-decoration: underline;
}

.vl-webby-country-row:hover td {
    background: #f8fafc;
}

.vl-webby-log-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 18px;
    margin-bottom: 8px;
}

.vl-webby-log-head h2 {
    margin: 0 0 4px;
}

.vl-webby-per-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.vl-webby-per-form select {
    min-width: 72px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.vl-webby-log-note {
    margin-top: 0;
    margin-bottom: 12px;
    color: #64748b;
}

.vl-webby-empty {
    color: #64748b;
    margin: 8px 0 0;
}

.vl-visitor-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.vl-type-human {
    background: #dcfce7;
    color: #166534;
}

.vl-type-suspicious {
    background: #fef3c7;
    color: #92400e;
}

.vl-type-bot {
    background: #fee2e2;
    color: #991b1b;
}

.vl-visit-zone {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vl-visit-zone-site {
    background: #e0f2fe;
    color: #0369a1;
}

.vl-visit-zone-visitors {
    background: #ede9fe;
    color: #6d28d9;
}

.vl-visit-zone-admin {
    background: #f3f4f6;
    color: #374151;
}

.vl-log-url-cell {
    max-width: 420px;
}

.vl-log-url-path {
    word-break: break-word;
    color: #1e293b;
}

.vl-log-url-probe {
    display: inline-block;
    word-break: break-word;
    color: #9a3412;
    font-weight: 600;
}

.vl-log-url-junk {
    display: inline-block;
    word-break: break-word;
    color: #64748b;
}

.vl-webby-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.vl-webby-pager-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.95rem;
}

.vl-webby-pager-btn:hover {
    background: #f1f5f9;
}

.vl-webby-pager-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.vl-webby-pager-info {
    font-size: 0.95rem;
    color: #475569;
}

@media (max-width: 600px) {
    .vl-webby-wrap {
        max-width: 100%;
        padding: 0 12px;
    }
    .vl-webby-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .vl-webby-hour-label {
        display: none;
    }
    .vl-webby-hour-col:nth-child(3n+1) .vl-webby-hour-label {
        display: block;
    }
}
