:root {
  color-scheme: light;
  --ink: #102a43;
  --ink-strong: #0b1f33;
  --muted: #627d98;
  --muted-light: #829ab1;
  --line: #d9e2ec;
  --paper: #f7f9fb;
  --card: #ffffff;
  --blue: #1f6f8b;
  --blue-deep: #17566e;
  --ice: #e6f0f4;
  --amber: #e4a11b;
  --amber-pale: #fff6dc;
  --red: #b94a48;
  --shadow: 0 12px 34px rgba(16, 42, 67, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: #d8c9b5; }
body { margin: 0; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(90deg, rgba(255,255,255,.28), rgba(142,103,62,.05) 48%, rgba(255,255,255,.22)), repeating-linear-gradient(7deg, rgba(126,91,53,.045) 0 1px, transparent 1px 7px); min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; overflow: hidden; }
.section-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 78px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 5px 4px; border: 1px solid rgba(255,255,255,.38); border-radius: 7px; }
.brand-mark span { width: 4px; border-radius: 3px; background: var(--amber); display: block; }
.brand-mark span:nth-child(1) { height: 11px; opacity: .75; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 13px; opacity: .85; }
.brand-kicker { display: block; font-size: 9px; letter-spacing: .22em; opacity: .58; font-weight: 700; line-height: 1; margin-bottom: 3px; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.topbar-note { font-size: 11px; letter-spacing: .04em; color: #b8c9d9; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #69bd7c; box-shadow: 0 0 0 4px rgba(105,189,124,.12); }

.intro { padding: 54px 0 38px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.055em; line-height: .98; margin-bottom: 17px; max-width: 620px; color: var(--ink-strong); }
.intro-copy { margin-bottom: 0; color: var(--muted); max-width: 600px; font-size: 16px; line-height: 1.62; }
.date-stamp { border-left: 1px solid var(--line); padding-left: 22px; min-width: 138px; padding-bottom: 4px; }
.date-stamp-label { display: block; color: var(--muted-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; margin-bottom: 6px; }
.date-stamp span:last-child { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }

.wizard, .log-section { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wizard { padding: 30px 34px 34px; }
.wizard-head, .section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
h2 { font-size: 25px; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 0; color: var(--ink-strong); }
.step-counter { color: var(--blue); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.step-counter .muted { color: var(--muted-light); font-size: 13px; font-weight: 600; }
.progress-track { height: 4px; background: #e9eff3; margin: 24px 0 27px; overflow: hidden; }
.progress-track span { display: block; width: 33.333%; height: 100%; background: var(--amber); transition: width .3s ease; }
.step-tabs { display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.step-tab { display: flex; align-items: center; gap: 8px; position: relative; padding: 0 0 16px; color: var(--muted-light); font-size: 12px; }
.step-tab span { font-size: 10px; letter-spacing: .08em; font-weight: 800; }.step-tab strong { font-size: 12px; font-weight: 700; }
.step-tab.active { color: var(--ink); }.step-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); }
.step-panel { min-height: 268px; }.panel-intro { margin-bottom: 25px; }.panel-intro.compact { margin-bottom: 21px; }
.step-flag { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }.panel-intro h3, .finish-banner h3 { margin: 8px 0 6px; color: var(--ink-strong); font-size: 24px; letter-spacing: -.04em; }.panel-intro p, .finish-banner p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }.full-width { grid-column: 1 / -1; }
.field { display: block; }.field > span, .field-label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 12px; font-weight: 750; margin-bottom: 8px; }.field em { color: var(--muted-light); font-style: normal; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
input { width: 100%; min-height: 49px; border: 1px solid var(--line); background: #fbfcfd; border-radius: 5px; color: var(--ink); padding: 0 14px; outline: none; transition: border .15s, box-shadow .15s, background .15s; }.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,139,.13); background: #fff; }.field input::placeholder { color: #9aabba; }
.start-preview { border-left: 1px solid var(--line); padding: 2px 0 2px 18px; display: flex; justify-content: center; flex-direction: column; }.start-preview .field-label { color: var(--muted); margin-bottom: 5px; }.start-preview strong { font-size: 13px; color: var(--muted-light); font-weight: 550; }
.action-row { display: flex; gap: 14px; align-items: center; margin-top: 29px; }.action-row.end { justify-content: flex-end; }.action-row.between { justify-content: space-between; }
.button { border: 0; border-radius: 4px; min-height: 45px; padding: 0 18px; font-weight: 800; font-size: 12px; letter-spacing: .01em; transition: background .15s, transform .15s, color .15s, border .15s; }.button:not(:disabled):active { transform: translateY(1px); }.button.primary { color: #fff; background: var(--blue); }.button.primary:hover { background: var(--blue-deep); }.button.secondary { color: var(--ink); background: var(--ice); border: 1px solid #cfe0e8; }.button.secondary:hover { background: #d6e8ee; }.button.quiet { color: var(--muted); background: transparent; padding-left: 0; }.button.quiet:hover { color: var(--ink); }.button.text-button { background: transparent; color: var(--blue); padding: 0 5px; min-height: auto; }.button.text-button:hover { color: var(--blue-deep); }.button.danger-text { color: var(--red); }
.form-hint { min-height: 19px; font-size: 12px; color: var(--red); margin: 10px 0 0; }

.run-status-card { display: flex; justify-content: space-between; align-items: center; background: var(--ink-strong); color: #fff; padding: 18px 20px; margin-bottom: 29px; border-radius: 5px; }.live-pill { display: flex; align-items: center; gap: 7px; color: #d9f0de; font-size: 10px; font-weight: 850; letter-spacing: .14em; }.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #70cf82; box-shadow: 0 0 0 4px rgba(112,207,130,.15); }.run-status-card p { color: #b8c9d9; font-size: 12px; margin: 8px 0 0; }.elapsed-block { text-align: right; }.elapsed-block span { display: block; color: #99b0c3; font-size: 9px; font-weight: 800; letter-spacing: .16em; margin-bottom: 5px; }.elapsed-block strong { font-variant-numeric: tabular-nums; color: var(--amber); font-size: 24px; letter-spacing: .04em; }
.location-entry { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }.add-button { min-height: 49px; }.quick-selects { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--muted-light); font-size: 9px; font-weight: 800; letter-spacing: .14em; }.quick-select-chip { border: 1px solid #e8d29a; background: var(--amber-pale); color: #7a5710; border-radius: 999px; padding: 8px 11px; font-size: 11px; font-weight: 750; letter-spacing: 0; }.quick-select-chip:hover { background: #ffefbd; }.quick-select-chip span { margin-left: 5px; font-size: 14px; line-height: 0; }.location-list-wrap { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }.list-header { display: flex; justify-content: space-between; color: var(--muted-light); font-size: 10px; font-weight: 800; letter-spacing: .14em; }.list-header span:last-child { color: var(--blue); }.location-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }.location-list li { display: flex; gap: 9px; align-items: center; background: var(--ice); color: var(--ink); padding: 8px 10px 8px 12px; font-size: 12px; border-radius: 3px; }.remove-location { border: 0; background: none; color: var(--muted); padding: 0; font-size: 16px; line-height: 1; }.remove-location:hover { color: var(--red); }

.finish-banner { border: 1px solid #d9e8da; background: #f4fbf4; padding: 16px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 28px; border-radius: 5px; }.finish-icon { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #6fa978; color: #fff; font-weight: 850; }.finish-banner h3 { font-size: 20px; margin: 5px 0 3px; }.finish-banner p { font-size: 12px; }
.review-table-wrap, .log-table-wrap { width: 100%; overflow-x: auto; }.review-table, .log-table { width: 100%; border-collapse: collapse; min-width: 690px; }.review-table th, .log-table th { text-align: left; color: var(--muted-light); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; padding: 0 10px 10px; white-space: nowrap; }.review-table td, .log-table td { padding: 11px 10px; border-top: 1px solid #e7edf1; font-size: 12px; color: var(--ink); vertical-align: middle; }.review-table td:first-child, .log-table td:first-child { padding-left: 0; }.review-table th:first-child, .log-table th:first-child { padding-left: 0; }.review-table input { min-height: 35px; padding: 0 8px; font-size: 12px; border-radius: 3px; }.review-table input.date-input { width: 92px; }.review-table input.time-input { width: 83px; }.review-table input.equipment-input { min-width: 145px; }.review-table input.operator-input { min-width: 110px; }.review-table .location-input { min-width: 150px; }

.log-section { margin-top: 26px; padding: 29px 34px 34px; }.section-heading { align-items: end; }.row-count { color: var(--muted); font-size: 12px; }.log-actions { display: flex; align-items: center; gap: 17px; padding: 20px 0 23px; border-bottom: 1px solid var(--line); }.log-actions .secondary { min-height: 38px; }.review-note { margin-left: auto; color: var(--muted-light); font-size: 11px; }.empty-state { display: flex; gap: 14px; align-items: center; padding: 35px 4px 8px; color: var(--muted); }.empty-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px dashed #a6bac8; color: var(--blue); border-radius: 50%; font-size: 20px; }.empty-state strong { font-size: 13px; color: var(--ink); }.empty-state p { margin: 5px 0 0; font-size: 12px; }.log-table td { padding-top: 14px; padding-bottom: 14px; }.log-table .edit-column { width: 118px; white-space: nowrap; }.log-edit-input { min-height: 34px; width: 100%; min-width: 110px; border-radius: 3px; padding: 0 8px; font-size: 12px; }.log-edit-input.date-input { min-width: 116px; }.log-edit-input.time-input { min-width: 72px; width: 72px; }.row-action { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; padding: 2px 5px; }.row-action:hover { color: var(--blue-deep); }.cancel-row { color: var(--muted); }.cancel-row:hover { color: var(--red); }.row-delete { border: 0; color: var(--muted-light); background: transparent; font-size: 16px; padding: 2px 0 2px 5px; }.row-delete:hover { color: var(--red); }
.footer { display: flex; justify-content: space-between; color: #92a5b5; font-size: 9px; font-weight: 800; letter-spacing: .14em; padding: 34px 0 42px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink-strong); color: #fff; padding: 11px 16px; border-radius: 4px; font-size: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 10; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.print-sheet { display: none; }

@media (max-width: 700px) {
  .section-wrap { width: min(100% - 28px, 1120px); }.topbar { height: 70px; padding: 0 17px; }.topbar-note { font-size: 0; }.topbar-note .status-dot { width: 8px; height: 8px; }.intro { padding: 38px 0 29px; align-items: start; flex-direction: column; gap: 25px; }.intro-copy { font-size: 14px; }.date-stamp { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; min-width: 100%; display: flex; align-items: baseline; gap: 10px; }.date-stamp-label { margin: 0; }.wizard, .log-section { padding: 22px 17px 25px; }.wizard-head h2, .section-heading h2 { font-size: 22px; }.step-tabs { gap: 17px; margin-bottom: 25px; }.step-tab { gap: 5px; }.step-tab strong { font-size: 11px; }.field-grid { grid-template-columns: 1fr; gap: 15px; }.full-width { grid-column: auto; }.start-preview { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }.location-entry { grid-template-columns: 1fr; }.add-button { width: 100%; }.run-status-card { padding: 14px; }.elapsed-block strong { font-size: 20px; }.action-row { margin-top: 24px; }.action-row.between { gap: 10px; }.finish-banner { padding: 14px; }.log-actions { flex-wrap: wrap; gap: 13px; }.log-actions .secondary { order: -1; width: 100%; }.footer { flex-direction: column; gap: 8px; padding-bottom: 28px; line-height: 1.4; }.empty-state { align-items: start; }
}

@media print {
  body { background: #fff; }.app-shell, .toast { display: none !important; }.print-sheet { display: block; padding: 22px 30px; color: #000; }.print-title { text-align: center; font: 700 13px Arial, sans-serif; margin: 0 0 20px; letter-spacing: .02em; }.print-meta { display: flex; justify-content: space-between; font: 10px Arial, sans-serif; margin-bottom: 8px; color: #555; }.print-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 9px Arial, sans-serif; }.print-sheet th, .print-sheet td { border: 1px solid #333; padding: 7px 5px; text-align: left; height: 27px; }.print-sheet th { font-weight: 700; }.print-sheet th:nth-child(1) { width: 15%; }.print-sheet th:nth-child(2) { width: 37%; }.print-sheet th:nth-child(3) { width: 12%; }.print-sheet th:nth-child(4) { width: 19%; }.print-sheet th:nth-child(5) { width: 17%; }
}
