:root {
  --ink: #0f2331;
  --muted: #4f6877;
  --line: #d9e4ec;
  --panel: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #eff6fb 0%, #f8fcfb 100%);
}
.shell { max-width: 1400px; margin: 0 auto; padding: 1rem; }
.hero {
  background: linear-gradient(110deg, #0c4d78, #1287b5);
  border-radius: 14px;
  color: #eef9ff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
h1 { margin: 0.2rem 0; }
h2 { margin: 0 0 0.7rem; }
.hero-actions { display: flex; gap: 0.45rem; }
.card {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
}
.form-grid { display: grid; gap: 0.65rem; }
.form-grid.inline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
label { display: grid; gap: 0.2rem; color: var(--muted); font-weight: 600; }
.title-field { position: relative; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.45rem 0.55rem;
  font: inherit;
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(100deg, #15a782, #1cb0d4);
  text-decoration: none;
}
.btn.secondary { background: #eef4f8; color: #1b4258; border: 1px solid #d6e2ea; }
.btn.danger { background: linear-gradient(100deg, #bd3c3c, #d35a5a); }
.muted { color: var(--muted); }
.toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.65rem; margin-top: 0.7rem; }
.toolbar input { max-width: 320px; }
.table-wrap { overflow: auto; margin-top: 0.8rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.45rem 0.35rem; text-align: left; }
td.actions { white-space: nowrap; }
.row-rating {
  width: 152px;
  margin-right: 0.3rem;
  padding: 0.22rem 0.32rem;
}
.small-btn {
  border: 1px solid #d4e2ec;
  background: #f4f9fc;
  color: #17465f;
  border-radius: 8px;
  padding: 0.26rem 0.48rem;
  cursor: pointer;
  font: inherit;
  margin-right: 0.2rem;
}
.small-btn.delete { background: #fff0f0; color: #9d2b2b; border-color: #efc4c4; }
.small-btn.warn { background: #fff8ea; color: #926100; border-color: #f1dbad; }

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #c7d8e5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(6, 35, 56, 0.12);
  z-index: 20;
}
.suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8f0f6;
  background: #ffffff;
  color: #14374a;
  text-align: left;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}
.suggestion:last-child {
  border-bottom: 0;
}
.suggestion:hover {
  background: #f1f8fd;
}
.suggestion-title {
  font-weight: 700;
}
.suggestion-meta {
  font-size: 0.82rem;
  color: #567084;
  margin-top: 0.14rem;
}
