@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #0f1b2d;
  --muted: #4f5f75;
  --blue: #2b4f9e;
  --blue-deep: #213d7c;
  --blue-light: #edf2fa;
  --green: #0b7d58;
  --green-light: #e3f6ee;
  --amber: #985108;
  --amber-light: #fff2e2;
  --signal: #9db8ea;
  --bg: #f3f5fa;
  --border: #e1e6ef;
  --radius: 20px;
  --shadow: 0 1px 2px #0f1b2d0a, 0 10px 28px -12px #0f1b2d29;
  --shadow-lift: 0 2px 4px #0f1b2d0d, 0 18px 40px -16px #2b4f9e40;
  --nav-surface: #0b1424;
  --nav-text: #b8c3d6;
  --nav-selected: #ffffff14;
  --field-sky: #d4e3ff;
  --field-ice: #eef3ff;
  --motion-fast: 160ms;
  --motion-enter: 420ms;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
  --motion-spring: cubic-bezier(.34,1.56,.64,1);
  font-family: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}
.page-heading h1 { letter-spacing: -.045em; }
.sidebar {
  background: radial-gradient(120% 60% at 0% 0%, #2b4f9e33, transparent 60%),
    radial-gradient(80% 40% at 100% 100%, #2b4f9e14, transparent 70%), var(--nav-surface);
  border-right: 0;
}
.sidebar .brand { background: #fff; border-radius: 14px; margin: 10px; padding: 10px; }
.sidebar .nav-item, .sidebar .side-label { color: var(--nav-text); }
.sidebar .nav-item:hover, .sidebar .nav-item.active { background: var(--nav-selected); color: #fff; }
.sidebar .nav-item:focus-visible { outline-color: #a7d8ff; }
.sidebar .help-card { display: none; }
.workarea { background: var(--bg); }
.topbar { background: #f8fbff; border-bottom-color: var(--border); }
.mobile-content {
  background: radial-gradient(ellipse at 8% 4%, var(--field-sky), transparent 55%),
    linear-gradient(155deg, #f6faff 30%, var(--field-ice));
  border-radius: 26px;
}
.mobile-content .page-heading h1 { font-size: clamp(32px, 8vw, 44px); }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shift-card {
  padding: clamp(18px, 4vw, 28px);
  background: linear-gradient(145deg, #fff 50%, #edf5fc);
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: 0 10px 26px #213b6121;
}
.shift-card h2 { font-size: clamp(24px, 6vw, 34px); margin: 20px 0 6px; line-height: 1.18; }
.shift-card p, .shift-note p { color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.shift-project { display: block; margin-bottom: 4px; }
.shift-card .punch-help { margin: 6px 0 10px; text-align: center; font-size: 13px; }
.shift-label, .shift-meta span, .location-line span { display: inline-flex; align-items: center; gap: 8px; }
.shift-label { color: var(--blue); font-weight: 700; }
.shift-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0; }
.shift-meta .icon, .shift-label .icon, .location-line .icon { width: 17px; height: 17px; }
.punch-action { min-height: 56px; font-size: 16px; margin-top: 8px; }
.shift-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.location-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px; }
.location-line .action-link { min-height: 44px; white-space: nowrap; }
.shift-summary, .shift-note { margin-top: 12px; }
.shift-note p { margin-top: 8px; white-space: pre-wrap; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.report-tabs button {
  border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; min-height: 42px;
  color: var(--muted); background: transparent; font-weight: 650;
}
.report-tabs button[aria-pressed="true"] { border-color: #c6d8eb; background: var(--blue-light); color: var(--blue); }
.report-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin: 16px 0; }
.report-filters label, .map-site-label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; min-width: 0; }
.report-filters select, .report-filters input, .map-site-label select {
  width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 8px;
  background: white; padding: 8px; color: var(--ink); font-size: 14px;
}
.report-period, .map-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.report-period { border-radius: 8px; background: var(--blue-light); padding: 10px 12px; color: var(--blue); }
.report-table { margin-top: 10px; }
.report-table tbody tr:nth-child(even) { background: #f6f8fc; }
.report-table td { font-variant-numeric: tabular-nums; }
.monthly-exports { margin-top: 14px; }
.monthly-exports summary { cursor: pointer; font-weight: 650; }
.monthly-exports label { display: inline-block; margin: 12px 8px 12px 0; }
.map-card { min-width: 0; }
.map-card iframe { display: block; width: 100%; height: clamp(250px, 38vw, 340px); margin: 10px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--blue-light); }
.map-placeholder { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--blue-light); color: var(--blue); border-radius: 10px; margin: 10px 0; }
.map-footer { font-size: 12px; color: var(--muted); }
.roster-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.roster-filters button {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-height: 68px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}
.roster-filters strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.roster-filters button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.manager-workspace { align-items: start; }
.manager-details { display: grid; gap: 14px; min-width: 0; }
.attendance-insights { background: linear-gradient(170deg, #fff 55%, #eef5fc); }
.attendance-insights .card-title { margin-bottom: 10px; }
.roster-site { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.roster-site summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  cursor: pointer; min-height: 48px; padding: 10px 12px; background: #f3f6fa; border-radius: 9px;
}
.roster-site summary::after { content: '+'; color: var(--blue); font-size: 18px; }
.roster-site[open] summary::after { content: '−'; }
.roster-site summary > :first-child { flex: 1; }
.roster-site ul { list-style: none; padding: 0 12px; margin: 0; }
.roster-site li { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; }
.roster-site li + li { border-top: 1px solid var(--border); }
.roster-site small, .manager-details .list-row small { display: block; }
.roster-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.roster-row-actions .btn { min-height: 44px; }
:where(input,select,textarea,summary):focus-visible { outline: 3px solid #184a85; outline-offset: 2px; }
.bottom-nav { overflow-x: auto; }
.bottom-nav button { flex: 1 0 60px; min-height: 48px; }
.bottom-nav button:not(.active) { color: var(--muted); }
.bottom-nav button.active .nav-symbol { background: var(--blue); color: #fff; border-radius: 999px; padding: 5px 12px; display: grid; place-items: center; }
.punch-action { border-radius: 999px; }
@keyframes workforce-enter {
  from { opacity: .72; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .punch-action, .roster-filters button { transition: transform var(--motion-fast) var(--motion-ease); }
  .punch-action:active, .roster-filters button:active { transform: scale(.98); }
}
@media (max-width: 520px) {
  .reporting-card { padding: 12px; }
  .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-card .row.between { flex-wrap: wrap; }
  .roster-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-content { border-radius: 0; }
}

/* Aesthetic 2.0: surfaces, imagery and motion (24) */
body { -webkit-font-smoothing: antialiased; }
.roster-filters strong, .attendance-strip strong, .chart small { font-variant-numeric: tabular-nums; }
.page-heading h1 { font-weight: 800; letter-spacing: -.035em; }
.page-heading p { font-size: 13px; }
.workarea {
  background:
    radial-gradient(60% 40% at 100% 0%, #e8edf6 0%, transparent 70%),
    radial-gradient(#0f1b2d0c 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg);
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #ffffffb8; border-bottom-color: #e1e6ef99;
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.live-bar { background: linear-gradient(90deg, #e3f6ee, #effaf5 60%, transparent); border-bottom-color: #cfeede; color: var(--green); font-weight: 600; }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #12b886; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; }

/* Navigation rail */
.sidebar .brand { box-shadow: 0 10px 30px -12px #000a; }
.sidebar .side-label { color: #7d8aa3; }
.sidebar .nav-item { position: relative; font-size: 13px; transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast) var(--motion-ease); }
.sidebar .nav-item:hover { background: #ffffff0d; color: #fff; transform: translateX(2px); }
.sidebar .nav-item.active { background: linear-gradient(90deg, #ffffff1f, #ffffff08); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px #ffffff14; }
.sidebar .nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(var(--signal), #c3d4f3); 
}
.sidebar .nav-item.active .icon { color: #c3d4f3; }
.nav-count { background: var(--signal); color: var(--nav-surface); font-weight: 800; }

/* Cards and controls */
.card { border-color: #e6eaf2; box-shadow: var(--shadow); }
.card-title h2 { font-weight: 750; }
.btn {
  border-radius: 12px; font-weight: 650; position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.btn:not(.secondary):not(.ghost):not(.danger) {
  background: linear-gradient(180deg, #3560b5, var(--blue-deep));
  box-shadow: inset 0 1px 0 #ffffff33, 0 8px 18px -8px #2b4f9eaa;
}
.btn.green:not(.secondary) { background: linear-gradient(180deg, #10a174, var(--green)); box-shadow: inset 0 1px 0 #ffffff33, 0 8px 18px -8px #0b7d58aa; }
.btn.secondary { border-color: #dfe5ef; box-shadow: 0 1px 2px #0f1b2d0d; }
.btn.secondary:hover { border-color: #b9c9ef; color: var(--blue); }
.btn:hover { filter: none; }
.btn .ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .2; transform: scale(0); }
.btn:not(.secondary):not(.ghost):not(.danger) .ripple { background: #fff; }
.icon-btn { transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast); }
.icon-btn:hover { border-color: #b9c9ef; }
.avatar { border-radius: 50%; font-weight: 750; letter-spacing: .02em; background: linear-gradient(135deg, #edf2fa, #dce5f4); color: var(--blue); box-shadow: 0 0 0 2px #fff, 0 2px 6px #0f1b2d1a; }
.avatar.mint { background: linear-gradient(135deg, #e3f6ee, #c9eedd); color: var(--green); }
.avatar.lilac { background: linear-gradient(135deg, #f1ebff, #e0d4ff); color: #6a46c2; }
.avatar.sand { background: linear-gradient(135deg, #fff2e2, #ffe0bd); color: var(--amber); }
.avatar.sm { width: 34px; height: 34px; font-size: 11px; }

/* Status tags carry a status dot */
.tag { border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 11px; font-weight: 650; gap: 6px; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.green { background: var(--green-light); color: var(--green); }
.tag.orange { background: var(--amber-light); color: var(--amber); }
.tag.blue { background: var(--blue-light); color: var(--blue); }

/* KPI tiles */
.roster-filters { gap: 12px; }
.roster-filters button {
  --tone: var(--blue); --tone-soft: var(--blue-light);
  position: relative; overflow: hidden; min-height: 92px; padding: 14px 16px; gap: 8px;
  border: 1px solid #e6eaf2; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast), border-color var(--motion-fast);
}
.roster-filters span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.roster-filters span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.roster-filters strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.roster-filters button:hover { box-shadow: var(--shadow-lift); border-color: #d3dcf0; }
.roster-filters button[aria-pressed="true"] { border-color: var(--blue); background: #f6f8fc; color: var(--ink); box-shadow: 0 0 0 3px var(--blue-light), var(--shadow-lift); }
.roster-filters [data-roster-filter="Awaiting acceptance"] { --tone: #8576b8; }
.roster-filters [data-roster-filter="Not checked in"] { --tone: #c9934a; }
.roster-filters [data-roster-filter="Checked in"] { --tone: #4a9c7e; }
.roster-filters [data-roster-filter="Checked out"] { --tone: #8d99ab; }

/* Attendance chart */
.attendance-insights { background: radial-gradient(90% 70% at 100% 0%, #edf2fa, transparent 70%), #fff; }
.chart { height: 170px; gap: 14px; }
.bars { max-width: 52px; width: 70%; }
.bar, .bar.current { border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #7c9bd6, var(--blue)); box-shadow: 0 6px 14px -8px #2b4f9e; transform-origin: bottom; }
.chart-column small:first-child { font-weight: 700; color: var(--ink); font-size: 11px; }

/* Roster and review lists */
.roster-site { border-color: #e6eaf2; border-radius: 14px; overflow: hidden; background: #fff; }
.roster-site summary { background: linear-gradient(90deg, #f5f7fc, #fff); border-radius: 0; min-height: 56px; }
.roster-site summary > span:last-of-type { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-weight: 750; font-size: 12px; }
.roster-site summary::after { content: ""; width: 8px; height: 8px; margin: 0 4px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--motion-fast) var(--motion-ease); }
.roster-site[open] summary::after { content: ""; transform: translateY(2px) rotate(-135deg); }
.roster-site li { padding: 11px 8px; margin: 0 -8px; border-radius: 10px; transition: background var(--motion-fast); }
.roster-site li + li { border-top: 0; }
.roster-site li:hover, .manager-details .list-row:hover { background: #f5f8ff; }
.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.manager-details .list-row { padding: 12px 8px; margin: 0 -8px; border-radius: 12px; border-bottom: 0; transition: background var(--motion-fast); }

/* Empty states */
.empty { border: 1px dashed #cfd9ec; background: radial-gradient(60% 80% at 50% 0%, #eef3ff, #fafbfe 70%); }
.empty .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: var(--blue); background: #fff; box-shadow: var(--shadow); }

/* Drawn site preview shown before the live map loads */
.map-card iframe { border-radius: 14px; border-color: #e6eaf2; }
.map-placeholder, .shift-visual {
  --street-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Crect width='240' height='240' fill='%23edf2fb'/%3E%3Crect x='88' y='76' width='72' height='74' rx='8' fill='%23e0e8f7'/%3E%3Crect x='196' y='188' width='36' height='42' rx='6' fill='%23e0e8f7'/%3E%3Crect x='8' y='188' width='48' height='40' rx='6' fill='%23d6efe2'/%3E%3Crect x='192' y='12' width='40' height='36' rx='6' fill='%23d6efe2'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='12'%3E%3Cpath d='M0 60H240M0 170H240M70 0V240M180 0V240'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d3ddef' stroke-width='3'%3E%3Cpath d='M0 115H240M125 0V240M0 14L240 214'/%3E%3C/g%3E%3C/svg%3E");
}
.map-placeholder {
  position: relative; overflow: hidden; min-height: 230px; border-radius: 14px; isolation: isolate;
  background: radial-gradient(circle at 50% 42%, #2b4f9e1f 0 54px, transparent 55px), var(--street-map) center / 240px;
}
.map-placeholder::before, .map-placeholder::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: 108px; height: 108px; margin: -54px 0 0 -54px;
  border-radius: 50%; border: 2px solid #2b4f9e66; z-index: -1;
}
.map-placeholder > .icon { width: 40px; height: 40px; color: #fff; background: var(--blue); padding: 9px; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 10px 20px -6px #2b4f9e; }
.map-placeholder .btn.secondary { background: #ffffffe0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Dialog and toast */
dialog { border: 0; border-radius: 24px; box-shadow: 0 40px 120px -20px #0f1b2d66, 0 0 0 1px #0f1b2d10; }
dialog::backdrop { background: #0b142466; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#toast { background: #0f1b2df2; border-radius: 14px; box-shadow: 0 18px 40px -12px #0f1b2d99; }

/* Sign-in */
.login-visual { isolation: isolate; background: linear-gradient(160deg, #f3f7ff, #e6eeff 60%, #eef4ff); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .7; pointer-events: none; }
.login-visual::before { width: 420px; height: 420px; left: -120px; top: -100px; background: #c7d6f2; }
.login-visual::after { width: 360px; height: 360px; right: -120px; bottom: -80px; background: #d3e8df; opacity: .55; }
.login-visual h1 { font-weight: 800; letter-spacing: -.045em; background: linear-gradient(100deg, var(--ink) 35%, var(--blue) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-inner h1 { font-weight: 800; letter-spacing: -.035em; }
.login-form input { border-radius: 12px; transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); }

/* Technician Today */
.mobile-content {
  background: radial-gradient(80% 40% at 0% 0%, var(--field-sky), transparent 70%),
    radial-gradient(60% 30% at 100% 8%, #e6eef9, transparent 70%),
    linear-gradient(180deg, #f7f9ff, var(--field-ice));
}
.mobile-content .page-heading h1 { font-weight: 800; }
.shift-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #e6eaf2; border-radius: 28px; box-shadow: 0 2px 4px #0f1b2d0a, 0 24px 48px -24px #2b4f9e55; }
.shift-card:has(> .shift-visual) { padding-top: 0; }
.shift-visual {
  --geo: var(--blue);
  position: relative; height: 132px; margin: 0 calc(-1 * clamp(18px, 4vw, 28px)) 14px; overflow: hidden;
  background: linear-gradient(180deg, transparent 50%, #fff), var(--street-map) 30% 40% / 260px;
}
.shift-card[data-state="in"] .shift-visual { --geo: #12a174; }
.shift-card[data-state="out"] .shift-visual { --geo: #64748b; }
.geo-zone, .geo-ring { position: absolute; left: 50%; top: 56%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; }
.geo-zone { background: color-mix(in srgb, var(--geo) 14%, transparent); border: 2px dashed color-mix(in srgb, var(--geo) 55%, transparent); }
.geo-ring { border: 2px solid var(--geo); opacity: 0; }
.geo-pin {
  position: absolute; left: 50%; top: 56%; width: 38px; height: 38px; margin: -44px 0 0 -19px; display: grid; place-items: center;
  color: #fff; background: var(--geo); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); box-shadow: 0 10px 18px -6px var(--geo);
}
.geo-pin .icon { transform: rotate(45deg); width: 18px; height: 18px; }
.geo-shadow { position: absolute; left: 50%; top: 56%; width: 18px; height: 6px; margin: -3px 0 0 -9px; border-radius: 50%; background: #0f1b2d33; }
.shift-card h2 { font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.shift-meta span { padding: 7px 11px; border-radius: 999px; background: #f2f5fb; font-size: 13px; font-weight: 600; }
.punch-action { min-height: 60px; font-size: 17px; letter-spacing: -.01em; }
.attendance-strip { border-radius: 20px; }
.attendance-strip strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.location-line { font-size: 13px; color: var(--muted); }
.bottom-nav { background: #ffffffcc; -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-top-color: #e1e6ef99; }
.bottom-nav button.active .nav-symbol { background: linear-gradient(180deg, #3560b5, var(--blue-deep)); box-shadow: 0 6px 14px -6px #2b4f9e; }

/* Motion. Entry effects run only on a newly opened view, never on a data refresh. */
@keyframes wf-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes wf-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wf-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes wf-ring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wf-drop { 0% { transform: translateY(-40px) rotate(-45deg); opacity: 0; } 60% { transform: translateY(4px) rotate(-45deg); opacity: 1; } 100% { transform: rotate(-45deg); } }
@keyframes wf-shadow { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wf-halo { 0%, 100% { box-shadow: inset 0 1px 0 #ffffff33, 0 8px 18px -8px #2b4f9eaa, 0 0 0 0 #2b4f9e40; } 60% { box-shadow: inset 0 1px 0 #ffffff33, 0 8px 18px -8px #2b4f9eaa, 0 0 0 12px #2b4f9e00; } }
@keyframes wf-ripple { to { transform: scale(1); opacity: 0; } }
@keyframes wf-dialog { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wf-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@keyframes wf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  .fresh-view > *, .fresh-view .dashboard-columns > * > * { animation: wf-rise var(--motion-enter) var(--motion-ease) both; }
  .fresh-view > :nth-child(2) { animation-delay: 60ms; }
  .fresh-view > :nth-child(3) { animation-delay: 120ms; }
  .fresh-view > :nth-child(4) { animation-delay: 180ms; }
  .fresh-view > :nth-child(n+5) { animation-delay: 240ms; }
  .fresh-view .dashboard-columns > * > :nth-child(2) { animation-delay: 220ms; }
  .fresh-view .dashboard-columns > * > :nth-child(3) { animation-delay: 300ms; }
  .fresh-view .roster-filters button { animation: wf-rise var(--motion-enter) var(--motion-ease) both; }
  .fresh-view .roster-filters button:nth-child(2) { animation-delay: 50ms; }
  .fresh-view .roster-filters button:nth-child(3) { animation-delay: 100ms; }
  .fresh-view .roster-filters button:nth-child(4) { animation-delay: 150ms; }
  .fresh-view .roster-filters button:nth-child(5) { animation-delay: 200ms; }
  .fresh-view .bar { animation: wf-grow 700ms var(--motion-ease) 150ms both; }
  .fresh-view .chart-column:nth-child(2) .bar { animation-delay: 210ms; }
  .fresh-view .chart-column:nth-child(3) .bar { animation-delay: 270ms; }
  .fresh-view .chart-column:nth-child(4) .bar { animation-delay: 330ms; }
  .fresh-view .chart-column:nth-child(5) .bar { animation-delay: 390ms; }
  .fresh-view .chart-column:nth-child(6) .bar { animation-delay: 450ms; }
  .fresh-view .geo-pin { animation: wf-drop 700ms var(--motion-spring) 250ms both; }
  .fresh-view .geo-shadow { animation: wf-shadow 500ms var(--motion-ease) 500ms both; }
  .geo-ring { animation: wf-ring 2.8s var(--motion-ease) infinite; }
  .geo-ring + .geo-ring { animation-delay: 1.4s; }
  .shift-card[data-state="out"] .geo-ring { animation: none; }
  .map-placeholder::before { animation: wf-ring 3s var(--motion-ease) infinite; }
  .map-placeholder::after { animation: wf-ring 3s var(--motion-ease) 1.5s infinite; }
  .live-dot::after { animation: wf-pulse 2s ease-out infinite; }
  .shift-card[data-state="idle"] .punch-action { animation: wf-halo 2.6s ease-in-out infinite; }
  .btn .ripple { animation: wf-ripple 550ms var(--motion-ease) forwards; }
  .btn:active, .icon-btn:active { transform: scale(.97); }
  .btn:not(.secondary):not(.ghost):not(.danger):hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff40, 0 14px 24px -10px #2b4f9ecc; }
  .roster-filters button:hover { transform: translateY(-2px); }
  .roster-filters button:active { transform: scale(.98); }
  .roster-site[open] ul { animation: wf-rise 260ms var(--motion-ease); }
  dialog[open] { animation: wf-dialog 320ms var(--motion-spring); }
  dialog[open]::backdrop { animation: wf-fade 240ms ease-out; }
  .login-visual::before { animation: wf-drift 18s ease-in-out infinite; }
  .login-visual::after { animation: wf-drift 22s ease-in-out -6s infinite reverse; }
  .login-art { animation: wf-float 6s ease-in-out infinite; }
  .login-inner { animation: wf-rise 600ms var(--motion-ease) both; }
  .bottom-nav button.active .nav-symbol { animation: wf-rise 320ms var(--motion-spring); }
}
@media (max-width: 760px) {
  .roster-filters strong { font-size: 26px; }
  .shift-visual { height: 118px; }
}
