/* Campaign Naming Generator — cn- prefixed. Matches the suite's panel/segmented look. */
.cn-app { display: flex; flex-direction: column; gap: 16px; }
/* global section{padding:30px 0} would otherwise crush the panels — restore tool padding */
.cn-app .panel { padding: 22px; }

/* hero */
.cn-hero { display: flex; align-items: center; gap: 22px; }
.cn-hero-left { flex: 1; min-width: 0; }
.cn-hero-left h2 { margin: 0 0 2px; font-size: 22px; font-weight: 800; }
.cn-hero-sub { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #475569; }
.cn-hero-sub .accent { color: #0a8f54; }
.cn-hero-note { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #5b6577; }
.cn-hero-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.cn-hero-badges span { font-size: 11.5px; font-weight: 700; color: #3a7; background: #e9f7f0; border: 1px solid #cdeede; border-radius: 20px; padding: 4px 10px; }
.cn-hero-badges i { margin-right: 5px; }
.cn-hero-art { width: 92px; height: 92px; flex: none; border-radius: 22px; display: grid; place-items: center; font-size: 40px; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 12px 30px -8px rgba(5, 150, 105, .5); }
@media (max-width: 720px) { .cn-hero-art { display: none; } }

/* layout: convention | values+output */
.cn-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 880px) { .cn-main { grid-template-columns: 1fr; } }
.cn-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.cn-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 800; color: #27314a; }
.cn-h i { color: #10b981; }
.cn-sub-hint, .cn-hint { font-weight: 600; font-size: 11px; color: #94a3b8; }

/* presets */
.cn-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.cn-preset { font-size: 12px; font-weight: 700; color: #334155; background: #f4f6fa; border: 1px solid #e3e8f0; border-radius: 9px; padding: 7px 11px; cursor: pointer; transition: .12s; }
.cn-preset:hover { border-color: #10b981; color: #059669; background: #ecfdf5; }
.cn-preset i { margin-right: 6px; color: #10b981; }

/* segmented options */
.cn-opts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.cn-opt { font-size: 12px; font-weight: 700; color: #64748b; display: flex; flex-direction: column; gap: 6px; }
.cn-seg { display: inline-flex; background: #eef1f6; border-radius: 9px; padding: 3px; gap: 2px; }
.cn-seg-btn { border: 0; background: none; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #64748b; border-radius: 7px; cursor: pointer; min-width: 34px; }
.cn-seg-btn.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(20, 30, 60, .14); }

/* field list */
.cn-fields-h { font-size: 13px; font-weight: 800; color: #27314a; margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.cn-field-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid #eef1f6; border-radius: 9px; margin-bottom: 6px; background: #fbfcfe; }
.cn-field-row.on { border-color: #cdeede; background: #f3fbf7; }
.cn-field-label { flex: 1; font-size: 13px; font-weight: 700; color: #334155; }
.cn-field-row:not(.on) .cn-field-label { color: #94a3b8; font-weight: 600; }
.cn-check { position: relative; width: 34px; height: 20px; flex: none; cursor: pointer; }
.cn-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cn-check span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 20px; transition: .15s; }
.cn-check span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cn-check input:checked + span { background: #10b981; }
.cn-check input:checked + span::after { transform: translateX(14px); }
.cn-field-move { display: flex; gap: 3px; }
.cn-move { width: 24px; height: 24px; border: 1px solid #e3e8f0; background: #fff; border-radius: 7px; color: #94a3b8; cursor: pointer; display: grid; place-items: center; font-size: 11px; }
.cn-move:hover:not([disabled]) { color: #059669; border-color: #cdeede; }
.cn-move[disabled] { opacity: .35; cursor: default; }

/* value inputs */
.cn-value-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.cn-value-label { width: 118px; flex: none; font-size: 12.5px; font-weight: 700; color: #475569; text-align: right; }
.cn-value-input { flex: 1; min-width: 0; padding: 9px 11px; font-size: 13.5px; border: 1px solid #d7dae6; border-radius: 9px; }
.cn-value-input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.cn-empty { font-size: 13px; color: #94a3b8; margin: 6px 2px; }
@media (max-width: 520px) { .cn-value-row { flex-direction: column; align-items: stretch; gap: 4px; } .cn-value-label { width: auto; text-align: left; } }

/* output */
.cn-out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cn-out-head .cn-h { margin: 0; }
.cn-count { font-weight: 700; font-size: 12px; color: #94a3b8; }
.cn-out-actions { display: flex; gap: 8px; }
.cn-btn { font-size: 12.5px; font-weight: 700; color: #334155; background: #f4f6fa; border: 1px solid #e3e8f0; border-radius: 9px; padding: 8px 13px; cursor: pointer; white-space: nowrap; }
.cn-btn:hover:not([disabled]) { border-color: #cbd5e1; }
.cn-btn[disabled] { opacity: .5; cursor: default; }
.cn-btn-primary { background: #10b981; color: #fff; border-color: #10b981; }
.cn-btn-primary:hover:not([disabled]) { background: #059669; border-color: #059669; }
.cn-free-pill { background: rgba(255, 255, 255, .25); border-radius: 20px; padding: 1px 7px; margin-left: 4px; font-size: 10.5px; }

.cn-single { display: flex; align-items: center; gap: 10px; background: #f3fbf7; border: 1px solid #cdeede; border-radius: 11px; padding: 14px 16px; }
.cn-name-big { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; color: #0f172a; word-break: break-all; flex: 1; }
.cn-copy-one { width: 34px; height: 34px; flex: none; border: 1px solid #cdeede; background: #fff; border-radius: 9px; color: #059669; cursor: pointer; }
.cn-copy-one:hover { background: #ecfdf5; }

.cn-list { max-height: 340px; overflow: auto; border: 1px solid #eef1f6; border-radius: 11px; }
.cn-name-row { padding: 7px 12px; border-bottom: 1px solid #f3f4f9; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #1f2937; word-break: break-all; }
.cn-name-row:last-child { border-bottom: 0; }
.cn-name-row code { font: inherit; }
.cn-more { padding: 9px 12px; font-size: 12px; font-weight: 700; color: #64748b; background: #f8fafc; }
.cn-more.cn-warn { color: #b45309; background: #fffaf0; }

.cn-plan-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; font-size: 12px; color: #64748b; line-height: 1.5; }
.cn-plan-note i { color: #10b981; margin-top: 2px; }
.cn-plan-link { border: 0; background: none; color: #059669; font-weight: 800; cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }

.cn-saverow { margin-top: 10px; }
.cn-save { font-size: 12px; font-weight: 700; color: #475569; background: #fff; border: 1px solid #e3e8f0; border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.cn-save:hover { border-color: #cdeede; color: #059669; }
.cn-save i { margin-right: 6px; }
