/* Nightdrive: the live free tools (c99-tools plugin) in the approved tool page design (21 Nov 2026).
   The plugin draws the forms and results; this file gives them the look of the draft's example results
   (css/tools.css: .t-tool, .t-card, .tr-*). The plugin's own tools.css is not loaded under Nightdrive. */

.t-tool.t-live,
.t-live-result,
.t-app {
	/* the plugin's colour names, mapped to the light card */
	--panel: #FFFFFF;
	--panel-2: #F2F3F8;
	--panel-ink: #05060A;
	--panel-mute: #4A4F66;
	--panel-rule: #DDE0EA;
	--blue-l: #1B3BD8;
	--mono: var(--font-sans);
	color: #05060A;
}

/* ---------- the form (white panel in the dark hero, or full width for the two app tools) ---------- */
.t-live .tool-form { display: grid; gap: 16px; margin: 0; max-width: none; }
.t-live .tool-row, .t-app .tool-row { display: grid; gap: 7px; }
.t-live .tool-row--split, .t-app .tool-row--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.t-live .tool-row--split > div, .t-app .tool-row--split > div { display: grid; gap: 7px; }
.t-live .tool-label, .t-app .tool-label { font: 700 15px/1.3 var(--font-sans); color: #05060A; letter-spacing: 0; text-transform: none; }
.t-live .tool-label span, .t-app .tool-label span { font-weight: 500; color: #4A4F66; }
.t-live .tool-label .count, .t-app .tool-label .count { float: right; font-weight: 600; color: #1B3BD8; }
.t-live input[type=text], .t-live input[type=email], .t-live select, .t-live textarea,
.t-app input[type=text], .t-app input[type=email], .t-app input[type=url], .t-app input[type=tel], .t-app select, .t-app textarea {
	width: 100%; box-sizing: border-box; height: 52px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #C9CDDA;
	background: #FFFFFF; font: 16px var(--font-sans); color: #05060A; outline: none;
}
.t-live textarea, .t-app textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.t-live input:focus, .t-live select:focus, .t-live textarea:focus,
.t-app input:focus, .t-app select:focus, .t-app textarea:focus { border-color: #1B3BD8; box-shadow: 0 0 0 4px rgba(27, 59, 216, .18); }
.t-live input::placeholder, .t-app input::placeholder, .t-live textarea::placeholder, .t-app textarea::placeholder { color: #8A90A4; }
.t-live select, .t-app select { appearance: none; -webkit-appearance: none; padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, #4A4F66 50%), linear-gradient(135deg, #4A4F66 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.t-live .hp, .t-app .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.t-live .tool-actions, .t-app .tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.t-live .tool-note { font-size: 14px; line-height: 1.45; color: #4A4F66; max-width: 40ch; }
.t-live .tool-add, .t-app .tool-add { justify-self: start; padding: 4px 0; border: 0; background: none; font: 700 15px var(--font-sans); color: #1B3BD8; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t-live .listing-inputs { display: grid; gap: 10px; }
.t-live .btn[disabled], .t-app .btn[disabled], .t-live-result .btn[disabled] { opacity: .55; cursor: progress; }
.tool-status { margin: 12px 0 0; min-height: 1.4em; font: 600 15px/1.4 var(--font-sans); color: #4A4F66; }
.tool-status:empty { display: none; }
.tool-status.err { color: #C2185B; }
.tool-status.busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 999px; background: #FF2E93; vertical-align: 1px; animation: nd-pulse 1s ease-in-out infinite; }
@keyframes nd-pulse { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }

/* ---------- the result card ---------- */
.t-live-result[hidden], #toolExample[hidden] { display: none; }
.t-live-result + .t-card { margin-top: 24px; }
.t-live-result .res-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px 36px; align-items: center; }
.t-live-result .score { display: grid; place-items: center; align-content: center; width: 168px; height: 168px; border-radius: 999px;
	background: radial-gradient(closest-side, #FFFFFF 78%, transparent 79%), conic-gradient(#1B3BD8 calc(var(--p, 100) * 1%), #EEF0F8 0); text-align: center; }
.t-live-result .score__k { max-width: 112px; font: 700 12px/1.2 var(--font-sans); color: #4A4F66; }
.t-live-result .score__v { white-space: nowrap; font: 900 44px/1 var(--font-sans); letter-spacing: -.05em; color: #05060A; font-variant-numeric: tabular-nums; }
.t-live-result .score__v small { font-size: 14px; font-weight: 700; letter-spacing: 0; color: #4A4F66; margin-left: 2px; }
.t-live-result .score__g { max-width: 112px; font: 700 12px/1.2 var(--font-sans); color: #1B3BD8; }
.t-live-result .res-meta { min-width: 0; }
.t-live-result .res-meta h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.t-live-result .res-meta p { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: #33374A; max-width: 62ch; overflow-wrap: anywhere; }
.t-live-result .cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.t-live-result .cats div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #F2F3F8; }
.t-live-result .cats b { font: 900 24px/1.1 var(--font-sans); letter-spacing: -.03em; color: #1B3BD8; }
.t-live-result .cats span { font-size: 14px; color: #4A4F66; }
.t-live-result .counts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 15px; color: #4A4F66; }
.t-live-result .counts b { color: #05060A; }

.t-live-result .res-section { margin-top: 34px; }
.t-live-result .res-section > p { font-size: 16px; line-height: 1.55; color: #33374A; max-width: 62ch; }
.t-live-result .res-section h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 12px; font: 800 20px/1.2 var(--font-sans); letter-spacing: -.02em; text-transform: none; color: #05060A; }
.t-live-result .res-section h3 small { font: 600 14px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: #4A4F66; }

.t-live-result .pill, .t-app .pill { align-self: start; justify-self: start; display: inline-block; height: auto; min-height: 0; padding: 4px 10px; /* height: the homepage .pill buttons (home.css) set 46 to 60px and leaked in (22 Nov 2026) */ border-radius: 999px; font: 700 12px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; white-space: nowrap; border: 0; }
.t-live-result .pill.pass, .t-app .pill.pass { background: #E4F3B0; color: #3B4A00; }
.t-live-result .pill.warn, .t-app .pill.warn { background: #FFF0C2; color: #6A4A00; }
.t-live-result .pill.fail, .t-app .pill.fail { background: #FFD3E6; color: #8A0F4A; }
.t-live-result .pill.info, .t-app .pill.info { background: #E6E9F5; color: #33374A; }

.t-live-result .checks { list-style: none; margin: 0; padding: 0; border-top: 2px solid #05060A; }
.t-live-result .checks li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid #DDE0EA; font-size: 16px; line-height: 1.5; }
.t-live-result .checks li strong { display: block; font-weight: 800; color: #05060A; }
.t-live-result .checks li span.d { display: block; font-size: 15px; color: #4A4F66; overflow-wrap: anywhere; }
.t-live-result .checks li span.f { display: block; margin-top: 4px; font-size: 15px; color: #05060A; }
.t-live-result .checks li span.f::before { content: "Fix: "; font-weight: 800; color: #FF2E93; }
.t-live-result .checks.locked li { filter: blur(3px); pointer-events: none; user-select: none; }

/* email unlock: the grey box from the design */
.t-live-result .gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px 28px; align-items: start; margin-top: 30px; padding: 22px 24px; border: 0; border-radius: 20px; background: #F2F3F8; }
.t-live-result .gate > div > b { display: block; font: 800 18px/1.3 var(--font-sans); }
.t-live-result .gate > div > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: #4A4F66; }
.t-live-result .gate form { display: grid; gap: 10px; }
.t-live-result .gate input[type=text], .t-live-result .gate input[type=email] { width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #C9CDDA; background: #FFFFFF; font: 16px var(--font-sans); color: #05060A; outline: none; }
.t-live-result .gate input:focus { border-color: #1B3BD8; box-shadow: 0 0 0 4px rgba(27, 59, 216, .18); }
.t-live-result .gate label.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #4A4F66; }
.t-live-result .gate label.chk input { margin: 3px 0 0; accent-color: #1B3BD8; }
.t-live-result .gate .btn { justify-self: start; }
.t-live-result .gate .ok { font: 700 15px/1.4 var(--font-sans); color: #3B4A00; }
.t-live-result .gate .ok.err { color: #C2185B; }
.t-live-result .gate .portal { margin: 10px 0 0; font-size: 14px; color: #4A4F66; }
.t-live-result .gate.done form input, .t-live-result .gate.done form .chk, .t-live-result .gate.done form .btn { display: none; }

/* the closing suggestion */
.t-live-result .cta-card, .t-app .cta-card { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px 32px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #DDE0EA; }
.t-live-result .cta-card .tr-k, .t-app .cta-card .tr-k { margin: 0 0 8px; font: 700 14px/1.3 var(--font-sans); color: #1B3BD8; }
.t-live-result .cta-card b, .t-app .cta-card b { display: block; font: 800 20px/1.25 var(--font-sans); letter-spacing: -.02em; }
.t-live-result .cta-card > div > span, .t-app .cta-card > div > span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.55; color: #33374A; max-width: 60ch; }
.t-live-result .cta-card .acts, .t-app .cta-card .acts { display: grid; gap: 8px; justify-items: start; }
.t-live-result .cta-card .tlink, .t-app .cta-card .tlink { white-space: nowrap; color: #1B3BD8; font-weight: 700; }
.t-live-result .cta-card .plain, .t-app .cta-card .plain { font-weight: 600; color: #4A4F66; }

/* tables: domain authority and keywords */
.t-live-result .rtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 2px solid #05060A; }
.t-live-result .rtable th { padding: 12px 10px 12px 0; text-align: left; font: 700 14px/1.3 var(--font-sans); color: #4A4F66; letter-spacing: 0; text-transform: none; border-bottom: 1px solid #DDE0EA; }
.t-live-result .rtable td { padding: 12px 10px 12px 0; border-bottom: 1px solid #DDE0EA; font-size: 16px; vertical-align: top; overflow-wrap: anywhere; }
.t-live-result .rtable td.n, .t-live-result .rtable th.n { text-align: right; }
.t-live-result .rtable td.n { font-weight: 800; color: #1B3BD8; }
.t-live-result .rtable td.m { font-size: 14px; color: #4A4F66; }
.t-live-result .rtable tr.yours td { font-weight: 800; color: #05060A; }
.t-live-result .rtable tr.yours td.n { color: #FF2E93; }
.t-live-result .bar { position: relative; height: 12px; min-width: 120px; margin-top: 8px; border-radius: 999px; background: #EEF0F8; overflow: hidden; }
.t-live-result .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #1B3BD8; }
.t-live-result tr.yours .bar i { background: #FF2E93; }
.t-live-result .dots { letter-spacing: .12em; color: #1B3BD8; white-space: nowrap; }
.t-live-result .dots span { color: #C9CDDA; }
.t-live-result .intent { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #E6E9F5; font: 700 12px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: #33374A; white-space: nowrap; border: 0; }
.t-live-result .filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.t-live-result .filters button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid #C9CDDA; background: #FFFFFF; font: 700 14px/1 var(--font-sans); letter-spacing: 0; text-transform: none; color: #05060A; cursor: pointer; }
.t-live-result .filters button.on, .t-live-result .filters button:hover { background: #05060A; border-color: #05060A; color: #FFFFFF; }
.t-live-result .filters button b { margin-left: 4px; color: inherit; }
.t-live-result .pending-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.t-live-result .pending-list li { padding: 6px 12px; border-radius: 999px; background: #F2F3F8; font-size: 15px; overflow-wrap: anywhere; }
.t-live-result .tool-add { border: 0; background: none; padding: 0; font: 700 14px var(--font-sans); color: #1B3BD8; cursor: pointer; text-decoration: underline; }

/* ---------- the two app tools (SERP preview, schema generator): full width in the result card ---------- */
.t-app .tool-form--wide { display: block; }
.t-app .serp-grid, .t-app .schema-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.t-app .serp-inputs, .t-app .schema-fields { display: grid; gap: 16px; }
.t-app .serp-tabs, .t-app .schema-type { display: flex; flex-wrap: wrap; gap: 6px; width: auto; margin: 0 0 16px; border: 0; }
.t-app .serp-tabs button, .t-app .schema-type button { padding: 9px 14px; border-radius: 999px; border: 1.5px solid #C9CDDA; background: #FFFFFF; font: 600 14px/1 var(--font-sans); letter-spacing: 0; text-transform: none; color: #05060A; cursor: pointer; }
.t-app .serp-tabs button.on, .t-app .schema-type button.on { background: #05060A; border-color: #05060A; color: #FFFFFF; }
.t-app .serp-card { box-sizing: border-box; width: 100%; max-width: 652px; padding: 18px 20px 20px; border-radius: 18px; border: 1px solid #DDE0EA; background: #FFFFFF; color: #1F1F1F; font-family: Arial, Helvetica, sans-serif; }
.t-app .serp-card[data-view=mobile] { max-width: 400px; padding: 16px; }
.t-app .serp-site { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; margin-bottom: 8px; }
.t-app .serp-fav { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: #E2EEFF; border: 1px solid #DADCE0; }
.t-app .serp-name { font-size: 14px; line-height: 20px; color: #202124; }
.t-app .serp-url { font-size: 12px; line-height: 16px; color: #4D5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-app .serp-title { margin: 0 0 6px; font-size: 20px; line-height: 26px; color: #1A0DAB; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-app .serp-card[data-view=mobile] .serp-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-app .serp-desc { font-size: 14px; line-height: 22px; color: #4D5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-app .serp-card[data-view=mobile] .serp-desc { -webkit-line-clamp: 3; }
.t-app .serp-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.t-app .serp-checks li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: #F2F3F8; font-size: 15px; line-height: 1.5; color: #33374A; }
.t-app .serp-checks li strong { color: #05060A; font-weight: 800; }
.t-app .schema-fields fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 16px; border: 1px solid #DDE0EA; border-radius: 16px; }
.t-app .schema-fields legend { padding: 0 6px; font: 700 14px/1.3 var(--font-sans); color: #4A4F66; letter-spacing: 0; text-transform: none; }
.t-app .hours { display: grid; gap: 8px; }
.t-app .hours div { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.t-app .hours label { font: 700 14px var(--font-sans); color: #4A4F66; letter-spacing: 0; text-transform: none; }
.t-app .hours input[type=time] { height: 44px; padding: 0 10px; border-radius: 10px; border: 1.5px solid #C9CDDA; background: #FFFFFF; font: 15px var(--font-sans); color: #05060A; color-scheme: light; }
.t-app .hours label.closed { display: flex; gap: 6px; align-items: center; }
.t-app .repeat { display: grid; gap: 12px; }
.t-app .repeat > div { display: grid; gap: 8px; padding-left: 12px; border-left: 3px solid #DDE0EA; }
.t-app .schema-out__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.t-app .schema-out__head .tag { font: 700 14px var(--font-sans); color: #1B3BD8; }
.t-app pre#schemaOut { margin: 0; max-height: 560px; overflow: auto; padding: 18px; border-radius: 18px; background: #05060A; color: #D4FF3A; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.t-app + .t-live-result:not([hidden]) { margin-top: 24px; }

/* the SERP "ten new versions" and the closing suggestion after the apps */
.t-live-result .variants { display: grid; gap: 10px; }
.t-live-result .variants button { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid #DDE0EA; border-radius: 14px; background: #FFFFFF; font: 600 16px/1.4 var(--font-sans); color: #05060A; text-align: left; cursor: pointer; }
.t-live-result .variants button:hover { border-color: #1B3BD8; }
.t-live-result .variants button em { font: 700 13px/1.3 var(--font-sans); font-style: normal; color: #1B3BD8; letter-spacing: 0; text-transform: none; }

@media (max-width: 960px) {
	.t-app .serp-grid, .t-app .schema-grid { grid-template-columns: minmax(0, 1fr); }
	.t-live-result .gate { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.t-live-result .res-head { grid-template-columns: minmax(0, 1fr); justify-items: start; }
	.t-live-result .checks li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.t-live-result .rtable td.m.hide-s, .t-live-result .rtable th.hide-s { display: none; }
	.t-app .hours div { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); }
	.t-app .hours label.closed { grid-column: 2 / -1; }
}
@media (prefers-reduced-motion: reduce) { .tool-status.busy::before { animation: none; } }

/* the two app tools: the hero has no form, the app sits full width below */
.t-toolgrid--solo { grid-template-columns: minmax(0, 1fr); }
.t-toolgrid--solo h1 { max-width: 16ch; }
