* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    color: #1b1f2a;
}

.topbar {
    background: #101a3a;
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar h1 {
    margin: 0;
    font-size: 20px;
}

.topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-link {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 10px;
    border-radius: 6px;
}

.container {
    max-width: 1180px;
    margin: 16px auto;
    padding: 0 12px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 14px;
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
}

.grid-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.grid-form .full {
    grid-column: 1 / -1;
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid #c9d0e0;
    border-radius: 8px;
    padding: 9px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

button {
    background: #1c57d6;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.92;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e5e9f5;
    padding: 8px;
    font-size: 13px;
    text-align: left;
}

.simple-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.simple-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.muted {
    color: #5d6474;
}

.note {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f0f5ff;
    font-size: 14px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tips-grid article {
    background: #f8faff;
    border: 1px solid #e2e9fb;
    border-radius: 8px;
    padding: 10px;
}

.tips-grid h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.tips-grid ul {
    margin: 0;
    padding-left: 18px;
}

.tips-grid li {
    font-size: 13px;
    margin-bottom: 6px;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #15274b, #0c1730);
}

.auth-card {
    width: min(430px, 94vw);
    background: #fff;
    border-radius: 12px;
    padding: 18px;
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.alert {
    padding: 8px;
    border-radius: 6px;
    margin: 8px 0;
}

.error {
    background: #ffe5e5;
    color: #a10f0f;
}

.chip-btn {
    border: none;
    background: #f43f5e;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .grid-form {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    th,
    td {
        font-size: 12px;
    }
}
