.style-native-select { display: none; }

.style-studio { display: grid; gap: 20px; }
.style-group { padding: 18px; border: 1px solid #4c4656; background: linear-gradient(145deg, #1b1822, #121016); box-shadow: 5px 5px #08070b; }
.style-group-page { border-top: 4px solid var(--yellow); }
.style-group-buttons { border-top: 4px solid var(--red); }
.style-group-head { margin-bottom: 16px; }
.style-group-head > span { color: var(--yellow); font: 700 11px DM Mono, monospace; letter-spacing: .1em; }
.style-group-buttons .style-group-head > span { color: #ff8b82; }
.style-group-head h3 { margin: 5px 0 4px; font: 700 25px Oswald, sans-serif; text-transform: uppercase; }
.style-group-head p { margin: 0; color: #c9c1d0; font-size: 13px; line-height: 1.45; }

.style-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.style-card { position: relative; min-height: 88px; padding: 12px; color: #fff; text-align: left; border: 2px solid #4c4656; background: #0d0c10; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.style-card:hover { border-color: var(--yellow); }
.style-card:active { transform: scale(.97); }
.style-card b { display: block; font: 700 18px Oswald, sans-serif; text-transform: uppercase; }
.style-card span { display: block; margin-top: 5px; color: #e1d9e9; font-size: 11px; }
.style-card.active { border-color: var(--yellow); box-shadow: 4px 4px var(--red); transform: translate(-2px, -2px); }
.style-card.active::after { content: '✓'; position: absolute; right: 8px; top: 7px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--yellow); color: #111; font: 700 13px sans-serif; }

.theme-neon { background: linear-gradient(135deg, #16102d, #41215e); }.theme-kawaii { background: linear-gradient(135deg, #6d315a, #c86491); }.theme-gamer { background: linear-gradient(135deg, #102d38, #157765); }.theme-metal { background: linear-gradient(135deg, #232326, #635257); }.theme-music { background: linear-gradient(135deg, #2b164a, #9b376a); }.theme-emerald { background: linear-gradient(135deg, #0a342d, #18725f); }

/* Button choices resemble link buttons, while page choices remain color swatches. */
.button-picker .style-card { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.button-picker .style-card b { font-size: 16px; }.button-picker .style-card span { margin: 0; text-align: right; }
.button-persona { background: linear-gradient(135deg, #402032, #7c293d); }.button-rounded { border-radius: 16px; background: #343044; }.button-minimal { background: #101014; border-width: 0 0 2px; }.button-pill { border-radius: 999px; background: #4f3a76; }.button-outline { background: transparent; border-color: #fff; }.button-glass { background: linear-gradient(135deg, #ffffff2b, #7e73b82b); }.button-neon { background: #18251a; border-color: #8dff6c; }.button-arcade { background: #192656; border-color: #ffe16b; }

@media (max-width: 700px) {
  .style-studio { gap: 14px; }
  .style-group { margin: 0 -2px; padding: 16px 12px; }
  .style-group-head h3 { font-size: 23px; }
  .style-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .style-card { min-height: 82px; padding: 10px; }
  .button-picker .style-card { min-height: 68px; display: block; }
  .button-picker .style-card span { margin-top: 4px; text-align: left; }
}

/* The iframe keeps a real mobile viewport; the shell scales it to fit the editor. */
.preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.preview-meta .preview-badge { margin: 0; }
.preview-device-label { color: #bdb6c4; font: 700 10px DM Mono, monospace; letter-spacing: .06em; text-transform: uppercase; }
.phone-preview-shell { width: 304px; height: 562px; max-width: 100%; margin: 0 auto; overflow: hidden; border: 7px solid #09080c; border-radius: 26px; background: #000; box-shadow: 0 0 0 1px #5c5567, 7px 8px #08070b; }
.phone-preview-shell .preview-frame { display: block; width: 390px; height: 720px; margin: 0; border: 0; transform: scale(.78); transform-origin: top left; background: #000; }
@media (max-width: 700px) { .phone-preview-shell { width: 304px; height: 562px; } .phone-preview-shell .preview-frame { width: 390px; height: 720px; } }

/* Link editor: compact actions, clear behaviour controls, and visible reordering. */
.link-editor { position: relative; padding: 16px; border: 1px solid #4c4656; background: linear-gradient(145deg, #1a1720, #100f14); box-shadow: 5px 5px #08070b; }
.link-editor-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; }
.link-editor-head > div:first-child > span { color: var(--yellow); font: 700 10px DM Mono, monospace; letter-spacing: .12em; }
.link-editor-head h3 { margin: 3px 0 0; font: 700 21px Oswald, sans-serif; text-transform: uppercase; }
.link-actions { display: flex; gap: 6px; }
.link-action { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #5c5567; background: #27232e; color: #fff; font: 700 20px/1 Oswald, sans-serif; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.link-action:hover:not(:disabled) { background: var(--yellow); color: #111; transform: translate(-1px, -1px); }
.link-action:disabled { opacity: .3; cursor: not-allowed; }
.link-action-delete { border-color: #a93434; color: #ff9b94; }.link-action-delete:hover:not(:disabled) { background: var(--red); color: #fff; }
.link-fields { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }.link-fields label { margin: 0; }
.link-options { margin: 14px 0; padding: 11px; border: 1px solid #393641; background: #0d0c10; }
.link-options-head { display: flex; align-items: center; justify-content: space-between; }.link-options-head b { font: 700 14px Oswald, sans-serif; text-transform: uppercase; }
.option-help { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--yellow); background: transparent; color: var(--yellow); font: 700 14px DM Mono, monospace; cursor: pointer; }
.link-options-help { margin: 9px 0 3px; color: #c9c1d0; font-size: 12px; line-height: 1.5; }.link-options-help b { color: var(--yellow); }
.link-editor .link-flags { margin-top: 8px; }.link-editor-moved { animation: link-reordered .38s cubic-bezier(.2,.8,.2,1); border-color: var(--yellow); }
.link-editor-moved.moved-up { --move-y: 18px; }.link-editor-moved.moved-down { --move-y: -18px; }
@keyframes link-reordered { 0% { transform: translateY(var(--move-y)); box-shadow: 0 0 0 var(--yellow); } 55% { box-shadow: 0 0 0 4px #ffe16b66; } 100% { transform: translateY(0); box-shadow: 5px 5px #08070b; } }
@media (max-width: 700px) { .link-editor { padding: 14px 12px; }.link-fields { grid-template-columns: 1fr; gap: 8px; }.link-editor .link-flags { display: grid; grid-template-columns: 1fr; gap: 5px; }.link-actions { gap: 5px; }.link-action { width: 34px; height: 34px; } }
