@font-face {
  font-family: "League Spartan";
  src: url("/fonts/league-spartan-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Manrope", system-ui, sans-serif;
  --font-heading: var(--font-body);
  --font-display: "Outfit", var(--font-body);
  --font-logo: "League Spartan", system-ui, sans-serif;
  --brand-green: #0b7d3e;
  --brand-green-hover: #086632;
  --brand-orange: #ff8c42;
  --ink: #1d1d1f;
  --muted: #56615b;
  --line: #e3e7e4;
  --paper: #f5f6f5;
  --mint: #e6f3eb;
  --hero-dark: #082a32;
  --radius: 20px;
  --surface: #ffffff;
  --surface-inset: #f5f7f5;
  --surface-shadow: 0 1px 2px rgb(15 34 23 / 3%), 0 8px 24px rgb(15 34 23 / 4%);
  --space-section: clamp(14px, 2.3vw, 24px);
  --ease-out: cubic-bezier(.2,.75,.25,1);
  --ease-in: cubic-bezier(.4,0,1,1);
  --motion-press: 95ms;
  --motion-control: 180ms;
  --motion-panel: 230ms;
  --motion-view: 300ms;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); }
h2 { font-size: 1.23rem; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; }
.loading { padding: 2rem; }
.mobile-brand, .mobile-nav { display: none !important; }
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 27px 17px 18px; display: flex; flex-direction: column; background: #fcfefd; color: var(--ink); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.sidebar > .brand { margin: 4px 0 41px 10px; }
.brand strong { display: block; padding-top: .12em; font-family: var(--font-logo); font-size: 2.35rem; font-weight: 700; letter-spacing: -.05em; line-height: .82; }
.sidebar .brand strong { color: var(--brand-green); }
.brand small { display: block; padding-left: 11px; border-left: 1px solid currentColor; color: #b8c8be; font-size: .84rem; font-weight: 650; line-height: 1.35; }
.sidebar .brand small { color: var(--muted); }
.sidebar nav { display: grid; gap: 7px; }
.nav-link { border: 0; min-height: 46px; width: 100%; padding: 9px 11px; color: #43584e; background: transparent; border-radius: 10px; display: flex; align-items: center; gap: 10px; text-align: left; font-size: .93rem; font-weight: 620; }
.nav-link:hover { background: #edf5f0; color: var(--brand-green-hover); }
.nav-link.selected { background: #e5f2eb; color: #08552e; box-shadow: inset 3px 0 var(--brand-green); }
.nav-link svg { flex-shrink: 0; }
.nav-short { display: none; }
.nav-count { border-radius: 20px; background: #d1ecdc; color: #11512c; text-align: center; min-width: 22px; padding: 0 4px; line-height: 20px; margin-left: auto; font-size: .75rem; }
.sidebar-bottom { margin-top: auto; }
.sidebar-user { display: flex; align-items: center; gap: 9px; width: 100%; color: var(--ink); text-align: left; }
.sidebar-user-text { flex: 1; min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .86rem; }
.sidebar-user small { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.avatar { background: var(--mint); color: var(--brand-green-hover); border: 0; border-radius: 50%; width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; overflow: hidden; padding: 0; font-size: .8rem; font-weight: 700; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-user .avatar { background: #e0f0e6; color: #185637; }
.icon-button { position: relative; border: 1px solid var(--line); background: white; color: #304238; width: 38px; height: 38px; padding: 0; border-radius: 10px; display: grid; place-items: center; }
.icon-button:hover, .avatar-button:hover { background: #edf3e9; }
.topbar { min-height: 69px; border-bottom: 1px solid var(--line); padding: 0 clamp(20px, 3.1vw, 47px); background: #fff; display: flex; justify-content: space-between; align-items: center; }
.desktop-label { font-size: .95rem; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-bell span { width: 8px; height: 8px; border: 1px solid white; background: var(--brand-green); border-radius: 50%; position: absolute; top: 7px; right: 8px; }
main#main { max-width: 1370px; margin: 0 auto; padding: 29px clamp(20px, 3.1vw, 47px) 44px; outline: none; }
.primary { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; background: var(--brand-green); color: white; font-size: .94rem; font-weight: 700; }
.primary:hover { background: var(--brand-green-hover); }
.card { min-width: 0; padding: clamp(16px, 2vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--surface-shadow); }
.card p { line-height: 1.48; }
.quick-stats, .columns { display: grid; gap: 15px; margin: 16px 0; }
.quick-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
.columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
.quick { display: flex; align-items: center; gap: 13px; padding: 16px; }
.quick div { display: grid; gap: 2px; }
.quick div span { color: var(--muted); font-weight: 610; font-size: .87rem; }
.quick strong { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 650; line-height: 1.12; letter-spacing: -.025em; }
.icon-tile { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 11px; display: grid; place-items: center; }
.icon-tile.brand-tone { color: var(--brand-green-hover); background: var(--mint); }
.icon-tile.reward-tone { color: #8e410c; background: color-mix(in srgb, var(--brand-orange) 18%, white); }
.icon-tile.neutral { color: #4a5c54; background: #eef2ef; }
.card-heading { display: flex; align-items: center; gap: 11px; }
.card-heading p, .section-heading p { color: var(--muted); font-size: .88rem; margin-top: 3px; }
.card-heading .badge { margin-left: auto; }
.badge { font-size: .77rem; font-weight: 700; background: #eef0ed; color: #43534a; padding: 5px 8px; border-radius: 15px; white-space: nowrap; display: inline-block; }
.badge.present, .badge.reporting, .badge.in-progress { color: #25603d; background: #e4f2e6; }
.badge.half-day, .badge.needs-review, .badge.awaiting-router { color: #6d5418; background: #fbf0d2; }
.badge.full-leave { color: #883d36; background: #f8e5e2; }
.wifi-live { margin: 18px 0 14px; display: flex; gap: 8px; align-items: center; color: #41584a; font-size: .89rem; font-weight: 670; }
.signal, .unread-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #a5afa4; }
.signal.active, .unread-dot { background: var(--brand-green); }
.wifi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 13px; }
.wifi-stats span { display: block; color: var(--muted); font-size: .79rem; }
.wifi-stats strong { display: block; margin-top: 3px; font-size: .95rem; font-weight: 700; }
.text-button { border: 0; background: transparent; color: var(--brand-green-hover); padding: 3px 0; min-height: 35px; text-align: left; font-size: .9rem; font-weight: 700; }
.text-button:hover { color: #054a24; text-decoration: underline; }
.wifi-card > .text-button, .progress-card > .text-button { margin-top: 11px; }
.progress-total, .progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; }
.progress-total { margin-top: 12px; }
.progress-total strong { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 650; letter-spacing: -.025em; }
.progress-total span, .progress-label { color: var(--muted); font-size: .83rem; }
.progress-total .percent { color: var(--brand-green-hover); font-weight: 700; }
progress { display: block; width: 100%; height: 10px; margin: 8px 0 7px; appearance: none; border: none; border-radius: 10px; overflow: hidden; background: #e9eee5; }
progress::-webkit-progress-bar { background: #e9eee5; }
progress::-webkit-progress-value { background: var(--brand-green); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--brand-green); border-radius: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.updates { margin-top: 15px; }
.message { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.message:last-child { border-bottom: 0; padding-bottom: 0; }
.message-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.message-main h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.message-main p { margin: 4px 0; color: var(--muted); font-size: .92rem; white-space: pre-wrap; }
.message-main time { font-size: .78rem; color: #59695e; }
.read-button { flex-shrink: 0; }
.page-title { margin: 2px 0 22px; }
.page-title h1 { font-size: clamp(1.95rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; }
.page-title p { margin-top: 7px; color: var(--muted); }
.page-toolbar { align-items: flex-start; }
.block { margin-bottom: 16px; }
.wifi-card + .block, .progress-card + .block { margin-top: 16px; }
.subtle, .empty { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.empty { padding: 7px 0; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { background: #f3f5f1; color: #4b5d53; font-size: .84rem; font-weight: 700; }
td small { display: block; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
.amount { white-space: nowrap; color: #285b3a; font-weight: 700; }
.amount.negative { color: #843b34; }
.admin-form { align-self: start; }
.admin-form .primary { margin-top: 15px; }
.field { display: grid; gap: 6px; margin-top: 13px; }
.field > span, legend { font-size: .87rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; min-width: 0; padding: 9px 11px; color: var(--ink); background: #fbfcfa; border: 1px solid #d6e0d5; border-radius: 9px; }
.field select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg,transparent 50%,#4b6155 50%), linear-gradient(135deg,#4b6155 50%,transparent 50%); background-position: calc(100% - 15px) 18px,calc(100% - 10px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; }
.section-heading > .field { margin: 0; flex: 0 0 auto; }
.input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
fieldset { border: 0; padding: 0; margin: 17px 0 0; }
.days { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.days label { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); padding: 5px 8px; border-radius: 8px; font-size: .87rem; }
.days input { accent-color: var(--brand-green); }
.network-id { display: inline-block; padding: 2px 5px; margin-left: 4px; border-radius: 4px; background: #f0f2ee; }
.form-error { color: #903f36; margin-top: 9px; font-size: .86rem; }
.form-error:empty { display: none; }
.team-progress { margin-top: 9px; }
details { border-bottom: 1px solid var(--line); padding: 9px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-size: .95rem; }
summary span { float: right; color: #42634b; font-weight: 680; }
#toast { position: fixed; z-index: 3; bottom: 23px; right: 22px; max-width: min(400px, calc(100vw - 44px)); visibility: hidden; padding: 11px 15px; background: #15422b; color: white; border-radius: 9px; box-shadow: 0 4px 16px #14291f42; font-size: .92rem; }
#toast.visible { visibility: visible; }
#toast.error { background: #853e34; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { color: white; min-height: 600px; background: var(--hero-dark); background-image: linear-gradient(0deg,#082a32bd 0%,transparent 43%), linear-gradient(180deg,#082a3280 0%,transparent 32%),url('/terrain.webp'); background-size: cover; background-position: center; }
.login-art-content { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(25px,5vw,70px); }
.login-art .brand-tagline { font-family: var(--font-heading); font-size: clamp(2rem,5.1vw,4.6rem); font-weight: 600; line-height: 1.03; letter-spacing: -.035em; }
.login-panel { background: white; display: grid; place-items: center; padding: 35px 25px; }
.login-form { width: min(100%, 390px); }
.login-form h2 { font-size: 2.15rem; letter-spacing: -.035em; }
.login-form > p { margin: 5px 0 20px; color: var(--muted); }
.login-form .form-error { color: #903f36; }
.login-form .primary { margin-top: 17px; width: 100%; }
.secondary { background: #eff4eb; border: 1px solid #dae5d7; border-radius: 8px; padding: 8px 11px; color: #304d39; font-weight: 700; }
.secondary:hover { background: #e2efde; }
@media (max-width: 1030px) {
  .shell { grid-template-columns: 204px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar > .brand { margin-left: 5px; }
  .quick { gap: 9px; padding: 12px; }
  .quick .icon-tile { width: 36px; height: 36px; flex-basis: 36px; }
  .quick strong { font-size: 1.34rem; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar, .desktop-label, .top-bell { display: none !important; }
  .mobile-brand { display: grid !important; }
  .topbar { min-height: 60px; padding: 0 16px; }
  .topbar .brand { gap: 8px; }
  .topbar .brand strong { font-size: 1.85rem; }
  .topbar .brand small { padding-left: 8px; }
  .topbar .brand strong, .login-panel .brand strong { color: var(--brand-green); }
  .topbar .brand small, .login-panel .brand small { color: var(--muted); }
  .top-actions { gap: 7px; }
  main#main { padding: 17px 16px calc(94px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; z-index: 2; inset: auto 0 0; display: flex !important; padding: 4px 4px calc(5px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }
  .mobile-nav .nav-link { position: relative; min-width: 0; width: 100%; background: white; color: #456152; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 6px 1px; text-align: center; font-size: .68rem; line-height: 1.2; }
  .mobile-nav .nav-label { display: none; }
  .mobile-nav .nav-short { display: inline; }
  .mobile-nav .nav-link.selected { box-shadow: none; color: var(--brand-green-hover); background: var(--mint); }
  .mobile-nav .nav-count { position: absolute; right: max(1px, calc(50% - 24px)); top: 1px; line-height: 15px; min-width: 15px; }
  #toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 530px) {
  .quick-stats { gap: 7px; margin: 11px 0; }
  .quick { display: block; padding: 9px; border-radius: 12px; }
  .quick .icon-tile { width: 29px; height: 29px; margin-bottom: 5px; border-radius: 8px; }
  .quick .icon-tile svg { width: 17px; height: 17px; }
  .quick div span { font-size: .77rem; }
  .quick strong { font-size: 1.1rem; }
  .columns { grid-template-columns: 1fr; gap: 10px; margin: 11px 0; }
  .columns .block { margin-bottom: 0; }
  .page-toolbar { display: block; margin-bottom: 12px; }
  .page-toolbar .page-title { margin-bottom: 8px; }
  .page-toolbar .field { max-width: 210px; }
  .input-grid { gap: 0 9px; }
  .read-button { max-width: 56px; line-height: 1.15; }
  .login-layout { display: block; background: white; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; }
  .login-panel .mobile-brand { margin-bottom: 25px; }
}
.incentive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.goal-column, .incentive-balances { min-width: 0; display: grid; gap: 16px; }
.goal-picker { padding: 15px 17px; }
.goal-picker-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-picker-top .field { margin: 0; }
.goal-picker-top .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.goal-picker-top .field input { font-size: .85rem; padding: 6px 8px; min-height: 42px; }
.goal-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.goal-tabs button {
  min-height: 35px;
  border: 0;
  border-radius: 8px;
  padding: 5px clamp(7px, 1.3vw, 17px);
  color: var(--muted);
  background: transparent;
  font-weight: 750;
  font-size: .86rem;
}
.goal-tabs button:hover { color: var(--brand-green-hover); }
.goal-tabs button.selected { background: var(--brand-green); color: white; }
.goal-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; margin-top: 13px; }
.goal-day {
  position: relative;
  display: grid;
  justify-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 7px 0 9px;
  min-width: 0;
  color: var(--ink);
  background: #f4f7f5;
  line-height: 1.16;
}
.goal-day:hover, .goal-day[aria-pressed="true"] { border-color: #a2c9b2; background: var(--mint); color: #124929; }
.goal-day span { font-size: .72rem; font-weight: 650; }
.goal-day strong { font-family: var(--font-heading); font-size: 1.1rem; }
.goal-day.has-goal::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-green); position: absolute; bottom: 4px; }
.challenge { min-width: 0; }
.reward-banner {
  position: relative;
  isolation: isolate;
  min-height: 184px;
  display: flex;
  align-items: center;
  padding: 20px clamp(18px, 3vw, 32px);
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  background: linear-gradient(105deg,#e7f5ec 4%,#e3f3ec 61%,#e0f0f1);
  color: #133d2c;
  border: 1px solid #d9e9de;
}
.reward-banner-copy { min-width: 0; max-width: 81%; }
.reward-period { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #3b6657; font-size: .82rem; font-weight: 700; }
.reward-banner h2 { margin-top: 8px; font-size: clamp(1.2rem, 2.4vw, 1.68rem); letter-spacing: -.023em; overflow-wrap: anywhere; }
.reward-headline { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; margin-top: 7px; font-family: var(--font-heading); }
.reward-headline > span { font-size: 1.13rem; }
.reward-headline strong { font-size: clamp(2.7rem, 5vw, 4.35rem); line-height: .95; color: #096039; letter-spacing: -.045em; font-weight: 700; }
.reward-subtitle { margin-top: 6px; color: #426555; font-size: .84rem; }
.reward-trophy {
  position: absolute;
  z-index: -1;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-11deg);
  display: grid;
  place-items: center;
  width: clamp(88px, 18%, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #dedad0;
  box-shadow: 0 0 0 14px #fff2e359, 0 0 0 29px #fff2e330;
  background: #fff1e1;
  color: #8a4c2b;
}
.reward-trophy svg { width: 56%; height: 56%; stroke-width: 1.2; }
.campaign-status { padding: 3px 7px; border-radius: 12px; background: #f5fbf7; color: #345e49; }
.goal-milestones { border-top: 0; border-radius: 0 0 17px 17px; }
.goal-progress { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.goal-progress > div:last-child { text-align: right; }
.goal-progress span { display: block; color: var(--muted); font-size: .82rem; }
.goal-progress strong, .quick-reward-value strong { display: block; font: 650 1.55rem/1.15 var(--font-heading); letter-spacing: -.025em; }
.goal-progress small { font-size: .9rem; color: var(--muted); }
.goal-milestones > progress { margin: 10px 0 0; }
.goal-milestones > h3 { margin: 19px 0 8px; }
.next-reward {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f6dbc5;
  background: #fff7ef;
}
.next-reward.complete { border-color: #cde5d4; background: #f1faf3; }
.next-reward .icon-tile { width: 37px; height: 37px; flex-basis: 37px; }
.next-reward strong { font-size: .98rem; }
.next-reward p { font-size: .8rem; color: #635140; }
.goal-steps { display: grid; gap: 3px; list-style: none; padding: 0; margin: 0; }
.goal-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  column-gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
}
.goal-step:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 21px; top: calc(50% + 13px); left: 23px; background: #d6e4d9; }
.goal-step.is-next { background: #f1f8f3; }
.step-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #c7d9cc;
  border-radius: 50%;
  background: #f6f9f7;
  color: var(--brand-green-hover);
}
.goal-step.done .step-mark { background: var(--brand-green); color: white; border-color: var(--brand-green); }
.goal-step.is-next .step-mark { border-color: #9bc5a9; background: #e2f0e6; }
.step-description h4 { margin: 0; font-size: .94rem; line-height: 1.3; }
.step-description p { color: var(--muted); font-size: .81rem; }
.is-next .step-description p { color: var(--brand-green-hover); font-weight: 700; }
.step-amount { font: 640 1.15rem/1 var(--font-heading); white-space: nowrap; }
.reward-footnote { margin: 12px 0 0; color: var(--muted); border-top: 1px solid var(--line); padding-top: 11px; font-size: .81rem; }
.quick-reward-value { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 17px; }
.quick-reward-value strong { color: var(--brand-green-hover); }
.quick-reward-value span { color: var(--muted); font-size: .85rem; }
.no-goal { text-align: center; display: grid; justify-items: center; gap: 9px; padding-block: 35px; }
.no-goal p { color: var(--muted); }
.earnings-heading { flex-wrap: wrap; }
.earnings-heading .field input { font-size: .85rem; }
.incentive-balances td:nth-child(2) { white-space: nowrap; }
.tier-fields { margin-top: 16px; }
.tier-input { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; align-items: end; gap: 8px; }
.tier-input .field { margin-top: 7px; }
.tier-remove { color: #784a3d; min-height: 43px; border: 0; background: transparent; padding: 3px; text-decoration: underline; font-size: .78rem; }
.tier-fields > .text-button, .cancel-edit { margin: 7px 0; }
.tier-fields > .text-button { display: inline-flex; gap: 5px; align-items: center; }
.cancel-edit, .goal-team-row .text-button { margin-right: 12px; }
.goal-team-row summary { padding: 4px 0; }
.goal-team-row summary span { float: none; display: inline-block; margin-left: 9px; color: var(--muted); font-size: .8rem; }
.goal-team-row form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.goal-team-row form > .field { max-width: 155px; }
.goal-team-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; margin-top: 5px; }
.badge.active { color: #25603d; background: #e4f2e6; }

@media (max-width: 930px) {
  .incentive-layout { grid-template-columns: minmax(0,1fr); }
  .incentive-balances { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 530px) {
  .goal-picker { padding: 13px 11px; }
  .goal-days { gap: 4px; }
  .goal-picker-top { gap: 5px; }
  .goal-picker-top .field input { min-width: 0; padding-inline: 4px; font-size: .75rem; }
  .goal-tabs button { padding-inline: 6px; font-size: .78rem; }
  .reward-trophy { right: 7%; opacity: .8; }
  .reward-banner h2 { max-width: 86%; }
  .incentive-balances { grid-template-columns: minmax(0,1fr); }
}

.day-summary {
  position: relative;
  isolation: isolate;
  min-height: 230px;
  display: flex;
  align-items: center;
  padding: 29px clamp(23px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid #dbe9e3;
  border-radius: 25px;
  background: linear-gradient(120deg,#e9f5ed,#e4f1f3);
}
.day-summary-copy { position: relative; width: 68%; }
.day-date {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #336452;
  font-size: .87rem;
  font-weight: 700;
}
.day-summary h1 {
  margin: 7px 0 3px;
  color: #193b2d;
  font: 650 clamp(2.1rem,4.3vw,3.45rem)/1.06 var(--font-heading);
  letter-spacing: -.045em;
}
.day-summary .primary { margin-top: 14px; }
.day-summary-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 53%;
  background: linear-gradient(0deg,#123b3026,transparent 55%), url('/terrain.webp') center 48% / cover;
  mask-image: linear-gradient(90deg,transparent,#000 48%);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.hero-actions .primary { margin: 0; }
.hero-actions .secondary { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border-radius: 999px; background: #f9fffb; }
.day-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 15px 0; }
.day-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  min-width: 0;
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #30483d;
  text-align: left;
  font-size: .85rem;
  font-weight: 650;
}
.day-tile:hover { border-color: #9cbfaf; }
.day-tile strong { display: block; font: 650 1.48rem/1.2 var(--font-heading); color: var(--ink); }
.day-tile-tasks { background: #e9f2f8; }
.day-tile-rewards { background: #fff1e5; }
.day-tile-time { background: #e7f3eb; }
.icon-tile.task-tone { background: #daeaf5; color: #316385; }
.home-plans { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 15px; }
.workspace .columns .updates { margin: 0; }
.task-brief {
  padding: 16px 21px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #e9f2f8;
  border: 1px solid #e0ecf3;
  color: #2a5067;
}
.task-brief > div { display: flex; align-items: center; gap: 9px; }
.task-brief p { margin-top: 7px; font-size: .88rem; }
.task-brief p span { margin-inline: 2px; }
.task-tabs { width: fit-content; }
.task-tabs button span { margin-left: 3px; font-weight: 800; }
.task-list { display: grid; gap: 8px; margin-top: 10px; }
.task-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e8eeec;
  border-radius: 14px;
  background: #fbfdfc;
}
.task-card h3 { margin-top: 2px; overflow-wrap: anywhere; }
.task-card p { color: var(--muted); margin-top: 4px; font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.task-due { display: inline-flex; align-items: center; gap: 3px; }
.badge.completed, .badge.due-today { color: #255f40; background: #e6f3eb; }
.badge.overdue { color: #843a30; background: #fceae7; }
.task-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 11px;
  min-height: 40px;
  border: 1px solid #c6dfd0;
  border-radius: 999px;
  color: #135d35;
  background: #e7f3eb;
  font-weight: 750;
  font-size: .84rem;
  white-space: nowrap;
}
.task-action:hover { background: #d9eddf; }
.task-action.task-reopen { border-color: var(--line); background: white; color: var(--muted); }
.task-done { background: #fbfdfb; }
.admin-task-layout { align-items: start; }
.team-task summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.team-task summary::marker { content: ''; }
.team-task summary::-webkit-details-marker { display: none; }
.team-task summary > span:first-child strong::before { content: '▸'; margin-right: 6px; color: var(--brand-green); }
.team-task[open] summary > span:first-child strong::before { content: '▾'; }
.team-task summary > span:first-child { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.team-task summary small { display: block; color: var(--muted); font-weight: 600; margin-top: 3px; }
.team-task .team-task-count {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3f6;
  color: #315a72;
  font-size: .8rem;
  white-space: nowrap;
}
.team-task .team-task-count.all-done { background: #e2f3e9; color: #215a3b; }
.task-instructions { margin-top: 7px; font-size: .89rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.team-task ul { padding: 0; list-style: none; margin: 8px 0 0; }
.team-task li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; font-size: .88rem; }

@media (max-width: 680px) {
  .home-plans, .admin-task-layout { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .day-summary { min-height: 197px; padding: 19px 16px; }
  .day-summary-copy { width: 79%; }
  .day-summary-photo { width: 50%; opacity: .78; }
  .day-tiles { gap: 6px; margin: 10px 0; }
  .day-tile { display: grid; align-content: start; gap: 5px; padding: 8px; border-radius: 12px; font-size: .75rem; line-height: 1.22; }
  .day-tile .icon-tile { width: 29px; height: 29px; border-radius: 8px; }
  .day-tile .icon-tile svg { width: 17px; height: 17px; }
  .day-tile strong { font-size: 1.14rem; margin-top: 2px; }
}
@media (max-width: 420px) {
  .task-card { grid-template-columns: auto minmax(0,1fr); gap: 8px; padding: 9px; }
  .task-card .icon-tile { width: 34px; height: 34px; }
  .task-card .task-action { grid-column: 2; justify-self: start; }
  .mobile-nav .nav-count { right: max(1px,calc(50% - 22px)); }
}

.phone-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  background: #f2f8f4;
}
.phone-copy { min-width: 0; flex: 1; }
.phone-copy p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.phone-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
@media (max-width: 680px) {
  .phone-panel { flex-wrap: wrap; align-items: start; }
  .phone-panel .phone-copy { flex: 1 1 69%; }
  .phone-actions { margin-left: 55px; }
}

.approval-wait > .icon-tile { margin-bottom: 12px; }
.approval-wait-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.approval-wait .approval-wait-actions .primary { width: auto; margin: 0; }
.approval-list { display: grid; gap: 8px; margin-top: 12px; }
.approval-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf9;
}
.approval-row-copy p, .approval-row-copy small { color: var(--muted); font-size: .82rem; }
.approval-row-actions { display: flex; align-items: center; gap: 7px; }
.approval-row .form-error { width: 100%; margin: 0; }

/* App surfaces, workspace chrome and shared control states. */
body { -webkit-font-smoothing: antialiased; }
h2 { font-size: clamp(1.13rem, 1.8vw, 1.33rem); letter-spacing: -.024em; }
h3 { font-size: 1.02rem; letter-spacing: -.012em; }
.shell { grid-template-columns: 226px minmax(0, 1fr); }
.sidebar {
  padding: 28px 14px 17px;
  background: #fafbfacc;
  border-right-color: #e1e6e2;
  overflow-y: auto;
}
.sidebar > .brand { margin: 3px 0 34px 10px; }
.sidebar nav { gap: 4px; }
.nav-link { border-radius: 12px; font-size: .91rem; }
.nav-link.selected { box-shadow: none; background: #e2efe7; color: #075734; }
.nav-count { line-height: 19px; min-width: 19px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.sidebar-bottom { padding-top: 12px; }
.sidebar-user { background: #fff; border: 1px solid var(--line); padding: 9px; border-radius: 15px; }
.sidebar-user:hover, .sidebar-user[aria-current="page"] { background: #e2efe7; border-color: #d4e5da; }
.profile-identity { display: flex; align-items: center; gap: 14px; overflow-wrap: anywhere; }
.profile-avatar { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.15rem; }
.profile-photo-form { margin-top: 17px; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.profile-photo-actions .primary { margin-top: 0; }
.profile-logout { display: inline-flex; align-items: center; gap: 8px; }
.topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 61px;
  background: #f8faf9e8;
  border-bottom-color: #e2e7e3;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.desktop-label { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.desktop-label strong { color: var(--ink); font-weight: 650; }
.toolbar-separator { color: #8c9990; }
.top-actions { gap: 9px; }
.icon-button, .avatar-button { width: 44px; height: 44px; border-radius: 50%; }
.icon-button { border-color: #e8ece9; }
.avatar-button { flex-basis: 44px; }
main#main { max-width: 1300px; padding-top: clamp(22px,3vw,39px); }
.workspace-view { min-width: 0; }
.enter-view, .login-form { animation: workspace-in var(--motion-view) var(--ease-out); }
@keyframes workspace-in {
  from { transform: translateY(10px); opacity: .65; }
}
.enter-panel { animation: panel-in var(--motion-panel) var(--ease-out); }
@keyframes panel-in {
  from { transform: translateY(5px); opacity: .6; }
}
button {
  transition: background-color var(--motion-control) ease,
    color var(--motion-control) ease, border-color var(--motion-control) ease,
    opacity var(--motion-control) ease, transform var(--motion-panel) var(--ease-out);
}
button:not(:disabled):active {
  transform: scale(.969);
  transition-duration: var(--motion-press);
}
.nav-link > svg, .day-tile .icon-tile { transition: transform var(--motion-panel) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .day-tile:hover .icon-tile { transform: translateY(-2px); }
}
.primary, .secondary, .task-action { min-height: 44px; border-radius: 14px; }
.primary { font-size: .91rem; letter-spacing: -.01em; box-shadow: 0 2px 3px #103d271a; }
.secondary { padding-inline: 13px; border-color: #e1e8e3; background: #f9faf9; }
.secondary:hover { background: #ebf2ed; }
.text-button { min-height: 44px; }
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 3px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  min-height: 46px;
  border-color: #e0e7e2;
  background-color: var(--surface-inset);
  border-radius: 12px;
  transition: background-color var(--motion-control) ease, border-color var(--motion-control) ease, box-shadow var(--motion-control) ease;
}
.field :is(input,select,textarea):focus-visible { outline: none; border-color: #479773; background-color: #fff; box-shadow: 0 0 0 3px #11704720; }
.field > span, legend { font-weight: 650; }
.page-title { margin: 1px 0 var(--space-section); }
.page-title h1 { font-size: clamp(1.85rem,4vw,2.9rem); font-weight: 720; letter-spacing: -.041em; line-height: 1.08; }
.page-title p { font-size: .96rem; line-height: 1.5; }
.columns, .quick-stats, .home-plans { gap: var(--space-section); }
.columns, .quick-stats { margin: var(--space-section) 0; }
.block { margin-bottom: var(--space-section); }
.icon-tile { width: 41px; height: 41px; flex-basis: 41px; border-radius: 13px; }
.task-list { gap: 7px; }
.task-card { background: var(--surface-inset); border-color: #e8eee9; border-radius: 15px; }
.task-action { padding-inline: 13px; font-weight: 650; }
.task-meta, .message-main time { font-variant-numeric: tabular-nums; }
.message { padding-block: 13px; }
.task-brief { background: #edf4f7; }
.goal-tabs { background: #eef1ef; border-color: #e7ebe8; gap: 3px; border-radius: 13px; }
.goal-tabs button { min-height: 44px; border-radius: 10px; }
.goal-tabs button.selected { color: #115734; background: #fff; box-shadow: 0 1px 4px #112c2222; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; }
table { font-variant-numeric: tabular-nums; }
th { background: #f1f4f2; }
th:first-child { border-radius: 9px 0 0 0; }
th:last-child { border-radius: 0 9px 0 0; }
tbody tr:hover { background: #f9fbfa; }
details > summary { min-height: 43px; padding-block: 10px; }
details[open] > :not(summary) { animation: panel-in var(--motion-panel) var(--ease-out); }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  details[open] > :not(summary) { animation: none; }
  details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    block-size: 0;
    opacity: 0;
    transition: block-size var(--motion-panel) var(--ease-out),
      opacity var(--motion-control) ease, content-visibility var(--motion-panel) allow-discrete;
  }
  details[open]::details-content { block-size: auto; opacity: 1; }
}
#toast {
  border-radius: 14px;
  background: #174331;
  z-index: 5;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity var(--motion-control) var(--ease-in),
    transform var(--motion-control) var(--ease-in), visibility 0s var(--motion-control);
}
#toast.visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion-panel) var(--ease-out), transform var(--motion-panel) var(--ease-out), visibility 0s;
}
.phone-panel, .approval-row { border-radius: 17px; }
.login-layout { max-width: 1800px; margin: 0 auto; padding: clamp(12px,2.5vw,35px); gap: 12px; }
.login-art { overflow: hidden; border-radius: 27px; min-height: min(680px,87vh); box-shadow: var(--surface-shadow); }
.login-art .brand-tagline { font-family: var(--font-display); }
.login-panel { background: transparent; padding-block: 20px; }
.login-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(22px,4vw,36px);
  border-radius: 23px;
  box-shadow: var(--surface-shadow);
  width: min(100%, 465px);
}
.login-form h2 { font-size: clamp(1.75rem,3vw,2.35rem); line-height: 1.1; }
.login-form > p { margin-bottom: 16px; }
.staff-dashboard { display: grid; gap: var(--space-section); }
.staff-dashboard > * { min-width: 0; }
.staff-dashboard > .day-tiles, .staff-dashboard > .columns { margin: 0; }
.staff-dashboard > .day-tiles { grid-template-columns: repeat(4,minmax(0,1fr)); }
.attendance-break-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.attendance-break-row small { display: block; color: var(--muted); }
.attendance-break-row .form-error { grid-column: 1 / -1; }
.staff-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px,2.2vw,25px) clamp(15px,2.8vw,30px);
  color: #193d2c;
  background: linear-gradient(108deg,#e7f2e9,#f2f7ef);
  border: 1px solid #dce9df;
  border-radius: var(--radius);
}
.staff-welcome h1 {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 650 clamp(2rem,4vw,3rem)/1 var(--font-display);
  letter-spacing: -.035em;
}
.staff-welcome-greeting { min-width: 0; }
.staff-welcome .working {
  gap: 6px;
  margin-top: 8px;
  color: #25603d;
  background: #d7eadb;
}
.staff-welcome .working[hidden] { display: none; }
.staff-welcome h1 span {
  display: block;
  margin-bottom: 4px;
  color: #3d6450;
  font: 700 .88rem/1.22 var(--font-body);
  letter-spacing: normal;
}
.staff-welcome-date {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 8px 11px;
  text-align: center;
  background: #ffffffa8;
  border: 1px solid #dce9df;
  border-radius: 13px;
}
.staff-welcome-date span {
  display: block;
  color: #3d6450;
  font-size: .71rem;
  font-weight: 650;
}
.staff-welcome-date strong {
  display: block;
  margin-top: 2px;
  font: 650 1.15rem/1.14 var(--font-display);
}
.day-tiles { gap: var(--space-section); margin: var(--space-section) 0; }
.day-tile {
  background: var(--surface);
  box-shadow: var(--surface-shadow);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.day-tile:hover { border-color: #a6c9b4; }
.sales-placeholder { min-height: 142px; }
@media (max-width: 1030px) and (min-width: 801px) {
  .shell { grid-template-columns: 205px minmax(0,1fr); }
}
@media (max-width: 800px) {
  .topbar { min-height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); }
  .mobile-nav {
    --nav-gap: 2px;
    --nav-padding: 4px;
    --nav-width: calc((100% - 2 * var(--nav-padding) - (var(--nav-count) - 1) * var(--nav-gap)) / var(--nav-count));
    inset: auto max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    padding: var(--nav-padding);
    gap: var(--nav-gap);
    border-radius: 23px;
    border: 1px solid #dfe7e2;
    background: #fbfdfbe8;
    box-shadow: 0 5px 22px #162d2222;
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    z-index: 4;
  }
  .mobile-nav::before {
    content: "";
    position: absolute;
    inset: var(--nav-padding) auto var(--nav-padding) var(--nav-padding);
    width: var(--nav-width);
    border-radius: 17px;
    background: #e3f0e8;
    opacity: 0;
    transform: translateX(calc(var(--nav-index, 0) * (100% + var(--nav-gap))));
    transition: transform var(--motion-view) var(--ease-out), opacity var(--motion-control) ease;
    pointer-events: none;
  }
  .mobile-nav.has-selection::before { opacity: 1; }
  .mobile-nav .nav-link { flex: 1 1 0; width: auto; min-height: 47px; border-radius: 17px; background: transparent; font-size: .68rem; }
  .mobile-nav .nav-link.selected { background: transparent; }
  .mobile-nav .nav-link.selected > svg { transform: translateY(-1px); }
  .mobile-nav .nav-count { font-size: .61rem; min-width: 15px; line-height: 15px; }
  main#main { padding-top: 21px; padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 630px) {
  .staff-dashboard > .day-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .day-tiles { gap: 7px; }
  .day-tile { padding: 10px; border-radius: 14px; }
  .day-tile strong { font-size: 1.12rem; }
  .login-layout { display: block; min-height: 100svh; padding: 0; background: var(--paper); }
  .login-art { display: none; }
  .login-panel { min-height: 100svh; padding: 20px 15px; }
  .login-form .mobile-brand { margin-bottom: 21px; }
  .field input:not([type="checkbox"]), .field select, .field textarea { font-size: 1rem; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar,.mobile-nav,.sidebar { background: #fafcfa; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-press: 0ms;
    --motion-control: 0ms;
    --motion-panel: 0ms;
    --motion-view: 0ms;
  }
  button:not(:disabled):active, .day-tile:hover .icon-tile, .mobile-nav .nav-link.selected > svg { transform: none; }
}
.sidebar-user strong { white-space: normal; overflow-wrap: anywhere; }
