:root{
  color-scheme:dark;
  --bg0:#050B12;
  --bg1:#07121E;
  --panel:#0B1622;
  --panel2:#0E1C2A;
  --stroke:rgba(255,255,255,.07);
  --stroke2:rgba(255,255,255,.12);
  --text:#EAF2FF;
  --muted:#9FB0C3;
  --muted2:#C9D6E8;
  --goldA:#FCE58A;
  --goldB:#F7D55C;
  --accent:#6CE1FF;
  --accent-2:#4A7DFF;
  --accent-3:#6BFF8E;
  --blueA:var(--accent);
  --blueB:var(--accent-2);
  --limeA:#E4FF2E;
  --limeB:var(--accent-3);
  --male:var(--accent);
  --female:#f0abfc;
  --morning:#FCE58A;
  --night:#a78bfa;
  --danger:#fb7185;
  --shadow:0 18px 45px rgba(0,0,0,.55);
  --shadow2:0 10px 25px rgba(0,0,0,.35);
  --r16:16px;
  --r20:20px;
  --r24:24px;
  --max:1240px;
  --glass-blur:blur(16px) saturate(125%);
}

*{box-sizing:border-box}
html,body{min-height:100%;text-size-adjust:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:"Google Sans Flex",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 25% -10%, rgba(108,225,255,.18), transparent 60%),
    radial-gradient(1100px 700px at 85% 0%, rgba(252,229,138,.14), transparent 60%),
    radial-gradient(900px 700px at 70% 105%, rgba(228,255,46,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 35%, #050B12);
  font-size:13px;
  line-height:1.5;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  letter-spacing:-.01em;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode:overlay;
}
button,input,textarea,select{font:inherit}
button{border:0;cursor:pointer}
.container{width:min(var(--max),calc(100% - 28px));margin-inline:auto}

/* Header */
.hero{
  padding:16px 0 18px;
  border-bottom:1px solid var(--stroke);
  background:
    radial-gradient(900px 260px at 25% 0%, rgba(108,225,255,.12), transparent 62%),
    linear-gradient(180deg, rgba(8,18,28,.72), rgba(7,18,30,.18));
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:9px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px 12px;
  border-radius:var(--r20);
  border:1px solid var(--stroke);
  background:
    radial-gradient(900px 120px at 30% 0%, rgba(252,229,138,.13), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow:0 10px 25px rgba(0,0,0,.22);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
}
.brand-mark{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-family:"Nabla","Google Sans Flex",system-ui,sans-serif;
  font-size:1.04rem;
  font-weight:400;
  letter-spacing:-.06em;
  color:#fff;
  background:
    radial-gradient(80% 80% at 30% 25%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, rgba(108,225,255,.25), rgba(74,125,255,.18));
  box-shadow:0 0 0 1px rgba(255,255,255,.10), 0 10px 25px rgba(74,125,255,.20);
}
.brand strong{
  display:block;
  font-size:.98rem;
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.76rem;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Hero card */
.hero-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:0}
.hero-card,.table-shell{
  border-radius:var(--r24);
  background:
    radial-gradient(900px 280px at 18% 0%, rgba(108,225,255,.15), transparent 58%),
    radial-gradient(900px 260px at 100% 0%, rgba(252,229,138,.10), transparent 60%),
    linear-gradient(165deg, rgba(42,62,73,.70) 0%, rgba(30,39,49,.70) 50%, rgba(15,26,34,.74) 100%);
  border:1px solid var(--stroke2);
  box-shadow:var(--shadow2);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
}
.hero-card{
  min-height:208px;
  padding:26px 28px 24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:auto -130px -160px auto;
  width:320px;
  height:320px;
  border-radius:999px;
  background:rgba(108,225,255,.14);
  filter:blur(26px);
  pointer-events:none;
}
.kicker{
  width:max-content;
  max-width:100%;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.05);
  border-radius:999px;
  padding:8px 12px;
  color:var(--muted2);
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.10em;
}
h1{
  margin:18px 0 10px;
  max-width:880px;
  font-size:clamp(2.1rem,5.2vw,4.35rem);
  line-height:.96;
  letter-spacing:-.065em;
  font-weight:900;
  color:#F4FAFF;
  text-shadow:0 0 18px rgba(108,225,255,.10);
}
.hero-text{
  max-width:780px;
  color:var(--muted2);
  font-size:clamp(.96rem,1.5vw,1.06rem);
  line-height:1.62;
  margin:0;
}
.hero-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted2);
  border:1px solid var(--stroke2);
  background:rgba(15,28,42,.56);
  border-radius:999px;
  padding:8px 12px;
  font-size:.79rem;
  font-weight:850;
}
.dot{width:8px;height:8px;border-radius:999px;background:var(--limeB);box-shadow:0 0 16px rgba(107,255,142,.24)}

/* Controls */
main.container{padding-bottom:34px}
.tools{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  margin:18px 0 16px;
}
.search-wrap{position:relative;min-width:0}
.search-wrap svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);opacity:.70;color:var(--muted)}
.search{
  width:100%;
  min-height:48px;
  border-radius:16px;
  border:1px solid var(--stroke2);
  padding:0 18px 0 44px;
  background:rgba(15,28,42,.55);
  color:var(--text);
  outline:0;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.search::placeholder{color:rgba(201,214,232,.58)}
.search:focus{border-color:rgba(108,225,255,.42);box-shadow:0 0 0 4px rgba(108,225,255,.10);background:rgba(15,28,42,.72)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:10px 16px;
  border:1px solid var(--stroke2);
  border-radius:16px;
  background:
    radial-gradient(900px 140px at 20% 0%, rgba(108,225,255,.16), transparent 60%),
    rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900;
  font-size:.84rem;
  box-shadow:0 10px 25px rgba(0,0,0,.20);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.btn:hover{transform:translateY(-1px);border-color:rgba(108,225,255,.35);background:rgba(255,255,255,.06)}

/* Table */
.table-shell{overflow:hidden}
.table-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:18px 18px 0;
}
.table-head h2{margin:0;font-size:1.04rem;font-weight:900;letter-spacing:-.02em}
.table-head p{margin:4px 0 0;color:var(--muted);font-size:.85rem;line-height:1.55}
.table-scroll{overflow:auto;padding:16px;scrollbar-width:thin;scrollbar-color:rgba(201,214,232,.35) transparent}
table{
  width:100%;
  min-width:1060px;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:rgba(15,28,42,.46);
  border:1px solid var(--stroke);
  border-radius:18px;
}
th{
  font-size:.70rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:rgba(201,214,232,.90);
  text-align:left;
  padding:13px 12px;
  white-space:nowrap;
  background:
    radial-gradient(800px 120px at 20% 0%, rgba(108,225,255,.10), transparent 60%),
    rgba(30,41,59,.64);
  border-bottom:1px solid var(--stroke);
}
th:first-child{width:18%}
th:not(:first-child){width:20.5%}
td{
  vertical-align:top;
  min-height:132px;
  padding:13px 12px;
  background:rgba(15,28,42,.34);
  border-bottom:1px solid var(--stroke);
  border-right:1px solid var(--stroke);
}
td:last-child{border-right:0}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:rgba(30,41,59,.38)}
.date-cell{background:rgba(15,28,42,.48)}
.date-card{display:flex;flex-direction:column;gap:8px;min-height:100%}
.date-card b{font-size:.98rem;line-height:1.45;color:var(--text);font-weight:900}
.date-card small,.date-short,.short-label,.day-short,[data-role="short-label"]{display:none!important}
.today-tag{display:none;width:max-content;color:#0a1018;background:linear-gradient(90deg,var(--limeA),var(--limeB));border-radius:999px;padding:5px 8px;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.is-today .today-tag{display:inline-flex}
.shift-cell{min-width:190px}
.shift-title{display:none;color:var(--text);font-size:.74rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:9px}
.shift-title span{color:var(--muted);font-weight:850}
.shift-title b{font:inherit;color:var(--muted2)}
.shift-meta,.count-chip,.total-chip{display:none!important}
.people{display:grid;grid-template-columns:1fr;gap:7px;align-content:start}
.person{
  display:grid;
  grid-template-columns:30px 1fr;
  align-items:center;
  gap:8px;
  min-width:0;
  border:1px solid rgba(108,225,255,.30);
  border-radius:12px;
  padding:7px 8px 7px 6px;
  font-size:.80rem;
  font-weight:780;
  line-height:1.25;
  color:#dff6ff;
  background:rgba(108,225,255,.10);
}
.person-index{
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:9px;
  background:rgba(15,28,42,.58);
  border:1px solid var(--stroke);
  color:#a7d8ff;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.02em;
}
.person-name{min-width:0;overflow-wrap:anywhere}
.cell-female .person{border-color:rgba(240,171,252,.30);background:rgba(192,38,211,.12);color:#fde7ff}
.cell-female .person-index{color:#f0abfc}
.cell-night .person{box-shadow:inset 0 0 0 1px rgba(167,139,250,.04)}
.empty{color:var(--muted);font-size:.82rem;font-style:italic}
.toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:20;
  border:1px solid var(--stroke2);
  background:rgba(15,28,42,.88);
  padding:13px 15px;
  border-radius:16px;
  color:var(--text);
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:.22s ease;
  box-shadow:var(--shadow2);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
}
.toast.show{opacity:1;transform:translateY(0)}

@media(max-width:980px){
  .hero-card{min-height:auto}
  .navbar{align-items:flex-start}
}
@media(max-width:760px){
  body{font-size:12px;letter-spacing:-.005em}
  .container{width:min(100% - 20px,var(--max))}
  .hero{padding:12px 0 12px}
  .navbar{display:none!important}
  .hero-grid{margin-top:0;gap:0}
  .hero-card{
    min-height:148px;
    padding:16px;
    border-radius:18px;
  }
  .hero-card::before{width:220px;height:220px;inset:auto -100px -120px auto;filter:blur(22px)}
  .kicker{
    padding:6px 9px;
    font-size:.60rem;
    letter-spacing:.08em;
    font-weight:850;
  }
  h1{
    margin:12px 0 7px;
    font-size:clamp(1.48rem,7.4vw,2.05rem);
    line-height:1.04;
    letter-spacing:-.052em;
    max-width:100%;
  }
  .hero-text{
    font-size:.80rem;
    line-height:1.48;
    color:rgba(201,214,232,.88);
  }
  .hero-meta{margin-top:12px;gap:7px}
  .pill{
    padding:6px 9px;
    gap:7px;
    font-size:.68rem;
    line-height:1.25;
    font-weight:760;
  }
  .dot{width:6px;height:6px}
  main.container{padding-bottom:22px}
  .tools{grid-template-columns:1fr;gap:9px;margin:13px 0 14px}
  .search-wrap svg{left:13px;width:16px;height:16px}
  .search{
    min-height:42px;
    border-radius:14px;
    padding:0 14px 0 39px;
    font-size:.78rem;
    box-shadow:0 8px 20px rgba(0,0,0,.16);
  }
  .btn{
    width:100%;
    min-height:40px;
    padding:8px 12px;
    border-radius:14px;
    font-size:.73rem;
    font-weight:820;
    box-shadow:0 8px 20px rgba(0,0,0,.16);
  }
  .table-shell{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .table-head{padding:0 0 10px}
  .table-head h2{font-size:.90rem;letter-spacing:-.01em}
  .table-head p{margin-top:2px;font-size:.74rem;line-height:1.42;color:rgba(159,176,195,.92)}
  .table-scroll{padding:0;overflow:visible}
  table{min-width:0;border:0;background:transparent;display:block}
  thead{display:none}
  tbody{display:grid;gap:10px}
  tr{
    display:block;
    border:1px solid var(--stroke2);
    border-radius:16px;
    background:
      radial-gradient(620px 190px at 20% 0%, rgba(108,225,255,.10), transparent 60%),
      linear-gradient(165deg, rgba(42,62,73,.58) 0%, rgba(30,39,49,.54) 50%, rgba(15,26,34,.66) 100%);
    box-shadow:0 12px 34px rgba(0,0,0,.24);
    overflow:hidden;
    backdrop-filter:var(--glass-blur);
    -webkit-backdrop-filter:var(--glass-blur);
  }
  td{display:block;border:0;border-bottom:1px solid var(--stroke);background:transparent;padding:10px 12px;min-height:0}
  td:last-child{border-bottom:0}
  td::before{content:none!important;display:none!important}
  .date-cell{background:linear-gradient(135deg,rgba(108,225,255,.11),rgba(74,125,255,.06))}
  .date-card{gap:4px}
  .date-card b{font-size:.82rem;line-height:1.36;font-weight:850}
  .today-tag{padding:4px 7px;font-size:.58rem;font-weight:850}
  .shift-title{
    display:flex;
    align-items:center;
    gap:5px;
    margin-bottom:7px;
    font-size:.63rem;
    letter-spacing:.075em;
    font-weight:850;
  }
  .shift-title span::after{content:"•";margin-left:5px;color:var(--muted)}
  .people{gap:6px}
  .person{
    grid-template-columns:25px 1fr;
    gap:7px;
    border-radius:10px;
    padding:6px 7px 6px 5px;
    font-size:.74rem;
    line-height:1.24;
    font-weight:720;
  }
  .person-index{width:22px;height:22px;border-radius:8px;font-size:.58rem;font-weight:850}
  .empty{font-size:.72rem}
  .toast{right:12px;left:12px;bottom:12px;padding:11px 13px;border-radius:14px;font-size:.76rem}
}
@media(max-width:420px){
  .container{width:min(100% - 18px,var(--max))}
  .hero{padding-top:10px}
  .hero-card{padding:14px;border-radius:16px;min-height:138px}
  h1{font-size:clamp(1.36rem,8.4vw,1.86rem);margin:10px 0 6px;line-height:1.05}
  .hero-text{font-size:.76rem;line-height:1.44}
  .hero-meta{display:grid;margin-top:10px}
  .pill{width:100%;justify-content:flex-start;font-size:.64rem;padding:6px 8px}
  .table-head p{font-size:.71rem}
  .person{grid-template-columns:24px 1fr;font-size:.71rem}
  .person-index{width:21px;height:21px;font-size:.56rem}
}

@media(max-width:360px){
  body{font-size:11.5px}
  .container{width:min(100% - 16px,var(--max))}
  .hero-card{padding:12px;min-height:130px}
  .kicker{font-size:.56rem;padding:5px 8px}
  h1{font-size:1.28rem;letter-spacing:-.045em}
  .hero-text{font-size:.72rem}
  .search{min-height:40px;font-size:.73rem}
  .btn{min-height:38px;font-size:.70rem}
  td{padding:9px 10px}
  .shift-title{font-size:.59rem}
  .person{font-size:.68rem;gap:6px}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .brand,.btn,.search,.hero-card,.table-shell,.toast,tr{background:var(--panel)}
}
