/* ==========================================================================
   JobLog — Frutiger Aero
   Wet glass, sky gradients, lime & aqua, drifting bubbles, glossy pills.
   ========================================================================== */

:root {
  /* Sky */
  --sky-1: #d8f2ff;
  --sky-2: #9fdcf7;
  --sky-3: #5cc0ea;
  --sky-4: #2b96cf;

  /* Ink */
  --ink:      #0a3e5c;
  --ink-soft: #3d7593;
  --ink-mute: #6d9db8;

  /* Accents */
  --aqua:      #17b3dd;
  --aqua-lite: #6fe0f7;
  --aqua-deep: #0a7ba8;
  --lime:      #8fdc4a;
  --lime-lite: #c6f58a;
  --lime-deep: #4e9e22;
  --amber:     #ffb43a;
  --rose:      #ff6b74;
  --rose-deep: #c9303c;

  /* Glass */
  --glass:        rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge:   rgba(255, 255, 255, 0.9);
  --glass-line:   rgba(10, 90, 130, 0.12);

  --radius:    22px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-lift: 0 10px 28px -10px rgba(6, 62, 96, 0.45);
  --shadow-deep: 0 22px 50px -18px rgba(6, 62, 96, 0.55);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI",
          system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(178deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 78%, var(--sky-4) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Sky furniture
   ========================================================================== */

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Sun bloom, upper right */
.bloom {
  position: absolute;
  top: -22vh; right: -18vw;
  width: 78vw; height: 78vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              rgba(255,255,255,.92) 0%,
              rgba(212,247,255,.55) 34%,
              rgba(160,230,255,0) 70%);
  filter: blur(6px);
}

/* Wet gloss sweep across the top third */
.gloss {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(184deg, rgba(255,255,255,.5), rgba(255,255,255,0) 78%);
}

/* Drifting bubbles */
.bubbles span {
  position: absolute;
  bottom: -22vh;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,.28) 26%, rgba(255,255,255,0) 46%),
    radial-gradient(circle at 68% 74%, rgba(180,245,255,.5), rgba(255,255,255,0) 52%);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: inset 0 0 18px rgba(255,255,255,.5), 0 3px 12px rgba(30,120,170,.14);
  animation: rise linear infinite;
  opacity: 0;
}

@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(.85);        opacity: 0; }
  10%  {                                                     opacity: .85; }
  50%  { transform: translate3d(16px, -62vh, 0) scale(1);   opacity: .7; }
  90%  {                                                     opacity: .3; }
  100% { transform: translate3d(-10px, -128vh, 0) scale(1.1); opacity: 0; }
}

.bubbles span:nth-child(1)  { left:  6%; width: 42px; height: 42px; animation-duration: 26s; animation-delay: -2s; }
.bubbles span:nth-child(2)  { left: 18%; width: 18px; height: 18px; animation-duration: 19s; animation-delay: -9s; }
.bubbles span:nth-child(3)  { left: 30%; width: 62px; height: 62px; animation-duration: 34s; animation-delay: -15s; }
.bubbles span:nth-child(4)  { left: 44%; width: 24px; height: 24px; animation-duration: 22s; animation-delay: -5s; }
.bubbles span:nth-child(5)  { left: 56%; width: 36px; height: 36px; animation-duration: 29s; animation-delay: -20s; }
.bubbles span:nth-child(6)  { left: 68%; width: 14px; height: 14px; animation-duration: 17s; animation-delay: -12s; }
.bubbles span:nth-child(7)  { left: 78%; width: 52px; height: 52px; animation-duration: 31s; animation-delay: -25s; }
.bubbles span:nth-child(8)  { left: 88%; width: 22px; height: 22px; animation-duration: 21s; animation-delay: -7s; }
.bubbles span:nth-child(9)  { left: 38%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: -3s; }
.bubbles span:nth-child(10) { left: 94%; width: 30px; height: 30px; animation-duration: 27s; animation-delay: -18s; }

/* ==========================================================================
   Layout
   ========================================================================== */

.screen { position: relative; z-index: 1; }

.tab-panel {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 14px) 16px calc(var(--tabbar-h) + var(--safe-bottom) + 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-panel[hidden] { display: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 0;
}

.topbar-title {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(255,255,255,.4), 0 2px 12px rgba(10,70,110,.42);
}

.topbar-sub {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 6px rgba(10,70,110,.35);
}

/* ==========================================================================
   Glass cards
   ========================================================================== */

.card {
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}

.glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.46) 42%, rgba(236,250,255,.58));
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-edge);
  box-shadow:
    var(--shadow-lift),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.4);
}

/* Specular sheen across the top of every glass panel.
   Full-bleed with an inherited radius so the panel never needs
   overflow:hidden - that used to clip the glow around a focused input. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 52%);
  pointer-events: none;
}

.card > * { position: relative; z-index: 1; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  margin: 0 0 13px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Inside a card head the flex row owns the spacing instead */
.card-head .card-title { margin: 0; }

.card-sub {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   Buttons — glossy Aero pills
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn-face { position: relative; z-index: 2; }

/* Top-half gloss + bottom bleed light: the signature Aero button */
.btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: var(--radius-pill) var(--radius-pill) 40% 40% / var(--radius-pill) var(--radius-pill) 100% 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.12));
  z-index: 1;
  pointer-events: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.42), rgba(255,255,255,0) 70%);
  z-index: 1;
  pointer-events: none;
}

.btn:active { transform: translateY(1px) scale(.985); filter: saturate(1.18) brightness(1.04); }

.btn:focus-visible {
  outline: 3px solid rgba(255,255,255,.95);
  outline-offset: 2px;
}

.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--aqua-lite), var(--aqua) 52%, var(--aqua-deep));
  box-shadow:
    0 6px 18px -6px rgba(10, 123, 168, .75),
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -2px 6px rgba(6, 70, 100, .38);
  text-shadow: 0 1px 2px rgba(4, 60, 88, .5);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--lime-lite), var(--lime) 52%, var(--lime-deep));
  box-shadow:
    0 6px 18px -6px rgba(78, 158, 34, .7),
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -2px 6px rgba(40, 92, 12, .34);
  text-shadow: 0 1px 2px rgba(38, 82, 12, .48);
}

.btn-danger {
  background: linear-gradient(180deg, #ffa3a8, var(--rose) 52%, var(--rose-deep));
  box-shadow:
    0 6px 18px -6px rgba(201, 48, 60, .62),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -2px 6px rgba(140, 24, 34, .34);
  text-shadow: 0 1px 2px rgba(120, 20, 30, .45);
}

.btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(230,246,255,.7));
  color: var(--aqua-deep);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 14px -6px rgba(10,90,130,.45), inset 0 1px 0 rgba(255,255,255,1);
  text-shadow: none;
}

.btn-block { display: flex; width: 100%; }

.btn-sm { min-height: 38px; padding: 0 15px; font-size: 14px; }

.linkish {
  background: none;
  border: none;
  padding: 6px 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--aqua-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: block; margin-bottom: 14px; }

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--ink-soft);
}

.opt { font-weight: 600; color: var(--ink-mute); }

.field-hint {
  display: block;
  margin: 6px 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
}

/* Two across when there is room, stacked when there is not - a narrow phone
   would otherwise squash "Unpaid break" and its input into each other. */
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 12px;
}

.field-row .field { min-width: 0; }

input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;           /* 16px stops iOS zooming on focus */
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,251,255,.92));
  box-shadow:
    inset 0 2px 5px rgba(20, 90, 130, .13),
    0 1px 0 rgba(255,255,255,.85);
  transition: box-shadow .18s ease, border-color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,251,255,.92)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%233d7593' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 15px center;
  padding-right: 40px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--aqua-lite);
  box-shadow:
    inset 0 2px 5px rgba(20, 90, 130, .1),
    0 0 0 4px rgba(111, 224, 247, .45);
}

input::placeholder { color: #9dbfd2; font-weight: 600; }

/* Native number spinners crowd the field and clash with the £ prefix */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-code {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .34em;
  text-align: center;
  padding-left: 18px;   /* balances the trailing letter-spacing */
  min-height: 66px;
}

.input-money, .input-suffix { position: relative; }

.money-sym {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-soft);
  pointer-events: none;
  z-index: 1;
}

.input-money input { padding-left: 34px; }

.input-suffix span {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
  pointer-events: none;
}

.input-suffix input { padding-right: 46px; }

.form-msg {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 1px;
}

.form-msg:empty { margin: 0; }
.form-msg.is-bad  { color: var(--rose-deep); }
.form-msg.is-good { color: var(--lime-deep); }

/* ==========================================================================
   Boot splash
   ========================================================================== */

.boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: linear-gradient(178deg, var(--sky-1), var(--sky-3) 72%, var(--sky-4));
  transition: opacity .35s ease;
}

.boot[hidden] { display: none; }
.boot.is-gone { opacity: 0; pointer-events: none; }

.boot-orb {
  width: 78px; height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff, rgba(255,255,255,.2) 32%, rgba(255,255,255,0) 54%),
    linear-gradient(180deg, var(--aqua-lite), var(--aqua) 55%, var(--aqua-deep));
  box-shadow: 0 12px 30px -8px rgba(8,90,130,.6), inset 0 -6px 14px rgba(6,70,100,.4);
  animation: bob 1.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-11px) scale(1.04); }
}

.boot-word {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(8,70,110,.45);
}

/* ==========================================================================
   Sign in
   ========================================================================== */

.screen-auth {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  padding: calc(var(--safe-top) + 20px) 16px calc(var(--safe-bottom) + 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-auth[hidden] { display: none; }

.auth-wrap { width: 100%; max-width: 420px; }

.brand { text-align: center; margin-bottom: 22px; }

.brand-orb {
  width: 92px; height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 33% 26%, #fff, rgba(255,255,255,.24) 30%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, var(--aqua-lite), var(--aqua) 52%, var(--aqua-deep));
  box-shadow:
    0 16px 36px -10px rgba(8,90,130,.66),
    inset 0 -8px 18px rgba(6,70,100,.44),
    inset 0 3px 0 rgba(255,255,255,.7);
}

/* Clock hand inside the brand orb */
.brand-hand, .brand-hand::after {
  position: absolute;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(6,60,90,.5);
}

.brand-hand {
  width: 3.5px; height: 26px;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  animation: sweep 8s linear infinite;
}

.brand-hand::after {
  content: "";
  width: 3.5px; height: 17px;
  left: 0; top: 26px;
  transform-origin: 50% 0;
  transform: rotate(112deg);
}

@keyframes sweep { to { transform: translate(-50%, -100%) rotate(360deg); } }

.brand-name {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(255,255,255,.28), 0 6px 22px rgba(8,70,110,.5);
}

.brand-tag {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 8px rgba(8,70,110,.4);
}

.version-chip {
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--aqua-deep);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(228,246,255,.8));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 3px 10px -4px rgba(10,90,130,.5), inset 0 1px 0 #fff;
}

.auth-card { padding: 22px; }

.credit {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 8px rgba(8,70,110,.45);
}

.credit a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Clock in / out
   ========================================================================== */

.clock-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0 4px;
}

.clock-btn {
  position: relative;
  width: min(62vw, 236px);
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.98), rgba(255,255,255,.22) 30%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--lime-lite), var(--lime) 50%, var(--lime-deep));
  box-shadow:
    0 22px 46px -14px rgba(58, 130, 26, .72),
    inset 0 -12px 26px rgba(40, 92, 12, .42),
    inset 0 4px 0 rgba(255,255,255,.72);
  transition: transform .16s cubic-bezier(.3,1.4,.5,1), box-shadow .2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.clock-btn:active { transform: scale(.955); }

.clock-btn:focus-visible { outline: 4px solid rgba(255,255,255,.95); outline-offset: 5px; }

/* Running state flips the orb to aqua and starts the pulse ring */
.clock-btn.is-running {
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.98), rgba(255,255,255,.22) 30%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--aqua-lite), var(--aqua) 50%, var(--aqua-deep));
  box-shadow:
    0 22px 46px -14px rgba(10, 123, 168, .72),
    inset 0 -12px 26px rgba(6, 70, 100, .44),
    inset 0 4px 0 rgba(255,255,255,.72);
}

.clock-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  opacity: 0;
  pointer-events: none;
}

.clock-btn.is-running .clock-ring { animation: pulse 2.4s ease-out infinite; }

@keyframes pulse {
  0%   { transform: scale(.92); opacity: .8; }
  100% { transform: scale(1.18); opacity: 0; }
}

.clock-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(10, 62, 20, .45);
}

.clock-btn.is-running .clock-face { text-shadow: 0 2px 6px rgba(4, 60, 88, .5); }

.clock-label {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.clock-timer {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.clock-timer[hidden], .clock-since[hidden] { display: none; }

.clock-since { font-size: 13px; font-weight: 700; opacity: .92; }

.clock-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 8px rgba(8,70,110,.42);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-row-3 { grid-template-columns: repeat(3, 1fr); }

.stat { padding: 15px 14px; text-align: center; }

.stat-label {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.stat-value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--aqua-deep);
  font-variant-numeric: tabular-nums;
}

.stat-foot {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-deep);
  font-variant-numeric: tabular-nums;
}

/* Big earnings hero on the reports tab */
.payout { text-align: center; padding: 24px 18px; }

.payout-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.payout-value {
  margin: 0;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--lime) 6%, var(--lime-deep) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.payout-sub {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Segmented control
   ========================================================================== */

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.36));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 2px 5px rgba(20,90,130,.14), 0 3px 12px -6px rgba(10,80,120,.4);
}

.seg-wrap { flex-wrap: wrap; }

.seg-btn {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.seg-btn.is-on {
  color: #fff;
  background: linear-gradient(180deg, var(--aqua-lite), var(--aqua) 55%, var(--aqua-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -2px 5px rgba(6,70,100,.32),
    0 3px 10px -4px rgba(10,123,168,.7);
  text-shadow: 0 1px 2px rgba(4,60,88,.45);
}

.seg-mini { padding: 3px; }
.seg-mini .seg-btn { min-height: 30px; font-size: 12.5px; padding: 0 11px; }

.custom-range { padding: 15px; }
.custom-range .field-row .field { margin-bottom: 0; }

/* ==========================================================================
   Period stepper
   ========================================================================== */

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.stepper[hidden] { display: none; }

.step-btn {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(226,246,255,.74));
  box-shadow: 0 4px 12px -6px rgba(10,90,130,.55), inset 0 1px 0 #fff;
  color: var(--aqua-deep);
  cursor: pointer;
  transition: transform .12s ease, opacity .18s ease;
}

.step-btn svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-btn:active { transform: scale(.92); }

.step-btn:disabled {
  opacity: .32;
  cursor: default;
  box-shadow: none;
}

.step-now {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.step-label {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-dates {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* Quick "last N days" shortcuts inside the custom panel */
.quick-range {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.quick-range button {
  flex: 1 1 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(226,246,255,.7));
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px -5px rgba(10,90,130,.5);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--aqua-deep);
  cursor: pointer;
  transition: transform .12s ease;
}

.quick-range button:active { transform: scale(.96); }

/* ==========================================================================
   Entries
   ========================================================================== */

.log-list { display: flex; flex-direction: column; gap: 14px; }

.day-group { padding: 15px; }

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--glass-line);
}

.day-name { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }

.day-total {
  font-size: 14px;
  font-weight: 800;
  color: var(--lime-deep);
  font-variant-numeric: tabular-nums;
}

.entry-list { display: flex; flex-direction: column; gap: 8px; }

.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(234,249,255,.62));
  box-shadow: 0 2px 8px -4px rgba(10,80,120,.4), inset 0 1px 0 rgba(255,255,255,.95);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease;
}

.entry:active { transform: scale(.985); box-shadow: 0 1px 4px -2px rgba(10,80,120,.4); }

.entry-pip {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, rgba(255,255,255,0) 58%), var(--lime);
  box-shadow: 0 0 0 3px rgba(143,220,74,.22);
}

.entry.is-running .entry-pip {
  background: radial-gradient(circle at 32% 28%, #fff, rgba(255,255,255,0) 58%), var(--aqua);
  box-shadow: 0 0 0 3px rgba(23,179,221,.24);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: .35; } }

.entry-body { flex: 1 1 auto; min-width: 0; }

.entry-times {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.entry-meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-right { flex: none; text-align: right; }

.entry-hours {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--aqua-deep);
  font-variant-numeric: tabular-nums;
}

.entry-pay {
  margin: 1px 0 0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--lime-deep);
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-mute);
}

.empty-big { font-size: 34px; display: block; margin-bottom: 8px; }

/* ==========================================================================
   Chart — horizontal glass meters
   ========================================================================== */

.chart { display: flex; flex-direction: column; gap: 9px; }

.bar-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; }

.bar-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  position: relative;
  height: 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(214,240,252,.5));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 2px 4px rgba(20,90,130,.14);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--aqua-lite), var(--aqua) 55%, var(--aqua-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 4px rgba(6,70,100,.3);
  transition: width .5s cubic-bezier(.2,.9,.3,1);
}

.bar-fill::after {
  content: "";
  position: absolute;
  inset: 1px 1px 52% 1px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.05));
}

.bar-value {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--aqua-deep);
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: right;
}

/* ==========================================================================
   Key / value rows
   ========================================================================== */

.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-line);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.kv:last-of-type { border-bottom: none; margin-bottom: 12px; }

.kv strong {
  font-weight: 800;
  color: var(--ink);
  text-align: right;
  min-width: 0;
}

/* ==========================================================================
   Help
   ========================================================================== */

.steps {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-soft);
}

.steps li::marker {
  color: var(--aqua-deep);
  font-weight: 800;
}

.steps strong { color: var(--ink); font-weight: 800; }

/* Accordion questions */
.faq {
  border-bottom: 1px solid var(--glass-line);
}

.faq:last-of-type { border-bottom: none; }

.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 30px 13px 0;
  position: relative;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

/* Hide the platform disclosure triangles; we draw our own chevron */
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::marker { content: ""; }

.faq > summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2.4px solid var(--aqua-deep);
  border-bottom: 2.4px solid var(--aqua-deep);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform .22s ease;
}

.faq[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq > summary:focus-visible {
  outline: 3px solid var(--aqua-lite);
  outline-offset: 2px;
  border-radius: 8px;
}

.faq p {
  margin: 0 0 14px;
  padding-right: 4px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink-soft);
}

.faq strong { color: var(--ink); font-weight: 800; }
.faq em { font-style: normal; font-weight: 800; color: var(--aqua-deep); }

.inline-link {
  color: var(--aqua-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credit-help { margin: 4px 0 0; line-height: 1.7; }

.credit-version {
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}

.signout-card .card-sub { margin-bottom: 16px; }

.footnote {
  margin: 2px 4px 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(8,70,110,.4);
}

.avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,246,255,.72));
  box-shadow: 0 4px 14px -6px rgba(10,90,130,.55), inset 0 1px 0 #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.avatar span {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2.5px solid var(--aqua-deep);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Tab bar
   ========================================================================== */

.app[hidden] { display: none; }

.tabbar {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(var(--safe-bottom) + 8px);
  z-index: 20;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0 3px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 56px;
  min-width: 0;
  padding: 0 2px;
  border: none;
  border-radius: var(--radius-pill);
  background: none;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
  position: relative;
  z-index: 1;
}

/* Labels must never wrap or the bar loses its alignment */
.tab span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tab svg {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab.is-on {
  color: var(--aqua-deep);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(214,240,252,.72));
  box-shadow: 0 3px 10px -5px rgba(10,90,130,.6), inset 0 1px 0 #fff;
}

.tab.is-on svg { stroke-width: 2.3; }

/* ==========================================================================
   Edit sheet
   ========================================================================== */

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 62, 96, .42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .22s ease;
}

.sheet-scrim[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } }

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 26px 26px 0 0;
  padding: 12px 18px calc(var(--safe-bottom) + 20px);
  animation: slide-up .3s cubic-bezier(.2,.9,.25,1);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,.95);
}

@media (min-width: 520px) {
  .sheet-scrim { align-items: center; }
  .sheet { border-radius: 26px; max-height: 88dvh; }
}

@keyframes slide-up { from { transform: translateY(100%); } }

.sheet-grab {
  width: 42px; height: 5px;
  margin: 2px auto 14px;
  border-radius: var(--radius-pill);
  background: rgba(61, 117, 147, .3);
}

.sheet-title {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin: 18px 0 10px;
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toaster {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 440px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, rgba(23,179,221,.97), rgba(10,123,168,.97));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(4,60,88,.4);
  animation: toast-in .28s cubic-bezier(.2,1.2,.4,1);
  pointer-events: auto;
}

.toast.is-bad  { background: linear-gradient(180deg, rgba(255,107,116,.97), rgba(201,48,60,.97)); }
.toast.is-good { background: linear-gradient(180deg, rgba(143,220,74,.97), rgba(78,158,34,.97)); }

@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }

.toast.is-out { animation: toast-out .3s ease forwards; }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* ==========================================================================
   Motion & contrast preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bubbles { display: none; }
}

/* Frutiger Aero is a light aesthetic by nature, so the palette stays bright
   in dark mode; we only deepen the sky so it is easier on the eyes at night. */
@media (prefers-color-scheme: dark) {
  body { background: linear-gradient(178deg, #a9dff5 0%, #63bfe4 40%, #2f8dc4 76%, #14618f 100%); }
  .boot { background: linear-gradient(178deg, #a9dff5, #2f8dc4 72%, #14618f); }
}
