/* Becas Rotarias — mobile-first UI. Everything is scoped under .crtb */
.crtb {
	--c-blue: #212d45;      /* navy del sitio */
	--c-blue-2: #172034;
	--c-azure: #2f5aa8;
	--c-gold: #ffc03d;      /* dorado del sitio */
	--c-gold-2: #ffae00;
	--c-gold-ink: #8a5a00;
	--c-ink: #212d45;
	--c-text: #4b4f58;
	--c-muted: #6b7080;
	--c-line: #e6e8ee;
	--c-bg: #f6f7f9;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--c-card: #fff;
	--c-green: #1a7f4b;
	--c-green-bg: #e6f6ed;
	--c-red: #c0392b;
	--c-red-bg: #fdecea;
	--c-gold-bg: #fff4dc;
	--c-azure-bg: #e5f1fc;
	--c-gray-bg: #eef0f4;
	--r: 14px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.005em;
	font-feature-settings: "cv11", "ss01";
	max-width: 880px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
}
.crtb *, .crtb *::before, .crtb *::after { box-sizing: border-box; }
.crtb h2, .crtb h3, .crtb h4 { margin: 0; line-height: 1.2; color: var(--c-ink); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-transform: none; }
.crtb p { margin: 0 0 .75em; }
.crtb [hidden] { display: none !important; }
.crtb-ico { flex: none; vertical-align: middle; }
.crtb-muted { color: var(--c-muted); }
.crtb-center { text-align: center; }
.crtb-req { color: var(--c-red); }
.crtb-opt { color: var(--c-muted); font-weight: 400; font-size: .85em; }
.crtb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero ------------------------------------------------------------------ */
.crtb-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	justify-content: space-between;
	background: linear-gradient(135deg, #212d45 0%, #2b3a5c 100%);
	color: #fff;
	border-radius: var(--r);
	padding: 22px 20px;
	margin-bottom: 16px;
	box-shadow: var(--shadow);
}
.crtb-hero::after {
	content: "";
	position: absolute;
	right: -60px; top: -60px;
	width: 200px; height: 200px;
	border-radius: 50%;
	border: 28px solid rgba(255, 255, 255, .06);
	box-shadow: inset 0 0 0 2px rgba(255, 192, 61, .35);
	pointer-events: none;
}
.crtb-hero h2 { font-size: 1.75rem; color: #fff; margin: 10px 0 6px; font-weight: 700; }
.crtb-hero p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 560px; }
.crtb-hero__text { position: relative; z-index: 1; }
.crtb-hero__save { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: .85rem; background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
.crtb-hero__save.is-saving { opacity: .8; }
.crtb-hero__logout { position: relative; z-index: 1; color: #fff !important; }
.crtb-hero--compact { padding: 18px 20px; }
.crtb-chip { display: inline-block; background: var(--c-gold); color: #212d45; font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* Cards / alerts -------------------------------------------------------- */
.crtb-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.crtb-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid transparent; }
.crtb-alert ul { margin: 6px 0 0 18px; padding: 0; }
.crtb-alert--error { background: var(--c-red-bg); border-color: #f5c2bc; color: #7a1f16; }
.crtb-alert--success { background: var(--c-green-bg); border-color: #b9e3c9; color: #0f5132; }
.crtb-alert--info { background: var(--c-azure-bg); border-color: #bcdaf5; color: #0b3f75; }
.crtb-pop { animation: crtb-pop .5s ease-out; }
@keyframes crtb-pop { 0% { transform: scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Buttons --------------------------------------------------------------- */
.crtb .crtb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 18px;
	background: var(--c-blue); color: #fff !important;
	border: 0; border-radius: 999px;
	font-family: var(--font); font-weight: 600; font-size: .95rem; line-height: 1.1; letter-spacing: .01em;
	text-decoration: none !important; cursor: pointer;
	transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .08);
}
.crtb .crtb-btn:hover { background: var(--c-blue-2); }
.crtb .crtb-btn:active { transform: translateY(1px); }
.crtb .crtb-btn:focus-visible { outline: 3px solid rgba(255, 192, 61, .7); outline-offset: 2px; }
.crtb .crtb-btn--gold { background: var(--c-gold); color: var(--c-blue) !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: .88rem; }
.crtb .crtb-btn--gold:hover { background: var(--c-gold-2); }
.crtb .crtb-btn--ghost { background: transparent; color: var(--c-blue) !important; border: 1.5px solid var(--c-line); box-shadow: none; }
.crtb .crtb-btn--ghost:hover { background: var(--c-bg); }
.crtb .crtb-btn--danger { background: var(--c-red); }
.crtb .crtb-btn--green { background: var(--c-green); }
.crtb .crtb-btn--sm { min-height: 38px; padding: 6px 14px; font-size: .85rem; border-radius: 999px; }
.crtb .crtb-btn--block { width: 100%; }
.crtb .crtb-btn[disabled] { opacity: .55; cursor: not-allowed; }
.crtb .crtb-link { background: none; border: 0; padding: 0; color: var(--c-azure); text-decoration: underline; cursor: pointer; font: inherit; }
.crtb .crtb-link--danger { color: var(--c-red); }
.crtb .crtb-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--c-line); background: #fff; color: var(--c-muted); cursor: pointer; padding: 0; }
.crtb .crtb-icon-btn:hover { color: var(--c-red); border-color: #f5c2bc; }

/* Stepper --------------------------------------------------------------- */
.crtb-stepper { display: flex; list-style: none; margin: 0 0 10px; padding: 0; gap: 4px; counter-reset: s; }
.crtb-stepper__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; min-width: 0; }
.crtb-stepper__item::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--c-line); z-index: 0; }
.crtb-stepper__item:first-child::before { display: none; }
.crtb-stepper__item.is-done::before, .crtb-stepper__item.is-current::before { background: var(--c-blue); }
.crtb .crtb-stepper__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c-line); background: #fff; color: var(--c-muted); font-weight: 700; display: grid; place-items: center; padding: 0; cursor: pointer; transition: all .2s; }
.crtb-stepper__check { display: none; }
.crtb-stepper__item.is-done .crtb-stepper__dot { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.crtb-stepper__item.is-done .crtb-stepper__num { display: none; }
.crtb-stepper__item.is-done .crtb-stepper__check { display: block; }
.crtb-stepper__item.is-current .crtb-stepper__dot { border-color: var(--c-gold); background: var(--c-gold); color: var(--c-blue); box-shadow: 0 0 0 5px rgba(255, 192, 61, .25); }
.crtb-stepper__item.has-error .crtb-stepper__dot { border-color: var(--c-red); color: var(--c-red); background: #fff; }
.crtb-stepper__label { font-size: .72rem; color: var(--c-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.crtb-stepper__item.is-current .crtb-stepper__label { color: var(--c-ink); font-weight: 700; }
.crtb-progress { height: 4px; background: var(--c-line); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.crtb-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-blue), var(--c-gold)); transition: width .3s ease; }
@container (max-width: 560px) {
	.crtb-stepper__label { display: none; }
	.crtb-stepper__item.is-current .crtb-stepper__label { display: none; }
}

/* Steps / fields -------------------------------------------------------- */
.crtb-form { margin: 0; }
.crtb-step { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px 16px; box-shadow: var(--shadow); animation: crtb-in .25s ease-out; }
@keyframes crtb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.crtb-step__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.crtb-step__head small { color: var(--c-muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.crtb-step__head h3 { font-size: 1.3rem; }
.crtb-step__head p { color: var(--c-muted); margin: 2px 0 0; }
.crtb-step__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-azure-bg); color: var(--c-azure); flex: none; }
.crtb-step__icon .crtb-ico { width: 24px; height: 24px; }

.crtb-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
.crtb-grid > * { grid-column: span 6; }
.crtb-grid--tight { gap: 10px; }
@container (min-width: 640px) {
	.crtb-w-half { grid-column: span 3 !important; }
	.crtb-w-third { grid-column: span 2 !important; }
	.crtb-grid--3 > .crtb-field { grid-column: span 2 !important; }
}
@container (max-width: 639px) {
	.crtb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crtb-grid--3 > .crtb-field { grid-column: span 1 !important; }
}
.crtb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.crtb-field > label, .crtb-radios legend { font-weight: 500; font-size: .88rem; color: var(--c-ink); padding: 0; letter-spacing: 0; }
.crtb .crtb-field input:not([type=checkbox]):not([type=radio]):not([type=file]),
.crtb .crtb-field select,
.crtb .crtb-field textarea,
.crtb .crtb-reply textarea,
.crtb .crtb-filters input,
.crtb .crtb-filters select,
.crtb .crtb-eval textarea,
.crtb .crtb-eval input,
.crtb .crtb-eval select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	font-family: var(--font);
	font-size: 16px; /* avoids iOS zoom */
	color: var(--c-ink);
	background: #fff;
	border: 1.5px solid #cfd6e3;
	border-radius: 10px;
	box-shadow: none;
	margin: 0;
	transition: border-color .15s, box-shadow .15s;
}
.crtb .crtb-field textarea, .crtb .crtb-reply textarea, .crtb .crtb-eval textarea { min-height: 110px; resize: vertical; }
.crtb .crtb-field input:focus, .crtb .crtb-field select:focus, .crtb .crtb-field textarea:focus,
.crtb .crtb-reply textarea:focus, .crtb .crtb-eval textarea:focus, .crtb .crtb-eval input:focus, .crtb .crtb-eval select:focus,
.crtb .crtb-filters input:focus, .crtb .crtb-filters select:focus {
	outline: none; border-color: var(--c-azure); box-shadow: 0 0 0 4px rgba(0, 103, 200, .15);
}
.crtb-help { color: var(--c-muted); font-size: .8rem; }
.crtb-error { color: var(--c-red); font-size: .82rem; font-weight: 600; min-height: 0; }
.crtb-error:empty { display: none; }
.crtb .has-error input:not([type=radio]):not([type=checkbox]), .crtb .has-error select, .crtb .has-error textarea { border-color: var(--c-red) !important; background: #fffafa; }
.crtb-money { position: relative; }
.crtb-money > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-weight: 600; pointer-events: none; }
.crtb .crtb-money input { padding-left: 26px !important; }

/* Radio pills */
.crtb-radios { border: 0; margin: 0; padding: 0; min-width: 0; }
.crtb-radios legend { margin-bottom: 6px; }
.crtb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.crtb-pill { position: relative; cursor: pointer; }
.crtb-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.crtb-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #cfd6e3; background: #fff; font-weight: 600; transition: all .15s; }
.crtb-pill input:checked + span { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.crtb-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0, 103, 200, .2); }
.crtb-type-radio.has-error .crtb-pill span { border-color: var(--c-red); }

/* Consent */
.crtb-consent { display: flex; gap: 12px; align-items: flex-start; background: var(--c-bg); border: 1.5px solid var(--c-line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 400 !important; }
.crtb-consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-azure); }
.has-error .crtb-consent { border-color: var(--c-red); }

/* Repeater */
.crtb-repeater, .crtb-group { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.crtb-repeater__head, .crtb-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.crtb-repeater__head small, .crtb-group__head small { color: var(--c-muted); }
.crtb-repeater__rows { display: flex; flex-direction: column; gap: 10px; }
.crtb-repeater__row { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 12px; animation: crtb-in .2s ease-out; }
.crtb-repeater__rowhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.crtb-repeater__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-azure-bg); color: var(--c-azure); font-weight: 700; font-size: .85rem; }
.crtb-repeater .crtb-btn--ghost { align-self: flex-start; background: #fff; }
.crtb-repeater.has-error { border-color: var(--c-red); }
.crtb-total { display: flex; justify-content: space-between; align-items: center; background: var(--c-blue); color: #fff; border-radius: 10px; padding: 12px 14px; }
.crtb-total strong { font-size: 1.2rem; }

/* Documents */
.crtb-docs { display: flex; flex-direction: column; gap: 10px; }
.crtb-doc { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: #fff; border: 1.5px dashed #cfd6e3; border-radius: 12px; padding: 12px; transition: border-color .2s, background .2s; }
.crtb-doc__btn { grid-column: 1 / -1; justify-self: stretch; }
@container (min-width: 640px) {
	.crtb-doc { grid-template-columns: 44px 1fr auto; align-items: center; }
	.crtb-doc__btn { grid-column: auto; justify-self: end; }
}
.crtb-doc.is-done { border-style: solid; border-color: #b9e3c9; background: #fbfefc; }
.crtb-doc.has-error { border-color: var(--c-red); background: #fffafa; }
.crtb-doc.is-dragover { border-color: var(--c-azure); background: var(--c-azure-bg); }
.crtb-doc__icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-gray-bg); color: var(--c-muted); }
.crtb-doc__ok { display: none; position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--c-green); color: #fff; }
.crtb-doc.is-done .crtb-doc__icon { background: var(--c-green-bg); color: var(--c-green); }
.crtb-doc.is-done .crtb-doc__ok { display: block; }
.crtb-doc__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.crtb-doc__body > small { color: var(--c-muted); }
.crtb-doc__files { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.crtb-doc__files li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.crtb-doc__files a { color: var(--c-azure); word-break: break-all; }
.crtb-doc__bar { height: 6px; background: var(--c-line); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.crtb-doc__bar span { display: block; height: 100%; width: 0; background: var(--c-azure); transition: width .15s; }
.crtb-doc__btn { cursor: pointer; }
.crtb-docs--compact .crtb-doc { padding: 10px; }

/* Summary / checklist */
.crtb-checklist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.crtb-checklist li { display: flex; align-items: center; gap: 10px; background: var(--c-bg); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.crtb-checklist__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-line); flex: none; }
.crtb-checklist li.is-ok .crtb-checklist__mark { background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--c-green); }
.crtb-checklist li.is-bad .crtb-checklist__mark { border-color: var(--c-red); background: var(--c-red-bg); }
.crtb-checklist li.is-bad small { color: var(--c-red); }

/* Sticky nav */
.crtb-nav {
	position: sticky; bottom: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: 14px; padding: 12px;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	border: 1px solid var(--c-line); border-radius: var(--r);
	box-shadow: 0 -4px 20px rgba(16, 24, 40, .08);
}
.crtb-nav__status { flex: 1; text-align: center; font-size: .8rem; color: var(--c-muted); }
@container (max-width: 480px) {
	.crtb-nav { margin-left: -4px; margin-right: -4px; border-radius: 14px 14px 0 0; padding: 10px; }
	.crtb-nav [data-prev] span { display: none; }
	.crtb-nav [data-prev] { padding: 10px 14px; }
}

/* Auth */
.crtb-auth__card { max-width: 520px; margin: 0 auto 16px; }
.crtb-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-bg); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.crtb .crtb-tab { border: 0; background: transparent; min-height: 42px; border-radius: 999px; font-weight: 500; color: var(--c-muted); cursor: pointer; font-size: .95rem; }
.crtb .crtb-tab.is-active { background: #fff; color: var(--c-blue); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.crtb #crtb-login p { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.crtb #crtb-login label { font-weight: 600; }
.crtb #crtb-login input[type=text], .crtb #crtb-login input[type=password] { width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; border: 1.5px solid #cfd6e3; border-radius: 10px; }
.crtb #crtb-login .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.crtb #crtb-login input[type=submit] { width: 100%; min-height: 48px; background: var(--c-blue); color: #fff; border: 0; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; }

/* Empty states / CTA */
.crtb-empty { padding: 32px 20px; }
.crtb-empty h3 { margin: 12px 0 6px; font-size: 1.25rem; }
.crtb-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-azure-bg); color: var(--c-azure); }
.crtb-empty__icon .crtb-ico { width: 30px; height: 30px; }
.crtb-empty__icon--ok { background: var(--c-green-bg); color: var(--c-green); }
.crtb-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-left: 5px solid var(--c-gold); }
.crtb-cta > div:nth-child(2) { flex: 1; min-width: 200px; }
.crtb-cta h3 { font-size: 1.15rem; margin-bottom: 4px; }
.crtb-cta__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-gold-bg); color: var(--c-gold-ink); }
.crtb-cta .crtb-btn { width: 100%; }
@container (min-width: 640px) { .crtb-cta .crtb-btn { width: auto; } }

/* Badges */
.crtb-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.crtb-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.crtb-badge--lg { font-size: .9rem; padding: 6px 14px; }
.crtb-badge--gray { background: var(--c-gray-bg); color: #4b5563; }
.crtb-badge--blue { background: #e7edf8; color: var(--c-blue); }
.crtb-badge--azure { background: var(--c-azure-bg); color: var(--c-azure); }
.crtb-badge--gold { background: var(--c-gold-bg); color: var(--c-gold-ink); }
.crtb-badge--green { background: var(--c-green-bg); color: var(--c-green); }
.crtb-badge--red { background: var(--c-red-bg); color: var(--c-red); }

/* Applicant panel */
.crtb-app { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; border-top: 5px solid var(--c-azure); }
.crtb-app--green { border-top-color: var(--c-green); }
.crtb-app--red { border-top-color: var(--c-red); }
.crtb-app--gold { border-top-color: var(--c-gold); }
.crtb-app--gray { border-top-color: #9aa3b2; }
.crtb-app__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 18px 6px; }
.crtb-app__head small { color: var(--c-muted); font-weight: 600; }
.crtb-app__head h3 { font-size: 1.2rem; }
.crtb-app__body { padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.crtb-timeline { list-style: none; display: flex; margin: 10px 18px 6px; padding: 0; }
.crtb-timeline li { flex: 1; position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .82rem; }
.crtb-timeline li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 3px; background: var(--c-line); }
.crtb-timeline li:first-child::before { display: none; }
.crtb-timeline li > span { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--c-line); }
.crtb-timeline li small { color: var(--c-muted); min-height: 1em; }
.crtb-timeline li.is-done > span { background: var(--c-green); border-color: var(--c-green); }
.crtb-timeline li.is-done::before { background: var(--c-green); }
.crtb-timeline li.is-current > span { border-color: var(--c-azure); box-shadow: 0 0 0 4px rgba(0, 103, 200, .15); }
.crtb-timeline li.is-warn > span { background: var(--c-gold); border-color: var(--c-gold); animation: crtb-pulse 1.6s infinite; }
.crtb-timeline li.is-warn::before { background: var(--c-green); }
.crtb-timeline li.is-no > span { background: var(--c-red); border-color: var(--c-red); }
.crtb-timeline li.is-no::before { background: var(--c-green); }
@keyframes crtb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 192, 61, .5); } 50% { box-shadow: 0 0 0 8px rgba(255, 192, 61, 0); } }
.crtb-celebrate { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--c-green-bg), #fff7e6); border: 1px solid #b9e3c9; border-radius: 12px; padding: 16px; }
.crtb-celebrate .crtb-ico { width: 40px; height: 40px; color: var(--c-green); }
.crtb-celebrate strong { font-size: 1.1rem; color: var(--c-green); }
.crtb-celebrate p { margin: 4px 0 0; font-weight: 700; }
.crtb-message { display: flex; gap: 12px; background: var(--c-gold-bg); border-left: 4px solid var(--c-gold); border-radius: 10px; padding: 12px 14px; }
.crtb-message .crtb-ico { color: var(--c-gold-ink); margin-top: 2px; }
.crtb-message p { margin: 4px 0 0; }
.crtb-reply { display: flex; flex-direction: column; gap: 8px; }
.crtb-details { border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.crtb-details > summary { display: flex; gap: 8px; align-items: center; padding: 12px 14px; font-weight: 700; cursor: pointer; background: var(--c-bg); list-style: none; }
.crtb-details > summary::-webkit-details-marker { display: none; }
.crtb-details > summary::after { content: "▾"; margin-left: auto; color: var(--c-muted); transition: transform .2s; }
.crtb-details[open] > summary::after { transform: rotate(180deg); }
.crtb-details > .crtb-docs, .crtb-details > .crtb-history { padding: 12px; }
.crtb-history { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.crtb-history li { display: flex; flex-direction: column; border-left: 3px solid var(--c-line); padding-left: 10px; }
.crtb-history small { color: var(--c-muted); }

/* ---------------------------------------------------------------------- *
 * Mesa de becas
 * ---------------------------------------------------------------------- */
.crtb-mesa { max-width: 1180px; }
.crtb-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@container (min-width: 720px) { .crtb-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.crtb .crtb-kpi { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--c-ink); box-shadow: var(--shadow); border-bottom: 4px solid var(--c-line); transition: transform .1s; }
.crtb .crtb-kpi:hover { transform: translateY(-2px); }
.crtb-kpi strong { font-size: 1.6rem; line-height: 1.1; }
.crtb-kpi span { font-size: .8rem; color: var(--c-muted); font-weight: 600; }
.crtb-kpi.is-active { outline: 2px solid var(--c-azure); }
.crtb-kpi--blue { border-bottom-color: var(--c-blue); }
.crtb-kpi--azure { border-bottom-color: var(--c-azure); }
.crtb-kpi--gold { border-bottom-color: var(--c-gold); }
.crtb-kpi--green { border-bottom-color: var(--c-green); }
.crtb-kpi--red { border-bottom-color: var(--c-red); }

.crtb-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.crtb-filters > div:first-of-type, .crtb-filters > div:last-child { grid-column: 1 / -1; }
@container (min-width: 720px) { .crtb-filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; align-items: end; } .crtb-filters > div:first-of-type, .crtb-filters > div:last-child { grid-column: auto; } }
.crtb-filters label { font-size: .75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; display: block; margin-bottom: 2px; }
.crtb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.crtb-list { display: flex; flex-direction: column; gap: 10px; }
.crtb .crtb-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 14px; text-decoration: none !important; color: var(--c-ink) !important; box-shadow: var(--shadow); transition: border-color .15s, transform .1s; }
.crtb .crtb-row:hover { border-color: var(--c-azure); transform: translateY(-1px); }
.crtb-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-azure-bg); color: var(--c-azure); font-weight: 700; overflow: hidden; }
.crtb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crtb-row__main { min-width: 0; }
.crtb-row__main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crtb-row__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--c-muted); font-size: .82rem; }
.crtb-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.crtb-score { display: inline-grid; place-items: center; min-width: 46px; height: 30px; border-radius: 8px; background: var(--c-gray-bg); font-weight: 700; font-size: .9rem; padding: 0 8px; }
.crtb-score--hi { background: var(--c-green-bg); color: var(--c-green); }
.crtb-score--mid { background: var(--c-gold-bg); color: var(--c-gold-ink); }
.crtb-score--lo { background: var(--c-red-bg); color: var(--c-red); }
@container (max-width: 520px) {
	.crtb .crtb-row { grid-template-columns: 40px 1fr; }
	.crtb-avatar { width: 40px; height: 40px; }
	.crtb-row__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.crtb-pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.crtb .crtb-pager a, .crtb-pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--c-line); background: #fff; text-decoration: none; color: var(--c-ink); padding: 0 10px; }
.crtb-pager span.is-current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* Detail */
.crtb-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.crtb-detail__main, .crtb-detail__side { min-width: 0; }
@container (min-width: 980px) { .crtb-detail { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .crtb-detail__side { position: sticky; top: 40px; } }
.crtb-profile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.crtb-profile .crtb-avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.crtb-profile h2 { font-size: 1.4rem; }
.crtb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
@container (min-width: 640px) { .crtb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.crtb-stat { background: var(--c-bg); border-radius: 10px; padding: 10px 12px; }
.crtb-stat span { display: block; font-size: .72rem; color: var(--c-muted); font-weight: 700; text-transform: uppercase; }
.crtb-stat strong { font-size: 1.15rem; }
.crtb-section { margin-top: 4px; }
.crtb-section h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-azure); margin: 0 0 8px; }
.crtb-dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@container (min-width: 640px) { .crtb-dl { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.crtb-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: .92rem; }
.crtb-dl dt { color: var(--c-muted); margin: 0; }
.crtb-dl dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.crtb-dl--full { grid-template-columns: 1fr !important; }
.crtb-dl--full > div { flex-direction: column; }
.crtb-dl--full dd { text-align: left; font-weight: 400; white-space: pre-wrap; }
.crtb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crtb-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.crtb-table th { text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--c-muted); padding: 6px 8px; border-bottom: 2px solid var(--c-line); white-space: nowrap; }
.crtb-table td { padding: 8px; border-bottom: 1px solid var(--c-line); }
.crtb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.crtb .crtb-thumb { display: flex; flex-direction: column; gap: 6px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; padding: 8px; text-decoration: none; color: var(--c-ink); font-size: .8rem; }
.crtb .crtb-thumb:hover { border-color: var(--c-azure); }
.crtb-thumb__img { aspect-ratio: 4 / 3; border-radius: 6px; background: #fff center/cover no-repeat; display: grid; place-items: center; color: var(--c-muted); overflow: hidden; }
.crtb-thumb__img .crtb-ico { width: 36px; height: 36px; }
.crtb-thumb strong { line-height: 1.2; }
.crtb-thumb--missing { border-style: dashed; color: var(--c-red); }

.crtb-eval { display: flex; flex-direction: column; gap: 12px; }
.crtb-eval h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.crtb-range { display: flex; flex-direction: column; gap: 4px; }
.crtb-range__top { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; }
.crtb-range__top output { font-weight: 700; color: var(--c-azure); }
.crtb .crtb-range input[type=range] { width: 100%; accent-color: var(--c-azure); min-height: 28px; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.crtb-bigscore { display: flex; align-items: baseline; justify-content: center; gap: 4px; background: var(--c-bg); border-radius: 12px; padding: 10px; }
.crtb-bigscore strong { font-size: 2.2rem; color: var(--c-blue); }
.crtb-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.crtb-seg label { position: relative; }
.crtb-seg input { position: absolute; opacity: 0; inset: 0; }
.crtb-seg span { display: grid; place-items: center; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--c-line); font-weight: 700; font-size: .85rem; cursor: pointer; background: #fff; }
.crtb-seg input:checked + span { color: #fff; }
.crtb-seg input[value=aprobar]:checked + span { background: var(--c-green); border-color: var(--c-green); }
.crtb-seg input[value=declinar]:checked + span { background: var(--c-red); border-color: var(--c-red); }
.crtb-seg input[value=abstener]:checked + span { background: #6b7280; border-color: #6b7280; }
.crtb-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.crtb-status-grid label { position: relative; }
.crtb-status-grid input { position: absolute; opacity: 0; inset: 0; }
.crtb-status-grid span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--c-line); font-weight: 700; font-size: .85rem; cursor: pointer; text-align: center; padding: 4px; background: #fff; }
.crtb-status-grid input:checked + span { box-shadow: inset 0 0 0 2px currentColor; }
.crtb-evals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.crtb-evals li { background: var(--c-bg); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.crtb-evals__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.crtb-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--c-azure); text-decoration: none; font-weight: 600; }

/* wp-admin wrapper */
.crtb-admin-wrap .crtb { max-width: none; }
.crtb-admin-wrap { margin-right: 20px; }
@media (max-width: 782px) { .crtb-admin-wrap { margin-right: 10px; } }
.crtb .crtb-doc.is-done .crtb-doc__btn { background: transparent; color: var(--c-blue) !important; border: 1.5px solid var(--c-line); box-shadow: none; }
.crtb .crtb-doc.is-done .crtb-doc__btn:hover { background: var(--c-bg); }

/* The Mesa uses the theme's wide width (class alignwide). */
.crtb.crtb-mesa { max-width: 1180px; }
.crtb-admin-wrap .crtb.crtb-mesa { max-width: none; }
.crtb input, .crtb select, .crtb textarea, .crtb button, .crtb label, .crtb legend, .crtb table, .crtb output { font-family: var(--font) !important; }
.crtb strong, .crtb b { color: var(--c-ink); font-weight: 600; }
.crtb-hero strong, .crtb-total strong, .crtb .crtb-btn strong, .crtb-alert strong { color: inherit; }
.crtb-kpi strong, .crtb-stat strong, .crtb-bigscore strong { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

.crtb .crtb-jump { position: sticky; bottom: 14px; z-index: 15; display: flex; width: fit-content; margin: 8px 0 0 auto; box-shadow: 0 8px 24px rgba(16, 24, 40, .2); border-radius: 999px; }
@container (min-width: 980px) { .crtb .crtb-jump { display: none; } }
#crtb-evaluar { scroll-margin-top: 20px; }
.crtb .crtb-celebrate strong { color: var(--c-green); }
.crtb .crtb-alert--error strong { color: #7a1f16; }
.crtb .crtb-alert--success strong { color: #0f5132; }

/* Password field with eye toggle */
.crtb-pass { position: relative; }
.crtb .crtb-pass input { padding-right: 48px !important; }
.crtb .crtb-pass__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--c-muted); border-radius: 50%; cursor: pointer; padding: 0; }
.crtb .crtb-pass__eye:hover, .crtb .crtb-pass__eye.is-on { color: var(--c-blue); background: var(--c-bg); }

/* Portal */
.crtb-portal .crtb-hero { align-items: center; }
.crtb .crtb-hero__out { position: relative; z-index: 1; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.crtb .crtb-hero__out:hover { background: rgba(255, 255, 255, .1); }
.crtb-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@container (min-width: 620px) { .crtb-tiles { grid-template-columns: 1fr 1fr; } }
.crtb .crtb-tile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); padding: 16px; text-decoration: none !important; color: var(--c-text) !important; box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; min-height: 84px; }
.crtb .crtb-tile:hover { transform: translateY(-2px); border-color: var(--c-gold); }
.crtb-tile__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-bg); color: var(--c-blue); }
.crtb-tile__icon .crtb-ico { width: 24px; height: 24px; }
.crtb-tile--accent .crtb-tile__icon { background: var(--c-gold); color: var(--c-blue); }
.crtb-tile__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crtb-tile__body strong { font-size: 1.02rem; font-weight: 600; }
.crtb-tile__body small { color: var(--c-muted); font-size: .85rem; }
.crtb-tile__go { color: var(--c-muted); }
.crtb .crtb-tile { min-width: 0; } .crtb-tile .crtb-badge { white-space: normal; flex: none; max-width: 42%; text-align: center; line-height: 1.2; }

/* ---------- Theme guards (Astra and others) ---------- */
/* Astra's .alignwide adds -80px side margins and overflows the viewport; keep it centered and inside the screen. */
.crtb.alignwide { margin-left: auto !important; margin-right: auto !important; width: auto !important; max-width: min(1180px, calc(100vw - 32px)) !important; box-sizing: border-box; }
.crtb code:not([class]) { font: inherit; background: none; padding: 0; border: 0; color: inherit; }
.crtb > code:not([class]) { display: contents; }
.crtb input[type="submit"], .crtb button:not(.crtb-btn--gold), .crtb .crtb-btn:not(.crtb-btn--gold) { text-transform: none !important; letter-spacing: normal; }

/* ---------- Downloads, hero actions, applicant deliveries ---------- */
.crtb-hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.crtb .crtb-btn--onnavy { color: #fff !important; border-color: rgba(255, 255, 255, .3); }
.crtb .crtb-btn--onnavy:hover { background: rgba(255, 255, 255, .1); }
.crtb-detail__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.crtb-detail__bar .crtb-back { margin: 0; }
.crtb-detail__dl { display: flex; flex-wrap: wrap; gap: 8px; }
.crtb-app__dl { margin: 12px 0 0; font-size: .9rem; }
.crtb-app__dl a { display: inline-flex; align-items: center; gap: 6px; color: var(--c-azure) !important; font-weight: 600; text-decoration: none; }
.crtb-app__dl a:hover { text-decoration: underline; }
.crtb-app__dl .crtb-ico { width: 17px; height: 17px; }
.crtb-myentregas { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--c-bg); }
.crtb-myentregas h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .98rem; }
.crtb-myentregas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crtb-myentregas li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px solid var(--c-line); }
.crtb-myentregas li div { display: flex; flex-direction: column; }
.crtb-myentregas strong { color: var(--c-ink); font-size: .92rem; }
.crtb-myentregas small { color: var(--c-muted); font-size: .82rem; }
.crtb-myentregas p { margin: 0; }

/* ---------- CURP helper ---------- */
.crtb-curp-info { display: block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--c-green); }
.crtb-curp-info.is-warn { color: var(--c-gold-ink); background: var(--c-gold-bg); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.crtb-autofilled input, .crtb-autofilled select { animation: crtb-autofill 1.6s ease-out; }
@keyframes crtb-autofill { 0%, 40% { box-shadow: 0 0 0 4px rgba(26, 127, 75, .25); border-color: var(--c-green); } }
@media (prefers-reduced-motion: reduce) { .crtb-autofilled input, .crtb-autofilled select { animation: none; } }

/* ---------- Power BI dialog ---------- */
.crtb.crtb-bi-dlg { max-width: min(680px, calc(100vw - 24px)); width: 100%; max-height: min(90vh, 900px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(16, 24, 40, .45); }
.crtb-bi-dlg[open] { animation: crtb-bi-in .28s cubic-bezier(.2, .8, .2, 1); }
.crtb-bi-dlg::backdrop { background: rgba(23, 32, 52, .55); backdrop-filter: blur(3px); }
@keyframes crtb-bi-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.crtb-bi-dlg__inner { padding: 22px 22px 24px; }
.crtb-bi-dlg__head { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-right: 40px; margin-bottom: 8px; }
.crtb-bi-dlg__head h3 { margin: 2px 0 4px; font-size: 1.3rem; }
.crtb-bi-dlg__head p { margin: 0; font-size: .9rem; }
.crtb-bi-dlg__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff4dc; color: #8a5a00; }
.crtb-bi-dlg .crtb-bec-dlg__close { position: absolute; right: -6px; top: -6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-bg); color: var(--c-ink); display: grid; place-items: center; cursor: pointer; }
.crtb-bi-opt { margin-top: 16px; padding: 16px; border: 1px solid var(--c-line); border-radius: 14px; }
.crtb-bi-opt h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.crtb-bi-opt h4 span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-blue); color: #fff; font-size: .78rem; }
.crtb-bi-opt > p { margin: 0 0 10px; font-size: .88rem; }
.crtb-bi-steps { margin: 0 0 12px 18px; padding: 0; font-size: .86rem; color: var(--c-text); }
.crtb-bi-steps li { margin: 2px 0; }
.crtb-bi-tables { display: grid; gap: 6px; }
.crtb-bi-table { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 10px; background: var(--c-bg); }
.crtb-bi-table div { display: flex; flex-direction: column; min-width: 0; }
.crtb-bi-table strong { color: var(--c-ink); font-size: .9rem; }
.crtb-bi-table small { color: var(--c-muted); font-size: .78rem; line-height: 1.35; }
.crtb-bi-table .crtb-btn { flex: none; background: #fff; }
.crtb-bi-table .crtb-btn.is-copied { background: var(--c-green-bg); color: var(--c-green) !important; border-color: #b9e2cb; }
.crtb-bi-fine { margin: 10px 0 0; font-size: .8rem; color: var(--c-muted); }
.crtb-bi-fine a { color: var(--c-azure) !important; }
.crtb-bi-dl { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .crtb-bi-table { flex-direction: column; align-items: stretch; } }

/* ---------- User bar (session) ---------- */
.crtb-userbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 8px 8px 10px; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; box-shadow: var(--shadow); }
.crtb-userbar__who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.crtb-userbar__who > span:last-child { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.crtb-userbar__who strong { color: var(--c-ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crtb-userbar__who small { color: var(--c-muted); font-size: .76rem; }
.crtb-userbar__avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-blue); color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c-gold); }
.crtb-userbar__links { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crtb .crtb-userbar__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; color: var(--c-ink) !important; font-size: .85rem; font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s; }
.crtb .crtb-userbar__links a:hover { background: var(--c-bg); }
.crtb .crtb-userbar__links a:focus-visible { outline: 3px solid rgba(255, 192, 61, .7); outline-offset: 1px; }
.crtb-userbar__links .crtb-ico { width: 17px; height: 17px; }
.crtb .crtb-userbar__links .crtb-userbar__out { background: var(--c-blue); color: #fff !important; }
.crtb .crtb-userbar__links .crtb-userbar__out:hover { background: var(--c-blue-2); }
@media (max-width: 520px) {
	.crtb-userbar { border-radius: 16px; flex-wrap: nowrap; padding: 6px 6px 6px 8px; }
	.crtb-userbar__links { flex-wrap: nowrap; gap: 2px; }
	.crtb .crtb-userbar__links a { padding: 6px 9px; font-size: .82rem; }
	.crtb-userbar__links a:not(.crtb-userbar__out) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.crtb .crtb-userbar__links a:not(.crtb-userbar__out) { width: 38px; justify-content: center; padding: 6px; }
	.crtb-userbar__links .crtb-ico { width: 19px; height: 19px; }
}
.crtb-userbar__links a, .crtb-userbar__who small { white-space: nowrap; }
@media (max-width: 400px) {
	.crtb-userbar__who small { display: none; }
	.crtb-userbar__avatar { width: 30px; height: 30px; font-size: .74rem; }
}

.crtb-userbar__avatar { overflow: hidden; }
.crtb-userbar__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crtb-avatar a { display: block; width: 100%; height: 100%; }
