* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1f2933;
}

header {
  background: #1f6feb;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}

header h1 { margin: 0 0 .25rem; }
header p { margin: 0; opacity: .9; }

main {
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.card h2 { margin-top: 0; }

.list { list-style: none; margin: 0 0 1rem; padding: 0; }

.list li {
  padding: .6rem .25rem;
  border-bottom: 1px solid #eceef0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.list li:last-child { border-bottom: none; }
.list .empty { color: #7b8794; justify-content: center; }

.list small { color: #7b8794; }

.quote-text { margin: 0; font-size: 1.05rem; }
.quote-ctx { margin: .15rem 0 0; color: #52606d; font-style: italic; }
.quote-meta { margin: .15rem 0 0; color: #7b8794; font-size: .85rem; }
.actions { display: flex; gap: .5rem; }

.form { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-column { flex-direction: column; }
.form .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.form .row select { flex: 1; }

select, input {
  padding: .5rem;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font: inherit;
  flex: 1;
  min-width: 120px;
}

button {
  padding: .5rem .9rem;
  border: none;
  border-radius: 6px;
  background: #1f6feb;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button:hover { background: #1a5fd0; }
button.danger { background: #e5484d; }
button.danger:hover { background: #cc3b40; }
