:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --paper: #ffffff;
    --wash: #f8fafc;
    --green: #059669;
    --green-dark: #047857;
    --error: #991b1b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: #f1f5f9;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    height: 64px;
}

.header-inner {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 24px;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    font-size: 16px;
    font-weight: 700;
    gap: 10px;
    text-decoration: none;
}

.brand img { object-fit: contain; }

.header-link, .product-links a {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.header-actions { align-items: center; display: flex; gap: 16px; }
.language-label { display: block; }
.language-label select { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; color: #475569; font-size: 13px; max-width: 145px; padding: 7px 9px; }

main { display: flex; flex-direction: column; gap: 20px; margin: 0 auto; max-width: 1440px; padding: 24px; }

.intro {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    gap: 12px;
    padding: 20px;
}

.page-icon { align-items: center; color: var(--green-dark); display: flex; font-size: 28px; height: 36px; justify-content: center; width: 36px; }

.eyebrow, .step {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0 0 2px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.lead { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 4px 0 0; }

.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.form-section { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2, .product-copy h2 { font-size: 16px; font-weight: 600; margin: 0; }
.shifts-heading { margin: 0 0 16px; }

.field-grid { display: grid; gap: 16px; grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(160px, 1fr)); max-width: 900px; }
.report-settings { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
.toggle-control { align-items: center; cursor: pointer; display: flex; font-weight: 500; gap: 9px; }
.toggle-control input { accent-color: var(--green); height: 18px; margin: 0; padding: 0; width: 18px; }
label { color: #0f172a; display: grid; font-size: 14px; font-weight: 600; gap: 8px; }

input, textarea {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    min-width: 0;
    outline: none;
    padding: 9px 12px;
    transition: border-color .15s, box-shadow .15s;
}

input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(5, 150, 105, .12); }
textarea { resize: vertical; }

.format-control { background: #f1f5f9; border-radius: 6px; display: flex; padding: 4px; }
.format-control label { align-items: center; cursor: pointer; display: flex; gap: 6px; padding: 7px 10px; }
.format-control input { accent-color: var(--green); margin: 0; padding: 0; }

.secondary-button, .text-button, .icon-button, .primary-button { border: 0; cursor: pointer; }
.secondary-button { background: var(--wash); border: 1px solid var(--line); border-radius: 6px; color: #475569; font-size: 14px; font-weight: 600; padding: 8px 12px; }
.secondary-button:hover { background: #f1f5f9; color: var(--ink); }
.text-button { background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 9px; }
.icon-button { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; color: #475569; font-size: 22px; height: 40px; padding: 0; width: 40px; }
.icon-button:hover { background: #f1f5f9; }
.month-picker { align-items: center; display: flex; gap: 8px; }
.month-picker input { background: white; padding: 7px 9px; width: 150px; }
.table-toolbar { align-items: center; display: flex; justify-content: space-between; margin: 0 0 12px; }
.table-toolbar p { color: var(--muted); font-size: 13px; margin: 0; }
.table-toolbar p span { display: block; font-size: 11px; margin-top: 2px; }
.work-table-wrap { border: 1px solid var(--line); border-radius: 6px; contain: paint; max-width: 100%; overflow: auto; }
.work-table { border-collapse: collapse; font-size: 13px; min-width: 1000px; width: 100%; }
.work-table th, .work-table td { border-bottom: 1px solid #f1f5f9; padding: 12px 10px; text-align: left; }
.work-table thead th { background: var(--wash); color: var(--muted); font-size: 12px; font-weight: 600; position: sticky; text-transform: uppercase; top: 0; z-index: 1; }
.work-table tbody tr { background: white; }
.work-table tbody tr.saturday { background: #e8f5ff; }
.work-table tbody tr.sunday { background: #87cefa; }
.work-table tbody tr.today { background: #a3f06c; }
.work-table tbody tr:not(.enabled) { color: #94a3b8; }
.work-table input, .work-table select { padding: 7px; width: 92px; }
.work-table select { background: white; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); min-width: 150px; }
.work-table .day-start, .work-table .day-end { width: 110px; }
.work-table input[type="checkbox"] { accent-color: var(--green); height: 17px; padding: 0; width: 17px; }
.work-table .day-note { min-width: 125px; width: 100%; }
.work-table input:disabled, .work-table select:disabled { background: transparent; border-color: transparent; color: #94a3b8; }
.work-table .include-column { padding-left: 11px; padding-right: 2px; width: 28px; }
.table-input-label { display: inline; }
.day-label { min-width: 92px; white-space: nowrap; }
.day-label span { color: var(--muted); display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.day-cell { min-width: 122px; }
.add-entry { background: transparent; border: 0; color: var(--green-dark); cursor: pointer; display: block; font-size: 11px; margin-top: 5px; padding: 0; white-space: nowrap; }
.add-entry:disabled { color: #94a3b8; cursor: default; }
.remove-entry { background: transparent; border: 0; color: #64748b; cursor: pointer; font-size: 22px; padding: 2px 7px; }
.remove-entry:hover { color: var(--error); }
.record-row.repeated .include-column { visibility: hidden; }
.record-row.repeated .day-label, .record-row.repeated .add-entry { display: none; }
.record-row:not(.repeated) .remove-entry { visibility: hidden; }
.day-worked { font-weight: 800; white-space: nowrap; }
.unit { color: var(--muted); font-size: 11px; margin-left: 4px; }
.work-table tfoot td { background: var(--wash); border-bottom: 0; font-weight: 600; position: sticky; bottom: 0; }
.work-table tfoot td:first-child { text-align: right; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
.note-field { margin: 0; }
.note-field span { color: var(--muted); font-weight: 400; }

.primary-button {
    align-items: center;
    background: var(--green);
    border-radius: 6px;
    color: white;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    justify-content: space-between;
    height: 40px;
    padding: 0 16px;
}
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.form-message { border-radius: 6px; display: none; font-size: 14px; font-weight: 500; padding: 12px 16px; }
.form-message.success, .form-message.error { display: block; }
.form-message.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-message.error { background: #fef2f2; border: 1px solid #fecaca; color: var(--error); }

.trust-strip { align-items: center; color: #475569; display: flex; flex-wrap: wrap; font-size: 13px; gap: 10px 20px; padding: 0 4px; }
.trust-strip span { align-items: center; display: flex; gap: 7px; }
.trust-strip strong { color: var(--green-dark); }
.trust-strip a { color: #475569; margin-left: auto; text-underline-offset: 3px; }
.remember-draft { align-items: center; color: #475569; cursor: pointer; display: flex; font-size: 13px; font-weight: 400; gap: 7px; }
.remember-draft input { accent-color: var(--green); height: 16px; margin: 0; padding: 0; width: 16px; }
.post-download-cta { align-items: center; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 6px; display: flex; gap: 24px; justify-content: space-between; padding: 20px; }
.post-download-cta[hidden] { display: none; }
.post-download-cta h2 { font-size: 18px; margin: 0; }
.post-download-cta p:not(.eyebrow) { color: #475569; font-size: 14px; line-height: 1.5; margin: 6px 0 0; max-width: 680px; }
.post-download-cta .app-link { background: var(--green); border-radius: 6px; color: white; flex-shrink: 0; font-size: 14px; font-weight: 600; padding: 10px 14px; text-decoration: none; }

.product-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.product-content { align-items: center; display: grid; grid-template-columns: 180px 1fr; min-height: 210px; }
.product-panel picture { align-self: stretch; background: var(--wash); display: block; overflow: hidden; }
.product-panel img { display: block; height: 210px; margin: 14px auto 0; max-width: 90%; object-fit: contain; object-position: bottom; }
.product-copy { padding: 24px; }
.product-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.social-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.social-proof span { color: var(--muted); font-size: 13px; }
.social-proof strong { color: var(--ink); font-size: 16px; }
.store-links { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store-links a { display: block; height: 40px; }
.store-links img { display: block; height: 40px; max-width: 136px; object-fit: contain; }
.product-links { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.product-links .secondary-link { border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 14px; }
.product-links .app-link { background: var(--green); border-radius: 6px; color: white; padding: 10px 14px; }
.product-links .app-link:hover { background: var(--green-dark); }

.seo-content { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 32px; grid-template-columns: 1fr 1fr; padding: 24px; }
.seo-content h2 { font-size: 18px; margin: 0 0 12px; }
.seo-content p, .seo-content li { color: #475569; font-size: 14px; line-height: 1.65; }
.seo-content ol { margin: 0; padding-left: 22px; }
.locale-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; padding: 4px 0 20px; }
.locale-links a { color: #64748b; font-size: 13px; text-decoration: none; }
.locale-links a:hover, .locale-links a[aria-current="page"] { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
    .work-table { min-width: 800px; }
    .work-table th, .work-table td { padding-left: 6px; padding-right: 6px; }
    .work-table input, .work-table select { width: 80px; }
    .work-table select { min-width: 120px; }
    .work-table .day-start, .work-table .day-end { width: 96px; }
    .work-table .day-note { min-width: 100px; }
    .work-table .include-column { padding-left: 8px; width: 25px; }
    .day-cell { min-width: 108px; }
}

@media (max-width: 680px) {
    .header-inner, main { padding-left: 16px; padding-right: 16px; }
    main { padding-top: 16px; }
    .header-link { font-size: 13px; }
    .intro, .form-section { padding: 16px; }
    .field-grid { grid-template-columns: 1fr; }
    .shifts-heading { align-items: flex-start; flex-direction: column; }
    .month-picker input { width: 132px; }
    .table-toolbar { align-items: flex-start; gap: 10px; }
    .table-toolbar > div { display: flex; flex-shrink: 0; }
    .product-content { display: block; }
    .product-panel picture { display: none; }
    .product-copy { padding: 20px; }
    .section-heading:not(.shifts-heading) { align-items: flex-start; gap: 12px; }
    .seo-content { grid-template-columns: 1fr; padding: 20px; }
    .trust-strip { align-items: flex-start; flex-direction: column; }
    .trust-strip a { margin-left: 0; }
    .post-download-cta { align-items: flex-start; flex-direction: column; }
}
