/* MyVocab card sets page (on top of trainer.css) */
main.sets { grid-template-columns: 280px minmax(0, 1fr); max-width: 1400px; }
@media (max-width: 860px) { main.sets { grid-template-columns: 1fr; } }
#setList { display: flex; flex-direction: column; gap: 4px; }
#setList .pick { text-align: left; display: flex; flex-direction: column; padding: 6px 10px; }
#setList .pick .name { font-weight: 600; }
#setList .pick .count { font-size: 12px; color: #888; }
#setList .pick .mcount { font-size: 12px; color: #2e7d32; }
#setList .pick { cursor: grab; }
#setList .pick.dragging { opacity: .4; }
#setList .pick.dropbefore { box-shadow: 0 -3px 0 #1a4d8f; }
#setList .pick.dropafter { box-shadow: 0 3px 0 #1a4d8f; }
#setList .pick .top { font-size: 11px; color: #2e7d32; }
#setList .pick.hiddenset { opacity: .55; border-style: dashed; }
#setList .pick .hiddenmark { font-size: 11px; color: #888; }
.showhidden { display: block; margin: 8px 0 0; font-size: 13px; color: #555; cursor: pointer; }
.showhidden[hidden] { display: none; }
#setList .pick.current { border-color: #1a4d8f; background: #eaf1fb; box-shadow: inset 3px 0 0 #1a4d8f; }
.newrow { display: flex; gap: 6px; margin: 12px 0 6px; }
.newrow input { flex: 1; min-width: 0; font: inherit; padding: 4px 6px; }
#removedSets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
#removedSets .hint { width: 100%; }

.sethead { display: flex; gap: 10px; align-items: center; }
input.setname { flex: 1; min-width: 0; font: inherit; font-size: 20px; font-weight: 600; color: #1a4d8f; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; background: transparent; }
input.setname:not([readonly]):hover, input.setname:focus { border-color: #c8d0dc; background: #fff; }
a.button[hidden] { display: none; }
a.button { display: inline-block; text-decoration: none; border-radius: 6px; padding: 6px 14px; }
a.button.primary { background: #1a4d8f; color: #fff; }
a.button.primary:hover { background: #163f75; }
button.danger { color: #b00020; border-color: #e2a3a3; }
button.danger:hover:not(:disabled) { background: #fdecea; }

.addrow { display: flex; gap: 6px; margin: 10px 0 4px; }
.addrow input { flex: 1; font: inherit; padding: 5px 8px; min-width: 0; }
.lookupmsg { margin: 2px 0 6px; }
.lookupmsg.err { color: #b00020; }
.lookupmsg button.alt { font-size: 13px; padding: 1px 8px; margin: 2px 4px 2px 0; }
.addrow input[hidden] { display: none; }
#bulk { margin: 6px 0 4px; font-size: 14px; }
#bulk summary { cursor: pointer; color: #555; }
#export { margin: 6px 0 4px; font-size: 14px; }
#export summary { cursor: pointer; color: #555; }
.exportrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.exportrow .copy { margin-left: auto; padding: 2px 10px; font-size: 13px; }
#exportText { width: 100%; box-sizing: border-box; font: 12px/1.4 Consolas, monospace; margin-top: 6px; white-space: pre; overflow: auto; tab-size: 16; }
#bulkText { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; margin-top: 6px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid #eee; }
.toolbar input[type=search] { flex: 1; min-width: 180px; font: inherit; padding: 5px 8px; }

.tablewrap { overflow-x: auto; }
#cards { width: 100%; border-collapse: collapse; font-size: 14px; }
#cards th { text-align: left; background: #f1f4f9; color: #444; padding: 6px 8px; position: sticky; top: 0; z-index: 1; }
#cards td { border-bottom: 1px solid #eef0f3; padding: 5px 8px; vertical-align: top; }
#cards th.cb, #cards td.cb { width: 28px; text-align: center; }
#cards td.edit { cursor: text; border-radius: 4px; }
#cards td.edit:hover { background: #f6f8fb; }
#cards td.edit:focus { outline: 2px solid #9bb8e0; background: #fff; }
#cards td.f2 { color: #1a4d8f; font-weight: 600; }
#cards td.note { color: #666; font-size: 13px; }
#cards td.theme select { font: inherit; font-size: 12px; color: #555; border: 1px solid transparent; background: transparent; padding: 1px 0; max-width: 140px; cursor: pointer; }
#cards td.theme select:hover, #cards td.theme select:focus { border-color: #ccc; background: #fff; }
#cards td.status { white-space: nowrap; color: #888; font-size: 12px; }
#cards td.status.new { color: #2e7d32; }
#cards td.status.due { color: #b36b00; }
#cards td.status.excluded { color: #b00020; }
#cards th.x, #cards td.x { width: 24px; padding: 2px 4px; text-align: center; }
#cards td.x button { border: 0; background: transparent; color: #b8bec8; font-size: 14px; padding: 2px 6px; cursor: pointer; border-radius: 4px; }
#cards tr:hover td.x button { color: #b00020; }
#cards td.x button:hover { background: #fdecea; }
#cards tr.sel td { background: #fff8dc; }
#cards .topic { display: block; font-size: 11px; color: #6a3d9a; font-weight: normal; }
.toolbar button.danger, .sethead button.danger { margin-right: 0; }
details.adv h4 { margin: 12px 0 4px; font-size: 13px; color: #444; }

/* the picture of a card */
#cards th.pic, #cards td.pic { width: 52px; text-align: center; }
#cards td.pic { cursor: pointer; position: relative; }
#cards td.pic img { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto; }
#cards td.pic .add { color: #bbb; }
#cards td.pic img.auto { opacity: .6; }
#cards td.pic:hover img.auto { opacity: 1; }
#cards td.pic:hover .add { color: #1a4d8f; }
#cards td.pic .rm { position: absolute; top: 0; right: 0; display: none; border: 0; background: #fff; color: #b00020; font-size: 11px; padding: 0 2px; cursor: pointer; }
#cards td.pic:hover .rm { display: block; }

/* the version, discreetly at the bottom of the settings (version.js) */
.appversion { margin: 12px 4px 0; text-align: right; color: #aaa; font-size: 11px; }

/* the two groups of sets: standard (they come with Lexflick) and mine */
#setList .grouphead { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 4px 6px; border: none; background: none;
  color: #555; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; cursor: pointer; }
#setList .grouphead:first-child { margin-top: 0; }
#setList .grouphead:hover { background: #f1f4f9; color: #1a4d8f; }
#setList .grouphead .arrow { width: 12px; }
#setList .grouphead .count { margin-left: auto; font-weight: 400; color: #999; }
