[data-coloring-gallery] select {
  display: block;
  width: min(100%, 27rem);
  min-height: 44px;
  margin: .35rem 0;
  padding: .5rem;
  color: #293c33;
  background: white;
  border: 1px solid #879c8c;
  border-radius: .4rem;
  font: inherit;
}
.sheet-selector-label { font-weight: 700; }
#coloriage-en-ligne.ghost-color-r84 { scroll-margin-top: .5rem; }
.sheet-picker {
  margin: .5rem 0 1.2rem;
  border: 1px solid #c9d5c9;
  border-radius: .7rem;
  background: #fffdf8;
  scroll-margin-top: .5rem;
}
.sheet-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem 1rem;
  color: #125a45;
  font-weight: 700;
  cursor: pointer;
}
.sheet-picker > summary::-webkit-details-marker { display: none; }
.sheet-picker > summary::before,
.sheet-picker[open] > summary::before { content: none; }
.sheet-picker > summary::after { content: "+"; flex: none; font-size: 1.35rem; }
.sheet-picker[open] > summary::after { content: "−"; }
.sheet-picked-label { display: block; font-size: .88rem; font-weight: 500; color: #4f6256; }
.sheet-picker[open] .sheet-picked-label { display: none; }
.sheet-picker-list { padding: 0 1rem 1rem; }
.sheet-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; }
.ghost-color-r84 .sheet-filters button { padding: .35rem .7rem; min-height: 44px; border-radius: 1rem; }
.ghost-color-r84 .sheet-filters [aria-pressed="true"] { color: white; background: #17644d; border-color: #17644d; }
.sheet-group + .sheet-group { margin-top: 1.1rem; }
.sheet-group h3 { margin: 0 0 .55rem; font-size: 1.1rem; }
.sheet-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sheet-card-grid li { min-width: 0; }
.sheet-card-grid a {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: .45rem;
  height: 100%;
  padding: .45rem;
  border: 1px solid #d5ded3;
  border-radius: .6rem;
  background: #fff;
  color: #293c33;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sheet-card-grid :is(a:hover, [aria-current="true"]) { border-color: #17644d; background: #edf5ee; }
.sheet-card-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  max-height: 135px;
  object-fit: contain;
  border-radius: .35rem;
  background: #f5f6f2;
  padding: .2rem;
}
.sheet-card-grid span { font-size: .9rem; font-weight: 650; line-height: 1.3; }
.ghost-color-r84:has(.sheet-picker[open]) :is(.ghost-color-r84-layout, .sheet-editor, .sheet-print) { display: none; }
.sheet-print { display: inline-block; margin: .35rem 0 .85rem; }
[data-coloring-gallery] > p:empty { display: none; }
.sheet-editor { margin: .4rem 0 1rem; }
.sheet-tools { padding: 0; margin: 0 0 .5rem; min-width: 0; border: 0; }
.sheet-palette, .sheet-commands { display: flex; flex-wrap: wrap; gap: .5rem; margin: .45rem 0; }
.sheet-commands label { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ghost-color-r84 .sheet-chip { width: 44px; padding: 0; }
.ghost-color-r84 [data-sheet-color][aria-pressed="true"],
.ghost-color-r84 [data-sheet-mode][aria-pressed="true"] { box-shadow: inset 0 0 0 2px #17644d; background: #e9f2ed; }
.sheet-stage { overflow: auto; max-width: 100%; margin: .5rem 0; }
.sheet-drawing { position: relative; width: min(100%, 720px); margin: 0 auto; }
.sheet-stage.is-enlarged .sheet-drawing,
.sheet-stage.is-enlarged svg { width: max(145%, 640px); max-width: none; }
.sheet-stage canvas { display: block; width: 100%; height: auto; background: white; cursor: crosshair; }
.sheet-stage canvas.freehand { touch-action: none; }
.sheet-cursor { position: absolute; display: none; pointer-events: none; width: 12px; height: 12px; transform: translate(-50%, -50%); border: 2px solid #17644d; border-radius: 50%; box-shadow: 0 0 0 1px white; }
.sheet-drawing canvas:focus-visible + .sheet-cursor { display: block; }
.ghost-color-r84 [data-sheet-current] { stroke: #17644d; stroke-width: 6px; stroke-dasharray: 7 4; }
.ghost-color-r84-layout[hidden] { display: none; }
.ghost-numbered-card .ghost-color-online-link { font-weight: 650; }
@media (max-width: 600px) {
  .sheet-drawing { width: 100%; }
  .sheet-picker-list { padding-inline: .65rem; }
  .sheet-picker > summary { padding-inline: .65rem; }
  .sheet-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-tools .sheet-commands { margin: .5rem 0; }
  .sheet-tools .sheet-commands input { width: min(8rem, 100%); }
  .sheet-tools details { margin: .3rem 0; }
}
