:root {
	--ink: #121212;
	--char: #1a1a1a;
	--char-2: #242424;
	--gold: #b8914f;
	--gold-2: #d2ad6c;
	--paper: #f4f1ec;
	--line: #e2ddd4;
	--text: #26231f;
	--muted: #6d6862;
	--red: #b23b3b;
	--green: #3f7f33;
	--r: 12px;
	--head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rbp { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.5 var(--body); min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: #8f6d35; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: 2.1rem; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.25rem; }

.rbp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--char); border-bottom: 2px solid var(--gold); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.rbp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.rbp-brand img { height: 44px; width: auto; }
.rbp-brand span { font-family: var(--head); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem; color: var(--gold-2); }
.rbp-top-links { display: flex; gap: 16px; }
.rbp-top-links a { color: #cfcbc4; text-decoration: none; font-size: .95rem; }

.rbp-main { max-width: 760px; margin: 0 auto; padding: 22px 16px 80px; }
.rbp-hello { margin-top: 6px; }
.rbp-sub { color: var(--muted); margin: 0 0 20px; }
.rbp-h2 { margin-top: 36px; }

.rbp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rbp-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; min-height: 150px; background: #fff; border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(0, 0, 0, .06); border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.rbp-tile:active { transform: scale(.98); }
.rbp-tile:hover { border-color: var(--gold); }
.rbp-tile strong { font-family: var(--head); font-size: 1.45rem; line-height: 1.1; }
.rbp-tile small { color: var(--muted); font-size: .9rem; }
.rbp-ico { font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.rbp-tile-gold { grid-column: 1 / -1; background: linear-gradient(135deg, #1d1d1d, #2b2b2b); color: #fff; min-height: 130px; border-left: 5px solid var(--gold); }
.rbp-tile-gold small { color: #c9c4bc; }
.rbp-badge { position: absolute; top: 14px; right: 14px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--red); color: #fff; font-style: normal; font-weight: 600; display: grid; place-items: center; font-size: .9rem; }

.rbp-back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 600; color: var(--muted); padding: 6px 0; }

.rbp-card, .rbp-step, .rbp-item, .rbp-empty { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: 0 1px 0 var(--line); }
.rbp-form { display: grid; gap: 16px; }
.rbp-step h2 { display: flex; align-items: center; gap: 10px; }
.rbp-step h2 span { width: 30px; height: 30px; border-radius: 50%; background: var(--char); color: var(--gold-2); display: grid; place-items: center; font-size: 1rem; }
.rbp-step h2 small { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 400; }

.rbp-drop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 16px; border: 2px dashed #c9bfae; border-radius: var(--r); background: #faf8f4; cursor: pointer; }
.rbp-drop:hover { border-color: var(--gold); }
.rbp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.rbp-drop strong { font-family: var(--head); font-size: 1.4rem; }
.rbp-drop small { color: var(--muted); max-width: 340px; }
.rbp-drop-ico { font-size: 2.6rem; line-height: 1; }
.rbp-drop-sm { padding: 18px; flex-direction: row; justify-content: center; }
.rbp-drop-sm .rbp-drop-ico { font-size: 1.6rem; }

.rbp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rbp-thumbs:empty { display: none; }
.rbp-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; background: #ddd; }
.rbp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rbp-thumb.is-cover { outline: 3px solid var(--gold); outline-offset: -3px; }
.rbp-cover { position: absolute; left: 6px; bottom: 6px; background: var(--gold); color: #111; font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.rbp-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }

.rbp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rbp-pills label { cursor: pointer; }
.rbp-pills input { position: absolute; opacity: 0; pointer-events: none; }
.rbp-pills span { display: block; padding: 12px 16px; border: 2px solid var(--line); border-radius: 30px; font-weight: 600; background: #fff; }
.rbp-pills input:checked + span { background: var(--char); border-color: var(--char); color: var(--gold-2); }
.rbp-pills input:focus-visible + span { outline: 3px solid var(--gold); }

.rbp-field { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.rbp-field input, .rbp-field textarea, .rbp-select, .login-username input, .login-password input {
	font: inherit; font-weight: 400; width: 100%; padding: 14px; border: 1px solid #cfc7ba; border-radius: 10px; background: #fff; color: var(--text);
}
.rbp-field input:focus, .rbp-field textarea:focus { outline: 3px solid rgba(184, 145, 79, .35); border-color: var(--gold); }
.rbp-hint { margin: 0; color: var(--muted); font-size: .9rem; }

.rbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; min-height: 48px; border-radius: 10px; border: 2px solid transparent; font: 700 1.05rem var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; color: var(--ink); background: #fff; }
.rbp-btn:disabled { opacity: .55; cursor: wait; }
.rbp-btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: #15110a; }
.rbp-btn-ghost { border-color: var(--line); }
.rbp-btn-danger { color: var(--red); border-color: #efd2d2; background: #fff; }
.rbp-btn-xl { width: 100%; min-height: 62px; font-size: 1.35rem; }
.rbp-btn-sm { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.rbp-row { display: grid; gap: 10px; }

.rbp-progress { position: relative; height: 34px; border-radius: 10px; background: #e8e2d8; overflow: hidden; }
.rbp-progress div { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .2s; }
.rbp-progress span { position: relative; display: block; text-align: center; line-height: 34px; font-weight: 600; font-size: .95rem; }

.rbp-list { display: grid; gap: 12px; }
.rbp-item { transition: opacity .25s; }
.rbp-item h3 a { color: var(--ink); text-decoration: none; }
.rbp-item p { margin: 0 0 12px; color: #4a4640; }
.rbp-item-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.rbp-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; background: var(--gold); color: #15110a; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rbp-tag-grey { background: #e3ded5; }
.rbp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rbp-actions-center { justify-content: center; }
.rbp-select { width: auto; padding: 10px 12px; min-height: 48px; }
.rbp-item.is-published { border-left: 5px solid var(--green); }
.rbp-lead.is-new { border-left: 5px solid var(--red); }
.rbp-lead.is-contacted { border-left: 5px solid var(--gold); }
.rbp-lead.is-done { opacity: .7; }
.rbp-lead.is-done .rbp-status { background: #d9e8d4; }
.rbp-lead-info { font-weight: 600; }
.rbp-list-compact .rbp-item { padding: 14px 18px; }
.rbp-list-compact h3 { font-size: 1.1rem; }

.rbp-empty { text-align: center; color: var(--muted); padding: 30px 20px; }

.rbp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rbp-proj { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: opacity .25s; }
.rbp-proj img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rbp-proj > div { padding: 12px; }
.rbp-proj h3 { font-size: 1.05rem; }

.rbp-done { text-align: center; padding-top: 30px; }
.rbp-done-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.6rem; display: grid; place-items: center; }
.rbp-done .rbp-actions { flex-direction: column; align-items: stretch; max-width: 380px; margin: 20px auto 0; }

.rbp-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--char); color: #fff; padding: 14px 20px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 50; max-width: calc(100% - 32px); border-left: 4px solid var(--green); }
.rbp-toast.is-error { border-left-color: var(--red); }

.rbp-login { max-width: 440px; margin: 30px auto; }
.rbp-login form p { margin: 0 0 14px; }
.rbp-login label { display: block; font-weight: 600; margin-bottom: 6px; }
.rbp-login .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.rbp-login input[type=submit] { width: 100%; min-height: 56px; border: 0; border-radius: 10px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); font: 700 1.25rem var(--head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.rbp-small { font-size: .9rem; text-align: center; }

@media (min-width: 640px) {
	.rbp-tiles { grid-template-columns: repeat(3, 1fr); }
	.rbp-tile-gold { grid-column: span 3; }
	.rbp-thumbs { grid-template-columns: repeat(4, 1fr); }
	.rbp-grid { grid-template-columns: repeat(3, 1fr); }
	.rbp-row { grid-template-columns: 2fr 1fr; }
}
