/* Custom Scrollbar for Moodle Page */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
[data-theme=dark] ::-webkit-scrollbar-thumb { background: #334155; }
[data-theme=light] ::-webkit-scrollbar-thumb { background: #cbd5e1; }

/* Default / Courses List view (scroll locked) */
#view-moodle .page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 20px 0;
  margin: 0 auto calc(64px + env(safe-area-inset-bottom, 0px));
  max-width: 600px;
  width: 100%;
  min-height: 0;
}

@media (max-width: 767px) {
  #view-moodle .page {
    padding: 12px 12px 0;
  }
}

/* Header Section */
.dashboard-header { margin: 4px 4px 14px; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .dashboard-header { margin: 2px 4px 10px; }
  .dashboard-title { font-size: 1.4rem; }
}

/* Custom Semester Dropdown (inherits base from shared.css) */
#view-moodle .sem-dropdown {
  display: none;
  width: 115px;
}
#view-moodle .sem-dropdown.visible { display: block; }
#view-moodle .sem-trigger {
  height: 48px;
  border-radius: 14px;
}
#view-moodle .sem-trigger:active { transform: scale(0.97); }
#view-moodle .sem-divider { height: 1px; background: var(--border); margin: 3px 8px; }

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.search-row .search-container { flex: 1; min-width: 0; margin-bottom: 0; }

.btn-refresh {
  background: var(--surface);
  border: 1.5px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  box-sizing: border-box;
}
.btn-refresh:hover { background: var(--bg); color: var(--text); border-color: var(--muted); }
.btn-refresh:active { transform: scale(0.92); }
.btn-refresh.spinning svg { animation: spin 1s linear infinite; }

.view { display: none; }
.view.active { display: block; }

#view-courses {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#view-courses.active { display: flex; }
#courses-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#courses-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
#view-auth { overflow-y: auto; flex: 1; }
#view-auth.active { display: flex; flex-direction: column; }

#view-content {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#view-content.active { display: flex; }
#content-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.search-container { position: relative; margin-bottom: 20px; }
.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}
.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(37,99,235,0.06), 0 0 0 3px rgba(37,99,235,0.1);
}
.search-input:focus + .search-icon-svg { color: var(--accent); }

/* Course Cards */
.course-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 18px;
  margin-bottom: 0;
  cursor: pointer;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex: 0 0 calc((100% - (var(--num-courses) - 1) * 10px) / var(--num-courses));
  min-height: 48px;
}
.course-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(37,99,235,0.04), var(--shadow);
}
.course-card:active { transform: scale(0.98); }

.cc-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.3px;
}
.cc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-arrow-right {
  color: var(--muted);
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.course-card:hover .cc-arrow-right {
  transform: translateX(3px);
  color: var(--accent);
  opacity: 1;
}

/* Content View Header */
.content-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 8px 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
  box-sizing: border-box;
  gap: 10px;
}
[data-theme=dark] .content-nav-header {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.ch-back {
  background: var(--surface);
  border: 1.5px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
[data-theme=dark] .ch-back {
  background: #0f172a;
  border-color: #334155;
}
.ch-back:hover {
  border-color: var(--muted);
}
[data-theme=dark] .ch-back:hover {
  border-color: #64748b;
}
.ch-back:active {
  transform: scale(0.95);
}
.ch-spacer {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  visibility: hidden;
  pointer-events: none;
}
.ch-course-details {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.ch-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
@media (max-width: 767px) {
  .ch-title { font-size: 1.15rem; }
}

/* Section Cards */
.section-card {
  background: var(--surface);
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: background 0.15s ease;
}
.section-card.has-stuck-header {
  background: transparent;
}
.section-card:last-child {
  margin-bottom: 0;
}
.section-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  padding: 14px 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border: 1.5px solid transparent;
  border-bottom-color: var(--border);
  box-sizing: border-box;
  box-shadow: 0 4px 6px -4px rgba(0,0,0,0.05);
  transition: border-radius 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.15s ease,
              border-color 0.15s ease;
}
.section-header.is-stuck {
  border-radius: 18px;
  border-color: var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
[data-theme=dark] .section-header.is-stuck {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.section-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-body {
  background: var(--surface);
  border-radius: 0 0 18px 18px;
  overflow: visible;
  transition: border-radius 0.15s ease;
}
.section-card.has-stuck-header .section-body {
  border-radius: 18px;
}
.section-body-inner { padding: 8px 12px; }

/* Resource Items */
.res-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  margin-bottom: 4px;
  transition: background 0.2s;
}
.res-item:last-child { margin-bottom: 0; }
.res-item:hover { background: rgba(0, 0, 0, 0.015); }
[data-theme=dark] .res-item:hover { background: rgba(255, 255, 255, 0.015); }
.res-item.no-link { color: var(--muted); }

.res-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
}

.res-badge.pdf { background: rgba(239, 68, 68, 0.08); color: #ef4444; }
[data-theme=dark] .res-badge.pdf { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.res-badge.img { background: rgba(236, 72, 153, 0.08); color: #ec4899; }
[data-theme=dark] .res-badge.img { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.res-badge.ppt { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }
[data-theme=dark] .res-badge.ppt { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.res-badge.doc { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
[data-theme=dark] .res-badge.doc { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.res-badge.xls { background: rgba(16, 185, 129, 0.08); color: #10b981; }
[data-theme=dark] .res-badge.xls { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.res-badge.zip { background: rgba(100, 116, 139, 0.08); color: #64748b; }
[data-theme=dark] .res-badge.zip { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.res-badge.video { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
[data-theme=dark] .res-badge.video { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.res-badge.audio { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
[data-theme=dark] .res-badge.audio { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.res-badge.code { background: rgba(16, 185, 129, 0.1); color: #059669; }
[data-theme=dark] .res-badge.code { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.res-badge.html { background: rgba(234, 88, 12, 0.08); color: #ea580c; }
[data-theme=dark] .res-badge.html { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
.res-badge.page { background: rgba(14, 165, 233, 0.08); color: #0284c7; }
[data-theme=dark] .res-badge.page { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.res-badge.txt { background: rgba(100, 116, 139, 0.1); color: #64748b; }
[data-theme=dark] .res-badge.txt { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.res-badge.quiz { background: rgba(99, 102, 241, 0.08); color: #6366f1; }
[data-theme=dark] .res-badge.quiz { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.res-badge.task { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }
[data-theme=dark] .res-badge.task { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.res-badge.folder, .res-badge.fldr { background: rgba(16, 185, 129, 0.08); color: #10b981; }
[data-theme=dark] .res-badge.folder, [data-theme=dark] .res-badge.fldr { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.res-badge.link { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
[data-theme=dark] .res-badge.link { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.res-badge.file { background: rgba(100, 116, 139, 0.08); color: #64748b; }
[data-theme=dark] .res-badge.file { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

.res-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.res-size {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.res-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.res-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}
.res-btn svg { display: block; flex-shrink: 0; }
.res-btn.btn-view { background: rgba(37, 99, 235, 0.08); color: var(--accent); }
.res-btn.btn-view:hover { background: var(--accent); color: #fff; }
.res-btn.btn-download { background: var(--border); color: var(--text); }
.res-btn.btn-download:hover { background: var(--muted); color: var(--surface); }
[data-theme=dark] .res-btn.btn-download { background: rgba(255, 255, 255, 0.08); color: var(--text); }
[data-theme=dark] .res-btn.btn-download:hover { background: rgba(255, 255, 255, 0.2); }

/* Auth Card Form */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 100%;
  width: 100%;
}
.auth-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px 24px 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 32px 80px rgba(15,23,42,.3);
}
[data-theme=dark] .auth-card { background: #1e293b; box-shadow: 0 32px 80px rgba(0,0,0,.4); }
.auth-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 4px; text-align: center; letter-spacing: -.3px; margin-top: 4px; }
.auth-sub { font-size: .77rem; color: var(--muted); text-align: center; margin-bottom: 22px; line-height: 1.5; }

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 6px;
  text-align: left;
}
.auth-input::placeholder { font-family: 'DM Sans', sans-serif; font-size: .86rem; color: var(--muted); font-weight: 400; }
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
[data-theme=dark] .auth-input { background: #0f172a; color: var(--text); }

.auth-email-row { display: flex; align-items: stretch; margin-bottom: 10px; }
.auth-email-row .auth-input { border-radius: 12px 0 0 12px; margin-bottom: 0; border-right: none; }
.auth-email-suffix {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
[data-theme=dark] .auth-email-suffix { background: #0f172a; color: var(--muted); }
.auth-email-row:focus-within .auth-input { border-color: var(--accent); }
.auth-email-row:focus-within .auth-email-suffix { border-color: var(--accent); }

.auth-btn {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 24px;
  margin-bottom: 0;
}
.auth-btn:hover { background: var(--accent-h); }
.auth-btn:active { transform: scale(0.98); }

.state-msg {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1.5px solid var(--border);
}

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: auto 0;
  min-height: 100%;
  padding: 40px 24px;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  box-sizing: border-box;
}
#view-moodle .spinner {
  width: 36px;
  height: 36px;
  border-width: 3.5px;
}

#auth-overlay {
  position: fixed;
  top: 0;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(240, 244, 255, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
[data-theme="dark"] #auth-overlay { background: rgba(15, 23, 42, 0.85); }
#auth-overlay.show { display: flex; }

#image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#image-lightbox.active { display: flex; }
#image-lightbox.show { opacity: 1; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  box-sizing: border-box;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.lightbox-close:active {
  transform: scale(0.92);
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#image-lightbox.show #lightbox-img { transform: scale(1); }
#lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 24px;
  right: 24px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#doc-lightbox.active { display: flex; }
#doc-lightbox.show { opacity: 1; }
.doc-header {
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.doc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-body {
  flex: 1;
  position: relative;
  background: #e2e8f0;
}
[data-theme=dark] .doc-body { background: #0f172a; }
#doc-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
#doc-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
  background: #fff;
}
#pdf-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: auto;
  display: none;
  background: #e2e8f0;
  padding: 20px;
  box-sizing: border-box;
}
[data-theme=dark] #pdf-container { background: #0f172a; }
#pdf-container.active { display: block; }
#pdf-container canvas {
  margin: 0 auto 20px;
  display: block;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.media-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 16px;
}
.media-container.active { display: flex; }
.media-container video, .media-container audio {
  max-width: 100%;
  max-height: 100%;
  outline: none;
}
.media-container .plyr {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}
.media-container .plyr--video {
  height: 100%;
}
.media-container .plyr--audio {
  padding: 20px;
  background: var(--surface);
  border-radius: 16px;
  width: min(480px, 95%);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
  .res-badge {
    min-width: 42px;
    font-size: 0.6rem;
    padding: 3px 5px;
    border-radius: 6px;
  }
  .res-name { font-size: 0.84rem; }
  .res-btn span { display: none; }
  .res-btn { padding: 8px; border-radius: 10px; }
}
