@charset "UTF-8";

/* Brand refresh. System fonts and local assets keep the Raspberry app light. */
:root {
  --blue: #087dbb;
  --blue-dark: #06699e;
  --navy: #102b55;
  --bg: #f5f8fc;
  --line: #e1e9f2;
  --muted: #52647a;
  --shadow: 0 6px 24px #16365b06, 0 1px 3px #16365b04;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
body { min-height: 100dvh; }
button { transition: background .18s, box-shadow .18s, transform .18s; }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { cursor: default; }
button:not(.ghost):not(.secondary):not(.danger):not(:disabled):hover { box-shadow: 0 4px 16px #087dbb22; }
input, select, textarea { border-color: #cbd7e5; background: #fbfcfe; border-radius: 13px; }
input:focus, select:focus, textarea:focus { background: white; }
label.field { gap: 9px; }
.header { background: #fff; border-top: 3px solid var(--blue); }
.header-inner { max-width: 1120px; min-height: 91px; padding: 12px 28px; }
.brand img { width: 92px; }
.header-label { font-size: .95rem; }
.header-label span { font-size: .8rem; }
#logout { border: 1px solid var(--line); border-radius: 50px; min-height: 42px; padding: 8px 18px; }
#main { padding-top: 36px; }
h1 { letter-spacing: -1px; font-weight: 750; }
h2 { letter-spacing: -.3px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: 1.6px; }
.eyebrow::before { content: ""; width: 5px; height: 14px; border-radius: 3px; background: var(--blue); }
.page-top { margin-bottom: 28px; }
.card { border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.metric { border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.metric strong { font-size: 2rem; letter-spacing: -1px; }
.metric span { display: block; margin-top: 5px; }
.metric.blue { background: #e9f5fd; border-color: #d0e9f7; }
.avatar { background: #e9f5fd; border: 1px solid #d7edfa; border-radius: 16px; }
.badge { border-radius: 30px; padding: 5px 11px; }
.person { gap: 16px; }
.person-details { line-height: 1.8; }
.person .row { min-width: 0; }
.person .row > div:last-child { min-width: 0; }
.day-item.day-clear { border-radius: 18px; box-shadow: 0 2px 6px #16365b03; }
.day-amount { border-radius: 12px; background: #f5f8fc; }
.day-amount.primary { background: #e9f5fd; }
.day-summary { border-top-style: dashed; }
.day-city { font-size: .85rem; }
.notice { border-radius: 14px; line-height: 1.6; }
.notice-card { border-left: 4px solid var(--blue); }
.bottom-nav {
  width: min(100% - 32px, 1020px);
  left: 50%; right: auto; bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%); border: 1px solid #dce6f0; border-radius: 22px;
  padding: 8px; background: #fffffffa; box-shadow: 0 8px 35px #102b5512;
}
.bottom-nav button { min-height: 52px; border-radius: 15px; font-weight: 600; }
.bottom-nav button.active { background: #e9f5fd; }
.toast { display: flex; align-items: center; gap: 12px; border-radius: 18px; border: 1px solid #ffffff25; }
.toast > .icon { color: #8ae2c0; }
.toast.error > .icon { color: white; }
.toast span { min-width: 0; overflow-wrap: anywhere; }
dialog { border-radius: 24px; }
.preference-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #e9f5fd; color: var(--blue-dark); font-size: 1.6rem; }
.sound-switch { background: #f5f8fc; border: 1px solid var(--line); border-radius: 13px; padding: 16px; align-items: center; }

/* Login: one clear form, with a compact introduction on phones. */
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 76px; align-items: center; padding: 40px 0; }
.login { width: 100%; max-width: 440px; margin: 0; }
.login .card { padding: 32px; border-radius: 26px; box-shadow: 0 16px 50px #102b5509; }
.login-intro { margin-bottom: 26px; }
.login-intro h2 { font-size: 1.7rem; line-height: 1.2; letter-spacing: -.8px; }
.login-intro .sub { font-size: .95rem; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; margin-top: 4px; }
.login-note { max-width: 300px; margin: 20px auto 0; line-height: 1.6; font-size: .8rem; }
.welcome-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #cce5f5; background: #e9f5fd; color: var(--blue-dark); border-radius: 30px; font-size: .85rem; font-weight: 650; }
.welcome-tag .icon { width: 18px; height: 18px; }
.login-welcome h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -1.9px; margin-top: 22px; line-height: 1.08; }
.login-welcome > .sub { font-size: 1.05rem; line-height: 1.8; max-width: 400px; margin-top: 18px; }
.welcome-day { background: var(--navy); color: white; border-radius: 24px; padding: 24px; margin-top: 32px; max-width: 420px; box-shadow: 0 14px 30px #102b5515; }
.welcome-day > .row { font-size: .66rem; letter-spacing: 1.4px; color: #badcf1; }
.welcome-day > .row .icon { color: #87dbb5; }
.welcome-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 24px 0 20px; }
.welcome-steps > div { display: flex; align-items: center; flex-direction: column; gap: 12px; font-size: .8rem; }
.welcome-steps .icon { box-sizing: content-box; width: 22px; height: 22px; padding: 12px; border: 1px solid #ffffff22; border-radius: 16px; background: #ffffff08; color: #a2ddff; }
.welcome-day > p { padding-top: 18px; border-top: 1px solid #ffffff18; font-size: .8rem; color: #badcf1; }
.welcome-features { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .8rem; }
.welcome-features span { display: inline-flex; gap: 7px; align-items: center; }
.welcome-features .icon { width: 17px; height: 17px; color: var(--blue); }

/* Punch: the clock and the next step lead the page. */
.punch-card { padding: 22px; }
.time-panel { position: relative; overflow: hidden; border-radius: 19px; padding: 26px; margin-bottom: 18px; }
.time-panel::after { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; bottom: -125px; border: 36px solid #ffffff04; border-radius: 50%; pointer-events: none; }
.clock-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; position: relative; z-index: 1; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: #c5e6fa; font-size: .75rem; font-weight: 600; }
.live-label > span { width: 6px; height: 6px; border-radius: 50%; background: #8bdcc2; box-shadow: 0 0 0 4px #8bdcc212; }
.shift-status { border: 1px solid #ffffff26; padding: 5px 10px; border-radius: 30px; font-size: .68rem; color: #eff8ff; background: #ffffff08; }
.time-panel .clock { font-size: clamp(3.5rem, 6vw, 4.5rem); font-weight: 650; letter-spacing: -2px; line-height: 1.1; }
.time-panel > p:last-child { font-size: .8rem; color: #bddcf0; margin-top: 12px; position: relative; z-index: 1; }
.punch-card .primary-action { margin: 0 0 18px; min-height: 64px; border-radius: 16px; box-shadow: 0 6px 16px #087dbb22; }
.punch-progress { margin: 24px 0 12px; }
.punch-progress .row { font-size: .75rem; color: var(--muted); }
.punch-progress strong { color: var(--navy); font-weight: 650; }
.progress-steps { display: flex; gap: 5px; margin-top: 10px; }
.progress-steps span { flex: 1; height: 4px; border-radius: 5px; background: #e8eef5; }
.progress-steps span.complete { background: var(--blue); }
.today-event { padding: 16px 0; }
.event-icon { width: 42px; height: 42px; border-radius: 14px; background: #f1f5fa; }
.today-event.done .event-icon { background: #e7f6ee; }
.today-event strong { font-size: 1.12rem; }
.punch-sidebar .card { padding: 26px; }
.punch-sidebar h2 { font-size: 1.1rem; }
.punch-sidebar .sub { font-size: .95rem; line-height: 1.75; }
.punch-sidebar .card > .row > .icon { box-sizing: content-box; padding: 9px; color: var(--blue); background: #e9f5fd; border-radius: 12px; width: 18px; height: 18px; }

/* Short brand introduction, shown once per tab session. No autoplay audio. */
.app-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--navy); color: white; transition: opacity .22s; }
.intro-content { text-align: center; width: min(100%, 340px); animation: intro-arrive .65s ease-out both; }
.intro-logo { width: 216px; height: 174px; padding: 18px; border-radius: 26px; background: white; display: grid; place-items: center; margin: 0 auto 30px; box-shadow: 0 15px 60px #00000022; }
.intro-logo img { width: 180px; height: auto; }
.intro-title { font-size: 1.8rem; letter-spacing: -1px; font-weight: 650; }
.intro-sub { font-size: .85rem; color: #c3e0f1; margin-top: 10px; }
.intro-track { margin: 28px auto 0; width: 100px; height: 3px; background: #ffffff16; border-radius: 4px; overflow: hidden; }
.intro-track span { display: block; width: 100%; height: 100%; background: #51b7e6; transform-origin: left; animation: intro-track 1.2s ease-out both; }
.intro-footer { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); font-size: .63rem; letter-spacing: 2.5px; color: #a4c6dc; }
.intro-skip { position: absolute; right: 18px; top: calc(18px + env(safe-area-inset-top)); background: #ffffff0a; border: 1px solid #ffffff20; color: white; border-radius: 30px; min-height: 44px; font-size: .8rem; }
.intro-leaving { opacity: 0; pointer-events: none; }
@keyframes intro-arrive { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes intro-track { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .login-layout { gap: 35px; }
  .login .card { padding: 26px; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 80px; padding: 10px 18px; gap: 15px; }
  .brand img { width: 78px; }
  .header-label { font-size: .85rem; padding-left: 15px; }
  .header-label span { font-size: .74rem; max-width: 135px; }
  #logout { min-height: 40px; padding: 8px 13px; font-size: .85rem; }
  #main { padding: 26px 16px 125px; }
  .card { padding: 22px; border-radius: 20px; }
  .page-top { margin-bottom: 24px; }
  .page-top h1 { font-size: 1.8rem; }
  .page-top .sub { font-size: .85rem; }
  .metric { padding: 16px 12px; border-radius: 16px; }
  .metric strong { font-size: 1.55rem; }
  .metric span { font-size: .75rem; }
  .bottom-nav { width: calc(100% - 20px); border-radius: 20px; padding: 6px; }
  .bottom-nav button { min-height: 54px; padding: 6px 2px; border-radius: 14px; font-size: .68rem; gap: 5px; }
  .bottom-nav .icon { width: 22px; height: 22px; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); padding: 14px 18px; font-size: .9rem; }
  .login-layout { display: block; padding: 4px 0 0; max-width: 440px; margin: auto; }
  .login-welcome h1 { font-size: 2rem; margin-top: 15px; letter-spacing: -1.2px; }
  .login-welcome h1 br { display: none; }
  .login-welcome > .sub { font-size: .9rem; margin-top: 12px; line-height: 1.6; }
  .welcome-tag { font-size: .75rem; padding: 5px 10px; }
  .welcome-day, .welcome-features { display: none; }
  .login { margin-top: 24px; }
  .login .card { padding: 25px 22px; border-radius: 22px; }
  .login-intro h2 { font-size: 1.45rem; }
  .login-intro .eyebrow { display: none; }
  .login-intro { margin-bottom: 24px; }
  .punch-card { padding: 18px; }
  .time-panel { padding: 24px 20px; border-radius: 17px; }
  .time-panel .clock { font-size: 3.65rem; }
  .punch-card .primary-action { min-height: 62px; font-size: 1.05rem; }
  .today-event { gap: 12px; }
  .today-event span { font-size: .9rem; }
  .punch-sidebar .card { padding: 22px; }
}
@media (max-width: 370px) {
  .header-inner { padding: 10px 12px; gap: 10px; }
  .header-label { padding-left: 10px; }
  .brand img { width: 68px; }
  #main { padding-inline: 12px; }
  .clock-heading { align-items: flex-start; flex-direction: column; }
  .time-panel .clock { font-size: 3.3rem; }
  .bottom-nav button { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
