/* SLUTCON pocket program — cream paper, pink ink, rubber stamps.
   Brand pulled from slutcon.com: Titan One display, Instrument Sans body. */

:root {
  --pink: #e91e7b;
  --pink-light: #ff5ca1;
  --pink-dark: #c4145f;
  --purple: #6c3fc7;
  --purple-dark: #4a2a8a;
  --gold: #f5c518;
  --gold-ink: #8a6d00;
  --cream: #faf9f7;
  --paper: #ffffff;
  --ink: #141218;
  --ink-soft: #55505c;
  --ink-faint: #8a8595;
  --rule: #e8e4de;
  --go: #1a9e5c;
  --go-bg: #e7f6ee;
  --wait: #b96a00;
  --wait-bg: #fdf3e2;
  --err: #c62828;
  --err-bg: #fdeaea;

  --display: 'Titan One', cursive;
  --body: 'Instrument Sans', -apple-system, sans-serif;
  --r: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  /* faint program-paper rule lines */
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 47px, rgba(108, 63, 199, 0.045) 47px, rgba(108, 63, 199, 0.045) 48px
  );
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== chrome ===== */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--pink);
  border-bottom: 4px solid var(--ink);
  position: sticky; top: 0; z-index: 20;
}
.wordmark {
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 var(--pink-dark);
}
.topbar-user { display: flex; align-items: center; gap: 10px; color: #ffd6e9; font-size: 13px; }
.topbar-name { font-weight: 600; color: #fff; }
.linkish { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 96px; /* room for tabbar */
}

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex;
  background: var(--ink);
  border-top: 3px solid var(--pink);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 7px;
  color: #a79fb3;
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  position: relative;
}
.tab-ico { font-size: 17px; line-height: 1; }
.tab.on { color: var(--gold); }
.tab .badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  background: var(--pink); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ===== type ===== */
.display { font-family: var(--display); font-weight: 400; color: var(--ink); }
.page-title { font-size: 26px; margin-bottom: 4px; color: var(--purple-dark); }
.section-heading {
  font-family: var(--display); font-size: 15px; font-weight: 400;
  color: var(--pink); text-transform: uppercase; letter-spacing: 1.5px;
  margin: 28px 0 10px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.section-heading.gold { color: var(--gold-ink); }
.fine { font-size: 13px; color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--body); }
.crumb { display: inline-block; font-size: 13px; font-weight: 600; color: var(--purple); margin-bottom: 12px; }

/* ===== day tabs ===== */
.day-tabs {
  display: flex; gap: 8px;
  margin: 0 -16px 14px;
  padding: 12px 16px 10px;
  position: sticky; top: 57px; z-index: 10;
  background: var(--cream);
  border-bottom: 1.5px solid var(--rule);
}
.day-tab {
  font-family: var(--display); font-size: 14px; letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}
.day-tab.on { background: var(--pink); color: #fff; box-shadow: 2px 2px 0 var(--pink-dark); border-color: var(--pink-dark); }
.day-heading { font-family: var(--display); font-size: 18px; color: var(--ink); margin: 20px 0 10px; }
.hidden { display: none; }

/* ===== session cards: paper slip with time rail ===== */
.card {
  display: flex;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 18, 24, 0.07);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card:active { transform: scale(0.985); }
.session-card.is-muted { opacity: 0.6; }

.time-rail {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 12px 12px;
  min-width: 68px;
  border-right: 2px dashed var(--rule); /* ticket perforation */
  text-align: center;
}
.time-start { font-weight: 700; font-size: 15px; color: var(--purple-dark); }
.time-end { font-size: 12px; color: var(--ink-faint); }

.card-body { padding: 12px 14px; flex: 1; min-width: 0; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.card-presenters { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 2px; }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  padding: 2px 8px; border-radius: 4px;
  background: var(--cream); color: var(--ink-soft);
  border: 1px solid var(--rule);
  text-transform: uppercase;
}
.tag-gold { background: var(--gold); color: var(--ink); border-color: var(--gold-ink); }
.tag-ace { background: #ece5f7; color: var(--purple-dark); border-color: var(--purple); }
.tag-fg { background: #fdf3cd; color: var(--gold-ink); border-color: var(--gold-ink); }
.tag-men { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-go { background: var(--go-bg); color: var(--go); border-color: currentColor; }
.tag-draft { background: var(--cream); color: var(--purple); border: 1px dashed var(--purple); }
.tag-err { background: var(--err-bg); color: var(--err); border-color: currentColor; }

.slot-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.slot-chip {
  font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--cream); border: 1.5px solid var(--rule);
  color: var(--ink-soft);
}
.slot-chip b { color: var(--ink); }
.slot-chip.full { border-style: dashed; color: var(--ink-faint); }
.slot-chip.mine { border-color: var(--pink); background: #fdeef5; color: var(--pink-dark); }
.slot-chip.mine b { color: var(--pink-dark); }

/* ===== rubber stamps ===== */
.stamp {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px; letter-spacing: 1.5px;
  padding: 4px 12px;
  border: 2.5px solid currentColor;
  border-radius: 6px;
  transform: rotate(-2deg);
  text-transform: uppercase;
}
.stamp-sm { font-size: 11px; padding: 2px 8px; border-width: 2px; }
.stamp-go { color: var(--go); background: var(--go-bg); }
.stamp-wait { color: var(--wait); background: var(--wait-bg); }

/* ===== session detail ===== */
.detail-head { margin-bottom: 12px; }
.detail-title { font-size: 24px; color: var(--purple-dark); margin: 4px 0; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 14px; color: var(--pink-dark); }
.detail-desc { margin: 12px 0; color: var(--ink-soft); }

.presenter-block { margin-top: 14px; display: grid; gap: 8px; }
.presenter {
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 10px 14px;
}
.presenter-name { font-weight: 700; }
.presenter-bio { font-size: 13px; color: var(--ink-soft); }

.slot-block {
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 12px 14px; margin-bottom: 10px;
}
.slot-head { display: flex; justify-content: space-between; align-items: baseline; }
.slot-name { font-weight: 700; }
.slot-count { font-size: 13px; font-weight: 600; color: var(--go); }
.slot-count.full { color: var(--wait); }
.meter { height: 6px; background: var(--cream); border-radius: 3px; margin: 8px 0 10px; border: 1px solid var(--rule); }
.meter-fill { height: 100%; background: var(--pink); border-radius: 3px; transition: width 300ms ease; }
.slot-action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ===== announcements ===== */
.announce {
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 10px 14px; margin-bottom: 8px;
}
.announce.unread { border-color: var(--pink); background: #fff8fb; }
.announce-meta { font-size: 12px; color: var(--ink-faint); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.announce-msg { margin-top: 2px; white-space: pre-line; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; }

/* ===== manage box ===== */
.manage-box {
  margin-top: 28px;
  border: 2px dashed var(--gold-ink);
  border-radius: var(--r);
  padding: 4px 14px 14px;
  background: #fffdf2;
}
.announce-form { display: grid; gap: 8px; margin-bottom: 8px; }
.roster-heading { font-size: 14px; font-weight: 700; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.roster-group { margin-bottom: 10px; }
.roster-slot { font-size: 12px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 2px; }
.roster-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.roster-status { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.roster-status.confirmed { color: var(--go); }
.roster-status.waitlisted { color: var(--wait); }
.roster-actions { display: inline-flex; align-items: center; gap: 10px; }
.roster-remove {
  color: var(--err); font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--err); border-radius: 6px;
  padding: 0 7px; line-height: 1.5; background: var(--err-bg);
}

/* ===== me: cancel affordance ===== */
.my-card-wrap { position: relative; }
.my-card-wrap .my-card { margin-bottom: 12px; }
.me-cancel-form { position: absolute; top: 8px; right: 8px; }
.me-cancel {
  color: var(--ink-faint); font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--rule); border-radius: 6px;
  padding: 1px 8px; background: var(--paper);
}
.me-cancel:hover { color: var(--err); border-color: var(--err); background: var(--err-bg); }

/* ===== admin filters ===== */
.admin-filter { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.input-inline { width: auto; flex: 1; min-width: 140px; padding: 7px 10px; font-size: 14px; }

/* ===== me ===== */
.me-hello { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }

/* ===== forms & buttons ===== */
.input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.input:focus { outline: 3px solid var(--pink-light); outline-offset: 1px; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 15px; letter-spacing: 0.8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-align: center;
}
.btn-sm { font-size: 12px; padding: 6px 14px; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 3px 3px 0 var(--ink); border-color: var(--pink-dark); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--rule); }

.flash {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 14px;
  font-weight: 600; font-size: 14px;
  border: 2px solid currentColor;
}
.flash-ok { background: var(--go-bg); color: var(--go); }
.flash-err { background: var(--err-bg); color: var(--err); }

.empty-state { text-align: center; padding: 40px 16px; color: var(--ink-soft); display: grid; gap: 12px; justify-items: center; }

/* ===== login ===== */
.login-wrap { display: grid; place-items: center; min-height: 70vh; }
.login-card {
  width: 100%; max-width: 420px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pink);
  padding: 32px 26px;
  text-align: center;
}
.login-mark {
  font-family: var(--display); font-size: 38px; color: var(--pink);
  text-shadow: 2.5px 2.5px 0 var(--purple);
  letter-spacing: 1px;
}
.login-sub { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; color: var(--ink-faint); margin: 4px 0 20px; }
.login-copy { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.login-form { display: grid; gap: 10px; }
.login-fine { font-size: 12px; color: var(--ink-faint); margin-top: 14px; }
.login-card .stamp { margin-bottom: 14px; }
.dev-link {
  margin: 12px 0; padding: 10px; border: 2px dashed var(--purple); border-radius: 8px;
  font-size: 12px; color: var(--purple);
}
.dev-link a { font-weight: 700; text-decoration: underline; }

/* ===== admin ===== */
.admin-actions { margin: 14px 0; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 8px 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-faint);
  border-bottom: 2px solid var(--rule);
}
.table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table-link { font-weight: 600; color: var(--purple-dark); text-decoration: underline; text-underline-offset: 2px; }
.row-muted { opacity: 0.6; }
.nowrap { white-space: nowrap; }

.people-list { display: grid; gap: 8px; }
.person-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 10px 14px;
}
.person-name { font-weight: 700; font-size: 14px; }
.person-roles { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.check input { accent-color: var(--pink); width: 15px; height: 15px; }

.admin-form { display: grid; gap: 14px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r); padding: 18px 16px; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.elig-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.elig-label { font-weight: 700; font-size: 13px; min-width: 120px; }
.form-actions { margin-top: 6px; }

/* ===== view-as banner ===== */
.viewas-banner {
  position: sticky; top: 58px; z-index: 15;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--gold);
  color: var(--ink);
  border-bottom: 2px solid var(--gold-ink);
  padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  text-align: center;
}
.viewas-reset {
  font-size: 12px; font-weight: 700;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; background: var(--paper);
}
.viewas-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== schedule header + view toggle ===== */
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sched-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
.vt-btn {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.8px;
  padding: 7px 16px; color: var(--ink);
}
.vt-btn.on { background: var(--purple); color: #fff; }

.card-desc {
  font-size: 13px; color: var(--ink-soft); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== calendar grid ===== */
.grid-wrap {
  display: flex;
  overflow-x: auto;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  /* the grid scrolls INSIDE this box so the sticky room-name row never
     leaves the screen — don't let it grow taller than the viewport */
  max-height: calc(100vh - 220px);
  min-height: 320px;
  overflow-y: auto;
  position: relative;
}
.grid-times {
  position: sticky; left: 0; z-index: 3;
  background: var(--cream);
  border-right: 2px solid var(--rule);
  min-width: 48px;
}
.grid-times-body { position: relative; }
.grid-hour {
  position: absolute; right: 6px; transform: translateY(-7px);
  font-size: 11px; font-weight: 700; color: var(--ink-faint);
}
.grid-col { min-width: 150px; border-right: 1px solid var(--rule); flex: 1 0 150px; }
.gb-pres { display: block; font-size: 10px; color: var(--ink-soft); font-style: italic; margin-top: 1px; }
.grid-col-head {
  position: sticky; top: 0; z-index: 2;
  background: var(--paper);
  font-family: var(--display); font-size: 12px; letter-spacing: 0.5px;
  padding: 8px 10px;
  border-bottom: 2px solid var(--rule);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-col-body {
  position: relative;
  /* hour line + faint half-hour line (75px = 60min at 1.25px/min) */
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 74px, var(--rule) 74px, var(--rule) 75px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 36px, rgba(232, 228, 222, 0.55) 36px, rgba(232, 228, 222, 0.55) 37px, transparent 37px, transparent 75px);
}
.grid-block {
  position: absolute; left: 3px; right: 3px;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 12px; line-height: 1.25;
  overflow: hidden;
  cursor: pointer;
}
.grid-block:hover { filter: brightness(1.03); box-shadow: 0 2px 6px rgba(20,18,24,0.18); z-index: 1; }
.grid-block.is-muted { opacity: 0.55; border-style: dashed !important; }
.grid-block.mine { box-shadow: inset 0 0 0 2px var(--pink-dark); }
/* track color-coding is the block color: Wildcard pink / Ace purple / FG gold */
.grid-block.track-wild { background: #fdeef5; border: 1px solid #f3bcd7; }
.grid-block.track-ace { background: #ece5f7; border: 1px solid #cbb8ec; }
.grid-block.track-fg { background: #fdf3cd; border: 1px solid #e2c96a; }
.gb-badge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  padding: 0 4px; border-radius: 3px; margin-right: 4px; vertical-align: 1px;
}
.gb-badge-ace { background: var(--purple); color: #fff; }
.gb-badge-fg { background: var(--gold); color: var(--ink); }
.gb-badge-men { background: var(--ink); color: #fff; }

/* ===== schedule filters (double as the color legend) ===== */
#filterBar:empty { display: none; }
#filterBar {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin: 14px 0 4px;
}
.filter-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--ink-faint); text-transform: uppercase;
}
.fchip {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink-soft);
  transition: all 120ms ease;
  display: inline-flex; align-items: center; gap: 5px;
}
.fchip .gb-badge { margin-right: 0; }
.fchip.on { border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--rule); font-weight: 700; }
/* identity-colored chips: the color IS the label, no acronyms needed */
.fchip-wild { border-color: var(--pink-light); color: var(--pink-dark); }
.fchip-wild.on { background: #fdeef5; border-color: var(--pink); box-shadow: 2px 2px 0 var(--pink-light); }
.fchip-ace { border-color: #c4b2e8; color: var(--purple-dark); }
.fchip-ace.on { background: var(--purple); border-color: var(--purple-dark); color: #fff; box-shadow: 2px 2px 0 var(--purple-dark); }
.fchip-fg { border-color: #e2c96a; color: var(--gold-ink); }
.fchip-fg.on { background: var(--gold); border-color: var(--gold-ink); color: var(--ink); box-shadow: 2px 2px 0 var(--gold-ink); }

/* list view: filtered-out sessions disappear entirely;
   calendar view: they fade (removing blocks would leave misleading holes) */
.session-card.filtered-out { display: none; }
.grid-block.filtered-out {
  opacity: 0.18;
  filter: grayscale(1);
  transition: opacity 180ms ease, filter 180ms ease;
}

/* ===== grounds-map popup ===== */
.loc-link { cursor: pointer; }
.loc-link-text {
  font: inherit; color: var(--purple);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  padding: 0;
}
.grid-col-head.loc-link:hover { color: var(--purple); text-decoration: underline dotted; text-underline-offset: 3px; }
.map-pop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 18, 24, 0.75);
  display: grid; place-items: center;
  padding: 16px;
}
.map-pop.hidden { display: none; }
.map-pop-inner {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pink);
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 10px 12px 12px;
}
.map-pop-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.map-cap { font-family: var(--display); font-size: 15px; color: var(--purple-dark); letter-spacing: 0.5px; }
.map-close { font-size: 24px; line-height: 1; color: var(--ink-faint); padding: 2px 8px; }
.map-pop img { display: block; width: 100%; height: auto; border-radius: 8px; }
.gb-time { font-weight: 700; color: var(--ink-faint); font-size: 10px; display: block; }
.gb-title { font-weight: 600; color: var(--ink); display: block; }
.gb-mine { position: absolute; top: 3px; right: 5px; color: var(--pink); }

/* ===== quick-peek bottom sheet ===== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(20, 18, 24, 0.45);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 640px; margin: 0 auto;
  max-height: 82vh; overflow-y: auto;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(20, 18, 24, 0.25);
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up 180ms ease;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
body.sheet-open { overflow: hidden; }
.sheet-close {
  position: absolute; top: 10px; right: 12px;
  font-size: 22px; line-height: 1; color: var(--ink-faint);
  padding: 4px 8px;
}
.sheet-title { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--purple-dark); margin: 2px 24px 6px 0; }
.sheet-desc { margin: 10px 0 14px; color: var(--ink-soft); font-size: 14px; white-space: pre-line; }
.sheet-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.sheet .slot-block { background: var(--cream); }

@media (min-width: 700px) {
  .page-title { font-size: 32px; }
  .detail-title { font-size: 30px; }
  .sheet { border: 2.5px solid var(--ink); border-radius: 18px; bottom: 24px; }

  /* on desktop the calendar scrolls inside its own box, so sticky day tabs
     just pile up against the header and the room-name row — unstick them */
  .day-tabs { position: static; margin: 14px 0; padding: 0; background: none; border-bottom: none; }

  /* calendar breaks out of the 640px phone column to use the whole screen */
  .grid-view {
    width: calc(100vw - 48px);
    margin-left: calc(50% - 50vw + 24px);
  }
  .grid-wrap { max-height: calc(100vh - 200px); box-shadow: 0 2px 10px rgba(20, 18, 24, 0.08); }
  .grid-col { min-width: 190px; }
  .grid-col-head { font-size: 13px; padding: 10px 12px; }
  .grid-times { min-width: 56px; }
  .grid-block { font-size: 13px; padding: 6px 9px; border-radius: 7px; }
  .gb-time { font-size: 11px; }
  .gb-pres { font-size: 11px; }
}
