:root {
  --paper: #f3f4f0;
  --paper-raised: #fbfbf9;
  --ink: #1b2420;
  --ink-soft: #4a5650;
  --pine: #1e3a34;
  --pine-light: #2c5148;
  --brass: #a9812e;
  --brass-light: #c9a34e;
  --line: #d9dbd2;
  --danger: #a13d2e;
  --success: #3d6b4a;
  --radius: 3px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0 0 0.4em; letter-spacing: -0.01em; }
a { color: var(--pine-light); }
button { font-family: var(--sans); cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Layout shell */
.shell { display: flex; min-height: 100vh; }
.rail {
  width: 260px; flex-shrink: 0; background: var(--pine); color: #eef2ee;
  display: flex; flex-direction: column; padding: 24px 0;
}
.rail-brand {
  font-family: var(--serif); font-size: 19px; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 12px;
}
.rail-brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--brass-light); text-transform: uppercase; margin-top: 4px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.rail nav a {
  color: #cfd9d2; text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: 13.5px;
  display: flex; align-items: center; gap: 10px; border-left: 3px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.rail nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.rail nav a:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(1px); }
.rail nav a.active { background: rgba(201,163,78,0.16); color: var(--brass-light); font-weight: 600; border-left-color: var(--brass); }
.rail nav a.active svg { opacity: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.nav-group-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); padding: 10px 22px 4px;
}
.nav-search { padding: 4px 20px 14px; }
.nav-search input {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #eef2ee;
  border-radius: 20px; padding: 7px 14px; font-size: 12.5px;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search input:focus { outline: none; border-color: var(--brass); background: rgba(255,255,255,0.1); }
.rail-foot { margin-top: auto; padding: 14px 20px 0; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12.5px; color: #b7c2ba; }
.rail-foot .role-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; color: var(--brass-light); }
.rail-foot button { background: none; border: none; color: #cfd9d2; padding: 0; margin-top: 8px; font-size: 12.5px; text-decoration: underline; }

.main { flex: 1; padding: 32px 40px; max-width: 1100px; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.page-head h1 { font-size: 26px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card { border-left: 3px solid var(--pine); }
.course-card .code-tab {
  position: absolute; top: 0; right: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  background: var(--pine); color: #eef2ee; padding: 3px 9px; border-bottom-left-radius: var(--radius);
}
.course-card h3 { font-size: 17px; margin: 6px 26px 6px 0; }
.course-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 10px; }
.course-card .meta { font-size: 12px; color: var(--ink-soft); font-family: var(--mono); }

/* Forms & buttons */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--ink-soft); }
input, textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 80px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius);
  border: 1px solid var(--pine); background: var(--pine); color: #fff; font-size: 13.5px; font-weight: 600;
}
.btn:hover { background: var(--pine-light); }
.btn.secondary { background: transparent; color: var(--pine); }
.btn.secondary:hover { background: rgba(30,58,52,0.06); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: rgba(161,61,46,0.08); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 20px; }
.tag.admin { background: #f0e2cf; color: #7a5714; }
.tag.teacher { background: #dbe8e0; color: var(--pine); }
.tag.student { background: #e4e6df; color: var(--ink-soft); }
.tag.parent { background: #e0d9ea; color: #5b3a7a; }
.tag.danger { background: #f5d9d6; color: #9a3226; }
.deadline-alert { color: #c81e1e; font-weight: 700; font-size: 15px; }
.insp-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.insp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.insp-quote-banner {
  position: relative;
  background: linear-gradient(120deg, var(--pine) 0%, var(--pine-light) 100%);
  color: #f3f1e6;
  border-radius: var(--radius);
  padding: 26px 32px 22px;
  margin-bottom: 24px;
  overflow: hidden;
  animation: insp-quote-fadein 0.7s ease both;
}
.insp-quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--brass-light);
  opacity: 0.55;
  position: absolute;
  top: 6px;
  left: 14px;
}
.insp-quote-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  margin: 6px 0 8px 34px;
  max-width: 720px;
  position: relative;
  animation: insp-quote-rise 0.8s ease both 0.15s;
}
.insp-quote-author {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--brass-light);
  margin-left: 34px;
  animation: insp-quote-rise 0.8s ease both 0.3s;
}
@keyframes insp-quote-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes insp-quote-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@keyframes siren-flash {
  0%, 100% { background-color: rgba(200, 20, 20, 0.92); }
  50% { background-color: rgba(120, 10, 10, 0.92); }
}

.dash-spotlight-card {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.dash-spotlight-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.32); transform: translateY(-2px); }
.dash-spotlight-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
  transition: transform 0.6s ease;
  filter: saturate(0.9);
}
.dash-spotlight-card:hover .dash-spotlight-media { transform: scale(1.06); }
.dash-spotlight-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,17,0.92) 0%, rgba(10,20,17,0.55) 45%, rgba(10,20,17,0.05) 75%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 32px;
}
.dash-spotlight-badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1b2420; background: var(--brass-light);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.dash-spotlight-title {
  font-family: var(--serif); font-size: 30px; line-height: 1.15; color: #fff;
  margin: 0 0 10px; max-width: 640px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.dash-spotlight-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brass-light); font-weight: 600;
  transition: letter-spacing 0.3s ease;
}
.dash-spotlight-card:hover .dash-spotlight-cta { letter-spacing: 0.12em; }
@media (max-width: 760px) {
  .dash-spotlight-card { height: 220px; }
  .dash-spotlight-title { font-size: 22px; }
}

.siren-light {
  position: fixed; top: 14px; left: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, #ff3b30 0%, #b3160b 70%);
  box-shadow: 0 0 8px 4px rgba(255,59,48,0.7);
  animation: siren-pulse 1.2s ease-in-out infinite;
  z-index: 1000; pointer-events: none;
}
@keyframes siren-pulse {
  0%, 100% { box-shadow: 0 0 6px 3px rgba(255,59,48,0.5); opacity: 0.75; transform: scale(0.9); }
  50% { box-shadow: 0 0 18px 9px rgba(255,59,48,0.95); opacity: 1; transform: scale(1.1); }
}
.star-picker { font-size: 24px; letter-spacing: 4px; }
.star-picker span { cursor: pointer; color: var(--line); }
.star-picker span.filled { color: var(--brass); }

.empty { padding: 40px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* Auth screen */
.auth-wrap { min-height: 100vh; display: flex; background: var(--paper); }
.auth-brand-panel {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; text-align: center; position: relative;
  background: linear-gradient(135deg, #003555 0%, #00141f 100%);
}
.auth-brand-logo { max-width: 380px; width: 78%; height: auto; }
.auth-brand-dept { color: #d9c98a; font-family: var(--serif); font-size: 14px; line-height: 1.6; margin-top: 20px; letter-spacing: 0.02em; max-width: 320px; }
.auth-brand-credit {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  color: var(--brass-light); font-family: var(--serif); font-style: italic; font-size: 12.5px; letter-spacing: 0.03em;
  opacity: 0.85;
}
.auth-brand-credit::before {
  content: ''; display: block; width: 40px; height: 1px; margin: 0 auto 10px;
  background: linear-gradient(90deg, transparent, var(--brass-light), transparent); opacity: 0.6;
}
.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--paper); }
.auth-box { background: var(--paper-raised); padding: 36px 34px; border-radius: 4px; width: 360px; max-width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.auth-box h1 { font-size: 22px; margin-bottom: 2px; }
.auth-box .eyebrow { margin-bottom: 20px; }
.credit-line {
  font-size: 10.5px; color: var(--brass-light); margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(201,163,78,0.25); line-height: 1.6;
  font-family: var(--serif); font-style: italic; letter-spacing: 0.01em; opacity: 0.9;
  word-break: break-word;
}

@media (max-width: 860px) {
  .auth-wrap { flex-direction: column; }
  .auth-brand-panel { flex: none; min-height: 220px; padding: 28px 20px; }
  .auth-brand-logo { max-width: 190px; }
  .auth-brand-dept { font-size: 12.5px; margin-top: 12px; }
  .auth-brand-credit { position: static; margin-top: 14px; }
  .auth-form-panel { flex: none; padding: 28px 20px; }
}
.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.auth-switch button { background: none; border: none; color: var(--pine-light); text-decoration: underline; font-size: 13px; padding: 0; }
.error-box { background: #fbeae6; border: 1px solid #e3b3a6; color: var(--danger); padding: 9px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }

/* Thread / forum */
.thread-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.thread-row a { text-decoration: none; color: var(--ink); font-weight: 600; }
.post { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post .author { font-weight: 600; font-size: 13.5px; }
.post .when { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

/* Quiz */
.q-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--paper-raised); }
.opt-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.opt-row input { width: auto; }

.toast {
  position: fixed; top: 18px; right: 18px; background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-size: 13.5px; opacity: 0; transform: translateY(-8px);
  transition: all 0.2s; pointer-events: none; z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: var(--danger); }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 10px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.notif-badge {
  position: absolute; top: -4px; right: -6px; background: var(--danger); color: #fff;
  font-size: 10px; font-family: var(--mono); min-width: 16px; height: 16px; border-radius: 8px;
  align-items: center; justify-content: center; padding: 0 3px;
}
.notif-panel {
  position: fixed; top: 60px; left: 230px; width: 320px; max-height: 420px; overflow-y: auto;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15); padding: 14px; display: none; z-index: 200;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease;
}
.notif-panel.open { display: block; opacity: 1; transform: translateY(0); }
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line); }
.notif-item:hover { background: rgba(30,58,52,0.05); }
.notif-item.unread { border-left: 3px solid var(--brass); background: rgba(169,129,46,0.06); }
.notif-item-icon { flex-shrink: 0; font-size: 15px; line-height: 1.3; }
.notif-group-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 8px 4px; }

@media (max-width: 760px) {
  .notif-panel { left: 12px; right: 12px; width: auto; top: 70px; }
  .shell { flex-direction: column; }
  .rail { width: 100%; padding: 10px 12px; }
  .rail-brand { padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 8px; }
  .rail-brand > div:first-child > div { font-size: 15px; }
  .rail-brand small { display: none; }
  .rail nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-group { flex-direction: row; gap: 4px; margin-bottom: 0; }
  .nav-group-label { display: none; }
  .nav-search { display: none; }
  .rail nav a span { display: none; }
  .rail nav a { padding: 8px; border-left: none; border-bottom: 3px solid transparent; }
  .rail nav a.active { border-bottom-color: var(--brass); }
  .rail-foot { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 8px; padding-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .rail-foot .credit-line { width: 100%; }
  .main { padding: 20px; }
}

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  min-height: 78px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 8px; background: var(--paper-raised); cursor: pointer; transition: background 0.15s ease;
}
.cal-cell:hover { background: rgba(30,58,52,0.05); }
.cal-cell-head { min-height: auto; border: none; background: none; cursor: default; text-align: center;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding-bottom: 4px; }
.cal-cell-empty { border: none; background: none; cursor: default; }
.cal-cell-today { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.cal-cell-selected { background: rgba(169,129,46,0.12); }
.cal-cell-num { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cal-cell-dots { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.cal-dot-more { font-size: 10px; color: var(--ink-soft); font-family: var(--mono); }
@media (max-width: 760px) {
  .cal-cell { min-height: 52px; padding: 4px; }
  .cal-cell-num { font-size: 11.5px; }
}

/* Student dashboard: circular progress rings + section structure */
.att-ring-card { text-align: center; padding: 20px 14px; }
.att-ring-wrap { position: relative; width: 76px; height: 76px; margin: 0 auto; }
.att-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.progress-ring-arc { transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.dash-section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,32,28,0.09); }
@keyframes dash-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.main > * { animation: dash-fade-in 0.4s ease both; }
.main > *:nth-child(2) { animation-delay: 0.04s; }
.main > *:nth-child(3) { animation-delay: 0.08s; }
.main > *:nth-child(4) { animation-delay: 0.12s; }
.main > *:nth-child(5) { animation-delay: 0.16s; }

/* Reusable empty states */
.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state-icon { width: 56px; height: 56px; margin: 0 auto 14px; opacity: 0.4; }
.empty-state-icon svg { width: 100%; height: 100%; }
.empty-state p { margin: 0 0 12px; font-size: 13.5px; }

/* Enhanced table: search + sortable headers + pagination */
.et-wrap { margin-bottom: 8px; }
.et-search {
  width: 100%; max-width: 320px; margin-bottom: 10px; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 20px; font-size: 13px; background: var(--paper-raised);
}
.et-sortable { cursor: pointer; user-select: none; position: relative; }
.et-sortable:hover { color: var(--pine); }
.et-sortable::after { content: '↕'; opacity: 0.3; margin-left: 4px; font-size: 10px; }
.et-sorted::after { content: '↓'; opacity: 0.8; }
.et-pager { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* Loading skeletons */
.skel-block {
  background: linear-gradient(90deg, var(--line) 25%, rgba(0,0,0,0.06) 37%, var(--line) 63%);
  background-size: 400% 100%; border-radius: 4px; animation: skel-shimmer 1.4s ease infinite;
}
@keyframes skel-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Accessibility: consistent, theme-matched focus indicators for keyboard navigation.
   :focus-visible (not plain :focus) so mouse clicks don't show a ring, only keyboard/tab use. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 3px;
}
.rail nav a:focus-visible { outline-color: var(--brass-light); outline-offset: -2px; }
.btn:focus-visible { outline-offset: 3px; }

/* Breadcrumbs */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--pine); text-decoration: underline; }
.breadcrumb-sep { color: var(--line); }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

/* Global search results dropdown (in the sidebar's search box) */
#global-search-results {
  display: none; position: absolute; top: 100%; left: 20px; right: 20px; margin-top: 4px;
  background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(0,0,0,0.25); max-height: 360px; overflow-y: auto; z-index: 300;
}
#global-search-results.open { display: block; }
#global-search-results a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; text-decoration: none; color: var(--ink); font-size: 12.5px; border-bottom: 1px solid var(--line); }
#global-search-results a:hover { background: rgba(30,58,52,0.06); }
#global-search-results a:last-child { border-bottom: none; }
.gs-icon { font-size: 14px; flex-shrink: 0; }
.gs-type { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass); }
.gs-empty { padding: 14px 12px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

/* Animated vinyl record - used as a thumbnail/visual for audio (podcast) resources */
.vinyl-record {
  border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center;
  background: repeating-radial-gradient(circle at center, #1c1c1c 0px, #1c1c1c 2px, #2e2e2e 3px, #1c1c1c 4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  animation: vinyl-spin 7s linear infinite;
}
.vinyl-record::before {
  content: ''; width: 34%; height: 34%; border-radius: 50%; background: var(--brass);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35);
}
.vinyl-record::after {
  content: ''; position: absolute; width: 7%; height: 7%; border-radius: 50%; background: #161616; box-shadow: 0 0 0 2px #3a3a3a;
}
@keyframes vinyl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vinyl-card-slot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #1e3a34, #14201c); }
.vinyl-card-slot .vinyl-record { width: 96px; height: 96px; }
.vinyl-player-wrap { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.vinyl-player-wrap .vinyl-record { width: 56px; height: 56px; flex-shrink: 0; }
