/* My Papers: same single-column, card-based mobile-first language as
   editor.css, just for the list view instead of the outline. */

.library-view {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px 60px;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.library-title {
  font-size: 20px;
  margin: 0;
}

.btn-new-paper {
  background: #4c8bf5;
  border-color: #4c8bf5;
  color: #fff;
}

.btn-new-paper:hover {
  background: #3f78d9;
}

.library-import-row {
  margin-bottom: 14px;
}

.library-empty {
  color: #666;
  padding: 20px 0;
  text-align: center;
}

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

.library-record-card {
  border-left: 4px solid #c7cdd6;
}

.record-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.record-title-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 700;
  min-height: unset;
  background: transparent;
}

.record-title-input:focus {
  outline: 1px solid #4c8bf5;
  border-radius: 4px;
}

.record-time {
  flex: none;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.record-meta {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-danger {
  border-color: #d9534f;
  color: #d9534f;
}

.btn-danger:hover {
  background: #fbeceb;
}

.btn-export-all {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.library-hint {
  margin-top: 16px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* ---- eviction notice ---- */

.eviction-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff6e0;
  border: 1px solid #f0dca0;
  color: #6b5900;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.eviction-dismiss {
  flex: none;
  border: none;
  background: transparent;
  color: #6b5900;
  font-size: 14px;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
}

@media (min-width: 720px) {
  .library-view {
    max-width: 720px;
    padding: 20px 20px 80px;
  }
}
