/* Countdown maker */
.maker-hero { max-width: 1080px; margin: 0 auto; padding: 40px 20px 24px; }
.maker-hero .lead { max-width: 640px; }

.maker {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 360px 1fr; gap: 0;
}
.maker-controls {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 24px;
}
.maker-preview {
  border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 24px;
  background: repeating-conic-gradient(rgba(255,255,255,0.025) 0% 25%, transparent 0% 50%) 0 0 / 22px 22px;
}
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.control-group { display: flex; flex-direction: column; gap: 14px; }
.ctrl-divider { height: 1px; background: var(--border); }

.color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-input-wrap {
  display: flex; align-items: center; gap: 8px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 10px; min-height: 44px;
}
.color-input-wrap:focus-within { border-color: var(--accent); }
.color-input-wrap input[type=color] { width: 22px; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; flex-shrink: 0; }
.color-input-wrap input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input-wrap input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.color-input-wrap .color-hex { border: 0; background: none; min-height: 0; padding: 8px 0; font-size: 13px; }
.color-input-wrap .color-hex:focus { background: none; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 7px; cursor: pointer; border: 2px solid transparent; transition: transform .1s; padding: 0; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: var(--text); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: 0; }

.preview-label { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); align-self: flex-start; }
#previewWidget { width: 100%; max-width: 560px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

.export-bar { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.export-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.snippet-wrap { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.snippet-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  font-family: var(--mono); font-size: 11px; color: var(--text-dim); line-height: 1.6;
  white-space: pre; overflow: auto; max-height: 180px;
}
.snippet-note { font-size: 13px; color: var(--text-dim); }

.maker-content { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

@media (max-width: 860px) {
  .maker { grid-template-columns: 1fr; padding: 0; }
  .maker-preview {
    order: -1; position: sticky; top: 0; z-index: 10; padding: 12px 16px; gap: 0;
    border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: var(--bg);
  }
  .maker-preview .preview-label, .maker-preview .export-bar, .maker-preview .snippet-wrap { display: none; }
  #previewWidget { box-shadow: none; border-radius: 14px; }
  #previewWidget > div { padding: 18px 12px !important; }
  #previewWidget [data-num] { font-size: clamp(26px, 8vw, 40px) !important; }
  .maker-controls { border-radius: 0; border-left: 0; border-right: 0; }
  .mobile-export { display: flex !important; }
}
.mobile-export { display: none; flex-direction: column; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
