/* Drawing editor ------------------------------------------------------- */

body.dw-open {
  overflow: hidden;
}

.dw-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  background: var(--page);
  color: var(--text);
}

.dw-overlay::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--rainbow);
}

.dw-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 0;
  min-width: 0;
}

.dw-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dw-title > .i {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: var(--grad-strong);
  color: #fff;
}

.dw-title strong {
  display: block;
  font: 600 17px var(--font-display);
}

.dw-title span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dw-shared {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 12px;
}

.dw-shared:empty {
  display: none;
}

.dw-shared .i {
  width: 14px;
  height: 14px;
}

.dw-shared .btn {
  height: 24px;
}

.dw-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 320px;
  gap: 14px;
  padding: 6px 16px 16px;
  min-height: 0;
}

.dw-tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
}

.dw-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 2px 7px;
  border: 0;
  border-radius: 16px;
  background: none;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  transition: transform 0.12s;
}

.dw-tool .i {
  width: 20px;
  height: 20px;
}

.dw-tool:hover {
  background: var(--panel-2);
  color: var(--text);
  transform: translateY(-1px);
}

.dw-tool .i {
  color: var(--accent);
}

.dw-tool.on {
  background: var(--grad-strong);
  color: #fff;
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.35);
}

.dw-tool.on .i {
  color: #fff;
}

.dw-tools-sep {
  height: 1.5px;
  margin: 4px 6px;
  background: var(--line);
}

.dw-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 66px 18px 18px;
  border-radius: var(--r-lg);
  background: var(--stage-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dw-canvas.drop {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.dw-svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.dw-canvas[data-tool='brush'] .dw-svg,
.dw-canvas[data-tool='eraser'] .dw-svg,
.dw-canvas[data-tool='shape'] .dw-svg {
  cursor: crosshair;
}

.dw-canvas[data-tool='text'] .dw-svg {
  cursor: text;
}

.dw-ctx,
.dw-dim,
.dw-guides,
.dw-cursor {
  pointer-events: none;
}

.dw-ctx svg {
  overflow: visible;
}

.dw-dim {
  fill: rgba(70, 40, 120, 0.42);
}

.dw-area {
  fill: none;
  stroke: rgba(139, 92, 246, 0.75);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.dw-guide {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 1;
  stroke-dasharray: 5 4;
  opacity: 0.95;
}

.dw-guide.double {
  stroke: #ec4899;
}

.dw-guide-label {
  fill: #db2777;
  font-weight: 700;
  font-family: system-ui, sans-serif;
}

.dw-brush-cursor {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95));
}

.dw-sel {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 1.5;
  pointer-events: none;
}

.dw-handle {
  fill: #ffffff;
  stroke: #ec4899;
  stroke-width: 1.5;
  cursor: nwse-resize;
}

.dw-handle.rot {
  cursor: grab;
}

/* panel */

.dw-panel {
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
}

.dw-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--panel-2);
  border-bottom: 1.5px dashed var(--line);
}

.dw-preview-wrap strong {
  font: 600 15px var(--font-display);
}

.dw-preview {
  flex: none;
  width: 78px;
}

.dw-preview svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.dw-sec {
  padding: 13px 18px;
  border-bottom: 1.5px dashed var(--line);
}

.dw-sec-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font: 600 12.5px var(--font-display);
  color: var(--muted);
}

.dw-sec-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.dw-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.dw-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.dw-row > label {
  font-weight: 800;
}

.dw-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dw-val {
  flex: none;
  width: 40px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.dw-brushes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dw-brush {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 4px 5px;
  border: 1.5px solid #efe6fb;
  border-radius: 14px;
  background: #fffdfb;
  font-size: 11px;
  font-weight: 800;
  color: #6c6283;
  transition: transform 0.12s;
}

.dw-brush:hover {
  border-color: #d9c9f6;
  transform: translateY(-1px);
}

.dw-brush.on {
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px #a78bfa, 0 6px 14px rgba(139, 92, 246, 0.25);
  color: #2e2548;
}

.dw-brush-pv,
.dw-brush-pv svg {
  display: block;
  width: 100%;
  height: 28px;
}

.dw-shapes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.dw-shape {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--accent);
}

.dw-shape:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.dw-shape.on {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
}

.svg-ico,
.svg-ico svg {
  display: block;
  width: 20px;
  height: 20px;
}

.dw-color {
  padding: 4px 0 6px;
}

.dw-color-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dw-color-top label {
  font-weight: 800;
}

.dw-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dw-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.dw-swatch.on {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--panel), 0 0 0 4px var(--accent);
}

.dw-sym {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.dw-sym button {
  display: grid;
  place-items: center;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--accent);
}

.dw-sym button:hover {
  color: var(--text);
}

.dw-sym button.on {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
}

.dw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.dw-actions .icon-btn {
  border: 1.5px solid var(--line);
  background: var(--panel);
}

.dw-actions .icon-btn.danger:hover {
  color: #c8102e;
  border-color: #e9a3ad;
}

@media (max-width: 860px) {
  .dw-body {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 42vh;
    gap: 8px;
    padding: 4px 8px 8px;
  }

  .dw-panel {
    grid-column: 1 / -1;
  }

  .dw-tool span,
  .dw-shared span {
    display: none;
  }

  .dw-canvas {
    padding: 62px 8px 8px;
  }
}

/* Inspector additions --------------------------------------------------- */

.section-label.sub {
  margin-top: 12px;
}

.drawing-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 66px;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
}

.drawing-thumb svg {
  width: 100%;
  height: 100%;
}

.drawing-thumb:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* Color picker ------------------------------------------------------------ */

.cp {
  padding: 4px 0 8px;
}

.cp + .cp {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--line);
}

.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cp-head label {
  font-weight: 800;
}

.cp-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cp-chip {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.15), 0 0 0 2.5px var(--panel), 0 0 0 4px var(--line-strong);
  transition: transform 0.12s;
}

.cp-chip:hover {
  transform: scale(1.08);
}

.cp-chip[aria-expanded='true'] {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.15), 0 0 0 2.5px var(--panel), 0 0 0 4.5px var(--accent);
}

.cp-hex {
  width: 86px;
  height: 30px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font: 700 12px ui-monospace, 'SF Mono', Menlo, monospace;
}

.cp-hex:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

.cp-drop {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line);
}

.cp-row,
.cp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
}

.cp-sw {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.1s;
}

.cp-sw:hover {
  z-index: 1;
  transform: scale(1.22);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(46, 37, 72, 0.25);
}

.cp-sw.on {
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px var(--panel), 0 0 0 3.5px var(--accent);
}

.cp-sv {
  --hue: 0;
  position: relative;
  height: 136px;
  margin: 10px 0 12px;
  border-radius: 14px;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, hsl(var(--hue) 100% 50%));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: crosshair;
  touch-action: none;
}

.cp-sv-dot,
.cp-hue-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cp-hue {
  --hue: 0;
  position: relative;
  height: 14px;
  margin: 0 9px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00);
  cursor: pointer;
  touch-action: none;
}

.cp-hue-dot {
  top: 50%;
  background: hsl(var(--hue) 100% 50%);
}

.cp-sv:focus-visible,
.cp-hue:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

.cp-sub {
  margin: 10px 0 5px;
  font: 600 11.5px var(--font-display);
  color: var(--muted);
}

.cp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px 4px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.cp-more .i {
  width: 15px;
  height: 15px;
}

.cp-more:hover {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Compact picker in the card panel: swatch + hex (+ Suit) until opened. */
.cp.compact {
  padding: 0;
}

.cp.compact .cp-head {
  margin-bottom: 0;
}

.cp.compact.open .cp-head {
  margin-bottom: 8px;
}

.cp.compact .cp-tools {
  width: 100%;
}

.cp.compact .cp-hex {
  flex: 1;
  width: auto;
  min-width: 0;
}

.cp.compact .chip {
  height: 30px;
}

/* Symmetry bar, floating at the top of the drawing canvas */

.dw-symbar {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--line);
  overflow-x: auto;
  white-space: nowrap;
}

.dw-symbar-label {
  margin-right: 4px;
  font: 600 12.5px var(--font-display);
  color: var(--muted);
}

.dw-symbar-hint {
  padding: 0 6px;
  font-size: 12px;
  color: var(--faint);
}

.dw-symbar-sep {
  flex: none;
  width: 1.5px;
  height: 22px;
  margin: 0 4px;
  background: var(--line);
}

.dw-symbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--accent);
  transition: transform 0.12s, background 0.12s;
}

.dw-symbtn:hover {
  background: var(--accent-weak);
  transform: translateY(-1px);
}

.dw-symbtn.on {
  background: var(--grad-strong);
  color: #fff;
  box-shadow: 0 5px 12px rgba(139, 92, 246, 0.35);
}

.dw-txtbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px 0 9px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.dw-txtbtn:hover {
  background: var(--accent-weak);
  color: var(--text);
}

.dw-txtbtn.on {
  background: color-mix(in srgb, var(--accent-2) 14%, var(--panel));
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1.5px var(--accent-2);
}

.dw-stepper {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--panel-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dw-stepper button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.dw-stepper span {
  min-width: 30px;
  text-align: center;
  font-size: 12.5px;
}

/* Text box for the selected text item */
.dw-textarea {
  width: 100%;
  min-height: 56px;
  margin: 2px 0 8px;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font: 700 15px var(--font);
  resize: vertical;
}

.dw-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

/* Zoom buttons, bottom-right of the drawing canvas */
.dw-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--line);
}

.dw-zoom button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

.dw-zoom button:hover {
  background: var(--accent-weak);
}

.dw-zoom .dw-zoom-val {
  min-width: 58px;
  font-size: 12.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dw-svg,
.dw-canvas {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

/* Image library window ------------------------------------------------------ */

body.lib-open {
  overflow: hidden;
}

.lib-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(46, 27, 90, 0.32);
  backdrop-filter: blur(6px);
  animation: pop 0.16s ease-out;
}

.lib-panel {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.lib-panel.drop {
  box-shadow: var(--shadow-pop), inset 0 0 0 3px var(--accent);
}

.lib-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 10px 20px;
}

.lib-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad-strong);
  color: #fff;
}

.lib-ico .i {
  width: 22px;
  height: 22px;
  color: #fff;
}

.lib-titles strong {
  display: block;
  font: 600 19px var(--font-display);
}

.lib-titles span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.lib-search {
  width: 170px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-weight: 700;
}

.lib-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

.lib-close {
  border: 1.5px solid var(--line);
}

.lib-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 20px 8px;
}

.lib-status {
  font-size: 12px;
  color: var(--muted);
}

.lib-use-hint {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.lib-body {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  padding: 6px 20px 14px;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.lib-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: left;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.lib-tile:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.14);
}

.lib-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: repeating-conic-gradient(#f3eef9 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
}

.lib-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lib-name,
.lib-name-input {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 800;
}

.lib-name-input {
  height: 28px;
  padding: 0 8px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  background: transparent;
}

.lib-name-input:hover {
  border-color: var(--line);
}

.lib-name-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel-2);
}

.lib-size {
  padding: 0 8px;
  font-size: 11px;
  color: var(--faint);
}

.lib-tile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lib-tile-actions .btn {
  flex: 1;
}

.lib-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 20px;
  border: 2.5px dashed var(--line-strong);
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
}

.lib-empty strong {
  font: 600 17px var(--font-display);
  color: var(--text);
}

.lib-empty-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-weak);
  color: var(--accent);
}

.lib-empty-ico .i {
  width: 28px;
  height: 28px;
}

.lib-none {
  grid-column: 1 / -1;
  color: var(--muted);
}

.lib-foot {
  margin: 0;
  padding: 10px 20px 16px;
  border-top: 1.5px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lib-overlay {
    padding: 8px;
  }

  .lib-head {
    flex-wrap: wrap;
  }

  .lib-search {
    order: 5;
    width: 100%;
  }
}
