/* ==========================================================================
   RD Client Portal – frontend
   Culorile și fonturile vin din variabile (setate din Setări / Breakdance):
   --rdp-ink, --rdp-paper, --rdp-accent, --rdp-on-accent, --rdp-heading,
   --rdp-radius, --rdp-shadow, --rdp-shadow-lg
   ========================================================================== */

.rdp {
	--rdp-surface: #fff;
	--rdp-line: 2px solid var(--rdp-ink);
	--rdp-muted: color-mix(in srgb, var(--rdp-ink) 70%, transparent);
	--rdp-soft: color-mix(in srgb, var(--rdp-ink) 8%, var(--rdp-surface));
	--rdp-ok: #E4F0DF;
	--rdp-ok-ink: #2F6526;
	--rdp-bad-ink: #B3261E;
	--rdp-wait: color-mix(in srgb, var(--rdp-accent) 28%, #fff);
	--rdp-r-sm: calc(var(--rdp-radius) * .66);
	color: var(--rdp-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.rdp *, .rdp *::before, .rdp *::after { box-sizing: border-box; }
/* Portalul ocupă lățimea containerului (temele „constrained” l-ar îngusta). */
.rdp.rdp-dash, .rdp.rdp-guide, .rdp.rdp-quiz, .rdp.rdp-login { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }
.rdp p, .rdp h1, .rdp h2, .rdp h3, .rdp ul, .rdp ol, .rdp figure, .rdp fieldset { margin: 0; }
.rdp ul, .rdp ol { padding: 0; list-style: none; }
.rdp fieldset { border: 0; padding: 0; min-width: 0; }
.rdp img { max-width: 100%; height: auto; display: block; }
.rdp .rdp-h, .rdp h1, .rdp h2, .rdp h3 { color: var(--rdp-heading); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.rdp a { color: inherit; }
.rdp :focus-visible { outline: 3px solid var(--rdp-accent); outline-offset: 2px; }
.rdp [hidden] { display: none !important; }

/* ---------- Tipografie utilitară ---------- */
.rdp-title-xl { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.rdp-title-lg { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.rdp-title-md { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.rdp-title-sm { font-size: 1.35rem; }
.rdp-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rdp-muted); }
.rdp-eyebrow { font-size: .85rem; color: var(--rdp-muted); margin-bottom: .5em; }
.rdp-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0; }
.rdp-muted { color: var(--rdp-muted); }
.rdp-small { font-size: .82rem; }
.rdp-prose p + p { margin-top: .8em; }
.rdp-link { font-weight: 600; text-underline-offset: 3px; }
.rdp-note { padding: 16px; border: var(--rdp-line); border-radius: var(--rdp-radius); }

/* ---------- Layout utilitar ---------- */
.rdp-row { display: flex; align-items: center; gap: 10px; }
.rdp-row--wrap { flex-wrap: wrap; }
.rdp-row--between { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rdp-row--end { align-items: flex-end; }
.rdp-stack { display: flex; flex-direction: column; gap: 1.1em; min-width: 0; }
.rdp-center { max-width: 520px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- Componente ---------- */
.rdp-card { background: var(--rdp-surface); border: var(--rdp-line); border-radius: var(--rdp-radius); padding: 22px; }
.rdp-card--shadow { box-shadow: var(--rdp-shadow); }
.rdp-card--ink { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-card--ink .rdp-h { color: inherit; }

.rdp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px;
	border: var(--rdp-line); border-radius: var(--rdp-r-sm);
	background: var(--rdp-surface); color: var(--rdp-ink);
	font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.1;
	text-decoration: none; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.rdp .rdp-btn, .rdp .rdp-btn:hover, .rdp .rdp-btn:visited { color: var(--rdp-ink); }
.rdp-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rdp-ink); }
.rdp .rdp-btn--primary { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp .rdp-btn--primary:hover, .rdp .rdp-btn--primary:visited { color: var(--rdp-paper); }
.rdp-btn--primary:hover { box-shadow: 4px 4px 0 var(--rdp-accent); }
.rdp .rdp-btn--light, .rdp .rdp-btn--light:hover { background: var(--rdp-paper); color: var(--rdp-ink); border-color: var(--rdp-paper); }
.rdp-btn--lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.rdp-btn--sm { min-height: 40px; padding: 0 12px; font-size: .85em; }
.rdp-btn[disabled] { opacity: .5; pointer-events: none; }
.rdp-icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: var(--rdp-surface); color: var(--rdp-ink); }
.rdp-round { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: var(--rdp-line); border-radius: 50%; background: var(--rdp-surface); color: var(--rdp-ink); cursor: pointer; }
.rdp-round--ink { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-round[disabled] { opacity: .35; cursor: default; }

.rdp-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1.5px solid var(--rdp-ink); border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--rdp-surface); white-space: nowrap; }
.rdp-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rdp-muted); }
.rdp-status.is-ok, .rdp-status.is-aprobat, .rdp-status.is-final { background: var(--rdp-ok); }
.rdp-status.is-ok::before, .rdp-status.is-aprobat::before, .rdp-status.is-final::before { background: var(--rdp-ok-ink); }
.rdp-status.is-wait, .rdp-status.is-de_aprobat { background: var(--rdp-wait); }
.rdp-status.is-wait::before, .rdp-status.is-de_aprobat::before { background: var(--rdp-accent); }
.rdp-tag { padding: 3px 8px; border: 1.5px solid var(--rdp-ink); border-radius: 4px; font-size: .75rem; }

.rdp-input {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: var(--rdp-line); border-radius: var(--rdp-r-sm);
	background: var(--rdp-surface); color: var(--rdp-ink);
	font: inherit; font-size: 1rem;
}
textarea.rdp-input { resize: vertical; min-height: 110px; }
.rdp-field { display: flex; flex-direction: column; gap: 8px; }
.rdp-field > label, .rdp-field > legend { font-weight: 600; }
.rdp-field > legend { margin-bottom: 10px; padding: 0; }

.rdp-segment { display: inline-flex; gap: 4px; padding: 4px; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: var(--rdp-surface); width: fit-content; }
.rdp-segment button { min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: calc(var(--rdp-r-sm) * .7); background: transparent; color: var(--rdp-ink); font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; }
.rdp-segment button[aria-pressed="true"] { background: var(--rdp-ink); color: var(--rdp-paper); }

.rdp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rdp-pill { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1.5px solid var(--rdp-ink); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; background: var(--rdp-surface); }
.rdp .rdp-pill.is-active { color: var(--rdp-paper); }
.rdp-pill.is-active { background: var(--rdp-ink); color: var(--rdp-paper); }

.rdp-alert { padding: 12px 14px; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: #FBE4E1; font-weight: 600; }
.rdp-alert--ok { background: var(--rdp-ok); margin-bottom: 20px; }

.rdp-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 99999; transform: translateX(-50%);
	padding: 12px 20px; border-radius: 999px;
	background: var(--rdp-ink); color: var(--rdp-paper);
	font-size: .92rem; font-weight: 600; box-shadow: 4px 4px 0 var(--rdp-accent);
	max-width: calc(100vw - 32px);
}

/* ---------- Bara de sus ---------- */
.rdp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 24px; border: var(--rdp-line); border-radius: var(--rdp-radius); background: var(--rdp-surface); }
.rdp-bar__left, .rdp-bar__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rdp-bar__studio { font-size: 1.15rem; }
.rdp-bar__sep { width: 2px; height: 22px; background: var(--rdp-ink); }
.rdp-bar__title { font-weight: 600; }
.rdp-bar__back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 44px; }
.rdp-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rdp-ink); color: var(--rdp-paper); font-weight: 700; font-size: .85rem; }

/* ==========================================================================
   Login
   ========================================================================== */
.rdp-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: var(--rdp-line); border-radius: var(--rdp-radius); overflow: hidden; background: var(--rdp-surface); min-height: 560px; }
.rdp-login__intro { position: relative; overflow: hidden; padding: 48px; background: var(--rdp-ink); color: var(--rdp-paper); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.rdp-login__studio { font-weight: 800; font-size: 1.2rem; position: relative; }
.rdp-login__pitch { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.rdp-login .rdp-login__headline { color: inherit; font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: .98; letter-spacing: -0.04em; }
.rdp-login__shape { position: absolute; right: -110px; bottom: -110px; width: 340px; height: 340px; border-radius: 50%; background: var(--rdp-accent); }
.rdp-login__form { padding: 48px clamp(24px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.rdp-login__form h1 { font-size: clamp(2rem, 3vw, 2.6rem); }
.rdp-login form p { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.rdp-login form label { font-weight: 600; }
.rdp-login form input[type=text], .rdp-login form input[type=password] { width: 100%; min-height: 52px; padding: 0 16px; border: var(--rdp-line); border-radius: var(--rdp-r-sm); font: inherit; background: var(--rdp-surface); color: var(--rdp-ink); }
.rdp-login form .login-remember label { flex-direction: row; display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; }
.rdp-login form .login-remember input { width: 20px; height: 20px; accent-color: var(--rdp-ink); }
.rdp-login form input[type=submit] { width: 100%; min-height: 56px; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: var(--rdp-ink); color: var(--rdp-paper); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 6px 6px 0 var(--rdp-accent); }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.rdp-dash { display: flex; flex-direction: column; gap: 32px; }
.rdp-dash__layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.rdp-dash__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.rdp-dash__side { flex: 1 1 300px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .rdp-dash__side { max-width: 360px; } }
.rdp-dash .rdp-label { margin-bottom: 14px; }

.rdp-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.rdp-doc { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.rdp-doc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rdp-doc__icon { width: 48px; height: 48px; flex: none; border: var(--rdp-line); border-radius: var(--rdp-r-sm); display: inline-flex; align-items: center; justify-content: center; }
.rdp-tone-accent { background: var(--rdp-accent); color: var(--rdp-on-accent); }
.rdp-tone-ink { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-tone-paper { background: var(--rdp-soft); color: var(--rdp-ink); }
.rdp-doc__title { font-size: 1.2rem; line-height: 1.15; }
.rdp-doc__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.rdp-timeline { display: flex; flex-direction: column; gap: 18px; }
.rdp-timeline__track { display: grid; grid-template-columns: repeat(var(--rdp-cols, 5), minmax(0, 1fr)); gap: 8px; }
.rdp-phase { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--rdp-ink); text-align: left; font: inherit; cursor: pointer; }
.rdp-phase__bar { height: 10px; border-radius: 5px; border: 1.5px solid var(--rdp-ink); background: var(--rdp-surface); }
.rdp-phase.is-done .rdp-phase__bar { background: var(--rdp-ink); }
.rdp-phase.is-now .rdp-phase__bar { background: var(--rdp-accent); }
.rdp-phase__box { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 2px solid transparent; border-radius: var(--rdp-r-sm); }
.rdp-phase.is-selected .rdp-phase__box { border-color: var(--rdp-ink); background: var(--rdp-soft); }
.rdp-phase__name { font-weight: 700; font-size: .95rem; }
.rdp-phase__state { font-size: .8rem; font-weight: 600; color: var(--rdp-muted); }
.rdp-phase.is-done .rdp-phase__state { color: var(--rdp-ok-ink); }
.rdp-phase.is-now .rdp-phase__state { color: var(--rdp-ink); }
.rdp-timeline__detail { padding: 14px 16px; border: 1.5px solid var(--rdp-ink); border-radius: var(--rdp-r-sm); background: var(--rdp-soft); }

.rdp-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rdp-project { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.rdp-project:hover { transform: translate(-3px, -3px); box-shadow: var(--rdp-shadow); }
.rdp-project__media { display: block; aspect-ratio: 16 / 10; background: var(--rdp-ink); border-bottom: var(--rdp-line); overflow: hidden; }
.rdp-project__media img { width: 100%; height: 100%; object-fit: cover; }
.rdp-project__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 20px; color: var(--rdp-paper); font-size: 1.6rem; text-align: center; }
.rdp-project__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.rdp-project__title { font-size: 1.25rem; }
.rdp-project__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }

.rdp-next { background: var(--rdp-accent); color: var(--rdp-on-accent); display: flex; flex-direction: column; gap: 10px; }
.rdp-next .rdp-label, .rdp-next .rdp-h { color: inherit; }
.rdp-activity { display: flex; flex-direction: column; gap: 14px; margin-top: 14px !important; }
.rdp-activity li { display: flex; gap: 12px; font-size: .92rem; }
.rdp-activity__dot { width: 10px; height: 10px; flex: none; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--rdp-ink); background: var(--rdp-surface); }
.rdp-activity li.is-new .rdp-activity__dot { background: var(--rdp-accent); }
.rdp-card--ink p:not(.rdp-h) { margin: 10px 0 16px; }

/* ==========================================================================
   Guideline (slide-uri)
   ========================================================================== */
.rdp-guide { display: flex; flex-direction: column; gap: 24px; }
.rdp-guide__layout { display: flex; gap: 28px; align-items: flex-start; }
.rdp-guide__main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }

.rdp-toc { flex: none; width: 250px; }
.rdp-toc__label { margin-bottom: 10px; padding-left: 12px; }
.rdp-toc__list { display: flex; flex-direction: column; gap: 2px; }
.rdp-toc__list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--rdp-r-sm); text-decoration: none; font-size: .92rem; font-weight: 500; }
.rdp-toc__list a .rdp-mono { font-size: .78rem; color: var(--rdp-muted); }
.rdp-toc__list a:hover { background: var(--rdp-soft); }
.rdp .rdp-toc__list a.is-active { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-toc__list a.is-active .rdp-mono { color: var(--rdp-accent); }

.rdp-stage { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.rdp-slide {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column;
	padding: 2.6em;
	background: var(--rdp-slide-bg, var(--rdp-surface));
	color: var(--rdp-slide-fg, var(--rdp-ink));
	border: var(--rdp-line); border-radius: var(--rdp-radius);
	scroll-margin-top: 90px;
}
.rdp-slide > * { width: 100%; }
.rdp-fill { flex: 1; min-height: 0; }
.rdp-slide__note { max-width: 32em; font-size: .92em; }
.rdp-slide .rdp-eyebrow { margin-bottom: .35em; }

.rdp-controls { display: none; width: 100%; align-items: center; gap: 18px; }
.rdp-progress { flex: 1; display: grid; grid-template-columns: repeat(var(--rdp-cols, 10), minmax(0, 1fr)); gap: 6px; }
.rdp-progress button { height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.rdp-progress span { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--rdp-soft); border: 1px solid color-mix(in srgb, var(--rdp-ink) 25%, transparent); }
.rdp-progress button.is-past span { background: var(--rdp-ink); border-color: var(--rdp-ink); }
.rdp-counter { min-width: 72px; text-align: center; }

/* --- Copertă --- */
.rdp-slide--cover { --rdp-slide-bg: var(--rdp-ink); --rdp-slide-fg: var(--rdp-paper); }
.rdp-slide--cover[style*="--rdp-slide-bg"] { background: var(--rdp-slide-bg); color: var(--rdp-slide-fg); }
.rdp-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2em; min-height: 22em; height: 100%; }
.rdp-cover > *:not(.rdp-cover__shape) { position: relative; z-index: 1; }
.rdp-cover .rdp-label { color: inherit; opacity: .9; }
.rdp-cover__main { flex: 1; display: flex; align-items: center; }
.rdp-cover__logo { max-height: 9em; width: auto; max-width: 70%; }
.rdp-slide .rdp-cover__title { color: inherit; font-size: 5.5em; letter-spacing: -0.04em; }
.rdp-cover__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; font-size: .92em; font-weight: 600; }
.rdp-cover__shape { position: absolute; right: -9em; bottom: -11em; width: 28em; height: 28em; border-radius: 50%; background: var(--rdp-accent); z-index: 0; }

/* --- Split --- */
.rdp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.6em; height: 100%; align-items: center; }
.rdp-split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
.rdp-split--solo { grid-template-columns: minmax(0, 1fr); max-width: 44em; }
.rdp-split--files { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.rdp-split__media { height: 100%; min-height: 14em; }

/* --- Figuri --- */
.rdp-fig { display: flex; flex-direction: column; border: var(--rdp-line); border-radius: var(--rdp-r-sm); overflow: hidden; background: var(--rdp-surface); color: var(--rdp-ink); min-height: 0; }
.rdp-fig img { width: 100%; height: 100%; flex: 1; min-height: 0; object-fit: cover; aspect-ratio: 4 / 3; }
.rdp-fig figcaption { display: flex; align-items: center; gap: .5em; padding: .6em .9em; border-top: var(--rdp-line); font-size: .85em; font-weight: 600; background: var(--rdp-surface); }
.rdp-fig--cover { height: 100%; }
.rdp-fig--do figcaption .rdp-icon { color: var(--rdp-ok-ink); flex: none; }
.rdp-fig--dont figcaption .rdp-icon { color: var(--rdp-bad-ink); flex: none; }

/* --- Logo --- */
.rdp-logo-preview { display: flex; align-items: center; justify-content: center; min-height: 16em; padding: 2em; border: var(--rdp-line); border-radius: var(--rdp-radius); background: #fff; transition: background .2s ease; }
.rdp-logo-preview[data-bg="dark"] { background: var(--rdp-ink); }
.rdp-logo-preview[data-bg="accent"] { background: var(--rdp-accent); }
.rdp-logo-preview img { max-width: 75%; max-height: 70%; width: auto; object-fit: contain; }
.rdp-downloads { display: flex; flex-direction: column; gap: .5em; }
.rdp-downloads .rdp-row { flex-wrap: wrap; }

/* --- Galerie, mockups, do/don't --- */
.rdp-gallery { display: grid; grid-template-columns: repeat(var(--rdp-cols, 3), minmax(0, 1fr)); gap: 1em; }
.rdp-mockups { display: grid; gap: 1.1em; }
.rdp-mockups--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rdp-mockups--full { grid-template-columns: minmax(0, 1fr); }
.rdp-mockups .rdp-fig img { aspect-ratio: auto; }
.rdp-dodont { display: grid; grid-template-columns: repeat(auto-fit, minmax(12em, 1fr)); gap: 1em; }

/* --- Culori --- */
.rdp-swatches { display: grid; grid-template-columns: repeat(var(--rdp-cols, 5), minmax(0, 1fr)); gap: 1em; }
.rdp-swatch { display: flex; flex-direction: column; padding: 0; border: var(--rdp-line); border-radius: var(--rdp-radius); overflow: hidden; background: var(--rdp-surface); color: var(--rdp-ink); font: inherit; text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.rdp-swatch:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rdp-ink); }
.rdp-swatch__color { flex: 1; min-height: 8em; display: flex; align-items: flex-end; padding: .9em; font-size: .85em; font-weight: 600; }
.rdp-swatch__info { display: flex; flex-direction: column; gap: .2em; padding: .9em; border-top: var(--rdp-line); font-size: .9em; }
.rdp-swatch__info .rdp-mono { font-size: .88em; }

/* --- Tipografie --- */
.rdp-typo { --rdp-type-scale: 1; }
.rdp-typo__preview { display: flex; align-items: center; min-height: 6.5em; padding: .6em 1.2em; border: var(--rdp-line); border-radius: var(--rdp-radius); background: var(--rdp-surface); overflow: hidden; color: var(--rdp-heading); }
.rdp-typo__preview span { font-size: calc(3.6em * var(--rdp-type-scale)); line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdp-fonts { display: grid; grid-template-columns: repeat(var(--rdp-cols, 2), minmax(0, 1fr)); gap: 1em; }
.rdp-font { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.2em; border: var(--rdp-line); border-radius: var(--rdp-radius); background: var(--rdp-surface); color: var(--rdp-ink); font: inherit; text-align: left; cursor: pointer; }
.rdp-font > span:first-child { display: flex; flex-direction: column; gap: .15em; }
.rdp-font.is-active { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-font.is-active .rdp-label, .rdp-font.is-active .rdp-muted { color: inherit; opacity: .85; }
.rdp-font__name { font-size: 1.35em; font-weight: 700; }
.rdp-font__aa { font-size: 3.2em; font-weight: 700; line-height: 1; }

/* --- Fișiere + feedback --- */
.rdp-files { display: flex; flex-direction: column; border: var(--rdp-line); border-radius: var(--rdp-radius); overflow: hidden; background: var(--rdp-surface); }
.rdp-files li { display: flex; align-items: center; gap: .9em; padding: .7em .9em; border-bottom: 1.5px solid var(--rdp-soft); }
.rdp-files li:last-child { border-bottom: 0; }
.rdp-files__ext { width: 2.8em; height: 2.8em; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rdp-r-sm); background: var(--rdp-ink); color: var(--rdp-paper); font-size: .72em; }
.rdp-files__name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rdp-feedback { display: flex; flex-direction: column; gap: .7em; background: var(--rdp-soft); }
.rdp-feedback label { font-weight: 600; font-size: .92em; }
.rdp-feedback hr { width: 100%; border: 0; border-top: 1.5px solid color-mix(in srgb, var(--rdp-ink) 20%, transparent); margin: .3em 0; }
.rdp-approved { display: flex; align-items: center; gap: .6em; padding: .9em; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: var(--rdp-surface); }
.rdp-approved .rdp-icon { color: var(--rdp-ok-ink); }

/* ---------- Mod prezentare (desktop): slide-uri 16:9 ---------- */
@media (min-width: 1024px) {
	.rdp-guide[data-ready] .rdp-stage {
		aspect-ratio: 16 / 9;
		max-width: min(100%, calc((100vh - 220px) * 16 / 9));
		container-type: inline-size;
		display: block;
	}
	.rdp-guide[data-ready] .rdp-slide {
		display: none;
		width: 100%; height: 100%;
		font-size: 1.45cqw;
		padding: 3.2em;
		box-shadow: var(--rdp-shadow-lg);
	}
	.rdp-guide[data-ready] .rdp-slide.is-active { display: flex; animation: rdp-in .25s ease; }
	.rdp-guide[data-ready] .rdp-controls { display: flex; max-width: min(100%, calc((100vh - 220px) * 16 / 9)); }
	.rdp-guide[data-ready] .rdp-slide .rdp-title-lg { font-size: 3.4em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-title-md { font-size: 2.4em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-title-sm { font-size: 1.5em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-label { font-size: .78em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-btn { min-height: 2.9em; font-size: .9em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-input { min-height: 2.9em; font-size: .95em; padding: .6em .9em; }
	.rdp-guide[data-ready] .rdp-slide textarea.rdp-input { min-height: 5.5em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-card { padding: 1.4em; }
	.rdp-guide[data-ready] .rdp-fill > .rdp-gallery,
	.rdp-guide[data-ready] .rdp-fill > .rdp-mockups,
	.rdp-guide[data-ready] .rdp-fill > .rdp-swatches,
	.rdp-guide[data-ready] .rdp-fill > .rdp-dodont { flex: 1; min-height: 0; }
	.rdp-guide[data-ready] .rdp-fill > .rdp-dodont { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
	.rdp-guide[data-ready] .rdp-fill .rdp-fig img { aspect-ratio: auto; }
	.rdp-guide[data-ready] .rdp-slide--files { overflow: auto; }
}
@keyframes rdp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rdp *, .rdp *::before { animation: none !important; transition: none !important; } }

/* ==========================================================================
   Chestionar
   ========================================================================== */
.rdp-quiz { display: flex; flex-direction: column; gap: 24px; }
.rdp-saved { font-size: .85rem; font-weight: 600; color: var(--rdp-ok-ink); }
.rdp-quiz__layout { display: flex; gap: 40px; align-items: flex-start; }
.rdp-quiz__steps { flex: none; width: 290px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.rdp-quiz__steps ol { display: flex; flex-direction: column; gap: 6px; }
.rdp-quiz__steps button { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 12px; border: 2px solid transparent; border-radius: var(--rdp-r-sm); background: transparent; color: var(--rdp-ink); font: inherit; text-align: left; cursor: pointer; }
.rdp-quiz__steps button > span:last-child { display: flex; flex-direction: column; }
.rdp-quiz__steps button.is-current { border-color: var(--rdp-ink); background: var(--rdp-surface); }
.rdp-step__dot { width: 30px; height: 30px; flex: none; border-radius: 50%; border: var(--rdp-line); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; background: var(--rdp-surface); }
.rdp-quiz__steps button.is-current .rdp-step__dot { background: var(--rdp-accent); color: var(--rdp-on-accent); }
.rdp-quiz__steps button.is-past .rdp-step__dot { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-meter { height: 10px; border: 1.5px solid var(--rdp-ink); border-radius: 5px; background: var(--rdp-surface); overflow: hidden; margin: 8px 0; }
.rdp-meter span { display: block; height: 100%; background: var(--rdp-accent); transition: width .25s ease; }

.rdp-quiz__form { flex: 1; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.rdp-quiz__step { display: flex; flex-direction: column; gap: 26px; }
.rdp-quiz__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: var(--rdp-line); }
.rdp-quiz.is-done fieldset[disabled] .rdp-input { background: var(--rdp-soft); }

.rdp-chip { position: relative; cursor: pointer; }
.rdp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rdp-chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: var(--rdp-line); border-radius: 999px; background: var(--rdp-surface); font-weight: 600; }
.rdp-chip input:checked + span { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-chip input:focus-visible + span { outline: 3px solid var(--rdp-accent); outline-offset: 2px; }

.rdp-scales { display: flex; flex-direction: column; gap: 18px; }
.rdp-scale { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; align-items: center; gap: 16px; font-weight: 600; }
.rdp-scale span:first-child { text-align: right; }
.rdp-scale input { width: 100%; height: 30px; accent-color: var(--rdp-ink); }

.rdp-moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rdp-mood { position: relative; display: flex; flex-direction: column; border: var(--rdp-line); border-radius: var(--rdp-radius); overflow: hidden; background: var(--rdp-surface); cursor: pointer; transition: box-shadow .12s ease; }
.rdp-mood input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rdp-mood__art { height: 104px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rdp-mood__art span:not(:last-child) { width: 40px; height: 40px; }
.rdp-mood__art span:last-child { font-size: 28px; font-weight: 700; }
.rdp-mood__name { padding: 12px 14px; border-top: var(--rdp-line); font-weight: 600; }
.rdp-mood:has(input:checked) { box-shadow: 6px 6px 0 var(--rdp-accent); }
.rdp-mood:has(input:checked) .rdp-mood__name { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-mood:has(input:focus-visible) { outline: 3px solid var(--rdp-accent); outline-offset: 2px; }

.rdp-quiz__thanks .rdp-card { max-width: 560px; display: flex; flex-direction: column; gap: 18px; padding: 40px; box-shadow: var(--rdp-shadow-lg); }
.rdp-badge-check { width: 64px; height: 64px; border-radius: 50%; border: var(--rdp-line); background: var(--rdp-accent); color: var(--rdp-on-accent); display: inline-flex; align-items: center; justify-content: center; }

/* ==========================================================================
   Mobil și tabletă
   ========================================================================== */
@media (max-width: 1023px) {
	.rdp-guide__layout { flex-direction: column; gap: 16px; }
	.rdp-toc { width: 100%; position: sticky; top: 0; z-index: 5; background: var(--rdp-paper); padding: 8px 0; }
	.rdp-toc__label { display: none; }
	.rdp-toc__list { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; }
	.rdp-toc__list a { flex: none; min-height: 40px; border: 1.5px solid var(--rdp-ink); border-radius: 999px; background: var(--rdp-surface); white-space: nowrap; }
	.rdp-toc__list a .rdp-mono { display: none; }
	.rdp-slide { padding: 28px 20px; }
	.rdp-split, .rdp-split--wide, .rdp-split--files { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.rdp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rdp-swatches { grid-template-columns: minmax(0, 1fr); }
	.rdp-swatch { flex-direction: row; }
	.rdp-swatch__color { flex: none; width: 110px; min-height: 0; }
	.rdp-swatch__info { border-top: 0; border-left: var(--rdp-line); flex: 1; }
	.rdp-fonts { grid-template-columns: minmax(0, 1fr); }
	.rdp-typo__preview span { white-space: normal; font-size: calc(2.4rem * var(--rdp-type-scale)); }
	.rdp-slide .rdp-cover__title { font-size: 3.2rem; }
	.rdp-cover { min-height: 300px; }
	.rdp-cover__shape { width: 240px; height: 240px; right: -80px; bottom: -100px; }
	.rdp-quiz__layout { flex-direction: column; gap: 20px; }
	.rdp-quiz__steps { width: 100%; position: static; }
	.rdp-quiz__steps ol { flex-direction: row; overflow-x: auto; }
	.rdp-quiz__steps ol li { flex: none; }
	.rdp-quiz__steps button > span:last-child .rdp-muted, .rdp-quiz__steps > .rdp-card { display: none; }
}
@media (max-width: 760px) {
	.rdp-login { grid-template-columns: minmax(0, 1fr); }
	.rdp-login__intro { padding: 32px 24px; min-height: 260px; }
	.rdp-login__form { padding: 32px 24px; }
	.rdp-bar { padding: 12px 16px; }
	.rdp-bar__sep, .rdp-bar__user { display: none; }
	.rdp-timeline__track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; padding-bottom: 6px; }
	.rdp-mockups--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rdp-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rdp-scale { grid-template-columns: 1fr 1fr; }
	.rdp-scale input { grid-column: 1 / -1; grid-row: 2; }
	.rdp-scale span:first-child { text-align: left; }
	.rdp-scale span:last-child { text-align: right; }
	.rdp-quiz__nav .rdp-btn { flex: 1; }
}

/* ==========================================================================
   Meniu pentru header ([rd_portal_nav])
   ========================================================================== */
.rdp.rdp-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px 24px; flex-wrap: wrap; font-size: 15px; }
.rdp-nav__list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rdp .rdp-nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--rdp-ink); }
.rdp .rdp-nav__link:hover { background: var(--rdp-soft); color: var(--rdp-ink); }
.rdp .rdp-nav__link.is-active { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-nav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rdp-accent); border: 1.5px solid var(--rdp-ink); }
.rdp-nav__user { display: flex; align-items: center; gap: 10px; }
.rdp-nav__name { font-weight: 600; }
@media (max-width: 760px) {
	.rdp.rdp-nav { justify-content: space-between; width: 100%; }
	.rdp-nav__list { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.rdp-nav__link { white-space: nowrap; }
	.rdp-nav__name, .rdp-nav__user .rdp-avatar { display: none; }
}

/* ==========================================================================
   Chestionar: listă derulantă, alegere cu imagini, hartă de poziționare
   ========================================================================== */
.rdp-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--rdp-ink) 50%), linear-gradient(135deg, var(--rdp-ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

.rdp-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.rdp-imgcard { position: relative; display: flex; flex-direction: column; border: var(--rdp-line); border-radius: var(--rdp-radius); overflow: hidden; background: var(--rdp-surface); cursor: pointer; transition: box-shadow .12s ease, transform .12s ease; }
.rdp-imgcard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rdp-imgcard__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--rdp-soft); }
.rdp-imgcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rdp-imgcard__tick { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rdp-ink); background: var(--rdp-surface); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.rdp-imgcard__name { padding: 10px 12px; border-top: var(--rdp-line); font-weight: 600; }
.rdp-imgcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rdp-ink); }
.rdp-imgcard:has(input:checked) { box-shadow: 6px 6px 0 var(--rdp-accent); }
.rdp-imgcard:has(input:checked) .rdp-imgcard__name { background: var(--rdp-ink); color: var(--rdp-paper); }
.rdp-imgcard:has(input:checked) .rdp-imgcard__tick { background: var(--rdp-accent); color: var(--rdp-on-accent); }
.rdp-imgcard:has(input:focus-visible) { outline: 3px solid var(--rdp-accent); outline-offset: 2px; }

.rdp-mapq > .rdp-muted { margin: -4px 0 4px; }
.rdp-map__legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rdp-map__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 1.5px solid var(--rdp-ink); border-radius: 999px; background: var(--rdp-surface); color: var(--rdp-ink); font: inherit; font-weight: 600; cursor: pointer; }
.rdp-map__chip.is-active { box-shadow: 3px 3px 0 var(--rdp-ink); background: var(--rdp-soft); }
.rdp-map__swatch { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--rdp-ink); }
.rdp-map__chip:nth-child(2) .rdp-map__swatch { color: #141414; }

.rdp-map { position: relative; padding: 30px 12px; max-width: 620px; }
.rdp-map__ax { position: absolute; z-index: 1; pointer-events: none; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rdp-muted); white-space: nowrap; }
.rdp-map__ax--t { top: 4px; left: 50%; transform: translateX(-50%); }
.rdp-map__ax--b { bottom: 4px; left: 50%; transform: translateX(-50%); }
.rdp-map__ax--l, .rdp-map__ax--r { top: 50%; transform: translateY(calc(-100% - 6px)); padding: 2px 6px; border-radius: 4px; background: var(--rdp-surface); }
.rdp-map__ax--l { left: 20px; }
.rdp-map__ax--r { right: 20px; }
.rdp-map__area {
	position: relative; aspect-ratio: 1 / 1; touch-action: none; cursor: crosshair;
	border: var(--rdp-line); border-radius: var(--rdp-radius); background-color: var(--rdp-surface);
	background-image:
		linear-gradient(var(--rdp-ink), var(--rdp-ink)), linear-gradient(var(--rdp-ink), var(--rdp-ink)),
		linear-gradient(color-mix(in srgb, var(--rdp-ink) 8%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--rdp-ink) 8%, transparent) 1px, transparent 1px);
	background-size: 100% 1.5px, 1.5px 100%, 10% 10%, 10% 10%;
	background-position: 0 50%, 50% 0, 0 0, 0 0;
	background-repeat: no-repeat, no-repeat, repeat, repeat;
}
.rdp-map__dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rdp-ink), 3px 3px 0 2px rgba(20,20,20,.25); font: inherit; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; cursor: grab; padding: 0; transition: transform .1s ease; }
.rdp-map__dot.is-active { transform: scale(1.18); z-index: 2; }
.rdp-map__dot:active { cursor: grabbing; }
.rdp-map__dot:focus-visible { outline: 3px solid var(--rdp-accent); outline-offset: 3px; }
.rdp-map__status { min-height: 1.4em; color: var(--rdp-muted); }
.rdp-quiz fieldset[disabled] .rdp-map__area { cursor: default; }
.rdp-quiz fieldset[disabled] .rdp-map__dot { cursor: default; }

@media (max-width: 760px) {
	.rdp-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rdp-map { padding: 28px 0; }
	.rdp-map__ax--l, .rdp-map__ax--r { font-size: .7rem; }
	.rdp-map__ax--l { left: 6px; }
	.rdp-map__ax--r { right: 6px; }
}

/* ==========================================================================
   Instrumente
   ========================================================================== */
.rdp-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.rdp .rdp-toolcard { display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none; color: var(--rdp-ink); transition: transform .12s ease, box-shadow .12s ease; }
.rdp-toolcard:hover { transform: translate(-3px, -3px); box-shadow: var(--rdp-shadow); }
.rdp-toolcard__icon { width: 52px; height: 52px; flex: none; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: var(--rdp-accent); color: var(--rdp-on-accent); display: inline-flex; align-items: center; justify-content: center; }
.rdp-toolcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rdp-toolcard__name { font-size: 1.15rem; }
.rdp-toolcard__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; white-space: nowrap; }

.rdp-toolview { display: flex; flex-direction: column; gap: 18px; }
.rdp.rdp-toolview { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }
.rdp-toolview__frame { border: var(--rdp-line); border-radius: var(--rdp-radius); overflow: hidden; background: var(--rdp-surface); box-shadow: var(--rdp-shadow); }
.rdp-toolview__frame iframe { display: block; width: 100%; height: max(640px, calc(100vh - 200px)); border: 0; }
.rdp-toolview__frame { position: relative; }
.rdp-toolview__close { display: none; }
html.rdp-noscroll, html.rdp-noscroll body { overflow: hidden !important; }
.rdp-toolview.is-expanded .rdp-toolview__frame { position: fixed; inset: 0; z-index: 2147483000; border: 0; border-radius: 0; box-shadow: none; }
.rdp-toolview.is-expanded .rdp-toolview__frame iframe { height: 100vh !important; height: 100dvh !important; }
.rdp-toolview.is-expanded .rdp-toolview__close {
	display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 2; top: 12px; right: 12px;
	min-height: 40px; padding: 0 14px; border: 2px solid var(--rdp-ink); border-radius: 999px;
	background: var(--rdp-surface); color: var(--rdp-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	box-shadow: 3px 3px 0 var(--rdp-ink); opacity: .92;
}
.rdp-toolview.is-expanded .rdp-toolview__close:hover { opacity: 1; }
.rdp-toolview__frame:fullscreen { border: 0; border-radius: 0; }
.rdp-toolview__frame:fullscreen iframe { height: 100vh !important; }
.rdp-toolview [data-rdp-expand][aria-pressed="true"] { background: var(--rdp-ink); color: var(--rdp-paper); }
@media (max-width: 760px) {
	.rdp-toolview__frame iframe { height: max(560px, calc(100vh - 140px)); }
	.rdp-toolview.is-expanded .rdp-toolview__close { top: auto; bottom: 14px; right: 14px; }
}
.rdp-showpass { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -4px 0 10px; font-size: .92rem; cursor: pointer; }
.rdp-showpass input { width: 20px; height: 20px; accent-color: var(--rdp-ink); }
.rdp-login .rdp-alert { margin-bottom: 4px; }
.rdp-login__studio, .rdp-login__pitch { z-index: 1; }
.rdp-login__shape { z-index: 0; }
.rdp-login__form { position: relative; }
.rdp-langswitch { position: absolute; top: 20px; right: 20px; display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--rdp-ink); border-radius: 999px; background: var(--rdp-surface); }
.rdp .rdp-langswitch a { min-width: 40px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--rdp-ink); }
.rdp .rdp-langswitch a.is-active { background: var(--rdp-ink); color: var(--rdp-paper); }
@media (max-width: 760px) { .rdp-langswitch { top: 14px; right: 14px; } }

/* ---------- Pagină goală (chestionar / unealtă indisponibilă) ---------- */
.rdp-empty { max-width: 1400px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) 20px; }
.rdp-empty .rdp-center { margin: 0 auto; padding: clamp(28px, 4vw, 48px); }
.rdp-empty .rdp-center p { margin: 0; }

/* ---------- Formular „Trimite un mesaj” ---------- */
.rdp-modal { padding: 0; border: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; color: var(--rdp-ink); overflow: visible; }
.rdp-modal::backdrop { background: color-mix(in srgb, var(--rdp-ink) 45%, transparent); backdrop-filter: blur(2px); }
.rdp-modal[open] { animation: rdp-pop .18s ease-out; }
@keyframes rdp-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rdp-modal__box { background: var(--rdp-paper); border: var(--rdp-line); border-radius: var(--rdp-radius); box-shadow: var(--rdp-shadow-lg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; position: relative; }
.rdp-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rdp-modal__head .rdp-h { margin: 0; }
.rdp .rdp-modal__x { width: 40px; height: 40px; border-radius: 50%; border: var(--rdp-line); background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.rdp-modal__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; }
.rdp-modal__meta > span { display: flex; flex-direction: column; gap: 2px; }
.rdp-modal__foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.rdp-modal .rdp-toast { position: absolute; left: 50%; bottom: -56px; transform: translateX(-50%); }
@media (max-width: 600px) {
	.rdp-modal { margin: auto 12px 12px; max-width: none; width: auto; }
	.rdp-modal__foot .rdp-btn { flex: 1; justify-content: center; }
}

/* ---------- Header-ul portalului [rd_portal_header] ---------- */
.rdp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rdp.rdp-header { position: relative; z-index: 50; width: 100%; background: transparent; }
.rdp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rdp .rdp-header__brand { font-family: var(--rdp-heading, inherit); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.01em; color: var(--rdp-ink); text-decoration: none; line-height: 1; display: inline-flex; align-items: center; }
.rdp-header__logo { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.rdp-header__menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.rdp .rdp-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--rdp-ink) 28%, transparent); background: transparent; color: var(--rdp-ink); font-size: 1.05rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.rdp .rdp-pill:hover { border-color: var(--rdp-ink); color: var(--rdp-ink); }
.rdp .rdp-pill.is-active { background: var(--rdp-ink); border-color: var(--rdp-ink); color: var(--rdp-paper); }
.rdp .rdp-pill--accent, .rdp .rdp-pill--accent:hover { background: var(--rdp-accent); border-color: var(--rdp-accent); color: var(--rdp-on-accent); }
.rdp .rdp-pill--accent:hover { filter: brightness(.95); }
.rdp-header__toggle { display: none; }
.rdp-langswitch.rdp-langswitch--inline { position: static; }
@media (max-width: 900px) {
	.rdp-header__inner { flex-wrap: wrap; }
	.rdp .rdp-header__toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--rdp-ink) 28%, transparent); background: transparent; color: var(--rdp-ink); cursor: pointer; }
	.rdp-header__burger, .rdp-header__burger::before, .rdp-header__burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
	.rdp-header__burger { position: relative; }
	.rdp-header__burger::before, .rdp-header__burger::after { content: ""; position: absolute; left: 0; }
	.rdp-header__burger::before { top: -6px; }
	.rdp-header__burger::after { top: 6px; }
	.rdp-header.is-open .rdp-header__burger { background: transparent; }
	.rdp-header.is-open .rdp-header__burger::before { transform: translateY(6px) rotate(45deg); }
	.rdp-header.is-open .rdp-header__burger::after { transform: translateY(-6px) rotate(-45deg); }
	.rdp-header__menu { display: none; flex-basis: 100%; }
	.rdp-header.is-open .rdp-header__menu { display: block; }
	.rdp-header__menu ul { flex-direction: column; align-items: stretch; padding: 6px 0 4px; }
	.rdp .rdp-header__menu .rdp-pill { width: 100%; justify-content: center; }
	.rdp-header__logo { height: 32px; }
}
body:has(.rdp-header) .rdp-dash .rdp-bar { display: none; }

/* ---------- Footer-ul portalului [rd_portal_footer] ---------- */
.rdp.rdp-footer { width: 100%; background: transparent; }
.rdp-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.rdp-footer__copy { margin: 0; font-size: 1.05rem; }
.rdp-footer__links { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.rdp .rdp-footer__mail { color: var(--rdp-ink); text-decoration: none; font-size: 1.05rem; border-bottom: 1.5px solid transparent; }
.rdp .rdp-footer__mail:hover { border-bottom-color: var(--rdp-accent); color: var(--rdp-ink); }
.rdp-footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.rdp .rdp-footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--rdp-ink); transition: background .15s; }
.rdp .rdp-footer__social a:hover { background: var(--rdp-accent); color: var(--rdp-on-accent); }
@media (max-width: 700px) {
	.rdp-footer__inner { flex-direction: column-reverse; text-align: center; }
	.rdp-footer__links { justify-content: center; flex-direction: column; }
}
body:has(.rdp-header .rdp-langswitch) .rdp-login .rdp-langswitch { display: none; }

/* ---------- Fundal logo din culorile brandului ---------- */
.rdp-segment--colors { flex-wrap: wrap; max-width: 100%; }
.rdp-segment--colors button { display: inline-flex; align-items: center; gap: .5em; }
.rdp-chip-dot { width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.rdp-segment button[aria-pressed="true"] .rdp-chip-dot { border-color: var(--rdp-paper); }

/* ---------- Mockups: imagini 16:9 ---------- */
.rdp .rdp-mockups .rdp-fig img { aspect-ratio: 16 / 9; width: 100%; height: auto; flex: none; object-fit: cover; }
.rdp .rdp-mockups .rdp-fig--cover { height: auto; }
/* 2 coloane: pătrate 1:1 */
.rdp .rdp-mockups--two .rdp-fig img, .rdp-guide[data-ready] .rdp-fill .rdp-mockups--two .rdp-fig img { aspect-ratio: 1 / 1; }
@media (min-width: 1024px) {
	.rdp-guide[data-ready] .rdp-fill > .rdp-mockups { flex: 1; min-height: 0; align-content: center; }
	.rdp-guide[data-ready] .rdp-fill .rdp-mockups--full .rdp-fig img { aspect-ratio: 16 / 9; }
	/* 2 coloane: pătratele cât încap pe înălțimea slide-ului, centrate. */
	.rdp-guide[data-ready] .rdp-fill > .rdp-mockups--two { container-type: size; grid-template-columns: repeat(2, auto); justify-content: center; }
	.rdp-guide[data-ready] .rdp-mockups--two .rdp-fig { width: min(calc((100cqw - 1.1em) / 2), calc(100cqh - 3em)); }
	/* Varianta „full”: imaginea 16:9 cât încape pe înălțimea slide-ului, centrată. */
	.rdp-guide[data-ready] .rdp-fill > .rdp-mockups--full { display: flex; justify-content: center; align-items: center; container-type: size; }
	.rdp-guide[data-ready] .rdp-mockups--full .rdp-fig { width: min(100cqw, calc((100cqh - 3em) * 16 / 9)); max-height: 100%; }
}

.rdp-logo-preview img[hidden] { display: none; }

/* ---------- Fișiere de descărcat din slide ---------- */
.rdp-dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13em), 1fr)); gap: .5em; }
.rdp .rdp-dl { display: flex; align-items: center; gap: .6em; min-height: 2.9em; padding: .5em .9em; border: var(--rdp-line); border-radius: var(--rdp-r-sm); background: var(--rdp-surface); color: var(--rdp-ink); font-size: .88em; font-weight: 600; text-decoration: none; min-width: 0; transition: transform .12s ease, box-shadow .12s ease; }
.rdp .rdp-dl:hover { color: var(--rdp-ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--rdp-ink); }
.rdp-dl svg { flex: none; }
.rdp-dl__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdp-dl__ext { flex: none; padding: .15em .45em; border-radius: 4px; background: var(--rdp-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78em; font-weight: 600; letter-spacing: .03em; }

/* ---------- Slide-uri cu mult conținut: totul rămâne în cadrul 16:9 ---------- */
@media (min-width: 1024px) {
	.rdp-guide[data-ready] .rdp-slide > .rdp-split { flex: 1; min-height: 0; height: auto; grid-template-rows: minmax(0, 1fr); }
	.rdp-guide[data-ready] .rdp-slide > .rdp-split > * { min-height: 0; }
	.rdp-guide[data-ready] .rdp-slide > .rdp-split > .rdp-stack { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: .4em; margin-right: -.4em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-logo-preview { height: 100%; min-height: 0; }
	/* Fișierele: două coloane, rânduri mai compacte. */
	.rdp-guide[data-ready] .rdp-slide .rdp-dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-dl { min-height: 2.5em; padding: .35em .7em; font-size: .8em; gap: .45em; }
	.rdp-guide[data-ready] .rdp-slide .rdp-segment--colors button { min-height: 2.4em; font-size: .82em; padding: 0 .8em; }
}
@media (min-width: 1024px) {
	.rdp-guide[data-ready] .rdp-slide .rdp-dl__name { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
}

/* ---------- Lightbox ---------- */
.rdp-zoomable { cursor: zoom-in; }
.rdp-zoomable:focus-visible { outline: 3px solid var(--rdp-accent); outline-offset: -3px; }
.rdp.rdp-lightbox { position: fixed; inset: 0; z-index: 2147483100; display: none; align-items: center; justify-content: center; gap: 12px; padding: 24px 72px; background: rgba(12, 12, 12, .95); backdrop-filter: blur(6px); }
.rdp.rdp-lightbox.is-open { display: flex; animation: rdp-in .18s ease; }
.rdp-lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; min-width: 0; }
.rdp-lightbox__fig img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 6px; background: #fff; }
.rdp-lightbox__fig figcaption { color: #fff; font-size: .95rem; text-align: center; opacity: .85; }
.rdp .rdp-lightbox__x, .rdp .rdp-lightbox__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.rdp .rdp-lightbox__x:hover, .rdp .rdp-lightbox__nav:hover { background: var(--rdp-accent); color: var(--rdp-on-accent); }
.rdp-lightbox__x { top: 16px; right: 16px; }
.rdp-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.rdp-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.rdp-lightbox.is-single .rdp-lightbox__nav { display: none; }
@media (max-width: 700px) {
	.rdp.rdp-lightbox { padding: 64px 8px 24px; }
	.rdp-lightbox__nav { top: auto; bottom: 16px; transform: none; }
}
