/* ==========================================================================
   Sketchbook (portfolio) page — sits on top of about.css
   ========================================================================== */

.rg-sk {
	--sk-paper: #FBF6EA;
	--sk-dot: rgba(31, 42, 36, 0.13);
	--sk-ink: var(--wp--preset--color--ink);
	--sk-muted: #4E5A4F;
	--sk-line: rgba(31, 42, 36, 0.14);
	--sk-card: #FFFDF7;
	--sk-pencil: #6B6A62;
	--sk-tape: rgba(232, 184, 107, 0.6);
	padding-bottom: clamp(3rem, 8vw, 6rem);
	overflow-x: clip;
}
.rg-sk > * { margin-block-start: 0; }
.rg-sk-hand { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 700; }

/* Buttons and chips */
.rg-sk-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 0;
	background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sand) !important; text-decoration: none;
	font: 600 1rem/1 var(--wp--preset--font-family--body); cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}
.rg-sk-btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--wp--preset--color--ember); }
.rg-sk-btn svg { transition: transform 0.3s ease; }
.rg-sk-btn:hover svg { transform: translateX(3px); }
.rg-sk-btn--ghost { padding: 10px 14px; background: transparent; color: var(--sk-ink) !important; border: 1.5px solid var(--sk-line); font-size: 0.9375rem; }
.rg-sk-btn--ghost:hover { background: transparent; border-color: var(--wp--preset--color--ember); }
.rg-sk-btn:focus-visible, .rg-sk-chip:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 3px; }

/* ---------- Hero ---------- */
.rg-sk-hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
	max-width: var(--wp--style--global--wide-size, 1320px) !important; margin-inline: auto !important;
	padding-top: clamp(2.5rem, 6vw, 5rem);
}
.rg-sk-kicker { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 500 0.75rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--ember); }
.rg-sk-kicker .rg-sk-hand { font-size: 1.75rem; letter-spacing: 0; text-transform: none; color: var(--sk-ink); transform: rotate(-3deg); display: inline-block; }
.rg-sk-title { margin: 14px 0 0 !important; font-size: clamp(2.6rem, 5.4vw, 4.6rem) !important; line-height: 1.02 !important; }
.rg-sk-title em { position: relative; white-space: nowrap; }
.rg-sk-title em::after { /* hand-drawn underline */
	content: ""; position: absolute; left: -4%; right: -4%; bottom: -0.08em; height: 0.32em; z-index: -1;
	background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13c40-8 90-10 194-6M10 17c50-6 110-7 170-4' fill='none' stroke='%23E8B86B' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.rg-sk-lede { margin: 20px 0 0 !important; max-width: 52ch; font-size: 1.1875rem; line-height: 1.6; color: var(--sk-muted); }

.rg-sk-contents { margin-top: 30px; max-width: 460px; }
.rg-sk-contents__title { margin: 0 0 6px !important; font-size: 1.75rem; color: var(--wp--preset--color--ember); }
.rg-sk-contents ol { margin: 0; padding: 0; list-style: none; }
.rg-sk-contents a { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; color: var(--sk-ink); text-decoration: none; font-weight: 600; }
.rg-sk-contents a i { flex: 1; border-bottom: 2px dotted var(--sk-line); transform: translateY(-4px); }
.rg-sk-contents a b { font: 500 0.8125rem/1 var(--wp--preset--font-family--mono); color: var(--sk-pencil); }
.rg-sk-contents a span { transition: transform 0.25s ease, color 0.25s ease; }
.rg-sk-contents a:hover span { transform: translateX(6px); color: var(--wp--preset--color--ember); }

/* Hack the van mainframe */
.rg-hack { position: relative; }
.rg-hack__screen {
	--h-g: #7CF2A0; --h-dim: rgba(124, 242, 160, 0.45);
	position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 400px;
	padding: 18px 22px 20px; border-radius: 18px; background: #0C1410; color: var(--h-g);
	border: 10px solid #1F2A24; box-shadow: 0 30px 60px -30px rgba(30, 25, 15, 0.7), inset 0 0 80px rgba(124, 242, 160, 0.08);
	font: 500 0.9375rem/1.45 var(--wp--preset--font-family--mono); text-shadow: 0 0 6px rgba(124, 242, 160, 0.55);
	transform: rotate(1.2deg); transition: transform 0.4s ease;
}
.rg-hack__screen::before { /* scanlines */
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.rg-hack__screen::after { /* tape */
	content: ""; position: absolute; top: -6px; left: 50%; width: 110px; height: 24px; margin-left: -55px; transform: rotate(-3deg); background: var(--sk-tape); z-index: 3;
}
.rg-hack__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--h-dim); font-size: 0.75rem; letter-spacing: 0.14em; }
.rg-hack__intro p { margin: 0; }
.rg-hack__tries { display: flex; align-items: center; gap: 6px; margin-top: 2px !important; }
.rg-hack__tries i { width: 12px; height: 12px; border: 1px solid var(--h-g); }
.rg-hack__tries i.is-on { background: var(--h-g); box-shadow: 0 0 6px var(--h-g); }
.rg-hack__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); gap: 16px; flex: 1; margin-top: 12px; }
.rg-hack__row { white-space: nowrap; }
.rg-hack__addr { margin-right: 10px; color: var(--h-dim); }
.rg-hack__junk { color: var(--h-dim); }
.rg-hack__word { padding: 0 1px; border: 0; background: none; color: var(--h-g); cursor: pointer; font: inherit; text-shadow: inherit; }
.rg-hack__word:hover, .rg-hack__word:focus-visible { background: var(--h-g); color: #0C1410; outline: none; text-shadow: none; }
.rg-hack__word.is-dud { color: var(--h-dim); text-decoration: line-through; cursor: default; }
.rg-hack__word.is-dud:hover { background: none; color: var(--h-dim); }
.rg-hack__word.is-hit { background: var(--h-g); color: #0C1410; }
.rg-hack__log { display: flex; flex-direction: column; justify-content: flex-end; margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px dashed var(--h-dim); font-size: 0.8125rem; overflow: hidden; }
.rg-hack__log li { animation: rg-type 0.25s steps(8) both; }
.rg-hack__log li.is-no { color: #F2C77C; text-shadow: 0 0 6px rgba(242, 199, 124, 0.5); }
.rg-hack__log li.is-ok { color: #FFFFFF; }
.rg-hack__log li:last-child::after { content: "▌"; margin-left: 2px; animation: rg-blink 1s steps(1) infinite; }
@keyframes rg-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rg-blink { 50% { opacity: 0; } }
.rg-hack__win { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(12, 20, 16, 0.92); animation: rg-in 0.4s ease both; }
.rg-hack__win[hidden] { display: none; }
.rg-hack__win p { margin: 0; max-width: 32ch; }
.rg-hack__big { font: 700 clamp(1.75rem, 3.4vw, 2.5rem)/1 var(--wp--preset--font-family--mono); letter-spacing: 0.08em; animation: rg-flicker 1.2s steps(2) 1; }
.rg-hack.is-locked .rg-hack__big { color: #FF8A5B; text-shadow: 0 0 10px rgba(255, 138, 91, 0.6); }
@keyframes rg-flicker { 0%, 20%, 40% { opacity: 0.2; } 10%, 30%, 60%, 100% { opacity: 1; } }
.rg-hack__again { justify-self: center; margin-top: 8px; padding: 8px 14px; border: 1px solid var(--h-g); background: transparent; color: var(--h-g); cursor: pointer; font: inherit; text-shadow: inherit; }
.rg-hack__again:hover, .rg-hack__again:focus-visible { background: var(--h-g); color: #0C1410; outline: none; text-shadow: none; }
.rg-hack.is-danger .rg-hack__tries { color: #FF8A5B; }
.rg-hack.is-shake .rg-hack__screen { animation: rg-shake 0.35s ease; }
@keyframes rg-shake { 25% { transform: rotate(1.2deg) translateX(-6px); } 75% { transform: rotate(1.2deg) translateX(6px); } }
.rg-hack.is-won .rg-hack__screen { box-shadow: 0 30px 60px -30px rgba(30, 25, 15, 0.7), 0 0 0 3px var(--h-g), inset 0 0 100px rgba(124, 242, 160, 0.2); }
.rg-hack__name { flex: 1; text-align: center; color: #fff; }
.rg-hack__next { padding: 3px 8px; border: 1px solid var(--h-dim); background: transparent; color: var(--h-g); cursor: pointer; font: inherit; letter-spacing: 0.06em; text-shadow: inherit; }
.rg-hack__next:hover, .rg-hack__next:focus-visible { background: var(--h-g); color: #0C1410; outline: none; text-shadow: none; }
.rg-hack__game { display: flex; flex-direction: column; flex: 1; }
.rg-hack__game[hidden] { display: none; }
.rg-hack__screen.is-boot .rg-hack__game { animation: rg-boot 0.5s steps(5) both; }
@keyframes rg-boot { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.rg-hack__ends { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rg-hack__ends .rg-hack__again { justify-self: auto; }

/* Breach protocol */
.rg-br__meta { display: grid; gap: 6px; margin-top: 10px; }
.rg-br__meta p { display: flex; align-items: center; gap: 12px; margin: 0; }
.rg-br__meta p > span:first-child { width: 78px; flex: none; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--h-dim); }
.rg-br__seq, .rg-br__buf { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-br__seq b { padding: 2px 6px; border: 1px solid var(--h-g); font-weight: 500; }
.rg-br__seq b.is-hit { background: var(--h-g); color: #0C1410; text-shadow: none; }
.rg-br__buf i { display: grid; place-items: center; width: 32px; height: 26px; border: 1px dashed var(--h-dim); font-style: normal; font-size: 0.8125rem; }
.rg-br__buf i.is-full { border-style: solid; border-color: var(--h-g); animation: rg-pop 0.3s ease; }
.rg-br__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.rg-br__cell { position: relative; height: 40px; border: 1px solid transparent; background: transparent; color: var(--h-dim); cursor: default; font: inherit; text-shadow: inherit; transition: background-color 0.15s ease, color 0.15s ease; }
.rg-br__cell.is-line { background: rgba(124, 242, 160, 0.1); color: var(--h-g); }
.rg-br__cell.is-line:not(:disabled) { cursor: pointer; border-color: rgba(124, 242, 160, 0.3); }
.rg-br__cell:not(:disabled):hover, .rg-br__cell:not(:disabled):focus-visible { background: var(--h-g); color: #0C1410; text-shadow: none; outline: none; }
.rg-br__cell.is-used { color: rgba(124, 242, 160, 0.25); }
/* Bug hunt */
.rg-bug { margin-top: 12px; border: 1px solid var(--h-dim); }
.rg-bug__file { margin: 0 !important; padding: 4px 10px; border-bottom: 1px solid var(--h-dim); font-size: 0.75rem; color: var(--h-dim); }
.rg-bug__code { margin: 0; padding: 6px 0; list-style: none; }
.rg-bug__line { display: flex; gap: 12px; width: 100%; padding: 3px 10px; border: 0; background: transparent; color: var(--h-g); cursor: pointer; text-align: left; font: inherit; font-size: 0.875rem; text-shadow: inherit; }
.rg-bug__line code { font: inherit; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.rg-bug__n { flex: none; width: 16px; text-align: right; color: var(--h-dim); }
.rg-bug__line:hover, .rg-bug__line:focus-visible { background: rgba(124, 242, 160, 0.14); outline: none; }
.rg-bug__line.is-dud { color: #FF8A5B; text-decoration: line-through; text-shadow: none; cursor: default; }
.rg-bug__line.is-hit { background: var(--h-g); color: #0C1410; text-shadow: none; }
.rg-bug__line.is-hit .rg-bug__n { color: #0C1410; }
.rg-bug__note { margin: 12px 0 0 !important; min-height: 2.9em; font-size: 0.8125rem; }

/* Root shell */
.rg-ty__clock { display: flex; align-items: center; gap: 10px; margin-top: 4px !important; }
.rg-ty__bar { flex: 1; height: 8px; border: 1px solid var(--h-dim); }
.rg-ty__bar i { display: block; height: 100%; width: 100%; background: var(--h-g); box-shadow: 0 0 8px var(--h-g); transition: width 0.1s linear; }
.rg-hack.is-danger .rg-ty__bar i { background: #FF8A5B; box-shadow: 0 0 8px #FF8A5B; }
.rg-ty__done { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; margin: 12px 0 0; padding: 0; list-style: none; color: var(--h-dim); font-size: 0.875rem; }
.rg-ty__done li { display: flex; justify-content: space-between; animation: rg-in 0.25s ease both; }
.rg-ty__done b { color: var(--h-g); font-weight: 500; }
.rg-ty__line { position: relative; display: flex; gap: 10px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--h-g); cursor: text; font-size: 1.0625rem; }
.rg-ty__text { white-space: pre; }
.rg-ty__text span { color: var(--h-dim); }
.rg-ty__text .is-ok { color: var(--h-g); }
.rg-ty__text .is-bad { color: #0C1410; background: #FF8A5B; text-shadow: none; }
.rg-ty__text .is-caret { box-shadow: inset 0 -3px 0 var(--h-g); animation: rg-blink 1s steps(1) infinite; }
.rg-ty__input { position: absolute; inset: 0; width: 100%; opacity: 0; border: 0; font-size: 16px; cursor: text; }
.rg-ty__line:focus-within { box-shadow: 0 0 0 1px var(--h-g), 0 0 14px rgba(124, 242, 160, 0.35); }
.rg-ty__tip { margin: 8px 0 0 !important; font-size: 0.75rem; color: var(--h-dim); transition: opacity 0.2s ease; }
.rg-ty__line:focus-within + .rg-ty__tip { opacity: 0; }
.rg-hack__how { margin: 18px 0 0 !important; font-size: 1.5rem; line-height: 1.1; color: var(--sk-pencil); text-align: center; transform: rotate(-1.5deg); }
@media (max-width: 560px) {
	.rg-hack__screen { padding: 14px; font-size: 0.8125rem; transform: none; min-height: 0; }
	.rg-hack__body { grid-template-columns: 1fr; }
	.rg-hack__log { min-height: 110px; padding: 8px 0 0; border-left: 0; border-top: 1px dashed var(--h-dim); }
	.rg-hack__addr { display: none; }
	.rg-br__grid { max-width: none; }
	.rg-hack__head > span:first-child { display: none; }
}

/* ---------- Filter ---------- */
.rg-sk-filter {
	position: sticky; top: 12px; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%;
	margin: clamp(3rem, 7vw, 5rem) auto 0 !important; padding: 6px; border-radius: 999px;
	background: var(--sk-card); border: 1px solid var(--sk-line); box-shadow: 0 14px 30px -22px rgba(60, 45, 20, 0.6);
}
.rg-sk-chip { padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--sk-ink); cursor: pointer; font: 600 0.9375rem/1 var(--wp--preset--font-family--body); transition: background-color 0.25s ease, color 0.25s ease; }
.rg-sk-chip:hover { background: rgba(232, 184, 107, 0.25); }
.rg-sk-chip[aria-pressed="true"] { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sand); }

/* ---------- Pages ---------- */
.rg-sk-page { max-width: var(--wp--style--global--wide-size, 1320px) !important; margin-inline: auto !important; padding-top: clamp(4rem, 9vw, 7rem); scroll-margin-top: 70px; }
.rg-sk-page[hidden] { display: none !important; }
.rg-sk-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; max-width: 920px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.rg-sk-head > * { margin: 0 !important; grid-column: 2; }
.rg-sk-head .rg-sk-num {
	grid-column: 1; grid-row: span 3; align-self: start; margin-top: 0.4em !important; padding: 6px 10px; border-radius: 4px;
	font: 700 1.5rem/1 "Caveat", cursive; color: var(--wp--preset--color--ember); background: var(--sk-card);
	box-shadow: 0 0 0 1px var(--sk-line); transform: rotate(-4deg);
}
.rg-sk-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.rg-sk-head p:not(.rg-sk-num) { max-width: 64ch; color: var(--sk-muted); font-size: 1.125rem; line-height: 1.6; }
.rg-sk-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0 !important; padding: 0; list-style: none; }
.rg-sk-tags li { padding: 6px 11px; border-radius: 999px; border: 1.5px dashed var(--sk-line); font: 500 0.75rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.04em; color: var(--sk-muted); }
.rg-sk-tags li:first-child { border-style: solid; border-color: var(--wp--preset--color--ember); color: var(--wp--preset--color--ember); }

/* ---------- p.01 Dashboard ---------- */
.rg-sk-board { position: relative; padding: 40px 170px 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rg-sk-note { position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: 4px; width: 150px; font-size: 1.5rem; line-height: 1.05; color: var(--wp--preset--color--ember); pointer-events: none; }
.rg-sk-note svg { flex: none; width: 70px; height: 44px; margin-top: 10px; }
.rg-sk-note--1 { left: 0; top: 90px; transform: rotate(-6deg); flex-direction: column; }
.rg-sk-note--1 svg { margin-left: 70px; }
.rg-sk-note--2 { right: 0; top: 38%; flex-direction: column-reverse; text-align: right; transform: rotate(4deg); }
.rg-sk-note--2 svg { margin-left: 0; transform: scaleX(1); }
.rg-sk-note--3 { left: 0; bottom: 90px; flex-direction: column; transform: rotate(-3deg); }
.rg-sk-note--3 svg { margin-left: 70px; }
@media (max-width: 1239px) { .rg-sk-note { display: none; } .rg-sk-board { padding: 0; } }

.rg-dash {
	--d-bg: #F6F4EE; --d-card: #FFFFFF; --d-ink: #17201B; --d-muted: #66706A; --d-line: #E3E0D6;
	--d-g: #4E9A6A; --d-a: #E2A93B; --d-r: #D2602A;
	position: relative; z-index: 2; border-radius: 16px; overflow: hidden; background: var(--d-bg); color: var(--d-ink);
	box-shadow: 0 40px 80px -40px rgba(30, 25, 15, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.08); transform: rotate(-0.6deg);
	font-family: var(--wp--preset--font-family--body);
}
.rg-dash::before { /* tape */
	content: ""; position: absolute; top: -2px; left: 50%; z-index: 4; width: 120px; height: 26px; margin-left: -60px; transform: rotate(2deg); background: var(--sk-tape);
}
.rg-dash__chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #E9E6DD; border-bottom: 1px solid var(--d-line); }
.rg-dash__chrome i { width: 11px; height: 11px; border-radius: 50%; background: #D0CCC0; }
.rg-dash__chrome span { margin-left: 14px; padding: 5px 14px; border-radius: 999px; background: #F6F4EE; font: 500 0.75rem/1 var(--wp--preset--font-family--mono); color: var(--d-muted); }
.rg-dash__app { padding: clamp(14px, 2.4vw, 28px); transition: opacity 0.16s ease; }
.rg-dash.is-swap .rg-dash__app { opacity: 0.2; }
.rg-dash__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rg-dash__top > div:first-child { flex: 1; min-width: 180px; }
.rg-dash__kicker { margin: 0 !important; font: 500 0.6875rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-r); }
.rg-dash__h { margin: 6px 0 0 !important; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--wp--preset--font-family--display); color: var(--d-ink); }
.rg-dash__seg { display: flex; padding: 4px; border-radius: 999px; background: #ECE9E0; }
.rg-dash__seg button { padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--d-muted); cursor: pointer; font: 600 0.8125rem/1 var(--wp--preset--font-family--body); }
.rg-dash__seg button[aria-pressed="true"] { background: var(--d-card); color: var(--d-ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.rg-dash__poll { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--d-ink); color: #fff; cursor: pointer; font: 600 0.8125rem/1 var(--wp--preset--font-family--body); transition: background-color 0.2s ease, opacity 0.2s ease; }
.rg-dash__poll:hover { background: var(--d-r); }
.rg-dash__poll:disabled { opacity: 0.35; cursor: not-allowed; background: var(--d-ink); }
.rg-dash.is-polling .rg-dash__poll svg { animation: rg-spin 0.8s linear infinite; }
@keyframes rg-spin { to { transform: rotate(360deg); } }
.rg-dash :is(button):focus-visible { outline: 3px solid var(--d-r); outline-offset: 2px; }

.rg-dash__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rg-dash__tile { padding: 14px 16px; border-radius: 12px; background: var(--d-card); border: 1px solid var(--d-line); }
.rg-dash__tile b { display: block; font: 700 clamp(1.4rem, 2.4vw, 1.875rem)/1 var(--wp--preset--font-family--display); }
.rg-dash__tile span { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--d-muted); }
.rg-dash__tile i { display: block; margin-top: 4px; font: normal 500 0.6875rem/1 var(--wp--preset--font-family--mono); color: var(--d-r); }

.rg-dash__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.rg-dash__panel { padding: 16px; border-radius: 12px; background: var(--d-card); border: 1px solid var(--d-line); min-width: 0; }
.rg-dash__panel--up { margin-top: 12px; }
.rg-dash__ph { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px !important; font: 700 0.9375rem/1.2 var(--wp--preset--font-family--body); color: var(--d-ink); }
.rg-dash__ph span { font: 500 0.6875rem/1.4 var(--wp--preset--font-family--mono); color: var(--d-muted); text-align: right; }
.rg-dash__scroll { overflow-x: auto; }
.rg-dash__matrix { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.rg-dash__matrix th, .rg-dash__matrix td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--d-line); }
.rg-dash__matrix thead th { font: 500 0.625rem/1.2 var(--wp--preset--font-family--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted); }
.rg-dash__matrix thead th:first-child, .rg-dash__matrix tbody th { text-align: left; }
.rg-dash__matrix tbody tr { transition: background-color 0.2s ease; }
.rg-dash__matrix tbody tr:hover, .rg-dash__matrix tbody tr.is-picked { background: #F6F2E8; }
.rg-dash__sitebtn { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; color: var(--d-ink); cursor: pointer; font: 600 0.8125rem/1.2 var(--wp--preset--font-family--body); white-space: nowrap; }
.rg-dash__sitebtn:hover span { text-decoration: underline; text-decoration-color: var(--d-r); text-underline-offset: 3px; }
.rg-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--d-g); vertical-align: middle; flex: none; }
.rg-dot--a { background: var(--d-a); }
.rg-dot--r { background: var(--d-r); border-radius: 2px; }
.rg-dash__legend { display: flex; gap: 16px; margin: 12px 0 0 !important; font-size: 0.75rem; color: var(--d-muted); }
.rg-dash__legend span { display: inline-flex; align-items: center; gap: 6px; }
.rg-dash__matrix tbody tr.is-fixed td .rg-dot { animation: rg-pop 0.5s ease; }

.rg-dash__attn { margin: 0; padding: 0; list-style: none; }
.rg-dash__attn li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--d-line); animation: rg-in 0.35s ease both; }
.rg-dash__attn li:last-child { border-bottom: 0; }
.rg-dash__attn .rg-dot { margin-top: 4px; }
.rg-dash__attn b { display: block; font-size: 0.8125rem; }
.rg-dash__attn em { display: block; font-style: normal; font-size: 0.75rem; color: var(--d-muted); }
.rg-dash__more { margin: 8px 0 0 !important; font: 500 0.75rem/1 var(--wp--preset--font-family--mono); color: var(--d-muted); }
.rg-dash__clear { padding: 18px; border-radius: 10px; background: #EAF3EC; text-align: center; animation: rg-in 0.4s ease both; }
.rg-dash__clear b { display: block; font: 700 1.5rem/1 var(--wp--preset--font-family--display); color: #2F6E46; }
.rg-dash__clear span { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--d-muted); }
.rg-dash__again { margin-top: 12px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--d-line); background: var(--d-card); cursor: pointer; font: 600 0.75rem/1 var(--wp--preset--font-family--body); color: var(--d-ink); }
.rg-dash__sitehead { display: flex; justify-content: space-between; gap: 10px; }
.rg-dash__sitehead .rg-dash__ph { margin-bottom: 2px !important; }
.rg-dash__url { margin: 0 0 10px !important; font: 500 0.6875rem/1 var(--wp--preset--font-family--mono); color: var(--d-muted); }
.rg-dash__close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--d-line); background: var(--d-card); cursor: pointer; font-size: 1.125rem; line-height: 1; color: var(--d-ink); }
.rg-dash__checks { margin: 0; padding: 0; list-style: none; }
.rg-dash__checks li { display: grid; grid-template-columns: 14px 86px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--d-line); font-size: 0.8125rem; animation: rg-in 0.3s ease both; }
.rg-dash__checks li:last-child { border-bottom: 0; }
.rg-dash__checks span { color: var(--d-muted); }

.rg-dash__uptime { display: grid; gap: 8px; }
.rg-dash__uprow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 62px; gap: 10px; align-items: center; }
.rg-dash__upname { font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-dash__uppc { font: 500 0.75rem/1 var(--wp--preset--font-family--mono); text-align: right; }
.rg-dash__bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 1.5px; height: 22px; }
.rg-bar { display: block; border-radius: 2px; background: var(--d-g); opacity: 0.85; transition: transform 0.15s ease, opacity 0.15s ease; }
.rg-bar--a { background: var(--d-a); }
.rg-bar--r { background: var(--d-r); }
.rg-bar:hover { transform: scaleY(1.35); opacity: 1; }
@keyframes rg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rg-pop { 50% { transform: scale(1.5); } }

@media (max-width: 860px) {
	.rg-dash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rg-dash__grid { grid-template-columns: 1fr; }
	.rg-dash__uprow { grid-template-columns: 1fr 58px; }
	.rg-dash__upname { grid-column: 1 / -1; }
	.rg-dash__bars { gap: 1px; }
	.rg-dash { transform: none; }
}

/* How it fits together */
.rg-sk-flow { margin-top: clamp(2rem, 5vw, 3.5rem); padding: clamp(20px, 3vw, 32px); border-radius: 8px; border: 2px dashed var(--sk-line); }
.rg-sk-flow__title { margin: 0 0 14px !important; font-size: 1.875rem; color: var(--wp--preset--color--ember); transform: rotate(-1.5deg); }
.rg-sk-flow__nodes { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.rg-sk-flow__nodes li { display: flex; align-items: center; }
.rg-sk-flow__nodes li + li::before { content: ""; width: clamp(16px, 3vw, 40px); height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--sk-pencil) 0 6px, transparent 6px 10px); }
.rg-sk-flow__nodes button {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px 14px 10px 16px / 14px 10px 16px 12px;
	border: 2px solid var(--sk-ink); background: var(--sk-card); color: var(--sk-ink); cursor: pointer;
	font: 600 0.9375rem/1 var(--wp--preset--font-family--body); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}
.rg-sk-flow__nodes button span { font: 500 0.6875rem/1 var(--wp--preset--font-family--mono); color: var(--wp--preset--color--ember); }
.rg-sk-flow__nodes button:hover { transform: rotate(-2deg) translateY(-2px); }
.rg-sk-flow__nodes button[aria-pressed="true"] { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: var(--wp--preset--color--sand); }
.rg-sk-flow__nodes button[aria-pressed="true"] span { color: var(--wp--preset--color--sun); }
.rg-sk-flow__nodes button:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 3px; }
.rg-sk-flow__text { margin-top: 18px; max-width: 70ch; }
.rg-sk-flow__text p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--sk-muted); animation: rg-in 0.35s ease both; }
@media (max-width: 760px) { .rg-sk-flow__nodes li + li::before { display: none; } .rg-sk-flow__nodes { gap: 8px; } }

/* ---------- p.02 Chat ---------- */
.rg-chat { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.rg-chat__phone { position: relative; display: flex; flex-direction: column; height: 500px; border-radius: 28px; overflow: hidden; background: #F6F4EE; border: 8px solid #1A211D; box-shadow: 0 34px 60px -34px rgba(30, 25, 15, 0.7); transform: rotate(-1.5deg); color: #17201B; }
.rg-chat__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #E3E0D6; }
.rg-chat__bar b { flex: 1; font-size: 0.9375rem; }
.rg-chat__bar i { font: normal 500 0.625rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: #F3EAD7; color: #8A5A2B; }
.rg-chat__av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wp--preset--color--ember); color: #fff; font-size: 0.9375rem; }
.rg-chat__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; scroll-behavior: smooth; }
.rg-chat__msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.875rem; line-height: 1.45; animation: rg-in 0.3s ease both; }
.rg-chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid #E3E0D6; border-bottom-left-radius: 4px; }
.rg-chat__msg--me { align-self: flex-end; background: var(--wp--preset--color--forest); color: #F3EAD7; border-bottom-right-radius: 4px; }
.rg-chat__msg.is-typing { display: flex; gap: 4px; padding: 14px; }
.rg-chat__msg.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: #A9A79E; animation: rg-dot 1s infinite ease-in-out; }
.rg-chat__msg.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.rg-chat__msg.is-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rg-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
.rg-chat__link { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--wp--preset--color--ember); background: transparent; color: var(--wp--preset--color--ember); cursor: pointer; font: 600 0.8125rem/1.2 var(--wp--preset--font-family--body); }
.rg-chat__link:hover, .rg-chat__link.is-done { background: var(--wp--preset--color--ember); color: #fff; }
.rg-chat__asks { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: #fff; border-top: 1px solid #E3E0D6; }
.rg-chat__asks button { padding: 8px 12px; border-radius: 999px; border: 1px solid #D9D5C9; background: #F6F4EE; color: #17201B; cursor: pointer; font: 500 0.8125rem/1.2 var(--wp--preset--font-family--body); transition: border-color 0.2s ease, transform 0.2s ease; }
.rg-chat__asks button:hover { border-color: var(--wp--preset--color--ember); transform: translateY(-1px); }
.rg-chat button:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 2px; }

.rg-chat__funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rg-chat__funnel > div { position: relative; overflow: hidden; padding: 16px; border-radius: 12px; background: var(--sk-card); box-shadow: 0 0 0 1px var(--sk-line); }
.rg-chat__funnel b { display: block; font: 700 2.25rem/1 var(--wp--preset--font-family--display); color: var(--sk-ink); }
.rg-chat__funnel span { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--sk-muted); }
.rg-chat__funnel i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--wp--preset--color--ember); transition: width 0.5s ease; }
.rg-chat__funnel .is-bump b { animation: rg-pop 0.45s ease; color: var(--wp--preset--color--ember); }
.rg-chat__events { margin-top: 14px; padding: 16px; border-radius: 12px; background: #17201B; color: #ECE5D5; }
.rg-chat__events .rg-dash__ph { color: #ECE5D5; }
.rg-chat__events .rg-dash__ph span { color: #A9B4A6; }
.rg-chat__events ol { margin: 0; padding: 0; list-style: none; min-height: 210px; }
.rg-chat__events li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 500 0.8125rem/1.4 var(--wp--preset--font-family--mono); animation: rg-flash 1.2s ease both; }
.rg-chat__events li.is-empty { color: #A9B4A6; border: 0; animation: none; }
.rg-chat__events code { font: inherit; color: #E8B86B; word-break: break-word; }
.rg-chat__t { flex: none; width: 58px; color: #7E8C82; }
@keyframes rg-flash { from { background: rgba(232, 184, 107, 0.2); } to { background: transparent; } }
@media (max-width: 860px) {
	.rg-chat { grid-template-columns: 1fr; }
	.rg-chat__phone { height: 440px; transform: none; max-width: 420px; width: 100%; margin-inline: auto; }
	.rg-chat__funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- p.03 Power ---------- */
.rg-pw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 40px); border-radius: 10px; background: var(--sk-card); box-shadow: 0 0 0 1px var(--sk-line), 0 30px 60px -40px rgba(60, 45, 20, 0.5); transform: rotate(0.6deg); }
.rg-pw__kit { margin: 0; padding: 0; list-style: none; }
.rg-pw__item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1.5px dashed var(--sk-line); cursor: pointer; }
.rg-pw__kit li:last-child .rg-pw__item { border-bottom: 0; }
.rg-pw__item input { position: absolute; opacity: 0; pointer-events: none; }
.rg-pw__sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #D9D3C3; transition: background-color 0.25s ease; }
.rg-pw__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rg-pw__item input:checked + .rg-pw__sw { background: var(--wp--preset--color--forest); }
.rg-pw__item input:checked + .rg-pw__sw::after { transform: translateX(18px); }
.rg-pw__item input:focus-visible + .rg-pw__sw { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 2px; }
.rg-pw__name { font-weight: 600; color: var(--sk-ink); }
.rg-pw__w { font: 500 0.8125rem/1 var(--wp--preset--font-family--mono); color: var(--sk-pencil); }
.rg-pw__out { text-align: center; }
.rg-pw__batt { position: relative; width: min(100%, 320px); height: 120px; margin: 0 auto; padding: 8px; border-radius: 18px; border: 4px solid var(--sk-ink); }
.rg-pw__fill { display: block; height: 100%; width: 50%; border-radius: 10px; background: repeating-linear-gradient(90deg, #5E8A5A 0 22px, #6F9C6A 22px 26px); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease; }
.rg-pw__fill.is-low { background: repeating-linear-gradient(90deg, var(--wp--preset--color--ember) 0 22px, #E07A45 22px 26px); }
.rg-pw__nub { position: absolute; right: -16px; top: 50%; width: 10px; height: 40px; margin-top: -20px; border-radius: 0 6px 6px 0; background: var(--sk-ink); }
.rg-pw__big { margin: 20px 0 0 !important; font: 800 clamp(3rem, 6vw, 4.5rem)/1 var(--wp--preset--font-family--display); color: var(--sk-ink); }
.rg-pw__big span { font-size: 1.25rem; font-weight: 600; color: var(--sk-muted); }
.rg-pw__sub { margin: 8px auto 20px !important; max-width: 34ch; color: var(--sk-muted); }
@media (max-width: 760px) { .rg-pw { grid-template-columns: 1fr; transform: none; } }

/* ---------- p.04 Scraps ---------- */
.rg-scraps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 40px); }
.rg-scrap {
	position: relative; padding: 30px 24px 24px; background: var(--sk-card); border-radius: 4px; transform: rotate(var(--r, 0deg));
	box-shadow: 0 0 0 1px var(--sk-line), 0 24px 44px -28px rgba(60, 45, 20, 0.6);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rg-scrap::before { content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; margin-left: -42px; transform: rotate(-3deg); background: var(--sk-tape); }
.rg-scrap:hover { transform: rotate(0deg) translateY(-6px); }
.rg-scrap__label { margin: 0 0 14px !important; font-size: 1.75rem; line-height: 1; color: var(--wp--preset--color--ember); }
.rg-scrap__text { margin: 14px 0 0 !important; font-size: 0.9375rem; line-height: 1.5; color: var(--sk-muted); }
.rg-js .rg-scrap.rg-reveal.is-in { transform: rotate(var(--r, 0deg)); }
.rg-js .rg-scrap.rg-reveal.is-in:hover { transform: rotate(0deg) translateY(-6px); }
.rg-js .rg-pw.rg-reveal.is-in { transform: rotate(0.6deg); }

.rg-scrap__switch { position: relative; display: block; width: 100%; height: 96px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden; background: linear-gradient(180deg, #BFE0F2 0%, #F7E3BD 100%); transition: background 0.6s ease; }
.rg-scrap__sun { position: absolute; top: 18px; left: 22px; width: 60px; height: 60px; border-radius: 50%; background: #FBD08A; box-shadow: 0 0 0 10px rgba(251, 208, 138, 0.35); transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1), background-color 0.5s ease, box-shadow 0.5s ease; }
.rg-scrap__switch[aria-pressed="true"] { background: linear-gradient(180deg, #0E1722 0%, #23324A 100%); }
.rg-scrap__switch[aria-pressed="true"] .rg-scrap__sun { transform: translateX(calc(100% + 120px)); background: #ECE5D5; box-shadow: inset -14px -6px 0 0 #C9C2B0, 0 0 0 10px rgba(236, 229, 213, 0.12); }
.rg-scrap__switch:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 3px; }

.rg-scrap__sw { display: flex; gap: 8px; }
.rg-scrap__sw button { position: relative; flex: 1; height: 84px; border: 0; border-radius: 10px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: flex-grow 0.35s ease, transform 0.25s ease; }
.rg-scrap__sw button:hover { flex-grow: 1.8; }
.rg-scrap__sw button span { position: absolute; left: 6px; bottom: 6px; font: 500 0.625rem/1 var(--wp--preset--font-family--mono); color: rgba(255, 255, 255, 0.9); opacity: 0; transition: opacity 0.2s ease; }
.rg-scrap__sw button[data-hex="#F3EAD7"] span, .rg-scrap__sw button[data-hex="#E8B86B"] span { color: rgba(31, 42, 36, 0.8); }
.rg-scrap__sw button:hover span { opacity: 1; }
.rg-scrap__sw button.is-pop { animation: rg-pop 0.4s ease; }
.rg-scrap__sw button:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 2px; }

.rg-scrap__aa { margin: 0 !important; font: 600 5.5rem/1 var(--wp--preset--font-family--display); color: var(--sk-ink); transition: font-weight 0.1s linear; }
.rg-scrap__aa em { margin-left: 8px; color: var(--wp--preset--color--ember); }
.rg-scrap--type input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--wp--preset--color--ember); }

.rg-scrap__road { position: relative; height: 96px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #F7E3BD 0 62%, #C9A675 62%); }
.rg-scrap__road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: repeating-linear-gradient(90deg, #FFF8E8 0 18px, transparent 18px 34px); }
.rg-scrap__vanny { position: absolute; left: 10px; bottom: 16px; width: 76px; transition: transform 1.6s cubic-bezier(0.45, 0, 0.2, 1); }
.rg-scrap__vanny svg { display: block; width: 100%; height: auto; }
.rg-scrap--van:hover .rg-scrap__vanny { transform: translateX(calc(100% + 120px)); }
.rg-scrap--van:hover .rg-scrap__vanny svg { animation: rg-bump 0.3s ease-in-out infinite; }
@keyframes rg-bump { 50% { transform: translateY(-2px); } }

.rg-scrap__icons { display: flex; align-items: center; justify-content: space-around; height: 96px; }
.rg-scrap__icons .is-draft { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; border: 2px solid var(--sk-pencil); font: 700 1.375rem/1 var(--wp--preset--font-family--display); color: var(--sk-pencil); }
.rg-scrap__icons .is-draft::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 3px; background: var(--wp--preset--color--ember); transform: rotate(-24deg); border-radius: 2px; }
.rg-scrap__icons .is-draft--2 { border-radius: 50%; font-size: 1.125rem; }
.rg-scrap__icons img { width: 64px; height: 64px; border-radius: 14px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rg-scrap--icon:hover img { transform: scale(1.15) rotate(-6deg); }

.rg-scrap--links ul { margin: 0; padding: 0; list-style: none; }
.rg-scrap--links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1.5px dashed var(--sk-line); color: var(--sk-ink); text-decoration: none; font-weight: 600; }
.rg-scrap--links li:last-child a { border-bottom: 0; }
.rg-scrap--links a svg { color: var(--wp--preset--color--ember); transition: transform 0.25s ease; }
.rg-scrap--links a:hover svg { transform: translateX(4px); }

@media (max-width: 1000px) { .rg-scraps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rg-scraps { grid-template-columns: 1fr; } }

/* ---------- End ---------- */
.rg-sk-end { max-width: 760px !important; margin: clamp(5rem, 10vw, 8rem) auto 0 !important; text-align: center; }
.rg-sk-end > * { margin-inline: auto !important; }
.rg-sk-end__scribble { margin: 0 0 10px !important; font-size: 2rem; color: var(--sk-pencil); transform: rotate(-3deg); }
.rg-sk-end h2 { margin: 0 0 26px !important; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
	.rg-sk-hero { grid-template-columns: 1fr; }
	.rg-sk-head { grid-template-columns: 1fr; }
	.rg-sk-head > *, .rg-sk-head .rg-sk-num { grid-column: 1; grid-row: auto; }
	.rg-sk-head .rg-sk-num { justify-self: start; }
}

/* ---------- Weekend (night) ---------- */
html[data-rg-mode="weekend"] .rg-sk {
	--sk-paper: var(--rg-n-bg); --sk-dot: rgba(236, 229, 213, 0.08); --sk-ink: var(--rg-n-text); --sk-muted: var(--rg-n-muted);
	--sk-line: var(--rg-n-line); --sk-card: var(--rg-n-surface); --sk-pencil: #8E9A8C; --sk-tape: rgba(232, 184, 107, 0.35);
}
html[data-rg-mode="weekend"] .rg-sk-btn { background: var(--rg-n-accent); color: #111916 !important; }
html[data-rg-mode="weekend"] .rg-sk-btn:hover { background: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-sk-btn--ghost { background: transparent; color: var(--rg-n-text) !important; }
html[data-rg-mode="weekend"] .rg-sk-chip[aria-pressed="true"],
html[data-rg-mode="weekend"] .rg-sk-flow__nodes button[aria-pressed="true"] { background: var(--rg-n-accent); border-color: var(--rg-n-accent); color: #111916; }
html[data-rg-mode="weekend"] .rg-sk-flow__nodes button[aria-pressed="true"] span { color: #8A3D16; }
html[data-rg-mode="weekend"] .rg-sk-contents a,
html[data-rg-mode="weekend"] .rg-scrap--links a { color: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-sk-note,
html[data-rg-mode="weekend"] .rg-sk-kicker,
html[data-rg-mode="weekend"] .rg-sk-contents__title,
html[data-rg-mode="weekend"] .rg-sk-flow__title,
html[data-rg-mode="weekend"] .rg-scrap__label,
html[data-rg-mode="weekend"] .rg-sk-head .rg-sk-num { color: var(--rg-n-ember); }
html[data-rg-mode="weekend"] .rg-pw__item input:checked + .rg-pw__sw { background: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .rg-pw__sw { background: var(--rg-n-surface-2); }
html[data-rg-mode="weekend"] .rg-pw__batt { border-color: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-pw__nub { background: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-dash { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
html[data-rg-mode="weekend"] .rg-sk-title em::after { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
	.rg-sk *, .rg-sk *::before, .rg-sk *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 560px) {
	.rg-sk-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 32px); }
	.rg-sk-filter::-webkit-scrollbar { display: none; }
	.rg-sk-chip { flex: none; padding: 9px 13px; font-size: 0.875rem; }
}
.rg-scrap__split { margin: 0; padding: 0; list-style: none; }
.rg-scrap__split li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed var(--sk-line); font-size: 0.9375rem; }
.rg-scrap__split li:last-child { border-bottom: 0; }
.rg-scrap__split b { font-family: var(--wp--preset--font-family--display); color: var(--sk-ink); }
.rg-scrap__split span { color: var(--sk-muted); }

/* ==========================================================================
   Workbench: the editor look (overrides the old sketchbook styling)
   ========================================================================== */
.rg-sk { --sk-code: #2F6E46; --sk-tape: transparent; }
html[data-rg-mode="weekend"] .rg-sk { --sk-code: #7CC59A; }

/* Hero */
.rg-sk-kicker { gap: 10px; align-items: center; flex-wrap: wrap; }
.rg-sk-path { font: 600 1.125rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0; text-transform: none; color: var(--sk-ink); }
.rg-sk-path::before { content: "$ "; color: var(--sk-code); }
.rg-sk-branch { padding: 5px 10px; border-radius: 999px; background: rgba(47, 110, 70, 0.12); color: var(--sk-code); font-size: 0.6875rem; letter-spacing: 0.1em; }
.rg-sk-branch::before { content: "⎇ "; }
.rg-sk-title em::after { background: none; height: auto; bottom: auto; left: auto; right: auto; }
.rg-sk-title em { color: var(--sk-code); }
.rg-sk-title em::before { content: "<"; opacity: 0.35; font-style: normal; }
.rg-sk-title em::after { content: "/>"; position: static; z-index: auto; opacity: 0.35; font-style: normal; }

/* File tree */
.rg-sk-contents { padding: 18px 20px; border-radius: 12px; background: var(--sk-card); box-shadow: 0 0 0 1px var(--sk-line); font-family: var(--wp--preset--font-family--mono); }
.rg-sk-contents__title { margin: 0 0 8px !important; font: 600 0.9375rem/1 var(--wp--preset--font-family--mono) !important; color: var(--sk-code) !important; transform: none; }
.rg-sk-contents a { gap: 8px; padding: 6px 0; font: 500 0.9375rem/1.2 var(--wp--preset--font-family--mono); }
.rg-sk-contents a i { flex: none; border: 0; transform: none; font-style: normal; color: var(--sk-pencil); }
.rg-sk-contents a span { flex: 1; }
.rg-sk-contents a b { color: var(--sk-pencil); font-size: 0.75rem; }

/* Filter flags */
.rg-sk-chip { font-family: var(--wp--preset--font-family--mono); font-weight: 500; }

/* Section heads: commit chips */
.rg-sk-head .rg-sk-num {
	transform: none; padding: 6px 10px; border-radius: 6px; font: 500 0.8125rem/1 var(--wp--preset--font-family--mono);
	color: var(--sk-code); background: rgba(47, 110, 70, 0.1); box-shadow: none; white-space: nowrap;
}
.rg-sk-head .rg-sk-num span { color: var(--sk-pencil); }
.rg-sk-tags li { border-style: solid; }
.rg-sk-tags li::before { content: "#"; opacity: 0.5; }

/* Code-comment notes */
.rg-sk-note { width: 150px; font: 500 0.8125rem/1.45 var(--wp--preset--font-family--mono); color: var(--sk-code); transform: none !important; flex-direction: row !important; }
.rg-sk-note--2 { text-align: right; }

/* Straighten everything */
.rg-dash, .rg-chat__phone, .rg-hack__screen, .rg-js .rg-pw.rg-reveal.is-in, .rg-pw { transform: none; }
.rg-dash::before, .rg-hack__screen::after { display: none; }
.rg-hack__how { font: 500 0.8125rem/1.5 var(--wp--preset--font-family--mono); color: var(--sk-pencil); transform: none; }
.rg-hack__how::before { content: "// "; color: var(--sk-code); }
.rg-sk-flow { border-style: solid; border-width: 1px; border-radius: 12px; background: var(--sk-card); }
.rg-sk-flow__title { font: 500 0.9375rem/1 var(--wp--preset--font-family--mono) !important; color: var(--sk-code) !important; transform: none; }
.rg-sk-flow__nodes button { border-radius: 8px; border-width: 1.5px; font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.875rem; }
.rg-sk-flow__nodes button:hover { transform: translateY(-2px); }

/* Snippets: file windows instead of taped scraps */
.rg-scrap, .rg-js .rg-scrap.rg-reveal.is-in { transform: none; border-radius: 12px; padding: 0 22px 22px; overflow: hidden; }
.rg-scrap::before { display: none; }
.rg-scrap:hover, .rg-js .rg-scrap.rg-reveal.is-in:hover { transform: translateY(-4px); }
.rg-scrap__label {
	display: flex; align-items: center; gap: 10px; margin: 0 -22px 18px !important; padding: 10px 14px;
	font: 500 0.8125rem/1 var(--wp--preset--font-family--mono) !important; color: var(--sk-muted) !important;
	background: rgba(31, 42, 36, 0.05); border-bottom: 1px solid var(--sk-line);
}
.rg-scrap__label span { width: 34px; height: 8px; background: radial-gradient(circle at 4px 4px, #E0705A 3.5px, transparent 4px), radial-gradient(circle at 17px 4px, #E8B86B 3.5px, transparent 4px), radial-gradient(circle at 30px 4px, #6FB07F 3.5px, transparent 4px); }
html[data-rg-mode="weekend"] .rg-scrap__label { background: rgba(255, 255, 255, 0.04); }

/* End */
.rg-sk-end__scribble { font: 500 0.9375rem/1 var(--wp--preset--font-family--mono) !important; color: var(--sk-code) !important; transform: none; }
html[data-rg-mode="weekend"] .rg-sk-title em::after, html[data-rg-mode="weekend"] .rg-sk-title em::before { opacity: 0.4; }

/* Timeline globe */
.rg-sk-globe__more { margin: 22px 0 0; }
