:root {
	--ebp-bg: #f5f6fa;
	--ebp-surface: #ffffff;
	--ebp-surface-soft: #f8f9fc;
	--ebp-border: #e6e8ef;
	--ebp-border-strong: #d7dae5;
	--ebp-text: #171929;
	--ebp-muted: #71758b;
	--ebp-faint: #989bad;
	--ebp-primary: #5b5ce2;
	--ebp-primary-dark: #4849c9;
	--ebp-primary-soft: #eeeefe;
	--ebp-green: #0e9f6e;
	--ebp-green-soft: #e8f8f1;
	--ebp-orange: #d97706;
	--ebp-orange-soft: #fff5df;
	--ebp-red: #dc3c4d;
	--ebp-red-soft: #ffedef;
	--ebp-blue: #2876d4;
	--ebp-blue-soft: #eaf3ff;
	--ebp-sidebar: 260px;
	--ebp-topbar: 72px;
	--ebp-radius: 14px;
	--ebp-radius-sm: 9px;
	--ebp-shadow: 0 1px 2px rgba(25, 28, 49, .03), 0 8px 24px rgba(35, 38, 62, .04);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body.ebp-panel-page,
body.ebp-login-page { margin: 0; background: var(--ebp-bg); color: var(--ebp-text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ebp-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.ebp-muted { color: var(--ebp-muted); font-weight: 500; }

/* Shell and navigation */
.ebp-shell { min-height: 100vh; }
.ebp-sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: var(--ebp-sidebar); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--ebp-border); transition: transform .25s ease; }
.ebp-sidebar__brand { min-height: var(--ebp-topbar); padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ebp-border); }
.ebp-brand { display: flex; align-items: center; gap: 11px; }
.ebp-brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(145deg, #6b6ceb, #4d4ed3); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 7px 15px rgba(91, 92, 226, .2); }
.ebp-brand-mark--light { color: var(--ebp-primary); background: #fff; box-shadow: 0 8px 24px rgba(18, 19, 67, .18); }
.ebp-brand > span:last-child { display: flex; flex-direction: column; }
.ebp-brand strong { font-size: 16px; letter-spacing: -.2px; }
.ebp-brand small { color: var(--ebp-muted); font-size: 10px; letter-spacing: .55px; text-transform: uppercase; }
.ebp-sidebar__close { display: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.ebp-nav { flex: 1; overflow-y: auto; padding: 18px 14px; scrollbar-width: thin; }
.ebp-nav__group + .ebp-nav__group { margin-top: 23px; }
.ebp-nav__label { display: block; padding: 0 11px 7px; color: #a0a3b5; font-size: 10px; font-weight: 700; letter-spacing: .75px; }
.ebp-nav__item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 42px; margin: 2px 0; padding: 0 12px; color: #5d6175; border-radius: 9px; font-size: 13.5px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.ebp-nav__item:hover { background: #f5f5fb; color: var(--ebp-text); }
.ebp-nav__item.is-active { background: var(--ebp-primary-soft); color: var(--ebp-primary); }
.ebp-nav__item.is-active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--ebp-primary); }
.ebp-sidebar__footer { padding: 12px 14px 16px; border-top: 1px solid var(--ebp-border); }
.ebp-sidebar__help { display: flex; gap: 10px; padding: 12px; margin-bottom: 7px; background: var(--ebp-surface-soft); border: 1px solid var(--ebp-border); border-radius: 10px; }
.ebp-sidebar__help > span { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--ebp-primary-soft); color: var(--ebp-primary); }
.ebp-sidebar__help div { min-width: 0; display: flex; flex-direction: column; }
.ebp-sidebar__help strong { font-size: 11.5px; }
.ebp-sidebar__help a { color: var(--ebp-primary); font-size: 10.5px; font-weight: 600; }
.ebp-sidebar__logout { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; color: var(--ebp-muted); border-radius: 9px; font-size: 13px; font-weight: 600; }
.ebp-sidebar__logout:hover { color: var(--ebp-red); background: var(--ebp-red-soft); }
.ebp-sidebar-overlay { display: none; position: fixed; z-index: 70; inset: 0; background: rgba(17, 19, 37, .48); backdrop-filter: blur(2px); }

.ebp-main { min-height: 100vh; margin-left: var(--ebp-sidebar); }
.ebp-topbar { position: sticky; z-index: 50; top: 0; min-height: var(--ebp-topbar); padding: 0 30px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ebp-border); display: flex; align-items: center; justify-content: space-between; gap: 22px; backdrop-filter: blur(10px); }
.admin-bar .ebp-sidebar { top: 32px; }
.admin-bar .ebp-topbar { top: 32px; }
.ebp-topbar__left, .ebp-topbar__right { display: flex; align-items: center; gap: 13px; }
.ebp-topbar__left { flex: 1; }
.ebp-topbar__menu { display: none; width: 39px; height: 39px; border: 1px solid var(--ebp-border); background: #fff; border-radius: 9px; align-items: center; justify-content: center; cursor: pointer; }
.ebp-topbar__mobile-title { display: none; font-size: 16px; font-weight: 700; }
.ebp-global-search { position: relative; width: min(430px, 100%); display: flex; align-items: center; }
.ebp-global-search > svg { position: absolute; left: 13px; color: var(--ebp-faint); pointer-events: none; }
.ebp-global-search input { width: 100%; height: 40px; padding: 0 55px 0 41px; color: var(--ebp-text); background: #f7f8fb; border: 1px solid transparent; border-radius: 10px; outline: 0; font-size: 13px; transition: border-color .18s, background .18s; }
.ebp-global-search input:focus { background: #fff; border-color: var(--ebp-primary); box-shadow: 0 0 0 3px rgba(91, 92, 226, .09); }
.ebp-global-search kbd { position: absolute; right: 11px; padding: 2px 6px; color: var(--ebp-faint); background: #fff; border: 1px solid var(--ebp-border); border-radius: 5px; font-family: inherit; font-size: 10px; }
.ebp-topbar__notification { position: relative; width: 39px; height: 39px; display: flex; align-items: center; justify-content: center; color: #64687b; background: transparent; border: 1px solid var(--ebp-border); border-radius: 10px; cursor: pointer; }
.ebp-topbar__notification > span { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; background: var(--ebp-red); border: 1.5px solid #fff; border-radius: 50%; }
.ebp-user-menu { position: relative; }
.ebp-user-menu__toggle { min-height: 47px; padding: 4px 3px 4px 5px; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.ebp-user-menu__toggle:hover { background: var(--ebp-surface-soft); }
.ebp-avatar { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #e9e9ff, #dcdcff); color: var(--ebp-primary); border-radius: 10px; font-size: 12px; font-weight: 800; }
.ebp-user-menu__text { display: flex; min-width: 125px; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.ebp-user-menu__text strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.ebp-user-menu__text small { color: var(--ebp-muted); font-size: 10.5px; }
.ebp-user-dropdown { position: absolute; display: none; top: calc(100% + 10px); right: 0; width: 230px; padding: 7px; background: #fff; border: 1px solid var(--ebp-border); border-radius: 12px; box-shadow: 0 16px 45px rgba(35, 38, 62, .14); }
.ebp-user-menu.is-open .ebp-user-dropdown { display: block; animation: ebp-dropdown-in .16s ease; }
.ebp-user-dropdown__head { display: flex; flex-direction: column; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--ebp-border); overflow: hidden; }
.ebp-user-dropdown__head strong { font-size: 12px; }
.ebp-user-dropdown__head span { color: var(--ebp-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.ebp-user-dropdown a { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 0 10px; border-radius: 7px; color: #5c6074; font-size: 12px; font-weight: 600; }
.ebp-user-dropdown a:hover { color: var(--ebp-text); background: var(--ebp-surface-soft); }
.ebp-user-dropdown a.is-danger { color: var(--ebp-red); }
@keyframes ebp-dropdown-in { from { opacity: 0; transform: translateY(-5px); } }

.ebp-content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 26px 30px 45px; }
.ebp-demo-strip { min-height: 42px; margin-bottom: 20px; padding: 8px 11px; display: flex; align-items: center; gap: 10px; color: #4d4fae; background: #f1f1ff; border: 1px solid #dedeff; border-radius: 10px; font-size: 11px; }
.ebp-demo-strip__dot { width: 8px; height: 8px; background: var(--ebp-primary); border-radius: 50%; box-shadow: 0 0 0 5px rgba(91, 92, 226, .1); }
.ebp-demo-strip div { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.ebp-demo-strip strong { font-weight: 800; }
.ebp-demo-strip span { color: #6c6fb1; }
.ebp-demo-strip button { padding: 4px; display: flex; border: 0; background: transparent; color: #6c6fb1; cursor: pointer; }
.ebp-demo-strip.is-hidden { display: none; }

/* Headers, cards and buttons */
.ebp-page-head { margin-bottom: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ebp-page-head--welcome { align-items: center; }
.ebp-page-head__eyebrow { display: block; margin-bottom: 5px; color: var(--ebp-primary); font-size: 10px; font-weight: 800; letter-spacing: .85px; text-transform: uppercase; }
.ebp-page-head h1 { margin: 0 0 3px; font-size: clamp(23px, 2vw, 29px); line-height: 1.2; letter-spacing: -.65px; }
.ebp-page-head p { margin: 0; color: var(--ebp-muted); font-size: 13px; }
.ebp-button { min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .14s, background .16s, border-color .16s, box-shadow .16s; }
.ebp-button:hover { transform: translateY(-1px); }
.ebp-button--primary { color: #fff; background: var(--ebp-primary); box-shadow: 0 5px 13px rgba(91, 92, 226, .18); }
.ebp-button--primary:hover { color: #fff; background: var(--ebp-primary-dark); box-shadow: 0 8px 18px rgba(91, 92, 226, .22); }
.ebp-button--secondary { color: #474b5e; background: #fff; border-color: var(--ebp-border-strong); }
.ebp-button--secondary:hover { border-color: #bfc2d0; background: #fafafe; }
.ebp-button--ghost { color: #62667a; background: transparent; border-color: transparent; box-shadow: none; }
.ebp-button--ghost:hover { background: #eeeef4; }
.ebp-button--small { min-height: 34px; padding: 0 11px; font-size: 11.5px; }
.ebp-button--block { width: 100%; }
.ebp-icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #727689; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ebp-icon-button:hover { background: #f1f2f7; border-color: var(--ebp-border); color: var(--ebp-text); }
.ebp-text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ebp-primary); font-size: 11.5px; font-weight: 700; }

.ebp-card { background: var(--ebp-surface); border: 1px solid var(--ebp-border); border-radius: var(--ebp-radius); box-shadow: var(--ebp-shadow); }
.ebp-card__head { min-height: 70px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ebp-border); }
.ebp-card__head h2 { margin: 0; font-size: 14.5px; letter-spacing: -.15px; }
.ebp-card__head p { margin: 2px 0 0; color: var(--ebp-muted); font-size: 11.5px; }
.ebp-card--table { overflow: hidden; }
.ebp-badge { min-height: 23px; width: max-content; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ebp-badge--success { color: #087b55; background: var(--ebp-green-soft); }
.ebp-badge--warning { color: #a95d00; background: var(--ebp-orange-soft); }
.ebp-badge--danger { color: #ba2b3a; background: var(--ebp-red-soft); }
.ebp-badge--info { color: #1765b9; background: var(--ebp-blue-soft); }
.ebp-badge--neutral { color: #65697c; background: #eef0f4; }

/* Stats and dashboard */
.ebp-stat-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ebp-stat-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ebp-stat-card { position: relative; min-height: 142px; padding: 17px 18px; background: #fff; border: 1px solid var(--ebp-border); border-radius: var(--ebp-radius); box-shadow: var(--ebp-shadow); overflow: hidden; }
.ebp-stat-card::after { content: ""; position: absolute; right: -19px; bottom: -30px; width: 85px; height: 85px; background: radial-gradient(circle, rgba(91, 92, 226, .07), transparent 70%); }
.ebp-stat-card__icon { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.is-purple { color: var(--ebp-primary) !important; background: var(--ebp-primary-soft) !important; }
.is-green { color: var(--ebp-green) !important; background: var(--ebp-green-soft) !important; }
.is-orange { color: var(--ebp-orange) !important; background: var(--ebp-orange-soft) !important; }
.is-blue { color: var(--ebp-blue) !important; background: var(--ebp-blue-soft) !important; }
.is-red { color: var(--ebp-red) !important; background: var(--ebp-red-soft) !important; }
.ebp-stat-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--ebp-muted); font-size: 11px; font-weight: 600; }
.ebp-stat-card > strong { display: block; margin-top: 2px; font-size: 26px; line-height: 1.2; letter-spacing: -.65px; }
.ebp-stat-card > small { color: var(--ebp-faint); font-size: 10.5px; }
.ebp-trend { display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; border-radius: 5px; font-size: 9.5px; }
.ebp-trend.is-up { color: var(--ebp-green); background: var(--ebp-green-soft); }
.ebp-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, .8fr); gap: 20px; align-items: start; }
.ebp-dashboard-grid__side { display: grid; gap: 20px; }
.ebp-quick-actions__grid { padding: 13px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ebp-quick-actions__grid a { min-height: 117px; padding: 13px; border: 1px solid var(--ebp-border); border-radius: 10px; display: flex; flex-direction: column; transition: border-color .16s, transform .16s, box-shadow .16s; }
.ebp-quick-actions__grid a:hover { border-color: #cbcdea; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(33, 36, 64, .06); }
.ebp-quick-actions__grid a > span { width: 35px; height: 35px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; border-radius: 9px; }
.ebp-quick-actions__grid strong { font-size: 11.5px; }
.ebp-quick-actions__grid small { color: var(--ebp-muted); font-size: 9.5px; }
.ebp-mini-activity__list { padding: 8px 18px 14px; }
.ebp-mini-activity__item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.ebp-mini-activity__item:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 41px; bottom: -7px; width: 1px; background: var(--ebp-border); }
.ebp-activity-icon { width: 31px; height: 31px; flex: 0 0 31px; display: flex; align-items: center; justify-content: center; border-radius: 9px; }
.ebp-mini-activity__item p { margin: 0; color: #5e6276; font-size: 10.5px; line-height: 1.35; }
.ebp-mini-activity__item p strong { color: var(--ebp-text); }
.ebp-mini-activity__item small { color: var(--ebp-faint); font-size: 9.5px; }

/* Tables and filters */
.ebp-table-wrap { width: 100%; overflow-x: auto; }
.ebp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ebp-table th { height: 42px; padding: 0 17px; color: #8b8ea0; background: #fafbfc; border-bottom: 1px solid var(--ebp-border); text-align: left; font-size: 9.5px; letter-spacing: .32px; text-transform: uppercase; white-space: nowrap; }
.ebp-table td { height: 67px; padding: 9px 17px; border-bottom: 1px solid #eff0f4; color: #55596d; font-size: 11.5px; white-space: nowrap; }
.ebp-table tbody tr:last-child td { border-bottom: 0; }
.ebp-table tbody tr:hover { background: #fcfcfe; }
.ebp-document-cell, .ebp-document-number { display: flex; align-items: center; gap: 9px; }
.ebp-document-cell > span:last-child, .ebp-stacked-cell { display: flex; flex-direction: column; }
.ebp-document-cell strong, .ebp-document-number strong, .ebp-stacked-cell strong { color: var(--ebp-text); font-size: 11.5px; }
.ebp-document-cell small, .ebp-stacked-cell small { color: var(--ebp-faint); font-size: 9.8px; }
.ebp-file-icon { width: 33px; height: 36px; color: var(--ebp-primary); background: var(--ebp-primary-soft); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
.ebp-table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1px; }
.ebp-source-tag { display: inline-flex; align-items: center; gap: 5px; color: #65697c; }
.ebp-date-cell { color: #6e7285; }
.ebp-filterbar { min-height: 65px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--ebp-border); }
.ebp-filterbar__search { position: relative; min-width: 245px; flex: 1; display: flex; align-items: center; }
.ebp-filterbar__search svg { position: absolute; left: 11px; color: var(--ebp-faint); pointer-events: none; }
.ebp-filterbar__search input { width: 100%; padding-left: 37px !important; }
.ebp-filterbar input, .ebp-filterbar select, .ebp-toolbar input, .ebp-toolbar select { height: 38px; padding: 0 11px; color: #565a6e; background: #fff; border: 1px solid var(--ebp-border-strong); border-radius: 8px; outline: 0; font-size: 11.5px; }
.ebp-filterbar select { min-width: 145px; }
.ebp-filterbar input:focus, .ebp-filterbar select:focus, .ebp-toolbar input:focus { border-color: var(--ebp-primary); box-shadow: 0 0 0 3px rgba(91,92,226,.08); }
.ebp-table-summary { min-height: 42px; padding: 7px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--ebp-muted); background: #fcfcfd; border-bottom: 1px solid var(--ebp-border); font-size: 10.5px; }
.ebp-toolbar { min-height: 48px; margin-bottom: 17px; display: flex; justify-content: space-between; gap: 12px; }
.ebp-toolbar .ebp-filterbar__search { max-width: 330px; }
.ebp-segmented { padding: 4px; display: flex; gap: 3px; background: #e9eaf0; border-radius: 9px; }
.ebp-segmented button { min-width: 65px; border: 0; border-radius: 7px; background: transparent; color: var(--ebp-muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.ebp-segmented button.is-active { color: var(--ebp-text); background: #fff; box-shadow: 0 2px 8px rgba(24, 27, 48, .08); }
.ebp-empty-state { min-height: 330px; padding: 50px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.ebp-empty-state--large { min-height: calc(100vh - 220px); }
.ebp-empty-state__icon { width: 56px; height: 56px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; color: var(--ebp-primary); background: var(--ebp-primary-soft); border-radius: 15px; }
.ebp-empty-state h1, .ebp-empty-state h3 { margin: 0 0 5px; }
.ebp-empty-state p { max-width: 430px; margin: 0 0 18px; color: var(--ebp-muted); }

/* Forms and wizard */
.ebp-field { display: flex; flex-direction: column; gap: 6px; }
.ebp-field--full { grid-column: 1 / -1; }
.ebp-field label, .ebp-label-row label { color: #45495b; font-size: 11.5px; font-weight: 700; }
.ebp-field input, .ebp-field select, .ebp-field textarea { width: 100%; min-height: 41px; padding: 9px 11px; color: var(--ebp-text); background: #fff; border: 1px solid var(--ebp-border-strong); border-radius: 8px; outline: 0; font-size: 12px; transition: border-color .16s, box-shadow .16s; }
.ebp-field textarea { resize: vertical; }
.ebp-field input:focus, .ebp-field select:focus, .ebp-field textarea:focus { border-color: var(--ebp-primary); box-shadow: 0 0 0 3px rgba(91,92,226,.08); }
.ebp-field input:disabled { color: #9295a5; background: #f6f7f9; }
.ebp-field-hint { color: var(--ebp-faint); font-size: 9.5px; }
.ebp-label-row { display: flex; justify-content: space-between; align-items: center; }
.ebp-label-row a { color: var(--ebp-primary); font-size: 11px; font-weight: 600; }
.ebp-form-grid { padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.ebp-form-grid--spaced { padding-top: 26px; }
.ebp-form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.ebp-wizard-steps { max-width: 880px; padding: 0; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.ebp-wizard-steps li { position: relative; display: flex; align-items: center; gap: 10px; color: #9396a8; }
.ebp-wizard-steps li::after { content: ""; position: absolute; height: 1px; background: var(--ebp-border-strong); left: 42px; right: 13px; top: 18px; transform: translateX(50%); z-index: -1; }
.ebp-wizard-steps li:last-child::after { display: none; }
.ebp-wizard-steps li > span { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ebp-border-strong); background: var(--ebp-bg); border-radius: 50%; font-size: 11px; font-weight: 800; }
.ebp-wizard-steps li > div { display: flex; flex-direction: column; }
.ebp-wizard-steps strong { font-size: 11px; }
.ebp-wizard-steps small { font-size: 9.5px; }
.ebp-wizard-steps li.is-active, .ebp-wizard-steps li.is-complete { color: var(--ebp-primary); }
.ebp-wizard-steps li.is-active > span { color: #fff; background: var(--ebp-primary); border-color: var(--ebp-primary); box-shadow: 0 0 0 5px var(--ebp-primary-soft); }
.ebp-wizard-steps li.is-complete > span { color: #fff; background: var(--ebp-green); border-color: var(--ebp-green); }
.ebp-wizard-panel { display: none; }
.ebp-wizard-panel.is-active { display: block; animation: ebp-panel-in .22s ease; }
@keyframes ebp-panel-in { from { opacity: 0; transform: translateY(5px); } }
.ebp-template-select-grid { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.ebp-template-option { position: relative; padding: 12px; border: 1.5px solid var(--ebp-border); border-radius: 11px; cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.ebp-template-option:hover { border-color: #c6c8e6; }
.ebp-template-option input { position: absolute; opacity: 0; }
.ebp-template-option:has(input:checked) { border-color: var(--ebp-primary); box-shadow: 0 0 0 3px rgba(91,92,226,.09); }
.ebp-template-option__preview { position: relative; height: 140px; padding: 22px 20px; background: #f3f4f7; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ebp-template-option__preview::before { content: ""; position: absolute; inset: 13px 28px; background: #fff; border-top: 4px solid var(--accent); border-radius: 3px; box-shadow: 0 5px 13px rgba(25,28,49,.09); }
.ebp-template-option__preview i { z-index: 1; width: 45%; height: 3px; margin-top: 7px; background: #d9dbe3; border-radius: 3px; }
.ebp-template-option__preview b { z-index: 1; margin-top: 5px; color: var(--accent); }
.ebp-template-option__content { padding: 12px 2px 2px; display: flex; flex-direction: column; }
.ebp-template-option__content strong { font-size: 12px; }
.ebp-template-option__content small { color: var(--ebp-muted); font-size: 10px; }
.ebp-template-option__check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; color: #fff; background: var(--ebp-primary); border-radius: 50%; }
.ebp-template-option:has(input:checked) .ebp-template-option__check { display: flex; }
.ebp-wizard-actions { margin-top: 17px; padding: 13px 0; display: flex; align-items: center; gap: 10px; }
.ebp-wizard-actions > span { flex: 1; }
.ebp-document-preview { position: sticky; top: 93px; }
.ebp-paper { position: relative; width: 73%; min-height: 360px; margin: 25px auto; padding: 42px 25px; background: #fff; border: 1px solid #e1e2e8; box-shadow: 0 12px 32px rgba(31,34,58,.12); text-align: center; overflow: hidden; }
.ebp-paper::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--ebp-primary); }
.ebp-paper__brand { margin-bottom: 33px; display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--ebp-primary); font-size: 7px; }
.ebp-paper__brand span { width: 15px; height: 15px; background: var(--ebp-primary); border-radius: 4px; }
.ebp-paper h3 { margin: 0 0 22px; font-size: 11px; letter-spacing: 1px; }
.ebp-paper__lines { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; }
.ebp-paper__lines i { width: 85%; height: 3px; background: #e8e9ed; border-radius: 4px; }
.ebp-paper__lines i:nth-child(2) { width: 70%; }
.ebp-paper strong { display: block; margin-bottom: 5px; font-size: 9px; }
.ebp-paper small { display: block; color: #7d8090; font-size: 7px; }
.ebp-paper__qr { position: absolute; right: 18px; bottom: 18px; color: #242638; }
.ebp-preview-note { margin: 0 18px 17px; padding: 9px; display: flex; align-items: center; gap: 7px; color: #8d6b18; background: #fff9e9; border-radius: 8px; font-size: 9.5px; }
.ebp-review-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.ebp-review-list { padding: 12px 20px 18px; margin: 0; }
.ebp-review-list div { min-height: 48px; display: grid; grid-template-columns: 180px 1fr; align-items: center; border-bottom: 1px solid #eff0f4; }
.ebp-review-list div:last-child { border-bottom: 0; }
.ebp-review-list dt { color: var(--ebp-muted); font-size: 11px; }
.ebp-review-list dd { margin: 0; color: var(--ebp-text); font-size: 11.5px; font-weight: 700; }
.ebp-final-check { padding: 30px; text-align: center; }
.ebp-final-check__icon { width: 62px; height: 62px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--ebp-green); background: var(--ebp-green-soft); border-radius: 50%; }
.ebp-final-check h2 { margin: 0 0 5px; font-size: 17px; }
.ebp-final-check p { margin: 0 0 18px; color: var(--ebp-muted); font-size: 11px; }
.ebp-final-check ul { padding: 13px; margin: 0; background: var(--ebp-surface-soft); border-radius: 9px; list-style: none; text-align: left; }
.ebp-final-check li { padding: 4px 0; display: flex; align-items: center; gap: 7px; color: #5c6073; font-size: 10.5px; }
.ebp-final-check li svg { color: var(--ebp-green); }

/* Uploads, switches and templates */
.ebp-upload-zone { position: relative; min-height: 190px; margin: 20px; padding: 25px; border: 1.5px dashed #c9ccda; border-radius: 12px; background: #fafafd; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; cursor: pointer; transition: border-color .16s, background .16s; }
.ebp-upload-zone:hover, .ebp-upload-zone.is-dragging { border-color: var(--ebp-primary); background: var(--ebp-primary-soft); }
.ebp-upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ebp-upload-zone__icon { width: 48px; height: 48px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: var(--ebp-primary); background: var(--ebp-primary-soft); border-radius: 13px; }
.ebp-upload-zone strong { display: block; font-size: 12.5px; }
.ebp-upload-zone p { margin: 2px 0 7px; color: var(--ebp-primary); font-size: 10.5px; }
.ebp-upload-zone small { color: var(--ebp-faint); font-size: 9.5px; }
.ebp-upload-zone--compact { min-height: 130px; margin: 0; }
.ebp-upload-options { padding-bottom: 17px; }
.ebp-upload-options > .ebp-switch-row { margin: 0 18px; }
.ebp-upload-options > .ebp-button { width: calc(100% - 36px); margin: 0 18px; }
.ebp-switch-row { position: relative; min-height: 74px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ebp-border); cursor: pointer; }
.ebp-switch-row > span { display: flex; flex-direction: column; }
.ebp-switch-row strong { font-size: 11.5px; }
.ebp-switch-row small { max-width: 270px; color: var(--ebp-muted); font-size: 9.7px; }
.ebp-switch-row input { position: absolute; opacity: 0; }
.ebp-switch-row > i { position: relative; width: 38px; height: 22px; flex: 0 0 38px; background: #cfd2dc; border-radius: 999px; transition: background .16s; }
.ebp-switch-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(27,29,45,.2); transition: transform .16s; }
.ebp-switch-row input:checked + i { background: var(--ebp-primary); }
.ebp-switch-row input:checked + i::after { transform: translateX(16px); }
.ebp-switch-row--inline { min-height: 64px; padding: 12px 14px; border: 1px solid var(--ebp-border); border-radius: 9px; }
.ebp-info-box { margin: 16px 18px; padding: 11px; display: flex; align-items: flex-start; gap: 8px; color: #5f6292; background: #f1f2fe; border: 1px solid #e0e1fa; border-radius: 9px; }
.ebp-info-box p { margin: 0; font-size: 10px; }

.ebp-template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.ebp-template-card { overflow: hidden; background: #fff; border: 1px solid var(--ebp-border); border-radius: var(--ebp-radius); box-shadow: var(--ebp-shadow); }
.ebp-template-card__preview { position: relative; height: 210px; padding: 25px; background: #f1f2f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ebp-template-card__preview::before { content: ""; position: absolute; width: 170px; height: 170px; background: var(--accent); opacity: .08; border-radius: 50%; filter: blur(30px); }
.ebp-template-card__paper { position: relative; width: 122px; height: 162px; padding: 30px 20px; background: #fff; border-top: 4px solid var(--accent); border-radius: 2px; box-shadow: 0 12px 25px rgba(28,31,51,.14); display: flex; flex-direction: column; gap: 8px; }
.ebp-template-card__paper i { height: 3px; background: #e2e3e8; border-radius: 3px; }
.ebp-template-card__paper i:nth-child(2) { width: 65%; }
.ebp-template-card__paper b { position: absolute; right: 12px; bottom: 12px; color: var(--accent); }
.ebp-template-card__status { position: absolute; top: 12px; right: 12px; }
.ebp-template-card__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(29,31,48,.42); opacity: 0; transition: opacity .17s; }
.ebp-template-card__preview:hover .ebp-template-card__hover { opacity: 1; }
.ebp-template-card__content { padding: 16px; }
.ebp-template-card__content > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.ebp-template-card h2 { margin: 0; font-size: 13.5px; }
.ebp-template-card__content > div:first-child > span { color: var(--ebp-primary); background: var(--ebp-primary-soft); border-radius: 5px; padding: 2px 5px; font-size: 9px; font-weight: 700; }
.ebp-template-card dl { margin: 14px 0; padding: 10px 0; border-top: 1px solid var(--ebp-border); border-bottom: 1px solid var(--ebp-border); }
.ebp-template-card dl div { padding: 2px 0; display: flex; justify-content: space-between; }
.ebp-template-card dt { color: var(--ebp-muted); font-size: 9.5px; }
.ebp-template-card dd { margin: 0; font-size: 9.5px; font-weight: 700; }
.ebp-template-card__actions { display: flex; justify-content: space-between; gap: 8px; }
.ebp-template-add { min-height: 380px; border: 1.5px dashed #c9ccda; border-radius: var(--ebp-radius); background: rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; }
.ebp-template-add:hover { border-color: var(--ebp-primary); background: var(--ebp-primary-soft); }
.ebp-template-add > span { width: 50px; height: 50px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; color: var(--ebp-primary); background: #fff; border: 1px solid #dfe0ef; border-radius: 13px; }
.ebp-template-add strong { font-size: 12.5px; }
.ebp-template-add small { color: var(--ebp-muted); font-size: 10px; }

/* Dialogs, QR and customers */
.ebp-dialog { width: min(540px, calc(100% - 30px)); padding: 0; color: var(--ebp-text); background: #fff; border: 0; border-radius: 15px; box-shadow: 0 24px 80px rgba(24,26,45,.24); overflow: hidden; }
.ebp-dialog::backdrop { background: rgba(20,22,39,.52); backdrop-filter: blur(3px); }
.ebp-dialog header { min-height: 76px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ebp-border); }
.ebp-dialog header h2 { margin: 0; font-size: 16px; }
.ebp-dialog header p { margin: 2px 0 0; color: var(--ebp-muted); font-size: 10.5px; }
.ebp-dialog header button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
.ebp-dialog__body { padding: 20px; display: grid; gap: 17px; }
.ebp-dialog footer { padding: 13px 20px; background: #fafafd; border-top: 1px solid var(--ebp-border); display: flex; justify-content: flex-end; gap: 8px; }
.ebp-qr-thumb { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; color: #222536; background: #fff; border: 1px solid var(--ebp-border); border-radius: 7px; box-shadow: 0 2px 6px rgba(28,31,51,.06); }
.ebp-copy-field { width: 220px; padding: 4px 5px 4px 9px; display: flex; align-items: center; gap: 6px; background: #f6f7fa; border: 1px solid var(--ebp-border); border-radius: 7px; }
.ebp-copy-field code { flex: 1; overflow: hidden; text-overflow: ellipsis; color: #6a6e81; font-size: 9.5px; }
.ebp-copy-field button { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border: 0; background: #fff; color: var(--ebp-primary); border-radius: 5px; cursor: pointer; }
.ebp-company-cell { display: flex; align-items: center; gap: 9px; }
.ebp-company-cell > span { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; color: var(--ebp-primary); background: var(--ebp-primary-soft); border-radius: 9px; font-size: 10px; font-weight: 800; }
.ebp-company-cell > div { display: flex; flex-direction: column; }
.ebp-company-cell strong { color: var(--ebp-text); font-size: 11.5px; }
.ebp-company-cell small { color: var(--ebp-faint); font-size: 9.5px; }
.ebp-count-link { color: var(--ebp-primary); font-weight: 700; }

/* Activity, settings and profile */
.ebp-activity-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 20px; align-items: start; }
.ebp-activity-list { padding: 5px 19px 15px; }
.ebp-activity-row { min-height: 74px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ebp-border); }
.ebp-activity-row:last-child { border-bottom: 0; }
.ebp-activity-row__content { flex: 1; min-width: 0; }
.ebp-activity-row__content p { margin: 0; font-size: 11.5px; }
.ebp-activity-row__content span { display: block; color: var(--ebp-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebp-activity-row time { color: var(--ebp-faint); font-size: 9.5px; white-space: nowrap; }
.ebp-audit-info { padding: 23px; }
.ebp-audit-info__icon { width: 47px; height: 47px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; color: var(--ebp-primary); background: var(--ebp-primary-soft); border-radius: 12px; }
.ebp-audit-info h2 { margin: 0 0 5px; font-size: 14px; }
.ebp-audit-info p { margin: 0 0 18px; color: var(--ebp-muted); font-size: 10.5px; }
.ebp-audit-info dl { margin: 0; }
.ebp-audit-info dl div { padding: 8px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--ebp-border); }
.ebp-audit-info dt { color: var(--ebp-muted); font-size: 10px; }
.ebp-audit-info dd { margin: 0; font-size: 10px; font-weight: 700; }
.ebp-settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.ebp-settings-nav { padding: 7px; background: #fff; border: 1px solid var(--ebp-border); border-radius: var(--ebp-radius); box-shadow: var(--ebp-shadow); }
.ebp-settings-nav button { width: 100%; min-height: 58px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; color: #696d80; background: transparent; border: 0; border-radius: 9px; text-align: left; cursor: pointer; }
.ebp-settings-nav button:hover { background: var(--ebp-surface-soft); }
.ebp-settings-nav button.is-active { color: var(--ebp-primary); background: var(--ebp-primary-soft); }
.ebp-settings-nav button span { display: flex; flex-direction: column; }
.ebp-settings-nav strong { font-size: 11px; }
.ebp-settings-nav small { color: var(--ebp-muted); font-size: 9px; }
.ebp-settings-panel > section { display: none; }
.ebp-settings-panel > section.is-active { display: block; }
.ebp-settings-panel__footer { min-height: 66px; padding: 12px 20px; display: flex; align-items: center; justify-content: flex-end; background: #fafafd; border-top: 1px solid var(--ebp-border); }
.ebp-switch-list { padding: 5px 20px 22px; }
.ebp-logo-upload { min-height: 68px; padding: 11px; display: flex; align-items: center; gap: 12px; background: #fafafd; border: 1px dashed var(--ebp-border-strong); border-radius: 9px; cursor: pointer; text-align: left; }
.ebp-logo-upload > span:last-child { display: flex; flex-direction: column; }
.ebp-logo-upload strong { font-size: 11px; }
.ebp-logo-upload small { color: var(--ebp-muted); font-size: 9.5px; }
.ebp-profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.ebp-profile-card { padding: 30px 20px; text-align: center; }
.ebp-profile-card__avatar { width: 78px; height: 78px; margin: 0 auto 13px; display: flex; align-items: center; justify-content: center; color: var(--ebp-primary); background: var(--ebp-primary-soft); border: 5px solid #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--ebp-border), 0 8px 18px rgba(91,92,226,.12); font-size: 21px; font-weight: 800; }
.ebp-profile-card h2 { margin: 0; font-size: 16px; }
.ebp-profile-card > p { margin: 2px 0 10px; color: var(--ebp-muted); font-size: 10.5px; }
.ebp-profile-card > .ebp-badge { margin: auto; }
.ebp-profile-card dl { margin: 22px 0 0; text-align: left; }
.ebp-profile-card dl div { padding: 9px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--ebp-border); }
.ebp-profile-card dt { color: var(--ebp-muted); font-size: 10px; }
.ebp-profile-card dd { margin: 0; font-size: 10px; font-weight: 700; }

/* Notices and toasts */
.ebp-notice { min-height: 48px; margin-bottom: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid; border-radius: 10px; font-size: 11px; }
.ebp-notice span { flex: 1; }
.ebp-notice--success { color: #087b55; background: var(--ebp-green-soft); border-color: #c7ecdc; }
.ebp-notice--info { color: #4c50a9; background: var(--ebp-primary-soft); border-color: #dadafa; }
.ebp-notice--danger { color: #ba2b3a; background: var(--ebp-red-soft); border-color: #f4ccd1; }
.ebp-notice__close { padding: 4px; display: flex; border: 0; color: inherit; background: transparent; cursor: pointer; }
.ebp-toast-region { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.ebp-toast { width: min(350px, calc(100vw - 40px)); padding: 12px 14px; display: flex; align-items: center; gap: 9px; color: #fff; background: #282b3e; border-radius: 10px; box-shadow: 0 12px 35px rgba(23,25,43,.24); font-size: 11.5px; animation: ebp-toast-in .25s ease; }
.ebp-toast svg { color: #a9aaff; }
.ebp-toast.is-leaving { opacity: 0; transform: translateY(5px); transition: .2s; }
@keyframes ebp-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Login and fallback */
.ebp-login { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(430px, .95fr); background: #fff; }
.ebp-login__visual { position: relative; min-height: 100vh; padding: 42px 54px; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 18%, rgba(135,136,255,.42), transparent 28%), radial-gradient(circle at 15% 85%, rgba(123,88,225,.38), transparent 30%), linear-gradient(145deg, #242557, #4e4fca 63%, #5f60df); }
.ebp-login__visual::before, .ebp-login__visual::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.ebp-login__visual::before { right: -180px; top: 90px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.ebp-login__visual::after { left: -270px; bottom: -220px; }
.ebp-login__brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 17px; }
.ebp-login__visual-content { position: relative; z-index: 1; max-width: 550px; margin: auto 0; }
.ebp-login__eyebrow { display: inline-block; margin-bottom: 18px; padding: 5px 9px; color: #d8d9ff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); border-radius: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; }
.ebp-login__visual-content h1 { margin: 0 0 18px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -2px; }
.ebp-login__visual-content p { max-width: 470px; margin: 0; color: #d0d1f1; font-size: 15px; line-height: 1.7; }
.ebp-login__mock-card { position: relative; z-index: 1; width: max-content; padding: 12px 16px; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; backdrop-filter: blur(8px); }
.ebp-login__mock-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #52e8ae; background: rgba(41,206,146,.14); border-radius: 10px; }
.ebp-login__mock-card > div:last-child { display: flex; flex-direction: column; }
.ebp-login__mock-card strong { font-size: 11px; }
.ebp-login__mock-card span { color: #ccceef; font-size: 9.5px; }
.ebp-login__form-side { display: flex; align-items: center; justify-content: center; padding: 50px; background: #fff; }
.ebp-login__form-wrap { width: 100%; max-width: 405px; }
.ebp-login__mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 40px; }
.ebp-login__heading { margin-bottom: 28px; }
.ebp-login__heading h2 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.7px; }
.ebp-login__heading p { margin: 0; color: var(--ebp-muted); font-size: 12px; }
.ebp-login-form { display: grid; gap: 17px; }
.ebp-input-icon { position: relative; display: flex; align-items: center; }
.ebp-input-icon > svg { position: absolute; left: 12px; color: var(--ebp-faint); }
.ebp-input-icon input { padding-left: 42px; padding-right: 42px; height: 47px; }
.ebp-password-toggle { position: absolute; right: 8px; width: 33px; height: 33px; display: flex; align-items: center; justify-content: center; color: var(--ebp-muted); background: transparent; border: 0; cursor: pointer; }
.ebp-check { width: max-content; display: flex; align-items: center; gap: 7px; color: #5e6274; font-size: 11px; cursor: pointer; }
.ebp-check input { accent-color: var(--ebp-primary); }
.ebp-login-form .ebp-button { min-height: 47px; margin-top: 2px; }
.ebp-login__support { margin: 24px 0 0; color: var(--ebp-muted); text-align: center; font-size: 10.5px; }
.ebp-login__support a { color: var(--ebp-primary); font-weight: 700; }
.ebp-login-alert { min-height: 45px; margin-bottom: 17px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid; border-radius: 9px; font-size: 10.5px; }
.ebp-login-alert--error { color: var(--ebp-red); background: var(--ebp-red-soft); border-color: #f2cbd0; }
.ebp-login-alert--success { color: var(--ebp-green); background: var(--ebp-green-soft); border-color: #c9ecde; }
.ebp-fallback { min-height: 100vh; padding: 30px; display: flex; align-items: center; justify-content: center; background: var(--ebp-bg); font-family: Inter, ui-sans-serif, sans-serif; text-align: center; }
.ebp-fallback > div { max-width: 450px; }
.ebp-fallback .ebp-brand-mark { margin: auto; }
.ebp-fallback h1 { margin-bottom: 5px; }
.ebp-fallback p { margin-bottom: 20px; color: var(--ebp-muted); }

/* Responsive */
@media (max-width: 1240px) {
	.ebp-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.ebp-template-grid { grid-template-columns: repeat(3, 1fr); }
	.ebp-dashboard-grid { grid-template-columns: 1fr; }
	.ebp-dashboard-grid__side { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1050px) {
	:root { --ebp-sidebar: 260px; }
	.ebp-sidebar { transform: translateX(-100%); box-shadow: 15px 0 45px rgba(21,23,42,.14); }
	body.ebp-sidebar-open .ebp-sidebar { transform: translateX(0); }
	body.ebp-sidebar-open .ebp-sidebar-overlay { display: block; }
	.ebp-sidebar__close, .ebp-topbar__menu { display: flex; }
	.ebp-main { margin-left: 0; }
	.ebp-topbar__mobile-title { display: block; }
	.ebp-global-search { max-width: 360px; margin-left: 12px; }
	.ebp-form-layout { grid-template-columns: 1fr; }
	.ebp-document-preview { position: static; }
	.ebp-document-preview .ebp-paper { width: min(330px, 70%); }
	.ebp-template-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar .ebp-sidebar { top: 46px; }
	.admin-bar .ebp-topbar { top: 46px; }
	.ebp-content { padding: 21px 18px 35px; }
	.ebp-topbar { padding: 0 17px; }
	.ebp-global-search { display: none; }
	.ebp-user-menu__text, .ebp-user-menu__toggle > svg { display: none; }
	.ebp-page-head { align-items: flex-start; }
	.ebp-dashboard-grid__side { grid-template-columns: 1fr; }
	.ebp-review-grid, .ebp-activity-layout, .ebp-settings-layout, .ebp-profile-layout { grid-template-columns: 1fr; }
	.ebp-settings-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
	.ebp-settings-nav button { justify-content: center; }
	.ebp-settings-nav button span { display: none; }
	.ebp-filterbar { align-items: stretch; flex-wrap: wrap; }
	.ebp-filterbar__search { flex: 1 0 100%; max-width: none !important; }
	.ebp-filterbar select { flex: 1; }
	.ebp-wizard-steps li > div { display: none; }
	.ebp-wizard-steps { max-width: 330px; }
	.ebp-wizard-steps li { justify-content: center; }
	.ebp-wizard-steps li::after { left: 50%; right: -50%; transform: none; }
	.ebp-template-select-grid { grid-template-columns: 1fr; }
	.ebp-template-option { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
	.ebp-template-option__preview { height: 100px; }
	.ebp-template-option__preview::before { inset: 10px 23px; }
	.ebp-template-option__content { padding-left: 15px; }
	.ebp-login { grid-template-columns: 1fr; }
	.ebp-login__visual { display: none; }
	.ebp-login__mobile-brand { display: flex; }
	.ebp-login__form-side { min-height: 100vh; padding: 35px 24px; }
}

@media (max-width: 600px) {
	.ebp-content { padding: 18px 13px 30px; }
	.ebp-topbar { min-height: 62px; padding: 0 12px; }
	.ebp-topbar__mobile-title { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
	.ebp-page-head { margin-bottom: 18px; flex-direction: column; gap: 13px; }
	.ebp-page-head > .ebp-button { width: 100%; }
	.ebp-page-head h1 { font-size: 23px; }
	.ebp-stat-grid, .ebp-stat-grid--three { grid-template-columns: 1fr 1fr; gap: 9px; }
	.ebp-stat-card { min-height: 128px; padding: 13px; }
	.ebp-stat-card__icon { width: 35px; height: 35px; margin-bottom: 9px; }
	.ebp-stat-card > strong { font-size: 22px; }
	.ebp-card__head { padding: 14px; }
	.ebp-quick-actions__grid { padding: 9px; }
	.ebp-template-grid { grid-template-columns: 1fr; }
	.ebp-template-card__preview { height: 200px; }
	.ebp-template-add { min-height: 180px; }
	.ebp-toolbar { align-items: stretch; flex-direction: column; }
	.ebp-toolbar .ebp-filterbar__search { max-width: none; }
	.ebp-form-grid { grid-template-columns: 1fr; padding: 15px; }
	.ebp-field--full { grid-column: auto; }
	.ebp-upload-zone { margin: 15px; }
	.ebp-review-list div { grid-template-columns: 1fr; gap: 3px; padding: 8px 0; }
	.ebp-wizard-actions { position: sticky; z-index: 20; bottom: 0; padding: 10px; background: rgba(245,246,250,.95); border-top: 1px solid var(--ebp-border); }
	.ebp-activity-row { align-items: flex-start; padding: 12px 0; flex-wrap: wrap; }
	.ebp-activity-row time { margin-left: 43px; }
	.ebp-dialog footer { flex-direction: column-reverse; }
	.ebp-dialog footer .ebp-button { width: 100%; }
	.ebp-demo-strip span { display: none; }
}

