:root {
  color-scheme: light dark;
  --background: #f2f2f7;
  --surface: #fff;
  --label: #000;
  --secondary: #6c6c70;
  --separator: #e5e5ea;
  --tint: #007aff;
  --error: #c9342a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--label); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 4px; }
.app { max-width: 640px; margin: 0 auto; padding: 0 20px calc(32px + env(safe-area-inset-bottom)); }
.navigation { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding-top: env(safe-area-inset-top); }
.app-name { color: var(--label); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.text-button { color: var(--tint); background: none; border: 0; min-height: 44px; padding: 8px 0 8px 12px; font-size: 17px; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin: 22px 0 7px; }
.summary { font-size: 13px; color: var(--secondary); line-height: 1.5; margin: 0 0 25px; }
.jobs-list { display: flex; flex-direction: column; gap: 25px; }
.day-heading { color: var(--secondary); font-size: 13px; line-height: 1.4; font-weight: 500; margin: 0 0 7px 16px; }
.day-jobs { background: var(--surface); border-radius: 10px; overflow: hidden; }
.job-card { position: relative; padding: 15px 16px; }
.job-card + .job-card::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--separator); }
.job-title { font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.job-school { font-size: 15px; line-height: 1.4; margin: 4px 0 0; overflow-wrap: anywhere; }
.job-time { font-size: 15px; color: var(--secondary); line-height: 1.4; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.job-duration { font-size: 13px; color: var(--secondary); line-height: 1.4; margin: 5px 0 0; }
.error { color: var(--error); font-size: 15px; line-height: 1.4; margin: 15px 0 20px; }
.loading { color: var(--secondary); font-size: 15px; padding: 20px 0; }
.empty-state { text-align: center; padding: 65px 0; }
.empty-state h2 { font-size: 17px; color: var(--secondary); font-weight: 400; margin: 0; }
.login-view { margin-top: 42px; }
.login-view h1 { margin-bottom: 28px; }
.password-row { display: flex; align-items: center; background: var(--surface); border-radius: 10px; padding: 0 16px; }
.password-row input { flex: 1; min-width: 0; width: 100%; height: 52px; border: 0; padding: 12px 0; background: none; color: var(--label); font-size: 17px; outline-offset: -2px; }
.password-row input::placeholder { color: var(--secondary); }
.password-row .text-button { font-size: 15px; min-width: 50px; }
.sign-in-button { display: block; width: 100%; min-height: 50px; margin-top: 20px; padding: 12px 16px; color: #fff; background: var(--tint); border: 0; border-radius: 10px; font-size: 17px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 700px) {
  .app { padding-top: 20px; }
  .login-view { max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (prefers-color-scheme: dark) {
  :root { --background: #000; --surface: #1c1c1e; --label: #fff; --secondary: #98989d; --separator: #38383a; --tint: #0a84ff; --error: #ff6961; }
}
