/* Sweet3D — Christmas table set. Uses the main editor's layout and classes from /style.css
   (.editor, .float, .settings, .seg, .font-grid, .size-row, .swatches, .checkout…) and the keychains' picture
   buttons (.kc-styles, .kc-colors, copied here so this page doesn't depend on the keychain page). */

.mn-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mn-names { min-height: 118px; font-size: 16px; line-height: 1.45; }
.mn-names.over { border-color: var(--accent); }

/* the 3 kinds of piece, as small drawings */
.kc-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kc-styles button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--panel2); color: var(--text);
  font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; min-width: 0; }
.kc-styles button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.kc-styles svg { width: 64px; height: 34px; }
.kc-styles svg .b { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.kc-styles button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.kc-styles button:focus-visible, .font-grid button:focus-visible, .swatches button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.mn-decos { flex-wrap: wrap; }
.mn-decos button { flex: 1 1 30%; }
.mn-side { margin-top: 6px; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* two colour rows: pieces and name (preview only) */
.kc-colors { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.kc-colors .swatches { gap: 8px; }
.kc-colors .swatches button { width: 32px; height: 32px; }

.mn-warn { background: var(--panel); color: var(--accent); max-width: 420px; white-space: normal; }

/* the dock's "new table" 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; }
.ord-hint + .ord-hint { margin-top: 6px; }
@media (max-width: 1240px) { .mn-editor .steps { display: none; } }
@media (max-width: 900px) {
  .dock a { white-space: nowrap; padding: 9px 11px; font-size: 12px; }
  .dock button { white-space: nowrap; }
}
@media (max-width: 420px) {
  .kc-styles svg { width: 54px; }
  .kc-colors .swatches button { width: 28px; height: 28px; }
  .dock a span { display: none; }
}
