/* Student app layout (on top of app.css) */

.topbar { position: sticky; top: 0; z-index: 40; background: oklch(1 0 0 / 0.85);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(140deg, var(--primary), var(--accent)); box-shadow: var(--sh-1); }
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }

/* heading + toolbar */
.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cal-head p { margin: 6px 0 0; font-size: 15.5px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.monthnav { display: flex; align-items: center; gap: 4px; }
.monthnav .lbl { min-width: 150px; text-align: center; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill-select { position: relative; }
.pill-select select { appearance: none; padding: 8px 34px 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); background: var(--surface); font-family: inherit; font-size: 13.5px;
  font-weight: 600; color: var(--ink); cursor: pointer; }
.pill-select .chev { position: absolute; right: 12px; top: 10px; color: var(--ink-3); pointer-events: none; }
.pill-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600;
  background: var(--surface); color: var(--ink-2); }
.pill-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.pill-toggle.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-700); }
.pill-toggle.on .dot { background: var(--accent); }
.instr-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.instr-filter .flabel { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.legend { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* month grid */
.month { display: grid; grid-template-columns: repeat(7, 1fr); }
.month .wd { padding: 11px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cell { min-height: 116px; padding: 7px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); position: relative; }
.cell:nth-child(7n) { border-right: none; }
.cell.blank { background: var(--surface-2); }
.cell.today { background: oklch(0.97 0.02 256); }
.cell.has { cursor: pointer; }
.cell .dnum { font-size: 13px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; margin-bottom: 5px; }
.cell.today .dnum { background: var(--primary); color: var(--on-primary); font-weight: 800; }
.cell.pastday .dnum { color: var(--ink-3); }
.more { border: none; background: none; cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--primary-700); padding: 2px 7px; }

/* chips */
.chip-btn { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  padding: 4px 7px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; margin-bottom: 4px; min-width: 0; }
.chip-btn .t { font-size: 11.5px; font-weight: 800; flex: none; font-variant-numeric: tabular-nums; }
.chip-btn .n { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chip-btn .tag { font-size: 9.5px; font-weight: 700; color: var(--ink-3); flex: none; }
/* slot states: available=blue, selected=green, full/past=grey */
:root { --slot-green: oklch(0.6 0.14 150); --slot-green-soft: oklch(0.95 0.05 150); --slot-green-ink: oklch(0.42 0.13 150); }
.chip-btn.available { background: oklch(0.96 0.03 256); }
.chip-btn.available .t, .chip-btn.available .n { color: var(--primary-700); }
.chip-btn.selected { background: var(--slot-green-soft); }
.chip-btn.selected .t, .chip-btn.selected .n { color: var(--slot-green-ink); }
.chip-btn.full, .chip-btn.past { background: var(--bg-sunken); color: var(--ink-3); opacity: .6; cursor: default; }
.chip-btn[disabled] { cursor: default; }
.arow.slot-available { border-left: 4px solid var(--primary); }
.arow.slot-selected { border-left: 4px solid var(--slot-green); }
.arow.slot-full, .arow.slot-past { opacity: .6; }
.badge.available { background: oklch(0.95 0.04 256); color: var(--primary-700); }
.badge.selected { background: var(--slot-green-soft); color: var(--slot-green-ink); }

/* topbar account chip */
.acct { display: flex; align-items: center; gap: 9px; margin-right: 4px; }
.acct .who { line-height: 1.15; max-width: 160px; }
.acct .who .n { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .who .pg { background: none; border: none; padding: 0; color: var(--primary-700); font-family: inherit;
  font-size: 11.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }

/* week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); }
.week .col { border-right: 1px solid var(--border); min-height: 320px; }
.week .col:nth-child(7n) { border-right: none; }
.week .wh { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.week .wh.today { background: oklch(0.97 0.02 256); }
.week .wh .wd { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; }
.week .wh .dn { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.week .body { padding: 7px; }

/* agenda */
.agenda { display: grid; gap: 16px; }
.agenda .day-h { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.agenda .day-h .lbl { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.agenda .day-h .line { flex: 1; height: 1px; background: var(--border); }
.agenda .rows { display: grid; gap: 8px; }
.arow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; }
.arow .time { min-width: 92px; }
.arow .time .t { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.arow .time .d { font-size: 11.5px; color: var(--ink-3); }
.arow .meta { flex: 1; min-width: 0; }
.arow .meta .nm { font-weight: 700; font-size: 14.5px; }
.arow .meta .of { color: var(--ink-3); font-size: 12.5px; display: flex; align-items: center; gap: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* panel inner bits */
.p-instr { display: flex; gap: 14px; align-items: center; }
.p-rows { display: grid; gap: 12px; }
.p-row { display: flex; gap: 12px; align-items: flex-start; }
.p-row .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-sunken); color: var(--ink-2);
  display: grid; place-items: center; flex: none; }
.p-row .lab { font-size: 11.5px; color: var(--ink-3); }
.p-row .val { font-size: 14.5px; font-weight: 600; }
.p-row .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.p-row .sub a { color: var(--primary-700); text-decoration: underline; }
.p-box { padding: 16px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--border); }
.p-note { display: flex; gap: 11px; padding: 14px; background: var(--primary-soft); border-radius: var(--r);
  font-size: 13.5px; line-height: 1.5; color: var(--primary-700); }
.p-reassure { display: grid; gap: 9px; padding: 14px; border: 1px dashed var(--border-2); border-radius: var(--r); }
.p-reassure .r { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.signup-fields { display: grid; gap: 10px; margin-bottom: 4px; }

/* my sessions */
.mine-h { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.mine-list { display: grid; gap: 10px; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 20px; }

/* home tiles */
.home-wrap { max-width: 760px; margin: 24px auto 0; display: grid; gap: 26px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.signup-tile { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  cursor: pointer; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.signup-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--border-2); }
.signup-tile .ti { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; }
.signup-tile .tt { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.signup-tile .ts { font-size: 13.5px; color: var(--ink-2); }
.signup-tile .tm { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px;
  font-weight: 700; color: var(--primary-700); }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }

/* access gate */
.gate-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 12px; }
.gate-card { width: min(400px, 100%); padding: 28px; }
.gate-ic { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); }
.gate-fields { display: grid; gap: 11px; }
.linkbtn { background: none; border: none; padding: 0; color: var(--primary); font-family: inherit;
  font-size: inherit; font-weight: 600; cursor: pointer; }

.demo-banner { display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-700, #b45309); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; text-align: center; }
.demo-banner svg { flex: none; }
.upd-dot { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; margin-left: 3px; }
.staff-links { font-size: 12.5px; color: var(--ink-3); }
.staff-links a { color: var(--primary-700); font-weight: 600; text-decoration: none; }
.staff-links a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .cell { min-height: 88px; }
}
