* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f5f1;
    color: #1d241c;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.auth-card p {
    margin: 0 0 24px;
    color: #5d6659;
}

form {
    display: grid;
    gap: 12px;
}

label {
    font-weight: 700;
    font-size: 14px;
}

input {
    width: 100%;
    border: 1px solid #d7ddcf;
    border-radius: 14px;
    padding: 14px;
    font-size: 16px;
    background: #fff;
}

button {
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    padding: 15px 18px;
    background: #24391f;
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.auth-card a {
    display: block;
    margin-top: 18px;
    color: #385d31;
    font-weight: 700;
}

.alert {
    background: #ffe8e8;
    color: #8a1f1f;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.app-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e5dc;
    z-index: 10;
}

.app-header div {
    display: grid;
    gap: 2px;
}

.app-header span {
    font-size: 13px;
    color: #6a7265;
}

.app-header a {
    font-weight: 800;
    color: #385d31;
}

.app-main {
    padding: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-card {
    background: linear-gradient(135deg, #24391f, #4e6c3f);
    color: white;
    border-radius: 26px;
    padding: 24px;
    margin-bottom: 18px;
}

.welcome-card h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

.welcome-card p {
    margin: 0;
    opacity: 0.9;
}

.grid {
    display: grid;
    gap: 14px;
}

.menu-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: grid;
    gap: 8px;
}

.menu-card strong {
    font-size: 19px;
}

.menu-card span {
    color: #65705f;
    line-height: 1.4;
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: grid;
    gap: 13px;
}

.form-card h2 {
    margin: 16px 0 4px;
    font-size: 20px;
}

select,
textarea {
    width: 100%;
    border: 1px solid #d7ddcf;
    border-radius: 14px;
    padding: 14px;
    font-size: 16px;
    background: #fff;
    font-family: inherit;
}

.checkbox-list {
    display: grid;
    gap: 10px;
    background: #f7f8f4;
    border-radius: 18px;
    padding: 14px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkbox-list input {
    width: auto;
}
.empty-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.empty-card h2 {
    margin: 0 0 8px;
}

.empty-card p {
    color: #65705f;
}

.primary-link {
    display: inline-block;
    margin-top: 10px;
    background: #24391f;
    color: #fff;
    border-radius: 16px;
    padding: 13px 16px;
    font-weight: 800;
}

.results-list {
    display: grid;
    gap: 14px;
}

.result-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.result-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.result-card-top div:first-child {
    display: grid;
    gap: 4px;
}

.result-card-top span {
    color: #65705f;
    font-size: 14px;
}

.result-total {
    background: #24391f;
    color: #ffffff;
    min-width: 82px;
    text-align: center;
    border-radius: 18px;
    padding: 10px;
    font-size: 24px;
    font-weight: 900;
}

.result-total small {
    font-size: 13px;
    opacity: 0.8;
}

.result-meta {
    margin: 12px 0;
    color: #65705f;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.result-grid div {
    background: #f7f8f4;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.result-grid span {
    font-size: 13px;
    color: #65705f;
}

.result-grid strong {
    font-size: 16px;
}

.result-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.result-footer span,
.status-badge {
    background: #eef3e8;
    color: #294125;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
}

@media (min-width: 720px) {
    .result-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.result-card-link {
    display: block;
}

.detail-hero {
    background: linear-gradient(135deg, #24391f, #4e6c3f);
    color: #ffffff;
    border-radius: 28px;
    padding: 26px;
    margin-bottom: 16px;
}

.detail-hero span {
    opacity: 0.85;
    font-weight: 700;
}

.detail-hero h1 {
    margin: 8px 0 4px;
    font-size: 42px;
}

.detail-hero p {
    margin: 0 0 14px;
    opacity: 0.9;
}

.big-status {
    display: inline-block;
    background: #ffffff;
    color: #24391f;
    border-radius: 999px;
    padding: 9px 14px;
}

.detail-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.detail-card h2 {
    margin: 0 0 12px;
}

.detail-card p {
    color: #4f5a4b;
    line-height: 1.5;
}

.detail-actions {
    display: grid;
    gap: 10px;
}

.danger-link {
    display: block;
    text-align: center;
    background: #ffe8e8;
    color: #8a1f1f;
    border-radius: 16px;
    padding: 14px;
    font-weight: 900;
}
.edit-link {
    display: block;
    text-align: center;
    background: #24391f;
    color: #ffffff;
    border-radius: 16px;
    padding: 14px;
    font-weight: 900;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: grid;
    gap: 6px;
}

.stat-card span {
    color: #65705f;
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    font-size: 28px;
}

.latest-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    margin-top: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h2 {
    margin: 0;
    font-size: 21px;
}

.section-title-row a {
    color: #385d31;
    font-weight: 900;
    font-size: 14px;
}

.latest-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #eef0ea;
}

.latest-row div {
    display: grid;
    gap: 4px;
}

.latest-row span {
    color: #65705f;
    font-size: 14px;
}

.latest-row b {
    white-space: nowrap;
}
.status-grid {
    display: grid;
    gap: 14px;
}

.status-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: grid;
    gap: 8px;
}

.status-card span {
    color: #65705f;
    font-size: 14px;
    font-weight: 800;
}

.status-card strong {
    font-size: 28px;
}

.status-card p {
    margin: 0;
    color: #65705f;
    line-height: 1.4;
}

@media (min-width: 720px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}