/* ==========================================================================
   NEXA-PING design system — base
   Tokens, reset, icons, typography and the primitives every page is built from.
   ========================================================================== */

/* ---- tokens -------------------------------------------------------------- */

:root {
	color-scheme: light;
	--font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* surfaces: an airy blue-grey ground, white panels, faint lines between them */
	--bg: #f4f7fc;
	--surface: #ffffff;
	--surface-2: #f6f8fc;
	--surface-3: #eef2f9;
	--surface-4: #e1e8f3;
	--line: #e9eef6;
	--line-2: #d6dfee;

	/* ink */
	--ink: #0f172a;
	--ink-2: #334155;
	--ink-3: #64748b;
	--ink-4: #94a3b8;
	/* the thumb of a scrollbar: the ink of quiet text, see-through */
	--scroll-thumb: color-mix(in srgb, var(--ink-4) 65%, transparent);

	/* accent: a sure blue that lightens into sky; set per theme colour under [data-accent] */
	--accent: #2f7cf6;
	--accent-2: #3cc8ff;
	--accent-ink: color-mix(in srgb, var(--accent) 78%, #0f172a);
	--accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
	--accent-soft-2: color-mix(in srgb, var(--accent) 19%, var(--surface));
	--accent-ring: color-mix(in srgb, var(--accent) 22%, transparent);
	--accent-shadow: color-mix(in srgb, var(--accent) 36%, transparent);
	--glow-1: color-mix(in srgb, var(--accent) 20%, transparent);
	--glow-2: color-mix(in srgb, var(--accent-2) 22%, transparent);
	--glow-3: rgba(151, 113, 242, 0.14);
	/* the panel the home page opens with: a sky of the accent that clears towards its far corner,
	   a hairline and a rim of light on its edge, a shadow the colour of the accent */
	--hero-1: color-mix(in srgb, var(--accent) 15%, #f8fbff);
	--hero-2: color-mix(in srgb, var(--accent) 7%, #fafcff);
	--hero-3: color-mix(in srgb, var(--accent) 2%, #ffffff);
	--hero-line: color-mix(in srgb, var(--accent) 16%, #ffffff);
	--hero-rim: rgba(255, 255, 255, 0.9);
	--sh-hero: 0 1px 2px rgba(15, 23, 42, 0.04), 0 22px 44px -22px color-mix(in srgb, var(--accent) 40%, transparent);

	/* semantic */
	--ok: #12b76a;
	--ok-soft: #e7f8f0;
	--warn: #f79009;
	--warn-soft: #fef3dd;
	--bad: #f04438;
	--bad-soft: #feeceb;
	--info: #2e90fa;
	--info-soft: #e8f2ff;

	/* radii, shadows, motion */
	--r-xs: 8px;
	--r-sm: 12px;
	--r-md: 16px;
	--r-lg: 20px;
	--r-xl: 26px;
	--r-pill: 999px;
	--sh-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.1);
	--sh-2: 0 2px 6px rgba(15, 23, 42, 0.05), 0 18px 40px -16px rgba(15, 23, 42, 0.18);
	--sh-3: 0 10px 20px -8px rgba(15, 23, 42, 0.12), 0 36px 80px -24px rgba(15, 23, 42, 0.3);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--wrap: 1400px;
	--gutter: 24px;
	--header-h: 64px;
	--skeleton: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
}

[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0e1220;
	--surface: #161c2e;
	--surface-2: #1b2236;
	--surface-3: #222b43;
	--surface-4: #2d3853;
	--line: #242d45;
	--line-2: #36425f;
	--ink: #eef2fa;
	--ink-2: #c6cfdc;
	--ink-3: #93a0b8;
	--ink-4: #67748e;
	--accent-ink: color-mix(in srgb, var(--accent-2) 72%, #ffffff);
	--ok: #34d399;
	--ok-soft: rgba(52, 211, 153, 0.14);
	--warn: #fdb022;
	--warn-soft: rgba(253, 176, 34, 0.14);
	--bad: #ff6b6b;
	--bad-soft: rgba(255, 107, 107, 0.14);
	--info: #5ab4f5;
	--info-soft: rgba(90, 180, 245, 0.14);
	--sh-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
	--sh-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.5);
	--sh-3: 0 10px 20px -8px rgba(0, 0, 0, 0.4), 0 36px 80px -24px rgba(0, 0, 0, 0.7);
	--glow-3: rgba(151, 113, 242, 0.1);
	--hero-1: color-mix(in srgb, var(--accent) 24%, #151c30);
	--hero-2: color-mix(in srgb, var(--accent) 12%, #131929);
	--hero-3: #111624;
	--hero-line: rgba(255, 255, 255, 0.07);
	--hero-rim: rgba(255, 255, 255, 0.09);
	--sh-hero: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.8);
	--skeleton: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

/* theme colours (外观设置): every one of them is a pair, the colour and the one it fades into */
[data-accent="blue"] { --accent: #5b5bf5; --accent-2: #8b7bff; }
[data-accent="teal"] { --accent: #0fb5a6; --accent-2: #2fd3c0; }
[data-accent="violet"] { --accent: #8b5cf6; --accent-2: #c084fc; }
[data-accent="orange"] { --accent: #f97316; --accent-2: #ffb340; }
[data-accent="rose"] { --accent: #f43f6b; --accent-2: #ff7a9c; }

/* ---- reset --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* the place of the scrollbar is kept on every page: going from a short page to a long one, nothing
   moves sideways by half the width of a scrollbar */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink-2); font: 400 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft-2); color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 0.94em; }
.text-danger { color: var(--bad) !important; }
.text-warning { color: var(--warn) !important; }
.text-primary { color: var(--accent-ink) !important; }
.color-success { color: var(--ok) !important; }
.color-warn { color: var(--warn) !important; }
.color-danger { color: var(--bad) !important; }

/* ---- scrollbars ----------------------------------------------------------- */

/* A round thumb on a track that shows nothing, with none of the arrows a browser puts on a bar
   of its own. Chromium and Safari take the WebKit rules, and must not be told scrollbar-width
   or scrollbar-color: told either, they drop the rules and draw their own bar again. Firefox
   takes those two. A thumb that would show only under the pointer cannot be had of a browser's
   own bar this way (Chromium keeps the bar it drew first), so where that is wanted the page
   draws the thumb itself — the list of the statistics card (tools.css, blocks.js). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) {
	* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}

/* ---- icons --------------------------------------------------------------- */

/* an icon is a line drawing the size of the text it stands in; a context that wants it larger
   says so by its font size */
.ic { width: 1.3em; height: 1.3em; flex: 0 0 auto; }
/* the mark of a family in the corner of a tool icon: "6" or "批" */
.ic-badge {
	position: absolute; right: -6px; bottom: -6px; display: block; min-width: 15px; height: 15px; padding: 0 3px;
	border: 2px solid var(--badge-edge, var(--surface)); border-radius: 5px; background: var(--mark, var(--accent));
	color: #fff; font-size: 9px; font-style: normal; font-weight: 800; line-height: 11px; text-align: center;
}

/* ---- layout -------------------------------------------------------------- */

.nx-main { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 72px; }
/* the home page ends with the block of the sponsors and the friend links: the room a page keeps
   under what it holds would only open a hole between that block and the footer, whose own margin
   is the gap there */
.nx-main--home { padding-top: 12px; padding-bottom: 0; }
.nx-stack { display: grid; gap: 18px; }
.nx-stack > * + * { margin-top: 18px; }

/* ---- typography ---------------------------------------------------------- */

.nx-eyebrow {
	display: inline-flex; align-items: center; justify-self: start; height: 26px; padding: 0 12px;
	border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.nx-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.nx-section-title { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.nx-muted { color: var(--ink-3); font-size: 13px; }

/* ---- cards --------------------------------------------------------------- */

.nx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.nx-card-pad { padding: 22px 24px; }
.nx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--line); }

/* the head of a tool page: the section it is under, its name, what it does, and at the right the
   switch of the address family */
.nx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.nx-page-head-text { min-width: 0; flex: 1 1 320px; display: grid; gap: 8px; }
.nx-page-lead { max-width: 780px; color: var(--ink-3); font-size: 14.5px; line-height: 1.7; }
.nx-page-head-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding-bottom: 4px; }

/* ---- buttons ------------------------------------------------------------- */

.nx-btn, .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
	border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2);
	font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
	transition: transform 0.16s var(--ease), box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, filter 0.2s;
}
.nx-btn:hover, .btn:hover { border-color: var(--ink-4); color: var(--ink); box-shadow: var(--sh-1); }
.nx-btn:active, .btn:active { transform: scale(0.97); }
.nx-btn:disabled, .btn:disabled { transform: none; opacity: 0.55; box-shadow: none; }
.nx-btn .ic, .btn .ic { font-size: 17px; }
.nx-btn-primary, .btn-primary {
	border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
	box-shadow: 0 8px 20px -8px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nx-btn-primary:hover, .btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -8px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25); filter: brightness(1.05); }
.nx-btn-primary:active, .btn-primary:active { filter: brightness(0.97); }
.nx-btn-soft { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.nx-btn-soft:hover { border-color: transparent; background: var(--accent-soft-2); color: var(--accent-ink); }
.nx-btn-sm { height: 33px; padding: 0 13px; font-size: 13px; gap: 6px; }
.nx-btn-sm .ic { font-size: 15px; }
.nx-btn-lg { height: 48px; padding: 0 26px; font-size: 15.5px; }
.nx-btn.is-loading, .btn.is-loading { pointer-events: none; }
.nx-btn.is-loading::before, .btn.is-loading::before { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nx-spin 0.7s linear infinite; }
.nx-icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 18px;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.16s var(--ease);
}
.nx-icon-btn:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.nx-icon-btn:active { transform: scale(0.94); }

/* ---- form controls ------------------------------------------------------- */

.nx-input, .form-control {
	width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-md);
	background: var(--surface); color: var(--ink); font-size: 14.5px; outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.nx-input::placeholder, .form-control::placeholder { color: var(--ink-4); }
.nx-input:hover, .form-control:hover { border-color: var(--ink-4); }
.nx-input:focus, .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: var(--surface); }
.nx-input:disabled, .form-control:disabled { background: var(--surface-3); color: var(--ink-3); }
.nx-input-sm { height: 36px; padding: 0 13px; font-size: 13.5px; }
textarea.nx-input, .kkyun-textarea {
	width: 100%; min-height: 140px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md);
	background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.7; outline: none; resize: vertical;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.kkyun-textarea:focus, .kkyun-clearable-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.nx-label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
select.form-control {
	appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.4 9.4 5.6 5.6 5.6-5.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}

/* toggle chips: the carrier checkboxes of the tool forms */
.nx-check {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 9px;
	border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2);
	font-size: 13.5px; font-weight: 500; cursor: pointer; user-select: none; white-space: nowrap;
	transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.nx-check:hover { border-color: var(--accent); }
.nx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nx-check .nx-check-box {
	display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 auto;
	border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); transition: all 0.18s var(--ease);
}
.nx-check .nx-check-box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0) translate(1px, -1px); transition: transform 0.18s var(--ease); }
.nx-check input:checked + .nx-check-box { border-color: var(--accent); background: var(--accent); }
.nx-check input:checked + .nx-check-box::after { transform: rotate(-45deg) scale(1) translate(1px, -1px); }
.nx-check:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nx-check:has(input:focus-visible) { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

/* radio pills */
.nx-radio {
	display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: var(--r-pill);
	color: var(--ink-2); font-size: 13.5px; cursor: pointer; transition: background 0.18s, color 0.18s;
}
.nx-radio:hover { background: var(--surface-3); }
.nx-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nx-radio::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--surface); transition: all 0.18s var(--ease); }
.nx-radio:has(input:checked) { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nx-radio:has(input:checked)::before { border: 5px solid var(--accent); }
.nx-radio:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }

/* segmented control: a trough with a pill in it for the chosen one */
.nx-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-3); max-width: 100%; }
.nx-seg > button, .nx-seg > a {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 15px; border: 0; border-radius: var(--r-pill);
	background: transparent; color: var(--ink-3); font-size: 13.5px; font-weight: 500; white-space: nowrap;
	transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.nx-seg > button:hover, .nx-seg > a:hover { color: var(--ink); }
.nx-seg > button.active, .nx-seg > a.active, .nx-seg > button[aria-pressed="true"], .nx-seg > .is-active { background: var(--surface); color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--line); }

/* pills and badges */
.nx-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ---- tables -------------------------------------------------------------- */

/* the box of a table: it scrolls only where the table does not fit it (the rules by width of the pages say when), so that where it fits the page scrolls and the head of the table sticks under the bar of the header */
.nx-table-wrap { position: relative; width: 100%; }
.kkyun-base-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.kkyun-base-table thead th {
	position: sticky; top: var(--header-h); z-index: 2; height: 46px; padding: 0 18px; text-align: left; white-space: nowrap;
	background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 600;
}
.kkyun-base-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.kkyun-base-table tbody tr:last-child td { border-bottom: 0; }
.kkyun-base-table tbody tr { transition: background 0.12s; }
.kkyun-base-table tbody tr:hover { background: var(--surface-2); }

/* ---- loading: skeleton, spinner, shimmer --------------------------------- */

.nx-skeleton { position: relative; overflow: hidden; border-radius: var(--r-xs); background: var(--surface-3); color: transparent !important; }
.nx-skeleton::after { content: ""; position: absolute; inset: 0; background: var(--skeleton); animation: nx-sheen 1.6s var(--ease) infinite; }
/* the rows of a table that is being filled: bars of varying width that take the place of the
   lines until the first of them is drawn (the rules of the pages hide them then) */
.nx-skel-rows { position: absolute; inset: 46px 0 0 0; z-index: 1; display: grid; padding: 4px 0; pointer-events: none; background: var(--surface); transition: opacity 0.45s var(--ease), visibility 0.45s; }
.nx-skel-row { display: grid; grid-template-columns: 2.2fr 1.6fr 2fr 0.7fr; gap: 24px; align-items: center; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.nx-skel-row i { display: block; height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; position: relative; }
.nx-skel-row i::after { content: ""; position: absolute; inset: 0; background: var(--skeleton); animation: nx-sheen 1.6s var(--ease) infinite; }
.nx-skel-row i:nth-child(2) { width: 82%; }
.nx-skel-row i:nth-child(3) { width: 64%; }
.nx-skel-row i:nth-child(4) { width: 70%; justify-self: end; }
.nx-table-wrap:has(tbody tr) .nx-skel-rows { opacity: 0; visibility: hidden; }

/* ---- motion -------------------------------------------------------------- */

/* backwards, not both: while the entry waits for its turn it is held where it begins, and once
   it is over the element is an ordinary box again — an animation kept at its end leaves its
   element a layer of its own, and what opens inside it (a list under an input, a tooltip) would
   be painted under the cards that follow */
.nx-reveal { animation: nx-rise 0.62s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes nx-rise { from { opacity: 0; transform: translateY(18px) scale(0.99); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-shimmer { to { transform: translateX(100%); } }
@keyframes nx-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes nx-pop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes nx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes nx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nx-stripe { to { background-position: 28px 0; } }
@keyframes nx-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(24px, -18px, 0) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
	:root { --gutter: 20px; }
}
@media (max-width: 640px) {
	:root { --gutter: 14px; }
	.nx-main { padding-top: 18px; padding-bottom: 48px; }
	.nx-btn, .btn { height: 44px; padding: 0 18px; font-size: 14.5px; }
	.nx-btn-lg { height: 48px; }
	.nx-input, .form-control { height: 46px; font-size: 16px; /* 16px keeps iOS from zooming on focus */ }
	.nx-card { border-radius: var(--r-md); }
	.nx-card-pad { padding: 16px; }
	.nx-page-head { margin-bottom: 16px; align-items: flex-start; }
	.nx-page-head-side { padding-bottom: 0; }
	.nx-title { font-size: 24px; }
	.kkyun-base-table thead th { padding: 0 14px; }
	.kkyun-base-table td { padding: 10px 14px; }
	.nx-skel-row { padding: 0 14px; gap: 14px; }
}

/* ---- the buttons of the administration, by the names its script gives them --- */

.admin-primary-button, .admin-compact-primary-button, .admin-table-approve { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -8px var(--accent-shadow); transition: transform 0.16s var(--ease), opacity 0.2s, filter 0.2s; }
.admin-primary-button:hover, .admin-compact-primary-button:hover, .admin-table-approve:hover { filter: brightness(1.05); transform: none; }
.admin-secondary-button, .admin-refresh-button, .admin-icon-button, .admin-copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all 0.18s; }
.admin-secondary-button:hover, .admin-refresh-button:hover, .admin-icon-button:hover, .admin-copy-button:hover { border-color: transparent; color: var(--accent-ink); background: var(--accent-soft); }
.admin-search-button, .admin-compact-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.18s; }
.admin-search-button:hover, .admin-compact-secondary-button:hover { background: var(--accent-soft-2); }
.admin-table-reject { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: all 0.18s; }
.admin-table-reject:hover { background: var(--bad-soft); color: var(--bad); }
.admin-clear-search-button { height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.admin-clear-search-button:hover { color: var(--accent-ink); }
.admin-compact-primary-button, .admin-compact-secondary-button, .admin-icon-button, .admin-copy-button, .admin-table-approve { height: 30px; padding: 0 11px; font-size: 12.5px; }
.admin-compact-primary-button .ic, .admin-compact-secondary-button .ic, .admin-icon-button .ic, .admin-copy-button .ic, .admin-search-button .ic, .admin-refresh-button .ic { font-size: 14px; }
button:disabled.admin-primary-button, button:disabled.admin-secondary-button, button:disabled.admin-search-button, button:disabled.admin-compact-primary-button, button:disabled.admin-compact-secondary-button, button:disabled.admin-refresh-button { opacity: 0.55; transform: none; }
