* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.page-header a {
    color: inherit;
    text-decoration: none;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.week-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.week-list-item + .week-list-item {
    margin-top: 12px;
}

.week-link {
    display: block;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fafcff;
}

.week-link span {
    color: #6b7280;
    font-size: 0.95rem;
}
.form-stack {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #64748b;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}
.inline-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-row input[type="time"],
.inline-row input[type="number"] {
    flex: 1 1 140px;
    min-width: 120px;
}

.snippet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.snippet-btn {
    border: 1px solid #cfd8e3;
    background: #f8fafc;
    color: #1f2937;
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.snippet-btn:hover {
    background: #eef4ff;
}
.date-group + .date-group {
    margin-top: 24px;
}

.date-group h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #334155;
}

.entry-list {
    display: grid;
    gap: 12px;
}

.entry-card {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 14px;
    background: #fafcff;
}

.entry-meta {
    margin-bottom: 10px;
}

.entry-note {
    line-height: 1.5;
}
.entry-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.btn-danger {
    background: #b91c1c;
    border: none;
    color: #fff;
    cursor: pointer;
}
button.btn {
    border: none;
    cursor: pointer;
    font: inherit;
}