/* Sweet3D — Christmas bauble editor. Uses the main editor's layout and classes from /style.css
   (.editor, .float, .settings, .seg, .font-grid, .size-row, .swatches, .checkout…); only the extras live here. */

/* the name: the most important field, a bit bigger than the other inputs */
.orn-editor input.orn-name { height: 50px; font-size: 18px; font-weight: 600; }
.orn-editor input.orn-name[readonly] { opacity: .7; cursor: not-allowed; }

/* the 30 designs, as small pictures */
.orn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.orn-grid button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 6px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--panel2); color: var(--text);
  font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; min-width: 0; }
.orn-grid button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.orn-grid img { width: 48px; height: 48px; }
.orn-grid button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.orn-grid button:focus-visible, .font-grid button:focus-visible, .swatches button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* "shape" sliders sit in the card itself (not hidden in "more options") */
.orn-opts { padding-top: 0; }

/* the dock's "new bauble" is a link (starts a clean page) */
.dock a { border: none; background: transparent; padding: 10px 14px; border-radius: 13px; font-weight: 600; font-size: 13px;
  color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.dock a b { font-size: 16px; }

.ord-hint { margin: 0; }
/* the steps pill would run into the buttons on medium screens (long "save" label while editing) */
@media (max-width: 1240px) { .orn-editor .steps { display: none; } }
@media (max-width: 900px) {
  .orn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .orn-grid img { width: 42px; height: 42px; }
  .dock a { white-space: nowrap; padding: 9px 11px; font-size: 12px; }
}
@media (max-width: 420px) { .orn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
