.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.page-head .btn { white-space: nowrap; flex: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.deck-list, .pair-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.deck {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-right: 4px;
}
.deck-main {
  flex: 1;
  min-width: 0;
  padding: 14px 8px 14px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.deck-main h2 { overflow-wrap: anywhere; }

.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; width: var(--value, 0%); background: var(--good); border-radius: 3px; }

.due {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.title-input {
  flex: 1;
  min-width: 0;
  font: 700 1.15rem var(--serif);
  border-color: transparent;
  background: transparent;
  padding: 8px;
}

.pairs { display: flex; flex-direction: column; gap: 10px; }

.pair {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 56px;
  cursor: pointer;
  font: inherit;
}
.pair-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pair-text strong { font-weight: 600; }
.level { flex: none; font-size: 0.78rem; color: var(--good); font-weight: 600; }

summary { cursor: pointer; font-weight: 500; min-height: 28px; }
details[open] > summary { margin-bottom: 4px; }
