/* Schedule: dimmed free days in the week strip, a kind accent on lesson rows and a richer lesson card.
   Loaded after astra.css; the #study-main prefix outranks its schedule rules. */

/* Week strip: free days are dimmed; the lesson count stays in the button's accessible name. */
body.beta #study-main .day-strip button.is-free:not([aria-pressed=true]) > :is(span, strong) { color: var(--ui-muted); }
/* The strip clips overflow, so keyboard focus stays inside each day cell. */
body.beta #study-main .day-strip button:focus-visible { outline-width: 2px; outline-offset: -4px; }
body.beta #study-main .day-strip button[aria-pressed=true]:focus-visible { outline-color: currentColor; }

/* Lesson rows: a thin accent by kind (lecture, practice, lab) and the subgroup when there is one. */
body.beta #study-main .lesson-body { position: relative; overflow: hidden; }
body.beta #study-main .lesson-body::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lesson-tone, var(--ui-accent));
}
body.beta #study-main .lesson-body.mint { --lesson-tone: var(--ui-success); }
body.beta #study-main .lesson-body.amber { --lesson-tone: var(--ui-warning); }
body.beta #study-main .lesson-body.is-upcoming::before { background: rgba(255, 255, 255, .75); }
body.beta #study-main .lesson-body > .lesson-subgroup {
  order: 10;
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ui-soft);
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 600;
}
body.beta #study-main .lesson-body.is-upcoming > .lesson-subgroup { background: rgba(255, 255, 255, .18); color: #fff; }

/* Lesson card: kind chip, live status, a time panel with progress, facts with icons, next lesson. */
body.beta #study-main .lesson-detail .lesson-kind[data-kind] {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  font-size: 12px;
  font-weight: 650;
}
body.beta #study-main .lesson-detail .lesson-kind[data-kind=practice] { background: var(--ui-success-bg); color: var(--ui-success); }
body.beta #study-main .lesson-detail .lesson-kind[data-kind=lab] { background: var(--ui-warning-bg); color: var(--ui-warning); }
body.beta #study-main .lesson-detail .lesson-kind[data-kind=exam] { background: var(--ui-danger-bg); color: var(--ui-danger); }
body.beta #study-main .lesson-detail .lesson-kind[data-kind=consult] { background: var(--ui-soft); color: var(--ui-text); }

/* Live status stays below the title; lesson kind belongs to the time panel. */
body.beta #study-main .lesson-detail-tags { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
body.beta #study-main .lesson-detail .lesson-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 0;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--ui-soft);
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
body.beta #study-main .lesson-live > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
body.beta #study-main .lesson-detail .lesson-live[data-state=live] { background: var(--ui-success-bg); color: var(--ui-success); }
body.beta #study-main .lesson-detail .lesson-live[data-state=soon] { background: var(--ui-accent-soft); color: var(--ui-accent); }
body.beta #study-main .lesson-live[data-state=live] > i { animation: lesson-live-pulse 1.6s ease-in-out infinite; }

body.beta #study-main .lesson-detail-time { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--ui-soft); }
body.beta #study-main .lesson-detail-time .lesson-duration {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
}
body.beta #study-main .lesson-detail-time .lesson-progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ui-border);
  overflow: hidden;
  appearance: none;
}
body.beta #study-main .lesson-progress::-webkit-progress-bar { background: var(--ui-border); border-radius: 999px; }
body.beta #study-main .lesson-progress::-webkit-progress-value { background: var(--ui-success); border-radius: 999px; }
body.beta #study-main .lesson-progress::-moz-progress-bar { background: var(--ui-success); border-radius: 999px; }

body.beta #study-main .lesson-detail-facts { gap: 0; margin-top: 6px; }
body.beta #study-main .lesson-detail-facts > div {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 1px;
  padding: 12px 0;
  border-top: 1px solid var(--ui-border);
}
body.beta #study-main .lesson-detail-facts > div:first-child { border-top: 0; }
body.beta #study-main .lesson-fact-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
}
body.beta #study-main .lesson-fact-icon svg { width: 18px; height: 18px; }

body.beta #study-main .lesson-detail .lesson-next {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--ui-accent-soft);
  color: var(--ui-text);
  text-align: left;
  cursor: pointer;
}
body.beta #study-main .lesson-next > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
body.beta #study-main .lesson-next small { color: var(--ui-accent); font-size: 12px; font-weight: 650; }
body.beta #study-main .lesson-next strong { overflow: hidden; color: var(--ui-text); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.beta #study-main .lesson-next > svg { flex: none; width: 18px; height: 18px; color: var(--ui-accent); }

@keyframes lesson-live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  body.beta #study-main .lesson-live[data-state=live] > i { animation: none; }
}

body.beta #study-main .lesson-title { hyphens: none; word-break: normal; overflow-wrap: break-word; }
@media (max-width: 359px) {
  body.beta #study-main .lesson-row { grid-template-columns: 44px minmax(0,1fr); gap: 8px; }
  body.beta #study-main .lesson-body { padding: 12px; }
  body.beta #study-main .lesson-body .lesson-title { font-size: 14px; line-height: 1.4; letter-spacing: -.15px; }
}

/* Lesson type is part of the time panel, not a loose chip below the title. */
body.beta #study-main .lesson-detail-title {flex-wrap:nowrap;align-items:center;gap:12px;}
body.beta #study-main .lesson-title-copy {flex:1;min-width:0;}
body.beta #study-main .lesson-title-copy h1 {margin:0;font-size:clamp(20px,5.5vw,28px);line-height:1.2;}
body.beta #study-main .lesson-detail-title > .astra-back {flex-shrink:0;}
body.beta #study-main .lesson-time-meta {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:2px;}
body.beta #study-main .lesson-time-meta .lesson-kind {margin:0;line-height:1.4;}
body.beta #study-main .lesson-time-meta .lesson-duration {margin:0;padding:0;background:none;font-size:11px;}

/* The teacher of a lesson: a letter starts here (the address comes from the university address book). */
body.beta #study-main .lesson-detail-facts > .lesson-teacher-card:has(.lesson-write) { grid-template-columns:36px minmax(0,1fr) auto; }
body.beta #study-main .lesson-write { grid-column:3; grid-row:1 / span 2; align-self:center; display:inline-flex; align-items:center; gap:7px; min-height:40px; margin:0; padding:8px 14px; border:0; border-radius:999px; background:var(--ui-accent-soft); color:var(--ui-accent); font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
body.beta #study-main .lesson-write:hover { background:var(--ui-soft); }
body.beta #study-main .lesson-write:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
body.beta #study-main .lesson-write svg { width:16px; height:16px; }


/* One lesson with its real subgroup choices, without duplicated time/title rows. */
body.beta #study-main .lesson-subgroup-parts{order:3;display:grid;gap:8px;margin-top:8px;width:100%;text-align:left}
body.beta #study-main .lesson-subgroup-parts>span{display:grid;gap:2px;padding-top:8px;border-top:1px solid var(--ui-border)}
body.beta #study-main .lesson-subgroup-parts b{font-size:12px;font-weight:600;color:var(--ui-text)}
body.beta #study-main .lesson-subgroup-parts>span>span{font-size:12px;line-height:1.4;color:var(--ui-muted)}
body.beta #study-main .lesson-body:is(.is-current,.is-upcoming) .lesson-subgroup-parts{color:var(--ui-on-action,#fff)}
body.beta #study-main .lesson-body:is(.is-current,.is-upcoming) .lesson-subgroup-parts :is(b,span){color:inherit;border-color:rgba(255,255,255,.25)}
body.beta #study-main .lesson-subgroup-detail{display:grid;gap:10px;min-width:0}
body.beta #study-main .lesson-subgroup-detail+ .lesson-subgroup-detail{margin-top:12px}
body.beta #study-main .lesson-subgroup-detail>h2{margin:0;font-size:15px;line-height:1.4}
body.beta #study-main .schedule-free{display:grid;justify-items:center;text-align:center;padding-block:28px}
body.beta #study-main .schedule-free .campus-study-sticker{width:120px;height:112px;margin-bottom:12px}

/* Where the room is: building, floor, address and a map link under the room name. */
body.beta #study-main .lesson-detail-facts .lesson-whereabouts { grid-column:2; display:grid; gap:2px; margin:6px 0 0; font-size:14px; line-height:1.45; color:var(--ui-text); }
body.beta #study-main .lesson-whereabouts span:nth-child(2) { color:var(--ui-muted); }
body.beta #study-main .lesson-whereabouts a { display:inline-flex; align-items:center; gap:4px; justify-self:start; min-height:44px; margin-top:2px; font-weight:650; color:var(--ui-accent); text-decoration:none; }
body.beta #study-main .lesson-whereabouts a svg { width:16px; height:16px; }
body.beta #study-main .lesson-whereabouts a:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; border-radius:8px; }

/* The teacher's files: opens the mailbox on letters with attachments from this teacher. */
body.beta #study-main .lesson-materials { grid-column:2 / -1; justify-self:start; display:inline-flex; align-items:center; gap:7px; min-height:40px; margin:8px 0 0; padding:8px 14px; border:1px solid var(--ui-border); border-radius:999px; background:transparent; color:var(--ui-accent); font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
body.beta #study-main .lesson-materials:hover { background:var(--ui-accent-soft); }
body.beta #study-main .lesson-materials:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
body.beta #study-main .lesson-materials svg { width:16px; height:16px; flex:none; }

/* The map of the university buildings on a lesson card. Colours come from the theme, so it follows light and dark.
   Sizes of letters and lines are attributes of the picture: they depend on how close the view is. */
body.beta #study-main .lesson-map { grid-column:1 / -1; margin-top:10px; min-width:0; }
body.beta #study-main .campus-map { display:grid; gap:10px; min-width:0; --map-ground:#eef1f5; --map-green:#d8edd2; --map-pitch:#c5e4bd; --map-tree:#a8d49d; --map-road:#fff; --map-road-edge:#d5dbe6; --map-walk:#c3cad8; --map-tram:#b9c0cf; --map-other:#e1e5ec; --map-other-side:#c6ccd8; --map-roof:#dfe7ff; --map-side:#9fb3f2; --map-ink:#19233a; }
html[data-theme=dark] body.beta #study-main .campus-map { --map-ground:#171c27; --map-green:#1d3324; --map-pitch:#234530; --map-tree:#2f5a3b; --map-road:#2a3142; --map-road-edge:#10141c; --map-walk:#3a4358; --map-tram:#465069; --map-other:#262d3c; --map-other-side:#11151d; --map-roof:#2b3a6b; --map-side:#16204a; --map-ink:#eef1f8; }
body.beta #study-main .campus-map-frame { position:relative; overflow:hidden; border:1px solid var(--ui-border); border-radius:20px; background:var(--map-ground); box-shadow:0 10px 24px -18px rgba(25,35,58,.45); }
body.beta #study-main .campus-map-picture { display:block; width:100%; height:auto; aspect-ratio:1.2; }
body.beta #study-main .campus-ground { fill:var(--map-ground); }
body.beta #study-main .campus-green { fill:var(--map-green); }
body.beta #study-main .campus-pitch { fill:var(--map-pitch); stroke:var(--map-green); stroke-width:1; }
body.beta #study-main .campus-trees circle { fill:var(--map-tree); }
body.beta #study-main .campus-road,body.beta #study-main .campus-road-edge,body.beta #study-main .campus-walk,body.beta #study-main .campus-tram { fill:none; stroke-linecap:round; stroke-linejoin:round; }
body.beta #study-main .campus-road-edge { stroke:var(--map-road-edge); stroke-width:12; }
body.beta #study-main .campus-road-edge.is-wide { stroke-width:19; }
body.beta #study-main .campus-road { stroke:var(--map-road); stroke-width:9.5; }
body.beta #study-main .campus-road.is-wide { stroke-width:16.5; }
body.beta #study-main .campus-tram { stroke:var(--map-tram); stroke-width:1.1; stroke-dasharray:5 3; }
body.beta #study-main .campus-walk { stroke:var(--map-walk); stroke-width:2.2; }
body.beta #study-main .campus-other { fill:var(--map-other); }
body.beta #study-main .campus-other-side { fill:var(--map-other-side); }
body.beta #study-main .campus-side { fill:var(--map-side); }
body.beta #study-main .campus-building { fill:var(--map-roof); stroke:var(--ui-accent); stroke-linejoin:round; cursor:pointer; transition:fill .18s ease; }
body.beta #study-main .campus-building.is-from { fill:var(--map-roof); }
body.beta #study-main .campus-building.is-selected { fill:var(--ui-accent); }
body.beta #study-main .campus-letter { font-family:Inter,system-ui,sans-serif; font-weight:700; fill:var(--ui-accent); stroke:var(--map-roof); paint-order:stroke; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .campus-letter.is-selected { fill:var(--ui-accent); stroke:none; }
body.beta #study-main .campus-pin { pointer-events:none; }
body.beta #study-main .campus-pin-shade { fill:var(--map-ink); opacity:.28; }
body.beta #study-main .campus-pin-body { fill:#fff; stroke:var(--ui-accent); stroke-linejoin:round; filter:drop-shadow(0 2px 3px rgba(25,35,58,.3)); }
body.beta #study-main .campus-street { font-family:Inter,system-ui,sans-serif; font-weight:500; fill:var(--ui-muted); stroke:var(--map-road); paint-order:stroke; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .campus-way,body.beta #study-main .campus-way-edge { fill:none; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .campus-way-edge { stroke:var(--map-road); opacity:.9; }
body.beta #study-main .campus-way { stroke:var(--ui-accent); }
body.beta #study-main .campus-way-start { fill:var(--map-road); stroke:var(--ui-accent); }
body.beta #study-main .campus-door { fill:#ffb020; stroke:var(--map-road); pointer-events:none; }
body.beta #study-main .campus-stop circle { fill:var(--map-road); stroke:#e5484d; }
body.beta #study-main .campus-stop text { font-family:Inter,system-ui,sans-serif; font-weight:700; fill:#e5484d; }
body.beta #study-main .campus-partner-pin circle { fill:#ffb020; stroke:var(--map-road); }
body.beta #study-main .campus-partner-pin text { fill:#fff; font-family:system-ui,sans-serif; }
body.beta #study-main .campus-scale path { fill:none; stroke:var(--map-ink); opacity:.7; }
body.beta #study-main .campus-scale text { font-family:Inter,system-ui,sans-serif; font-weight:600; fill:var(--map-ink); stroke:var(--map-ground); paint-order:stroke; stroke-linejoin:round; opacity:.8; }
body.beta #study-main .campus-north circle { fill:var(--map-road); stroke:var(--map-road-edge); opacity:.92; }
body.beta #study-main .campus-north path { fill:#e5484d; }
body.beta #study-main .campus-halo { fill:none; stroke:var(--ui-accent); opacity:.45; transform-box:fill-box; transform-origin:center; animation:campus-halo 2.4s ease-out infinite; pointer-events:none; }
@keyframes campus-halo { from { transform:scale(.5); opacity:.6; } to { transform:scale(1.5); opacity:0; } }
@media (prefers-reduced-motion:reduce) { body.beta #study-main .campus-halo { animation:none; } body.beta #study-main .campus-building { transition:none; } }
body.beta #study-main .campus-map-caption { display:grid; gap:6px; font-size:14px; line-height:1.45; }
body.beta #study-main .campus-map-caption:empty { display:none; }
body.beta #study-main .campus-map-caption strong { font-size:15px; font-weight:650; color:var(--ui-text); }
body.beta #study-main .campus-map-caption > span { margin:0; color:var(--ui-muted); font-size:14px; font-weight:400; }
body.beta #study-main .campus-map-walk { display:flex; align-items:center; gap:10px; margin:0; padding:10px 12px; border-radius:14px; background:var(--ui-accent-soft); color:var(--ui-text); font-size:14px; font-weight:400; }
body.beta #study-main .campus-map-walk b { flex:none; padding:4px 10px; border-radius:999px; background:var(--ui-accent); color:var(--ui-on-accent,#fff); font-size:14px; font-weight:700; white-space:nowrap; }
body.beta #study-main .campus-map-walk span { min-width:0; }
body.beta #study-main .campus-map-doors { display:flex; align-items:center; gap:8px; margin:0; color:var(--ui-muted); font-size:13px; }
body.beta #study-main .campus-map-doors i { flex:none; width:10px; height:10px; border-radius:50%; background:#ffb020; box-shadow:0 0 0 2px var(--ui-surface),0 0 0 3px var(--ui-border); }
body.beta #study-main .campus-map-caption a { justify-self:start; display:inline-flex; align-items:center; min-height:44px; font-weight:650; color:var(--ui-accent); text-decoration:none; }
body.beta #study-main .campus-map-caption a:focus-visible,body.beta #study-main .campus-map-chip:focus-visible,body.beta #study-main .campus-map-partner:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; border-radius:10px; }
body.beta #study-main .campus-map-chips { display:flex; gap:6px; overflow-x:auto; padding:2px 0 4px; scrollbar-width:none; }
body.beta #study-main .campus-map-chips::-webkit-scrollbar { display:none; }
body.beta #study-main .campus-map-chip { flex:none; min-width:44px; min-height:44px; padding:0 10px; border:1px solid var(--ui-border); border-radius:12px; background:var(--ui-surface); color:var(--ui-text); font:inherit; font-size:15px; font-weight:650; cursor:pointer; }
body.beta #study-main .campus-map-chip.is-all { padding:0 14px; font-size:14px; white-space:nowrap; }
body.beta #study-main .campus-map-chip[aria-pressed="true"] { border-color:var(--ui-accent); background:var(--ui-accent); color:var(--ui-on-accent,#fff); }
body.beta #study-main .campus-map-partner { display:grid; gap:2px; padding:12px 14px; border:1px dashed var(--ui-border); border-radius:16px; background:var(--ui-surface); color:var(--ui-text); text-decoration:none; }
body.beta #study-main .campus-map-partner small { color:var(--ui-muted); font-size:11px; line-height:1.35; overflow-wrap:anywhere; }
body.beta #study-main .campus-map-partner strong { font-size:15px; font-weight:650; }
body.beta #study-main .campus-map-partner span { color:var(--ui-muted); font-size:14px; line-height:1.4; }
body.beta #study-main .campus-map .campus-map-credit { margin:0; font-size:11px; color:var(--ui-muted); }

/* The full-screen map (src/campus-big-map.js). */
body.beta #study-main .big-map { display:grid; gap:10px; min-width:0; --map-ground:#eef1f5; --map-green:#d8edd2; --map-pitch:#c5e4bd; --map-tree:#a8d49d; --map-road:#fff; --map-road-edge:#d5dbe6; --map-lane:#e3e7ee; --map-walk:#ccd2de; --map-tram:#b9c0cf; --map-rail:#b4bac8; --map-roof:#e7eaf0; --map-wall:#c3c9d6; --map-roof-own:#dfe7ff; --map-wall-own:#8fa6ee; --map-ink:#19233a; }
html[data-theme=dark] body.beta #study-main .big-map { --map-ground:#151a24; --map-green:#1b3022; --map-pitch:#21412d; --map-tree:#2c5437; --map-road:#2b3243; --map-road-edge:#0f131a; --map-lane:#1f2532; --map-walk:#333b4e; --map-tram:#465069; --map-rail:#3d4558; --map-roof:#2a3141; --map-wall:#1a1f2b; --map-roof-own:#33458a; --map-wall-own:#1a2452; --map-ink:#eef1f8; }
body.beta #study-main .big-map-bar { position:relative; }
body.beta #study-main .big-map-search { width:100%; box-sizing:border-box; min-height:46px; padding:0 14px; border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-surface); color:var(--ui-text); font:inherit; font-size:15px; }
body.beta #study-main .big-map-search:focus-visible { outline:2px solid var(--ui-accent); outline-offset:1px; }
body.beta #study-main .big-map-found { position:absolute; z-index:5; left:0; right:0; top:52px; display:grid; border-radius:14px; background:var(--ui-surface); box-shadow:0 14px 30px -14px rgba(25,35,58,.5); overflow:hidden; }
body.beta #study-main .big-map-found:empty { display:none; }
body.beta #study-main .big-map-found button { display:grid; gap:1px; min-height:48px; padding:8px 14px; border:0; border-bottom:1px solid var(--ui-border); background:none; color:var(--ui-text); font:inherit; text-align:left; cursor:pointer; }
body.beta #study-main .big-map-found button:last-child { border-bottom:0; }
body.beta #study-main .big-map-found strong { font-size:15px; font-weight:650; }
body.beta #study-main .big-map-found span { font-size:13px; color:var(--ui-muted); }
body.beta #study-main .big-map-filters { display:flex; gap:6px; overflow-x:auto; padding:1px 0 3px; scrollbar-width:none; }
body.beta #study-main .big-map-filters::-webkit-scrollbar { display:none; }
body.beta #study-main .big-chip { flex:none; min-height:40px; padding:0 14px; border:1px solid var(--ui-border); border-radius:999px; background:var(--ui-surface); color:var(--ui-text); font:inherit; font-size:14px; font-weight:600; white-space:nowrap; cursor:pointer; }
body.beta #study-main .big-chip[aria-pressed="true"] { border-color:var(--ui-accent); background:var(--ui-accent); color:var(--ui-on-accent,#fff); }
body.beta #study-main .big-chip:focus-visible,body.beta #study-main .big-map-tools button:focus-visible,body.beta #study-main .big-sheet-close:focus-visible,body.beta #study-main .big-sheet-link:focus-visible,body.beta #study-main .lesson-open-map:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
body.beta #study-main .big-map-stage { position:relative; height:min(62vh,560px); min-height:300px; overflow:hidden; border:1px solid var(--ui-border); border-radius:20px; background:var(--map-ground); touch-action:none; user-select:none; -webkit-user-select:none; cursor:grab; box-shadow:0 10px 24px -18px rgba(25,35,58,.45); }
body.beta #study-main .big-map-gl { position:absolute; inset:0; }
body.beta #study-main .big-map-gl canvas { position:absolute; left:0; top:0; outline:none; touch-action:none; }
body.beta #study-main .big-map-gl .maplibregl-canvas-container { position:absolute; inset:0; cursor:grab; }
body.beta #study-main .big-map-gl .maplibregl-control-container { display:none; }
.maplibregl-canary { background-color:salmon; }
body.beta #study-main .big-map-stage.is-gl .big-map-picture { display:none; }
body.beta #study-main .big-map-picture { position:absolute; left:-30%; top:-30%; width:160%; height:160%; transform-origin:50% 50%; will-change:transform; }
body.beta #study-main .big-map-tools { position:absolute; right:10px; top:10px; display:grid; gap:8px; }
body.beta #study-main .big-map-tools button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-surface); color:var(--ui-text); font:inherit; font-size:22px; font-weight:500; line-height:1; cursor:pointer; box-shadow:0 6px 14px -8px rgba(25,35,58,.5); }
body.beta #study-main .big-map-tools svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
body.beta #study-main .big-map-status { position:absolute; left:10px; right:64px; top:10px; margin:0; padding:9px 12px; border-radius:12px; background:var(--ui-surface); color:var(--ui-text); font-size:13px; line-height:1.35; box-shadow:0 6px 14px -8px rgba(25,35,58,.5); }
body.beta #study-main .big-ground { fill:var(--map-ground); }
body.beta #study-main .big-green { fill:var(--map-green); }
body.beta #study-main .big-pitch { fill:var(--map-pitch); }
body.beta #study-main .big-trees circle { fill:var(--map-tree); }
body.beta #study-main .big-rail,body.beta #study-main .big-lane,body.beta #study-main .big-road,body.beta #study-main .big-road-edge,body.beta #study-main .big-tram,body.beta #study-main .big-walk { fill:none; stroke-linecap:round; stroke-linejoin:round; }
body.beta #study-main .big-rail { stroke:var(--map-rail); stroke-width:2.2; stroke-dasharray:7 4; stroke-linecap:butt; }
body.beta #study-main .big-lane { stroke:var(--map-lane); stroke-width:4.5; }
body.beta #study-main .big-road-edge { stroke:var(--map-road-edge); stroke-width:11.5; }
body.beta #study-main .big-road-edge.is-wide { stroke-width:19; }
body.beta #study-main .big-road { stroke:var(--map-road); stroke-width:9; }
body.beta #study-main .big-road.is-wide { stroke-width:16.5; }
body.beta #study-main .big-tram { stroke:var(--map-tram); stroke-width:1.1; stroke-dasharray:5 3; }
body.beta #study-main .big-walk { stroke:var(--map-walk); stroke-width:1.8; }
body.beta #study-main .big-wall { fill:var(--map-wall); }
body.beta #study-main .big-roof { fill:var(--map-roof); stroke:var(--map-wall); stroke-width:.6; stroke-linejoin:round; }
body.beta #study-main .big-wall.is-mpei { fill:var(--map-wall-own); }
body.beta #study-main .big-roof.is-mpei { fill:var(--map-roof-own); stroke:var(--ui-accent); stroke-width:1.2; cursor:pointer; }
body.beta #study-main .big-roof.is-mpei.is-selected { fill:var(--ui-accent); }
body.beta #study-main .big-letter { font-family:Inter,system-ui,sans-serif; font-weight:700; fill:var(--ui-accent); stroke:var(--map-roof-own); paint-order:stroke; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .big-street { font-family:Inter,system-ui,sans-serif; font-weight:500; fill:var(--ui-muted); stroke:var(--map-road); paint-order:stroke; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .big-way,body.beta #study-main .big-way-edge { fill:none; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .big-way-edge { stroke:var(--map-road); opacity:.9; }
body.beta #study-main .big-way { stroke:var(--ui-accent); }
body.beta #study-main .big-way.is-day { stroke:#8b5cf6; }
body.beta #study-main .big-way-start { fill:var(--map-road); stroke:var(--ui-accent); pointer-events:none; }
body.beta #study-main .big-door { fill:#ffb020; stroke:var(--map-road); pointer-events:none; }
body.beta #study-main .big-mark { cursor:pointer; }
body.beta #study-main .big-mark circle { stroke:#fff; stroke-width:1.5; }
body.beta #study-main .big-mark.is-food circle { fill:#f2762e; }
body.beta #study-main .big-mark.is-shop circle { fill:#16a36a; }
body.beta #study-main .big-mark.is-print circle { fill:#7c5cf0; }
body.beta #study-main .big-mark.is-pharmacy circle { fill:#e5484d; }
body.beta #study-main .big-mark.is-money circle { fill:#0e9bb5; }
body.beta #study-main .big-mark.is-parcel circle { fill:#b9772e; }
body.beta #study-main .big-mark.is-health circle { fill:#12998a; }
body.beta #study-main .big-mark.is-sport circle { fill:#5b8c1a; }
body.beta #study-main .big-mark.is-service circle { fill:#6b7686; }
body.beta #study-main .big-mark.is-mpei circle { fill:var(--ui-accent); }
body.beta #study-main .big-mark.is-metro circle { fill:#e5484d; }
body.beta #study-main .big-mark.is-selected circle { stroke:var(--map-ink); stroke-width:2; }
body.beta #study-main .big-icon,body.beta #study-main .big-pin-icon { fill:none; stroke:#fff; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .big-pin-icon { stroke:var(--ui-accent); }
body.beta #study-main .big-glyph { font-family:Inter,system-ui,sans-serif; font-size:11px; font-weight:800; fill:#fff; pointer-events:none; }
body.beta #study-main .big-name { font-family:Inter,system-ui,sans-serif; font-size:11px; font-weight:600; fill:var(--map-ink); stroke:var(--map-ground); stroke-width:3px; paint-order:stroke; stroke-linejoin:round; pointer-events:none; }
body.beta #study-main .big-entrance { cursor:pointer; }
body.beta #study-main .big-entrance circle { fill:#e5484d; stroke:#fff; stroke-width:1.2; }
body.beta #study-main .big-entrance text { font-family:Inter,system-ui,sans-serif; font-size:8px; font-weight:800; fill:#fff; pointer-events:none; }
body.beta #study-main .big-stop circle { fill:var(--map-road); stroke:var(--map-rail); stroke-width:1.2; }
body.beta #study-main .big-stop text { font-family:Inter,system-ui,sans-serif; font-size:8px; font-weight:700; fill:var(--ui-muted); }
body.beta #study-main .big-order rect { fill:#8b5cf6; }
body.beta #study-main .big-order text { font-family:Inter,system-ui,sans-serif; font-size:10px; font-weight:700; fill:#fff; }
body.beta #study-main .big-order,body.beta #study-main .big-partner,body.beta #study-main .big-me,body.beta #study-main .big-pin,body.beta #study-main .big-stop { pointer-events:none; }
body.beta #study-main .big-partner circle { fill:#ffb020; stroke:#fff; stroke-width:1.5; }
body.beta #study-main .big-partner text { font-size:11px; fill:#fff; }
body.beta #study-main .big-me circle { fill:#1a73e8; stroke:#fff; stroke-width:2.5; }
body.beta #study-main .big-me .big-me-ring { fill:#1a73e8; opacity:.18; stroke:none; }
body.beta #study-main .big-pin-shade { fill:var(--map-ink); opacity:.28; }
body.beta #study-main .big-pin-body { fill:#fff; stroke:var(--ui-accent); stroke-width:1.5; stroke-linejoin:round; filter:drop-shadow(0 2px 3px rgba(25,35,58,.3)); }
body.beta #study-main .big-pin-letter { font-family:Inter,system-ui,sans-serif; font-size:15px; font-weight:700; fill:var(--ui-accent); }
body.beta #study-main .big-map-sheet { display:grid; gap:10px; padding:14px; border:1px solid var(--ui-border); border-radius:20px; background:var(--ui-surface); }
body.beta #study-main .big-map-sheet:empty { display:none; }
body.beta #study-main .big-sheet-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
body.beta #study-main .big-sheet-head > div { display:grid; gap:2px; min-width:0; }
body.beta #study-main .big-sheet-head strong { font-size:18px; font-weight:700; line-height:1.25; color:var(--ui-text); overflow-wrap:anywhere; }
body.beta #study-main .big-sheet-head span { font-size:14px; line-height:1.4; color:var(--ui-muted); }
body.beta #study-main .big-sheet-head .big-sheet-note { color:var(--ui-text); font-weight:600; }
body.beta #study-main .big-sheet-close { flex:none; width:40px; height:40px; border:0; border-radius:12px; background:var(--ui-soft); color:var(--ui-muted); font:inherit; font-size:22px; line-height:1; cursor:pointer; }
body.beta #study-main .big-sheet-walk { display:flex; align-items:center; gap:10px; margin:0; padding:10px 12px; border-radius:14px; background:var(--ui-accent-soft); color:var(--ui-text); font-size:14px; line-height:1.4; }
body.beta #study-main .big-sheet-walk b { flex:none; padding:4px 10px; border-radius:999px; background:var(--ui-accent); color:var(--ui-on-accent,#fff); font-size:14px; font-weight:700; white-space:nowrap; }
body.beta #study-main .big-sheet-from { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
body.beta #study-main .big-sheet-from > span { flex-basis:100%; font-size:13px; color:var(--ui-muted); }
body.beta #study-main .big-sheet-doors { display:flex; align-items:center; gap:8px; margin:0; color:var(--ui-muted); font-size:13px; }
body.beta #study-main .big-sheet-doors i { flex:none; width:10px; height:10px; border-radius:50%; background:#ffb020; box-shadow:0 0 0 2px var(--ui-surface),0 0 0 3px var(--ui-border); }
body.beta #study-main .big-sheet-link { justify-self:start; display:inline-flex; align-items:center; min-height:44px; font-weight:650; color:var(--ui-accent); text-decoration:none; border-radius:10px; }
body.beta #study-main .big-sheet-hours { display:grid; gap:2px; margin:0; font-size:14px; line-height:1.4; color:var(--ui-muted); }
body.beta #study-main .big-sheet-hours b { font-size:15px; font-weight:650; }
body.beta #study-main .big-sheet-hours.is-open b { color:#178a4c; }
body.beta #study-main .big-sheet-hours.is-closed b { color:#d23b40; }
html[data-theme=dark] body.beta #study-main .big-sheet-hours.is-open b { color:#4ccb86; }
html[data-theme=dark] body.beta #study-main .big-sheet-hours.is-closed b { color:#ff7a7f; }
body.beta #study-main .big-sheet-seen { margin:0; font-size:13px; line-height:1.4; color:var(--ui-muted); }
body.beta #study-main .big-sheet-hint { margin:0; font-size:14px; line-height:1.45; color:var(--ui-muted); }
body.beta #study-main .big-sheet-button { justify-self:start; min-height:44px; padding:0 18px; border:0; border-radius:14px; background:var(--ui-accent); color:var(--ui-on-accent,#fff); font:inherit; font-weight:650; cursor:pointer; }
body.beta #study-main .big-map .campus-map-partner { display:grid; gap:2px; padding:12px 14px; border:1px dashed var(--ui-border); border-radius:16px; background:var(--ui-surface); color:var(--ui-text); text-decoration:none; }
body.beta #study-main .big-map .campus-map-partner small { color:var(--ui-muted); font-size:11px; line-height:1.35; overflow-wrap:anywhere; }
body.beta #study-main .big-map .campus-map-partner strong { font-size:15px; font-weight:650; }
body.beta #study-main .big-map .campus-map-partner span { color:var(--ui-muted); font-size:14px; line-height:1.4; }
body.beta #study-main .big-map-credit { margin:0; font-size:11px; line-height:1.4; color:var(--ui-muted); }
body.beta #study-main .lesson-open-map { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; margin-top:10px; padding:0 14px; border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-surface); color:var(--ui-accent); font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
body.beta #study-main .lesson-open-map svg { flex:none; width:18px; height:18px; }
body.beta #study-main .day-label-actions { display:inline-flex; align-items:center; gap:14px; }
body.beta #study-main .lesson-walk-note { display:block; margin-bottom:4px; font-size:12px; font-weight:600; line-height:1.35; color:var(--ui-muted); }
body.beta #study-main .lesson-walk-note.is-late { color:#c2410c; }
html[data-theme=dark] body.beta #study-main .lesson-walk-note.is-late { color:#fb923c; }
@media (prefers-reduced-motion:reduce) { body.beta #study-main .big-map-picture { will-change:auto; } }
