:root {
  color-scheme: dark;
  --bg: #0f1115;
  --ink: #f4f5f7;
  --muted: #a9afba;
  --panel: #181b22;
  --line: #343946;
  --accent: #6f7681;
  --accent-strong: #858d99;
  --warm: #d49a52;
  --cool: #8d949f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(141, 148, 159, 0.2), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(212, 154, 82, 0.1), transparent 30rem),
    linear-gradient(135deg, #0f1115 0%, #171b24 48%, #10131a 100%);
}

button,
input {
  font: inherit;
}

.site-name {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}

.app-shell {
  width: min(1100px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 32px 0;
}

.home-shell {
  width: min(720px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.home-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: clamp(28px, 7vw, 64px);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: var(--shadow);
  text-align: center;
}

.home-panel h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-company {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
}

.home-button-grid {
  width: min(320px, 100%);
  display: grid;
  gap: 12px;
}

.home-launch-button {
  min-height: 58px;
  width: 100%;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  background: #6f7681;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.home-launch-button:hover {
  background: #858d99;
}

.timer-panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.timer-panel {
  width: 100%;
  min-height: 650px;
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  padding: clamp(20px, 4vw, 44px);
}

.job-header {
  display: grid;
  gap: 8px;
  text-align: center;
}

.job-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.job-date,
.job-time,
.save-status {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
}

.job-time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.save-status {
  justify-self: center;
  border: 1px solid rgba(20, 108, 114, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(20, 108, 114, 0.1);
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.save-status.is-offline {
  border-color: rgba(189, 47, 47, 0.22);
  background: rgba(189, 47, 47, 0.1);
  color: #8f2626;
}

.job-details {
  width: min(560px, 100%);
  justify-self: center;
  display: grid;
  gap: 14px;
}

.job-number-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.clock-block {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.earnings-box {
  min-width: 104px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  background: rgba(35, 39, 48, 0.88);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px rgba(25, 26, 29, 0.08);
}

.earnings-box span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.earnings-box strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.clock-face {
  position: relative;
  width: 104px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 245, 247, 0.92) 0 58%, transparent 59%),
    conic-gradient(from 0deg, rgba(141, 148, 159, 0.24), rgba(212, 154, 82, 0.22), rgba(141, 148, 159, 0.24));
  box-shadow: 0 10px 24px rgba(25, 26, 29, 0.12);
}

.clock-mark {
  position: absolute;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.mark-12 {
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.mark-3 {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.mark-6 {
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.mark-9 {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%) rotate(var(--angle, 0deg));
  transform-origin: center bottom;
}

.hour-hand {
  height: 27px;
}

.minute-hand {
  height: 36px;
}

.second-hand {
  width: 2px;
  height: 39px;
  background: #bd2f2f;
}

.clock-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6f7681;
  transform: translate(-50%, -50%);
}

.job-number-field {
  min-width: 0;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.timer-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto auto auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(35, 39, 48, 0.7);
}

.timer-card h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.timer-title-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
}

.mini-progress {
  width: min(100%, 220px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--panel) 0 58%, transparent 59%),
    conic-gradient(var(--accent) var(--progress, 0%), rgba(20, 108, 114, 0.14) 0);
  border: 1px solid rgba(20, 108, 114, 0.18);
  box-shadow: inset 0 0 0 14px rgba(244, 245, 247, 0.16), 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease;
}

.timer-card.is-running .mini-progress {
  box-shadow: inset 0 0 0 14px rgba(244, 245, 247, 0.16), 0 16px 44px rgba(141, 148, 159, 0.24);
}

.time-readout {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}

.time-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.time-records div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(24, 27, 34, 0.78);
}

.time-records dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.time-records dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.record-input {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.timer-note-field {
  display: grid;
  gap: 8px;
}

.timer-note-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.timer-note-field textarea {
  width: 100%;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: rgba(24, 27, 34, 0.88);
  font: inherit;
  font-size: 0.95rem;
  resize: none;
}

.signature-field {
  display: grid;
  gap: 8px;
}

.signature-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signature-field-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.clear-signature-button {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(25, 26, 29, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

#signatureCanvas {
  width: 100%;
  height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
  touch-action: none;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 0;
}

.icon-button,
.primary-button {
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.icon-button {
  width: 52px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: #fffdf8;
}

.icon-button.ghost {
  border: 1px solid var(--line);
  background: rgba(35, 39, 48, 0.82);
  color: var(--ink);
}

.icon-button[aria-pressed="false"] {
  color: var(--muted);
  background: rgba(35, 39, 48, 0.82);
  border: 1px solid var(--line);
}

.primary-button {
  min-width: 126px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #6f7681;
  color: white;
  font-weight: 850;
}

.primary-button.is-stop {
  background: #bd2f2f;
}

.completion-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.photo-panel {
  width: min(780px, 100%);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.camera-button {
  min-height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(20, 108, 114, 0.12);
  color: var(--accent-strong);
  font-weight: 900;
  cursor: pointer;
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview-grid,
.report-photo-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.photo-preview-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(35, 39, 48, 0.82);
}

.photo-preview-card img,
.report-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.remove-photo-button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(25, 26, 29, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.complete-button,
.reset-job-button {
  min-height: 54px;
  min-width: min(240px, 100%);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2f8f4e;
  color: #fffdf8;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.reset-job-button {
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: #8f2626;
}

.reset-job-button:hover {
  background: transparent;
}

.reset-job-button img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: cover;
}

.complete-button {
  background: #6f7681;
  color: #fffdf8;
}

.complete-button:hover {
  background: #858d99;
}

.summary-panel {
  width: min(780px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(35, 39, 48, 0.78);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.summary-panel h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.print-title {
  display: none;
}

.print-button {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(141, 148, 159, 0.18);
  color: var(--accent-strong);
  font-weight: 850;
  cursor: pointer;
}

.print-button svg {
  width: 19px;
  height: 19px;
}

.summary-content {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-value {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.signature-row {
  align-items: start;
}

.signature-box {
  min-height: 88px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.signature-image {
  display: block;
  width: min(360px, 100%);
  min-height: 88px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(230, 141, 56, 0.45);
  outline-offset: 3px;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.job-field {
  display: grid;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.job-field span {
  color: var(--muted);
  font-weight: 750;
}

.job-input-wrap {
  width: 100%;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(24, 27, 34, 0.88);
}

.job-field input {
  width: 8.2em;
  min-width: 0;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.job-field .text-entry {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(24, 27, 34, 0.88);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  text-align: left;
}

.job-field textarea.text-entry {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.job-input-wrap:has(input[aria-invalid="true"]) {
  border-color: #b94d3f;
}

.field-hint {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.reports-link {
  justify-self: center;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none;
}

.reports-link:hover {
  text-decoration: underline;
}

.reports-app {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
}

.reports-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.reports-topbar h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.reports-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.reports-list-panel,
.report-editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: var(--shadow);
  padding: 20px;
}

.reports-list-panel h2,
.editor-header h2 {
  margin: 0 0 14px;
}

.reports-list {
  display: grid;
  gap: 10px;
}

.report-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(35, 39, 48, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.report-list-item.is-selected {
  border-color: rgba(20, 108, 114, 0.45);
  background: rgba(20, 108, 114, 0.1);
}

.report-list-item span,
.report-list-item small,
.empty-report-message {
  color: var(--muted);
  font-weight: 750;
}

.report-editor {
  display: grid;
  gap: 16px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  background: #6f7681;
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.report-timer-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-timer-edit,
.signature-preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(35, 39, 48, 0.7);
}

.report-timer-edit h3,
.signature-preview-panel h3 {
  margin: 0;
}

.report-timer-edit label {
  display: grid;
  gap: 6px;
}

.report-timer-edit label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.report-timer-edit input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.report-timer-edit p {
  margin: 0;
  font-weight: 850;
}

.print-report-panel {
  display: none;
}

.calendar-app {
  width: min(1280px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.job-bank-panel,
.month-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  padding: 20px;
}

.job-bank-panel {
  align-self: start;
  display: grid;
  gap: 14px;
}

.job-bank-panel h2,
.month-toolbar h2 {
  margin: 0;
}

.calendar-job-list,
.calendar-day-jobs {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.calendar-job-card {
  min-width: 0;
  border: 1px solid rgba(20, 108, 114, 0.26);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(141, 148, 159, 0.18);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  cursor: grab;
}

.calendar-job-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.calendar-job-card button {
  flex: 0 0 auto;
  width: 26px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(25, 26, 29, 0.1);
  color: var(--ink);
  cursor: pointer;
}

.month-panel {
  display: grid;
  gap: 14px;
}

.month-toolbar {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.month-toolbar h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-width: 0;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(35, 39, 48, 0.72);
}

.calendar-day-jobs {
  align-content: start;
}

.calendar-day .calendar-job-card {
  gap: 5px;
  padding: 7px;
  font-size: 0.78rem;
}

.calendar-day .calendar-job-card button {
  width: 22px;
  min-height: 22px;
  padding: 0;
}

.calendar-day strong {
  font-size: 0.95rem;
}

.calendar-day.is-outside-month {
  opacity: 0.5;
}

.calendar-day.is-drag-over {
  outline: 3px solid rgba(230, 141, 56, 0.45);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .app-shell {
    align-items: start;
    padding: 16px 0 28px;
  }

  .timer-panel {
    min-height: auto;
  }

  .timer-grid {
    grid-template-columns: 1fr;
  }

  .timer-card {
    min-height: 320px;
  }

  .reports-layout {
    grid-template-columns: 1fr;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .weekday-row,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 108px;
    padding: 7px;
  }

  .report-timer-edit-grid {
    grid-template-columns: 1fr;
  }

  .reports-topbar,
  .editor-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 1100px);
  }

  .timer-panel {
    padding: 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .job-number-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .job-number-field {
    width: 100%;
  }

  .controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .summary-header {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    min-width: 0;
  }

  .weekday-row span {
    font-size: 0.68rem;
  }

  .calendar-job-card {
    font-size: 0.78rem;
    padding: 7px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff;
    min-height: 0;
  }

  .app-shell {
    width: 100%;
    min-height: 0;
    display: block;
    padding: 0;
  }

  .timer-panel {
    min-height: 0;
    display: block;
    border: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
  }

  .job-header,
  .job-details,
  .timer-grid,
  .complete-button {
    display: none;
  }

  .completion-panel {
    display: block;
  }

  .summary-panel {
    display: block;
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
  }

  .print-button {
    display: none;
  }

  .screen-title,
  .print-hidden {
    display: none;
  }

  .print-title {
    display: inline;
  }

  .summary-row {
    break-inside: avoid;
  }

  .reports-app > :not(.print-report-panel) {
    display: none;
  }

  .print-report-panel {
    display: block;
    padding: 0;
  }
}
