.toolbar { display: flex; justify-content: flex-end; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.bullets { list-style: none; padding: 0; margin: 0; position: relative; }
.bullet-item {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.bullets .bullet-item:first-child { border-top: none; }
.bullet-item .bullet-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: start; }
.bullet-item .bullet-text { flex: 1; font-family: 'Noto Serif SC', var(--font-display); font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.55; min-width: 0; word-wrap: break-word; }
.bullet-item .bullet-main { grid-column: 2; grid-row: 1; min-width: 0; }
.bullet-item .idioms { grid-column: 2; grid-row: 2; }
.bullet-item .bullet-head { display: flex; gap: 10px; align-items: center; }
.bullet-item .bullet-head .bullet-text { flex: 1; min-width: 0; }
.bullet-item .bullet-head .bullet-mobile-ops { flex-shrink: 0; }
.bullet-item .bullet-row > .x-btn { grid-column: 3; grid-row: 1; align-self: center; flex-shrink: 0; }
.bullet-item .bullet-ops { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.bullet-item .bullet-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.bullet-item .x-btn {
  background: none; border: none; color: var(--text-secondary); padding: 2px 6px; font-size: 16px; line-height: 1;
  transition: color 0.15s var(--ease-out);
}
.bullet-item .x-btn:hover { color: var(--text); }
.drag-handle {
  flex-shrink: 0; background: none; border: none; padding: 2px 4px; margin-top: 1px;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.2;
  color: var(--text-secondary); cursor: grab; opacity: 0.5;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: color 0.15s var(--ease-out), opacity 0.15s var(--ease-out);
}
.bullet-item:hover .drag-handle { color: var(--text-secondary); opacity: 1; }
.drag-handle:hover, .drag-handle:focus-visible { color: var(--text); opacity: 1; outline: none; }
.drag-handle:focus-visible { outline: 1px solid var(--text); outline-offset: 1px; }
.drag-handle:active { cursor: grabbing; }
.bullet-item.dragging { opacity: 0.4; }
.bullets.dnd-active .bullet-text { user-select: none; }
.bullet-item.drag-over-top::after,
.bullet-item.drag-over-bottom::after,
.bullets.drag-over-end::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); pointer-events: none;
}
.bullet-item.drag-over-top::after    { top: -1px; }
.bullet-item.drag-over-bottom::after { bottom: -1px; }
.bullets.drag-over-end::after        { bottom: 0; }
.bullet-text-input {
  font-family: 'Noto Serif SC', var(--font-display);
  font-size: 15px; font-weight: 500; line-height: 1.55;
  min-height: 0; padding: 6px 8px;
}
.bullet-mobile-ops { display: none; gap: 2px; }
.bullet-mobile-ops button {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; cursor: pointer;
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.bullet-mobile-ops button:hover { border-color: var(--text); color: var(--text); }
.bullets .bullet-item:first-child .move-up-btn,
.bullets .bullet-item:last-child  .move-down-btn { visibility: hidden; }
@media (max-width: 768px) {
  .drag-handle { display: none; }
  .bullet-mobile-ops { display: inline-flex; }
  .bullet-item .bullet-ops { flex-wrap: wrap; justify-content: flex-end; }
}
.idiom {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: opacity 0.15s var(--ease-out), background 0.15s var(--ease-out);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.idiom .idiom-main { flex: 1; min-width: 0; }
.idiom .idiom-drag-handle {
  flex-shrink: 0; background: none; border: none; padding: 0 2px; margin-top: 1px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1;
  color: var(--text-secondary); cursor: grab; opacity: 0.5;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: color 0.15s var(--ease-out), opacity 0.15s var(--ease-out);
}
.idiom:hover .idiom-drag-handle { color: var(--text-secondary); opacity: 1; }
.idiom-drag-handle:hover, .idiom-drag-handle:focus-visible { color: var(--text); opacity: 1; outline: none; }
.idiom-drag-handle:active { cursor: grabbing; }
.idiom.dragging { opacity: 0.4; }
.idiom.drag-over-before::before,
.idiom.drag-over-after::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); pointer-events: none;
}
.idiom.drag-over-before::before { top: -1px; }
.idiom.drag-over-after::after  { bottom: -1px; }
.idioms.drag-over { outline: 1px dashed var(--text); outline-offset: -2px; }
.idiom .idiom-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.idiom .idiom-phrase {
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text);
  user-select: none; -webkit-user-select: none;
}
.idiom .idiom-meaning {
  font-family: 'Noto Serif SC', var(--font-display); font-size: 13px; color: var(--text-secondary);
  user-select: none; -webkit-user-select: none;
}
.idiom .idiom-example {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  user-select: none; -webkit-user-select: none;
}
.idiom-empty { font-family: 'Noto Serif SC', var(--font-display); font-size: 12px; color: var(--text-secondary); font-style: italic; margin-top: 6px; }
.add-bullet-btn {
  display: block; width: 100%; margin-top: 12px;
  background: none; border: 1px dashed var(--border);
  padding: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.add-bullet-btn:hover { border-color: var(--text); color: var(--text); }
.bullet-item-new { background: var(--bg-tertiary); }
.empty-state {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 4vh 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  height: calc(100dvh - 60px);
  max-height: calc(100dvh - 60px);
  padding-top: 18vh;
  padding-bottom: 4vh;
  gap: 28px;
  box-sizing: border-box;
}
.empty-state .empty-greeting {
  font-family: 'Noto Serif SC', var(--font-display);
  font-size: clamp(28px, 4.5vh, 40px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}
.empty-state .empty-greeting.font-cn { font-family: 'Noto Serif SC', var(--font-display); }
.empty-state .empty-greeting .empty-name { font-family: inherit; }
.empty-state .empty-input-card {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  padding: 20px 24px 16px;
  border-radius: 12px;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
}
.empty-state .empty-input-card:focus-within {
  border-color: var(--text-secondary);
}
.empty-state .empty-input-card .empty-textarea {
  width: 100%;
  min-height: 60px;
  max-height: calc(100dvh - 360px);
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  padding: 0;
  flex: 0 1 auto;
  overflow-y: auto;
}
.empty-state .empty-input-card .empty-textarea::placeholder { color: var(--text-secondary); }
.empty-state .empty-input-card .empty-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  flex-shrink: 0;
}
.empty-state .empty-input-card .empty-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}