:root {
    --ink: #1c1f23;
    --muted: #5c6470;
    --paper: #f8f7f4;
    --line: #d8d4cc;
    --accent: #2f7abf;
    --accent-soft: #e7f1fb;
    --success: #2f9d5e;
    --warning: #c8641c;
    --radius: 12px;
    --shadow: 0 14px 30px rgba(28, 31, 35, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

a { color: var(--accent); }

.wrapper {
    max-width: 1100px;
    margin: 24px auto 64px;
    padding: 0 18px;
}

header {
    margin-bottom: 22px;
}

h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.2px;
}

p.lead {
    margin: 0;
    color: var(--muted);
}

.meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.meta-table th,
.meta-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.meta-table thead th {
    background: var(--accent-soft);
    font-weight: 700;
    font-size: 15px;
    color: #1f466a;
}

.meta-table tbody tr:last-child td {
    border-bottom: none;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h2 { margin: 0 0 6px; }

.card p { margin: 0 0 20px; color: var(--muted); }

.form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

label { font-weight: 600; color: var(--ink); }

input[type="text"],
input[type="date"] {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 122, 191, 0.15);
}

.checklist {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.checklist label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
}

.checklist input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 0 10px 25px rgba(47, 122, 191, 0.25);
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); box-shadow: none; }

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    font-weight: 600;
}

.table-wrapper { width: 100%; overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

table.data-table th,
table.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

table.data-table thead th {
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 700;
    color: #1f466a;
}

table.data-table tbody tr:hover td { background: #f4f7fb; }

table.data-table tbody tr:last-child td { border-bottom: none; }

.muted { color: var(--muted); }

.flash {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    h1 { font-size: 24px; }
    .card { padding: 18px; }
    .meta-table th, .meta-table td { padding: 12px; }
}