/* Sweet3D — keychain 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 */
.kc-editor input.orn-name { height: 50px; font-size: 18px; font-weight: 600; }
.kc-editor input.orn-name[readonly] { opacity: .7; cursor: not-allowed; }

/* the 3 styles, 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: 30px; }
.kc-styles svg .b { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.kc-styles svg .n { fill: var(--accent); }
.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; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* two colour rows: base 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; }

.kc-warn { background: var(--panel); color: var(--accent); }

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