:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #607080;
  --line: #d9e1e8;
  --soft: #f4f8fb;
  --panel: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --green: #15803d;
  --green-soft: #dcfce7;
  --mark: #fff0b8;
  --shadow: 0 18px 45px rgba(24, 39, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #eef3f7;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.search-panel,
.answer-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 28px;
}

.answer-panel {
  min-height: calc(100vh - 80px);
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.search-form {
  margin-top: 28px;
}

.search-form label,
.filters label {
  display: block;
  margin-bottom: 8px;
  font-weight: 760;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input,
.filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
}

.search-row input:focus,
.filters select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.search-row button,
.quick-filters button,
.hot-keywords-list button,
.action-grid button,
.save-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.search-row button,
.action-grid button {
  flex: 0 0 auto;
  padding: 0 16px;
  color: white;
  background: var(--accent);
  font-weight: 820;
}

.search-row button:hover,
.action-grid button:hover {
  background: var(--accent-dark);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-filters button {
  padding: 8px 10px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 760;
}

.hot-keywords {
  margin-top: 18px;
}

.hot-keywords-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

.hot-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-keywords-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #b9d8c4;
  color: var(--green);
  background: #f0fdf4;
  font-weight: 760;
}

.hot-keywords-list button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.hot-keywords-list span {
  overflow-wrap: anywhere;
}

.hot-keywords-list small {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 820;
  text-align: center;
}

.filters {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.filters label:not(:first-child) {
  margin-top: 8px;
}

.action-grid {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.action-grid button {
  min-height: 44px;
}

#saved-button {
  color: var(--green);
  background: var(--green-soft);
}

#saved-button:hover {
  background: #bbf7d0;
}

.status {
  color: var(--muted);
  font-weight: 760;
}

.answer {
  margin: 0 0 22px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.results {
  display: grid;
  gap: 12px;
}

.workshop-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: white;
}

.workshop-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.workshop-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.34;
}

.save-button {
  min-width: 86px;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 820;
}

.save-button.saved {
  color: white;
  background: var(--green);
}

.organizers {
  color: #425466;
  font-size: 0.92rem;
  line-height: 1.45;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #425466;
  background: #f8fafc;
  font-size: 0.88rem;
}

.abstract {
  margin: 14px 0 0;
  color: #334155;
  line-height: 1.6;
}

.abstract-details {
  margin-top: 10px;
  color: #334155;
  line-height: 1.6;
}

.abstract-details summary {
  color: var(--green);
  cursor: pointer;
  font-weight: 820;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--accent-dark);
  background: #eaf1ff;
  font-weight: 760;
  text-decoration: none;
}

mark {
  border-radius: 3px;
  background: var(--mark);
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .search-panel {
    position: static;
  }

  .workshop-header {
    grid-template-columns: 1fr;
  }

  .save-button {
    width: 100%;
  }
}
