:root {
  color-scheme: light;
  --ink: #123b2a;
  --muted: #637265;
  --panel: #ffffff;
  --panel-strong: #fff3be;
  --field: #fafbf7;
  --line: #dfe5d8;
  --corn: #ffda45;
  --corn-dark: #b57700;
  --husk: #123b2a;
  --husk-dark: #0f2b21;
  --danger: #b7352d;
  --shadow: 0 14px 36px rgba(23, 63, 49, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9faf2;
  color: var(--ink);
  font-family: "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid rgba(185, 107, 0, 0.25);
  border-radius: 8px;
  background: #fff7d8;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  box-shadow: 0 10px 20px rgba(85, 54, 0, 0.12);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(79, 139, 58, 0.35);
  outline-offset: 2px;
}

.primary {
  background: var(--corn);
  border-color: var(--corn);
  color: var(--ink);
}

.danger {
  background: #fff1ef;
  border-color: rgba(183, 53, 45, 0.35);
  color: var(--danger);
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--corn), #fff09a);
  border: 2px solid #7d5200;
  border-radius: 8px;
  box-shadow: inset 0 -4px 0 rgba(185, 107, 0, 0.15);
  display: grid;
  font-size: 1.4rem;
  font-weight: 950;
  height: 46px;
  place-items: center;
  width: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tool-nav a {
  border-radius: 999px;
  color: #3d310f;
  font-weight: 800;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.tool-nav a:hover {
  background: rgba(255, 255, 255, 0.55);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(1rem, 4vw, 2rem) 2rem;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 430px;
  padding: 2.2rem 0 1.2rem;
}

.hero-copy {
  align-content: center;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 218, 0.74)),
    repeating-linear-gradient(90deg, rgba(23, 63, 49, 0.06), rgba(23, 63, 49, 0.06) 8px, transparent 8px, transparent 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  padding: clamp(1.4rem, 5vw, 3.25rem);
}

.eyebrow {
  color: var(--corn-dark);
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  line-height: 0.96;
  margin-bottom: 1rem;
  max-width: 780px;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.hero-copy p:last-child {
  color: #483916;
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 680px;
}

.clock-panel,
.panel,
.summary-strip,
.actions-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.clock-panel {
  align-content: center;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.4rem);
}

.clock-status {
  background: var(--panel-strong);
  border: 1px solid #e2bc4c;
  border-radius: 14px;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
}

.clock-status span {
  color: var(--muted);
  font-weight: 800;
}

.clock-status strong {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
}

.clock-actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr 1fr;
}

.privacy-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.controls-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 0.7fr;
  margin-top: 1rem;
}

.panel,
.actions-panel {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.section-heading,
.table-top,
.actions-panel {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.section-heading {
  justify-content: flex-start;
}

.section-heading p,
.actions-panel p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.corn-icon {
  background: linear-gradient(180deg, #ffe47d, var(--corn));
  border: 1px solid #d5ad38;
  border-radius: 999px 999px 8px 8px;
  color: transparent;
  display: inline-block;
  flex: 0 0 auto;
  height: 34px;
  position: relative;
  width: 22px;
}

.corn-icon::before,
.corn-icon::after {
  background: var(--husk);
  border-radius: 100% 0;
  bottom: -1px;
  content: "";
  height: 18px;
  position: absolute;
  width: 14px;
}

.corn-icon::before {
  left: -8px;
  transform: rotate(-18deg);
}

.corn-icon::after {
  right: -8px;
  transform: rotate(108deg);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field {
  color: var(--muted);
  display: grid;
  font-size: 0.83rem;
  font-weight: 850;
  gap: 0.35rem;
}

input {
  background: var(--field);
  border: 1px solid rgba(124, 82, 0, 0.28);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--corn-dark) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--corn-dark) 50%, transparent 50%) calc(100% - 12px) 18px / 6px 6px no-repeat,
    var(--field);
  border: 1px solid rgba(124, 82, 0, 0.28);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0.55rem 2rem 0.55rem 0.65rem;
  width: 100%;
}

.shift-organizer {
  align-items: end;
  background: #f6f8f1;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(210px, 260px) minmax(220px, 1fr);
  margin-top: 1rem;
  padding: 0.9rem;
}

.check-field {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 0.65rem;
  min-height: 42px;
}

.check-field input {
  accent-color: var(--husk);
  height: 18px;
  min-height: 18px;
  width: 18px;
}

.money-input,
.with-unit,
.mini-unit {
  align-items: center;
  background: var(--field);
  border: 1px solid rgba(124, 82, 0, 0.28);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.money-input span,
.with-unit span,
.mini-unit span {
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 900;
  padding: 0 0.65rem;
}

.money-input input,
.with-unit input,
.mini-unit input {
  border: 0;
  border-radius: 0;
  min-width: 0;
}

.period-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  background: #fffaf0;
  border-radius: 999px;
  min-height: 38px;
}

.chip.active {
  background: var(--husk);
  border-color: var(--husk-dark);
  color: white;
}

.summary-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(5, 1fr);
  margin: 1rem 0;
  padding: 1rem;
}

.summary-strip div {
  background: #fffefa;
  border: 1px solid rgba(185, 107, 0, 0.12);
  border-radius: 8px;
  padding: 0.85rem;
}

.summary-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.summary-strip strong {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.take-home {
  background: linear-gradient(180deg, #eaffdb, #fffefa) !important;
  border-color: rgba(79, 139, 58, 0.26) !important;
}

.shifts-panel {
  margin-top: 1rem;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgba(185, 107, 0, 0.16);
  padding: 0.55rem 0.35rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
}

.date-group-row th {
  background: #fff3be;
  border-bottom-color: #e2bc4c;
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.7rem;
}

td input {
  min-height: 38px;
}

.mini-unit {
  max-width: 130px;
}

.row-actions {
  display: flex;
  gap: 0.35rem;
}

.icon-button {
  align-items: center;
  background: #fff4ef;
  border-color: rgba(183, 53, 45, 0.28);
  color: var(--danger);
  display: grid;
  font-size: 1.25rem;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  width: 38px;
}

.duplicate-button {
  background: #f1ffe9;
  border-color: rgba(79, 139, 58, 0.3);
  color: var(--husk-dark);
  font-size: 0.82rem;
}

.empty-state {
  color: var(--muted);
  margin: 1rem 0 0;
}

.actions-panel {
  margin-top: 1rem;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
  gap: 0.75rem;
}

.kit-cobpay .kit-footer {
  margin-top: 24px;
}

@media (max-width: 920px) {
  .hero,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .table-top,
  .actions-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-nav,
  .export-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 0.8rem;
  }

  .clock-actions,
  .form-grid,
  .form-grid.two,
  .shift-organizer,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .kit-header,
  .kit-tool-identity,
  .hero,
  .controls-grid,
  .actions-panel,
  .site-footer,
  .kit-footer,
  .icon-button {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .summary-strip,
  .panel {
    box-shadow: none;
  }

  .summary-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  table {
    min-width: 0;
  }
}
