:root{
  color-scheme:dark;
  --bg:#0b0f14;
  --card:#151b23;
  --card2:#1d2633;
  --text:#f3f4f6;
  --muted:#9ca3af;
  --accent:#7c3aed;
  --today:#312e81;
  --selected:#166534;
}
*{box-sizing:border-box}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
.topbar{
  position:sticky;top:0;z-index:5;
  background:rgba(11,15,20,.94);backdrop-filter:blur(12px);
  display:flex;justify-content:space-between;align-items:center;
  padding:14px max(12px,calc((100vw - 1100px)/2))
}
h1{font-size:18px;margin:0}.sub{font-size:12px;color:var(--muted);margin-top:2px}
main{max-width:1100px;margin:auto;padding:8px 12px 40px}
.monthbar{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px}
.monthbar h2{font-size:20px;margin:0}
button{font:inherit;color:inherit;border:0;cursor:pointer}
.nav,.ghost{background:var(--card);border-radius:12px;padding:9px 14px}
.nav{font-size:26px;line-height:1}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.weekday{text-align:center;color:var(--muted);font-size:12px;font-weight:700;padding:4px}
.day{
  background:var(--card);min-height:112px;border-radius:10px;padding:7px;
  transition:.12s
}
.day.today{outline:2px solid var(--accent);background:var(--today)}
.day.past{opacity:.3}.day.empty{background:transparent}
.day.selected{outline:2px solid #22c55e;background:var(--selected)}
.day.drop{outline:3px solid var(--accent);transform:scale(1.01)}
.daynum{font-weight:800;font-size:14px}
.avatars{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.person-chip{
  display:flex;align-items:center;gap:4px;font-size:11px;
  background:var(--card2);border-radius:999px;padding:3px 7px 3px 3px
}
.person-chip img,.person img{
  width:30px;height:30px;border-radius:50%;object-fit:cover
}
.people-section{margin-top:14px}.people-top{margin-top:6px;margin-bottom:18px}
.section-title{font-weight:800;margin-bottom:2px;font-size:15px}
.hint{font-size:12px;color:var(--muted);margin-bottom:9px}
.people{display:flex;flex-wrap:wrap;gap:9px}
.person{
  display:flex;align-items:center;gap:7px;
  background:var(--card);padding:7px 10px 7px 7px;border-radius:999px
}
.person img{width:40px;height:40px}
.selection{
  margin-top:18px;background:var(--card);padding:14px;border-radius:14px;
  position:sticky;bottom:10px;z-index:4;box-shadow:0 10px 30px #0008
}
.selection-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.selectionPerson{display:flex;align-items:center;gap:8px}
.selection-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;vertical-align:middle}
.selection-info{font-size:13px;color:var(--muted);margin:8px 0}
.primary{background:var(--accent);padding:11px 15px;border-radius:10px;width:100%;font-weight:800}
.hidden{display:none}
.toast{
  position:fixed;bottom:22px;left:50%;
  transform:translate(-50%,20px);
  background:#111827;border:1px solid #374151;
  padding:10px 16px;border-radius:999px;opacity:0;
  pointer-events:none;transition:.2s;z-index:20
}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:650px){
  main{padding:4px 8px 30px}
  .topbar{padding:12px}
  .calendar{display:block}
  .weekday{display:none}
  .day{min-height:82px;margin:6px 0;padding:9px}
  .day.empty{display:none}
  .daynum{font-size:15px}
  .avatars{margin-top:5px}
  .person-chip{font-size:12px}
  .person-chip img{width:35px;height:35px}
  .people{gap:7px}
  .person{padding:6px 9px 6px 6px}
}


/* NECROMONGOS V4 */
:root{
  --accent:#ef1b23;
  --accent-dark:#a80f16;
  --today:#3b1014;
  --selected:#4a1115;
  --red-glow:rgba(239,27,35,.32);
}
body{
  background:
    radial-gradient(circle at 50% -10%, rgba(239,27,35,.13), transparent 38%),
    #090a0c;
}
.topbar{
  border-bottom:1px solid rgba(239,27,35,.35);
  box-shadow:0 5px 25px rgba(0,0,0,.35);
}
.logo{
  width:74px;
  height:74px;
  object-fit:contain;
  flex:none;
}
.topbar-title h1{
  color:#fff;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.ghost{
  border:1px solid rgba(239,27,35,.55);
}
.primary{
  background:linear-gradient(135deg,#ff252d,#b90e15);
  box-shadow:0 5px 18px var(--red-glow);
}
.nav{
  border:1px solid rgba(239,27,35,.35);
}
.day.today{
  outline-color:var(--accent);
  background:linear-gradient(145deg,#401014,#211014);
}
.day.selected{
  outline-color:#ff3b43;
  background:var(--selected);
}
.people-top{
  overflow:hidden;
}
.people{
  flex-wrap:nowrap;
  overflow-x:auto;
  padding:3px 2px 9px;
  scrollbar-width:thin;
}
.person{
  flex:0 0 auto;
  border:1px solid rgba(239,27,35,.24);
}
.person:hover,.person:active{
  border-color:var(--accent);
}
.mobile-agenda{
  display:none;
}

@media(max-width:650px){
  .topbar{
    padding:8px 10px;
    gap:8px;
  }
  .logo{
    width:56px;
    height:56px;
  }
  .topbar-title h1{
    font-size:14px;
    margin:0;
  }
  .topbar-title .sub{font-size:10px}
  .monthbar{
    margin:5px 0 8px;
  }
  .monthbar h2{font-size:17px}
  .calendar{display:none}
  .mobile-agenda{
    display:flex;
    flex-direction:column;
    gap:5px;
  }
  .agenda-day{
    min-height:58px;
    display:grid;
    grid-template-columns:54px 1fr;
    align-items:center;
    gap:7px;
    padding:6px 8px;
    background:linear-gradient(135deg,#15171b,#101114);
    border:1px solid #292b30;
    border-radius:11px;
  }
  .agenda-day.agenda-today{
    border-color:var(--accent);
    box-shadow:0 0 12px rgba(239,27,35,.14);
  }
  .agenda-day.selected{
    border-color:#ff3b43;
    background:#3a1115;
  }
  .agenda-date{
    display:grid;
    grid-template-columns:24px 1fr;
    grid-template-rows:20px 14px;
    column-gap:3px;
    align-items:center;
    text-align:center;
  }
  .agenda-weekday{
    grid-row:1/3;
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
  }
  .agenda-date strong{
    font-size:19px;
    line-height:18px;
  }
  .agenda-date small{
    color:#e92a32;
    font-size:9px;
    text-transform:uppercase;
  }
  .agenda-people{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
    overflow-x:auto;
  }
  .agenda-person{
    display:flex;
    align-items:center;
    gap:5px;
    flex:0 0 auto;
    background:#20242a;
    border-radius:999px;
    padding:3px 8px 3px 3px;
    font-size:11px;
  }
  .agenda-person img{
    width:34px;
    height:34px;
    border-radius:50%;
    object-fit:cover;
  }
  .no-plan{
    color:#666b73;
    font-size:11px;
  }
  .people-section{
    margin-top:8px;
    margin-bottom:10px;
  }
  .section-title{
    font-size:13px;
  }
  .hint{font-size:10px;margin-bottom:5px}
  .person{
    padding:4px 8px 4px 4px;
    font-size:11px;
  }
  .person img{width:38px;height:38px}
  .selection{
    bottom:6px;
    margin-top:10px;
    padding:10px;
  }
}


/* NECROMONGOS V5 - compact mobile month calendar */
@media(max-width:650px){
  .topbar{
    min-height:68px;
    padding:5px 9px;
  }
  .logo{
    width:58px;
    height:58px;
    object-fit:contain;
  }
  .topbar-title h1{
    font-size:15px;
    letter-spacing:.05em;
  }
  .topbar-title .sub{
    font-size:10px;
  }
  .monthbar{
    display:grid;
    grid-template-columns:52px 1fr 52px;
    gap:7px;
    align-items:center;
    margin:8px 0 8px;
  }
  .monthbar h2{
    text-align:center;
    font-size:17px;
  }
  .monthbar .nav{
    height:50px;
    padding:0;
    font-size:28px;
  }

  /* The monthly grid stays visible on mobile, but cells are compact. */
  .calendar{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:3px;
    width:100%;
  }
  .weekday{
    display:block;
    font-size:10px;
    padding:2px 0 4px;
    color:#9b9da3;
  }
  .day{
    display:flex;
    flex-direction:column;
    min-width:0;
    height:64px;
    min-height:64px;
    margin:0;
    padding:4px 3px;
    border-radius:7px;
    overflow:hidden;
    background:#131519;
    border:1px solid #25272c;
  }
  .day.empty{
    visibility:hidden;
  }
  .day.today{
    outline:2px solid var(--accent);
    border-color:transparent;
  }
  .day.selected{
    outline:2px solid #ff424a;
    background:#3a1014;
  }
  .day.drop{
    transform:none;
  }
  .daynum{
    font-size:12px;
    line-height:14px;
    text-align:center;
  }
  .avatars{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:2px;
    margin-top:4px;
    overflow:hidden;
  }
  .person-chip{
    padding:0;
    margin:0;
    background:transparent;
    border:0;
  }
  .person-chip img{
    width:23px;
    height:23px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid rgba(239,27,35,.7);
  }
  .person-chip span{
    display:none;
  }

  .people-section{
    margin:5px 0 7px;
  }
  .section-title{
    font-size:13px;
  }
  .hint{
    font-size:10px;
    margin-bottom:4px;
  }
  .people{
    gap:6px;
    padding-bottom:4px;
  }
  .person{
    padding:3px 7px 3px 3px;
    font-size:10px;
    border-radius:999px;
  }
  .person img{
    width:36px;
    height:36px;
  }
}

/* Desktop/tablet keep the full calendar with names. */
@media(min-width:651px){
  .logo{display:block}
}


/* V6 – shared password login */
.header-actions{display:flex;align-items:center;gap:6px}
.header-actions form{margin:0}
.logout-btn{padding:9px 11px;color:#ff5b62}
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 15%,rgba(239,27,35,.18),transparent 35%),#090a0c}
.login-card{width:min(92vw,390px);padding:28px 22px 24px;text-align:center;background:linear-gradient(145deg,#15171b,#0f1012);border:1px solid rgba(239,27,35,.55);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.55),0 0 30px rgba(239,27,35,.08)}
.login-logo{width:min(220px,70vw);height:auto;display:block;margin:0 auto 6px}
.login-card h1{font-size:24px;letter-spacing:.06em;margin:0}
.login-card p{margin:5px 0 22px;color:var(--muted)}
.login-card form{display:flex;flex-direction:column;gap:8px;text-align:left}
.login-card label{font-size:13px;color:#c8c9cd}
.login-card input{width:100%;padding:12px 13px;border-radius:10px;border:1px solid #35383f;background:#090a0c;color:#fff;outline:none;font:inherit}
.login-card input:focus{border-color:var(--accent);box-shadow:0 0 0 2px rgba(239,27,35,.14)}
.login-button{margin-top:6px}
.login-error{font-size:13px;color:#ff666d;margin-top:2px}
@media(max-width:650px){.topbar{gap:6px}.header-actions{margin-left:auto}.logout-btn{padding:8px 10px}.login-card{padding:22px 18px}}

/* NECROMONGOS V7 - mobile calendar fix + per-day time windows */
.day.empty{display:block !important}

.secondary{color:#fff}
.modal{position:fixed;inset:0;z-index:50}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(3px)}
.time-sheet{
  position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:min(100%,520px);background:linear-gradient(145deg,#17191d,#0e1013);
  border:1px solid rgba(239,27,35,.5);border-bottom:0;
  border-radius:20px 20px 0 0;padding:10px 18px 20px;
  box-shadow:0 -15px 45px #000a
}
.sheet-handle{width:42px;height:4px;background:#45484f;border-radius:99px;margin:0 auto 12px}
.time-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.eyebrow{font-size:10px;color:#ff6269;text-transform:uppercase;letter-spacing:.12em}
.time-head h3{margin:2px 0 2px;font-size:21px}
.time-date{color:var(--muted);font-size:13px}
.time-person{display:flex;align-items:center;gap:8px;margin:14px 0 10px;font-size:14px}
.time-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover}
.quick-times{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px}
.quick-times button{flex:0 0 auto;background:#24272d;border:1px solid #3a3d43;color:#fff;border-radius:999px;padding:8px 11px}
.time-fields{display:grid;grid-template-columns:1fr 20px 1fr;align-items:end;gap:8px}
.time-fields label{font-size:12px;color:var(--muted)}
.time-fields input{
  display:block;width:100%;margin-top:4px;background:#090a0c;border:1px solid #3b3e45;
  color:#fff;border-radius:10px;padding:11px;font:inherit
}
.time-dash{text-align:center;padding-bottom:12px;color:var(--muted)}
.time-hint{font-size:11px;color:var(--muted);margin:8px 0 12px}
.time-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.danger{color:#ff7278 !important;width:100%}

@media(max-width:650px){
  .calendar{
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:3px
  }
  .weekday{display:block !important}
  .day{
    height:72px;min-height:72px;margin:0;padding:4px 2px;
    border-radius:7px;overflow:hidden;background:#131519;border:1px solid #25272c
  }
  .day.empty{
    display:block !important;
    visibility:hidden !important;
    background:transparent !important
  }
  .person-chip{display:flex;flex-direction:column;gap:1px;padding:0;background:transparent}
  .person-chip img{width:24px;height:24px;border:1px solid rgba(239,27,35,.7)}
  .person-name{display:none}
  .chip-time{font-size:7px;line-height:8px;max-width:42px;overflow:hidden}
  .time-sheet{padding:8px 14px 18px;border-radius:18px 18px 0 0}
  .time-head h3{font-size:19px}
  .time-fields input{font-size:16px}
  .quick-times button{font-size:12px}
  .time-actions{grid-template-columns:1fr 1fr}
}

/* NECROMONGOS V8: visible daily signup ranking */
.rank-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 4px;
  border-radius:7px;
  background:#25282e;
  border:1px solid rgba(239,27,35,.45);
  color:#ff6970;
  font-size:10px;
  font-weight:900;
  line-height:1;
}
.person-chip:first-child .rank-badge{
  background:linear-gradient(135deg,#ff252d,#a80f16);
  color:#fff;
  border-color:#ff4a51;
}
.agenda-rank{
  color:#ff6970;
  font-size:10px;
  font-weight:900;
}
@media(max-width:650px){
  .person-chip{position:relative}
  .rank-badge{
    position:absolute;
    top:0;
    right:0;
    min-width:15px;
    height:15px;
    padding:0 2px;
    border-radius:5px;
    font-size:8px;
    z-index:2;
  }
  .person-chip img{width:28px;height:28px}
}

/* NECROMONGOS V9 - day overview */
.day-overview-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:min(55vh,460px);
  overflow:auto;
  margin-top:14px;
}
.day-overview-row{
  display:grid;
  grid-template-columns:34px 42px 1fr;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  background:#15181c;
  border:1px solid #2a2d33;
  border-radius:12px;
  cursor:pointer;
}
.day-overview-row:active{transform:scale(.99)}
.overview-rank{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:8px;
  background:#24272c;
  color:#ff6870;
  font-size:12px;
  font-weight:900;
}
.day-overview-row:first-child .overview-rank{
  color:#fff;
  background:linear-gradient(135deg,#ff252d,#a80f16);
}
.overview-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(239,27,35,.55);
}
.overview-main{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.overview-main strong{font-size:15px}
.overview-main span{font-size:12px;color:var(--muted);margin-top:2px}
.day-overview-empty{
  padding:28px 10px;
  text-align:center;
  color:var(--muted);
}
@media(max-width:650px){
  .day-sheet{padding-bottom:22px}
  .day-overview-list{max-height:52vh}
  .day-overview-row{
    grid-template-columns:32px 44px 1fr;
    padding:10px;
  }
  .overview-avatar{width:44px;height:44px}
  .overview-main strong{font-size:16px}
  .overview-main span{font-size:13px}
}

/* NECROMONGOS V10 - compact mobile day thumbnails */
@media(max-width:650px){
  .avatars{
    display:flex !important;
    flex-wrap:wrap;
    align-content:flex-start;
    justify-content:flex-start;
    gap:1px !important;
    padding:2px 1px 0 !important;
  }

  .person-chip{
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    flex:0 0 18px !important;
    display:block !important;
    position:relative;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
  }

  .person-chip img{
    display:block !important;
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    border-radius:50% !important;
    object-fit:cover;
    border:1px solid rgba(239,27,35,.75) !important;
  }

  .person-chip .person-name,
  .person-chip .chip-time{
    display:none !important;
  }

  .person-chip .rank-badge{
    top:-3px !important;
    right:-3px !important;
    min-width:9px !important;
    width:9px !important;
    height:9px !important;
    padding:0 !important;
    border-radius:50% !important;
    font-size:0 !important;
    border-width:1px !important;
  }

  /* Only the first five participants are displayed in the compact cell.
     The day overview still contains the complete list. */
  .person-chip:nth-child(n+6){
    display:none !important;
  }

  .day{
    padding:4px 2px !important;
  }
}

/* NECROMONGOS V11 - compact 7-day weekly view */
.week-day .daylabel{
  position:absolute;
  top:5px;
  right:5px;
  color:#6d7179;
  font-size:9px;
  text-transform:uppercase;
}
.week-day .avatars{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
}
@media(max-width:650px){
  .calendar{
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:4px !important;
  }
  .weekday{
    font-size:10px !important;
    padding:2px 0 !important;
  }
  .day.week-day{
    height:88px !important;
    min-height:88px !important;
    padding:5px 3px !important;
    border-radius:9px !important;
    position:relative;
  }
  .week-day .daynum{
    font-size:16px !important;
    line-height:18px;
    position:relative;
    z-index:1;
  }
  .week-day .daylabel{
    top:7px;
    right:5px;
    font-size:8px;
  }
  .week-day .avatars{
    margin-top:8px;
    display:flex !important;
    flex-wrap:wrap;
    gap:2px !important;
    max-width:100%;
  }
  .week-day .person-chip{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    flex:0 0 20px !important;
  }
  .week-day .person-chip img{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    border-width:1px !important;
  }
  .week-day .rank-badge{
    display:none !important;
  }
  .week-day .person-name,
  .week-day .chip-time{
    display:none !important;
  }
}
@media(min-width:651px){
  .week-day{
    min-height:260px;
  }
}

/* NECROMONGOS V12 - overnight time-window hint */
.overnight-hint{
  color:#ff6970;
  font-size:11px;
  margin-top:4px;
}

/* NECROMONGOS V13 - mobile time input sizing */
.time-fields,
.time-fields label,
.time-fields input{
  box-sizing:border-box;
  min-width:0;
}
.time-fields input{
  max-width:100%;
}
@media(max-width:650px){
  .time-sheet{
    width:100%;
    max-width:520px;
    box-sizing:border-box;
    padding-left:16px;
    padding-right:16px;
  }
  .time-fields{
    grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);
    gap:7px;
  }
  .time-fields label{
    min-width:0;
  }
  .time-fields input{
    width:100%;
    min-width:0;
    height:46px;
    padding:8px 9px;
    font-size:17px;
    -webkit-appearance:auto;
    appearance:auto;
  }
  .time-dash{
    padding-bottom:15px;
  }
  .quick-times{
    gap:5px;
    scrollbar-width:none;
  }
  .quick-times::-webkit-scrollbar{
    display:none;
  }
  .quick-times button{
    padding:8px 10px;
    font-size:12px;
  }
}

/* NECROMONGOS V14 - custom mobile-friendly time fields */
.time-input-wrap{
  display:block;
  min-width:0;
}
.time-input-wrap > span:first-child{
  display:block;
  margin-bottom:7px;
}
.time-input-box{
  position:relative;
  width:100%;
  min-width:0;
}
.time-input-box input{
  box-sizing:border-box;
  display:block;
  width:100%;
  height:52px;
  padding:8px 38px 8px 14px;
  border:1px solid #363a41;
  border-radius:12px;
  background:#08090b;
  color:#f5f5f5;
  font-size:19px;
  font-weight:600;
  text-align:left;
  outline:none;
}
.time-input-box input:focus{
  border-color:#ff2931;
  box-shadow:0 0 0 2px rgba(255,41,49,.12);
}
.time-input-box input::placeholder{
  color:#656a73;
}
.time-icon{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:#8e949d;
  font-size:20px;
  pointer-events:none;
}
@media(max-width:650px){
  .time-sheet{
    padding-left:16px !important;
    padding-right:16px !important;
  }
  .time-fields{
    grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr) !important;
    gap:6px !important;
    align-items:end;
  }
  .time-input-box input{
    height:52px;
    font-size:18px;
    padding-left:12px;
    padding-right:36px;
  }
  .time-icon{
    right:10px;
    font-size:18px;
  }
  .time-dash{
    align-self:end;
    padding-bottom:18px !important;
  }
}

/* V15: spacious mobile weekly day cards */
@media(max-width:650px){
  .day.week-day{
    height:180px !important;
    min-height:180px !important;
    padding:7px 5px 6px !important;
    border-radius:11px !important;
    overflow:hidden;
  }
  .week-day .daynum{font-size:18px !important;line-height:21px}
  .week-day .daylabel{top:8px;right:6px;font-size:8px}
  .week-day .avatars{
    margin-top:9px !important;
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    gap:3px !important;
    width:100%;
  }
  .week-day .person-chip{
    width:100% !important;
    height:27px !important;
    min-width:0 !important;
    flex:0 0 27px !important;
    display:grid !important;
    grid-template-columns:20px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:4px !important;
    padding:0 2px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:5px !important;
    background:transparent !important;
    text-align:left !important;
    pointer-events:none;
  }
  .week-day .person-chip img{
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    border-radius:50% !important;
    object-fit:cover;
    border:1px solid rgba(239,27,35,.75) !important;
    grid-column:1;
    grid-row:1;
  }
  .week-day .person-chip .rank-badge{display:none !important}
  .week-day .person-chip .person-name{
    display:block !important;
    grid-column:2;
    grid-row:1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:9px !important;
    line-height:1;
    color:#e7e8ea;
  }
  .week-day .person-chip .chip-time{
    display:block !important;
    grid-column:3;
    grid-row:1;
    white-space:nowrap;
    font-size:8px !important;
    line-height:1;
    color:#aeb2b9;
    max-width:39px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .week-day .person-chip:nth-child(n+6){display:none !important}
  .calendar{gap:4px !important}
}

/* NECROMONGOS V16 - centered avatar + time underneath */
@media(max-width:650px){
  .week-day .avatars{
    align-items:center !important;
    gap:4px !important;
  }

  .week-day .person-chip{
    width:100% !important;
    height:30px !important;
    min-height:30px !important;
    flex:0 0 30px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    gap:1px !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
  }

  .week-day .person-chip img{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    min-height:20px !important;
    flex:0 0 20px !important;
    object-fit:cover;
    border:1px solid rgba(239,27,35,.75) !important;
    border-radius:50% !important;
  }

  .week-day .person-chip .rank-badge,
  .week-day .person-chip .person-name{
    display:none !important;
  }

  .week-day .person-chip .chip-time{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    text-align:center !important;
    font-size:8px !important;
    line-height:9px !important;
    color:#b9bdc5 !important;
  }

  /* No time window: leave a tiny footprint under the avatar. */
  .week-day .person-chip .chip-time:empty{
    display:none !important;
  }
}

/* NECROMONGOS V17 - make compact calendar time labels always fit */
@media(max-width:650px){
  .week-day .person-chip{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .week-day .person-chip .chip-time{
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:0 1px !important;
    margin:0 !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:nowrap !important;
    text-align:center !important;
    font-size:7px !important;
    line-height:8px !important;
    letter-spacing:-0.2px !important;
    font-weight:600 !important;
  }
}

/* NECROMONGOS V19 - five participant rows on mobile */
@media(max-width:650px){
  .day.week-day{
    height:215px !important;
    min-height:215px !important;
  }

  .week-day .avatars{
    gap:3px !important;
    overflow:visible !important;
  }

  .week-day .person-chip{
    height:30px !important;
    min-height:30px !important;
    flex:0 0 30px !important;
  }

  .week-day .person-chip:nth-child(n+6){
    display:none !important;
  }
}
