:root { color-scheme: light dark; --bg: #f4f5f7; --surface: rgba(255,255,255,.72); --text: #191a1e; --muted: #72747b; --line: rgba(25,26,30,.09); --blue: #1877f2; --green: #27a469; --off: #62646b; --shadow: 0 16px 42px rgba(23,30,45,.10); }
@media (prefers-color-scheme: dark) { :root { --bg: #101114; --surface: rgba(31,32,37,.74); --text: #f5f5f7; --muted: #a6a7af; --line: rgba(255,255,255,.10); --off: #777a83; --shadow: 0 18px 44px rgba(0,0,0,.25); } }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; background: radial-gradient(circle at 12% -10%, rgba(24,119,242,.16), transparent 32rem), radial-gradient(circle at 92% 10%, rgba(39,164,105,.12), transparent 26rem), var(--bg); } button { font: inherit; } .app-shell { width: min(100%, 860px); min-height: 100dvh; margin: auto; padding: max(24px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom)); } .app-header, .calendar-toolbar, .day-details__shift { display: flex; align-items: center; } .app-header { justify-content: space-between; margin: 8px 4px 20px; } h1,h2,p { margin: 0; } h1 { margin-top: 3px; font-size: clamp(1.75rem, 5vw, 2.45rem); letter-spacing: -.045em; } .eyebrow,.section-label { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } .card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 26px; } .today-button,.icon-button { border: 0; cursor: pointer; color: var(--blue); background: rgba(24,119,242,.11); font-weight: 700; transition: transform .18s ease, background .18s ease; } .today-button:hover,.icon-button:hover { transform: scale(1.04); background: rgba(24,119,242,.18); } .today-button { padding: 10px 14px; border-radius: 12px; } .next-shift { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px; margin-bottom: 16px; } .next-shift h2 { margin: 5px 0 4px; font-size: 1.42rem; letter-spacing: -.025em; } .next-shift__copy > p:last-child { color: var(--muted); } .shift-badge { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border-radius: 19px; color: #fff; font-size: .96rem; font-weight: 800; } .shift-day { --shift-color: var(--blue); } .shift-evening { --shift-color: var(--green); } .shift-off { --shift-color: var(--off); } .shift-badge.shift-day,.shift-badge.shift-evening,.shift-badge.shift-off { background: var(--shift-color); } .calendar { overflow: hidden; padding: 10px 10px 14px; } .calendar-toolbar { justify-content: space-between; padding: 3px 2px 13px; } .calendar-toolbar h2 { font-size: 1.08rem; letter-spacing: -.02em; } .icon-button { width: 38px; height: 38px; border-radius: 50%; font-size: 2rem; font-weight: 400; line-height: 1; } .weekdays,.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .weekdays { color: var(--muted); padding-bottom: 6px; font-size: .72rem; font-weight: 700; text-align: center; } .calendar-day { position: relative; display: flex; min-height: 74px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 1px; border: 1px solid transparent; border-radius: 16px; color: var(--text); cursor: pointer; background: transparent; transition: background .18s ease, transform .18s ease; } .calendar-day:hover { background: rgba(127,127,127,.1); } .calendar-day:active { transform: scale(.93); } .calendar-day.is-outside { opacity: .31; } .calendar-day.is-selected { border-color: var(--shift-color); background: color-mix(in srgb, var(--shift-color) 15%, transparent); } .calendar-day.is-today .day-number { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: white; background: var(--blue); } .day-number { font-size: .93rem; font-weight: 700; } .day-shift { min-width: 35px; border-radius: 7px; padding: 2px 4px; color: var(--shift-color); background: color-mix(in srgb, var(--shift-color) 16%, transparent); font-size: .65rem; font-weight: 800; line-height: 1.1; } .day-details { margin-top: 16px; padding: 18px 20px; } .day-details__heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; } #selected-date { font-weight: 700; } .day-details__shift { gap: 11px; margin-top: 14px; } .shift-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--shift-color); } .day-details__shift strong,.day-details__shift span { display: block; } .day-details__shift strong { font-size: 1.08rem; } #selected-hours { margin-top: 2px; color: var(--muted); font-size: .88rem; } .rotation-label { margin-left: auto; border-radius: 8px; padding: 5px 8px; color: var(--muted); background: rgba(127,127,127,.12); font-size: .72rem; font-weight: 700; } @media (min-width: 700px) { .app-shell { padding-inline: 28px; } .calendar { padding: 14px 16px 18px; } .calendar-day { min-height: 88px; } } @media (max-width: 390px) { .app-shell { padding-inline: 12px; } .calendar-day { min-height: 66px; } .weekdays { font-size: .65rem; } .day-shift { font-size: .6rem; } }
