/* ============================================================
   MY English School Portal — Shared Styles
   portal.css · Used by both parents portal (public/) and
   staff portal (staff/)
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* --- Brand tokens --- */
:root {
  /* Primary brand color — MY English School blue */
  --accent:        #0065b7;
  --accent-dark:   #004f8f;
  --accent-light:  #e6f0fa;
  --accent-ring:   rgba(0, 101, 183, 0.18);

  /* Page & card backgrounds */
  --bg-page:       #f5f5f5;
  --bg-card:       #ffffff;
  --bg-subtle:     #f9f9f9;

  /* Borders */
  --border:        #e5e5e5;
  --border-strong: #cccccc;

  /* Text */
  --text-primary:   #111111;
  --text-secondary: #666666;
  --text-muted:     #999999;

  /* Status colors */
  --color-success-bg:   #e6f4ea;
  --color-success-text: #137333;
  --color-error-bg:     #fce8e6;
  --color-error-text:   #c5221f;
  --color-info-bg:      #f0f6ff;
  --color-info-text:    #1a56a0;
  --color-warning-bg:   #fff8e6;
  --color-warning-text: #7a5c00;

  /* Calendar-specific colors (shared across both portals) */
  --cal-closed-bg:        #d4d9e6;
  --cal-closed-border:    #b8bed0;
  --cal-training-bg:      #b8d8f5;
  --cal-training-border:  #5a9fd4;
  --cal-obs-bg:           #c8ead8;
  --cal-obs-border:       #3a9e6a;
  --cal-holiday-bg:       #fde8b0;
  --cal-holiday-border:   #d4a020;
  --cal-nat-border:       #1a1d23;
  --cal-tuition:          #0065b7;

  /* Border radius */
  --radius-sm:     4px;
  --radius-md:     6px;
  --radius-card:   12px;
  --radius-input:  8px;
  --radius-badge:  20px;

  /* Shadows */
  --shadow-card:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover:  0 4px 12px rgba(0,0,0,0.10);
}

/* ============================================================
   PARENTS PORTAL HEADER (white, border-bottom)
   Used by: public/*.html
   ============================================================ */
.header-parents {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-parents .header-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
}
.header-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.header-logo-fallback {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
.header-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.header-title-ja {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
}
.header-title-en {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

/* ============================================================
   STAFF PORTAL HEADER (dark blue)
   Used by: staff/*.html
   ============================================================ */
.header-staff {
  background: var(--accent-dark);
  color: white;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 8px rgba(0,0,0,0.2);
  gap: 12px;
}
.header-staff .topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-badge {
  background: white;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.topbar-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.topbar-home-link:hover .logo-badge { background: var(--accent-light); color: var(--accent-dark); }
.topbar-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-staff .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.85;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.sign-out-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  border-radius: var(--radius-md);
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
}
.sign-out-btn:hover { background: rgba(255,255,255,0.22); }

/* ── Nav dropdown ── */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.85;
  padding: 4px 6px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.1s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.nav-dropdown-arrow { font-size: 10px; opacity: 0.7; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 220px;
  padding: 6px;
  z-index: 100;
  display: none;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-item {
  padding: 9px 12px;
  border-radius: var(--radius-input);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.1s;
}
.nav-dropdown-item:hover:not(.active):not(.disabled) { background: var(--bg-subtle); }
.nav-dropdown-item.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; cursor: default; }
.nav-dropdown-item.disabled { color: var(--text-muted); cursor: default; }

/* Parents portal nav dropdown trigger (sits on white header) */
.nav-dropdown-btn-parents {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.1s, color 0.1s;
  white-space: nowrap;
}
.nav-dropdown-btn-parents:hover { border-color: var(--accent); color: var(--accent); }
.nav-dropdown-btn-parents .nav-dropdown-arrow { font-size: 10px; opacity: 0.7; }

/* ── Readonly banner ── */
.readonly-banner {
  background: var(--color-warning-bg);
  border-bottom: 1px solid #f5d878;
  padding: 8px 20px;
  font-size: 12px;
  color: var(--color-warning-text);
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.readonly-banner.visible { display: flex; }

/* ============================================================
   BACK BAR (parents portal sub-pages)
   ============================================================ */
.back-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 40px;
  display: flex;
  align-items: center;
}
.back-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.back-link { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-sep { color: var(--border); font-size: 13px; }
.back-current { font-size: 13px; color: var(--text-secondary); }

/* ── Parents portal hero ── */
.hero {
  background: var(--accent);
  color: white;
  padding: 1.25rem 0;
}
.hero-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hero h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.hero p {
  font-size: 13px;
  opacity: 0.82;
  line-height: 1.5;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.container-wide {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-top: 1.25rem;
}
.section-label:first-child { margin-top: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.card:last-child { margin-bottom: 0; }

/* Nav cards (parents portal hub, staff portal index) */
.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.125rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.nav-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nav-card:active { transform: translateY(0); }
.nav-card.disabled { opacity: 0.6; cursor: default; pointer-events: none; }
.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.15s;
}
.nav-card:hover::before { opacity: 1; }
.nav-card-icon { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.nav-card-title-ja { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.nav-card-title-en { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; }
.nav-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.nav-card-arrow { position: absolute; right: 10px; bottom: 10px; font-size: 14px; color: var(--border); transition: color 0.15s; }
.nav-card:hover .nav-card-arrow { color: var(--accent); }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }

select, input[type="text"], input[type="search"], input[type="url"], input[type="number"], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg-card);
  color: var(--text-primary);
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
textarea { resize: vertical; line-height: 1.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-input);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 20px; font-size: 15px; font-weight: 600; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-badge); background: var(--accent-light); color: var(--accent); vertical-align: middle; }
.badge-new { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-badge); background: var(--color-success-bg); color: var(--color-success-text); vertical-align: middle; }
.badge-soon { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: var(--radius-badge); background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }
.badge-published { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-draft { background: var(--bg-subtle); color: var(--text-muted); }
.badge-empty { background: #fff0dd; color: #885500; }

/* ============================================================
   STATES
   ============================================================ */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 14px; }
.empty-state-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-body { font-size: 13px; line-height: 1.6; }

.loading-state { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 14px; }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: portal-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes portal-spin { to { transform: rotate(360deg); } }

.error-msg {
  background: var(--color-error-bg);
  border: 1px solid #f5c6c2;
  border-radius: var(--radius-input);
  padding: 12px;
  font-size: 13px;
  color: var(--color-error-text);
  margin-bottom: 1rem;
  display: none;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1d23;
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-input);
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  transition: transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #c0392b; }

/* ============================================================
   DETAIL SHEET (mobile bottom drawer — parents portal calendar)
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.sheet-backdrop.on { opacity: 1; pointer-events: all; }
.detail-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  z-index: 101;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
  max-height: 75vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.detail-sheet.open { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; }
.sheet-inner { padding: 16px 20px 24px; }
.sheet-date { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.sheet-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.sheet-type { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.sheet-notes { font-size: 14px; color: var(--text-secondary); line-height: 1.65; background: var(--bg-subtle); border-radius: var(--radius-input); padding: 12px 14px; margin-bottom: 12px; white-space: pre-wrap; }
.sheet-link-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 14px; border-radius: var(--radius-input); border: 1px solid var(--accent); background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; margin-bottom: 8px; transition: background 0.1s; }
.sheet-link-btn:hover { background: #d0e4f8; }
.sheet-close { display: flex; align-items: center; justify-content: center; width: 100%; padding: 11px; border-radius: var(--radius-input); border: 1px solid var(--border); background: none; font-size: 13px; font-weight: 500; color: var(--text-secondary); font-family: inherit; cursor: pointer; margin-top: 4px; transition: background 0.1s; }
.sheet-close:hover { background: var(--bg-subtle); }

/* ============================================================
   MONTH NAVIGATION (parents portal calendar)
   ============================================================ */
.month-nav-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: space-between; overflow: hidden; user-select: none; }
.month-nav-btn { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: none; border: none; font-size: 22px; color: var(--accent); cursor: pointer; flex-shrink: 0; transition: background 0.1s; -webkit-tap-highlight-color: transparent; }
.month-nav-btn:hover { background: var(--accent-light); }
.month-nav-btn:disabled { color: var(--border); cursor: default; }
.month-nav-btn:disabled:hover { background: none; }
.month-nav-center { text-align: center; flex: 1; padding: 10px 0; }
.month-nav-year { font-size: 11px; color: var(--text-muted); line-height: 1; margin-bottom: 2px; }
.month-nav-month { font-size: 18px; font-weight: 700; line-height: 1.2; }
.swipe-hint { text-align: center; font-size: 11px; color: var(--text-muted); padding: 8px 0 0; }

/* ============================================================
   PORTAL FOOTER
   ============================================================ */
.portal-footer { text-align: center; font-size: 11px; color: var(--text-muted); padding: 0 1rem 1.5rem; max-width: 680px; margin: 0 auto; }
.portal-footer a { color: inherit; }

/* ============================================================
   UTILITY
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
.mobile-only { display: none; }
@media (max-width: 720px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .container { padding: 1rem 0.875rem 2rem; }
  .container-wide { padding: 14px 14px 28px; }
}

@media (min-width: 768px) {
  .container { max-width: 680px; }
  .header-parents .header-inner { max-width: 680px; }
  .hero-inner { max-width: 680px; }
  .back-bar-inner { max-width: 680px; }
}

/* ============================================================
   CALENDAR (shared between parents portal and staff portal)
   ============================================================ */

/* ── Calendar card ── */
.cal-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card); box-shadow:var(--shadow-card); overflow:hidden; }
.cal-school-header { background:var(--accent); color:white; padding:14px 16px; display:flex; align-items:center; gap:12px; }
.cal-logo-small { width:40px; height:40px; background:white; border-radius:5px; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.cal-logo-small img { width:100%; height:100%; object-fit:contain; }
.cal-logo-small-text { font-size:7.5px; font-weight:700; color:var(--accent-dark); text-align:center; line-height:1.3; }
.cal-school-name { font-size:18px; font-weight:700; }
.cal-school-month { font-size:12px; opacity:0.8; margin-top:1px; }

/* ── Calendar grid ── */
.cal-grid-wrap { padding:10px 12px 0; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cal-dow { text-align:center; font-size:10px; font-weight:700; letter-spacing:0.04em; padding:4px 0; color:var(--text-muted); }
.cal-cell { min-height:56px; border-radius:4px; padding:3px; background:var(--bg-card); border:1px solid var(--border); display:flex; flex-direction:column; gap:2px; position:relative; cursor:default; }
.cal-cell.has-event { cursor:pointer; }
.cal-cell.has-event:active { background:var(--accent-light); }
.cal-cell.empty { background:transparent; border-color:transparent; }
.cal-cell.closed { background:var(--cal-closed-bg); border-color:var(--cal-closed-border); }
.cal-cell.training { background:var(--cal-training-bg); border-color:var(--cal-training-border); }
.cal-cell.obs-day { background:var(--cal-obs-bg); border-color:var(--cal-obs-border); }
.cal-cell.company-holiday { background:var(--cal-holiday-bg); border-color:var(--cal-holiday-border); }
.cal-cell.national { box-shadow:inset 0 0 0 2px var(--cal-nat-border); }
.cal-cell.national-closed { background:var(--cal-closed-bg); border-color:var(--cal-closed-border); }
.cal-cell.selected { border-color:var(--accent) !important; border-width:2px; }
.cell-num { font-size:12px; font-weight:500; line-height:1; color:var(--text-primary); align-self:flex-start; }
.cal-cell.closed .cell-num,
.cal-cell.training .cell-num,
.cal-cell.obs-day .cell-num,
.cal-cell.company-holiday .cell-num { color:var(--text-secondary); }
.tuition-ring { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; border:2px solid var(--cal-tuition); font-size:11px; font-weight:600; color:var(--cal-tuition); margin:-1px -2px; }
.cal-cell.closed .tuition-ring,
.cal-cell.training .tuition-ring,
.cal-cell.obs-day .tuition-ring,
.cal-cell.company-holiday .tuition-ring { border-color:rgba(0,101,183,0.45); color:rgba(0,101,183,0.45); }
.event-chips { display:flex; flex-direction:column; gap:1px; margin-top:1px; }
.event-chip { font-size:9px; font-weight:500; padding:1px 3px; border-radius:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.4; }

/* ── Calendar legend ── */
.cal-legend { padding:12px 14px; border-top:1px solid var(--border); display:flex; flex-wrap:wrap; gap:6px 14px; }
.legend-item { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--text-secondary); }
.legend-swatch { width:13px; height:13px; border-radius:2px; flex-shrink:0; }

/* ── Calendar contact footer ── */
.cal-contact { padding:10px 14px 12px; border-top:1px solid var(--border); font-size:11px; color:var(--text-muted); display:flex; flex-direction:column; gap:3px; }
.cal-contact a { color:var(--accent); text-decoration:none; }

/* ── Pick school prompt ── */
.pick-school-prompt { text-align:center; padding:32px 20px; color:var(--text-muted); font-size:14px; line-height:1.6; }
.pick-school-prompt-icon { font-size:32px; margin-bottom:10px; }

/* ── Full screen loading wrapper ── */
.full-screen { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:60vh; gap:12px; padding:24px; text-align:center; }