/* Follows the Infinite Machine design system's Olto app kit:
   white page, flat #F0F0F0 rows on an 8px gutter, black type at regular weight,
   small uppercase gray labels, Electric Green only as the "active" dot. */

:root {
  --black: #000;
  --white: #fff;
  --row: #f0f0f0;
  --secondary: #9c9c9c;
  --hairline: #e4e4e4;
  --green: #00ff57;
  --gutter: 8px;
  --inset: 21px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --numerals: "Michroma", "Eurostile Extended", var(--font);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
}

p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: 0; }

/* Header */
.top { padding: 20px var(--inset) 28px; }
.wordmark { display: block; height: 11px; }

/* Small uppercase label */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 0 var(--inset);
  margin: 0 0 12px;
}

h1 {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding: 0 var(--inset);
  margin: 0 0 28px;
}

/* Inputs and buttons: flat, full width, same 72px height */
input {
  display: block;
  width: 100%;
  height: 72px;
  padding: 0 var(--inset);
  font: inherit;
  font-size: 19px; /* 16px+ stops iPhone from zooming in */
  color: var(--black);
  background: var(--row);
  border: 1px solid var(--row);
  border-radius: 0;
  margin-bottom: var(--gutter);
  -webkit-appearance: none;
}
input::placeholder { color: var(--secondary); }
input:focus { outline: none; border-color: var(--black); }

.btn {
  display: block;
  width: 100%;
  height: 72px;
  padding: 0 var(--inset);
  font-size: 19px;
  text-align: left;
  background: var(--row);
  margin-bottom: var(--gutter);
}
.btn.primary { background: var(--black); color: var(--white); }
.btn:active, .row:active { opacity: 0.6; }

/* Sign in with Google: the G mark sits on a white tile so its colors hold on black */
.btn.google { display: flex; align-items: center; gap: 14px; }
.btn.google svg { width: 30px; height: 30px; padding: 6px; background: var(--white); }
.btn:disabled { opacity: 0.5; }
.status { font-size: 15px; color: var(--secondary); padding: 8px var(--inset) 0; min-height: 1.4em; }

.link {
  background: none;
  padding: 8px 0;
  font-size: 15px;
  color: var(--secondary);
}

/* Name + "Not you?" */
.who {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--inset);
  margin-bottom: 24px;
  font-size: 19px;
}

/* Task list: 96px rows with a chevron, like the Olto app menu */
#activities { display: grid; gap: var(--gutter); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 96px;
  padding: 0 22px 0 var(--inset);
  font-size: 19px;
  text-align: left;
  background: var(--row);
}
.chevron { width: 8px; height: 14px; fill: none; stroke: var(--secondary); stroke-width: 1.5; }

/* Checked-in panel */
#current { margin-bottom: 36px; }
#current .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--black); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
#current-activity { font-size: 19px; padding: 0 var(--inset); }
#current-timer {
  font-family: var(--numerals);
  font-size: clamp(44px, 14vw, 64px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  padding: 16px var(--inset) 4px;
}
#current-since { font-size: 15px; color: var(--secondary); padding: 6px var(--inset) 24px; }

#other-form { margin-top: var(--gutter); }

#sync { text-align: center; margin: 32px 0 0; }
#sync.waiting { color: var(--black); }
