/* ------------------------------------------------------------------ */
/* Session                                                             */
/* ------------------------------------------------------------------ */

.session-search-card {
  padding: 18px;
}

.session-search {
  position: relative;
}

.session-search .search-icon {
  left: 14px;
}

.session-search .search-input {
  padding-right: 16px;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 30;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  animation: fade 0.12s ease both;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion.active {
  background: var(--surface-2);
}

.suggestion-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.suggestion-name {
  font-size: 13.5px;
  font-weight: 600;
}

.suggestion-handle {
  font-size: 11px;
  color: var(--ink-faint);
}

.suggestion-empty {
  padding: 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.14);
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.chip button:hover {
  background: rgba(15, 118, 110, 0.28);
}

.session-hint {
  margin-top: 13px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 2px;
}

.results-count {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count strong {
  color: var(--ink);
  font-weight: 650;
}

.student-group {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.student-group-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.student-group-name {
  font-weight: 650;
  font-size: 14px;
  line-height: 1.25;
}

.student-group-handle {
  font-size: 11px;
  color: var(--ink-faint);
}

.student-group-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--surface);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.group-empty {
  padding: 16px 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.session-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
}

.session-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.session-box-head-main {
  min-width: 0;
  flex: 1;
}

.session-box-name {
  font-weight: 650;
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-box-handle {
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-box-count {
  font-size: 10px;
  color: var(--ink-soft);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  flex: none;
}

.session-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.session-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 7px;
  border-radius: 7px;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.session-tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.session-tab.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.session-box-words {
  display: flex;
  flex-direction: column;
}

.session-word {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.12s ease;
}

.session-word:last-child {
  border-bottom: 0;
}

.session-word:hover {
  background: var(--surface-2);
}

.session-word-term {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.session-word-meaning {
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-box-empty {
  padding: 16px 15px;
  font-size: 12px;
  color: var(--ink-faint);
}

.session-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.word-list {
  overflow: hidden;
}

.word-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.word-row:first-child {
  border-top: 0;
}

.word-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.12s ease;
}

.word-row-main:hover {
  background: var(--surface-2);
}

.word-row-term {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  min-width: 160px;
  overflow-wrap: anywhere;
}

.word-row-meaning {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.word-row .icon-btn {
  margin-right: 10px;
}

.word-row-main .icon {
  color: var(--ink-faint);
  margin-left: auto;
}
