* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, Arial, sans-serif;
    color: #172033;
    background: #f4f6fa;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.page {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 60px 0;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 38px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.brand {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #6366f1;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.08;
}

.intro {
    margin: 0 0 30px;
    color: #64748b;
    line-height: 1.6;
}

form {
    display: grid;
    gap: 10px;
}

label {
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid #dbe1ea;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font: inherit;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: #6366f1;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.secondary {
    background: #eef2ff;
    color: #4f46e5;
}

.small {
    min-height: 38px;
    padding: 8px 13px;
}

.notice,
.error {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.notice {
    background: #ecfdf5;
    color: #047857;
}

.error {
    background: #fef2f2;
    color: #b91c1c;
}

.dashboard {
    width: min(100% - 32px, 1100px);
    margin: 0 auto;
    padding: 40px 0 70px;
}

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

.topbar h1 {
    font-size: 36px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat,
.panel,
.feedback-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.stat {
    padding: 20px;
}

.stat span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat strong {
    font-size: 28px;
}

.panel {
    padding: 18px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters select {
    margin: 0;
    flex: 1;
}

.filters button,
.filters .button {
    margin: 0;
}

.feedback-list {
    display: grid;
    gap: 14px;
}

.feedback-item {
    padding: 22px;
}

.feedback-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.email {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

time {
    color: #94a3b8;
    font-size: 12px;
}

.badges {
    display: flex;
    gap: 7px;
    margin: 15px 0 12px;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.rating-badge {
    background: #eef2ff;
    color: #4f46e5;
}

.feedback-item p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    white-space: normal;
}

.empty {
    text-align: center;
    color: #64748b;
}

@media (max-width: 700px) {
    .dashboard {
        width: min(100% - 20px, 1100px);
        padding-top: 20px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters button,
    .filters .button {
        width: 100%;
    }

    .feedback-head {
        flex-direction: column;
        gap: 8px;
    }
}
