:root {
  --bg: #fff5f7;
  --card: #ffffff;
  --ink: #4a3b44;
  --muted: #a08b96;
  --accent: #ff8fb1;
  --accent-ink: #ffffff;
  --shadow: 0 6px 20px rgba(255, 143, 177, 0.18);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241c20; --card: #322830; --ink: #f6e9ef;
    --muted: #b79aa7; --accent: #ff8fb1; --accent-ink: #2a1e25;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }
.app { max-width: 480px; margin: 0 auto; padding: 20px 16px; }
.screen__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.screen__title, h1 { font-size: 1.5rem; margin: 4px 0 16px; }
.sub { font-size: 1.05rem; color: var(--muted); margin: 24px 0 8px; }

.pager { display: flex; align-items: center; justify-content: space-between; }
.pager__label { font-weight: 600; }

.job-cards { display: flex; flex-direction: column; gap: 14px; }
.job-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.job-card__name { margin: 0 0 2px; font-size: 1.15rem; }
.job-card__period { margin: 0; color: var(--muted); font-size: 0.85rem; }
.job-card__hours { margin: 10px 0 0; color: var(--muted); }
.job-card__pay { margin: 2px 0 0; font-size: 2rem; font-weight: 700; color: var(--accent); }
.combined { text-align: center; color: var(--muted); margin-top: 18px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--muted); }
.hm { display: flex; gap: 12px; }
.hm label { flex: 1; }
input, select {
  font: inherit; color: var(--ink); background: var(--card);
  border: 2px solid transparent; border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow);
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

.btn { font: inherit; border: none; border-radius: 999px; padding: 12px 18px; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: var(--shadow); }
.btn--round { background: var(--card); width: 40px; height: 40px; box-shadow: var(--shadow); }

.job-list, .entry-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.entry-row, .job-list li {
  background: var(--card); border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; box-shadow: var(--shadow);
}
.entry-row__del { background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.tab { background: none; border: none; font: inherit; color: var(--muted); padding: 8px 16px; cursor: pointer; }
.tab.is-active { color: var(--accent); font-weight: 700; }
.tab--add {
  background: var(--accent); color: var(--accent-ink); width: 52px; height: 52px;
  border-radius: 999px; font-size: 1.5rem; margin-top: -20px; box-shadow: var(--shadow);
}

.gate {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 24px;
}
.gate__card { background: var(--card); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
