/* AI learning guide: a Scaylar prototype with sample data. Colors and type follow scaylar.com. */

:root {
  --blue: #0556f3;
  --blue-hover: #0445c2;
  --blue-deep: #033492;
  --blue-light: #e9f3ff;
  --blue-line: #c4d9fd;
  --ink: #0b1220;
  --body: #344054;
  --muted: #475467;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --amber-bg: #fff4d6;
  --amber-line: #f2cf75;
  --amber-ink: #6e4300;
  --amber-dot: #d08a00;
  --green-bg: #e7f6ed;
  --green-ink: #10613a;
  --violet-bg: #f1ecff;
  --violet-ink: #5225a8;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 10px 28px rgba(11, 18, 32, 0.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--blue-deep);
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- focus ---------- */

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary:focus-visible,
.badge-proto:focus-visible {
  outline-color: var(--blue-deep);
}

[tabindex='-1']:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- header ---------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.app-name {
  font-size: 22px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.badge-proto {
  background: var(--blue);
  color: #fff;
}

.badge-sample {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-line);
}

.badge-sample::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-dot);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.views {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
}

.view-link {
  padding: 6px 16px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.view-link:hover {
  color: var(--ink);
}

.view-link[aria-current='page'] {
  background: var(--surface);
  color: var(--blue-deep);
  box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--blue-deep);
  border-color: var(--blue-line);
}

.btn-secondary:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn-small {
  padding: 8px 15px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- layout ---------- */

main {
  padding-top: 24px;
  padding-bottom: 48px;
}

main:focus {
  outline: none;
}

.lede {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
}

.tag {
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-muted {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag-sample {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-line);
}

/* ---------- chat ---------- */

.chat-panel {
  display: flex;
  flex-direction: column;
}

.chat-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
}

.chat-log:focus-visible {
  outline-offset: -3px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
}

.msg-learner {
  justify-content: flex-end;
}

.avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
}

.bubble {
  min-width: 0;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.msg-guide .bubble {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top-left-radius: 6px;
}

.msg-learner .bubble {
  background: var(--blue);
  color: #fff;
  border-top-right-radius: 6px;
}

.bubble > p + p,
.bubble > p + .chips,
.bubble > .note + p {
  margin-top: 8px;
}

.bubble .note {
  font-size: 13px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.chip:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}

.chip.is-spent,
.chip.is-spent:hover {
  background: var(--bg);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.chip.is-chosen,
.chip.is-chosen:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue-deep);
  cursor: default;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 15px 16px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2b3;
  animation: blink 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.progress-title {
  font-weight: 600;
}

.progress {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.progress-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.progress-step.is-active,
.progress-step.is-done {
  color: var(--ink);
}

.progress-step.is-active {
  font-weight: 500;
}

.progress-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.is-active .progress-icon {
  border-color: var(--blue-line);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

.is-done .progress-icon {
  background: var(--blue);
  border-color: var(--blue);
}

.is-done .progress-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.progress-sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.progress-sub:empty {
  display: none;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.chat-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.chat-input::placeholder {
  color: #667085;
}

.chat-input:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

/* ---------- path ---------- */

.path-body {
  padding: 20px;
}

.empty {
  max-width: 440px;
  margin: 0 auto;
  padding: 44px 8px;
  text-align: center;
  color: var(--muted);
}

.empty-small {
  max-width: none;
  padding: 40px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-title {
  margin: 18px 0 6px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.empty-small .empty-title {
  margin-top: 0;
}

.empty-art {
  display: grid;
  gap: 10px;
  width: 230px;
  max-width: 100%;
  margin: 0 auto;
}

.empty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

.empty-num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

.empty-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.empty-bar-short {
  flex: 0 0 34%;
}

.loading-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 3px solid var(--blue-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
}

.loading-sub {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.skeleton {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skeleton li {
  height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f2f4f7 25%, #e8ecf2 37%, #f2f4f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.path-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.path-goal {
  font-size: 15px;
  font-weight: 500;
}

.path-goal-label {
  display: inline-block;
  margin-right: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 10px;
  margin: 0;
}

.stat {
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--blue-light);
}

.stat dt {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat dd {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.search-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.search-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.search-note summary::-webkit-details-marker {
  display: none;
}

.search-note summary::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}

.search-note[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.search-note summary:focus-visible {
  border-radius: var(--radius);
  outline-offset: -1px;
}

.search-list {
  margin: 0;
  padding: 0 14px 12px 32px;
  color: var(--muted);
  font-size: 14px;
}

.search-list li + li {
  margin-top: 4px;
}

.search-query {
  color: var(--ink);
  font-weight: 500;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.step:hover {
  border-color: var(--blue-line);
  box-shadow: var(--shadow-sm);
}

/* the line that joins one step's number to the next */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 33px;
  top: 58px;
  bottom: -26px;
  width: 2px;
  background: var(--blue-line);
}

.step.is-first {
  border-color: var(--blue-line);
  background: #f7faff;
}

.step.is-started {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.step-num {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-deep);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.is-first .step-num {
  background: var(--blue);
  color: #fff;
}

.step-main {
  min-width: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.meta-sep {
  position: relative;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.level,
.start-here {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.start-here {
  background: var(--blue);
  color: #fff;
}

.level-beginner {
  background: var(--green-bg);
  color: var(--green-ink);
}

.level-intermediate {
  background: var(--blue-light);
  color: var(--blue-deep);
}

.level-advanced {
  background: var(--violet-bg);
  color: var(--violet-ink);
}

.step-why {
  margin-top: 10px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.why-label {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-action {
  align-self: center;
}

.is-entering .step {
  animation: rise 0.35s ease both;
}

.left-out {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}

.left-out strong {
  color: var(--ink);
}

.start-status:not(:empty) {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue-deep);
  font-size: 14px;
}

/* ---------- library ---------- */

.library-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
}

.library-sub {
  max-width: 700px;
  margin-top: 6px;
  color: var(--muted);
}

.library-sub strong {
  color: var(--ink);
}

.library-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.filters-title {
  font-size: 16px;
  font-weight: 600;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.field > legend {
  margin-bottom: 6px;
}

.field input[type='search'],
.field select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field input[type='search']:focus,
.field select:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.checks {
  display: grid;
  gap: 6px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.results-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.lib-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lib-card:hover {
  border-color: var(--blue-line);
  box-shadow: var(--shadow-sm);
}

.lib-topic {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lib-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.lib-card .meta {
  margin-top: auto;
  padding-top: 4px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p:first-child {
  max-width: 860px;
}

.footer strong {
  color: var(--ink);
}

.footer a {
  font-weight: 600;
}

/* ---------- sizes ---------- */

@media (min-width: 960px) {
  /* the chat keeps its input in view beside a long path */
  .chat-panel {
    position: sticky;
    top: 16px;
    height: calc(100vh - 185px);
    min-height: 520px;
    max-height: 780px;
  }

  .filters {
    position: sticky;
    top: 16px;
  }

  .only-narrow {
    display: none;
  }
}

@media (max-width: 959px) {
  .guide-grid,
  .library-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-log {
    overflow: visible;
  }

  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .filters-title,
  .filters .field-wide,
  .filters fieldset,
  .filters .btn-block {
    grid-column: 1 / -1;
  }

  .checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  main {
    padding-top: 16px;
  }

  .app-name {
    font-size: 20px;
  }

  .lede {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .panel-head {
    padding: 14px 16px;
  }

  .chat-log {
    padding: 16px;
  }

  .bubble {
    max-width: 92%;
  }

  .path-body {
    padding: 16px;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .stat {
    padding: 10px 12px;
  }

  .stat dd {
    font-size: 18px;
  }

  .stat-levels {
    grid-column: 1 / -1;
  }

  .step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .step:not(:last-child)::after {
    left: 29px;
    top: 50px;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .step-action {
    grid-column: 2;
    justify-self: start;
  }

  .section-title {
    font-size: 24px;
  }

  .lib-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .filters {
    gap: 12px;
    padding: 16px;
  }

  .field input[type='search'],
  .field select {
    padding: 9px 10px;
  }
}

/* ---------- motion ---------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
