:root {
  color-scheme: light;
  --ink: #20211e;
  --ink-soft: #4d4e49;
  --muted: #7e7f77;
  --line: #dfdfd7;
  --line-strong: #c9c9c0;
  --paper: #fffefa;
  --canvas: #f4f3ef;
  --lime: #dfff64;
  --lime-soft: #f0ffc0;
  --orange: #ffb16d;
  --navy: #172b35;
  --navy-soft: #233f4a;
  --white: #fff;
  --danger: #bf4e45;
  --shadow: 0 22px 55px rgba(31, 34, 29, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 4%, rgba(223, 255, 100, 0.26), transparent 22rem),
    radial-gradient(circle at 96% 30%, rgba(255, 177, 109, 0.16), transparent 20rem),
    var(--canvas);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 43, 53, 0.35);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.ambient-one {
  top: 38rem;
  left: -12rem;
  background: rgba(223, 255, 100, 0.2);
}

.ambient-two {
  top: 8rem;
  right: -11rem;
  background: rgba(255, 177, 109, 0.18);
}

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid rgba(32, 33, 30, 0.09);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 12px 12px 12px 3px;
  font-size: 22px;
  font-weight: 800;
  transform: rotate(-5deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-eyebrow,
.section-eyebrow,
.eyebrow-line,
.privacy-badge,
.gross-tag,
.presets-label,
.schedule-head,
.note-icon,
.hero-note-top,
.result-label,
.stat-label,
.text-button,
.breakdown-count {
  letter-spacing: 0.08em;
}

.brand-eyebrow,
.section-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-name {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.privacy-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  background: #9bb63e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(155, 182, 62, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 56px;
  align-items: end;
  padding: 70px 0 66px;
}

.eyebrow-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.eyebrow-line span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  font-weight: 780;
  letter-spacing: -0.08em;
  line-height: 1.08;
}

h1 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-style: normal;
}

h1 em::after {
  position: absolute;
  right: 0.08em;
  bottom: 0.08em;
  left: 0.05em;
  z-index: -1;
  height: 0.27em;
  background: var(--lime);
  border-radius: 99px 5px 99px 10px;
  content: "";
  transform: rotate(-1.5deg);
}

.hero-description {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-note {
  padding: 24px 23px 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px 24px 24px 24px;
  box-shadow: 10px 12px 0 rgba(223, 255, 100, 0.75);
  transform: rotate(1.2deg);
}

.hero-note-top {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
}

.note-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--navy);
  background: var(--lime);
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0;
}

.hero-note p {
  margin: 22px 0 24px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.hero-note strong {
  color: var(--lime);
}

.hero-note-rule {
  height: 1px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.23);
}

.hero-note-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 25px;
  align-items: start;
}

.form-column,
.result-column {
  min-width: 0;
}

.panel,
.breakdown-card,
.formula-card {
  background: rgba(255, 254, 250, 0.86);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 30px;
}

.schedule-panel {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 31px;
}

.section-heading-with-tools {
  justify-content: space-between;
}

.section-heading-main {
  display: flex;
  gap: 13px;
  align-items: center;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--navy);
  background: var(--lime);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.section-heading h2,
.result-header h2,
.breakdown-header h2,
.formula-card h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.required-label {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  color: #8e5b1d;
  background: #fff0d5;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.money-input {
  display: flex;
  align-items: center;
  padding: 11px 17px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.money-input:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(23, 43, 53, 0.08);
}

.money-prefix {
  margin-right: 5px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 700;
}

.money-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.money-input input::-webkit-inner-spin-button,
.money-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.money-suffix {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.field-error,
.shift-error {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.field-error {
  margin: 8px 0 0;
}

.money-input:has(input[aria-invalid="true"]) {
  border-color: rgba(191, 78, 69, 0.65);
  box-shadow: 0 0 0 4px rgba(191, 78, 69, 0.08);
}

.basis-row {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.basis-row .field-label {
  margin-bottom: 0;
}

.basis-row select {
  min-width: 178px;
  padding: 11px 34px 11px 12px;
  color: var(--ink);
  background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  appearance: none;
  font-size: 11px;
  font-weight: 750;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 23px;
}

.presets-label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.chip {
  padding: 7px 10px;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chip:hover {
  color: var(--navy);
  background: var(--lime-soft);
  border-color: var(--lime);
}

.schedule-tools {
  display: flex;
  gap: 13px;
  align-items: center;
}

.workday-summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.text-button {
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.text-button:hover {
  color: #6f8b18;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.schedule-intro {
  max-width: 540px;
  margin: -7px 0 25px 44px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: -5px 0 21px 44px;
  padding: 4px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mode-tab {
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-tab:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

.mode-tab.is-active {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(31, 34, 29, 0.08);
}

.schedule-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

.schedule-table {
  min-width: 650px;
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: minmax(104px, 1.25fr) minmax(83px, 1fr) minmax(83px, 1fr) minmax(78px, 0.85fr) minmax(69px, 0.8fr) minmax(87px, 0.9fr);
  gap: 10px;
  align-items: center;
}

.schedule-head {
  padding: 0 11px 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.schedule-row {
  position: relative;
  min-height: 68px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-bottom: 0;
  transition: background 160ms ease, opacity 160ms ease;
}

.schedule-row:first-child {
  border-radius: 13px 13px 0 0;
}

.schedule-row:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
}

.schedule-row:hover {
  background: var(--white);
}

.schedule-row.is-off {
  opacity: 0.57;
}

.schedule-row.has-error {
  background: #fffaf7;
}

.day-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
}

.day-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 29px;
  height: 17px;
  padding: 2px;
  background: #d5d6cf;
  border-radius: 99px;
  transition: background 160ms ease;
}

.toggle-track span {
  width: 13px;
  height: 13px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease;
}

.day-toggle input:checked + .toggle-track {
  background: #a9c736;
}

.day-toggle input:checked + .toggle-track span {
  transform: translateX(12px);
}

.day-label {
  display: grid;
  gap: 1px;
}

.day-label strong {
  font-size: 14px;
  line-height: 1;
}

.day-label small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.field-cell {
  position: relative;
}

.shift-input {
  width: 100%;
  min-width: 0;
  padding: 10px 9px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 12px;
  font-weight: 700;
}

.shift-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 43, 53, 0.08);
}

.shift-input:disabled {
  color: #a8a9a1;
  background: #f3f3ef;
  border-color: #e6e6df;
  cursor: not-allowed;
}

.break-cell {
  display: flex;
  align-items: center;
}

.break-cell .shift-break {
  padding-right: 25px;
}

.input-unit {
  position: absolute;
  right: 9px;
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}

.hours-cell,
.pay-cell {
  display: grid;
  gap: 2px;
}

.hours-cell output,
.pay-cell output {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hours-cell small {
  color: var(--muted);
  font-size: 9px;
}

.pay-cell output {
  color: var(--navy);
}

.shift-error {
  grid-column: 2 / -1;
  margin: -4px 0 1px;
}

.schedule-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.pattern-intro {
  margin: -7px 0 21px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.pattern-rows {
  display: grid;
  gap: 8px;
}

.pattern-row {
  display: grid;
  grid-template-columns: minmax(118px, 1.2fr) minmax(112px, 1fr) 20px minmax(120px, 1fr) minmax(90px, 0.85fr) 38px;
  gap: 10px;
  align-items: center;
  padding: 13px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: background 160ms ease, border-color 160ms ease;
}

.pattern-row:hover {
  background: var(--white);
}

.pattern-row.has-error {
  background: #fffaf7;
  border-color: rgba(191, 78, 69, 0.42);
}

.pattern-label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.pattern-number {
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--navy);
  background: var(--lime);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
}

.pattern-label > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pattern-label strong {
  font-size: 12px;
  white-space: nowrap;
}

.pattern-label small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.pattern-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.compact-input {
  position: relative;
  display: flex;
  align-items: center;
}

.compact-input input {
  width: 100%;
  min-width: 0;
  padding: 9px 47px 9px 9px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.compact-input input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 43, 53, 0.08);
}

.compact-input span {
  position: absolute;
  right: 9px;
  color: var(--muted);
  font-size: 9px;
  pointer-events: none;
  white-space: nowrap;
}

.pattern-multiply {
  align-self: end;
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.pattern-result {
  display: grid;
  gap: 2px;
  align-self: end;
  padding-bottom: 7px;
}

.pattern-result output {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.pattern-result small {
  color: var(--muted);
  font-size: 9px;
}

.remove-pattern {
  align-self: end;
  padding: 7px 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.remove-pattern:hover:not(:disabled) {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.remove-pattern:disabled {
  color: #c3c4bd;
  cursor: not-allowed;
}

.pattern-error {
  grid-column: 2 / -1;
  margin: -3px 0 1px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.5;
}

.pattern-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.add-pattern-button {
  padding: 9px 12px;
  color: var(--navy);
  background: var(--lime-soft);
  border: 1px solid rgba(155, 182, 62, 0.45);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.add-pattern-button:hover {
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-1px);
}

.pattern-total-note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.pattern-total-note.is-error {
  color: var(--danger);
}

.tiny-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  place-items: center;
  color: var(--navy);
  background: var(--lime);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.button {
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-quiet {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line-strong);
}

.button-quiet:hover {
  background: var(--white);
}

.button-dark {
  color: var(--lime);
  background: var(--navy);
}

.button-dark:hover {
  background: var(--navy-soft);
}

.action-status {
  min-height: 18px;
  margin: 9px 3px 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.result-column {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 17px;
}

.result-card {
  padding: 31px;
  color: var(--white);
  background: var(--navy);
  border-radius: 27px;
  box-shadow: 0 27px 60px rgba(23, 43, 53, 0.22);
}

.result-header,
.monthly-result,
.breakdown-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.result-eyebrow {
  color: rgba(223, 255, 100, 0.72);
}

.result-header h2 {
  color: var(--white);
  font-size: 22px;
}

.gross-tag {
  padding: 6px 8px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
}

.primary-result {
  padding: 36px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.result-label {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 800;
}

.primary-amount {
  display: block;
  margin: 7px 0 10px;
  color: var(--lime);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 820;
  letter-spacing: -0.09em;
  line-height: 1;
}

.result-subline {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.monthly-result {
  gap: 16px;
  align-items: end;
  padding: 24px 0 25px;
}

.monthly-amount {
  color: var(--white);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.result-message {
  min-height: 37px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--orange);
  font-size: 10px;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.stat-item {
  min-height: 70px;
  padding: 14px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 750;
}

.stat-item strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.breakdown-card {
  padding: 25px 27px 18px;
}

.breakdown-header {
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}

.breakdown-header h2 {
  font-size: 17px;
}

.breakdown-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.breakdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 50px minmax(50px, 1fr) 42px 76px;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  border-top: 1px solid var(--line);
}

.breakdown-day {
  display: flex;
  gap: 5px;
  align-items: baseline;
}

.breakdown-day strong {
  font-size: 14px;
}

.breakdown-day small {
  color: var(--muted);
  font-size: 9px;
}

.breakdown-bar {
  display: block;
  height: 5px;
  overflow: hidden;
  background: #e9e9e2;
  border-radius: 99px;
}

.breakdown-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
}

.breakdown-hours,
.breakdown-pay {
  text-align: right;
  white-space: nowrap;
}

.breakdown-hours {
  color: var(--muted);
  font-size: 10px;
}

.breakdown-pay {
  color: var(--navy);
  font-size: 11px;
}

.breakdown-empty {
  padding: 15px 0 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
}

.formula-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 23px;
  box-shadow: none;
}

.formula-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--navy);
  background: var(--lime);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 850;
}

.formula-card h2 {
  margin: 1px 0 8px;
  font-size: 13px;
}

.formula-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 45px 0 35px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
  }

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

  .result-column {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .result-card {
    grid-row: span 2;
  }

  .formula-card {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 26px, 520px);
  }

  .site-header {
    min-height: 79px;
  }

  .privacy-badge {
    max-width: 110px;
    text-align: right;
    line-height: 1.4;
  }

  .hero {
    display: block;
    padding: 47px 0 48px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-note {
    width: min(100%, 285px);
    margin: 35px 11px 0 auto;
  }

  .panel,
  .result-card,
  .breakdown-card {
    padding: 23px 19px;
    border-radius: 21px;
  }

  .section-heading-with-tools {
    display: block;
  }

  .schedule-tools {
    justify-content: space-between;
    margin: 17px 0 0 44px;
  }

  .schedule-intro {
    margin-left: 0;
  }

  .mode-switch {
    margin-left: 0;
  }

  .pattern-intro {
    margin-left: 0;
  }

  .pattern-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .pattern-label {
    grid-column: 1 / -1;
  }

  .pattern-multiply {
    display: none;
  }

  .pattern-result {
    grid-column: 1;
  }

  .remove-pattern {
    grid-column: 2;
    justify-self: end;
  }

  .pattern-error {
    grid-column: 1 / -1;
  }

  .pattern-actions {
    display: block;
  }

  .add-pattern-button {
    width: 100%;
  }

  .pattern-total-note {
    display: block;
    margin-top: 10px;
  }

  .basis-row {
    display: block;
  }

  .basis-row select {
    width: 100%;
    margin-top: 13px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .button {
    flex: 1;
    padding-right: 10px;
    padding-left: 10px;
  }

  .result-column {
    display: block;
  }

  .breakdown-card,
  .formula-card {
    margin-top: 17px;
  }

  .formula-card {
    grid-column: auto;
  }

  .primary-amount {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .site-footer {
    display: block;
    padding-top: 35px;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
