body {
    margin: 0;
    background: #f4f6f8;
    color: #1f2933;
    font-family: Segoe UI, Arial, sans-serif;
    font-size: 14px;
}

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

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

h1 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 650;
}

h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.navlinks {
    display: flex;
    gap: 14px;
    align-items: center;
}

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

.panel {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 18px;
}

label {
    display: block;
    margin: 12px 0 5px 0;
    color: #52606d;
    font-weight: 600;
}

input[type="text"], input[type="password"], textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
}

select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    background: #ffffff;
}

textarea {
    resize: vertical;
}

.actions, .button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

input[type="submit"] {
    border: 1px solid #9aa5b1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2933;
    cursor: pointer;
    font-weight: 650;
    padding: 10px 14px;
}

input[type="submit"].primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.message {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
    white-space: pre-wrap;
}

.message.error {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #9b2c2c;
}

.hint {
    color: #52606d;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 10px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-grid span {
    display: block;
    margin-bottom: 6px;
    color: #52606d;
    font-weight: 650;
}

.preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-panel {
    width: 100%;
    max-width: 430px;
}

.user-panel {
    margin-top: 18px;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px 0;
}

.data-grid th, .data-grid td {
    border: 1px solid #d8dee6;
    padding: 8px 10px;
    text-align: left;
}

.data-grid th {
    background: #f4f6f8;
}

.report-shell {
    max-width: 1480px;
}

.report-filter {
    display: grid;
    grid-template-columns: 180px 180px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.report-button {
    padding-bottom: 1px;
}

.report-grid {
    font-size: 12px;
}

.report-grid th, .report-grid td {
    vertical-align: top;
}

.thumb {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border: 1px solid #bcccdc;
    border-radius: 4px;
    background: #ffffff;
}

@media (max-width: 820px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .report-filter {
        grid-template-columns: 1fr;
    }

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