/* Hoppa Portal - the studio's launcher.
   Brand: the leaping low-poly rabbit and its speed trail; mint #2FC0A6, ink #0F2830, orange #F5A020. */

:root {
  --paper: #F3F6F5;
  --surface: #FFFFFF;
  --surface-2: #E8EEEC;
  --ink: #0F2830;
  --ink-2: #4A5F66;
  --ink-3: #7F929A;
  --line: #D6DFDC;
  --mint: #2FC0A6;
  --mint-deep: #158F7A;
  --mint-soft: #D7F3EC;
  --orange: #F5A020;
  --orange-soft: #FDECD0;
  --shadow: 0 1px 2px rgba(15, 40, 48, .06), 0 10px 30px -12px rgba(15, 40, 48, .18);
  --shadow-lift: 0 2px 4px rgba(15, 40, 48, .08), 0 18px 40px -14px rgba(15, 40, 48, .28);
  --radius: 22px;
  --logo: url("assets/rabbit.svg");
  --logo-full: url("assets/logo-dark.svg");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1A1E;
    --surface: #15262B;
    --surface-2: #1D3239;
    --ink: #EAF2F0;
    --ink-2: #B3C4C2;
    --ink-3: #7D9490;
    --line: #27403F;
    --mint: #2FC0A6;
    --mint-deep: #7FDCCB;
    --mint-soft: #16403A;
    --orange: #F5A020;
    --orange-soft: #4A3312;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px -14px rgba(0, 0, 0, .8);
    --logo: url("assets/rabbit-light.svg");
    --logo-full: url("assets/logo-light.svg");
  }
}
:root[data-theme="dark"] {
  --paper: #0E1A1E;
  --surface: #15262B;
  --surface-2: #1D3239;
  --ink: #EAF2F0;
  --ink-2: #B3C4C2;
  --ink-3: #7D9490;
  --line: #27403F;
  --mint: #2FC0A6;
  --mint-deep: #7FDCCB;
  --mint-soft: #16403A;
  --orange: #F5A020;
  --orange-soft: #4A3312;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px -14px rgba(0, 0, 0, .8);
  --logo: url("assets/rabbit-light.svg");
  --logo-full: url("assets/logo-light.svg");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ------------------------------------------------------------ top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  height: 68px;
  display: grid;
  grid-template-columns: auto minmax(240px, 520px) 1fr auto;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 42px; height: 38px; background: var(--logo) no-repeat center / contain; }
.brand .name {
  font-family: "Karantina", "Rubik", sans-serif;
  font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .01em;
  padding-top: 4px;
}

.search { position: relative; }
.search input {
  width: 100%; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: 15px;
  padding: 0 42px 0 16px;
  transition: box-shadow .15s, border-color .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.search svg { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .hint {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--ink-3); background: var(--surface-2); border-radius: 6px; padding: 2px 7px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.search input:not(:placeholder-shown) + svg + .hint { opacity: 1; }

.nav { display: flex; gap: 2px; justify-self: start; }
.nav a {
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--paper); }
.nav a.admin { color: var(--mint-deep); }

.tools { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s, transform .15s;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 18px; height: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--mint-soft); padding: 0; cursor: pointer; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .initials { font-weight: 600; color: var(--mint-deep); font-size: 14px; }

/* ------------------------------------------------------------ hero */
.hero { padding: 56px 0 8px; }
.hero .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
h1.greet {
  font-family: "Karantina", "Rubik", sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 7.5vw, 96px);
  line-height: .92;
  margin: 0;
  letter-spacing: .005em;
  position: relative;
  padding-inline-end: 4px;
}
/* the rabbit's speed trail, borrowed from the logo: three dashes and a scatter of dots */
.trail {
  display: flex; align-items: center; gap: 7px;
  margin: 14px 0 0; direction: rtl;
}
.trail i { display: block; height: 6px; border-radius: 3px; background: var(--mint); }
.trail i:nth-child(1) { width: 46px; }
.trail i:nth-child(2) { width: 22px; opacity: .85; }
.trail i:nth-child(3) { width: 9px; opacity: .7; }
.trail i:nth-child(4) { width: 6px; opacity: .55; }
.trail i:nth-child(5) { width: 6px; opacity: .35; }
.dateline { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }
.dateline .sep { color: var(--ink-3); margin: 0 8px; }
.dateline .holiday { color: var(--mint-deep); font-weight: 500; }
.dateline .holiday.soon { color: var(--orange); }

.recent { margin-top: 36px; }
.recent .label, .sec .sub-label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px;
}
.recent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.recent .empty-note { color: var(--ink-3); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------ sections */
.sec { padding: 44px 0 0; }
.sec:last-of-type { padding-bottom: 96px; }
.sec h2 {
  font-family: "Karantina", "Rubik", sans-serif;
  font-weight: 700; font-size: 44px; line-height: 1; margin: 0 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.sec h2 .count { font-family: "Rubik", sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-3); padding-top: 6px; }
.sec h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 26px 0 12px; }

/* tiles: the app-icon grid */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px 10px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 6px 10px; border-radius: 18px;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1.2), background .15s;
}
.tile:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tile .icon {
  width: 72px; height: 72px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
}
.tile:hover .icon { box-shadow: var(--shadow-lift); border-color: var(--mint); }
.tile .icon img { width: 40px; height: 40px; object-fit: contain; }
.tile .icon img.cover { width: 100%; height: 100%; object-fit: cover; }
.tile .icon svg { width: 40px; height: 40px; }
.tile .icon .letter { font-family: "Karantina", sans-serif; font-size: 40px; font-weight: 700; color: var(--mint-deep); line-height: 1; padding-top: 4px; }
.tile .t { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.25; }
.tile .s { margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.tile.small .icon { width: 56px; height: 56px; border-radius: 17px; }
.tile.small .icon img { width: 30px; height: 30px; }
.tile.small { padding: 8px 4px; }
.tile.small .t { font-size: 13px; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card {
  display: block; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 10px 14px; box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.2, .8, .3, 1.2), box-shadow .18s, border-color .18s;
}
.card:has(.main:hover) { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--mint); }
.card .main { display: block; color: inherit; border-radius: 16px; }
.card .art { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art .letter { width: 100%; height: 100%; display: grid; place-items: center; font-family: "Karantina", sans-serif; font-size: 96px; font-weight: 700; color: var(--mint-deep); }
.card .t { margin: 12px 2px 0; font-size: 16px; font-weight: 600; }
.card .s { margin: 2px 2px 0; font-size: 12.5px; color: var(--ink-3); }
.card .drive { position: absolute; top: 18px; left: 18px; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); display: grid; place-items: center; box-shadow: var(--shadow); }
.card .drive img { width: 18px; height: 18px; }
.card .stores { display: flex; gap: 6px; margin: 10px 2px 0; flex-wrap: wrap; }
.card .stores a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  transition: background .15s, color .15s;
}
.card .stores a:hover { background: var(--mint-soft); color: var(--mint-deep); }
.card .stores img { width: 13px; height: 13px; }
.card.archive .art img { filter: saturate(.85); }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.person {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px 16px; text-align: center; box-shadow: var(--shadow);
  position: relative;
}
.person .pic { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; overflow: hidden; background: var(--mint-soft); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.person .pic img { width: 100%; height: 100%; object-fit: cover; }
.person .pic .initials { font-family: "Karantina", sans-serif; font-size: 40px; font-weight: 700; color: var(--mint-deep); padding-top: 4px; }
.person .n { margin: 14px 0 0; font-size: 15.5px; font-weight: 600; }
.person .r { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; min-height: 2.7em; }
.person .tag { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--mint-deep); background: var(--mint-soft); border-radius: 999px; padding: 2px 8px; }
.person .contacts { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.person .contacts a, .person .contacts button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.person .contacts a:hover, .person .contacts button:hover { background: var(--mint-soft); border-color: var(--mint); }
.person .contacts svg { width: 15px; height: 15px; }
.person .edit { margin-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--mint-deep); background: none; border: 0; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.person .edit:hover { background: var(--mint-soft); }

/* search state */
.empty { text-align: center; color: var(--ink-3); padding: 80px 0 120px; font-size: 16px; }
.empty b { color: var(--ink); }

/* ------------------------------------------------------------ dialogs */
dialog {
  border: 0; border-radius: 24px; padding: 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
}
dialog::backdrop { background: rgba(8, 20, 24, .45); backdrop-filter: blur(3px); }
dialog.wide { width: min(980px, calc(100vw - 32px)); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.dlg-head h2 { font-family: "Karantina", sans-serif; font-weight: 700; font-size: 36px; margin: 0; line-height: 1; }
.dlg-body { padding: 18px 24px 24px; overflow: auto; max-height: calc(100vh - 140px); }
.close { background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.close:hover { background: var(--surface-2); }
.close svg { width: 18px; height: 18px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: inherit; padding: 0 12px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.field input[dir="ltr"] { direction: ltr; text-align: left; }
.field .help { font-size: 12px; color: var(--ink-3); }
.imgpick { display: flex; align-items: center; gap: 12px; }
.imgpick .prev { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.imgpick .prev img { width: 100%; height: 100%; object-fit: cover; }
.imgpick .prev .ph { font-size: 11px; color: var(--ink-3); }
.imgpick input[type="file"] { font-size: 13px; color: var(--ink-2); }
.actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 8px; align-items: center; }
.btn {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--mint-deep); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; color: #C43D3D; border-color: transparent; margin-inline-start: auto; }
.btn.danger:hover { background: #FBE7E7; }
:root[data-theme="dark"] .btn.danger:hover { background: #4A1F1F; }

/* admin */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-list { display: grid; gap: 6px; }
.admin-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
}
.admin-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.admin-row .ic img { width: 24px; height: 24px; object-fit: contain; }
.admin-row .ic img.cover { width: 100%; height: 100%; object-fit: cover; }
.admin-row .ic svg { width: 22px; height: 22px; }
.admin-row .txt { min-width: 0; }
.admin-row .txt b { display: block; font-weight: 600; font-size: 14px; }
.admin-row .txt span { display: block; font-size: 12px; color: var(--ink-3); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row .ops { display: flex; gap: 4px; }
.admin-row .ops button { height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12.5px; }
.admin-row .ops button:hover { background: var(--surface-2); }
.admin-sec { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.admin-sec h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.admin-sec .btn { height: 32px; padding: 0 12px; font-size: 13px; }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* gate: not signed in / not on the list */
.gate { max-width: 520px; margin: 14vh auto 0; text-align: center; padding: 0 24px; }
.gate .mark { width: 120px; height: 100px; margin: 0 auto 18px; background: var(--logo) no-repeat center / contain; }
.gate h1 { font-family: "Karantina", sans-serif; font-weight: 700; font-size: 52px; margin: 0 0 8px; line-height: 1; }
.gate p { color: var(--ink-2); margin: 0 0 20px; }
.gate code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }

/* ------------------------------------------------------------ attendance */
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #2A1D00; font-size: 11px; font-weight: 700; margin-inline-start: 4px; vertical-align: 1px; }

.notes { display: grid; gap: 8px; padding-top: 18px; }
.note-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mint-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--mint) 45%, transparent); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.note-item .close { width: 28px; height: 28px; flex: none; }
.note-item .close svg { width: 14px; height: 14px; }

.today { display: grid; gap: 8px; align-content: end; min-width: 260px; font-size: 14px; }
.today .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.today .lbl { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.today .all { color: var(--mint-deep); font-weight: 500; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; font-weight: 500; }
.who-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.who-chip small { color: var(--ink-3); font-weight: 400; }
.today .bday { color: var(--ink-2); }
.today .bday svg { width: 18px; height: 18px; color: var(--orange); }
.today .pend { color: var(--orange); font-weight: 600; }
.today .pend:hover { text-decoration: underline; }

.att-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.att-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 10px; }
.att-legend { margin: 0; gap: 6px 14px; font-size: 13px; flex: none; }
.att-foot .att-holidays { margin: 0; flex: 1 1 320px; }
.att-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--ink-3); flex: none; }
.sw.vacation, .c.vacation { background: var(--mint); }
.sw.sick, .c.sick { background: var(--orange); }
.sw.reserve, .c.reserve { background: #6C7BD9; }
.sw.other, .c.other { background: var(--ink-3); }
.c.unavail { background: var(--ink-2); }
.sw.pending, .c.pending { background: repeating-linear-gradient(-45deg, #F2C14E 0 4px, #FBE6A6 4px 8px); }
.sw.hol, .c.hol { background: var(--surface-2); }

.pending-box { background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 50%, transparent); border-radius: 18px; padding: 14px 18px 16px; margin-bottom: 20px; }
.pending-box h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.pending-box .count { background: var(--orange); color: #2A1D00; border-radius: 999px; padding: 0 8px; font-size: 12px; }

.att-nav { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.att-nav h3 { margin: 0; font-size: 18px; font-weight: 600; min-width: 150px; text-align: center; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }

.att-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
table.att { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
table.att th, table.att td { padding: 0; }
table.att th.who { position: sticky; right: 0; z-index: 2; background: var(--surface); text-align: right; padding: 6px 10px; min-width: 120px; border-inline-start: 1px solid var(--line); }
table.att thead th.who { background: var(--surface-2); }
table.att th.d { background: var(--surface-2); text-align: center; height: 40px; min-width: 28px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink-2); position: relative; }
table.att th.d .wd { display: block; font-size: 10px; color: var(--ink-3); line-height: 1.1; }
table.att th.d .n { display: block; font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; }
table.att th.d.we { color: var(--ink-3); }
table.att th.d.hol .n { color: var(--mint-deep); font-weight: 700; }
table.att th.d .dot { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mint); }
table.att th.d.today { box-shadow: inset 0 -3px 0 var(--ink); }
table.att th.who .pic { display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--mint-soft); vertical-align: middle; margin-inline-end: 8px; }
table.att th.who .pic img { width: 100%; height: 100%; object-fit: cover; }
table.att th.who .nm { font-weight: 500; font-size: 13px; vertical-align: middle; }
table.att tr.me th.who .nm { font-weight: 700; color: var(--mint-deep); }
table.att td.c { height: 34px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid color-mix(in srgb, var(--line) 50%, transparent); background: transparent; position: relative; }
table.att td.c.we { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
table.att td.c.hol { background: var(--surface-2); }
table.att td.c.vacation, table.att td.c.sick, table.att td.c.reserve, table.att td.c.other, table.att td.c.unavail, table.att td.c.pending { border-inline-start-color: transparent; }
table.att td.c.vacation { background: var(--mint); }
table.att td.c.sick { background: var(--orange); }
table.att td.c.reserve { background: #6C7BD9; }
table.att td.c.other { background: var(--ink-3); }
table.att td.c.unavail { background: var(--ink-2); }
table.att td.c.pending { background: repeating-linear-gradient(-45deg, #F2C14E 0 4px, #FBE6A6 4px 8px); }
table.att td.c.cancelling::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(255,255,255,.55) 4px 8px); }
table.att td.c.bday::before { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
table.att td.c.click { cursor: pointer; }
table.att td.c.click:hover { box-shadow: inset 0 0 0 2px var(--mint); }
table.att tr:last-child td.c { border-bottom: 0; }
.att-holidays { font-size: 13px; color: var(--ink-2); margin: 10px 2px 0; }
.att-holidays .lbl { color: var(--ink-3); font-weight: 600; }

.my-reqs { margin-top: 28px; }
.my-reqs h3 { margin: 0 0 10px; }
.muted { color: var(--ink-3); font-size: 14px; margin: 0; }
.reqs { display: grid; gap: 8px; }
.req { display: grid; grid-template-columns: 14px 1fr auto auto auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.req .txt b { display: block; font-weight: 600; font-size: 14px; }
.req .txt span { display: block; font-size: 12.5px; color: var(--ink-3); }
.req .txt .dn { color: var(--ink-2); }
.req.rejected, .req.cancelled { opacity: .65; }
.req .chip.pending { background: #FBE6A6; color: #5A4300; }
.req .chip.approved { background: var(--mint-soft); color: var(--mint-deep); }
.req .chip.rejected { background: #FBE7E7; color: #9E2B2B; }
.req .chip.cancelled { background: var(--surface-2); color: var(--ink-3); }
.mini { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 12.5px; font-weight: 500; }
.mini:hover { background: var(--surface-2); }
.mini.ok { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini.ok:hover { background: var(--mint-deep); border-color: var(--mint-deep); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; }
.chip-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; cursor: pointer; }
.chip-opt span::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--ink-3); }
.chip-opt.vacation span::before { background: var(--mint); }
.chip-opt.sick span::before { background: var(--orange); }
.chip-opt.reserve span::before { background: #6C7BD9; }
.chip-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.decide-text { margin: 0 0 6px; font-weight: 500; }
.btn.danger-solid { background: #C43D3D; color: #fff; }

@media (max-width: 900px) {
  .top .wrap { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav { display: none; }
  .wrap { padding: 0 18px; }
  .form { grid-template-columns: 1fr; }
}
