/* Courthology Core: product UI.
   Uses CSS custom properties so any theme can restyle it; the Courthology
   theme sets these to the brand system. Sensible fallbacks keep it usable alone. */

.cth {
	--cth-ink: var(--c-ink, #101b32);
	--cth-text: var(--c-text, #1d2840);
	--cth-muted: var(--c-muted, #5b6b82);
	--cth-accent: var(--c-accent, #3565e8);
	--cth-accent-ink: var(--c-accent-ink, #2f5fe0);
	--cth-surface: var(--c-surface, #ffffff);
	--cth-surface-2: var(--c-surface-2, #f7f7f4);
	--cth-line: var(--c-line, rgba(16, 27, 50, 0.12));
	--cth-good: #127a52;
	--cth-good-bg: #e6f5ee;
	--cth-warn: #8a5a00;
	--cth-warn-bg: #fdf3dc;
	--cth-bad: #b42335;
	--cth-bad-bg: #fbe9eb;
	--cth-info: #2747b5;
	--cth-info-bg: #e8eeff;
	--cth-radius: 16px;
	--cth-radius-sm: 10px;
	--cth-mono: var(--f-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
	--cth-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	color: var(--cth-text);
	font-size: 1rem;
}
.cth *, .cth *::before, .cth *::after { box-sizing: border-box; }
.cth .screen-reader-text, .cth-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.cth-mono, .cth-tld { font-family: var(--cth-mono); }
.cth-icon { flex: none; vertical-align: -0.2em; }

/* ---------- Buttons ---------- */
.cth-btn {
	--b: var(--cth-accent);
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 46px; padding: 0.7em 1.25em; border-radius: 999px; border: 1px solid transparent;
	background: var(--b); color: #fff; font: inherit; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
	text-decoration: none; cursor: pointer; transition: transform 0.25s var(--cth-ease), box-shadow 0.25s var(--cth-ease), background 0.2s;
	box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -10px color-mix(in srgb, var(--b) 70%, transparent);
}
.cth-btn:hover { transform: translateY(-1px); background: var(--cth-accent-ink); color: #fff; }
.cth-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--cth-accent) 45%, transparent); outline-offset: 3px; }
.cth-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.cth-btn--ghost { background: transparent; color: var(--cth-ink); border-color: var(--cth-line); box-shadow: none; }
.cth-btn--ghost:hover { background: var(--cth-surface-2); color: var(--cth-ink); }
.cth-btn--quiet { background: none; color: var(--cth-muted); border: 0; box-shadow: none; padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; }
.cth-btn--quiet:hover { background: none; color: var(--cth-bad); }

/* ---------- Pills & notices ---------- */
.cth-pill {
	display: inline-flex; align-items: center; gap: 0.4em; padding: 0.28em 0.7em; border-radius: 999px;
	font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap;
	background: var(--cth-surface-2); color: var(--cth-muted); border: 1px solid var(--cth-line);
}
.cth-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.cth-pill--good { background: var(--cth-good-bg); color: var(--cth-good); border-color: transparent; }
.cth-pill--warn { background: var(--cth-warn-bg); color: var(--cth-warn); border-color: transparent; }
.cth-pill--bad { background: var(--cth-bad-bg); color: var(--cth-bad); border-color: transparent; }
.cth-pill--info { background: var(--cth-info-bg); color: var(--cth-info); border-color: transparent; }

.cth-notice { margin: 1rem 0; padding: 0.9rem 1.1rem; border-radius: var(--cth-radius-sm); background: var(--cth-surface-2); border: 1px solid var(--cth-line); font-size: 0.95rem; }
.cth-notice p { margin: 0.25em 0; }
.cth-notice--good { background: var(--cth-good-bg); border-color: color-mix(in srgb, var(--cth-good) 25%, transparent); color: #0b4a33; }
.cth-notice--warn { background: var(--cth-warn-bg); border-color: color-mix(in srgb, var(--cth-warn) 25%, transparent); color: #5c3c00; }
.cth-notice--bad { background: var(--cth-bad-bg); border-color: color-mix(in srgb, var(--cth-bad) 25%, transparent); color: #7d1424; }
.cth-notice--info { background: var(--cth-info-bg); border-color: color-mix(in srgb, var(--cth-info) 20%, transparent); color: #1b2f79; }
.cth-notice:focus { outline: 3px solid var(--cth-accent); outline-offset: 2px; }
.cth-placeholder { display: inline-block; padding: 0.1em 0.45em; border-radius: 6px; background: var(--cth-warn-bg); color: var(--cth-warn); border: 1px dashed color-mix(in srgb, var(--cth-warn) 40%, transparent); font-size: 0.92em; }

/* ---------- Search ---------- */
.cth-search { position: relative; width: 100%; }
.cth-search__label { display: block; margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cth-muted); }
.cth-search__bar {
	position: relative; display: flex; align-items: center; gap: 0.25rem; padding: 6px; border-radius: 18px;
	background: var(--cth-surface); border: 1px solid var(--cth-line);
	box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(16, 27, 50, 0.35);
	transition: box-shadow 0.35s var(--cth-ease), border-color 0.35s var(--cth-ease);
}
.cth-search__bar:focus-within { border-color: color-mix(in srgb, var(--cth-accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cth-accent) 18%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--cth-accent) 60%, transparent); }
.cth-search__scheme { padding-left: 0.9rem; font-family: var(--cth-mono); font-size: 0.95rem; color: var(--cth-muted); user-select: none; }
.cth-search__input {
	flex: 1; min-width: 0; height: 52px; padding: 0 0.5rem 0 0.15rem; border: 0; background: transparent; color: var(--cth-ink);
	font: inherit; font-size: 1.08rem; letter-spacing: -0.01em; outline: none; -webkit-appearance: none; appearance: none;
}
.cth-search__input::placeholder { color: color-mix(in srgb, var(--cth-muted) 85%, transparent); }
.cth-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cth-search__submit {
	display: inline-flex; align-items: center; gap: 0.5rem; height: 52px; padding: 0 1.35rem; border: 0; border-radius: 13px; cursor: pointer;
	color: #fff; font: inherit; font-weight: 600; font-size: 0.98rem; white-space: nowrap;
	background: linear-gradient(180deg, color-mix(in srgb, var(--cth-accent) 88%, #fff) 0%, var(--cth-accent) 55%, var(--cth-accent-ink) 100%);
	box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 24px -10px var(--cth-accent);
	transition: transform 0.25s var(--cth-ease), filter 0.25s;
}
.cth-search__submit:hover { filter: brightness(1.06); }
.cth-search__submit:active { transform: scale(0.98); }
.cth-search__submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--cth-accent) 50%, #fff); outline-offset: 2px; }
.cth-search__submit .cth-icon { transition: transform 0.3s var(--cth-ease); }
.cth-search__submit:hover .cth-icon { transform: translateX(3px); }
.cth-search.is-loading .cth-search__submit { pointer-events: none; opacity: 0.85; }

.cth-search__preview[hidden] { display: none; }
.cth-search__preview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin: 0.9rem 0 0; font-size: 0.95rem; }
.cth-search__preview-k { color: var(--cth-muted); font-size: 0.85rem; }
.cth-search__preview-v { font-family: var(--cth-mono); color: var(--cth-ink); font-weight: 500; display: inline-flex; align-items: baseline; overflow: hidden; }
.cth-search__preview-v [data-cth-preview-tld] { color: var(--cth-accent); display: inline-block; }
.cth-search__preview-v .is-in { animation: cth-tld-in 0.45s var(--cth-ease); }
.cth-search__caret { display: inline-block; width: 2px; height: 1.05em; margin: 0 1px; background: var(--cth-accent); align-self: center; animation: cth-blink 1.1s steps(1) infinite; }
.cth-search__hint { margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--cth-muted); }
.cth-tld { display: inline-block; padding: 0.15em 0.55em; border-radius: 7px; border: 1px solid var(--cth-line); background: color-mix(in srgb, var(--cth-surface) 70%, transparent); font-size: 0.8rem; color: var(--cth-ink); }

@keyframes cth-blink { 50% { opacity: 0; } }
@keyframes cth-tld-in { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Results ---------- */
.cth-results { margin-top: 2rem; }
.cth-results:empty { display: none; }
.cth-results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cth-results__title { margin: 0; font-size: 0.95rem; color: var(--cth-muted); }
.cth-results__title strong { color: var(--cth-ink); font-family: var(--cth-mono); font-weight: 600; }
.cth-results__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.cth-results__alts-title { margin: 2rem 0 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cth-muted); }

.cth-result {
	--tone: var(--cth-line);
	position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name cta" "sum cta" "meta cta";
	column-gap: 1.5rem; row-gap: 0.35rem; align-items: center;
	padding: 1.15rem 1.35rem 1.15rem 1.55rem; border-radius: var(--cth-radius); background: var(--cth-surface); border: 1px solid var(--cth-line);
	transition: border-color 0.25s, transform 0.35s var(--cth-ease), box-shadow 0.35s var(--cth-ease);
	animation: cth-rise 0.6s var(--cth-ease) both; animation-delay: calc(var(--i, 0) * 55ms);
	overflow: hidden;
}
.cth-result::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone); }
.cth-result:hover { border-color: color-mix(in srgb, var(--tone) 55%, var(--cth-line)); box-shadow: 0 18px 40px -28px rgba(16,27,50,0.45); transform: translateY(-1px); }
.cth-result--sponsored, .cth-result--subdomain { --tone: var(--cth-good); }
.cth-result--approval { --tone: var(--cth-accent); }
.cth-result--premium { --tone: #c88a00; }
.cth-result--registered { --tone: var(--cth-bad); }
.cth-result--registered .cth-result__label, .cth-result--unsupported .cth-result__label { color: var(--cth-muted); }
.cth-result__name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.cth-result__domain { font-family: var(--cth-mono); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; color: var(--cth-ink); word-break: break-all; }
.cth-result__tld { color: var(--cth-accent); }
.cth-result__summary { grid-area: sum; margin: 0; font-size: 0.9rem; color: var(--cth-muted); max-width: 62ch; }
.cth-result__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; }
.cth-result__price { font-weight: 600; color: var(--cth-ink); }
.cth-result__renewal { color: var(--cth-muted); }
.cth-result__verified { color: var(--cth-good); display: inline-flex; align-items: center; gap: 0.3em; }
.cth-result__cta { grid-area: cta; }
.cth-result--skeleton { display: grid; gap: 0.6rem; grid-template-columns: 1fr; grid-template-areas: none; min-height: 100px; }
.cth-result--skeleton::before { display: none; }
.cth-result--skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--cth-surface-2) 0%, color-mix(in srgb, var(--cth-accent) 10%, var(--cth-surface-2)) 50%, var(--cth-surface-2) 100%); background-size: 200% 100%; animation: cth-shimmer 1.3s linear infinite; }
.cth-result--skeleton span:nth-child(1) { width: 38%; height: 20px; }
.cth-result--skeleton span:nth-child(2) { width: 72%; }
.cth-result--skeleton span:nth-child(3) { width: 26%; }
.cth-dots { display: inline-flex; gap: 3px; margin-left: 6px; }
.cth-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: cth-dot 1s infinite; }
.cth-dots i:nth-child(2) { animation-delay: 0.15s; }
.cth-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes cth-rise { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes cth-shimmer { to { background-position: -200% 0; } }
@keyframes cth-dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (max-width: 640px) {
	.cth-search__scheme { display: none; }
	.cth-search__bar { flex-wrap: wrap; padding: 6px; }
	.cth-search__input { flex-basis: 100%; height: 50px; padding-left: 0.75rem; }
	.cth-search__submit { width: 100%; justify-content: center; }
	.cth-result { grid-template-columns: 1fr; grid-template-areas: "name" "sum" "meta" "cta"; }
	.cth-result__cta { justify-self: start; margin-top: 0.5rem; }
}

/* ---------- Panels, forms ---------- */
.cth-panel { padding: clamp(1.25rem, 3vw, 2rem); border-radius: calc(var(--cth-radius) + 4px); background: var(--cth-surface); border: 1px solid var(--cth-line); box-shadow: 0 30px 60px -48px rgba(16,27,50,0.45); }
.cth-panel__title { margin: 0 0 0.75rem; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--cth-ink); }
.cth-form { display: grid; gap: 1.15rem; }
.cth-grid-2 { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cth-field { display: grid; gap: 0.4rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.cth-field > label, .cth-field > legend, .cth-choices > legend { font-weight: 600; font-size: 0.92rem; color: var(--cth-ink); padding: 0; }
.cth-req { color: var(--cth-bad); }
.cth-field input[type=text], .cth-field input[type=email], .cth-field input[type=password], .cth-field input[type=number], .cth-field input[type=date], .cth-field select, .cth-field textarea,
.cth-auth .login-username input, .cth-auth .login-password input {
	width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cth-ink) 18%, transparent);
	background: var(--cth-surface); color: var(--cth-ink); font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.cth-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.cth-field input:focus, .cth-field select:focus, .cth-field textarea:focus, .cth-auth input:focus { outline: none; border-color: var(--cth-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cth-accent) 18%, transparent); }
.cth-field [aria-invalid="true"] { border-color: var(--cth-bad) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cth-bad) 14%, transparent) !important; }
.cth-field__help { margin: 0; font-size: 0.85rem; color: var(--cth-muted); }
.cth-field__error { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--cth-bad); }
.cth-field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.cth-field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cth-accent); }
.cth-field--check label { font-weight: 400; font-size: 0.92rem; color: var(--cth-text); }
.cth-field--check .cth-field__error { grid-column: 2; }
.cth-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.25rem; }
.cth-form__status { margin: 0; font-size: 0.9rem; color: var(--cth-muted); }

.cth-choices__grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-top: 0.25rem; }
.cth-choice { position: relative; display: block; cursor: pointer; }
.cth-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cth-choice span { display: flex; align-items: center; gap: 0.65rem; height: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cth-ink) 14%, transparent); background: var(--cth-surface); font-size: 0.92rem; line-height: 1.35; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.cth-choice span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--cth-ink) 35%, transparent); transition: all 0.2s; }
.cth-choice input[type=checkbox] + span::before { border-radius: 5px; }
.cth-choice input:checked + span { border-color: var(--cth-accent); background: color-mix(in srgb, var(--cth-accent) 7%, var(--cth-surface)); box-shadow: 0 0 0 1px var(--cth-accent) inset; }
.cth-choice input:checked + span::before { border-color: var(--cth-accent); background: var(--cth-accent); box-shadow: 0 0 0 3px var(--cth-surface) inset; }
.cth-choice input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cth-accent) 25%, transparent); }

.cth-success { display: grid; justify-items: center; gap: 0.75rem; padding: 2rem 1rem; text-align: center; outline: none; }
.cth-success__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--cth-good-bg); position: relative; animation: cth-pop 0.5s var(--cth-ease); }
.cth-success__mark::after { content: ""; position: absolute; left: 20px; top: 14px; width: 12px; height: 22px; border: solid var(--cth-good); border-width: 0 3px 3px 0; transform: rotate(45deg); animation: cth-check 0.4s 0.2s var(--cth-ease) both; }
@keyframes cth-pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes cth-check { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* ---------- Application ---------- */
.cth-apply__layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .cth-apply__layout { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); } }
.cth-step { border: 0; padding: 0; margin: 0; display: grid; gap: 1.15rem; min-width: 0; }
.cth-step + .cth-step { padding-top: 1.75rem; border-top: 1px solid var(--cth-line); }
.is-stepped .cth-step + .cth-step { padding-top: 0; border-top: 0; }
.cth-step__title { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; color: var(--cth-ink); padding: 0; margin-bottom: 0.25rem; outline: none; }
.cth-steps {
	--progress: 0;
	position: relative; list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; counter-reset: s;
}
.cth-steps::before, .cth-steps::after { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--cth-line); }
.cth-steps::after { background: var(--cth-accent); right: auto; width: calc(75% * var(--progress)); transition: width 0.6s var(--cth-ease); }
.cth-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--cth-muted); text-align: center; }
.cth-steps li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cth-surface); border: 1.5px solid var(--cth-line); font-family: var(--cth-mono); font-size: 0.8rem; transition: all 0.35s var(--cth-ease); }
.cth-steps li.is-current { color: var(--cth-ink); }
.cth-steps li.is-current span { border-color: var(--cth-accent); color: var(--cth-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cth-accent) 14%, transparent); }
.cth-steps li.is-done span { background: var(--cth-accent); border-color: var(--cth-accent); color: #fff; }
.cth-apply__actions { justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--cth-line); }
.cth-apply__actions [data-cth-save] { margin-right: auto; }
.cth-review { padding: 1rem 1.25rem; border-radius: 12px; background: var(--cth-surface-2); }

.cth-aside { position: sticky; top: 110px; padding: 1.75rem; border-radius: calc(var(--cth-radius) + 4px); background: var(--cth-ink); color: #dfe7f3; }
.cth-aside__title { margin: 0 0 1.25rem; font-size: 1.05rem; color: #fff; letter-spacing: -0.01em; }
.cth-aside dl { margin: 0; display: grid; gap: 1.1rem; }
.cth-aside dt { font-weight: 600; color: #fff; font-size: 0.92rem; margin-bottom: 0.25rem; }
.cth-aside dd { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #b6c7dc; }
@media (max-width: 999px) { .cth-aside { position: static; } }

/* ---------- Auth ---------- */
.cth-auth__intro { font-size: 1.05rem; color: var(--cth-text); max-width: 60ch; margin: 0 0 1.5rem; }
.cth-auth__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cth-auth form p { margin: 0 0 1rem; }
.cth-auth label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--cth-ink); }
.cth-auth .login-remember label { display: inline-flex; gap: 0.5rem; font-weight: 400; }
.cth-auth .login-submit input, .cth-auth #wp-submit { min-height: 46px; padding: 0.7em 1.4em; border-radius: 999px; border: 0; background: var(--cth-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.cth-auth__small { font-size: 0.88rem; color: var(--cth-muted); }

/* ---------- Dashboard ---------- */
.cth-dash { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .cth-dash { grid-template-columns: 250px minmax(0, 1fr); } }
.cth-dash__nav { align-self: start; padding: 1.25rem; border-radius: calc(var(--cth-radius) + 4px); background: var(--cth-surface); border: 1px solid var(--cth-line); }
@media (min-width: 960px) { .cth-dash__nav { position: sticky; top: 110px; } }
.cth-dash__hello { margin: 0.25rem 0.5rem 1rem; font-weight: 650; color: var(--cth-ink); }
.cth-dash__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cth-dash__nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.75rem; border-radius: 10px; color: var(--cth-text); text-decoration: none; font-size: 0.94rem; transition: background 0.2s, color 0.2s; }
.cth-dash__nav a:hover { background: var(--cth-surface-2); }
.cth-dash__nav a[aria-current] { background: color-mix(in srgb, var(--cth-accent) 10%, var(--cth-surface)); color: var(--cth-accent-ink); font-weight: 600; }
.cth-dash__signout { display: inline-block; margin: 1rem 0.75rem 0; font-size: 0.88rem; color: var(--cth-muted); }
@media (max-width: 959px) {
	.cth-dash__nav ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.35rem; padding-bottom: 0.25rem; }
	.cth-dash__nav li { scroll-snap-align: start; flex: none; }
	.cth-dash__nav a span { white-space: nowrap; }
}
.cth-dash__main { min-width: 0; display: grid; gap: 1.5rem; align-content: start; }
.cth-dash__main > * { margin: 0; }
.cth-dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cth-dash__title { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.03em; color: var(--cth-ink); }
.cth-dash__sub { margin: 0.5rem 0 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cth-muted); }
.cth-lead { font-size: 1.05rem; color: var(--cth-muted); }
.cth-back a { color: var(--cth-muted); text-decoration: none; font-size: 0.9rem; }
.cth-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cth-stat { padding: 1.25rem 1.4rem; border-radius: var(--cth-radius); background: var(--cth-surface); border: 1px solid var(--cth-line); display: grid; gap: 0.25rem; }
.cth-stat__n { font-size: 2.2rem; font-weight: 650; letter-spacing: -0.04em; color: var(--cth-ink); font-variant-numeric: tabular-nums; }
.cth-stat__l { font-size: 0.86rem; color: var(--cth-muted); }
.cth-empty { display: grid; justify-items: start; gap: 0.5rem; padding: 2rem; border-radius: calc(var(--cth-radius) + 4px); border: 1px dashed color-mix(in srgb, var(--cth-ink) 20%, transparent); background: var(--cth-surface); }
.cth-empty .cth-icon { width: 36px; height: 36px; color: var(--cth-accent); }
.cth-empty h3 { margin: 0; color: var(--cth-ink); }
.cth-empty p { margin: 0; color: var(--cth-muted); max-width: 55ch; }
.cth-table-wrap { overflow-x: auto; border-radius: var(--cth-radius); border: 1px solid var(--cth-line); background: var(--cth-surface); }
.cth-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.cth-table th { text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cth-muted); padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--cth-line); background: var(--cth-surface-2); }
.cth-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--cth-line); vertical-align: middle; }
.cth-table tr:last-child td { border-bottom: 0; }
.cth-table a { color: var(--cth-accent-ink); font-weight: 600; }
.cth-detail-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.cth-dl { margin: 0; display: grid; gap: 0.9rem; }
.cth-dl > div { display: grid; gap: 0.15rem; }
.cth-dl dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cth-muted); }
.cth-dl dd { margin: 0; color: var(--cth-ink); overflow-wrap: anywhere; }
.cth-small { font-size: 0.88rem; color: var(--cth-muted); }
.cth-legend { margin-top: 1rem; }
.cth-legend summary { cursor: pointer; font-weight: 600; color: var(--cth-accent-ink); }
.cth-legend dl { display: grid; gap: 0.75rem; margin-top: 1rem; }
.cth-legend dl > div { display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 1rem; align-items: center; }
.cth-legend dd { margin: 0; font-size: 0.9rem; color: var(--cth-muted); }

.cth-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
.cth-progress li { position: relative; display: grid; justify-items: center; gap: 0.5rem; text-align: center; font-size: 0.78rem; color: var(--cth-muted); }
.cth-progress li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: var(--cth-line); z-index: 0; }
.cth-progress li:first-child::before { display: none; }
.cth-progress li.is-done::before, .cth-progress li.is-current::before { background: var(--cth-accent); }
.cth-progress__dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--cth-surface); border: 2px solid var(--cth-line); }
.cth-progress li.is-done .cth-progress__dot { background: var(--cth-accent); border-color: var(--cth-accent); }
.cth-progress li.is-current .cth-progress__dot { border-color: var(--cth-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cth-accent) 18%, transparent); animation: cth-pulse 2.2s infinite; }
.cth-progress li.is-current { color: var(--cth-ink); font-weight: 600; }
@keyframes cth-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--cth-accent) 6%, transparent); } }
@media (max-width: 560px) { .cth-progress__label { font-size: 0.68rem; } }

.cth-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--cth-line); display: grid; gap: 1rem; }
.cth-timeline li { position: relative; }
.cth-timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--cth-accent); box-shadow: 0 0 0 3px var(--cth-surface); }
.cth-timeline time { font-size: 0.78rem; color: var(--cth-muted); }
.cth-timeline p { margin: 0.15rem 0 0; font-size: 0.92rem; }

.cth-domain-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cth-domain-card a { display: grid; gap: 0.6rem; justify-items: start; padding: 1.35rem; border-radius: var(--cth-radius); background: var(--cth-surface); border: 1px solid var(--cth-line); text-decoration: none; color: inherit; transition: transform 0.3s var(--cth-ease), box-shadow 0.3s; }
.cth-domain-card a:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(16,27,50,0.5); }
.cth-domain-card__name { font-size: 1.1rem; font-weight: 600; color: var(--cth-ink); word-break: break-all; }
.cth-domain-card__exp { font-size: 0.85rem; color: var(--cth-muted); }
.cth-dns-guide { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1rem 0; }
.cth-dns-guide > div { padding: 1rem; border-radius: 12px; background: var(--cth-surface-2); }
.cth-dns-guide h4 { margin: 0 0 0.25rem; font-family: var(--cth-mono); color: var(--cth-accent-ink); }
.cth-dns-guide p { margin: 0; font-size: 0.86rem; color: var(--cth-muted); }
.cth-code-list { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.cth-link-list { padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.cth-inline-form { margin-top: 1rem; }

/* ---------- Info blocks ---------- */
.cth-ext { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cth-ext__group { padding: 1.35rem; border-radius: var(--cth-radius); background: var(--cth-surface); border: 1px solid var(--cth-line); }
.cth-ext__title { margin: 0 0 0.85rem; font-size: 0.95rem; color: var(--cth-ink); }
.cth-ext__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cth-ext__group--eligible .cth-tld { border-color: color-mix(in srgb, var(--cth-good) 35%, transparent); color: var(--cth-good); }
.cth-ext__group--approval .cth-tld { border-color: color-mix(in srgb, var(--cth-accent) 35%, transparent); color: var(--cth-accent-ink); }
.cth-org { margin: 0; display: grid; gap: 0.9rem; }
.cth-org__row { display: grid; gap: 0.2rem; }
.cth-org dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cth-muted); }
.cth-org dd { margin: 0; color: var(--cth-ink); }
.cth-interest { scroll-margin-top: 120px; }

@media (prefers-reduced-motion: reduce) {
	.cth *, .cth *::before, .cth *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.cth-search__caret { animation: none; }
}
