/* =====================================================================
   Name Combiner Pro — front-end styles  (v1.0.1 — clean UI pass)
   Every rule is scoped under .ncp-tool so it never fights your theme.
   Re-brand the whole plugin by overriding the CSS variables below.
   ===================================================================== */

.ncp-tool {
	/* ---- theme tokens (override these to re-brand) ----
	   Theme: classic professional blue → indigo with clean neutral grays. */
	--ncp-a: #2563EB;            /* accent 1 — blue (name one)     */
	--ncp-b: #4F46E5;            /* accent 2 — indigo (name two)   */
	--ncp-fusion: linear-gradient(135deg, var(--ncp-a) 0%, var(--ncp-b) 100%);
	--ncp-fusion-hover: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
	--ncp-ink: #1F2937;          /* main text                      */
	--ncp-muted: #6B7280;        /* secondary text                 */
	--ncp-panel: #FFFFFF;        /* main panel                     */
	--ncp-field: #F3F4F6;        /* input fill                     */
	--ncp-card: #FFFFFF;         /* result cards                   */
	--ncp-line: #E5E7EB;         /* hairline borders               */
	--ncp-line-hover: #D1D5DB;   /* neutral borders on hover       */
	--ncp-line-accent: #C7D2FE;  /* soft indigo border on hover    */
	--ncp-soft-a: #EFF6FF;       /* blue tint                      */
	--ncp-soft-b: #EEF2FF;       /* indigo tint                    */
	--ncp-hover: #F3F4F6;        /* neutral hover tint             */
	--ncp-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
	--ncp-shadow-hover: 0 2px 4px rgba(17, 24, 39, .05), 0 10px 28px rgba(17, 24, 39, .10);
	--ncp-radius: 16px;
	--ncp-radius-sm: 10px;
	--ncp-ease: cubic-bezier(.4, 0, .2, 1);

	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto 2.5em;
	color: var(--ncp-ink);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.ncp-tool *, .ncp-tool *::before, .ncp-tool *::after { box-sizing: border-box; }

.ncp-title { margin: 0 0 .3em; line-height: 1.2; letter-spacing: -.01em; }
.ncp-desc  { margin: 0 0 1.2em; color: var(--ncp-muted); max-width: 62ch; }

/* ------------------------------- panel ------------------------------- */
.ncp-panel {
	background: var(--ncp-panel);
	border: 1px solid var(--ncp-line);
	border-radius: var(--ncp-radius);
	padding: 26px 24px 24px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--ncp-shadow);
}
.ncp-panel::before {           /* fusion signature: slim two-tone seam */
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--ncp-fusion);
}

/* ------------------------------- inputs ------------------------------ */
.ncp-names { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
@media (min-width: 561px) {
	.ncp-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.ncp-name-row:nth-child(odd):last-child { grid-column: 1 / -1; }
}
.ncp-name-row { display: flex; align-items: center; gap: 10px; }
.ncp-name-row .ncp-dot {
	flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
	background: var(--ncp-b); opacity: .85;
}
.ncp-name-row:first-child .ncp-dot { background: var(--ncp-a); }

.ncp-tool input[type="text"],
.ncp-tool input[type="number"],
.ncp-tool select {
	width: 100%;
	font: inherit;
	font-size: 15.5px;
	color: var(--ncp-ink);
	background: var(--ncp-field);
	border: 1.5px solid transparent;
	border-radius: var(--ncp-radius-sm);
	padding: 10px 14px;
	margin: 0;
	min-height: 46px;
	transition: background .18s var(--ncp-ease), border-color .18s var(--ncp-ease), box-shadow .18s var(--ncp-ease);
	appearance: none;
	-webkit-appearance: none;
}
.ncp-tool select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}
.ncp-tool input[type="text"]:hover,
.ncp-tool input[type="number"]:hover,
.ncp-tool select:hover { background-color: #E9EBEF; }
.ncp-tool input:focus, .ncp-tool select:focus {
	outline: none;
	background-color: #fff;
	border-color: var(--ncp-b);
	box-shadow: 0 0 0 4px var(--ncp-soft-b);
}
.ncp-tool select:focus { background-color: #fff; }
.ncp-tool input::placeholder { color: #9CA3AF; }
.ncp-tool input[type="text"]:disabled { opacity: .45; cursor: not-allowed; }

.ncp-remove {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: #9CA3AF;
	width: 36px; height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 17px; line-height: 1;
	transition: background .15s var(--ncp-ease), color .15s var(--ncp-ease);
}
.ncp-remove:hover { color: var(--ncp-a); background: var(--ncp-soft-a); }

.ncp-addname {
	align-self: flex-start;
	background: transparent;
	border: 1.5px dashed var(--ncp-line-hover);
	color: var(--ncp-b);
	border-radius: 99px;
	padding: 8px 16px;
	font: inherit; font-size: 14px; font-weight: 600;
	cursor: pointer;
	transition: background .15s var(--ncp-ease), border-color .15s var(--ncp-ease);
}
.ncp-addname:hover,
.ncp-addname:focus {
	border-color: var(--ncp-a);
	background: var(--ncp-soft-a);
	color: var(--ncp-a);
}

/* ----------------------------- field grid ----------------------------- */
.ncp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px 12px;
	margin-bottom: 2px;
}
.ncp-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ncp-muted);
	margin: 0 0 6px;
}
.ncp-minmax { display: flex; gap: 8px; }

/* blend-ratio slider */
.ncp-ratio-wrap { grid-column: 1 / -1; }
.ncp-ratio-labels {
	display: flex; justify-content: space-between;
	font-size: 13.5px; font-weight: 600; margin-bottom: 2px;
}
.ncp-ratio-labels .ncp-r-a { color: var(--ncp-a); }
.ncp-ratio-labels .ncp-r-b { color: var(--ncp-b); }
.ncp-tool input[type="range"] {
	width: 100%;
	appearance: none; -webkit-appearance: none;
	height: 6px; border-radius: 99px;
	background: var(--ncp-fusion);
	cursor: pointer;
	margin: 8px 0 2px;
}
.ncp-tool input[type="range"]::-webkit-slider-thumb {
	appearance: none; -webkit-appearance: none;
	width: 22px; height: 22px; border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ncp-line-hover);
	box-shadow: 0 1px 4px rgba(17, 24, 39, .22);
	transition: transform .15s var(--ncp-ease), border-color .15s var(--ncp-ease);
}
.ncp-tool input[type="range"]::-moz-range-thumb {
	width: 22px; height: 22px; border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ncp-line-hover);
	box-shadow: 0 1px 4px rgba(17, 24, 39, .22);
	transition: transform .15s var(--ncp-ease), border-color .15s var(--ncp-ease);
}
.ncp-tool input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); border-color: var(--ncp-b); }
.ncp-tool input[type="range"]:hover::-moz-range-thumb { transform: scale(1.12); border-color: var(--ncp-b); }

/* ------------------------ advanced options ---------------------------- */
.ncp-adv {
	border: 1px solid var(--ncp-line);
	border-radius: var(--ncp-radius-sm);
	background: #FAFAFB;
	margin: 14px 0 0;
	transition: border-color .15s var(--ncp-ease);
}
.ncp-adv:hover { border-color: var(--ncp-line-hover); }
.ncp-adv > summary {
	cursor: pointer;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ncp-ink);
	list-style: none;
	user-select: none;
	display: flex; align-items: center; gap: 8px;
	border-radius: var(--ncp-radius-sm);
	transition: background .15s var(--ncp-ease);
}
.ncp-adv > summary:hover { background: var(--ncp-hover); color: var(--ncp-ink); }
.ncp-adv > summary::-webkit-details-marker { display: none; }
.ncp-adv > summary::before {
	content: "";
	width: 8px; height: 8px;
	border-right: 2px solid var(--ncp-muted);
	border-bottom: 2px solid var(--ncp-muted);
	transform: rotate(-45deg);
	transition: transform .18s var(--ncp-ease);
	flex: 0 0 auto;
}
.ncp-adv[open] > summary::before { transform: rotate(45deg); }
.ncp-adv[open] > summary { border-radius: var(--ncp-radius-sm) var(--ncp-radius-sm) 0 0; }
.ncp-adv-body { padding: 8px 16px 16px; }

/* toggles */
.ncp-check {
	display: flex; align-items: center; gap: 9px;
	font-size: 14px; font-weight: 500; color: var(--ncp-ink);
	cursor: pointer;
	padding: 4px 6px; margin-left: -6px;
	border-radius: 7px;
	transition: background .15s var(--ncp-ease);
}
.ncp-check:hover { background: var(--ncp-hover); color: var(--ncp-ink); }
.ncp-check input { width: 17px; height: 17px; accent-color: var(--ncp-b); cursor: pointer; margin: 0; flex: 0 0 auto; }

/* ------------------------------ buttons ------------------------------- */
.ncp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ncp-btn {
	font: inherit; font-size: 15.5px; font-weight: 700;
	border: 0;
	border-radius: 99px;
	padding: 12px 26px;
	min-height: 48px;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	transition: transform .15s var(--ncp-ease), box-shadow .15s var(--ncp-ease), background-color .15s var(--ncp-ease), border-color .15s var(--ncp-ease), filter .15s var(--ncp-ease);
	will-change: transform;
}
.ncp-btn-primary {
	background: var(--ncp-fusion);
	color: #fff;
	box-shadow: 0 2px 6px rgba(79, 70, 229, .28);
}
.ncp-btn-primary:hover,
.ncp-btn-primary:focus {
	background: var(--ncp-fusion-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(67, 56, 202, .35);
}
.ncp-btn-primary:active {
	background: var(--ncp-fusion-hover);
	color: #fff;
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(79, 70, 229, .28);
}
.ncp-btn-ghost {
	background: var(--ncp-panel);
	color: var(--ncp-ink);
	border: 1.5px solid var(--ncp-line);
}
.ncp-btn-ghost:hover,
.ncp-btn-ghost:focus {
	background: var(--ncp-hover);
	border-color: var(--ncp-line-hover);
	color: var(--ncp-ink);
}
.ncp-btn-ghost:active { background: var(--ncp-soft-b); color: var(--ncp-b); border-color: var(--ncp-line-accent); }
.ncp-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------ results ------------------------------- */
.ncp-results-head {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	justify-content: space-between;
	margin: 24px 0 12px;
}
.ncp-count { font-size: 13.5px; color: var(--ncp-muted); font-weight: 500; }
.ncp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.ncp-mini {
	font: inherit; font-size: 13.5px; font-weight: 600;
	background: transparent;
	border: 1.5px solid var(--ncp-line);
	color: var(--ncp-ink);
	border-radius: 99px;
	padding: 7px 14px;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s var(--ncp-ease), border-color .15s var(--ncp-ease), color .15s var(--ncp-ease);
}
.ncp-mini:hover,
.ncp-mini:focus {
	background: var(--ncp-soft-a);
	border-color: var(--ncp-line-accent);
	color: var(--ncp-a);
}
.ncp-mini:active { background: var(--ncp-soft-b); color: var(--ncp-b); }
.ncp-mini .ncp-badge {
	background: var(--ncp-fusion);
	color: #fff;
	border-radius: 99px;
	padding: 1px 7px;
	font-size: 11px;
	line-height: 1.5;
}

.ncp-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
	gap: 10px;
	margin: 0; padding: 0;
	list-style: none;
}
.ncp-result {
	background: var(--ncp-card);
	border: 1px solid var(--ncp-line);
	border-radius: var(--ncp-radius-sm);
	padding: 11px 12px;
	display: flex; align-items: center; gap: 4px;
	animation: ncpIn .3s var(--ncp-ease) both;
	transition: border-color .18s var(--ncp-ease), box-shadow .18s var(--ncp-ease), transform .18s var(--ncp-ease);
}
.ncp-result:hover {
	border-color: var(--ncp-line-accent);
	box-shadow: var(--ncp-shadow-hover);
	transform: translateY(-1px);
}
.ncp-result:hover .ncp-nm { color: var(--ncp-ink); }
.ncp-result .ncp-nm {
	flex: 1 1 auto;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: .01em;
	word-break: break-word;
	overflow-wrap: anywhere;
	padding-right: 4px;
}

/* icon buttons — quiet until you need them */
.ncp-ic {
	flex: 0 0 auto;
	background: none;
	border: 0;
	width: 32px; height: 32px;
	border-radius: 8px;
	cursor: pointer;
	color: var(--ncp-muted);
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0;
	transition: background .15s var(--ncp-ease), color .15s var(--ncp-ease), opacity .18s var(--ncp-ease), transform .15s var(--ncp-ease);
}
.ncp-ic:hover { background: var(--ncp-soft-b); color: var(--ncp-b); }
.ncp-ic:active { transform: scale(.92); }
.ncp-ic svg { width: 16px; height: 16px; display: block; }
.ncp-ic.ncp-starred { color: var(--ncp-a); }
.ncp-ic.ncp-starred:hover { background: var(--ncp-soft-a); color: var(--ncp-a); }
.ncp-ic.ncp-ok { color: #059669; }
.ncp-ic.ncp-ok:hover { background: #ECFDF5; color: #059669; }

/* On devices with a real pointer, actions fade in on hover for a calmer
   grid; a starred name always keeps its star visible. Touch screens and
   keyboard users always see every action. */
@media (hover: hover) and (pointer: fine) {
	.ncp-result .ncp-ic { opacity: 0; }
	.ncp-result:hover .ncp-ic,
	.ncp-result:focus-within .ncp-ic,
	.ncp-result .ncp-ic.ncp-starred,
	.ncp-result .ncp-ic.ncp-ok { opacity: 1; }
}

@keyframes ncpIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ncp-results .ncp-result:nth-child(-n+12) { animation-delay: calc(var(--i, 0) * 20ms); }

.ncp-empty {
	color: var(--ncp-muted);
	background: #FAFAFB;
	border: 1.5px dashed var(--ncp-line);
	border-radius: var(--ncp-radius-sm);
	padding: 30px 18px;
	text-align: center;
	font-size: 14.5px;
}
.ncp-note { font-size: 13px; color: var(--ncp-muted); margin: 10px 0 0; }
.ncp-error { color: #DC2626; font-size: 14px; font-weight: 600; margin: 10px 0 0; }

/* ---------------------------- saved drawer ---------------------------- */
.ncp-saved {
	margin-top: 16px;
	border: 1px solid var(--ncp-line);
	border-radius: var(--ncp-radius-sm);
	background: #FAFAFB;
	padding: 16px;
}
.ncp-saved h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .02em; }
.ncp-saved ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ncp-saved li {
	display: flex; align-items: center; gap: 4px;
	padding: 7px 6px;
	border-radius: 8px;
	transition: background .15s var(--ncp-ease);
}
.ncp-saved li:hover { background: var(--ncp-hover); }
.ncp-saved li + li { border-top: 1px solid var(--ncp-line); }
.ncp-saved .ncp-nm { flex: 1 1 auto; font-weight: 600; font-size: 15px; padding-right: 4px; }

/* ------------------------------- toast -------------------------------- */
.ncp-toast {
	position: fixed;
	left: 50%; bottom: 28px;
	transform: translateX(-50%) translateY(8px);
	background: #1F2937;
	color: #fff;
	font-size: 14px; font-weight: 600;
	padding: 11px 20px;
	border-radius: 99px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, .28);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s var(--ncp-ease), transform .2s var(--ncp-ease);
	z-index: 99999;
	max-width: min(92vw, 480px);
	text-align: center;
}
.ncp-toast.ncp-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------- small screens --------------------------- */
@media (max-width: 560px) {
	.ncp-panel { padding: 18px 14px 16px; }
	.ncp-actions .ncp-btn { flex: 1 1 auto; }
	.ncp-results { grid-template-columns: 1fr 1fr; gap: 8px; }
	.ncp-result { padding: 10px; }
	.ncp-result .ncp-nm { font-size: 15px; }
	.ncp-results-head { justify-content: flex-start; }
}
@media (max-width: 400px) {
	.ncp-results { grid-template-columns: 1fr; }
}

/* --------------------------- accessibility ---------------------------- */
.ncp-tool :focus-visible { outline: 3px solid var(--ncp-b); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
	.ncp-tool *, .ncp-toast { animation: none !important; transition: none !important; }
	.ncp-btn:hover, .ncp-result:hover { transform: none; }
}

/* ----------------------- love compatibility -------------------------- */
.ncp-compat {
	margin: 16px 0 0;
	padding: 13px 18px;
	border-radius: var(--ncp-radius-sm);
	background: linear-gradient(120deg, var(--ncp-soft-a), var(--ncp-soft-b));
	border: 1px solid var(--ncp-line);
	font-size: 15px;
	font-weight: 700;
	display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
	animation: ncpIn .3s var(--ncp-ease) both;
}
.ncp-compat strong {
	font-size: 19px;
	background: var(--ncp-fusion);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ncp-compat .ncp-compat-names {
	font-weight: 500;
	color: var(--ncp-muted);
	font-size: 13.5px;
	margin-left: auto;
}


/* ============================= hero layout =============================
   Compact variant for hero sections: [name_combiner layout="hero"].
   All features unchanged — only spacing and sizes are tightened.       */
.ncp-tool.ncp-hero { max-width: 760px; font-size: 15px; }
.ncp-hero .ncp-title { text-align: center; }
.ncp-hero .ncp-desc { text-align: center; margin-left: auto; margin-right: auto; }
.ncp-hero .ncp-panel {
	padding: 20px 18px 18px;
	border-radius: 18px;
	box-shadow: 0 2px 6px rgba(17, 24, 39, .06), 0 16px 44px rgba(17, 24, 39, .14);
}
.ncp-hero .ncp-names { margin-bottom: 10px; }
.ncp-hero input[type="text"],
.ncp-hero input[type="number"],
.ncp-hero select { min-height: 42px; padding: 8px 12px; font-size: 14.5px; }
.ncp-hero select { padding-right: 32px; background-position: right 12px center; }
.ncp-hero .ncp-grid { gap: 10px; margin-top: 8px; }
.ncp-hero .ncp-field label { font-size: 11px; margin-bottom: 4px; }
.ncp-hero .ncp-ratio-labels { font-size: 12.5px; }
.ncp-hero .ncp-adv { margin-top: 10px; }
.ncp-hero .ncp-adv > summary { padding: 10px 14px; font-size: 13px; }
.ncp-hero .ncp-adv-body { padding: 6px 12px 12px; }
.ncp-hero .ncp-actions { margin-top: 12px; gap: 8px; }
.ncp-hero .ncp-btn { min-height: 44px; padding: 10px 22px; font-size: 14.5px; }
.ncp-hero .ncp-addname { padding: 6px 14px; font-size: 13px; }
.ncp-hero .ncp-note { font-size: 12px; margin-top: 8px; }
.ncp-hero .ncp-compat { margin-top: 12px; padding: 10px 14px; font-size: 14px; }
.ncp-hero .ncp-results-head { margin: 16px 0 10px; }
.ncp-hero .ncp-mini { font-size: 12.5px; padding: 6px 12px; }
.ncp-hero .ncp-results { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ncp-hero .ncp-result { padding: 8px 10px; }
.ncp-hero .ncp-result .ncp-nm { font-size: 14.5px; }
.ncp-hero .ncp-ic { width: 29px; height: 29px; }
.ncp-hero .ncp-ic svg { width: 15px; height: 15px; }
.ncp-hero .ncp-empty { padding: 18px 14px; font-size: 13.5px; }
.ncp-hero .ncp-saved { padding: 12px; }
@media (max-width: 560px) {
	.ncp-hero .ncp-panel { padding: 16px 12px 14px; }
	.ncp-hero .ncp-actions .ncp-btn { flex: 1 1 auto; }
}


/* Hero: pure input card until the first generation — no helper text,
   no toolbar, no placeholder. Everything appears once results exist. */
.ncp-hero .ncp-note { display: none; }
.ncp-hero:not(.ncp-has-results) .ncp-results-head,
.ncp-hero:not(.ncp-has-results) .ncp-empty { display: none; }
.ncp-hero .ncp-actions { justify-content: center; }
.ncp-hero .ncp-actions .ncp-btn-primary { min-width: 220px; }
@media (min-width: 561px) {
	.ncp-hero .ncp-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}


/* --------------------------- user direction --------------------------- */
.ncp-direction {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ncp-ink);
	margin: 0 0 10px;
}
.ncp-dir-dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--ncp-fusion);
	flex: 0 0 auto;
}
.ncp-hero .ncp-direction { justify-content: center; font-size: 13.5px; margin-bottom: 8px; }

/* ------------------------- mobile optimization ------------------------ */
.ncp-btn, .ncp-mini, .ncp-ic, .ncp-addname, .ncp-remove, .ncp-check {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 560px) {
	/* 16px inputs stop iOS Safari from zooming in on focus */
	.ncp-tool input[type="text"],
	.ncp-tool input[type="number"],
	.ncp-tool select,
	.ncp-hero input[type="text"],
	.ncp-hero input[type="number"],
	.ncp-hero select { font-size: 16px; min-height: 48px; }
	/* comfortable thumb targets */
	.ncp-ic { width: 38px; height: 38px; }
	.ncp-ic svg { width: 18px; height: 18px; }
	.ncp-hero .ncp-ic { width: 36px; height: 36px; }
	.ncp-mini { padding: 9px 14px; font-size: 13.5px; }
	.ncp-remove { width: 40px; height: 40px; }
	.ncp-adv > summary { min-height: 46px; }
	.ncp-tool input[type="range"] { height: 8px; }
	.ncp-tool input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
	.ncp-tool input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; }
	/* option fields two-up to use width wisely */
	.ncp-grid { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
	.ncp-minmax input { min-width: 0; }
	/* toast clears iPhone home indicator */
	.ncp-toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
	.ncp-direction { font-size: 14.5px; }
}
@media (max-width: 419px) {
	.ncp-grid { grid-template-columns: 1fr; }
}


/* ---------------- hero: ultra-compact spacing ----------------
   Minimal gaps so the whole tool fits inside a hero section.   */
.ncp-hero .ncp-panel { padding: 14px 14px 12px; }
.ncp-hero .ncp-direction { margin-bottom: 6px; font-size: 13px; }
.ncp-hero .ncp-names { gap: 8px; margin-bottom: 6px; }
.ncp-hero .ncp-name-row { gap: 8px; }
.ncp-hero input[type="text"],
.ncp-hero input[type="number"],
.ncp-hero select { min-height: 40px; padding: 7px 11px; font-size: 14px; }
.ncp-hero .ncp-addname { padding: 4px 12px; font-size: 12.5px; }
.ncp-hero .ncp-grid { gap: 8px; margin-top: 6px; }
.ncp-hero .ncp-field label { font-size: 10.5px; margin-bottom: 3px; letter-spacing: .04em; }
.ncp-hero .ncp-ratio-labels { font-size: 12px; margin-bottom: 0; }
.ncp-hero input[type="range"] { margin: 5px 0 0; }
.ncp-hero .ncp-adv { margin-top: 8px; }
.ncp-hero .ncp-adv > summary { padding: 8px 12px; font-size: 12.5px; }
.ncp-hero .ncp-adv-body { padding: 4px 10px 10px; }
.ncp-hero .ncp-actions { margin-top: 10px; gap: 6px; }
.ncp-hero .ncp-btn { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.ncp-hero .ncp-compat { margin-top: 10px; padding: 8px 12px; font-size: 13.5px; }
.ncp-hero .ncp-compat strong { font-size: 16px; }
.ncp-hero .ncp-results-head { margin: 12px 0 8px; gap: 6px; }
.ncp-hero .ncp-mini { padding: 5px 11px; font-size: 12px; }
.ncp-hero .ncp-count { font-size: 12px; }
.ncp-hero .ncp-results { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.ncp-hero .ncp-result { padding: 7px 9px; }
.ncp-hero .ncp-result .ncp-nm { font-size: 14px; }
.ncp-hero .ncp-error { margin: 8px 0 0; font-size: 13px; }
@media (max-width: 560px) {
	.ncp-hero .ncp-panel { padding: 12px 10px 10px; }
	.ncp-hero input[type="text"],
	.ncp-hero input[type="number"],
	.ncp-hero select { font-size: 16px; min-height: 44px; }
	.ncp-hero .ncp-btn { min-height: 44px; }
}


/* -------------- global compact spacing (all layouts) --------------
   Tighter gaps between every text line and block; features unchanged. */
.ncp-tool { margin-bottom: 1.5em; }
.ncp-panel { padding: 18px 18px 16px; }
.ncp-direction { margin-bottom: 6px; }
.ncp-names { gap: 8px; margin-bottom: 8px; }
.ncp-grid { gap: 10px; margin-top: 8px; }
.ncp-field label { margin-bottom: 4px; }
.ncp-adv { margin-top: 8px; }
.ncp-adv > summary { padding: 10px 14px; }
.ncp-adv-body { padding: 6px 14px 12px; }
.ncp-actions { margin-top: 10px; }
.ncp-note { margin-top: 6px; }
.ncp-error { margin-top: 6px; }
.ncp-compat { margin-top: 10px; }
.ncp-results-head { margin: 12px 0 8px; }
.ncp-results { gap: 8px; }
.ncp-empty {
	padding: 12px 12px;
	font-size: 13.5px;
	margin: 0;
}
.ncp-saved { margin-top: 10px; padding: 12px; }
.ncp-hero .ncp-empty { padding: 10px; font-size: 13px; }
@media (max-width: 560px) {
	.ncp-panel { padding: 14px 12px 12px; }
}


/* -------- results section: minimal spacing (all layouts) -------- */
.ncp-results-head { margin: 8px 0 6px; }
.ncp-results { gap: 6px; }
.ncp-empty { padding: 9px 10px; font-size: 13px; }
.ncp-compat { margin-top: 8px; padding: 8px 12px; }
.ncp-saved { margin-top: 8px; padding: 10px; }
.ncp-hero .ncp-results-head { margin: 8px 0 6px; }
.ncp-hero .ncp-results { gap: 5px; }

/* Direction line sits flush against the name inputs */
.ncp-direction { margin: 0 0 3px; }
.ncp-hero .ncp-direction { margin: 0 0 3px; }
